@yuuvis/client-framework 0.6.5
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/README.md +62 -0
- package/actions/README.md +3 -0
- package/actions/index.d.ts +6 -0
- package/actions/lib/actions/copy-action/copy-action.d.ts +17 -0
- package/actions/lib/actions/cut-action/cut-action.d.ts +17 -0
- package/actions/lib/actions/delete-action/delete/delete.component.d.ts +22 -0
- package/actions/lib/actions/delete-action/delete-action.d.ts +17 -0
- package/actions/lib/actions/download-action/download-action.d.ts +17 -0
- package/actions/lib/actions.icon.d.ts +7 -0
- package/actions/lib/actions.interface.d.ts +86 -0
- package/actions/lib/actions.module.d.ts +8 -0
- package/actions/lib/actions.service.d.ts +38 -0
- package/actions/lib/components/contextmenu/contextmenu.component.d.ts +11 -0
- package/app-bar/README.md +3 -0
- package/app-bar/index.d.ts +1 -0
- package/app-bar/lib/app-bar.component.d.ts +47 -0
- package/clipboard/README.md +3 -0
- package/clipboard/index.d.ts +1 -0
- package/clipboard/lib/clipboard.component.d.ts +16 -0
- package/common/README.md +3 -0
- package/common/index.d.ts +5 -0
- package/common/lib/components/focus-indicator/focus-indicator.component.d.ts +7 -0
- package/common/lib/components/token-input/token-input.component.d.ts +55 -0
- package/common/lib/components/token-input/token-input.interface.d.ts +8 -0
- package/common/lib/directives/busy-overlay.directive.d.ts +25 -0
- package/common/lib/directives/click-double.directive.d.ts +17 -0
- package/common/lib/directives/container-size.directive.d.ts +30 -0
- package/common/lib/directives/drag-select.directive.d.ts +21 -0
- package/common/lib/directives/file-drop-zone/file-drop-zone.directive.d.ts +18 -0
- package/common/lib/directives/file-drop-zone/file-drop-zone.interface.d.ts +5 -0
- package/common/lib/directives/focus-within.directive.d.ts +36 -0
- package/common/lib/directives/index.d.ts +8 -0
- package/common/lib/directives/light-dismiss.directive.d.ts +19 -0
- package/common/lib/directives/longpress.directive.d.ts +13 -0
- package/common/lib/directives/noop-value-accessor.directive.d.ts +10 -0
- package/esm2022/actions/index.mjs +7 -0
- package/esm2022/actions/lib/actions/copy-action/copy-action.mjs +31 -0
- package/esm2022/actions/lib/actions/cut-action/cut-action.mjs +30 -0
- package/esm2022/actions/lib/actions/delete-action/delete/delete.component.mjs +67 -0
- package/esm2022/actions/lib/actions/delete-action/delete-action.mjs +44 -0
- package/esm2022/actions/lib/actions/download-action/download-action.mjs +33 -0
- package/esm2022/actions/lib/actions.icon.mjs +8 -0
- package/esm2022/actions/lib/actions.interface.mjs +19 -0
- package/esm2022/actions/lib/actions.module.mjs +16 -0
- package/esm2022/actions/lib/actions.service.mjs +89 -0
- package/esm2022/actions/lib/components/contextmenu/contextmenu.component.mjs +27 -0
- package/esm2022/actions/yuuvis-client-framework-actions.mjs +5 -0
- package/esm2022/app-bar/index.mjs +2 -0
- package/esm2022/app-bar/lib/app-bar.component.mjs +89 -0
- package/esm2022/app-bar/yuuvis-client-framework-app-bar.mjs +5 -0
- package/esm2022/clipboard/index.mjs +2 -0
- package/esm2022/clipboard/lib/clipboard.component.mjs +48 -0
- package/esm2022/clipboard/yuuvis-client-framework-clipboard.mjs +5 -0
- package/esm2022/common/index.mjs +6 -0
- package/esm2022/common/lib/components/focus-indicator/focus-indicator.component.mjs +41 -0
- package/esm2022/common/lib/components/token-input/token-input.component.mjs +324 -0
- package/esm2022/common/lib/components/token-input/token-input.interface.mjs +2 -0
- package/esm2022/common/lib/directives/busy-overlay.directive.mjs +88 -0
- package/esm2022/common/lib/directives/click-double.directive.mjs +61 -0
- package/esm2022/common/lib/directives/container-size.directive.mjs +56 -0
- package/esm2022/common/lib/directives/drag-select.directive.mjs +114 -0
- package/esm2022/common/lib/directives/file-drop-zone/file-drop-zone.directive.mjs +153 -0
- package/esm2022/common/lib/directives/file-drop-zone/file-drop-zone.interface.mjs +2 -0
- package/esm2022/common/lib/directives/focus-within.directive.mjs +81 -0
- package/esm2022/common/lib/directives/index.mjs +9 -0
- package/esm2022/common/lib/directives/light-dismiss.directive.mjs +44 -0
- package/esm2022/common/lib/directives/longpress.directive.mjs +36 -0
- package/esm2022/common/lib/directives/noop-value-accessor.directive.mjs +42 -0
- package/esm2022/common/yuuvis-client-framework-common.mjs +5 -0
- package/esm2022/forms/index.mjs +19 -0
- package/esm2022/forms/lib/elements/catalog/catalog.component.mjs +118 -0
- package/esm2022/forms/lib/elements/datetime/datetime.component.mjs +82 -0
- package/esm2022/forms/lib/elements/datetime-range/datetime-range.component.mjs +166 -0
- package/esm2022/forms/lib/elements/number/number.component.mjs +195 -0
- package/esm2022/forms/lib/elements/number-range/number-range.component.mjs +176 -0
- package/esm2022/forms/lib/elements/organization/organization.component.mjs +268 -0
- package/esm2022/forms/lib/elements/string/string.component.mjs +254 -0
- package/esm2022/forms/lib/form-input/form-input.component.mjs +88 -0
- package/esm2022/forms/lib/forms.module.mjs +58 -0
- package/esm2022/forms/yuuvis-client-framework-forms.mjs +5 -0
- package/esm2022/icons/index.mjs +4 -0
- package/esm2022/icons/lib/icon.service.mjs +59 -0
- package/esm2022/icons/lib/icons.mjs +31 -0
- package/esm2022/icons/lib/object-type-icon/object-type-icon.component.mjs +29 -0
- package/esm2022/icons/yuuvis-client-framework-icons.mjs +5 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/lib/yuuvis-client-framework.module.mjs +15 -0
- package/esm2022/list/index.mjs +3 -0
- package/esm2022/list/lib/list-item.directive.mjs +72 -0
- package/esm2022/list/lib/list.component.mjs +133 -0
- package/esm2022/list/yuuvis-client-framework-list.mjs +5 -0
- package/esm2022/metadata-form/index.mjs +4 -0
- package/esm2022/metadata-form/lib/metadata-default-templates/metadata-default-templates.component.mjs +31 -0
- package/esm2022/metadata-form/lib/metadata-form-element-registry.service.mjs +99 -0
- package/esm2022/metadata-form/lib/metadata-form-field/metadata-form-field.component.mjs +126 -0
- package/esm2022/metadata-form/lib/object-metadata-element-template.directive.mjs +52 -0
- package/esm2022/metadata-form/yuuvis-client-framework-metadata-form.mjs +5 -0
- package/esm2022/object-details/index.mjs +7 -0
- package/esm2022/object-details/lib/object-audit/object-audit.component.mjs +195 -0
- package/esm2022/object-details/lib/object-details-shell/object-details-shell.component.mjs +127 -0
- package/esm2022/object-details/lib/object-details.component.mjs +61 -0
- package/esm2022/object-details/lib/object-metadata/form-section-group.pipe.mjs +17 -0
- package/esm2022/object-details/lib/object-metadata/object-metadata.component.mjs +201 -0
- package/esm2022/object-details/lib/object-metadata/object-metadata.interface.mjs +2 -0
- package/esm2022/object-details/yuuvis-client-framework-object-details.mjs +5 -0
- package/esm2022/object-flavor/index.mjs +6 -0
- package/esm2022/object-flavor/lib/abstract-apply-create-flavor/abstract-apply-create-flavor.component.mjs +25 -0
- package/esm2022/object-flavor/lib/abstract-apply-object-flavor/abstract-apply-object-flavor.component.mjs +21 -0
- package/esm2022/object-flavor/lib/flavor-chip/flavor-chip.component.mjs +35 -0
- package/esm2022/object-flavor/lib/object-flavor/object-flavor.component.mjs +93 -0
- package/esm2022/object-flavor/lib/object-flavor-picker/object-flavor-picker.component.mjs +43 -0
- package/esm2022/object-flavor/yuuvis-client-framework-object-flavor.mjs +5 -0
- package/esm2022/object-form/index.mjs +5 -0
- package/esm2022/object-form/lib/form-scripting.api.interface.mjs +2 -0
- package/esm2022/object-form/lib/form-scripting.service.mjs +160 -0
- package/esm2022/object-form/lib/object-form-element/object-form-element.component.mjs +87 -0
- package/esm2022/object-form/lib/object-form-extension.interface.mjs +36 -0
- package/esm2022/object-form/lib/object-form-group/object-form-group.component.mjs +85 -0
- package/esm2022/object-form/lib/object-form-script/form-scripting-element-extension/form-scripting-element-extension.component.mjs +23 -0
- package/esm2022/object-form/lib/object-form-script/object-form-script.service.mjs +115 -0
- package/esm2022/object-form/lib/object-form-script/object-form-scripting-scope.mjs +251 -0
- package/esm2022/object-form/lib/object-form-translate.service.mjs +73 -0
- package/esm2022/object-form/lib/object-form.component.mjs +627 -0
- package/esm2022/object-form/lib/object-form.interface.mjs +9 -0
- package/esm2022/object-form/lib/object-form.model.mjs +20 -0
- package/esm2022/object-form/lib/object-form.service.mjs +127 -0
- package/esm2022/object-form/lib/object-form.utils.mjs +55 -0
- package/esm2022/object-form/lib/object-form.validation.mjs +48 -0
- package/esm2022/object-form/yuuvis-client-framework-object-form.mjs +5 -0
- package/esm2022/object-preview/index.mjs +3 -0
- package/esm2022/object-preview/lib/components/index.mjs +3 -0
- package/esm2022/object-preview/lib/components/object-email-preview/object-email-preview.component.mjs +45 -0
- package/esm2022/object-preview/lib/components/object-preview/object-preview.component.mjs +78 -0
- package/esm2022/object-preview/lib/services/object-preview.service.mjs +92 -0
- package/esm2022/object-preview/yuuvis-client-framework-object-preview.mjs +5 -0
- package/esm2022/object-summary/index.mjs +5 -0
- package/esm2022/object-summary/lib/multi-object-summary/multi-object-summary.component.mjs +33 -0
- package/esm2022/object-summary/lib/object-summary/object-summary.component.mjs +273 -0
- package/esm2022/object-summary/lib/object-summary-data/object-summary-data.component.mjs +80 -0
- package/esm2022/object-summary/lib/object-summary.module.mjs +15 -0
- package/esm2022/object-summary/yuuvis-client-framework-object-summary.mjs +5 -0
- package/esm2022/pagination/index.mjs +3 -0
- package/esm2022/pagination/lib/pagination.component.mjs +48 -0
- package/esm2022/pagination/lib/pagination.interface.mjs +2 -0
- package/esm2022/pagination/yuuvis-client-framework-pagination.mjs +5 -0
- package/esm2022/panel/index.mjs +2 -0
- package/esm2022/panel/lib/panel.component.mjs +20 -0
- package/esm2022/panel/yuuvis-client-framework-panel.mjs +5 -0
- package/esm2022/renderer/index.mjs +11 -0
- package/esm2022/renderer/lib/property-renderer/abstract.renderer.mjs +29 -0
- package/esm2022/renderer/lib/property-renderer/datetime.renderer.mjs +13 -0
- package/esm2022/renderer/lib/property-renderer/decimal.renderer.component.mjs +12 -0
- package/esm2022/renderer/lib/property-renderer/filesize.renderer.component.mjs +28 -0
- package/esm2022/renderer/lib/property-renderer/icon.renderer.component.mjs +23 -0
- package/esm2022/renderer/lib/property-renderer/integer.renderer.component.mjs +12 -0
- package/esm2022/renderer/lib/property-renderer/organization.renderer.mjs +19 -0
- package/esm2022/renderer/lib/property-renderer/string.renderer.component.mjs +12 -0
- package/esm2022/renderer/lib/property-renderer/unknown.renderer.mjs +12 -0
- package/esm2022/renderer/lib/renderer.directive.mjs +51 -0
- package/esm2022/renderer/lib/services/renderer/renderer.interface.mjs +2 -0
- package/esm2022/renderer/lib/services/renderer/renderer.service.mjs +84 -0
- package/esm2022/renderer/yuuvis-client-framework-renderer.mjs +5 -0
- package/esm2022/sequence-list/index.mjs +6 -0
- package/esm2022/sequence-list/lib/due-date-picker/due-date-picker.component.mjs +99 -0
- package/esm2022/sequence-list/lib/sequence-list-template-manage/sequence-list-template-manage.component.mjs +183 -0
- package/esm2022/sequence-list/lib/sequence-list-templates/sequence-list-templates.component.mjs +114 -0
- package/esm2022/sequence-list/lib/sequence-list.component.mjs +146 -0
- package/esm2022/sequence-list/lib/sequence-list.interface.mjs +2 -0
- package/esm2022/sequence-list/yuuvis-client-framework-sequence-list.mjs +5 -0
- package/esm2022/simple-search/index.mjs +3 -0
- package/esm2022/simple-search/lib/simple-search/simple-search.component.mjs +111 -0
- package/esm2022/simple-search/lib/simple-search/simple-search.interface.mjs +2 -0
- package/esm2022/simple-search/yuuvis-client-framework-simple-search.mjs +5 -0
- package/esm2022/tile-list/index.mjs +11 -0
- package/esm2022/tile-list/lib/tile/tile.component.mjs +53 -0
- package/esm2022/tile-list/lib/tile-config/action-select/action-select.component.mjs +22 -0
- package/esm2022/tile-list/lib/tile-config/icon-select/icon-select.component.mjs +33 -0
- package/esm2022/tile-list/lib/tile-config/property-select/property-select.component.mjs +91 -0
- package/esm2022/tile-list/lib/tile-config/tile-config-tile/tile-config-tile.component.mjs +66 -0
- package/esm2022/tile-list/lib/tile-config/tile-config-trigger/tile-config-trigger.component.mjs +46 -0
- package/esm2022/tile-list/lib/tile-config/tile-config.component.mjs +156 -0
- package/esm2022/tile-list/lib/tile-extension/directive/tile-extension.directive.mjs +37 -0
- package/esm2022/tile-list/lib/tile-extension/extensions/email.extension.mjs +42 -0
- package/esm2022/tile-list/lib/tile-extension/tile-extension.service.mjs +35 -0
- package/esm2022/tile-list/lib/tile-list/tile-list.component.mjs +510 -0
- package/esm2022/tile-list/lib/tile-list/tile-list.interface.mjs +2 -0
- package/esm2022/tile-list/yuuvis-client-framework-tile-list.mjs +5 -0
- package/esm2022/token-search/index.mjs +3 -0
- package/esm2022/token-search/token-search.component.mjs +78 -0
- package/esm2022/token-search/token-search.interface.mjs +2 -0
- package/esm2022/token-search/yuuvis-client-framework-token-search.mjs +5 -0
- package/esm2022/tree/index.mjs +3 -0
- package/esm2022/tree/lib/tree-node/tree-node.component.mjs +65 -0
- package/esm2022/tree/lib/tree.component.mjs +148 -0
- package/esm2022/tree/lib/tree.interface.mjs +2 -0
- package/esm2022/tree/lib/tree.service.mjs +95 -0
- package/esm2022/tree/yuuvis-client-framework-tree.mjs +5 -0
- package/esm2022/upload-progress/index.mjs +2 -0
- package/esm2022/upload-progress/lib/upload-progress/upload-progress-overlay/upload-progress-overlay.component.mjs +49 -0
- package/esm2022/upload-progress/lib/upload-progress/upload-progress.component.mjs +37 -0
- package/esm2022/upload-progress/yuuvis-client-framework-upload-progress.mjs +5 -0
- package/esm2022/user-avatar/index.mjs +3 -0
- package/esm2022/user-avatar/lib/user-avatar.component.mjs +69 -0
- package/esm2022/user-avatar/lib/user-avatar.module.mjs +24 -0
- package/esm2022/user-avatar/yuuvis-client-framework-user-avatar.mjs +5 -0
- package/esm2022/yuuvis-client-framework.mjs +5 -0
- package/fesm2022/yuuvis-client-framework-actions.mjs +333 -0
- package/fesm2022/yuuvis-client-framework-actions.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-app-bar.mjs +96 -0
- package/fesm2022/yuuvis-client-framework-app-bar.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-clipboard.mjs +55 -0
- package/fesm2022/yuuvis-client-framework-clipboard.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-common.mjs +1020 -0
- package/fesm2022/yuuvis-client-framework-common.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-forms.mjs +1355 -0
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-icons.mjs +123 -0
- package/fesm2022/yuuvis-client-framework-icons.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-list.mjs +209 -0
- package/fesm2022/yuuvis-client-framework-list.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs +302 -0
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-object-details.mjs +583 -0
- package/fesm2022/yuuvis-client-framework-object-details.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-object-flavor.mjs +200 -0
- package/fesm2022/yuuvis-client-framework-object-flavor.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-object-form.mjs +1664 -0
- package/fesm2022/yuuvis-client-framework-object-form.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-object-preview.mjs +213 -0
- package/fesm2022/yuuvis-client-framework-object-preview.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-object-summary.mjs +397 -0
- package/fesm2022/yuuvis-client-framework-object-summary.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-pagination.mjs +55 -0
- package/fesm2022/yuuvis-client-framework-pagination.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-panel.mjs +27 -0
- package/fesm2022/yuuvis-client-framework-panel.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-renderer.mjs +262 -0
- package/fesm2022/yuuvis-client-framework-renderer.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-sequence-list.mjs +519 -0
- package/fesm2022/yuuvis-client-framework-sequence-list.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-simple-search.mjs +118 -0
- package/fesm2022/yuuvis-client-framework-simple-search.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-tile-list.mjs +1036 -0
- package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-token-search.mjs +85 -0
- package/fesm2022/yuuvis-client-framework-token-search.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-tree.mjs +307 -0
- package/fesm2022/yuuvis-client-framework-tree.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-upload-progress.mjs +84 -0
- package/fesm2022/yuuvis-client-framework-upload-progress.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-user-avatar.mjs +96 -0
- package/fesm2022/yuuvis-client-framework-user-avatar.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework.mjs +22 -0
- package/fesm2022/yuuvis-client-framework.mjs.map +1 -0
- package/forms/README.md +3 -0
- package/forms/index.d.ts +9 -0
- package/forms/lib/elements/catalog/catalog.component.d.ts +68 -0
- package/forms/lib/elements/datetime/datetime.component.d.ts +32 -0
- package/forms/lib/elements/datetime-range/datetime-range.component.d.ts +51 -0
- package/forms/lib/elements/number/number.component.d.ts +77 -0
- package/forms/lib/elements/number-range/number-range.component.d.ts +66 -0
- package/forms/lib/elements/organization/organization.component.d.ts +93 -0
- package/forms/lib/elements/string/string.component.d.ts +104 -0
- package/forms/lib/form-input/form-input.component.d.ts +48 -0
- package/forms/lib/forms.module.d.ts +16 -0
- package/icons/README.md +5 -0
- package/icons/index.d.ts +3 -0
- package/icons/lib/icon.service.d.ts +38 -0
- package/icons/lib/icons.d.ts +1 -0
- package/icons/lib/object-type-icon/object-type-icon.component.d.ts +11 -0
- package/index.d.ts +1 -0
- package/lib/yuuvis-client-framework.module.d.ts +7 -0
- package/list/README.md +3 -0
- package/list/index.d.ts +2 -0
- package/list/lib/list-item.directive.d.ts +15 -0
- package/list/lib/list.component.d.ts +36 -0
- package/metadata-form/README.md +21 -0
- package/metadata-form/index.d.ts +3 -0
- package/metadata-form/lib/metadata-default-templates/metadata-default-templates.component.d.ts +5 -0
- package/metadata-form/lib/metadata-form-element-registry.service.d.ts +47 -0
- package/metadata-form/lib/metadata-form-field/metadata-form-field.component.d.ts +31 -0
- package/metadata-form/lib/object-metadata-element-template.directive.d.ts +27 -0
- package/object-details/README.md +28 -0
- package/object-details/index.d.ts +6 -0
- package/object-details/lib/object-audit/object-audit.component.d.ts +59 -0
- package/object-details/lib/object-details-shell/object-details-shell.component.d.ts +51 -0
- package/object-details/lib/object-details.component.d.ts +36 -0
- package/object-details/lib/object-metadata/form-section-group.pipe.d.ts +8 -0
- package/object-details/lib/object-metadata/object-metadata.component.d.ts +48 -0
- package/object-details/lib/object-metadata/object-metadata.interface.d.ts +26 -0
- package/object-flavor/README.md +3 -0
- package/object-flavor/index.d.ts +5 -0
- package/object-flavor/lib/abstract-apply-create-flavor/abstract-apply-create-flavor.component.d.ts +12 -0
- package/object-flavor/lib/abstract-apply-object-flavor/abstract-apply-object-flavor.component.d.ts +12 -0
- package/object-flavor/lib/flavor-chip/flavor-chip.component.d.ts +17 -0
- package/object-flavor/lib/object-flavor/object-flavor.component.d.ts +26 -0
- package/object-flavor/lib/object-flavor-picker/object-flavor-picker.component.d.ts +10 -0
- package/object-form/README.md +3 -0
- package/object-form/index.d.ts +4 -0
- package/object-form/lib/form-scripting.api.interface.d.ts +131 -0
- package/object-form/lib/form-scripting.service.d.ts +30 -0
- package/object-form/lib/object-form-element/object-form-element.component.d.ts +22 -0
- package/object-form/lib/object-form-extension.interface.d.ts +22 -0
- package/object-form/lib/object-form-group/object-form-group.component.d.ts +22 -0
- package/object-form/lib/object-form-script/form-scripting-element-extension/form-scripting-element-extension.component.d.ts +10 -0
- package/object-form/lib/object-form-script/object-form-script.service.d.ts +45 -0
- package/object-form/lib/object-form-script/object-form-scripting-scope.d.ts +50 -0
- package/object-form/lib/object-form-translate.service.d.ts +15 -0
- package/object-form/lib/object-form.component.d.ts +60 -0
- package/object-form/lib/object-form.interface.d.ts +113 -0
- package/object-form/lib/object-form.model.d.ts +18 -0
- package/object-form/lib/object-form.service.d.ts +39 -0
- package/object-form/lib/object-form.utils.d.ts +20 -0
- package/object-form/lib/object-form.validation.d.ts +21 -0
- package/object-preview/README.md +3 -0
- package/object-preview/index.d.ts +2 -0
- package/object-preview/lib/components/index.d.ts +2 -0
- package/object-preview/lib/components/object-email-preview/object-email-preview.component.d.ts +16 -0
- package/object-preview/lib/components/object-preview/object-preview.component.d.ts +13 -0
- package/object-preview/lib/services/object-preview.service.d.ts +37 -0
- package/object-summary/README.md +3 -0
- package/object-summary/index.d.ts +4 -0
- package/object-summary/lib/multi-object-summary/multi-object-summary.component.d.ts +7 -0
- package/object-summary/lib/object-summary/object-summary.component.d.ts +73 -0
- package/object-summary/lib/object-summary-data/object-summary-data.component.d.ts +11 -0
- package/object-summary/lib/object-summary.module.d.ts +7 -0
- package/package.json +173 -0
- package/pagination/README.md +3 -0
- package/pagination/index.d.ts +2 -0
- package/pagination/lib/pagination.component.d.ts +18 -0
- package/pagination/lib/pagination.interface.d.ts +5 -0
- package/panel/README.md +3 -0
- package/panel/index.d.ts +1 -0
- package/panel/lib/panel.component.d.ts +12 -0
- package/renderer/README.md +5 -0
- package/renderer/index.d.ts +10 -0
- package/renderer/lib/property-renderer/abstract.renderer.d.ts +14 -0
- package/renderer/lib/property-renderer/datetime.renderer.d.ts +6 -0
- package/renderer/lib/property-renderer/decimal.renderer.component.d.ts +6 -0
- package/renderer/lib/property-renderer/filesize.renderer.component.d.ts +7 -0
- package/renderer/lib/property-renderer/icon.renderer.component.d.ts +6 -0
- package/renderer/lib/property-renderer/integer.renderer.component.d.ts +6 -0
- package/renderer/lib/property-renderer/organization.renderer.d.ts +7 -0
- package/renderer/lib/property-renderer/string.renderer.component.d.ts +6 -0
- package/renderer/lib/property-renderer/unknown.renderer.d.ts +6 -0
- package/renderer/lib/renderer.directive.d.ts +17 -0
- package/renderer/lib/services/renderer/renderer.interface.d.ts +8 -0
- package/renderer/lib/services/renderer/renderer.service.d.ts +35 -0
- package/sequence-list/README.md +3 -0
- package/sequence-list/index.d.ts +5 -0
- package/sequence-list/lib/due-date-picker/due-date-picker.component.d.ts +28 -0
- package/sequence-list/lib/sequence-list-template-manage/sequence-list-template-manage.component.d.ts +52 -0
- package/sequence-list/lib/sequence-list-templates/sequence-list-templates.component.d.ts +36 -0
- package/sequence-list/lib/sequence-list.component.d.ts +43 -0
- package/sequence-list/lib/sequence-list.interface.d.ts +16 -0
- package/simple-search/README.md +3 -0
- package/simple-search/index.d.ts +2 -0
- package/simple-search/lib/simple-search/simple-search.component.d.ts +55 -0
- package/simple-search/lib/simple-search/simple-search.interface.d.ts +4 -0
- package/styles/client-framework.scss +27 -0
- package/tile-list/README.md +3 -0
- package/tile-list/index.d.ts +10 -0
- package/tile-list/lib/tile/tile.component.d.ts +22 -0
- package/tile-list/lib/tile-config/action-select/action-select.component.d.ts +13 -0
- package/tile-list/lib/tile-config/icon-select/icon-select.component.d.ts +11 -0
- package/tile-list/lib/tile-config/property-select/property-select.component.d.ts +25 -0
- package/tile-list/lib/tile-config/tile-config-tile/tile-config-tile.component.d.ts +20 -0
- package/tile-list/lib/tile-config/tile-config-trigger/tile-config-trigger.component.d.ts +17 -0
- package/tile-list/lib/tile-config/tile-config.component.d.ts +47 -0
- package/tile-list/lib/tile-extension/directive/tile-extension.directive.d.ts +11 -0
- package/tile-list/lib/tile-extension/extensions/email.extension.d.ts +10 -0
- package/tile-list/lib/tile-extension/tile-extension.service.d.ts +16 -0
- package/tile-list/lib/tile-list/tile-list.component.d.ts +116 -0
- package/tile-list/lib/tile-list/tile-list.interface.d.ts +18 -0
- package/token-search/README.md +3 -0
- package/token-search/index.d.ts +2 -0
- package/token-search/token-search.component.d.ts +22 -0
- package/token-search/token-search.interface.d.ts +4 -0
- package/tree/README.md +3 -0
- package/tree/index.d.ts +2 -0
- package/tree/lib/tree-node/tree-node.component.d.ts +21 -0
- package/tree/lib/tree.component.d.ts +53 -0
- package/tree/lib/tree.interface.d.ts +11 -0
- package/tree/lib/tree.service.d.ts +35 -0
- package/upload-progress/README.md +3 -0
- package/upload-progress/index.d.ts +1 -0
- package/upload-progress/lib/upload-progress/upload-progress-overlay/upload-progress-overlay.component.d.ts +17 -0
- package/upload-progress/lib/upload-progress/upload-progress.component.d.ts +16 -0
- package/user-avatar/README.md +3 -0
- package/user-avatar/index.d.ts +2 -0
- package/user-avatar/lib/user-avatar.component.d.ts +44 -0
- package/user-avatar/lib/user-avatar.module.d.ts +8 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { HttpOptions, YuvEvent, YuvUser } from '@yuuvis/client-core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ObjectFormComponent } from './object-form.component';
|
|
4
|
+
import { ObjectFormModelChange } from './object-form.interface';
|
|
5
|
+
/**
|
|
6
|
+
* Providing a plugin service and injected into form scripts
|
|
7
|
+
*/
|
|
8
|
+
export interface FormScriptingAPI {
|
|
9
|
+
/**
|
|
10
|
+
* Register a new form scripting element extension
|
|
11
|
+
*/
|
|
12
|
+
elementExtensions: {
|
|
13
|
+
register(extensions: FormScriptingElementExtension[]): void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Listen to a certain type of yuuvis event ({@link YuvEventType})
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
events: {
|
|
20
|
+
yuuvisEventType: any;
|
|
21
|
+
on(type: string): Observable<YuvEvent>;
|
|
22
|
+
/**
|
|
23
|
+
* Trigger a certain type of yuuvis event ({@link YuvEventType})
|
|
24
|
+
* @param type Key of the event to be triggered
|
|
25
|
+
* @param data Some data to attach to the event
|
|
26
|
+
*/
|
|
27
|
+
trigger(type: string, data?: any): void;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Get the user that is currently logged in
|
|
31
|
+
*/
|
|
32
|
+
session: {
|
|
33
|
+
getUser(): YuvUser;
|
|
34
|
+
user: {
|
|
35
|
+
get: () => YuvUser;
|
|
36
|
+
hasRole: (role: string) => boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Execute a requests against yuuvis backend
|
|
41
|
+
*/
|
|
42
|
+
http: {
|
|
43
|
+
/**
|
|
44
|
+
* Execute a GET request against yuuvis backend
|
|
45
|
+
* @param uri URI the request should be sent to
|
|
46
|
+
* @param base URI part of the service this request belongs to
|
|
47
|
+
* @param options additional HttpOptions
|
|
48
|
+
*/
|
|
49
|
+
get(uri: string, base?: string, options?: HttpOptions): any;
|
|
50
|
+
/**
|
|
51
|
+
* Execute a POST request against yuuvis backend
|
|
52
|
+
* @param uri URI the request should be sent to
|
|
53
|
+
* @param data Data to be send along with the request
|
|
54
|
+
* @param base URI part of the service this request belongs to
|
|
55
|
+
* @param options additional HttpOptions
|
|
56
|
+
*/
|
|
57
|
+
post(uri: string, data: any, base?: string, options?: HttpOptions): any;
|
|
58
|
+
/**
|
|
59
|
+
* Execute a DELETE request against yuuvis backend
|
|
60
|
+
* @param uri URI the request should be sent to
|
|
61
|
+
* @param base URI part of the service this request belongs to
|
|
62
|
+
* @param options additional HttpOptions
|
|
63
|
+
*/
|
|
64
|
+
del(uri: string, base?: string, options?: HttpOptions): any;
|
|
65
|
+
/**
|
|
66
|
+
* Execute a PUT request against yuuvis backend
|
|
67
|
+
* @param uri URI the request should be sent to
|
|
68
|
+
* @param data Data to be send along with the request
|
|
69
|
+
* @param base URI part of the service this request belongs to
|
|
70
|
+
* @param options additional HttpOptions
|
|
71
|
+
*/
|
|
72
|
+
put(uri: string, data: any, base?: string, options?: HttpOptions): any;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Utilities
|
|
76
|
+
*/
|
|
77
|
+
form: {
|
|
78
|
+
activeForms: Map<string, ObjectFormComponent>;
|
|
79
|
+
getValue(formControlName: string): any;
|
|
80
|
+
setValue(formControlName: string, newValue: any): void;
|
|
81
|
+
/**
|
|
82
|
+
* Execute a change of form model
|
|
83
|
+
* @param formControlName form control unique name | identifier
|
|
84
|
+
* @param change object that contains name of parameter that should be changed ('value', 'required', ...) and newValue
|
|
85
|
+
*/
|
|
86
|
+
modelChange(formControlName: string, change: ObjectFormModelChange): void;
|
|
87
|
+
};
|
|
88
|
+
storage: {
|
|
89
|
+
getItem: (key: string) => any;
|
|
90
|
+
setItem: (key: string, value: unknown) => any;
|
|
91
|
+
};
|
|
92
|
+
notifier: {
|
|
93
|
+
/**
|
|
94
|
+
* Trigger a SUCCESS notification
|
|
95
|
+
* @param text Message to be 'toasted'
|
|
96
|
+
* @param title Title
|
|
97
|
+
*/
|
|
98
|
+
success(text: string, title: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Trigger a ERROR notification
|
|
101
|
+
* @param text Message to be 'toasted'
|
|
102
|
+
* @param title Title
|
|
103
|
+
*/
|
|
104
|
+
error(text: string, title: string): void;
|
|
105
|
+
/**
|
|
106
|
+
* Trigger a INFO notification
|
|
107
|
+
* @param text Message to be 'toasted'
|
|
108
|
+
* @param title Title
|
|
109
|
+
*/
|
|
110
|
+
info(text: string, title: string): void;
|
|
111
|
+
/**
|
|
112
|
+
* Trigger a WARNING notification
|
|
113
|
+
* @param text Message to be 'toasted'
|
|
114
|
+
* @param title Title
|
|
115
|
+
*/
|
|
116
|
+
warning(text: string, title: string): void;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Utilities
|
|
120
|
+
*/
|
|
121
|
+
util: {
|
|
122
|
+
translate: (key: string, data?: any) => string;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
export interface FormScriptingElementExtension {
|
|
126
|
+
id: string;
|
|
127
|
+
icon?: string;
|
|
128
|
+
label?: string;
|
|
129
|
+
propertyName: string;
|
|
130
|
+
callback: () => void;
|
|
131
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DmsObject, HttpOptions, YuvUser } from '@yuuvis/client-core';
|
|
2
|
+
import { FormScriptingAPI, FormScriptingElementExtension } from './form-scripting.api.interface';
|
|
3
|
+
import { ObjectFormComponent } from './object-form.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormScriptingApiService {
|
|
6
|
+
#private;
|
|
7
|
+
static EVENT_MODEL_CHANGED: string;
|
|
8
|
+
elementExtensions: import("@angular/core").WritableSignal<Record<string, FormScriptingElementExtension>>;
|
|
9
|
+
formId?: string;
|
|
10
|
+
get api(): FormScriptingAPI;
|
|
11
|
+
registerActiveForm(component: ObjectFormComponent): any;
|
|
12
|
+
unregisterActiveForm(component: ObjectFormComponent): any;
|
|
13
|
+
getApi(): FormScriptingAPI;
|
|
14
|
+
get(uri: string, base?: string, options?: HttpOptions): Promise<any>;
|
|
15
|
+
put(uri: string, data: Record<string, unknown>, base?: string, options?: HttpOptions): Promise<any>;
|
|
16
|
+
post(uri: string, data: Record<string, unknown>, base?: string, options?: HttpOptions): Promise<any>;
|
|
17
|
+
del(uri: string, base?: string, options?: HttpOptions): Promise<any>;
|
|
18
|
+
getCurrentUser(): YuvUser;
|
|
19
|
+
getDmsObject(id: string, version: number): Promise<DmsObject>;
|
|
20
|
+
/**
|
|
21
|
+
* fetches dms objects from the server that match the given params
|
|
22
|
+
*
|
|
23
|
+
* @param fields - the fields to match. example: {name: 'max', plz: '47111}
|
|
24
|
+
* @param type - the target object type
|
|
25
|
+
*/
|
|
26
|
+
getResult(fields: Record<string, unknown>, type?: string): Promise<DmsObject[]>;
|
|
27
|
+
encodeFileName(filename: string): string;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormScriptingApiService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormScriptingApiService>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { ObjectFormControlWrapper } from '../object-form.interface';
|
|
3
|
+
import { ObjectFormElementExtension } from '../object-form-extension.interface';
|
|
4
|
+
import { FormScriptingElementExtensionComponent } from '../object-form-script/form-scripting-element-extension/form-scripting-element-extension.component';
|
|
5
|
+
import { FormScriptingElementExtension } from '../form-scripting.api.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ObjectFormElementComponent {
|
|
8
|
+
#private;
|
|
9
|
+
createForm: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
formControlName?: string;
|
|
11
|
+
formElementRef: any;
|
|
12
|
+
errors?: string[];
|
|
13
|
+
extensionComponents: Type<ObjectFormElementExtension>[];
|
|
14
|
+
scriptingExtensions: import("@angular/core").Signal<FormScriptingElementExtension[]>;
|
|
15
|
+
scriptExtensionCmp: typeof FormScriptingElementExtensionComponent;
|
|
16
|
+
situation: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
element: import("@angular/core").InputSignal<ObjectFormControlWrapper | undefined>;
|
|
18
|
+
get extensionComponentInput(): Record<string, unknown>;
|
|
19
|
+
onDataMetaChange(data: any): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormElementComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectFormElementComponent, "yuv-object-form-element", never, { "situation": { "alias": "situation"; "required": false; "isSignal": true; }; "element": { "alias": "element"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { FormScriptingAPI } from './form-scripting.api.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IObjectFormElementExtension {
|
|
5
|
+
property: string;
|
|
6
|
+
cmp: Type<ObjectFormElementExtension>;
|
|
7
|
+
}
|
|
8
|
+
export interface IObjectFormElementExtensionComponentInput {
|
|
9
|
+
formControlName: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Class to extend by form element extensions.
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class ObjectFormElementExtension {
|
|
15
|
+
#private;
|
|
16
|
+
input: import("@angular/core").InputSignal<IObjectFormElementExtensionComponentInput>;
|
|
17
|
+
protected getApi(): FormScriptingAPI;
|
|
18
|
+
protected getCurrentValue(): unknown;
|
|
19
|
+
setValue(value: unknown): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormElementExtension, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectFormElementExtension, "ng-component", never, { "input": { "alias": "input"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { Situation } from '@yuuvis/client-core';
|
|
3
|
+
import { ObjectFormControlWrapper, YuvFormGroup, YuvFormGroupWrapper } from '../object-form.interface';
|
|
4
|
+
import { ObjectFormGroup } from '../object-form.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ObjectFormGroupComponent {
|
|
7
|
+
#private;
|
|
8
|
+
private types;
|
|
9
|
+
groupType?: string;
|
|
10
|
+
isCore: boolean;
|
|
11
|
+
isData: boolean;
|
|
12
|
+
situation: Situation;
|
|
13
|
+
group: import("@angular/core").InputSignal<ObjectFormGroup | undefined>;
|
|
14
|
+
noGroupLabels: import("@angular/core").InputSignal<boolean | undefined>;
|
|
15
|
+
getHeaderStyleClass(ctrl: AbstractControl): string;
|
|
16
|
+
getChildControl(ctrl: AbstractControl): ObjectFormGroup;
|
|
17
|
+
getObjectFormGroup(control: any): YuvFormGroup | undefined;
|
|
18
|
+
getObjectFormControlWrapper(control: any): YuvFormGroupWrapper | undefined;
|
|
19
|
+
getElement(control: any): ObjectFormControlWrapper;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormGroupComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectFormGroupComponent, "yuv-object-form-group", never, { "situation": { "alias": "situation"; "required": false; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "noGroupLabels": { "alias": "noGroupLabels"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormScriptingElementExtension } from '../../form-scripting.api.interface';
|
|
2
|
+
import { ObjectFormElementExtension } from '../../object-form-extension.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormScriptingElementExtensionComponent extends ObjectFormElementExtension {
|
|
5
|
+
ext: import("@angular/core").InputSignal<FormScriptingElementExtension | undefined>;
|
|
6
|
+
defaultIcon: string;
|
|
7
|
+
run(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormScriptingElementExtensionComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormScriptingElementExtensionComponent, "yuv-form-scripting-element-extension", never, { "ext": { "alias": "ext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BackendService, Logger } from '@yuuvis/client-core';
|
|
2
|
+
import { ObjectFormScriptingScope } from './object-form-scripting-scope';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
export declare class ObjectFormScriptService {
|
|
8
|
+
private logger;
|
|
9
|
+
private backend;
|
|
10
|
+
constructor(logger: Logger, backend: BackendService);
|
|
11
|
+
/**
|
|
12
|
+
* Run a form script.
|
|
13
|
+
* @param scope - the current scripting scope
|
|
14
|
+
* @param script - the script to be executed
|
|
15
|
+
* @param [scriptName] - the scripts name
|
|
16
|
+
*/
|
|
17
|
+
runFormScript(scope: ObjectFormScriptingScope, script: any, scriptName?: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Define form script function, appending source url as comment.
|
|
20
|
+
* Enables debugging using browser debugging tools (Chrome+Firefox)
|
|
21
|
+
* @see: https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Debug_eval_sources
|
|
22
|
+
*
|
|
23
|
+
* @param name - the name of the script
|
|
24
|
+
* @param script - script to be wrapped in a function
|
|
25
|
+
* @returns the function
|
|
26
|
+
*/
|
|
27
|
+
private defineFunction;
|
|
28
|
+
/**
|
|
29
|
+
* If the script contains global script, this function will import and run them
|
|
30
|
+
* before running the actual script.
|
|
31
|
+
*
|
|
32
|
+
* @param scope - the current scripting scope
|
|
33
|
+
* @param formScriptReturn - the return value of the actual form script
|
|
34
|
+
*/
|
|
35
|
+
private importGlobalScriptsAndCallInit;
|
|
36
|
+
/**
|
|
37
|
+
* Fetch global scripts.
|
|
38
|
+
* @param name - the name of the global script
|
|
39
|
+
* @param scope - the current scripting scope
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
private resolveGlobalScript;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormScriptService, never>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectFormScriptService>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ignore
|
|
3
|
+
* This class will be injected as scope into form scripts.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ObjectFormScriptingScope {
|
|
6
|
+
situation: string;
|
|
7
|
+
private onScriptingModelChange;
|
|
8
|
+
api: any;
|
|
9
|
+
private isTableRowScope?;
|
|
10
|
+
model: any;
|
|
11
|
+
data: any;
|
|
12
|
+
objectId?: string;
|
|
13
|
+
actions: any;
|
|
14
|
+
objects: any[];
|
|
15
|
+
context: {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
objectTypeId: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Constructor
|
|
22
|
+
* @param situation - Current form model situation (could be CREATE, SEARCH or EDIT)
|
|
23
|
+
* @param onScriptingModelChange - callback function to be called when the scripting model changed
|
|
24
|
+
* Be aware to provide an instance method as callback for the scripting scope.
|
|
25
|
+
* @see: https://blog.johnnyreilly.com/2014/04/typescript-instance-methods.html
|
|
26
|
+
*
|
|
27
|
+
* @param api - Plugin API reference
|
|
28
|
+
* @param isTableRowScope - set this to true if the current scripting scope is created for a
|
|
29
|
+
* row editing form from a table element. It will then provide the right parameters for the scripting functions
|
|
30
|
+
*/
|
|
31
|
+
constructor(situation: string, onScriptingModelChange: Function, api: any, isTableRowScope?: boolean | undefined);
|
|
32
|
+
/**
|
|
33
|
+
* Sets the internal model and wraps every model element with an observer to be
|
|
34
|
+
* able to track their changes from within a form script
|
|
35
|
+
* @param model
|
|
36
|
+
*/
|
|
37
|
+
setModel(model: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the observed model. Used for row editing forms of table elements that
|
|
40
|
+
* create their own scripting scope in context of their parent form.
|
|
41
|
+
* @returns the observed scripting scope model
|
|
42
|
+
*/
|
|
43
|
+
getModel(): any;
|
|
44
|
+
/**
|
|
45
|
+
* Called by the object form when the form model changes.
|
|
46
|
+
* @param change - object with key equals name of the element
|
|
47
|
+
* that changes and value of the new value
|
|
48
|
+
*/
|
|
49
|
+
modelChanged(change: any): void;
|
|
50
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Providing an error message when a translation string for an object wasn't found
|
|
4
|
+
*/
|
|
5
|
+
export declare class ObjectFormTranslateService {
|
|
6
|
+
private translate;
|
|
7
|
+
/**
|
|
8
|
+
* Set the error label if a translation for this string wasn't provided
|
|
9
|
+
* @param error - error message about a missed translation key
|
|
10
|
+
* @param params
|
|
11
|
+
*/
|
|
12
|
+
getErrorLabel(error: string, params?: any): any;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormTranslateService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectFormTranslateService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { IObjectFormElementExtension } from './object-form-extension.interface';
|
|
3
|
+
import { FormStatusChangedEvent, ObjectFormOptions } from './object-form.interface';
|
|
4
|
+
import { ObjectFormGroup } from './object-form.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ObjectFormComponent implements OnDestroy, AfterViewInit {
|
|
7
|
+
#private;
|
|
8
|
+
gCount: number;
|
|
9
|
+
id: string;
|
|
10
|
+
fo?: ObjectFormOptions;
|
|
11
|
+
formOptions: import("@angular/core").InputSignal<ObjectFormOptions | undefined>;
|
|
12
|
+
inert: import("@angular/core").InputSignal<boolean | undefined>;
|
|
13
|
+
elementExtensions: import("@angular/core").InputSignal<IObjectFormElementExtension[]>;
|
|
14
|
+
/**
|
|
15
|
+
* There are special scenarios where forms are within a form themselves.
|
|
16
|
+
* Setting this property to true, will handle the current form in a
|
|
17
|
+
* slightly different way when it comes to form scripting.
|
|
18
|
+
*/
|
|
19
|
+
isInnerTableForm: import("@angular/core").InputSignal<boolean | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* triggered when the forms state has been changed
|
|
22
|
+
*/
|
|
23
|
+
statusChanged: import("@angular/core").OutputEmitterRef<FormStatusChangedEvent>;
|
|
24
|
+
/**
|
|
25
|
+
* handler to be executed after the form has been set up
|
|
26
|
+
*/
|
|
27
|
+
onFormReady: import("@angular/core").OutputEmitterRef<void>;
|
|
28
|
+
form?: ObjectFormGroup;
|
|
29
|
+
formData: any;
|
|
30
|
+
constructor();
|
|
31
|
+
focusForm(): void;
|
|
32
|
+
getGroup(id: string): ObjectFormGroup;
|
|
33
|
+
setFormData(data: Record<string, unknown>): void;
|
|
34
|
+
patchValue(data: Record<string, unknown>): void;
|
|
35
|
+
/**
|
|
36
|
+
* Extracts the values from the form model. Each form value is represented by one
|
|
37
|
+
* property on the result object holding the fields value. The keys (properties) are the `name`
|
|
38
|
+
* properties of the form element.
|
|
39
|
+
*
|
|
40
|
+
* How values are extracted is influenced by the forms situation.
|
|
41
|
+
*
|
|
42
|
+
* @return object of key value pairs
|
|
43
|
+
*/
|
|
44
|
+
getFormData(): {};
|
|
45
|
+
getFormElements(): any;
|
|
46
|
+
setFormPristine(): void;
|
|
47
|
+
resetForm(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the observed model that was passed to the current form script running. If there is
|
|
50
|
+
* no form script, this method will return NULL.
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
53
|
+
getObservedScriptModel(): any;
|
|
54
|
+
initValidators(form: any): void;
|
|
55
|
+
ngOnDestroy(): void;
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
private unsubscribeAll;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectFormComponent, "yuv-object-form", never, { "formOptions": { "alias": "formOptions"; "required": false; "isSignal": true; }; "inert": { "alias": "inert"; "required": false; "isSignal": true; }; "elementExtensions": { "alias": "elementExtensions"; "required": false; "isSignal": true; }; "isInnerTableForm": { "alias": "isInnerTableForm"; "required": false; "isSignal": true; }; }, { "statusChanged": "statusChanged"; "onFormReady": "onFormReady"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
2
|
+
import { ObjectFormGroup } from './object-form.model';
|
|
3
|
+
export interface IObjectForm {
|
|
4
|
+
getFormData(): void;
|
|
5
|
+
setFormPristine(): void;
|
|
6
|
+
resetForm(): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
export type ObjectFormModel = ObjectFormGroup | ObjectFormControlWrapper;
|
|
12
|
+
/**
|
|
13
|
+
* Interface for providing components, that render an model based form.
|
|
14
|
+
*/
|
|
15
|
+
export interface ObjectFormOptions {
|
|
16
|
+
/**
|
|
17
|
+
* The form model holding all groups and elements
|
|
18
|
+
*/
|
|
19
|
+
formModel: any;
|
|
20
|
+
/**
|
|
21
|
+
* Data to be merged with the forms model. Usually this will be an
|
|
22
|
+
* object of property value pairs where the properties name equals the name of
|
|
23
|
+
* the form element. For search forms (form situation 'SEARCH') data is supposed
|
|
24
|
+
* to be an array of SearchFilter objects, because search forms may support
|
|
25
|
+
* range searches in some cases.
|
|
26
|
+
*/
|
|
27
|
+
data: Record<string, unknown>;
|
|
28
|
+
objectId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* whether or not to disable the complete form
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* in context of BPM forms, form scripts will also provide access to the actions
|
|
35
|
+
* of a work item. This object is supposed to contain properties in a key value manner,
|
|
36
|
+
* where key is the actions code and value is the WorkItemAction itself.
|
|
37
|
+
*/
|
|
38
|
+
actions?: any;
|
|
39
|
+
/**
|
|
40
|
+
* object form may also provide a collection of objects to be passed to the
|
|
41
|
+
* form script (e.g. BPM forms provide data from attached dms objects)
|
|
42
|
+
*/
|
|
43
|
+
objects?: any[];
|
|
44
|
+
context?: {
|
|
45
|
+
id: string;
|
|
46
|
+
title: string;
|
|
47
|
+
objectTypeId: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Wrapper for a rendering a from group
|
|
52
|
+
*/
|
|
53
|
+
export interface YuvFormGroupWrapper {
|
|
54
|
+
/**
|
|
55
|
+
* form control situation (CREATE, EDIT, SEARCH)
|
|
56
|
+
*/
|
|
57
|
+
situation: string;
|
|
58
|
+
/**
|
|
59
|
+
* the name of the wrapped form control
|
|
60
|
+
*/
|
|
61
|
+
controlName: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
* Extend angulars default FormGroup for implementation of a form group wrapping
|
|
66
|
+
* a form control.
|
|
67
|
+
*/
|
|
68
|
+
export declare class ObjectFormControlWrapper extends UntypedFormGroup {
|
|
69
|
+
_eoFormControlWrapper?: YuvFormGroupWrapper;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input data for a form group
|
|
73
|
+
*/
|
|
74
|
+
export interface YuvFormGroup {
|
|
75
|
+
/**
|
|
76
|
+
* the label for the form group
|
|
77
|
+
*/
|
|
78
|
+
label?: string;
|
|
79
|
+
/**
|
|
80
|
+
* object holding properties defining layout properties of the group
|
|
81
|
+
*/
|
|
82
|
+
layout: any;
|
|
83
|
+
/**
|
|
84
|
+
* type of group indicating if the form is a stack, a fieldset or a simple group
|
|
85
|
+
*/
|
|
86
|
+
type: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* event data emitted by the statusChanged callback
|
|
90
|
+
*/
|
|
91
|
+
export interface FormStatusChangedEvent {
|
|
92
|
+
/**
|
|
93
|
+
* flag indicating whether or not the form is invalid
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
invalid: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* flag indicating whether or not the form has been edited
|
|
99
|
+
*/
|
|
100
|
+
dirty: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* flag indicating whether or not the forms indexdata has been changed
|
|
103
|
+
*/
|
|
104
|
+
indexdataChanged: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* the extracted data from the form
|
|
107
|
+
*/
|
|
108
|
+
data?: any;
|
|
109
|
+
}
|
|
110
|
+
export type ObjectFormModelChange = {
|
|
111
|
+
name: 'value' | 'required' | 'readonly' | 'error' | 'onrowedit' | 'onchange';
|
|
112
|
+
newValue: any;
|
|
113
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { YuvFormGroup } from './object-form.interface';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
* Extension of the default angular form group,
|
|
6
|
+
*/
|
|
7
|
+
export declare class ObjectFormGroup extends FormGroup {
|
|
8
|
+
_eoFormGroup?: YuvFormGroup;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
* Extension of the default angular form control,
|
|
13
|
+
*/
|
|
14
|
+
export declare class ObjectFormControl extends FormControl {
|
|
15
|
+
private __eoFormElement;
|
|
16
|
+
set _eoFormElement(v: any);
|
|
17
|
+
get _eoFormElement(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { IObjectFormElementExtension, ObjectFormElementExtension } from './object-form-extension.interface';
|
|
3
|
+
import { ObjectFormControlWrapper } from './object-form.interface';
|
|
4
|
+
import { ObjectFormGroup } from './object-form.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
export declare class ObjectFormService {
|
|
10
|
+
#private;
|
|
11
|
+
setElementExtensions(formExtensions: IObjectFormElementExtension[]): void;
|
|
12
|
+
getElementExtensions(propertyName: string): Type<ObjectFormElementExtension>[];
|
|
13
|
+
/**
|
|
14
|
+
* Converts a form element object to an ObjectFormControlWrapper which then can be used to
|
|
15
|
+
* render a from control. Result can be used as input for FormElementComponent.
|
|
16
|
+
*
|
|
17
|
+
* @param element - the element object or a json string
|
|
18
|
+
* @param situation - optional property to set up a form situation for the control (default is EDIT)
|
|
19
|
+
* @return the converted ObjectFormControlWrapper or null in case of an error
|
|
20
|
+
*/
|
|
21
|
+
elementToFormControl(element: any, situation?: string): ObjectFormControlWrapper | null;
|
|
22
|
+
/**
|
|
23
|
+
* Extract data from an object form based on situation.
|
|
24
|
+
*
|
|
25
|
+
* @param form - form to extract data from
|
|
26
|
+
* @param situation - form situation
|
|
27
|
+
* @param [initialData] - optional form data to match the current values against
|
|
28
|
+
* This is required for editig indexdata (EDIT situation), because we have to compare new values
|
|
29
|
+
* against the initial values. If a property that is contained in the forms initial data is removed
|
|
30
|
+
* (e.g. set to null) then we have to set this null value, because otherwise the server would
|
|
31
|
+
* ignore the changes.
|
|
32
|
+
* @param isTableRowEditForm Flag indicating that the provided form is an inline form used by
|
|
33
|
+
* a forms table element for editing rows. Those need a special handling.
|
|
34
|
+
* @return extracted data as object
|
|
35
|
+
*/
|
|
36
|
+
extractFormData(form: ObjectFormGroup, situation: string, initialData?: any, isTableRowEditForm?: boolean): {};
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormService, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectFormService>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ObjectFormControlWrapper } from './object-form.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Provides a rendering of form control in `ObjectFormComponent`, `QuickSearchComponent` so wie `SearchFilterFormComponent`.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ObjectFormUtils {
|
|
6
|
+
/**
|
|
7
|
+
* Converts a form element object to an ObjectFormControlWrapper which then can be used to
|
|
8
|
+
* render a from control. Result can be used as input for FormElementComponent.
|
|
9
|
+
*
|
|
10
|
+
* @param element - the element object or a json string
|
|
11
|
+
* @param situation - optional property to set up a form situation for the control (default is EDIT)
|
|
12
|
+
* @return the converted ObjectFormControlWrapper or null in case of an error
|
|
13
|
+
*/
|
|
14
|
+
static elementToFormControl(formElement: any, situation?: string): ObjectFormControlWrapper;
|
|
15
|
+
/**
|
|
16
|
+
* Update a form element after change a form element object.
|
|
17
|
+
* @param formElement - the form element object
|
|
18
|
+
*/
|
|
19
|
+
static updateFormElement(formElement: any): any;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
/**
|
|
3
|
+
* @ignore
|
|
4
|
+
* Custom validation class.
|
|
5
|
+
*/
|
|
6
|
+
export declare class FormValidation {
|
|
7
|
+
/**
|
|
8
|
+
* Build validators for the given form element to be attached to
|
|
9
|
+
* a reactive formControl.
|
|
10
|
+
*
|
|
11
|
+
* @param formElement - form element object
|
|
12
|
+
* @param situation - form situation to fetch validators for
|
|
13
|
+
*/
|
|
14
|
+
static getValidators(formElement: any, situation: string): ValidatorFn[];
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param control - from object control
|
|
18
|
+
* @returns Validation object {eoformScript: {valid: boolean}} or null
|
|
19
|
+
*/
|
|
20
|
+
static customScriptingValidation(): ValidatorFn;
|
|
21
|
+
}
|
package/object-preview/lib/components/object-email-preview/object-email-preview.component.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DmsObject } from '@yuuvis/client-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ObjectEmailPreviewComponent {
|
|
4
|
+
#private;
|
|
5
|
+
objectId: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
+
dmsObjectInput: import("@angular/core").InputSignal<DmsObject | undefined>;
|
|
7
|
+
dmsObject: import("@angular/core").Signal<DmsObject | undefined>;
|
|
8
|
+
viewerDetails: import("@angular/core").Signal<{
|
|
9
|
+
mediaViewerSrc: string;
|
|
10
|
+
id: string;
|
|
11
|
+
mimeType: string | undefined;
|
|
12
|
+
metadata: import("@yuuvis/media-viewer").EmailMetadata;
|
|
13
|
+
} | undefined>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectEmailPreviewComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectEmailPreviewComponent, "yuv-object-email-preview", never, { "objectId": { "alias": "objectId"; "required": false; "isSignal": true; }; "dmsObjectInput": { "alias": "dmsObject"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|