@eo-sdk/client 10.0.0-beta.4 → 10.0.0-beta.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/app/eo-client/about-state/about-state.component.d.ts.map +1 -1
- package/app/eo-client/dashboard/dashboard.component.d.ts +6 -7
- package/app/eo-client/dashboard/dashboard.component.d.ts.map +1 -1
- package/app/eo-client/favorite-state/favorite-state.component.d.ts +7 -8
- package/app/eo-client/favorite-state/favorite-state.component.d.ts.map +1 -1
- package/app/eo-client/inbox-state/inbox-state/inbox-state.component.d.ts +8 -10
- package/app/eo-client/inbox-state/inbox-state/inbox-state.component.d.ts.map +1 -1
- package/app/eo-client/login/login.component.d.ts +4 -2
- package/app/eo-client/login/login.component.d.ts.map +1 -1
- package/app/eo-client/notifications-state/notifications-state.component.d.ts +9 -11
- package/app/eo-client/notifications-state/notifications-state.component.d.ts.map +1 -1
- package/app/eo-client/object-state/object-state/object-state.component.d.ts +10 -11
- package/app/eo-client/object-state/object-state/object-state.component.d.ts.map +1 -1
- package/app/eo-client/prepare-state/prepare-state/prepare-state.component.d.ts +8 -9
- package/app/eo-client/prepare-state/prepare-state/prepare-state.component.d.ts.map +1 -1
- package/app/eo-client/process-state/process-state.component.d.ts +8 -10
- package/app/eo-client/process-state/process-state.component.d.ts.map +1 -1
- package/app/eo-client/recyclebin-state/recyclebin-state.component.d.ts +5 -6
- package/app/eo-client/recyclebin-state/recyclebin-state.component.d.ts.map +1 -1
- package/app/eo-client/result-state/result-state.component.d.ts +3 -5
- package/app/eo-client/result-state/result-state.component.d.ts.map +1 -1
- package/app/eo-client/settings/settings.component.d.ts +6 -7
- package/app/eo-client/settings/settings.component.d.ts.map +1 -1
- package/app/eo-client/stored-queries-state/stored-queries-state.component.d.ts +8 -10
- package/app/eo-client/stored-queries-state/stored-queries-state.component.d.ts.map +1 -1
- package/app/eo-client/version-state/version-state.component.d.ts +5 -7
- package/app/eo-client/version-state/version-state.component.d.ts.map +1 -1
- package/app/eo-framework/accordion/accordion.module.d.ts +1 -2
- package/app/eo-framework/accordion/accordion.module.d.ts.map +1 -1
- package/app/eo-framework/actions/action-menu/action-menu.component.d.ts +4 -5
- package/app/eo-framework/actions/action-menu/action-menu.component.d.ts.map +1 -1
- package/app/eo-framework/actions/action.module.d.ts +11 -10
- package/app/eo-framework/actions/action.module.d.ts.map +1 -1
- package/app/eo-framework/actions/actions/add-resubmission-action/add-resubmission/add-resubmission.component.d.ts +3 -2
- package/app/eo-framework/actions/actions/add-resubmission-action/add-resubmission/add-resubmission.component.d.ts.map +1 -1
- package/app/eo-framework/actions/actions/share-object-action/share-object/share-object.component.d.ts +9 -13
- package/app/eo-framework/actions/actions/share-object-action/share-object/share-object.component.d.ts.map +1 -1
- package/app/eo-framework/app-shell/app-bar/app-bar.component.d.ts +3 -4
- package/app/eo-framework/app-shell/app-bar/app-bar.component.d.ts.map +1 -1
- package/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts.map +1 -1
- package/app/eo-framework/app-shell/app-bar/side-bar/side-bar.component.d.ts +1 -2
- package/app/eo-framework/app-shell/app-bar/side-bar/side-bar.component.d.ts.map +1 -1
- package/app/eo-framework/app-shell/app-shell.module.d.ts +18 -20
- package/app/eo-framework/app-shell/app-shell.module.d.ts.map +1 -1
- package/app/eo-framework/app-shell/index.d.ts +0 -1
- package/app/eo-framework/app-shell/index.d.ts.map +1 -1
- package/app/eo-framework/eo-framework.module.d.ts +37 -38
- package/app/eo-framework/eo-framework.module.d.ts.map +1 -1
- package/app/eo-framework/form-elements/date/date.component.d.ts +0 -2
- package/app/eo-framework/form-elements/date/date.component.d.ts.map +1 -1
- package/app/eo-framework/form-elements/form-elements.module.d.ts +9 -18
- package/app/eo-framework/form-elements/form-elements.module.d.ts.map +1 -1
- package/app/eo-framework/form-elements/id-reference/reference-finder/reference-finder.component.d.ts +1 -0
- package/app/eo-framework/form-elements/id-reference/reference-finder/reference-finder.component.d.ts.map +1 -1
- package/app/eo-framework/grid/filters/datetime-filter.component.d.ts +0 -2
- package/app/eo-framework/grid/filters/datetime-filter.component.d.ts.map +1 -1
- package/app/eo-framework/grid/grid.component.d.ts +7 -8
- package/app/eo-framework/grid/grid.component.d.ts.map +1 -1
- package/app/eo-framework/grid/grid.module.d.ts +7 -8
- package/app/eo-framework/grid/grid.module.d.ts.map +1 -1
- package/app/eo-framework/inbox-details/inbox-details.component.d.ts +1 -2
- package/app/eo-framework/inbox-details/inbox-details.component.d.ts.map +1 -1
- package/app/eo-framework/index.d.ts +0 -4
- package/app/eo-framework/index.d.ts.map +1 -1
- package/app/eo-framework/media/media.component.d.ts +4 -3
- package/app/eo-framework/media/media.component.d.ts.map +1 -1
- package/app/eo-framework/object-details/favorite-icon/favorite-icon.component.d.ts +2 -3
- package/app/eo-framework/object-details/favorite-icon/favorite-icon.component.d.ts.map +1 -1
- package/app/eo-framework/object-details/object-details.component.d.ts +5 -4
- package/app/eo-framework/object-details/object-details.component.d.ts.map +1 -1
- package/app/eo-framework/object-details/object-details.module.d.ts +2 -1
- package/app/eo-framework/object-details/object-details.module.d.ts.map +1 -1
- package/app/eo-framework/object-details/object-history/object-history.component.d.ts +2 -3
- package/app/eo-framework/object-details/object-history/object-history.component.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/form-element/form-element-template.directive.d.ts +10 -0
- package/app/eo-framework/object-form/object-form/form-element/form-element-template.directive.d.ts.map +1 -0
- package/app/eo-framework/object-form/object-form/form-element/form-element.component.d.ts +8 -3
- package/app/eo-framework/object-form/object-form/form-element/form-element.component.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.d.ts +1 -2
- package/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/form-element-table/form-element.interface.d.ts +7 -2
- package/app/eo-framework/object-form/object-form/form-element-table/form-element.interface.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.d.ts +28 -11
- package/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/object-form-script/object-form-script.service.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form/object-form.component.d.ts +1 -2
- package/app/eo-framework/object-form/object-form/object-form.component.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form-helper.service.d.ts.map +1 -1
- package/app/eo-framework/object-form/object-form.module.d.ts +9 -9
- package/app/eo-framework/object-state-details/object-state-details.component.d.ts +1 -2
- package/app/eo-framework/object-state-details/object-state-details.component.d.ts.map +1 -1
- package/app/eo-framework/prepare-details/prepare-details.component.d.ts +8 -9
- package/app/eo-framework/prepare-details/prepare-details.component.d.ts.map +1 -1
- package/app/eo-framework/process/details/process-details.component.d.ts +7 -8
- package/app/eo-framework/process/details/process-details.component.d.ts.map +1 -1
- package/app/eo-framework/recyclebin-details/recyclebin-details.component.d.ts +9 -11
- package/app/eo-framework/recyclebin-details/recyclebin-details.component.d.ts.map +1 -1
- package/app/eo-framework/result-list/result-list.component.d.ts +5 -6
- package/app/eo-framework/result-list/result-list.component.d.ts.map +1 -1
- package/app/eo-framework/settings/settings.module.d.ts +3 -4
- package/app/eo-framework/settings/settings.module.d.ts.map +1 -1
- package/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.d.ts +4 -5
- package/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.d.ts.map +1 -1
- package/app/eo-framework/ui/eo-dialog/eo-dialog.component.d.ts +2 -3
- package/app/eo-framework/ui/eo-dialog/eo-dialog.component.d.ts.map +1 -1
- package/app/eo-framework/ui/outside-click/outside-click.directive.d.ts +1 -2
- package/app/eo-framework/ui/outside-click/outside-click.directive.d.ts.map +1 -1
- package/app/eo-framework/ui/signature-tab/signature-tab.component.d.ts +0 -1
- package/app/eo-framework/ui/signature-tab/signature-tab.component.d.ts.map +1 -1
- package/app/eo-framework/util/index.d.ts +0 -1
- package/app/eo-framework/util/index.d.ts.map +1 -1
- package/app/eo-framework/util/util.module.d.ts +0 -1
- package/app/eo-framework/util/util.module.d.ts.map +1 -1
- package/app/eo-framework-core/layout/layout.service.d.ts +2 -26
- package/app/eo-framework-core/layout/layout.service.d.ts.map +1 -1
- package/app/eo-framework-core/pipes/locale-number.pipe.d.ts +2 -3
- package/app/eo-framework-core/pipes/locale-number.pipe.d.ts.map +1 -1
- package/assets/_default/i18n/de.json +2 -1
- package/assets/_default/i18n/en.json +7 -6
- package/assets/_default/svg/ic_add_document_file_as_new_version.svg +1 -0
- package/assets/_default/svg/ic_create_document.svg +1 -0
- package/assets/_default/svg/ic_create_document_in_folder.svg +1 -0
- package/esm2020/app/eo-client/about-state/about-state.component.mjs +5 -5
- package/esm2020/app/eo-client/dashboard/dashboard.component.mjs +17 -14
- package/esm2020/app/eo-client/favorite-state/favorite-state.component.mjs +15 -14
- package/esm2020/app/eo-client/inbox-state/inbox-state/inbox-state.component.mjs +14 -11
- package/esm2020/app/eo-client/login/login.component.mjs +3 -3
- package/esm2020/app/eo-client/notifications-state/notifications-state.component.mjs +16 -12
- package/esm2020/app/eo-client/object-state/object-state/object-state.component.mjs +27 -23
- package/esm2020/app/eo-client/prepare-state/prepare-state/prepare-state.component.mjs +12 -9
- package/esm2020/app/eo-client/process-state/process-state.component.mjs +6 -9
- package/esm2020/app/eo-client/recyclebin-state/recyclebin-state.component.mjs +14 -11
- package/esm2020/app/eo-client/result-state/result-state.component.mjs +11 -8
- package/esm2020/app/eo-client/settings/settings.component.mjs +16 -12
- package/esm2020/app/eo-client/stored-queries-state/stored-queries-state.component.mjs +16 -13
- package/esm2020/app/eo-client/version-state/version-state.component.mjs +13 -10
- package/esm2020/app/eo-framework/accordion/accordion.module.mjs +3 -7
- package/esm2020/app/eo-framework/accordion/simple-accordion/simple-accordion.component.mjs +3 -3
- package/esm2020/app/eo-framework/actions/action-menu/action-menu.component.mjs +15 -11
- package/esm2020/app/eo-framework/actions/action.module.mjs +5 -2
- package/esm2020/app/eo-framework/actions/actions/add-resubmission-action/add-resubmission/add-resubmission.component.mjs +5 -7
- package/esm2020/app/eo-framework/actions/actions/add-subscription-action/add-subscription/add-subscription.component.mjs +3 -3
- package/esm2020/app/eo-framework/actions/actions/custom-actions/custom-actions.component.mjs +2 -2
- package/esm2020/app/eo-framework/actions/actions/share-object-action/share-object/share-object.component.mjs +43 -48
- package/esm2020/app/eo-framework/actions/actions/signature-action/signature/signature.component.mjs +2 -2
- package/esm2020/app/eo-framework/actions/actions/workflow-action/workflow/workflow.component.mjs +2 -2
- package/esm2020/app/eo-framework/app-shell/app-bar/app-bar.component.mjs +16 -14
- package/esm2020/app/eo-framework/app-shell/app-bar/app-search/app-search.component.mjs +7 -3
- package/esm2020/app/eo-framework/app-shell/app-bar/side-bar/side-bar.component.mjs +3 -5
- package/esm2020/app/eo-framework/app-shell/app-shell.module.mjs +1 -8
- package/esm2020/app/eo-framework/app-shell/index.mjs +1 -2
- package/esm2020/app/eo-framework/eo-framework.module.mjs +35 -43
- package/esm2020/app/eo-framework/form-elements/date/date.component.mjs +2 -12
- package/esm2020/app/eo-framework/form-elements/dynamic-list/dynamic-list.component.mjs +3 -3
- package/esm2020/app/eo-framework/form-elements/form-elements.module.mjs +28 -37
- package/esm2020/app/eo-framework/form-elements/id-reference/reference-finder/reference-finder.component.mjs +10 -6
- package/esm2020/app/eo-framework/form-elements/organization/organization.component.mjs +3 -3
- package/esm2020/app/eo-framework/form-elements/reference/reference.component.mjs +4 -5
- package/esm2020/app/eo-framework/grid/filters/datetime-filter.component.mjs +2 -6
- package/esm2020/app/eo-framework/grid/filters/dynamic-list-filter.component.mjs +3 -3
- package/esm2020/app/eo-framework/grid/filters/organization-filter.component.mjs +3 -3
- package/esm2020/app/eo-framework/grid/grid.component.mjs +16 -12
- package/esm2020/app/eo-framework/grid/grid.module.mjs +1 -5
- package/esm2020/app/eo-framework/inbox-details/inbox-details.component.mjs +16 -11
- package/esm2020/app/eo-framework/index.mjs +1 -5
- package/esm2020/app/eo-framework/media/media.component.mjs +31 -12
- package/esm2020/app/eo-framework/object-details/favorite-icon/favorite-icon.component.mjs +13 -10
- package/esm2020/app/eo-framework/object-details/object-details.component.mjs +42 -30
- package/esm2020/app/eo-framework/object-details/object-details.module.mjs +7 -3
- package/esm2020/app/eo-framework/object-details/object-history/object-history.component.mjs +13 -9
- package/esm2020/app/eo-framework/object-form/object-form/form-element/form-element-template.directive.mjs +18 -0
- package/esm2020/app/eo-framework/object-form/object-form/form-element/form-element.component.mjs +20 -6
- package/esm2020/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.mjs +21 -22
- package/esm2020/app/eo-framework/object-form/object-form/form-element-table/form-element.interface.mjs +1 -1
- package/esm2020/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.mjs +94 -32
- package/esm2020/app/eo-framework/object-form/object-form/object-form-group/object-form-group.component.mjs +6 -4
- package/esm2020/app/eo-framework/object-form/object-form/object-form-script/object-form-script.service.mjs +2 -3
- package/esm2020/app/eo-framework/object-form/object-form/object-form.component.mjs +3 -5
- package/esm2020/app/eo-framework/object-form/object-form-helper.service.mjs +2 -2
- package/esm2020/app/eo-framework/object-form/object-form.module.mjs +9 -10
- package/esm2020/app/eo-framework/object-state-details/object-state-details.component.mjs +15 -13
- package/esm2020/app/eo-framework/prepare-details/prepare-details.component.mjs +16 -14
- package/esm2020/app/eo-framework/process/details/process-details.component.mjs +16 -12
- package/esm2020/app/eo-framework/process-form/process-form.component.mjs +2 -2
- package/esm2020/app/eo-framework/recyclebin-details/recyclebin-details.component.mjs +25 -17
- package/esm2020/app/eo-framework/result-list/result-list.component.mjs +18 -14
- package/esm2020/app/eo-framework/settings/settings.module.mjs +1 -5
- package/esm2020/app/eo-framework/stored-query/stored-query-details/stored-query-details.component.mjs +17 -13
- package/esm2020/app/eo-framework/ui/eo-dialog/eo-dialog.component.mjs +12 -8
- package/esm2020/app/eo-framework/ui/eo-icon/eo-icon.component.mjs +2 -2
- package/esm2020/app/eo-framework/ui/outside-click/outside-click.directive.mjs +11 -8
- package/esm2020/app/eo-framework/ui/signature-tab/signature-tab.component.mjs +3 -6
- package/esm2020/app/eo-framework/upload-overlay/upload-overlay.component.mjs +3 -3
- package/esm2020/app/eo-framework/util/index.mjs +1 -2
- package/esm2020/app/eo-framework/util/util.module.mjs +2 -3
- package/esm2020/app/eo-framework-core/layout/layout.service.mjs +61 -63
- package/esm2020/app/eo-framework-core/pipes/locale-number.pipe.mjs +11 -8
- package/esm2020/projects/eo-sdk/core/lib/eo-core.module.mjs +8 -8
- package/esm2020/projects/eo-sdk/core/lib/model/inbox-item.model.mjs +2 -6
- package/esm2020/projects/eo-sdk/core/lib/service/dms/dms.service.mjs +14 -16
- package/esm2020/projects/eo-sdk/core/lib/service/prepare/prepare.service.mjs +15 -12
- package/esm2020/projects/eo-sdk/core/lib/service/system/system.service.mjs +2 -6
- package/esm2020/projects/eo-sdk/core/lib/util/utils.mjs +3 -3
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs +157 -165
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
- package/fesm2015/eo-sdk-client.mjs +15791 -16532
- package/fesm2015/eo-sdk-client.mjs.map +1 -1
- package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs +157 -165
- package/fesm2020/eo-sdk-client-projects-eo-sdk-core.mjs.map +1 -1
- package/fesm2020/eo-sdk-client.mjs +15665 -16407
- package/fesm2020/eo-sdk-client.mjs.map +1 -1
- package/package.json +4 -5
- package/projects/eo-sdk/core/lib/eo-core.module.d.ts.map +1 -1
- package/projects/eo-sdk/core/lib/model/inbox-item.model.d.ts.map +1 -1
- package/projects/eo-sdk/core/lib/service/dms/dms.service.d.ts +10 -8
- package/projects/eo-sdk/core/lib/service/dms/dms.service.d.ts.map +1 -1
- package/projects/eo-sdk/core/lib/service/prepare/prepare.service.d.ts +1 -0
- package/projects/eo-sdk/core/lib/service/prepare/prepare.service.d.ts.map +1 -1
- package/projects/eo-sdk/core/lib/service/system/system.service.d.ts.map +1 -1
- package/projects/eo-sdk/core/lib/util/utils.d.ts +3 -4
- package/projects/eo-sdk/core/lib/util/utils.d.ts.map +1 -1
- package/scss/_main.scss +1 -1
- package/scss/_mixins.scss +6 -6
- package/styles.css +1 -1
- package/app/eo-framework/app-shell/app-bar/app-layout/app-layout.component.d.ts +0 -24
- package/app/eo-framework/app-shell/app-bar/app-layout/app-layout.component.d.ts.map +0 -1
- package/app/eo-framework/split/index.d.ts +0 -5
- package/app/eo-framework/split/index.d.ts.map +0 -1
- package/app/eo-framework/split/split/split.component.d.ts +0 -83
- package/app/eo-framework/split/split/split.component.d.ts.map +0 -1
- package/app/eo-framework/split/split-area/split-area.component.d.ts +0 -37
- package/app/eo-framework/split/split-area/split-area.component.d.ts.map +0 -1
- package/app/eo-framework/split/split-gutter/split-gutter.directive.d.ts +0 -21
- package/app/eo-framework/split/split-gutter/split-gutter.directive.d.ts.map +0 -1
- package/app/eo-framework/split/split.module.d.ts +0 -12
- package/app/eo-framework/split/split.module.d.ts.map +0 -1
- package/app/eo-framework/undock-split/undock-split.component.d.ts +0 -28
- package/app/eo-framework/undock-split/undock-split.component.d.ts.map +0 -1
- package/app/eo-framework/undock-split/undock-split.service.d.ts +0 -43
- package/app/eo-framework/undock-split/undock-split.service.d.ts.map +0 -1
- package/app/eo-framework/undock-split/undock-state.interface.d.ts +0 -6
- package/app/eo-framework/undock-split/undock-state.interface.d.ts.map +0 -1
- package/app/eo-framework/util/unsubscribe/unsubscribe.component.d.ts +0 -11
- package/app/eo-framework/util/unsubscribe/unsubscribe.component.d.ts.map +0 -1
- package/esm2020/app/eo-framework/app-shell/app-bar/app-layout/app-layout.component.mjs +0 -67
- package/esm2020/app/eo-framework/split/index.mjs +0 -5
- package/esm2020/app/eo-framework/split/split/split.component.mjs +0 -373
- package/esm2020/app/eo-framework/split/split-area/split-area.component.mjs +0 -131
- package/esm2020/app/eo-framework/split/split-gutter/split-gutter.directive.mjs +0 -73
- package/esm2020/app/eo-framework/split/split.module.mjs +0 -28
- package/esm2020/app/eo-framework/undock-split/undock-split.component.mjs +0 -89
- package/esm2020/app/eo-framework/undock-split/undock-split.service.mjs +0 -135
- package/esm2020/app/eo-framework/undock-split/undock-state.interface.mjs +0 -2
- package/esm2020/app/eo-framework/util/unsubscribe/unsubscribe.component.mjs +0 -23
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import * as i2 from '@ngx-translate/core';
|
|
2
2
|
import { TranslateModule, TranslateLoader, MissingTranslationHandler } from '@ngx-translate/core';
|
|
3
3
|
export { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import * as i0 from '@angular/core';
|
|
5
|
-
import { InjectionToken, Inject, Injectable, NgModule, APP_INITIALIZER, Optional, SkipSelf } from '@angular/core';
|
|
6
4
|
import * as i1$1 from '@angular/common/http';
|
|
7
5
|
import { HttpErrorResponse, HttpHeaders, HttpResponse, HTTP_INTERCEPTORS, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
6
|
+
import * as i0 from '@angular/core';
|
|
7
|
+
import { InjectionToken, Inject, Injectable, NgModule, APP_INITIALIZER, Optional, SkipSelf } from '@angular/core';
|
|
8
|
+
import * as i1$2 from 'ngx-toastr';
|
|
9
|
+
import { ToastrModule } from 'ngx-toastr';
|
|
8
10
|
import { __decorate, __param } from 'tslib';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
+
import { EMPTY, throwError, Subject, of, forkJoin, Observable, ReplaySubject, BehaviorSubject, timer, interval } from 'rxjs';
|
|
12
|
+
import { filter, debounceTime, switchMap, map, first, tap, finalize, shareReplay, catchError, expand, skipWhile, mergeMap, takeUntil } from 'rxjs/operators';
|
|
11
13
|
import * as i6 from '@angular/common';
|
|
12
|
-
import {
|
|
14
|
+
import { DatePipe, registerLocaleData } from '@angular/common';
|
|
15
|
+
import moment from 'moment';
|
|
16
|
+
import * as i1 from '@ngx-pwa/local-storage';
|
|
17
|
+
import * as FileSaver from 'file-saver';
|
|
18
|
+
import * as _ from 'lodash';
|
|
13
19
|
import localeDeCh from '@angular/common/locales/de-CH';
|
|
14
20
|
import localeExtraDeCh from '@angular/common/locales/extra/de-CH';
|
|
15
21
|
import localeDe from '@angular/common/locales/de';
|
|
@@ -70,13 +76,6 @@ import localeId from '@angular/common/locales/id';
|
|
|
70
76
|
import localeExtraId from '@angular/common/locales/extra/id';
|
|
71
77
|
import localeMs from '@angular/common/locales/ms';
|
|
72
78
|
import localeExtraMs from '@angular/common/locales/extra/ms';
|
|
73
|
-
import * as momentImported from 'moment';
|
|
74
|
-
import momentImported__default from 'moment';
|
|
75
|
-
import * as i1 from '@ngx-pwa/local-storage';
|
|
76
|
-
import * as FileSaver from 'file-saver';
|
|
77
|
-
import * as _ from 'lodash';
|
|
78
|
-
import * as i1$2 from 'ngx-toastr';
|
|
79
|
-
import { ToastrModule } from 'ngx-toastr';
|
|
80
79
|
|
|
81
80
|
// @see: http://stackoverflow.com/questions/37611549/how-to-pass-parameters-rendered-from-backend-to-angular2-bootstrap-method#answer-40379803
|
|
82
81
|
/**
|
|
@@ -104,92 +103,6 @@ CoreConfig = __decorate([
|
|
|
104
103
|
__param(0, Inject(CUSTOM_CONFIG))
|
|
105
104
|
], CoreConfig);
|
|
106
105
|
|
|
107
|
-
/**
|
|
108
|
-
* @ignore
|
|
109
|
-
* APP_INITIALIZER function
|
|
110
|
-
*/
|
|
111
|
-
function init_module(coreInit) {
|
|
112
|
-
// Need to set to a const before returning due to:
|
|
113
|
-
// @see: https://github.com/angular/angular/issues/14485
|
|
114
|
-
const fnc = () => coreInit.initialize();
|
|
115
|
-
return fnc;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @ignore
|
|
120
|
-
* Handles missing translations
|
|
121
|
-
*/
|
|
122
|
-
class EoxMissingTranslationHandler {
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @param MissingTranslationHandlerParams params
|
|
126
|
-
* @returns string
|
|
127
|
-
*/
|
|
128
|
-
handle(params) {
|
|
129
|
-
return '!missing key: ' + params.key;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @ignore
|
|
135
|
-
* Loader that fetches translations based on the configured locations
|
|
136
|
-
*/
|
|
137
|
-
let EoxTranslateJsonLoader = class EoxTranslateJsonLoader {
|
|
138
|
-
constructor(http, config) {
|
|
139
|
-
this.http = http;
|
|
140
|
-
this.config = config;
|
|
141
|
-
registerLocaleData(localeDe, 'de', localeExtraDe); // German
|
|
142
|
-
registerLocaleData(localeAr, 'ar', localeExtraAr); // Arabic
|
|
143
|
-
registerLocaleData(localeEs, 'es', localeExtraEs); // Spanish
|
|
144
|
-
registerLocaleData(localePt, 'pt', localeExtraPt); // Portuguese
|
|
145
|
-
registerLocaleData(localeFr, 'fr', localeExtraFr); // French
|
|
146
|
-
registerLocaleData(localeZh, 'zh', localeExtraZh); // Chinese
|
|
147
|
-
registerLocaleData(localeLv, 'lv', localeExtraLv); // Latvian
|
|
148
|
-
registerLocaleData(localeRu, 'ru', localeExtraRu); // Russian
|
|
149
|
-
registerLocaleData(localeIt, 'it', localeExtraIt); // Italian
|
|
150
|
-
registerLocaleData(localeNl, 'nl', localeExtraNl); // Dutch
|
|
151
|
-
registerLocaleData(localeSk, 'sk', localeExtraSk); // Slovak
|
|
152
|
-
registerLocaleData(localePl, 'pl', localeExtraPl); // Polish
|
|
153
|
-
registerLocaleData(localeUk, 'uk', localeExtraUk); // Ukrainian
|
|
154
|
-
registerLocaleData(localeJa, 'ja', localeExtraJa); // Japanese
|
|
155
|
-
registerLocaleData(localeKo, 'ko', localeExtraKo); // Korean
|
|
156
|
-
registerLocaleData(localeHi, 'hi', localeExtraHi); // Hindi
|
|
157
|
-
registerLocaleData(localeBn, 'bn', localeExtraBn); // Bengalese
|
|
158
|
-
registerLocaleData(localeDeCh, 'de-CH', localeExtraDeCh); // German (switzerland)
|
|
159
|
-
registerLocaleData(localeZhHant, 'zh-Hant', localeExtraZhHant); // Chinese (traditional)
|
|
160
|
-
registerLocaleData(localeTh, 'th', localeExtraTh); // Thai
|
|
161
|
-
registerLocaleData(localeVi, 'vi', localeExtraVi); // Vietnamese
|
|
162
|
-
registerLocaleData(localeEnGb, 'en-GB', localeExtraEnGb); // English (Great-Britain)
|
|
163
|
-
registerLocaleData(localeHe, 'he', localeExtraHe); // Hebrew
|
|
164
|
-
registerLocaleData(localeFi, 'fi', localeExtraFi); // Finish
|
|
165
|
-
registerLocaleData(localeDa, 'da', localeExtraDa); // Danish
|
|
166
|
-
registerLocaleData(localeSe, 'se', localeExtraSe); // Swedish
|
|
167
|
-
registerLocaleData(localeNb, 'nb', localeExtraNb); // Norwegian Bokmål
|
|
168
|
-
registerLocaleData(localeNn, 'nn', localeExtraNn); // Norwegian Nynorsk
|
|
169
|
-
registerLocaleData(localeId, 'id', localeExtraId); // Indonesian
|
|
170
|
-
registerLocaleData(localeMs, 'ms', localeExtraMs); // Malay
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @param string lang
|
|
175
|
-
* @returns Observable<Object>
|
|
176
|
-
*/
|
|
177
|
-
getTranslation(lang) {
|
|
178
|
-
return forkJoin(this.config.translations.map(folder => this.loadTranslationFile(folder, lang))).pipe(map((res) => res.reduce((acc, x) => Object.assign(acc, x), {})));
|
|
179
|
-
}
|
|
180
|
-
loadTranslationFile(folder, lang) {
|
|
181
|
-
return this.http.get(`${folder}${lang}.json`).pipe(catchError((e) => {
|
|
182
|
-
// ISO codes with more than 2 characters are sub-languages like de-CH.
|
|
183
|
-
// If there is no translation file for that sub-language we'll try to load
|
|
184
|
-
// the file for the base language (in this case de).
|
|
185
|
-
return lang.length > 2 ? this.loadTranslationFile(folder, lang.substring(0, 2)) : of({});
|
|
186
|
-
}));
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
EoxTranslateJsonLoader = __decorate([
|
|
190
|
-
__param(1, Inject(CORE_CONFIG))
|
|
191
|
-
], EoxTranslateJsonLoader);
|
|
192
|
-
|
|
193
106
|
/**
|
|
194
107
|
* Set up the default logger.
|
|
195
108
|
* The default logger doesn't actually log anything;
|
|
@@ -1083,7 +996,7 @@ class Utils {
|
|
|
1083
996
|
* @returns
|
|
1084
997
|
*/
|
|
1085
998
|
static getTimezoneOffset() {
|
|
1086
|
-
return
|
|
999
|
+
return moment().format('Z');
|
|
1087
1000
|
}
|
|
1088
1001
|
static formatMailTo(value, isEmail) {
|
|
1089
1002
|
if (isEmail && !!value) {
|
|
@@ -2082,10 +1995,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
2082
1995
|
args: [CORE_CONFIG]
|
|
2083
1996
|
}] }, { type: Logger }, { type: Config }]; } });
|
|
2084
1997
|
|
|
2085
|
-
/**
|
|
2086
|
-
* @ignore
|
|
2087
|
-
*/
|
|
2088
|
-
const moment$1 = momentImported;
|
|
2089
1998
|
/**
|
|
2090
1999
|
* Items emitted by the inbox service
|
|
2091
2000
|
*/
|
|
@@ -2114,7 +2023,7 @@ class InboxItem {
|
|
|
2114
2023
|
* @returns True when inbox item is overdue, false otherwise
|
|
2115
2024
|
*/
|
|
2116
2025
|
isOverdue() {
|
|
2117
|
-
return this.duetime && moment
|
|
2026
|
+
return this.duetime && moment(this.duetime).isBefore(moment());
|
|
2118
2027
|
}
|
|
2119
2028
|
}
|
|
2120
2029
|
InboxItem.TYPE_BPM = 'BPM';
|
|
@@ -2629,10 +2538,6 @@ var Direction;
|
|
|
2629
2538
|
Direction["RTL"] = "rtl";
|
|
2630
2539
|
})(Direction || (Direction = {}));
|
|
2631
2540
|
|
|
2632
|
-
/**
|
|
2633
|
-
* @ignore
|
|
2634
|
-
*/
|
|
2635
|
-
const moment = momentImported;
|
|
2636
2541
|
/**
|
|
2637
2542
|
* Collection of System Services
|
|
2638
2543
|
*/
|
|
@@ -3352,6 +3257,14 @@ class PrepareService {
|
|
|
3352
3257
|
this.preparedItems$ = this.preparedItemsSource.asObservable();
|
|
3353
3258
|
this.preparedItemCountSource = new ReplaySubject(1);
|
|
3354
3259
|
this.preparedItemCount$ = this.preparedItemCountSource.asObservable();
|
|
3260
|
+
/**
|
|
3261
|
+
* Creates a prepared item on the backed side.
|
|
3262
|
+
*
|
|
3263
|
+
* @param parentId The ID of the parent dms object to add the prepared item to
|
|
3264
|
+
* @param childType The type of object to be created
|
|
3265
|
+
* @returns Observable<any>
|
|
3266
|
+
*/
|
|
3267
|
+
this.i = 0;
|
|
3355
3268
|
}
|
|
3356
3269
|
/**
|
|
3357
3270
|
* Public Fetch Prepare items
|
|
@@ -3370,14 +3283,9 @@ class PrepareService {
|
|
|
3370
3283
|
this.preparedItemCountSource.next(this.preparedItemCount);
|
|
3371
3284
|
});
|
|
3372
3285
|
}
|
|
3373
|
-
/**
|
|
3374
|
-
* Creates a prepared item on the backed side.
|
|
3375
|
-
*
|
|
3376
|
-
* @param parentId The ID of the parent dms object to add the prepared item to
|
|
3377
|
-
* @param childType The type of object to be created
|
|
3378
|
-
* @returns Observable<any>
|
|
3379
|
-
*/
|
|
3380
3286
|
createPreparedItem(parentId, childType) {
|
|
3287
|
+
console.log('tick');
|
|
3288
|
+
this.i++;
|
|
3381
3289
|
return this.backend
|
|
3382
3290
|
.post(this.createPreparedItemPostUrl({
|
|
3383
3291
|
parentId: parentId,
|
|
@@ -3544,7 +3452,7 @@ class PrepareService {
|
|
|
3544
3452
|
* @returns Observable<any>
|
|
3545
3453
|
*/
|
|
3546
3454
|
uploadContent(preparedItemId, file) {
|
|
3547
|
-
const uri = `${this.backend.getServiceBase()}/prepare/${preparedItemId}/content.json?form=true&contentmeta=true`;
|
|
3455
|
+
const uri = `${this.backend.getBaseWithContext(this.backend.getServiceBase())}/prepare/${preparedItemId}/content.json?form=true&contentmeta=true`;
|
|
3548
3456
|
return this.uploadService
|
|
3549
3457
|
.upload(uri, [file])
|
|
3550
3458
|
.pipe(
|
|
@@ -3580,7 +3488,7 @@ class PrepareService {
|
|
|
3580
3488
|
*
|
|
3581
3489
|
* @type string
|
|
3582
3490
|
*/
|
|
3583
|
-
uri = this.backend.getServiceBase() + this.createPreparedItemPostUrl({
|
|
3491
|
+
uri = this.backend.getBaseWithContext(this.backend.getServiceBase()) + this.createPreparedItemPostUrl({
|
|
3584
3492
|
parentId: null,
|
|
3585
3493
|
createMany: !useBatchUpload
|
|
3586
3494
|
});
|
|
@@ -3590,7 +3498,7 @@ class PrepareService {
|
|
|
3590
3498
|
* upload to dms object, means adding or replacing content file
|
|
3591
3499
|
*/
|
|
3592
3500
|
const { referenceObject } = uploadTarget;
|
|
3593
|
-
uri = `${this.backend.getServiceBase()}/dms/${referenceObject.id}/contents?type=${referenceObject.type.name}`;
|
|
3501
|
+
uri = `${this.backend.getBaseWithContext(this.backend.getServiceBase())}/dms/${referenceObject.id}/contents?type=${referenceObject.type.name}`;
|
|
3594
3502
|
}
|
|
3595
3503
|
else if (uploadTarget.type === UploadTarget.CONTEXT || uploadTarget.type === UploadTarget.CONTEXT_TREE) {
|
|
3596
3504
|
/**
|
|
@@ -3600,7 +3508,7 @@ class PrepareService {
|
|
|
3600
3508
|
*
|
|
3601
3509
|
* @type string
|
|
3602
3510
|
*/
|
|
3603
|
-
uri = this.backend.getServiceBase() + this.createPreparedItemPostUrl({
|
|
3511
|
+
uri = this.backend.getBaseWithContext(this.backend.getServiceBase()) + this.createPreparedItemPostUrl({
|
|
3604
3512
|
parentId: uploadTarget.referenceObject.id,
|
|
3605
3513
|
createMany: !useBatchUpload,
|
|
3606
3514
|
childType: uploadTarget.subFolder && uploadTarget.subFolder.data.type ? uploadTarget.subFolder.data.type : null
|
|
@@ -4236,42 +4144,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
4236
4144
|
|
|
4237
4145
|
/**
|
|
4238
4146
|
* @ignore
|
|
4239
|
-
*
|
|
4147
|
+
* APP_INITIALIZER function
|
|
4240
4148
|
*/
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4149
|
+
function init_module(coreInit) {
|
|
4150
|
+
// Need to set to a const before returning due to:
|
|
4151
|
+
// @see: https://github.com/angular/angular/issues/14485
|
|
4152
|
+
const fnc = () => coreInit.initialize();
|
|
4153
|
+
return fnc;
|
|
4154
|
+
}
|
|
4155
|
+
|
|
4156
|
+
/**
|
|
4157
|
+
* @ignore
|
|
4158
|
+
* Handles missing translations
|
|
4159
|
+
*/
|
|
4160
|
+
class EoxMissingTranslationHandler {
|
|
4161
|
+
/**
|
|
4162
|
+
*
|
|
4163
|
+
* @param MissingTranslationHandlerParams params
|
|
4164
|
+
* @returns string
|
|
4165
|
+
*/
|
|
4166
|
+
handle(params) {
|
|
4167
|
+
return '!missing key: ' + params.key;
|
|
4259
4168
|
}
|
|
4260
|
-
|
|
4261
|
-
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* @ignore
|
|
4173
|
+
* Loader that fetches translations based on the configured locations
|
|
4174
|
+
*/
|
|
4175
|
+
let EoxTranslateJsonLoader = class EoxTranslateJsonLoader {
|
|
4176
|
+
constructor(http, config) {
|
|
4177
|
+
this.http = http;
|
|
4178
|
+
this.config = config;
|
|
4179
|
+
registerLocaleData(localeDe, 'de', localeExtraDe); // German
|
|
4180
|
+
registerLocaleData(localeAr, 'ar', localeExtraAr); // Arabic
|
|
4181
|
+
registerLocaleData(localeEs, 'es', localeExtraEs); // Spanish
|
|
4182
|
+
registerLocaleData(localePt, 'pt', localeExtraPt); // Portuguese
|
|
4183
|
+
registerLocaleData(localeFr, 'fr', localeExtraFr); // French
|
|
4184
|
+
registerLocaleData(localeZh, 'zh', localeExtraZh); // Chinese
|
|
4185
|
+
registerLocaleData(localeLv, 'lv', localeExtraLv); // Latvian
|
|
4186
|
+
registerLocaleData(localeRu, 'ru', localeExtraRu); // Russian
|
|
4187
|
+
registerLocaleData(localeIt, 'it', localeExtraIt); // Italian
|
|
4188
|
+
registerLocaleData(localeNl, 'nl', localeExtraNl); // Dutch
|
|
4189
|
+
registerLocaleData(localeSk, 'sk', localeExtraSk); // Slovak
|
|
4190
|
+
registerLocaleData(localePl, 'pl', localeExtraPl); // Polish
|
|
4191
|
+
registerLocaleData(localeUk, 'uk', localeExtraUk); // Ukrainian
|
|
4192
|
+
registerLocaleData(localeJa, 'ja', localeExtraJa); // Japanese
|
|
4193
|
+
registerLocaleData(localeKo, 'ko', localeExtraKo); // Korean
|
|
4194
|
+
registerLocaleData(localeHi, 'hi', localeExtraHi); // Hindi
|
|
4195
|
+
registerLocaleData(localeBn, 'bn', localeExtraBn); // Bengalese
|
|
4196
|
+
registerLocaleData(localeDeCh, 'de-CH', localeExtraDeCh); // German (switzerland)
|
|
4197
|
+
registerLocaleData(localeZhHant, 'zh-Hant', localeExtraZhHant); // Chinese (traditional)
|
|
4198
|
+
registerLocaleData(localeTh, 'th', localeExtraTh); // Thai
|
|
4199
|
+
registerLocaleData(localeVi, 'vi', localeExtraVi); // Vietnamese
|
|
4200
|
+
registerLocaleData(localeEnGb, 'en-GB', localeExtraEnGb); // English (Great-Britain)
|
|
4201
|
+
registerLocaleData(localeHe, 'he', localeExtraHe); // Hebrew
|
|
4202
|
+
registerLocaleData(localeFi, 'fi', localeExtraFi); // Finish
|
|
4203
|
+
registerLocaleData(localeDa, 'da', localeExtraDa); // Danish
|
|
4204
|
+
registerLocaleData(localeSe, 'se', localeExtraSe); // Swedish
|
|
4205
|
+
registerLocaleData(localeNb, 'nb', localeExtraNb); // Norwegian Bokmål
|
|
4206
|
+
registerLocaleData(localeNn, 'nn', localeExtraNn); // Norwegian Nynorsk
|
|
4207
|
+
registerLocaleData(localeId, 'id', localeExtraId); // Indonesian
|
|
4208
|
+
registerLocaleData(localeMs, 'ms', localeExtraMs); // Malay
|
|
4262
4209
|
}
|
|
4263
|
-
|
|
4264
|
-
|
|
4210
|
+
/**
|
|
4211
|
+
*
|
|
4212
|
+
* @param string lang
|
|
4213
|
+
* @returns Observable<Object>
|
|
4214
|
+
*/
|
|
4215
|
+
getTranslation(lang) {
|
|
4216
|
+
return forkJoin(this.config.translations.map(folder => this.loadTranslationFile(folder, lang))).pipe(map((res) => res.reduce((acc, x) => Object.assign(acc, x), {})));
|
|
4265
4217
|
}
|
|
4266
|
-
|
|
4267
|
-
this.
|
|
4218
|
+
loadTranslationFile(folder, lang) {
|
|
4219
|
+
return this.http.get(`${folder}${lang}.json`).pipe(catchError((e) => {
|
|
4220
|
+
// ISO codes with more than 2 characters are sub-languages like de-CH.
|
|
4221
|
+
// If there is no translation file for that sub-language we'll try to load
|
|
4222
|
+
// the file for the base language (in this case de).
|
|
4223
|
+
return lang.length > 2 ? this.loadTranslationFile(folder, lang.substring(0, 2)) : of({});
|
|
4224
|
+
}));
|
|
4268
4225
|
}
|
|
4269
|
-
}
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
type: Injectable
|
|
4274
|
-
}] });
|
|
4226
|
+
};
|
|
4227
|
+
EoxTranslateJsonLoader = __decorate([
|
|
4228
|
+
__param(1, Inject(CORE_CONFIG))
|
|
4229
|
+
], EoxTranslateJsonLoader);
|
|
4275
4230
|
|
|
4276
4231
|
/**
|
|
4277
4232
|
* `EoSharedModule` re-exports ToastrModule, TranslateModule so you can use directives
|
|
@@ -4317,6 +4272,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImpor
|
|
|
4317
4272
|
type: Injectable
|
|
4318
4273
|
}], ctorParameters: function () { return [{ type: AuthService }]; } });
|
|
4319
4274
|
|
|
4275
|
+
/**
|
|
4276
|
+
* @ignore
|
|
4277
|
+
* logger logging values to the ambient console object.
|
|
4278
|
+
*/
|
|
4279
|
+
class ConsoleLogService {
|
|
4280
|
+
apply(fn, args) {
|
|
4281
|
+
return console && console[fn] && console[fn](...args);
|
|
4282
|
+
}
|
|
4283
|
+
assert(...args) {
|
|
4284
|
+
this.apply('assert', args);
|
|
4285
|
+
}
|
|
4286
|
+
debug(...args) {
|
|
4287
|
+
this.apply('debug', args);
|
|
4288
|
+
}
|
|
4289
|
+
error(...args) {
|
|
4290
|
+
this.apply('error', args);
|
|
4291
|
+
}
|
|
4292
|
+
group(...args) {
|
|
4293
|
+
this.apply('group', args);
|
|
4294
|
+
}
|
|
4295
|
+
groupEnd(...args) {
|
|
4296
|
+
this.apply('groupEnd', args);
|
|
4297
|
+
}
|
|
4298
|
+
info(...args) {
|
|
4299
|
+
this.apply('info', args);
|
|
4300
|
+
}
|
|
4301
|
+
log(...args) {
|
|
4302
|
+
this.apply('log', args);
|
|
4303
|
+
}
|
|
4304
|
+
warn(...args) {
|
|
4305
|
+
this.apply('warn', args);
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
ConsoleLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ConsoleLogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4309
|
+
ConsoleLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ConsoleLogService });
|
|
4310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.2", ngImport: i0, type: ConsoleLogService, decorators: [{
|
|
4311
|
+
type: Injectable
|
|
4312
|
+
}] });
|
|
4313
|
+
|
|
4320
4314
|
/**
|
|
4321
4315
|
* Main module for connecting an app to an yuuvis<sup>®</sup> RAD backend. To use it just import int in your app module:
|
|
4322
4316
|
*
|
|
@@ -5048,22 +5042,20 @@ class DmsService {
|
|
|
5048
5042
|
}));
|
|
5049
5043
|
}
|
|
5050
5044
|
/**
|
|
5051
|
-
*
|
|
5052
|
-
*
|
|
5053
|
-
* @param
|
|
5054
|
-
*
|
|
5055
|
-
*
|
|
5056
|
-
* @
|
|
5057
|
-
* @returns Observable<any>
|
|
5045
|
+
* Shares a dms object (and its children) with certain users
|
|
5046
|
+
* @param dmsObject The dms object to be shared
|
|
5047
|
+
* @param shareWith Array of organization objects to share the object with. Each entry
|
|
5048
|
+
* will have the ID of the target organization object as well as an optional param
|
|
5049
|
+
* whether or not to also share the dms objects children.
|
|
5050
|
+
* @returns Observable being resolved once the request is done
|
|
5058
5051
|
*/
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
return this.triggerUpdate(dmsObjects[0], this.backend.put(url, data));
|
|
5052
|
+
share(dmsObject, shareWith) {
|
|
5053
|
+
return this.triggerUpdate(dmsObject, this.backend.put(`/dms/${dmsObject.id}/share`, {
|
|
5054
|
+
shares: shareWith.map(i => ({
|
|
5055
|
+
organizationobject: i.id,
|
|
5056
|
+
sharechildren: !!i.shareChildren
|
|
5057
|
+
}))
|
|
5058
|
+
}));
|
|
5067
5059
|
}
|
|
5068
5060
|
/**
|
|
5069
5061
|
* Move a DMS Object
|