@yuuvis/client-framework 1.0.3 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/lib/actions/delete-action/delete/delete.component.d.ts +3 -3
- package/actions/lib/actions/delete-action/delete-action.d.ts +1 -1
- package/actions/lib/actions.service.d.ts +7 -3
- package/actions/lib/components/contextmenu/contextmenu.component.d.ts +3 -1
- package/autocomplete/README.md +3 -0
- package/autocomplete/index.d.ts +3 -0
- package/autocomplete/lib/autocomplete.component.d.ts +72 -0
- package/autocomplete/lib/autocomplete.interface.d.ts +4 -0
- package/autocomplete/lib/autocomplete.module.d.ts +7 -0
- package/common/index.d.ts +4 -4
- package/common/lib/common.module.d.ts +19 -0
- package/common/lib/common.utils.d.ts +2 -0
- package/common/lib/components/confirm/confirm.component.d.ts +7 -0
- package/common/lib/components/confirm/confirm.interface.d.ts +7 -0
- package/common/lib/components/confirm/confirm.service.d.ts +9 -0
- package/common/lib/components/dialog/dialog.component.d.ts +6 -0
- package/common/lib/components/dialog/dialog.options.d.ts +7 -0
- package/common/lib/components/index.d.ts +5 -0
- package/common/lib/directives/autofocus-child.directive.d.ts +13 -0
- package/common/lib/directives/autofocus-delayed.directive.d.ts +18 -0
- package/common/lib/directives/drag-scroll.directive.d.ts +20 -0
- package/common/lib/directives/index.d.ts +8 -4
- package/common/lib/directives/noop-value-accessor.directive.d.ts +2 -2
- package/common/lib/mat-form-field.abstract.d.ts +41 -0
- package/common/lib/services/index.d.ts +1 -1
- package/common/lib/services/layout-settings/layout-settings.service.d.ts +18 -0
- package/datepicker/README.md +3 -0
- package/datepicker/index.d.ts +5 -0
- package/datepicker/lib/calendar/calendar.component.d.ts +72 -0
- package/datepicker/lib/date-input/date-input-element/date-input-element.component.d.ts +43 -0
- package/datepicker/lib/date-input/date-input-hour-element/date-input-hour-element.component.d.ts +11 -0
- package/datepicker/lib/date-input/date-input.component.d.ts +61 -0
- package/datepicker/lib/datepicker-calendar/datepicker-calendar-trigger.component.d.ts +7 -0
- package/datepicker/lib/datepicker-calendar/datepicker-calendar.component.d.ts +12 -0
- package/datepicker/lib/datepicker.component.d.ts +80 -0
- package/datepicker/lib/datepicker.interface.d.ts +34 -0
- package/datepicker/lib/datepicker.module.d.ts +9 -0
- package/datepicker/lib/datepicker.service.d.ts +46 -0
- package/datepicker/lib/datepicker.utils.d.ts +23 -0
- package/datepicker/lib/time-input/time-input.component.d.ts +36 -0
- package/datepicker/lib/time-input/time-input.interface.d.ts +6 -0
- package/fesm2022/yuuvis-client-framework-actions.mjs +147 -105
- package/fesm2022/yuuvis-client-framework-actions.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-app-bar.mjs +7 -8
- package/fesm2022/yuuvis-client-framework-app-bar.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-autocomplete.mjs +210 -0
- package/fesm2022/yuuvis-client-framework-autocomplete.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-clipboard.mjs +9 -9
- package/fesm2022/yuuvis-client-framework-clipboard.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-common.mjs +853 -780
- package/fesm2022/yuuvis-client-framework-common.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-datepicker.mjs +1688 -0
- package/fesm2022/yuuvis-client-framework-datepicker.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-forms.mjs +945 -1157
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-icons.mjs +85 -12
- package/fesm2022/yuuvis-client-framework-icons.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-list.mjs +81 -45
- package/fesm2022/yuuvis-client-framework-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-master-details.mjs +112 -0
- package/fesm2022/yuuvis-client-framework-master-details.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs +60 -0
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs +125 -100
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-details.mjs +49 -59
- package/fesm2022/yuuvis-client-framework-object-details.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-flavor.mjs +188 -77
- package/fesm2022/yuuvis-client-framework-object-flavor.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-form.mjs +99 -184
- package/fesm2022/yuuvis-client-framework-object-form.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-preview.mjs +11 -11
- package/fesm2022/yuuvis-client-framework-object-preview.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-summary.mjs +46 -42
- package/fesm2022/yuuvis-client-framework-object-summary.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-overflow-menu.mjs +126 -0
- package/fesm2022/yuuvis-client-framework-overflow-menu.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-pagination.mjs +7 -9
- package/fesm2022/yuuvis-client-framework-pagination.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-panel.mjs +8 -7
- package/fesm2022/yuuvis-client-framework-panel.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-popout.mjs +212 -0
- package/fesm2022/yuuvis-client-framework-popout.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-renderer.mjs +99 -72
- package/fesm2022/yuuvis-client-framework-renderer.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-sequence-list.mjs +29 -112
- package/fesm2022/yuuvis-client-framework-sequence-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-simple-search.mjs +40 -21
- package/fesm2022/yuuvis-client-framework-simple-search.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-split-view.mjs +188 -0
- package/fesm2022/yuuvis-client-framework-split-view.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-tile-list.mjs +100 -93
- package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-tree.mjs +15 -15
- package/fesm2022/yuuvis-client-framework-tree.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-upload-progress.mjs +16 -21
- package/fesm2022/yuuvis-client-framework-upload-progress.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework.mjs +4 -4
- package/fesm2022/yuuvis-client-framework.mjs.map +1 -1
- package/forms/index.d.ts +7 -1
- package/forms/lib/elements/catalog/catalog.component.d.ts +17 -56
- package/forms/lib/elements/data-grid/edit-table-data/edit-data.component.d.ts +5 -4
- package/forms/lib/elements/datetime/datetime.component.d.ts +19 -10
- package/forms/lib/elements/datetime-range/datetime-range.component.d.ts +12 -27
- package/forms/lib/elements/index.d.ts +0 -1
- package/forms/lib/elements/number/number.component.d.ts +21 -30
- package/forms/lib/elements/number-range/number-range.component.d.ts +12 -7
- package/forms/lib/elements/organization/organization.component.d.ts +23 -51
- package/forms/lib/elements/range-select-date/range-select-date.component.d.ts +12 -7
- package/forms/lib/elements/range-select-filesize/range-select-filesize.component.d.ts +12 -7
- package/forms/lib/elements/string/string.component.d.ts +15 -20
- package/forms/lib/forms.module.d.ts +8 -11
- package/icons/index.d.ts +1 -0
- package/icons/lib/icon.component.d.ts +20 -0
- package/lib/assets/i18n/de.json +7 -23
- package/lib/assets/i18n/en.json +10 -26
- package/list/index.d.ts +1 -0
- package/list/lib/list-item.directive.d.ts +5 -4
- package/list/lib/list.component.d.ts +6 -3
- package/list/lib/list.module.d.ts +8 -0
- package/master-details/README.md +3 -0
- package/master-details/index.d.ts +2 -0
- package/master-details/lib/master-details.component.d.ts +58 -0
- package/master-details/lib/master-details.interface.d.ts +7 -0
- package/master-details/lib/master-details.module.d.ts +7 -0
- package/metadata-form/index.d.ts +4 -1
- package/metadata-form/lib/metadata-form-field/metadata-form-field.component.d.ts +4 -17
- package/metadata-form/lib/metadata-form-field/metadata-form-field.interface.d.ts +11 -0
- package/metadata-form/lib/object-metadata-element-error.directive.d.ts +13 -0
- package/metadata-form/lib/object-metadata-element-label.directive.d.ts +10 -0
- package/metadata-form/lib/object-metadata-element-template.directive.d.ts +3 -3
- package/metadata-form-defaults/README.md +3 -0
- package/metadata-form-defaults/index.d.ts +2 -0
- package/metadata-form-defaults/lib/metadata-form-defaults.module.d.ts +7 -0
- package/object-details/lib/object-audit/object-audit.component.d.ts +3 -9
- package/object-details/lib/object-details.component.d.ts +0 -2
- package/object-details/lib/object-metadata/object-metadata.component.d.ts +4 -3
- package/object-details/lib/retention-badge/retention-badge.component.d.ts +0 -3
- package/object-flavor/index.d.ts +1 -0
- package/object-flavor/lib/abstract-apply-create-flavor/abstract-apply-create-flavor.component.d.ts +1 -2
- package/object-flavor/lib/abstract-apply-object-flavor/abstract-apply-object-flavor.component.d.ts +3 -2
- package/object-flavor/lib/default-apply-flavor/default-apply-flavor.component.d.ts +19 -0
- package/object-flavor/lib/flavor-chip/flavor-chip.component.d.ts +1 -1
- package/object-flavor/lib/object-flavor/object-flavor.component.d.ts +3 -6
- package/object-flavor/lib/object-flavor-picker/object-flavor-picker.component.d.ts +0 -1
- package/object-form/index.d.ts +1 -1
- package/object-form/lib/object-form-element/object-form-element.component.d.ts +2 -2
- package/object-form/lib/object-form-group/object-form-group.component.d.ts +1 -3
- package/object-form/lib/object-form.component.d.ts +2 -2
- package/object-form/lib/object-form.interface.d.ts +0 -44
- package/object-form/lib/object-form.module.d.ts +7 -0
- package/object-form/lib/object-form.service.d.ts +1 -2
- package/object-form/lib/object-form.utils.d.ts +1 -1
- package/object-summary/lib/object-summary/object-summary.component.d.ts +13 -15
- package/overflow-menu/README.md +3 -0
- package/overflow-menu/index.d.ts +3 -0
- package/overflow-menu/lib/overflow-menu.component.d.ts +31 -0
- package/overflow-menu/lib/overflow-menu.interface.d.ts +9 -0
- package/overflow-menu/lib/overflow-menu.module.d.ts +7 -0
- package/package.json +40 -66
- package/popout/README.md +3 -0
- package/popout/index.d.ts +3 -0
- package/popout/lib/popout.component.d.ts +58 -0
- package/popout/lib/popout.interface.d.ts +17 -0
- package/popout/lib/popout.module.d.ts +7 -0
- package/renderer/lib/property-renderer/abstract.renderer.d.ts +4 -4
- package/renderer/lib/property-renderer/icon.renderer.component.d.ts +2 -0
- package/renderer/lib/renderer.directive.d.ts +4 -3
- package/sequence-list/index.d.ts +0 -1
- package/sequence-list/lib/sequence-list.component.d.ts +0 -4
- package/simple-search/index.d.ts +0 -1
- package/simple-search/lib/simple-search/simple-search.component.d.ts +6 -10
- package/split-view/README.md +3 -0
- package/split-view/index.d.ts +4 -0
- package/split-view/lib/split-area.directive.d.ts +16 -0
- package/split-view/lib/split-view.component.d.ts +76 -0
- package/split-view/lib/split-view.interface.d.ts +10 -0
- package/split-view/lib/split-view.module.d.ts +8 -0
- package/styles/client-framework.scss +21 -67
- package/tile-list/lib/tile/tile.component.d.ts +1 -2
- package/tile-list/lib/tile-config/property-select/property-select.component.d.ts +0 -1
- package/tile-list/lib/tile-config/tile-config-trigger/tile-config-trigger.component.d.ts +1 -2
- package/tile-list/lib/tile-config/tile-config.component.d.ts +0 -3
- package/tile-list/lib/tile-list/tile-list.component.d.ts +5 -5
- package/upload-progress/lib/upload-progress/upload-progress-overlay/upload-progress-overlay.component.d.ts +0 -5
- package/upload-progress/lib/upload-progress/upload-progress.component.d.ts +0 -4
- package/common/lib/components/focus-indicator/focus-indicator.component.d.ts +0 -7
- package/common/lib/components/token-input/token-input.component.d.ts +0 -55
- package/common/lib/components/token-input/token-input.interface.d.ts +0 -8
- package/common/lib/services/error-messages/error-messages.service.d.ts +0 -7
- package/esm2022/actions/index.mjs +0 -7
- package/esm2022/actions/lib/actions/copy-action/copy-action.mjs +0 -31
- package/esm2022/actions/lib/actions/cut-action/cut-action.mjs +0 -30
- package/esm2022/actions/lib/actions/delete-action/delete/delete.component.mjs +0 -67
- package/esm2022/actions/lib/actions/delete-action/delete-action.mjs +0 -38
- package/esm2022/actions/lib/actions/download-action/download-action.mjs +0 -33
- package/esm2022/actions/lib/actions.icon.mjs +0 -8
- package/esm2022/actions/lib/actions.interface.mjs +0 -19
- package/esm2022/actions/lib/actions.module.mjs +0 -16
- package/esm2022/actions/lib/actions.service.mjs +0 -89
- package/esm2022/actions/lib/components/contextmenu/contextmenu.component.mjs +0 -27
- package/esm2022/actions/yuuvis-client-framework-actions.mjs +0 -5
- package/esm2022/app-bar/index.mjs +0 -2
- package/esm2022/app-bar/lib/app-bar.component.mjs +0 -89
- package/esm2022/app-bar/yuuvis-client-framework-app-bar.mjs +0 -5
- package/esm2022/clipboard/index.mjs +0 -2
- package/esm2022/clipboard/lib/clipboard.component.mjs +0 -48
- package/esm2022/clipboard/yuuvis-client-framework-clipboard.mjs +0 -5
- package/esm2022/common/index.mjs +0 -7
- package/esm2022/common/lib/components/focus-indicator/focus-indicator.component.mjs +0 -41
- package/esm2022/common/lib/components/token-input/token-input.component.mjs +0 -324
- package/esm2022/common/lib/components/token-input/token-input.interface.mjs +0 -2
- package/esm2022/common/lib/directives/busy-overlay.directive.mjs +0 -88
- package/esm2022/common/lib/directives/click-double.directive.mjs +0 -61
- package/esm2022/common/lib/directives/container-size.directive.mjs +0 -56
- package/esm2022/common/lib/directives/drag-select.directive.mjs +0 -114
- package/esm2022/common/lib/directives/file-drop-zone/file-drop-zone.directive.mjs +0 -153
- package/esm2022/common/lib/directives/file-drop-zone/file-drop-zone.interface.mjs +0 -2
- package/esm2022/common/lib/directives/focus-within.directive.mjs +0 -81
- package/esm2022/common/lib/directives/index.mjs +0 -9
- package/esm2022/common/lib/directives/light-dismiss.directive.mjs +0 -44
- package/esm2022/common/lib/directives/longpress.directive.mjs +0 -36
- package/esm2022/common/lib/directives/noop-value-accessor.directive.mjs +0 -42
- package/esm2022/common/lib/services/error-messages/error-messages.service.mjs +0 -68
- package/esm2022/common/lib/services/index.mjs +0 -2
- package/esm2022/common/yuuvis-client-framework-common.mjs +0 -5
- package/esm2022/forms/index.mjs +0 -24
- package/esm2022/forms/lib/elements/catalog/catalog.component.mjs +0 -118
- package/esm2022/forms/lib/elements/data-grid/data-grid/data-grid.component.mjs +0 -172
- package/esm2022/forms/lib/elements/data-grid/edit-table-data/edit-data.component.mjs +0 -95
- package/esm2022/forms/lib/elements/data-grid/model/data-grid.interface.mjs +0 -9
- package/esm2022/forms/lib/elements/datetime/datetime.component.mjs +0 -82
- package/esm2022/forms/lib/elements/datetime-range/datetime-range.component.mjs +0 -166
- package/esm2022/forms/lib/elements/index.mjs +0 -11
- package/esm2022/forms/lib/elements/number/number.component.mjs +0 -195
- package/esm2022/forms/lib/elements/number-range/number-range.component.mjs +0 -176
- package/esm2022/forms/lib/elements/organization/organization.component.mjs +0 -286
- package/esm2022/forms/lib/elements/range-select-date/date-range-picker/date-range-picker.component.mjs +0 -38
- package/esm2022/forms/lib/elements/range-select-date/range-select-date.component.mjs +0 -181
- package/esm2022/forms/lib/elements/range-select-date/range-select-date.interface.mjs +0 -2
- package/esm2022/forms/lib/elements/range-select-filesize/range-select-filesize.component.mjs +0 -98
- package/esm2022/forms/lib/elements/range-select-filesize/range-select-filesize.interface.mjs +0 -2
- package/esm2022/forms/lib/elements/string/string.component.mjs +0 -261
- package/esm2022/forms/lib/form-input/form-input.component.mjs +0 -88
- package/esm2022/forms/lib/forms.module.mjs +0 -58
- package/esm2022/forms/yuuvis-client-framework-forms.mjs +0 -5
- package/esm2022/icons/index.mjs +0 -4
- package/esm2022/icons/lib/icon.service.mjs +0 -59
- package/esm2022/icons/lib/icons.mjs +0 -32
- package/esm2022/icons/lib/object-type-icon/object-type-icon.component.mjs +0 -29
- package/esm2022/icons/yuuvis-client-framework-icons.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/yuuvis-client-framework.module.mjs +0 -15
- package/esm2022/list/index.mjs +0 -3
- package/esm2022/list/lib/list-item.directive.mjs +0 -72
- package/esm2022/list/lib/list.component.mjs +0 -135
- package/esm2022/list/yuuvis-client-framework-list.mjs +0 -5
- package/esm2022/metadata-form/index.mjs +0 -4
- package/esm2022/metadata-form/lib/metadata-default-templates/metadata-default-templates.component.mjs +0 -32
- package/esm2022/metadata-form/lib/metadata-form-element-registry.service.mjs +0 -99
- package/esm2022/metadata-form/lib/metadata-form-field/metadata-form-field.component.mjs +0 -83
- package/esm2022/metadata-form/lib/object-metadata-element-template.directive.mjs +0 -52
- package/esm2022/metadata-form/yuuvis-client-framework-metadata-form.mjs +0 -5
- package/esm2022/object-details/index.mjs +0 -8
- package/esm2022/object-details/lib/object-audit/object-audit.component.mjs +0 -195
- package/esm2022/object-details/lib/object-details-shell/object-details-shell.component.mjs +0 -127
- package/esm2022/object-details/lib/object-details.component.mjs +0 -61
- package/esm2022/object-details/lib/object-metadata/form-section-group.pipe.mjs +0 -17
- package/esm2022/object-details/lib/object-metadata/object-metadata.component.mjs +0 -202
- package/esm2022/object-details/lib/object-metadata/object-metadata.interface.mjs +0 -2
- package/esm2022/object-details/lib/retention-badge/retention-badge.component.mjs +0 -27
- package/esm2022/object-details/yuuvis-client-framework-object-details.mjs +0 -5
- package/esm2022/object-flavor/index.mjs +0 -6
- package/esm2022/object-flavor/lib/abstract-apply-create-flavor/abstract-apply-create-flavor.component.mjs +0 -25
- package/esm2022/object-flavor/lib/abstract-apply-object-flavor/abstract-apply-object-flavor.component.mjs +0 -21
- package/esm2022/object-flavor/lib/flavor-chip/flavor-chip.component.mjs +0 -35
- package/esm2022/object-flavor/lib/object-flavor/object-flavor.component.mjs +0 -93
- package/esm2022/object-flavor/lib/object-flavor-picker/object-flavor-picker.component.mjs +0 -43
- package/esm2022/object-flavor/yuuvis-client-framework-object-flavor.mjs +0 -5
- package/esm2022/object-form/index.mjs +0 -5
- package/esm2022/object-form/lib/form-scripting.api.interface.mjs +0 -2
- package/esm2022/object-form/lib/form-scripting.service.mjs +0 -160
- package/esm2022/object-form/lib/object-form-element/object-form-element.component.mjs +0 -87
- package/esm2022/object-form/lib/object-form-extension.interface.mjs +0 -36
- package/esm2022/object-form/lib/object-form-group/object-form-group.component.mjs +0 -85
- package/esm2022/object-form/lib/object-form-script/form-scripting-element-extension/form-scripting-element-extension.component.mjs +0 -23
- package/esm2022/object-form/lib/object-form-script/object-form-script.service.mjs +0 -115
- package/esm2022/object-form/lib/object-form-script/object-form-scripting-scope.mjs +0 -251
- package/esm2022/object-form/lib/object-form-translate.service.mjs +0 -73
- package/esm2022/object-form/lib/object-form.component.mjs +0 -628
- package/esm2022/object-form/lib/object-form.interface.mjs +0 -9
- package/esm2022/object-form/lib/object-form.model.mjs +0 -20
- package/esm2022/object-form/lib/object-form.service.mjs +0 -130
- package/esm2022/object-form/lib/object-form.utils.mjs +0 -55
- package/esm2022/object-form/lib/object-form.validation.mjs +0 -48
- package/esm2022/object-form/yuuvis-client-framework-object-form.mjs +0 -5
- package/esm2022/object-preview/index.mjs +0 -3
- package/esm2022/object-preview/lib/components/index.mjs +0 -3
- package/esm2022/object-preview/lib/components/object-email-preview/object-email-preview.component.mjs +0 -45
- package/esm2022/object-preview/lib/components/object-preview/object-preview.component.mjs +0 -78
- package/esm2022/object-preview/lib/services/object-preview.service.mjs +0 -119
- package/esm2022/object-preview/yuuvis-client-framework-object-preview.mjs +0 -5
- package/esm2022/object-summary/index.mjs +0 -5
- package/esm2022/object-summary/lib/multi-object-summary/multi-object-summary.component.mjs +0 -33
- package/esm2022/object-summary/lib/object-summary/object-summary.component.mjs +0 -275
- package/esm2022/object-summary/lib/object-summary-data/object-summary-data.component.mjs +0 -80
- package/esm2022/object-summary/lib/object-summary.module.mjs +0 -15
- package/esm2022/object-summary/yuuvis-client-framework-object-summary.mjs +0 -5
- package/esm2022/pagination/index.mjs +0 -3
- package/esm2022/pagination/lib/pagination.component.mjs +0 -46
- package/esm2022/pagination/lib/pagination.interface.mjs +0 -2
- package/esm2022/pagination/yuuvis-client-framework-pagination.mjs +0 -5
- package/esm2022/panel/index.mjs +0 -2
- package/esm2022/panel/lib/panel.component.mjs +0 -20
- package/esm2022/panel/yuuvis-client-framework-panel.mjs +0 -5
- package/esm2022/renderer/index.mjs +0 -11
- package/esm2022/renderer/lib/property-renderer/abstract.renderer.mjs +0 -29
- package/esm2022/renderer/lib/property-renderer/datetime.renderer.mjs +0 -13
- package/esm2022/renderer/lib/property-renderer/decimal.renderer.component.mjs +0 -12
- package/esm2022/renderer/lib/property-renderer/filesize.renderer.component.mjs +0 -28
- package/esm2022/renderer/lib/property-renderer/icon.renderer.component.mjs +0 -23
- package/esm2022/renderer/lib/property-renderer/integer.renderer.component.mjs +0 -12
- package/esm2022/renderer/lib/property-renderer/organization.renderer.mjs +0 -19
- package/esm2022/renderer/lib/property-renderer/string.renderer.component.mjs +0 -12
- package/esm2022/renderer/lib/property-renderer/unknown.renderer.mjs +0 -12
- package/esm2022/renderer/lib/renderer.directive.mjs +0 -51
- package/esm2022/renderer/lib/services/renderer/renderer.interface.mjs +0 -2
- package/esm2022/renderer/lib/services/renderer/renderer.service.mjs +0 -84
- package/esm2022/renderer/yuuvis-client-framework-renderer.mjs +0 -5
- package/esm2022/sequence-list/index.mjs +0 -4
- package/esm2022/sequence-list/lib/due-date-picker/due-date-picker.component.mjs +0 -99
- package/esm2022/sequence-list/lib/sequence-list.component.mjs +0 -141
- package/esm2022/sequence-list/lib/sequence-list.interface.mjs +0 -2
- package/esm2022/sequence-list/yuuvis-client-framework-sequence-list.mjs +0 -5
- package/esm2022/simple-search/index.mjs +0 -3
- package/esm2022/simple-search/lib/simple-search/simple-search.component.mjs +0 -111
- package/esm2022/simple-search/lib/simple-search/simple-search.interface.mjs +0 -2
- package/esm2022/simple-search/yuuvis-client-framework-simple-search.mjs +0 -5
- package/esm2022/tile-list/index.mjs +0 -11
- package/esm2022/tile-list/lib/tile/tile.component.mjs +0 -53
- package/esm2022/tile-list/lib/tile-config/action-select/action-select.component.mjs +0 -25
- package/esm2022/tile-list/lib/tile-config/icon-select/icon-select.component.mjs +0 -33
- package/esm2022/tile-list/lib/tile-config/property-select/property-select.component.mjs +0 -91
- package/esm2022/tile-list/lib/tile-config/tile-config-tile/tile-config-tile.component.mjs +0 -66
- package/esm2022/tile-list/lib/tile-config/tile-config-trigger/tile-config-trigger.component.mjs +0 -46
- package/esm2022/tile-list/lib/tile-config/tile-config.component.mjs +0 -156
- package/esm2022/tile-list/lib/tile-extension/directive/tile-extension.directive.mjs +0 -37
- package/esm2022/tile-list/lib/tile-extension/extensions/email.extension.mjs +0 -42
- package/esm2022/tile-list/lib/tile-extension/tile-extension.service.mjs +0 -35
- package/esm2022/tile-list/lib/tile-list/tile-list.component.mjs +0 -510
- package/esm2022/tile-list/lib/tile-list/tile-list.interface.mjs +0 -2
- package/esm2022/tile-list/yuuvis-client-framework-tile-list.mjs +0 -5
- package/esm2022/token-search/index.mjs +0 -3
- package/esm2022/token-search/token-search.component.mjs +0 -78
- package/esm2022/token-search/token-search.interface.mjs +0 -2
- package/esm2022/token-search/yuuvis-client-framework-token-search.mjs +0 -5
- package/esm2022/tree/index.mjs +0 -3
- package/esm2022/tree/lib/tree-node/tree-node.component.mjs +0 -65
- package/esm2022/tree/lib/tree.component.mjs +0 -148
- package/esm2022/tree/lib/tree.interface.mjs +0 -2
- package/esm2022/tree/lib/tree.service.mjs +0 -95
- package/esm2022/tree/yuuvis-client-framework-tree.mjs +0 -5
- package/esm2022/upload-progress/index.mjs +0 -2
- package/esm2022/upload-progress/lib/upload-progress/upload-progress-overlay/upload-progress-overlay.component.mjs +0 -49
- package/esm2022/upload-progress/lib/upload-progress/upload-progress.component.mjs +0 -37
- package/esm2022/upload-progress/yuuvis-client-framework-upload-progress.mjs +0 -5
- package/esm2022/user-avatar/index.mjs +0 -3
- package/esm2022/user-avatar/lib/user-avatar.component.mjs +0 -69
- package/esm2022/user-avatar/lib/user-avatar.module.mjs +0 -24
- package/esm2022/user-avatar/yuuvis-client-framework-user-avatar.mjs +0 -5
- package/esm2022/yuuvis-client-framework.mjs +0 -5
- package/fesm2022/yuuvis-client-framework-token-search.mjs +0 -85
- package/fesm2022/yuuvis-client-framework-token-search.mjs.map +0 -1
- package/fesm2022/yuuvis-client-framework-user-avatar.mjs +0 -96
- package/fesm2022/yuuvis-client-framework-user-avatar.mjs.map +0 -1
- package/forms/lib/form-input/form-input.component.d.ts +0 -48
- package/object-form/lib/object-form-translate.service.d.ts +0 -15
- package/object-form/lib/object-form.model.d.ts +0 -18
- package/sequence-list/lib/due-date-picker/due-date-picker.component.d.ts +0 -28
- package/simple-search/lib/simple-search/simple-search.interface.d.ts +0 -4
- package/token-search/README.md +0 -3
- package/token-search/index.d.ts +0 -2
- package/token-search/token-search.component.d.ts +0 -22
- package/token-search/token-search.interface.d.ts +0 -4
- package/user-avatar/README.md +0 -3
- package/user-avatar/index.d.ts +0 -2
- package/user-avatar/lib/user-avatar.component.d.ts +0 -44
- package/user-avatar/lib/user-avatar.module.d.ts +0 -8
- /package/{metadata-form → metadata-form-defaults}/lib/metadata-default-templates/metadata-default-templates.component.d.ts +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { SplitComponent, SplitDirection } from 'angular-split';
|
|
3
|
+
import { SplitAreaDirective } from './split-area.directive';
|
|
4
|
+
import { SplitViewLayoutSettings, SplitViewOutputData } from './split-view.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Component for creating a split view with resizable areas.
|
|
8
|
+
*
|
|
9
|
+
* ```html
|
|
10
|
+
* <yuv-split-view>
|
|
11
|
+
* <ng-template yuvSplitArea [size]="20">Aside area</ng-template>
|
|
12
|
+
* <ng-template yuvSplitArea [size]="80">Main area</ng-template>
|
|
13
|
+
* </yuv-split-view>
|
|
14
|
+
* ```
|
|
15
|
+
* If you set a `layoutSettingsID` it will be used to store the state of
|
|
16
|
+
* the split view (area sizes and visibility) in localStorage everytime it
|
|
17
|
+
* changes. The component will then also load and apply that state once the
|
|
18
|
+
* component is loaded.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class SplitViewComponent implements AfterViewInit {
|
|
22
|
+
#private;
|
|
23
|
+
splitAreas: import("@angular/core").Signal<readonly SplitAreaDirective[]>;
|
|
24
|
+
asSplitComponent: import("@angular/core").Signal<SplitComponent>;
|
|
25
|
+
/**
|
|
26
|
+
* The split views direction. Could be 'horizontal' or 'vertical'. Defaults to 'horizontal'.
|
|
27
|
+
*/
|
|
28
|
+
direction: import("@angular/core").InputSignal<SplitDirection>;
|
|
29
|
+
/**
|
|
30
|
+
* Size of the gutter in Pixel (defaults to 16).
|
|
31
|
+
*/
|
|
32
|
+
gutterSize: import("@angular/core").InputSignal<number>;
|
|
33
|
+
restrictMove: import("@angular/core").InputSignal<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Disable the dragging feature (remove cursor/image on gutters).
|
|
36
|
+
*/
|
|
37
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
38
|
+
disabledEffect: import("@angular/core").EffectRef;
|
|
39
|
+
_disabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Layout settings are the state of the split view that could be persisted.
|
|
42
|
+
* Setting a `layoutSettingsID` will save the current state (split area sizes etc.)
|
|
43
|
+
* to the local storage. If the component is created, it will load those settings and
|
|
44
|
+
* re-apply them.
|
|
45
|
+
*/
|
|
46
|
+
layoutSettingsID: import("@angular/core").InputSignal<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* Emitted when the state (split area sizes etc.) of the split view changed.
|
|
49
|
+
*/
|
|
50
|
+
layoutSettingsChange: import("@angular/core").OutputEmitterRef<SplitViewLayoutSettings>;
|
|
51
|
+
/**
|
|
52
|
+
* Emitted when dragging the split gutter starts
|
|
53
|
+
*/
|
|
54
|
+
dragStart: import("@angular/core").OutputEmitterRef<import("angular-split").SplitGutterInteractionEvent>;
|
|
55
|
+
/**
|
|
56
|
+
* Emitted when dragging the split gutter ends
|
|
57
|
+
*/
|
|
58
|
+
dragEnd: import("@angular/core").OutputEmitterRef<import("angular-split").SplitGutterInteractionEvent>;
|
|
59
|
+
/**
|
|
60
|
+
* Emitted when the split gutter is clicked.
|
|
61
|
+
*/
|
|
62
|
+
gutterClick: import("@angular/core").OutputEmitterRef<import("angular-split").SplitGutterInteractionEvent>;
|
|
63
|
+
/**
|
|
64
|
+
* Emitted when the split gutter is double clicked (you may also want to
|
|
65
|
+
* set a different click duration indicating a double click). This could be
|
|
66
|
+
* set using the `gutterDblClickDuration` to a value in milliseconds (default is 400ms)
|
|
67
|
+
*/
|
|
68
|
+
gutterDblClick: import("@angular/core").OutputEmitterRef<import("angular-split").SplitGutterInteractionEvent>;
|
|
69
|
+
dragging: import("@angular/core").WritableSignal<boolean>;
|
|
70
|
+
onDragStart(e: SplitViewOutputData): void;
|
|
71
|
+
onDragEnd(e: SplitViewOutputData): void;
|
|
72
|
+
applyLayoutSettings(settings: SplitViewLayoutSettings): void;
|
|
73
|
+
ngAfterViewInit(): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitViewComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitViewComponent, "yuv-split-view", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "gutterSize": { "alias": "gutterSize"; "required": false; "isSignal": true; }; "restrictMove": { "alias": "restrictMove"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "layoutSettingsID": { "alias": "layoutSettingsID"; "required": false; "isSignal": true; }; }, { "layoutSettingsChange": "layoutSettingsChange"; "dragStart": "dragStart"; "dragEnd": "dragEnd"; "gutterClick": "gutterClick"; "gutterDblClick": "gutterDblClick"; }, ["splitAreas"], never, true, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SplitAreaSize, SplitGutterInteractionEvent } from 'angular-split';
|
|
2
|
+
export interface SplitViewLayoutSettings {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
areas: Array<SplitAreaLayoutSettings>;
|
|
5
|
+
}
|
|
6
|
+
export interface SplitAreaLayoutSettings {
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
size?: SplitAreaSize;
|
|
9
|
+
}
|
|
10
|
+
export type SplitViewOutputData = SplitGutterInteractionEvent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./split-area.directive";
|
|
3
|
+
import * as i2 from "./split-view.component";
|
|
4
|
+
export declare class YuvSplitViewModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YuvSplitViewModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YuvSplitViewModule, never, [typeof i1.SplitAreaDirective, typeof i2.SplitViewComponent], [typeof i1.SplitAreaDirective, typeof i2.SplitViewComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YuvSplitViewModule>;
|
|
8
|
+
}
|
|
@@ -1,68 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// TODO: Remove?
|
|
2
|
+
//.yuv-busy-overlay {
|
|
3
|
+
// position: absolute;
|
|
4
|
+
// transition: opacity 200ms;
|
|
5
|
+
// opacity: 0;
|
|
6
|
+
// top: 0;
|
|
7
|
+
// bottom: 0;
|
|
8
|
+
// left: 0;
|
|
9
|
+
// right: 0;
|
|
10
|
+
// background-color: rgba(255, 255, 255, 0.8);
|
|
11
|
+
// display: flex;
|
|
12
|
+
// flex-flow: column;
|
|
13
|
+
// align-items: center;
|
|
14
|
+
// z-index: 5;
|
|
15
|
+
// justify-content: center;
|
|
16
|
+
//
|
|
17
|
+
// // dark mode
|
|
18
|
+
// .dark & {
|
|
19
|
+
// background-color: rgba(var(--color-primary-rgb), 0.85);
|
|
20
|
+
// }
|
|
21
|
+
//}
|
|
3
22
|
|
|
4
|
-
@import '@yuuvis/styles/scss/yuuvis.scss';
|
|
5
|
-
@import '@yuuvis/styles/scss/yuuvis-theme-dark.scss';
|
|
6
|
-
@import '@yuuvis/styles/scss/yuuvis-theme-dark-high-contrast.scss';
|
|
7
|
-
|
|
8
|
-
yvc-overlay {
|
|
9
|
-
width: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.yuv-busy-overlay {
|
|
13
|
-
position: absolute;
|
|
14
|
-
transition: opacity 200ms;
|
|
15
|
-
opacity: 0;
|
|
16
|
-
top: 0;
|
|
17
|
-
bottom: 0;
|
|
18
|
-
left: 0;
|
|
19
|
-
right: 0;
|
|
20
|
-
background-color: rgba(255, 255, 255, 0.8);
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-flow: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
z-index: 5;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
|
|
27
|
-
// dark mode
|
|
28
|
-
.dark & {
|
|
29
|
-
background-color: rgba(var(--color-primary-rgb), 0.85);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// custom scrollbars
|
|
34
|
-
:root {
|
|
35
|
-
--scrollbar-outer-size: 14px;
|
|
36
|
-
--scrollbar-inner-size: 4px;
|
|
37
|
-
}
|
|
38
|
-
::-webkit-scrollbar {
|
|
39
|
-
height: var(--scrollbar-outer-size);
|
|
40
|
-
width: var(--scrollbar-outer-size);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
::-webkit-scrollbar-track {
|
|
44
|
-
background-color: transparent;
|
|
45
|
-
outline: calc(var(--scrollbar-inner-size) / 2) solid var(--scrollbar-track-color);
|
|
46
|
-
outline-offset: calc((var(--scrollbar-outer-size) - var(--scrollbar-inner-size)) * -1);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
::-webkit-scrollbar-thumb {
|
|
50
|
-
background-color: transparent; //var(--scrollbar-thumb-color);
|
|
51
|
-
outline: calc(var(--scrollbar-inner-size) / 2) solid var(--scrollbar-thumb-color);
|
|
52
|
-
outline-offset: calc((var(--scrollbar-outer-size) - var(--scrollbar-inner-size)) * -1);
|
|
53
|
-
transition: outline-color 200ms ease-in-out;
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
outline-color: var(--scrollbar-thumb-color-hover);
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
::-webkit-scrollbar-button {
|
|
62
|
-
height: 0;
|
|
63
|
-
width: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
::-webkit-scrollbar-corner {
|
|
67
|
-
background-color: transparent;
|
|
68
|
-
}
|
|
@@ -3,9 +3,8 @@ import { Action, ActionContext } from '@yuuvis/client-framework/actions';
|
|
|
3
3
|
import { TileData } from '../tile-list/tile-list.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TileComponent {
|
|
6
|
+
#private;
|
|
6
7
|
elRef: ElementRef<any>;
|
|
7
|
-
private dmsService;
|
|
8
|
-
private actionService;
|
|
9
8
|
tile: import("@angular/core").InputSignal<TileData>;
|
|
10
9
|
actionContext: import("@angular/core").InputSignal<ActionContext | undefined>;
|
|
11
10
|
actions: import("@angular/core").Signal<Action[]>;
|
|
@@ -8,7 +8,6 @@ export declare class PropertySelectComponent {
|
|
|
8
8
|
#private;
|
|
9
9
|
private system;
|
|
10
10
|
objectTypeFields: TypeProperty[];
|
|
11
|
-
clearIcon: string;
|
|
12
11
|
query: import("@angular/core").WritableSignal<string | null>;
|
|
13
12
|
objectType: import("@angular/core").InputSignal<VirtualObjectType | undefined>;
|
|
14
13
|
filteredObjectTypeFields: import("@angular/core").Signal<TypeProperty[]>;
|
|
@@ -2,9 +2,8 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { TileListConfigOptions } from '../../tile-list/tile-list.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TileConfigTriggerComponent {
|
|
5
|
-
private
|
|
5
|
+
#private;
|
|
6
6
|
tplTileConfig: import("@angular/core").Signal<TemplateRef<any>>;
|
|
7
|
-
private _oRef?;
|
|
8
7
|
icon: import("@angular/core").InputSignal<string>;
|
|
9
8
|
bucket: import("@angular/core").InputSignal<string | undefined>;
|
|
10
9
|
bucketLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -29,9 +29,6 @@ export declare class TileConfigComponent {
|
|
|
29
29
|
objectConfig?: ObjectConfig;
|
|
30
30
|
selectedSlot?: string;
|
|
31
31
|
flavors: ObjectFlavor[];
|
|
32
|
-
icons: {
|
|
33
|
-
clear: string;
|
|
34
|
-
};
|
|
35
32
|
getConfigValue(p: string): ObjectConfigIcon | ObjectConfigProperty | ObjectConfigAction | ObjectConfigBadge | undefined;
|
|
36
33
|
getConfigProperty(p: string): ObjectConfigProperty | undefined;
|
|
37
34
|
getSelectedActions(): string[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DmsObject, SearchQuery } from '@yuuvis/client-core';
|
|
3
3
|
import { TileComponent } from '../tile/tile.component';
|
|
4
|
+
import { ListItemDirective } from '@yuuvis/client-framework/list';
|
|
4
5
|
import { Pagination } from '@yuuvis/client-framework/pagination';
|
|
5
6
|
import { ObjectFlavor } from '@yuuvis/client-shell-core';
|
|
6
|
-
import { TileData, TileListConfigOptions, TileListHighlight } from './tile-list.interface';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
|
-
import {
|
|
8
|
+
import { TileData, TileListConfigOptions, TileListHighlight } from './tile-list.interface';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* List that renders the result of a search query as object config based tiles. It also contains a component to
|
|
@@ -70,8 +70,8 @@ export declare class TileListComponent implements OnInit, OnDestroy {
|
|
|
70
70
|
* Emitted when a list item has been selected
|
|
71
71
|
*/
|
|
72
72
|
itemSelect: import("@angular/core").OutputEmitterRef<TileData>;
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
tileCopy: import("@angular/core").OutputEmitterRef<TileData[]>;
|
|
74
|
+
tileCut: import("@angular/core").OutputEmitterRef<TileData[]>;
|
|
75
75
|
busy: import("@angular/core").OutputEmitterRef<boolean>;
|
|
76
76
|
queryResult: import("@angular/core").OutputEmitterRef<{
|
|
77
77
|
totalCount: number;
|
|
@@ -112,5 +112,5 @@ export declare class TileListComponent implements OnInit, OnDestroy {
|
|
|
112
112
|
ngOnInit(): void;
|
|
113
113
|
ngOnDestroy(): void;
|
|
114
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<TileListComponent, never>;
|
|
115
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TileListComponent, "yuv-tile-list", never, { "bucket": { "alias": "bucket"; "required": false; "isSignal": true; }; "multiselect": { "alias": "multiselect"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "flavor": { "alias": "flavor"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "preselect": { "alias": "preselect"; "required": false; "isSignal": true; }; "highlights": { "alias": "highlights"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TileListComponent, "yuv-tile-list", never, { "bucket": { "alias": "bucket"; "required": false; "isSignal": true; }; "multiselect": { "alias": "multiselect"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "flavor": { "alias": "flavor"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "preselect": { "alias": "preselect"; "required": false; "isSignal": true; }; "highlights": { "alias": "highlights"; "required": false; "isSignal": true; }; }, { "itemSelect": "itemSelect"; "tileCopy": "tileCopy"; "tileCut": "tileCut"; "busy": "busy"; "queryResult": "queryResult"; "selectionChange": "selectionChange"; "itemDblClick": "itemDblClick"; "ctxMenu": "ctxMenu"; }, ["emptyContent"], ["*"], true, never>;
|
|
116
116
|
}
|
|
@@ -6,11 +6,6 @@ export declare class UploadProgressOverlayComponent {
|
|
|
6
6
|
items: import("@angular/core").InputSignal<ProgressStatusItem[] | undefined>;
|
|
7
7
|
_items: import("@angular/core").Signal<ProgressStatusItem[]>;
|
|
8
8
|
itemClick: import("@angular/core").OutputEmitterRef<UploadResult>;
|
|
9
|
-
icons: {
|
|
10
|
-
remove: string;
|
|
11
|
-
done: any;
|
|
12
|
-
err: any;
|
|
13
|
-
};
|
|
14
9
|
remove(id?: string): void;
|
|
15
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadProgressOverlayComponent, never>;
|
|
16
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<UploadProgressOverlayComponent, "yuv-upload-progress-overlay", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
@@ -4,10 +4,6 @@ export declare class UploadProgressComponent {
|
|
|
4
4
|
#private;
|
|
5
5
|
progressStatus$: import("rxjs").Observable<import("@yuuvis/client-core").ProgressStatus>;
|
|
6
6
|
completedUp$: import("rxjs").Observable<boolean | null>;
|
|
7
|
-
icons: {
|
|
8
|
-
toggle: any;
|
|
9
|
-
close: string;
|
|
10
|
-
};
|
|
11
7
|
expanded: boolean;
|
|
12
8
|
resultItemClick: import("@angular/core").OutputEmitterRef<UploadResult>;
|
|
13
9
|
close(): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class FocusIndicatorComponent {
|
|
3
|
-
#private;
|
|
4
|
-
constructor();
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FocusIndicatorComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FocusIndicatorComponent, "yuv-focus-indicator", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { InputToken } from './token-input.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TokenInputComponent {
|
|
5
|
-
private elRef;
|
|
6
|
-
private overlay;
|
|
7
|
-
private ngZone;
|
|
8
|
-
optionsTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
9
|
-
/**
|
|
10
|
-
* Template to be used for rendering selected tokens
|
|
11
|
-
*/
|
|
12
|
-
tokenTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
13
|
-
/**
|
|
14
|
-
* Template to be used for rendering autocomplete suggestion entries
|
|
15
|
-
*/
|
|
16
|
-
optionTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
17
|
-
TEXT_TOKEN_TYPE: string;
|
|
18
|
-
private _inputElement?;
|
|
19
|
-
private _overlayRef?;
|
|
20
|
-
tokens: import("@angular/core").InputSignal<InputToken[]>;
|
|
21
|
-
caseSensitive: import("@angular/core").InputSignal<boolean>;
|
|
22
|
-
change: import("@angular/core").OutputEmitterRef<InputToken[]>;
|
|
23
|
-
private readonly _cleanFormTokens;
|
|
24
|
-
formTokens: InputToken[];
|
|
25
|
-
autocompleteValues: InputToken[];
|
|
26
|
-
autocompleteSelectedIndex: number;
|
|
27
|
-
focusedTokenIndex: number;
|
|
28
|
-
onArrowUpKey(event: KeyboardEvent): void;
|
|
29
|
-
onArrowDownKey(event: KeyboardEvent): void;
|
|
30
|
-
onEnterKey(event: KeyboardEvent): void;
|
|
31
|
-
clear(): void;
|
|
32
|
-
onInputFocus(e: any): void;
|
|
33
|
-
onInput(e: any): void;
|
|
34
|
-
onArrowLeft(e: Event): void;
|
|
35
|
-
onArrowRight(e: Event): void;
|
|
36
|
-
onDelete(e: Event, index: number): void;
|
|
37
|
-
onBackspace(e: Event, index: number): void;
|
|
38
|
-
private _focusFirst;
|
|
39
|
-
private _focusInput;
|
|
40
|
-
private _setCaretPos;
|
|
41
|
-
private _getCaretPos;
|
|
42
|
-
onOptionSelect(o: InputToken): void;
|
|
43
|
-
private _focusTokenInput;
|
|
44
|
-
openOptions(): void;
|
|
45
|
-
closeOptions(): void;
|
|
46
|
-
onTokenEnter(e: Event): void;
|
|
47
|
-
private _emitChange;
|
|
48
|
-
private _newTextToken;
|
|
49
|
-
private _textTokenId;
|
|
50
|
-
private _tokenize;
|
|
51
|
-
private _getInputValue;
|
|
52
|
-
private _processValue;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TokenInputComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TokenInputComponent, "yuv-token-input", never, { "tokens": { "alias": "tokens"; "required": false; "isSignal": true; }; "caseSensitive": { "alias": "caseSensitive"; "required": false; "isSignal": true; }; }, { "change": "change"; }, ["tokenTemplate", "optionTemplate"], never, true, never>;
|
|
55
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ErrorMessagesService {
|
|
3
|
-
private readonly translate;
|
|
4
|
-
getErrorLabel(error: string, params?: any): any;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessagesService, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorMessagesService>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './lib/actions.module';
|
|
2
|
-
export * from './lib/actions.service';
|
|
3
|
-
export * from './lib/actions/delete-action/delete-action';
|
|
4
|
-
export * from './lib/actions/download-action/download-action';
|
|
5
|
-
export * from './lib/actions.interface';
|
|
6
|
-
export * from './lib/actions.icon';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL3l1dXZpcy9jbGllbnQtZnJhbWV3b3JrL2FjdGlvbnMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLDJDQUEyQyxDQUFDO0FBQzFELGNBQWMsK0NBQStDLENBQUM7QUFDOUQsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvYWN0aW9ucy5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvYWN0aW9ucy5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FjdGlvbnMvZGVsZXRlLWFjdGlvbi9kZWxldGUtYWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FjdGlvbnMvZG93bmxvYWQtYWN0aW9uL2Rvd25sb2FkLWFjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hY3Rpb25zLmludGVyZmFjZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9hY3Rpb25zLmljb24nO1xuIl19
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { inject } from '@angular/core';
|
|
2
|
-
import { ClipboardService, TranslateService } from '@yuuvis/client-core';
|
|
3
|
-
import { of } from 'rxjs';
|
|
4
|
-
import { ACTION_ICON } from '../../actions.icon';
|
|
5
|
-
import { AbstractContextAction, BASE_ACTION, SelectionRange } from '../../actions.interface';
|
|
6
|
-
export class CopyAction extends AbstractContextAction {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.clipboardService = inject(ClipboardService);
|
|
10
|
-
this.translate = inject(TranslateService);
|
|
11
|
-
this.id = BASE_ACTION.copy;
|
|
12
|
-
this.label = this.translate.instant('yuv.action-menu.action.copy.dms.object.label');
|
|
13
|
-
this.description = this.translate.instant('yuv.action-menu.action.copy.dms.object.description');
|
|
14
|
-
this.priority = 8;
|
|
15
|
-
this.icon = ACTION_ICON.copy;
|
|
16
|
-
this.group = 'common';
|
|
17
|
-
this.range = SelectionRange.MULTI_SELECT;
|
|
18
|
-
this.supports = {
|
|
19
|
-
pattern: '*'
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
isExecutable(items) {
|
|
23
|
-
const notAllowed = items.some((item) => !item.permissions?.writeIndexData);
|
|
24
|
-
return of(items.length > 0 && !notAllowed);
|
|
25
|
-
}
|
|
26
|
-
run(items) {
|
|
27
|
-
this.clipboardService.addObjects(items, 'copy', this.context?.appId);
|
|
28
|
-
return of(true);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29weS1hY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3l1dXZpcy9jbGllbnQtZnJhbWV3b3JrL2FjdGlvbnMvc3JjL2xpYi9hY3Rpb25zL2NvcHktYWN0aW9uL2NvcHktYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFFLGdCQUFnQixFQUFhLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEYsT0FBTyxFQUFjLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUN0QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDakQsT0FBTyxFQUFFLHFCQUFxQixFQUF5QixXQUFXLEVBQUUsY0FBYyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFcEgsTUFBTSxPQUFPLFVBQVcsU0FBUSxxQkFBcUI7SUFBckQ7O1FBQ1UscUJBQWdCLEdBQUcsTUFBTSxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFDNUMsY0FBUyxHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBRTdDLE9BQ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PSB7XG4gICAgcGF0dGVybjogJyonXG4gIH07XG5cbiAgaXNFeGVjdXRhYmxlKGl0ZW1zOiBEbXNPYmplY3RbXSkge1xuICAgIGNvbnN0IG5vdEFsbG93ZWQgPSBpdGVtcy5zb21lKChpdGVtKSA9PiAhaXRlbS5wZXJtaXNzaW9ucz8ud3JpdGVJbmRleERhdGEpO1xuICAgIHJldHVybiBvZihpdGVtcy5sZW5ndGggPiAwICYmICFub3RBbGxvd2VkKTtcbiAgfVxuXG4gIHJ1bihpdGVtczogRG1zT2JqZWN0W10pOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICB0aGlzLmNsaXBib2FyZFNlcnZpY2UuYWRkT2JqZWN0cyhpdGVtcywgJ2NvcHknLCB0aGlzLmNvbnRleHQ/LmFwcElkKTtcbiAgICByZXR1cm4gb2YodHJ1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { inject } from '@angular/core';
|
|
2
|
-
import { ClipboardService, TranslateService } from '@yuuvis/client-core';
|
|
3
|
-
import { of } from 'rxjs';
|
|
4
|
-
import { ACTION_ICON } from '../../actions.icon';
|
|
5
|
-
import { AbstractContextAction, BASE_ACTION, SelectionRange } from '../../actions.interface';
|
|
6
|
-
export class CutAction extends AbstractContextAction {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.clipboardService = inject(ClipboardService);
|
|
10
|
-
this.translate = inject(TranslateService);
|
|
11
|
-
this.id = BASE_ACTION.cut;
|
|
12
|
-
this.label = this.translate.instant('yuv.action-menu.action.cut.dms.object.label');
|
|
13
|
-
this.description = this.translate.instant('yuv.action-menu.action.cut.dms.object.description');
|
|
14
|
-
this.priority = 8;
|
|
15
|
-
this.icon = ACTION_ICON.cut;
|
|
16
|
-
this.group = 'common';
|
|
17
|
-
this.range = SelectionRange.MULTI_SELECT;
|
|
18
|
-
this.supports = {
|
|
19
|
-
pattern: '*'
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
isExecutable(items) {
|
|
23
|
-
return of(items.length > 0 && items.every((item) => item.permissions?.writeContent && item.permissions?.writeIndexData && item.permissions?.deleteObject));
|
|
24
|
-
}
|
|
25
|
-
run(items) {
|
|
26
|
-
this.clipboardService.addObjects(items, 'cut', this.context?.appId);
|
|
27
|
-
return of(true);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3V0LWFjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMveXV1dmlzL2NsaWVudC1mcmFtZXdvcmsvYWN0aW9ucy9zcmMvbGliL2FjdGlvbnMvY3V0LWFjdGlvbi9jdXQtYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFFLGdCQUFnQixFQUFhLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDcEYsT0FBTyxFQUFjLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUN0QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDakQsT0FBTyxFQUFFLHFCQUFxQixFQUF5QixXQUFXLEVBQUUsY0FBYyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFcEgsTUFBTSxPQUFPLFNBQVUsU0FBUSxxQkFBcUI7SUFBcEQ7O1FBQ1UscUJBQWdCLEdBQUcsTUFBTSxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFDNUMsY0FBUyxHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBRTdDLE9BQUUsR0FBRyxXQUFXLENBQUMsR0FBRyx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9IHtcbiAgICBwYXR0ZXJuOiAnKidcbiAgfTtcblxuICBpc0V4ZWN1dGFibGUoaXRlbXM6IERtc09iamVjdFtdKSB7XG4gICAgcmV0dXJuIG9mKGl0ZW1zLmxlbmd0aCA+IDAgJiYgaXRlbXMuZXZlcnkoKGl0ZW0pID0+IGl0ZW0ucGVybWlzc2lvbnM/LndyaXRlQ29udGVudCAmJiBpdGVtLnBlcm1pc3Npb25zPy53cml0ZUluZGV4RGF0YSAmJiBpdGVtLnBlcm1pc3Npb25zPy5kZWxldGVPYmplY3QpKTtcbiAgfVxuXG4gIHJ1bihpdGVtczogRG1zT2JqZWN0W10pOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICB0aGlzLmNsaXBib2FyZFNlcnZpY2UuYWRkT2JqZWN0cyhpdGVtcywgJ2N1dCcsIHRoaXMuY29udGV4dD8uYXBwSWQpO1xuICAgIHJldHVybiBvZih0cnVlKTtcbiAgfVxufVxuIl19
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, inject } from '@angular/core';
|
|
3
|
-
import { DmsService, TranslateModule, TranslateService } from '@yuuvis/client-core';
|
|
4
|
-
import { YvcOverlayRef } from '@yuuvis/components/overlay';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
import * as i2 from "@ngx-translate/core";
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
export class DeleteComponent {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.#dmsService = inject(DmsService);
|
|
14
|
-
this.#oref = inject(YvcOverlayRef);
|
|
15
|
-
this.translate = inject(TranslateService);
|
|
16
|
-
this.errors = [];
|
|
17
|
-
this.deleting = false;
|
|
18
|
-
this.deleteItems = this.#oref.data.items;
|
|
19
|
-
this.context = this.#oref.data.context;
|
|
20
|
-
}
|
|
21
|
-
#dmsService;
|
|
22
|
-
#oref;
|
|
23
|
-
run() {
|
|
24
|
-
this.errors = [];
|
|
25
|
-
if (this.deleteItems.length) {
|
|
26
|
-
this.deleting = true;
|
|
27
|
-
this.#dmsService
|
|
28
|
-
.deleteDmsObjects(this.deleteItems.map((o) => ({
|
|
29
|
-
id: o.id,
|
|
30
|
-
subject: o.data[this.context.subjectProperty || o.id]
|
|
31
|
-
})))
|
|
32
|
-
.subscribe({
|
|
33
|
-
next: (res) => {
|
|
34
|
-
this.errors = res
|
|
35
|
-
.filter((r) => !!r._error)
|
|
36
|
-
.map((r) => ({
|
|
37
|
-
status: r._error.status,
|
|
38
|
-
subject: this.context?.subjectProperty ? r.properties[this.context.subjectProperty].value : r.id,
|
|
39
|
-
message: this.#getErrorMessage(r._error)
|
|
40
|
-
}));
|
|
41
|
-
!this.errors.length && this.#oref.close();
|
|
42
|
-
},
|
|
43
|
-
complete: () => (this.deleting = false)
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
#getErrorMessage(error) {
|
|
48
|
-
switch (error.status) {
|
|
49
|
-
case 403:
|
|
50
|
-
return this.translate.instant('yuv.action-menu.action.delete.error.403');
|
|
51
|
-
case 404:
|
|
52
|
-
return this.translate.instant('yuv.action-menu.action.delete.error.404');
|
|
53
|
-
default:
|
|
54
|
-
return this.translate.instant('yuv.action-menu.action.delete.error.default');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
cancel() {
|
|
58
|
-
this.#oref.close();
|
|
59
|
-
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DeleteComponent, isStandalone: true, selector: "yuv-delete", ngImport: i0, template: "<div class=\"yuv-delete\" [ngClass]=\"{ deleting }\">\n <div class=\"yuv-loader-linear\"></div>\n\n @if (errors?.length) {\n <ul class=\"errors\">\n @for (e of errors; track $index) {\n <li class=\"error\">\n <span class=\"subject\">{{ e.subject }}</span>\n <span class=\"message\">{{ e.message }}</span>\n </li>\n }\n </ul>\n } @else {\n <p>{{ 'yuv.action-menu.action.delete.dms.object.confirm.message' | translate }}</p>\n }\n\n <div class=\"form-buttons\">\n <button [disabled]=\"deleting || errors?.length\" class=\"primary\" (click)=\"run()\">{{ 'yuv.action-menu.action.delete.dms.object.confirm.ok' | translate }}</button>\n <button [disabled]=\"deleting\" class=\"secondary\" (click)=\"cancel()\">{{ 'yuv.action-menu.action.delete.dms.object.confirm.cancel' | translate }}</button>\n </div>\n</div>\n", styles: [".yuv-delete{display:flex;flex-flow:column;justify-content:center;padding:var(--app-pane-padding);position:relative}.yuv-delete .yuv-loader-linear{position:absolute;inset-block-start:0;inset-inline-start:0;inset-inline-end:0}.yuv-delete:not(.deleting) .yuv-loader-linear{opacity:0}.yuv-delete p{margin:0}.yuv-delete ul.errors{list-style:none;margin:0;background-color:var(--color-error);color:#fff;padding:calc(var(--app-pane-padding) / 2);border-radius:.5rem;display:flex;flex-flow:column;gap:.5rem}.yuv-delete ul.errors .error{display:grid;grid-template-rows:auto auto;grid-template-columns:auto 1fr;grid-template-areas:\"icon subject\" \"icon message\";row-gap:.2em;column-gap:1em;align-items:center}.yuv-delete ul.errors .error .subject{grid-area:subject;font-weight:700}.yuv-delete ul.errors .error .message{grid-area:message;font-weight:400;font-style:italic;display:block}.yuv-delete ul.errors .error:before{align-self:start;font-weight:700;grid-area:icon;content:\"!\";outline:2px solid currentColor;border-radius:2px;width:1em;display:grid;place-items:center}.yuv-delete .form-buttons{display:flex;flex-flow:row-reverse;justify-content:flex-end;justify-content:end;gap:calc(var(--app-pane-padding) / 4);align-items:center;margin-block-start:calc(var(--app-pane-padding) * 1.5)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
62
|
-
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DeleteComponent, decorators: [{
|
|
64
|
-
type: Component,
|
|
65
|
-
args: [{ selector: 'yuv-delete', standalone: true, imports: [CommonModule, TranslateModule], template: "<div class=\"yuv-delete\" [ngClass]=\"{ deleting }\">\n <div class=\"yuv-loader-linear\"></div>\n\n @if (errors?.length) {\n <ul class=\"errors\">\n @for (e of errors; track $index) {\n <li class=\"error\">\n <span class=\"subject\">{{ e.subject }}</span>\n <span class=\"message\">{{ e.message }}</span>\n </li>\n }\n </ul>\n } @else {\n <p>{{ 'yuv.action-menu.action.delete.dms.object.confirm.message' | translate }}</p>\n }\n\n <div class=\"form-buttons\">\n <button [disabled]=\"deleting || errors?.length\" class=\"primary\" (click)=\"run()\">{{ 'yuv.action-menu.action.delete.dms.object.confirm.ok' | translate }}</button>\n <button [disabled]=\"deleting\" class=\"secondary\" (click)=\"cancel()\">{{ 'yuv.action-menu.action.delete.dms.object.confirm.cancel' | translate }}</button>\n </div>\n</div>\n", styles: [".yuv-delete{display:flex;flex-flow:column;justify-content:center;padding:var(--app-pane-padding);position:relative}.yuv-delete .yuv-loader-linear{position:absolute;inset-block-start:0;inset-inline-start:0;inset-inline-end:0}.yuv-delete:not(.deleting) .yuv-loader-linear{opacity:0}.yuv-delete p{margin:0}.yuv-delete ul.errors{list-style:none;margin:0;background-color:var(--color-error);color:#fff;padding:calc(var(--app-pane-padding) / 2);border-radius:.5rem;display:flex;flex-flow:column;gap:.5rem}.yuv-delete ul.errors .error{display:grid;grid-template-rows:auto auto;grid-template-columns:auto 1fr;grid-template-areas:\"icon subject\" \"icon message\";row-gap:.2em;column-gap:1em;align-items:center}.yuv-delete ul.errors .error .subject{grid-area:subject;font-weight:700}.yuv-delete ul.errors .error .message{grid-area:message;font-weight:400;font-style:italic;display:block}.yuv-delete ul.errors .error:before{align-self:start;font-weight:700;grid-area:icon;content:\"!\";outline:2px solid currentColor;border-radius:2px;width:1em;display:grid;place-items:center}.yuv-delete .form-buttons{display:flex;flex-flow:row-reverse;justify-content:flex-end;justify-content:end;gap:calc(var(--app-pane-padding) / 4);align-items:center;margin-block-start:calc(var(--app-pane-padding) * 1.5)}\n"] }]
|
|
66
|
-
}] });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMveXV1dmlzL2NsaWVudC1mcmFtZXdvcmsvYWN0aW9ucy9zcmMvbGliL2FjdGlvbnMvZGVsZXRlLWFjdGlvbi9kZWxldGUvZGVsZXRlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMveXV1dmlzL2NsaWVudC1mcmFtZXdvcmsvYWN0aW9ucy9zcmMvbGliL2FjdGlvbnMvZGVsZXRlLWFjdGlvbi9kZWxldGUvZGVsZXRlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQWEsVUFBVSxFQUF5QyxlQUFlLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0SSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7Ozs7QUFHM0Q7O0dBRUc7QUFTSCxNQUFNLE9BQU8sZUFBZTtJQVA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mRlbGV0ZS5kbXMub2JqZWN0LmNvbmZpcm0ub2snIHwgdHJhbnNsYXRlIH19PC9idXR0b24+XG4gICAgPGJ1dHRvbiBbZGlzYWJsZWRdPVwiZGVsZXRpbmdcIiBjbGFzcz1cInNlY29uZGFyeVwiIChjbGljayk9XCJjYW5jZWwoKVwiPnt7ICd5dXYuYWN0aW9uLW1lbnUuYWN0aW9uLmRlbGV0ZS5kbXMub2JqZWN0LmNvbmZpcm0uY2FuY2VsJyB8IHRyYW5zbGF0ZSB9fTwvYnV0dG9uPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { inject } from '@angular/core';
|
|
2
|
-
import { RetentionService, TranslateService } from '@yuuvis/client-core';
|
|
3
|
-
import { YvcOverlayService } from '@yuuvis/components/overlay';
|
|
4
|
-
import { map, of } from 'rxjs';
|
|
5
|
-
import { ACTION_ICON } from '../../actions.icon';
|
|
6
|
-
import { AbstractContextAction, BASE_ACTION, SelectionRange } from '../../actions.interface';
|
|
7
|
-
import { DeleteComponent } from './delete/delete.component';
|
|
8
|
-
export class DeleteAction extends AbstractContextAction {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.translate = inject(TranslateService);
|
|
12
|
-
this.overlay = inject(YvcOverlayService);
|
|
13
|
-
this.retention = inject(RetentionService);
|
|
14
|
-
this.id = BASE_ACTION.delete;
|
|
15
|
-
this.label = this.translate.instant('yuv.action-menu.action.delete.dms.object.label');
|
|
16
|
-
this.description = this.translate.instant('yuv.action-menu.action.delete.dms.object.description');
|
|
17
|
-
this.priority = 8;
|
|
18
|
-
this.icon = ACTION_ICON.delete;
|
|
19
|
-
this.group = 'common';
|
|
20
|
-
this.range = SelectionRange.MULTI_SELECT;
|
|
21
|
-
this.supports = {
|
|
22
|
-
pattern: '*'
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
isExecutable(items) {
|
|
26
|
-
const e = items[0];
|
|
27
|
-
return of(e && !!e.permissions && e.permissions.deleteObject && !this.retention.getRetentionState(e).underRetention);
|
|
28
|
-
}
|
|
29
|
-
run(items) {
|
|
30
|
-
return this.overlay
|
|
31
|
-
.open(DeleteComponent, {
|
|
32
|
-
items,
|
|
33
|
-
context: this.context
|
|
34
|
-
})
|
|
35
|
-
.afterClosed$.pipe(map(() => true));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVsZXRlLWFjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMveXV1dmlzL2NsaWVudC1mcmFtZXdvcmsvYWN0aW9ucy9zcmMvbGliL2FjdGlvbnMvZGVsZXRlLWFjdGlvbi9kZWxldGUtYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUE2QixnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3BHLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBQy9ELE9BQU8sRUFBRSxHQUFHLEVBQWMsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUscUJBQXFCLEVBQXlCLFdBQVcsRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNwSCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFFNUQsTUFBTSxPQUFPLFlBQWEsU0FBUSxxQkFBcUI7SUFBdkQ7O1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