From 2d8418132964d8df4979e93335d0e57acdf48f5c Mon Sep 17 00:00:00 2001 From: mbritense <79840403+mbritense@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:49:24 +0100 Subject: [PATCH] story: merge next-minor into next-major (#1316) * Story/129861 widget field ellipsis (#1296) * fix config for personal dashboard * 128341 Can use process variable or document property in verloop tijd in dagen field. * Add handler for array of strings (#1299) * Bugfix/130515 boolean resolver (#1300) * story/fix-fvm-updating fix form view model not updating (#1301) * #57: Configurable Documenten API Upload fields (#1298) doc: It is now possible to configure the fields that are needed when uploading to the Documenten API * doc: fix: Linking a form to a user-task without selecting the task-display-type will no longer result in an error (#1303) * Add fix for ellipsis cutting one character short (#1307) * Story/130613 reset form value (#1308) * Add form display configuration * Remove code * Add no access page for case details * Remove no access page for case details * Reset form value when submitting the start process form * fix error (#1309) * story: value selector in multi input (#1306) * refactor * abstract keyvalue to separate component * abstract singlevalue * abstract key dropdown value * abstract arbitrary amount * working value path selector in multi input * fix verzoek ui * add value path selector value * wip * small fixes * final fixes * Update projects/valtimo/components/src/lib/components/multi-input/carbon-multi-input.component.ts Co-authored-by: teodor-ritense <135605531+teodor-ritense@users.noreply.github.com> * pr comment --------- Co-authored-by: teodor-ritense <135605531+teodor-ritense@users.noreply.github.com> * Story/124923 widget resolver (#1310) * Story/fix fvm translations (#1311) * story/fix-fvm-updating fix form view model not updating * story/fix-fvm-translations fix translations * story: value path selector on dashboard widget data source config (#1312) * value path selecter dropdown * add to case counts * Update projects/valtimo/dashboard/src/lib/data-sources/case-group-by/components/case-group-by-configuration/case-group-by-configuration.component.scss Co-authored-by: teodor-ritense <135605531+teodor-ritense@users.noreply.github.com> * pr suggestion --------- Co-authored-by: teodor-ritense <135605531+teodor-ritense@users.noreply.github.com> * story: task data source for dashboard (#1305) * wip * fix fe helper text * pr comments --------- Co-authored-by: teodor-ritense <135605531+teodor-ritense@users.noreply.github.com> Co-authored-by: jarred-ritense Co-authored-by: jarred-ritense <144021115+jarred-ritense@users.noreply.github.com> Co-authored-by: floris-thijssen-ritense Co-authored-by: Klaas Schuijtemaker <94360980+Klaas-Ritense@users.noreply.github.com> Co-authored-by: Sofia <131170700+sofiaIvarsRitense@users.noreply.github.com> --- .../carbon-list/carbon-list.component.ts | 10 +- .../carbon-list/carbon-list.module.ts | 2 + .../carbon-multi-input.component.html | 211 ++++----- .../carbon-multi-input.component.scss | 48 +- .../carbon-multi-input.component.ts | 134 +++--- .../multi-input/carbon-multi-input.module.ts | 16 + .../arbitrary-amount-value.component.html | 34 ++ .../arbitrary-amount-value.component.scss | 25 ++ .../arbitrary-amount-value.component.ts | 61 +++ .../arbitrary-amount-value/index.ts | 17 + .../multi-input/components/index.ts | 23 + .../components/key-dropdown-value/index.ts | 17 + .../key-dropdown-value.component.html | 53 +++ .../key-dropdown-value.component.scss | 25 ++ .../key-dropdown-value.component.ts | 50 +++ .../key-value-path-selector/index.ts | 17 + .../key-value-path-selector.component.html | 42 ++ .../key-value-path-selector.component.scss | 29 ++ .../key-value-path-selector.component.ts | 65 +++ .../multi-input/components/key-value/index.ts | 17 + .../key-value/key-value.component.html | 39 ++ .../key-value/key-value.component.scss | 25 ++ .../key-value/key-value.component.ts | 47 ++ .../components/single-value/index.ts | 17 + .../single-value/single-value.component.html | 24 + .../single-value/single-value.component.scss | 25 ++ .../single-value/single-value.component.ts | 42 ++ .../index.ts | 17 + ...ath-selector-dropdown-value.component.html | 56 +++ ...ath-selector-dropdown-value.component.scss | 24 + ...-path-selector-dropdown-value.component.ts | 69 +++ .../value-path-selector-value/index.ts | 17 + .../value-path-selector-value.component.html | 42 ++ .../value-path-selector-value.component.scss | 29 ++ .../value-path-selector-value.component.ts | 65 +++ .../components/value-path-selector/index.ts | 17 + .../value-path-selector.component.html | 29 +- .../value-path-selector.component.scss | 1 + .../value-path-selector.component.ts | 141 ++++-- .../type-converters/booleanTypeConverter.ts | 2 +- .../type-converters/stringTypeConverter.ts | 8 + .../src/lib/models/multi-input.model.ts | 12 +- .../lib/models/value-path-selector.model.ts | 46 +- .../components/src/lib/pipes/ellipsis.pipe.ts | 10 + .../valtimo/components/src/lib/pipes/index.ts | 1 + .../src/lib/services/valtimo-modal.service.ts | 5 +- .../services/value-path-selector.service.ts | 145 +++++- projects/valtimo/config/assets/core/de.json | 57 ++- projects/valtimo/config/assets/core/en.json | 57 ++- projects/valtimo/config/assets/core/nl.json | 57 ++- .../edit-dashboard-modal.html | 7 +- .../widget-modal/widget-modal.component.html | 2 +- .../src/lib/dashboard-management.module.ts | 4 + .../case-count/case-count.specification.ts | 10 +- .../case-count-configuration.component.html | 6 +- .../case-count-configuration.component.ts | 15 +- .../case-counts/case-counts.specification.ts | 10 +- .../case-counts-configuration.component.html | 11 +- .../case-counts-configuration.component.ts | 17 +- .../case-group-by/case-group-by.module.ts | 3 +- .../case-group-by.specification.ts | 10 +- ...case-group-by-configuration.component.html | 15 +- ...case-group-by-configuration.component.scss | 7 + .../case-group-by-configuration.component.ts | 16 +- .../lib/data-sources/data-sources.module.ts | 8 +- .../dashboard/src/lib/data-sources/index.ts | 1 + .../src/lib/data-sources/shared/conditions.ts | 26 ++ .../src/lib/data-sources/shared/index.ts | 17 + .../task-count/components/index.ts | 17 + .../task-count-configuration/index.ts | 17 + .../task-count-configuration.component.html | 43 ++ .../task-count-configuration.component.scss | 25 ++ .../task-count-configuration.component.ts | 152 +++++++ .../src/lib/data-sources/task-count/index.ts | 20 + .../data-sources/task-count/models/index.ts | 17 + .../task-count/models/task-count.model.ts | 23 + .../task-count/task-count.module.ts | 40 ++ .../task-count/task-count.specification.ts | 71 +++ ...anagement-widget-collection.component.html | 36 +- ...anagement-widget-collection.component.scss | 9 +- ...-management-widget-collection.component.ts | 20 +- ...gement-widget-fields-column.component.html | 79 +++- ...gement-widget-fields-column.component.scss | 9 +- ...nagement-widget-fields-column.component.ts | 56 ++- ...er-management-widget-fields.component.html | 1 + ...sier-management-widget-fields.component.ts | 7 +- ...ier-management-widget-table.component.html | 18 +- ...ier-management-widget-table.component.scss | 13 +- ...ssier-management-widget-table.component.ts | 20 +- .../src/lib/services/widget-fields.service.ts | 1 + .../dossier-detail.component.html | 27 +- .../field/widget-field.component.html | 12 +- .../field/widget-field.component.scss | 19 + .../field/widget-field.component.ts | 64 +-- .../widget-block/widget-block.component.ts | 1 - ...upporting-process-start-modal.component.ts | 1 + .../lib/models/case-widget-content.model.ts | 2 +- .../lib/models/case-widget-display.model.ts | 11 +- .../src/lib/models/case-widget.model.ts | 1 + .../form-view-model.component.html | 1 + .../form-view-model.component.ts | 16 +- .../plugin-configure.component.html | 1 + .../plugin-edit/plugin-edit.component.html | 1 + .../src/lib/plugin-management.module.ts | 2 + .../create-portal-task.component.html | 21 +- .../create-portal-task.component.ts | 4 +- ...rate-document-configuration.component.html | 11 +- ...nerate-document-configuration.component.ts | 12 +- .../verzoek-configuration.component.html | 48 +- .../verzoek-configuration.component.scss | 6 + .../verzoek-configuration.component.ts | 13 + .../process-link-modal.component.html | 2 +- .../src/lib/process-link.module.ts | 2 + .../src/lib/services/process-link.service.ts | 37 +- .../lib/services/open-zaak-upload.service.ts | 4 +- .../task-detail-content.component.ts | 3 +- .../dossier-management-zgw.component.ts | 15 +- .../models/dossier-management-zgw.model.ts | 1 + .../documenten-api-documents.component.html | 20 +- .../documenten-api-documents.component.ts | 48 ++ ...cumenten-api-metadata-modal.component.html | 414 +++++++++--------- ...documenten-api-metadata-modal.component.ts | 171 +++++--- .../documenten-api-tags.component.ts | 2 - ...nten-api-upload-field-modal.component.html | 115 +++++ ...nten-api-upload-field-modal.component.scss | 21 + ...menten-api-upload-field-modal.component.ts | 241 ++++++++++ ...ocumenten-api-upload-fields.component.html | 45 ++ ...ocumenten-api-upload-fields.component.scss | 19 + .../documenten-api-upload-fields.component.ts | 163 +++++++ .../documenten-api/components/index.ts | 4 +- .../documenten-api-uploader-edit-form.ts | 336 +++++++++++--- .../documenten-api-uploader.component.html | 11 +- .../documenten-api-uploader.component.ts | 123 +++++- .../models/documenten-api-metadata.model.ts | 37 +- .../documenten-api-upload-field.model.ts | 69 +++ .../documenten-api-document.service.ts | 27 ++ 136 files changed, 4256 insertions(+), 849 deletions(-) create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/arbitrary-amount-value/arbitrary-amount-value.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/arbitrary-amount-value/arbitrary-amount-value.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/arbitrary-amount-value/arbitrary-amount-value.component.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/arbitrary-amount-value/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-dropdown-value/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-dropdown-value/key-dropdown-value.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-dropdown-value/key-dropdown-value.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-dropdown-value/key-dropdown-value.component.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value-path-selector/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value-path-selector/key-value-path-selector.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value-path-selector/key-value-path-selector.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value-path-selector/key-value-path-selector.component.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value/key-value.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value/key-value.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/key-value/key-value.component.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/single-value/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/single-value/single-value.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/single-value/single-value.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/single-value/single-value.component.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-dropdown-value/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-dropdown-value/value-path-selector-dropdown-value.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-dropdown-value/value-path-selector-dropdown-value.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-dropdown-value/value-path-selector-dropdown-value.component.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-value/index.ts create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-value/value-path-selector-value.component.html create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-value/value-path-selector-value.component.scss create mode 100644 projects/valtimo/components/src/lib/components/multi-input/components/value-path-selector-value/value-path-selector-value.component.ts create mode 100644 projects/valtimo/components/src/lib/components/value-path-selector/index.ts create mode 100644 projects/valtimo/components/src/lib/pipes/ellipsis.pipe.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/shared/conditions.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/shared/index.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/components/index.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/components/task-count-configuration/index.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/components/task-count-configuration/task-count-configuration.component.html create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/components/task-count-configuration/task-count-configuration.component.scss create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/components/task-count-configuration/task-count-configuration.component.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/index.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/models/index.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/models/task-count.model.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/task-count.module.ts create mode 100644 projects/valtimo/dashboard/src/lib/data-sources/task-count/task-count.specification.ts create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-upload-field-model/documenten-api-upload-field-modal.component.html create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-upload-field-model/documenten-api-upload-field-modal.component.scss create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-upload-field-model/documenten-api-upload-field-modal.component.ts create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-upload-fields/documenten-api-upload-fields.component.html create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-upload-fields/documenten-api-upload-fields.component.scss create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-upload-fields/documenten-api-upload-fields.component.ts create mode 100644 projects/valtimo/zgw/src/lib/modules/documenten-api/models/documenten-api-upload-field.model.ts diff --git a/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.component.ts b/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.component.ts index 25086d022..20045bfba 100644 --- a/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.component.ts +++ b/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.component.ts @@ -72,6 +72,7 @@ import { TAG_ELLIPSIS_LIMIT, ViewType, } from '../../models'; +import {EllipsisPipe} from '../../pipes'; import {KeyStateService} from '../../services/key-state.service'; import {ViewContentService} from '../view-content/view-content.service'; import {CarbonListFilterPipe} from './CarbonListFilterPipe.directive'; @@ -256,6 +257,7 @@ export class CarbonListComponent implements OnInit, AfterViewInit, OnDestroy { } constructor( + private readonly ellipsisPipe: EllipsisPipe, private readonly filterPipe: CarbonListFilterPipe, private readonly iconService: IconService, private readonly logger: NGXLogger, @@ -461,7 +463,7 @@ export class CarbonListComponent implements OnInit, AfterViewInit, OnDestroy { title: resolvedObject ?? '-', data: (field.tooltipCharLimit - ? this.transformContentEllipsis(resolvedObject, field.tooltipCharLimit) + ? this.ellipsisPipe.transform(resolvedObject, field.tooltipCharLimit) : resolvedObject) ?? '-', template: this.defaultTemplate, item, @@ -702,7 +704,7 @@ export class CarbonListComponent implements OnInit, AfterViewInit, OnDestroy { const tags = itemTags.map((tag: CarbonTag, index: number) => index === 0 - ? {...tag, ellipsisContent: this.transformContentEllipsis(tag.content, TAG_ELLIPSIS_LIMIT)} + ? {...tag, ellipsisContent: this.ellipsisPipe.transform(tag.content, TAG_ELLIPSIS_LIMIT)} : tag ); @@ -711,8 +713,4 @@ export class CarbonListComponent implements OnInit, AfterViewInit, OnDestroy { template: this.tagTemplate, }); } - - private transformContentEllipsis(content: string, limit: number): string { - return content.substring(0, limit - 1) + (content.length > limit ? '...' : ''); - } } diff --git a/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.module.ts b/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.module.ts index 35e969f20..bb6010346 100644 --- a/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.module.ts +++ b/projects/valtimo/components/src/lib/components/carbon-list/carbon-list.module.ts @@ -29,6 +29,7 @@ import { TagModule, } from 'carbon-components-angular'; import {ValtimoCdsModalDirectiveModule} from '../../directives/valtimo-cds-modal/valtimo-cds-modal-directive.module'; +import {EllipsisPipe} from '../../pipes'; import {CardModule} from '../card/card.module'; import {ViewContentModule} from '../view-content/view-content.module'; import {CarbonListComponent} from './carbon-list.component'; @@ -63,5 +64,6 @@ import {CarbonTagsModalComponent} from './tags-modal/tags-modal.component'; ViewContentModule, ], exports: [CarbonListComponent, CarbonListFilterPipe, CarbonNoResultsComponent], + providers: [EllipsisPipe], }) export class CarbonListModule {} diff --git a/projects/valtimo/components/src/lib/components/multi-input/carbon-multi-input.component.html b/projects/valtimo/components/src/lib/components/multi-input/carbon-multi-input.component.html index a47265e90..11e17d7c0 100644 --- a/projects/valtimo/components/src/lib/components/multi-input/carbon-multi-input.component.html +++ b/projects/valtimo/components/src/lib/components/multi-input/carbon-multi-input.component.html @@ -47,27 +47,102 @@ *ngFor="let value of values$ | async as values; trackBy: trackByFn; index as i" class="v-multi-input__row" > - - - - - - - - - - - - - - - + @switch (type) { + @case ('value') { + + } + @case ('keyValue') { + + } + @case ('keyDropdownValue') { + + } + @case ('arbitraryAmount') { + + } + @case ('keyValuePathSelector') { + + } + @case ('valuePathSelectorValue') { + + } + @case ('valuePathSelectorDropdownValue') { + + } + }