-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next-minor' into story/130704-task-data-on-dashboard
# Conflicts: # package-lock.json
- Loading branch information
Showing
20 changed files
with
267 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...nts/src/lib/components/multi-input/components/value-path-selector-dropdown-value/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright 2015-2024 Ritense BV, the Netherlands. | ||
* | ||
* Licensed under EUPL, Version 1.2 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
export * from './value-path-selector-dropdown-value.component'; |
56 changes: 56 additions & 0 deletions
56
...ents/value-path-selector-dropdown-value/value-path-selector-dropdown-value.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- | ||
~ Copyright 2015-2024 Ritense BV, the Netherlands. | ||
~ | ||
~ Licensed under EUPL, Version 1.2 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" basis, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<div class="v-multi-input__input path-selector" [ngClass]="{'--full-width': fullWidth}"> | ||
<cds-label *ngIf="index === 0 && keyColumnTitle">{{ keyColumnTitle }}</cds-label> | ||
|
||
<valtimo-value-path-selector | ||
[documentDefinitionName]="documentDefinitionName" | ||
[prefixes]="prefixes" | ||
[showDocumentDefinitionSelector]="showDocumentDefinitionSelector" | ||
[disabled]="disabled" | ||
[defaultValue]="value?.key" | ||
[notation]="notation" | ||
(valueChangeEvent)="onInputChange('key', $event)" | ||
></valtimo-value-path-selector> | ||
</div> | ||
|
||
<div class="v-multi-input__separator"></div> | ||
|
||
<div | ||
class="v-multi-input__input" | ||
[ngClass]="{'--full-width': fullWidth}" | ||
[style.minWidth.px]="dropdownWidth" | ||
> | ||
<cds-label *ngIf="index === 0 && dropdownColumnTitle">{{ dropdownColumnTitle }}</cds-label> | ||
|
||
<cds-dropdown (selected)="onInputChange('dropdown', $event.item.id)" [appendInline]="true"> | ||
<cds-dropdown-list [items]="dropdownItems$ | async" type="multi"></cds-dropdown-list> | ||
</cds-dropdown> | ||
</div> | ||
|
||
<div class="v-multi-input__separator"></div> | ||
|
||
<div class="v-multi-input__input" [ngClass]="{'--full-width': fullWidth}"> | ||
<cds-label *ngIf="index === 0 && valueColumnTitle">{{ valueColumnTitle }}</cds-label> | ||
|
||
<input | ||
cdsText | ||
[defaultValue]="value.value" | ||
[disabled]="disabled" | ||
(input)="onInputChange('value', $event.target.value)" | ||
/> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
...ents/value-path-selector-dropdown-value/value-path-selector-dropdown-value.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/*! | ||
* Copyright 2015-2024 Ritense BV, the Netherlands. | ||
* | ||
* Licensed under EUPL, Version 1.2 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
:host { | ||
display: flex; | ||
align-items: flex-end; | ||
|
||
&.--full-width { | ||
width: 100%; | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...onents/value-path-selector-dropdown-value/value-path-selector-dropdown-value.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright 2015-2024 Ritense BV, the Netherlands. | ||
* | ||
* Licensed under EUPL, Version 1.2 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import {Component, EventEmitter, HostBinding, Input, Output} from '@angular/core'; | ||
import { | ||
ListItemWithId, | ||
MultiInputChangeEventType, | ||
MultiInputKeyValue, | ||
ValuePathSelectorNotation, | ||
ValuePathSelectorPrefix, | ||
} from '../../../../models'; | ||
import {CommonModule} from '@angular/common'; | ||
import {DropdownModule, InputModule} from 'carbon-components-angular'; | ||
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; | ||
import {ValuePathSelectorComponent} from '../../../value-path-selector'; | ||
import {Observable} from 'rxjs'; | ||
|
||
@Component({ | ||
selector: 'valtimo-value-path-selector-dropdown-value', | ||
templateUrl: './value-path-selector-dropdown-value.component.html', | ||
styleUrls: ['./value-path-selector-dropdown-value.component.scss'], | ||
standalone: true, | ||
imports: [ | ||
CommonModule, | ||
InputModule, | ||
DropdownModule, | ||
ValuePathSelectorComponent, | ||
FormsModule, | ||
ReactiveFormsModule, | ||
], | ||
}) | ||
export class ValuePathSelectorDropdownValueComponent { | ||
@Input() public readonly keyColumnTitle!: string; | ||
@Input() public readonly valueColumnTitle!: string; | ||
@Input() public readonly dropdownColumnTitle!: string; | ||
@Input() public readonly index!: number; | ||
@Input() public readonly value!: MultiInputKeyValue; | ||
@Input() public readonly dropdownItems$!: Observable<Array<ListItemWithId>>; | ||
@Input() public readonly documentDefinitionName = ''; | ||
@Input() public readonly prefixes: ValuePathSelectorPrefix[] = []; | ||
@Input() public readonly showDocumentDefinitionSelector = false; | ||
@Input() public readonly notation: ValuePathSelectorNotation = 'dots'; | ||
@Input() public readonly dropdownWidth = 250; | ||
@Input() @HostBinding('class.--full-width') public readonly fullWidth = false; | ||
@Input() public readonly disabled = false; | ||
|
||
@Output() public readonly valueChange: EventEmitter<{ | ||
value: MultiInputKeyValue; | ||
inputValue: string; | ||
type: MultiInputChangeEventType; | ||
}> = new EventEmitter(); | ||
|
||
public onInputChange(type: MultiInputChangeEventType, inputValue: string): void { | ||
this.valueChange.emit({value: this.value, inputValue, type}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.