nuxeo-development-framework 3.1.6 → 3.1.8
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/bundles/nuxeo-development-framework.umd.js +29449 -0
- package/bundles/nuxeo-development-framework.umd.js.map +1 -0
- package/esm2015/lib/Core/adapters/adapter.service.js +50 -0
- package/esm2015/lib/Core/core.module.js +107 -0
- package/esm2015/lib/Core/enums/language.enum.js +6 -0
- package/esm2015/lib/Core/models/component.model.js +8 -0
- package/esm2015/lib/Core/services/callApi/call-api.service.js +33 -0
- package/esm2015/lib/Core/services/extension/action.extensions.js +9 -0
- package/esm2015/lib/Core/services/extension/component-register.service.js +25 -0
- package/esm2015/lib/Core/services/extension/extenion-utils.js +115 -0
- package/esm2015/lib/Core/services/extension/extension-element.js +2 -0
- package/esm2015/lib/Core/services/extension/extension-loader.service.js +127 -0
- package/esm2015/lib/Core/services/extension/extension.service.js +120 -0
- package/esm2015/lib/Core/services/initialization/initialization.service.js +57 -0
- package/esm2015/lib/Core/services/localStorag/local-storag.service.js +123 -0
- package/esm2015/lib/Core/services/nuxeo/nuxeo-override.js +82 -0
- package/esm2015/lib/Core/services/nuxeo/nuxeo.service.js +120 -0
- package/esm2015/lib/Core/services/roles/roles.service.js +119 -0
- package/esm2015/lib/Core/services/translation/translate-loader.service.js +150 -0
- package/esm2015/lib/Core/services/translation/translation.service.js +174 -0
- package/esm2015/lib/Core/services/user/user-preferences.service.js +153 -0
- package/esm2015/lib/Core/utilities/moment-date-adapter.js +178 -0
- package/esm2015/lib/Core/utilities/utility.service.js +81 -0
- package/esm2015/lib/components/activities-log/activities-log/activities-log.component.js +188 -0
- package/esm2015/lib/components/activities-log/activities-log/activities-log.service.js +35 -0
- package/esm2015/lib/components/activities-log/activities-log.module.js +41 -0
- package/esm2015/lib/components/activity/activity/activity.component.js +28 -0
- package/esm2015/lib/components/activity/activity.module.js +37 -0
- package/esm2015/lib/components/attachment-item/attachment-item/attachment-item.component.js +54 -0
- package/esm2015/lib/components/attachment-item/attachment-item.module.js +44 -0
- package/esm2015/lib/components/attachment-modal/attachment-modal.module.js +40 -0
- package/esm2015/lib/components/attachment-modal/attachments/attachments.component.js +157 -0
- package/esm2015/lib/components/avatar/avatar/avatar.component.js +55 -0
- package/esm2015/lib/components/avatar/avatar.module.js +32 -0
- package/esm2015/lib/components/card/card.component.js +48 -0
- package/esm2015/lib/components/card/card.module.js +23 -0
- package/esm2015/lib/components/comments/comments.module.js +82 -0
- package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +86 -0
- package/esm2015/lib/components/comments/components/comments-dashlet/comments-dashlet.component.js +81 -0
- package/esm2015/lib/components/comments/components/comments-list/comments-list.component.js +73 -0
- package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +63 -0
- package/esm2015/lib/components/comments/constants/comment.js +25 -0
- package/esm2015/lib/components/comments/services/comment-api.service.js +71 -0
- package/esm2015/lib/components/confirm-caller/confirm-caller.dialog.js +75 -0
- package/esm2015/lib/components/confirm-caller/confirm-caller.module.js +27 -0
- package/esm2015/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.js +29 -0
- package/esm2015/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.js +30 -0
- package/esm2015/lib/components/confirmation-dialog/confirmation-dialog.module.js +30 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.js +137 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.js +133 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +110 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.js +68 -0
- package/esm2015/lib/components/correspondence-relation/components/versions/versions.component.js +75 -0
- package/esm2015/lib/components/correspondence-relation/correspondence-relation.module.js +111 -0
- package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +153 -0
- package/esm2015/lib/components/correspondence-relation/services/viewer-files.service.js +50 -0
- package/esm2015/lib/components/create-entity/create-entity/create-entity.component.js +69 -0
- package/esm2015/lib/components/create-entity/create-entity.module.js +36 -0
- package/esm2015/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.js +140 -0
- package/esm2015/lib/components/cts-tags/cts-tags.module.js +65 -0
- package/esm2015/lib/components/cts-tags/services/tags-api.service.js +90 -0
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +82 -0
- package/esm2015/lib/components/custom-toastr/custom-toastr.module.js +36 -0
- package/esm2015/lib/components/custom-toastr/interfaces/toast-type.interface.js +2 -0
- package/esm2015/lib/components/custom-toastr/services/custom-toastr.service.js +41 -0
- package/esm2015/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.js +44 -0
- package/esm2015/lib/components/display-suitable-icon/display-suitable-icon/icon.service.js +140 -0
- package/esm2015/lib/components/display-suitable-icon/display-suitable-icon.module.js +24 -0
- package/esm2015/lib/components/documents/components/attachments-list/attachments-list.component.js +156 -0
- package/esm2015/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.js +75 -0
- package/esm2015/lib/components/documents/components/document-list/documents-list.component.js +252 -0
- package/esm2015/lib/components/documents/components/document-scan/document-scan.component.js +974 -0
- package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +30 -0
- package/esm2015/lib/components/documents/components/document-upload/document-upload.component.js +159 -0
- package/esm2015/lib/components/documents/components/documents/documents.component.js +63 -0
- package/esm2015/lib/components/documents/constants/document-templates.js +32 -0
- package/esm2015/lib/components/documents/constants/documents.js +86 -0
- package/esm2015/lib/components/documents/documents.module.js +123 -0
- package/esm2015/lib/components/documents/services/document-templates.service.js +115 -0
- package/esm2015/lib/components/documents/services/documents.service.js +223 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +391 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-chart.module.js +34 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.js +164 -0
- package/esm2015/lib/components/dynamic-chart/services/chart-data.service.js +552 -0
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.js +177 -0
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.js +43 -0
- package/esm2015/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.js +137 -0
- package/esm2015/lib/components/dynamic-filter/dynamic-filter.module.js +27 -0
- package/esm2015/lib/components/dynamic-form/components/department-form/department-form.component.js +130 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.js +105 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/fields.adapter.js +127 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/form-builder.service.js +107 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.js +35 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.js +165 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.js +71 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.js +202 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.js +78 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/constants/department.js +13 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +204 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +203 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.js +95 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.js +85 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.js +139 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.js +81 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.js +36 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.js +106 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.js +93 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.js +207 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +311 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.js +44 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.js +191 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.js +81 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.js +180 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.js +279 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.js +68 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +314 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.js +47 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.js +178 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.js +768 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.js +35 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.js +17 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.js +34 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.js +17 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +74 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.formio.js +30 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.js +32 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.js +30 -0
- package/esm2015/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.js +17 -0
- package/esm2015/lib/components/dynamic-form/dynamic-form.module.js +299 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form.interfaces.js +10 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-baseitem.model.js +63 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-boolitem.model.js +20 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-dateitem.model.js +24 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.js +12 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-mapitem.model.js +16 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-selectitem.model.js +17 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-textitem.model.js +32 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form.models.js +8 -0
- package/esm2015/lib/components/dynamic-form/services/card-item-types.service.js +46 -0
- package/esm2015/lib/components/dynamic-form/services/dynamic-component-mapper.service.js +60 -0
- package/esm2015/lib/components/dynamic-form/services/dynamic-form-update.service.js +83 -0
- package/esm2015/lib/components/dynamic-form/validators/length-validator.js +15 -0
- package/esm2015/lib/components/dynamic-form/validators/regex-validator.js +15 -0
- package/esm2015/lib/components/dynamic-form/validators/required-validator.js +9 -0
- package/esm2015/lib/components/dynamic-form/validators/value-validator.js +15 -0
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +323 -0
- package/esm2015/lib/components/dynamic-search/dynamic-search.module.js +61 -0
- package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +238 -0
- package/esm2015/lib/components/dynamic-table/dynamic-table.module.js +44 -0
- package/esm2015/lib/components/dynamic-table/services/dynamic-table.service.js +16 -0
- package/esm2015/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.js +39 -0
- package/esm2015/lib/components/dynamic-tabs/dynamic-tabs.module.js +34 -0
- package/esm2015/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.js +36 -0
- package/esm2015/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.js +59 -0
- package/esm2015/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.js +68 -0
- package/esm2015/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.js +33 -0
- package/esm2015/lib/components/dynamic-view/data-viewer/data-viewer.component.js +33 -0
- package/esm2015/lib/components/dynamic-view/date-viewer/date-viewer.component.js +55 -0
- package/esm2015/lib/components/dynamic-view/department-viewer/department-viewer.component.js +89 -0
- package/esm2015/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.js +61 -0
- package/esm2015/lib/components/dynamic-view/dynamic-view.module.js +69 -0
- package/esm2015/lib/components/dynamic-view/dynamic-viewe.service.js +62 -0
- package/esm2015/lib/components/dynamic-view/list-viewer/list-viewer.component.js +40 -0
- package/esm2015/lib/components/file-manger/components/add-to-collection/add-to-collection.component.js +132 -0
- package/esm2015/lib/components/file-manger/components/clipboard/clipboard.component.js +264 -0
- package/esm2015/lib/components/file-manger/components/copy/copy.component.js +121 -0
- package/esm2015/lib/components/file-manger/components/create-directory/create-directory.component.js +91 -0
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +455 -0
- package/esm2015/lib/components/file-manger/components/creation-type/creation-type.component.js +26 -0
- package/esm2015/lib/components/file-manger/components/delete/delete.component.js +74 -0
- package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +114 -0
- package/esm2015/lib/components/file-manger/components/loan-request/loan-request.component.js +80 -0
- package/esm2015/lib/components/file-manger/components/move/move.component.js +110 -0
- package/esm2015/lib/components/file-manger/components/publish-dialog/publish-dialog.component.js +111 -0
- package/esm2015/lib/components/file-manger/components/rename/rename.component.js +86 -0
- package/esm2015/lib/components/file-manger/components/scan-modal/scan-modal.component.js +314 -0
- package/esm2015/lib/components/file-manger/components/share-dialog/share-dialog.component.js +294 -0
- package/esm2015/lib/components/file-manger/components/sidepanel/sidepanel.component.js +257 -0
- package/esm2015/lib/components/file-manger/components/template-modal/template-modal.component.js +64 -0
- package/esm2015/lib/components/file-manger/components/transfer-doc/transfer-doc.component.js +71 -0
- package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +358 -0
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +1040 -0
- package/esm2015/lib/components/file-manger/file-manger.module.js +295 -0
- package/esm2015/lib/components/filter/filter/filter.component.js +94 -0
- package/esm2015/lib/components/filter/filter.module.js +45 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.js +123 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.js +126 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.js +165 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.js +32 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.js +58 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.js +71 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/services/date-helper.service.js +30 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.js +43 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.js +26 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/consts.js +5 -0
- package/esm2015/lib/components/latest-activity/components/activity-line/activity-line.component.js +75 -0
- package/esm2015/lib/components/latest-activity/components/latest-activity/latest-activity.component.js +70 -0
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +27 -0
- package/esm2015/lib/components/latest-activity/constants/activitylog.js +80 -0
- package/esm2015/lib/components/latest-activity/latest-activity.module.js +57 -0
- package/esm2015/lib/components/latest-activity/services/activity-log.service.js +33 -0
- package/esm2015/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.js +51 -0
- package/esm2015/lib/components/mutiple-dynamic-form-viewer/mutiple-dynamic-form-viewer.module.js +30 -0
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +137 -0
- package/esm2015/lib/components/notifications/components/notification-options/notification-options.component.js +22 -0
- package/esm2015/lib/components/notifications/components/notification-toast/notification-toast.component.js +57 -0
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +172 -0
- package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +164 -0
- package/esm2015/lib/components/notifications/notifications.module.js +109 -0
- package/esm2015/lib/components/notifications/notifications.service.js +280 -0
- package/esm2015/lib/components/pagination/pagination/pagination.component.js +124 -0
- package/esm2015/lib/components/pagination/pagination.module.js +32 -0
- package/esm2015/lib/components/pdf-tron/pdf-tron.module.js +24 -0
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +745 -0
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.service.js +239 -0
- package/esm2015/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.js +177 -0
- package/esm2015/lib/components/permissions/permission.service.js +118 -0
- package/esm2015/lib/components/permissions/permissions/permissions.component.js +232 -0
- package/esm2015/lib/components/permissions/permissions-template/permissions-template.component.js +117 -0
- package/esm2015/lib/components/permissions/permissions.module.js +71 -0
- package/esm2015/lib/components/select/select/select.component.js +130 -0
- package/esm2015/lib/components/select/select.module.js +37 -0
- package/esm2015/lib/components/select-users-by-department/select-users-by-department.module.js +47 -0
- package/esm2015/lib/components/select-users-by-department/select-users-by-departments/department-management.service.js +27 -0
- package/esm2015/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.js +116 -0
- package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +64 -0
- package/esm2015/lib/components/table/table/table.component.js +227 -0
- package/esm2015/lib/components/table/table.module.js +61 -0
- package/esm2015/lib/components/user/user/user.component.js +31 -0
- package/esm2015/lib/components/user/user.module.js +30 -0
- package/esm2015/lib/components/users-card/users-card.component.js +43 -0
- package/esm2015/lib/components/users-card/users-card.module.js +28 -0
- package/esm2015/lib/components/viewer-log/components/viewer-log/viewer-log.component.js +33 -0
- package/esm2015/lib/components/viewer-log/viewer-log.module.js +20 -0
- package/esm2015/lib/components/vocabulary/interfaces/op-type.interface.js +2 -0
- package/esm2015/lib/components/vocabulary/services/vocabulary-api.service.js +49 -0
- package/esm2015/lib/components/vocabulary/vocabulary/vocabulary.component.js +106 -0
- package/esm2015/lib/components/vocabulary/vocabulary.module.js +34 -0
- package/esm2015/lib/configuration/app-config.service.js +30 -0
- package/esm2015/lib/configuration/helpers/app-initializer.js +4 -0
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +61 -0
- package/esm2015/lib/directive/clickOutSide/click-outside.directive.js +29 -0
- package/esm2015/lib/directive/directive.module.js +52 -0
- package/esm2015/lib/directive/drag-and-drop/drag-and-drop.directive.js +46 -0
- package/esm2015/lib/directive/permissions/evaluators.service.js +152 -0
- package/esm2015/lib/directive/permissions/permissions.directive.js +69 -0
- package/esm2015/lib/directive/rtl/set-dir-rtl.directive.js +28 -0
- package/esm2015/lib/directive/rtl/set-rtl.directive.js +29 -0
- package/esm2015/lib/nuxeo-development-framework.component.js +26 -0
- package/esm2015/lib/nuxeo-development-framework.module.js +50 -0
- package/esm2015/lib/nuxeo-development-framework.service.js +14 -0
- package/esm2015/lib/pipes/file-size.pipe.js +57 -0
- package/esm2015/lib/pipes/hijri-date.pipe.js +46 -0
- package/esm2015/lib/pipes/localized-date.pipe.js +81 -0
- package/esm2015/lib/pipes/multi-value.pipe.js +42 -0
- package/esm2015/lib/pipes/pipes.module.js +29 -0
- package/esm2015/lib/pipes/secure-html.pipe.js +34 -0
- package/esm2015/lib/pipes/secure.pipe.js +40 -0
- package/esm2015/lib/pipes/time-ago.pipe.js +68 -0
- package/esm2015/lib/shared/components/button/button.component.js +87 -0
- package/esm2015/lib/shared/components/item-list/item-list.component.js +77 -0
- package/esm2015/lib/shared/components/no-data/no-data.component.js +37 -0
- package/esm2015/lib/shared/components/read-more/read-more.component.js +108 -0
- package/esm2015/lib/shared/components/search-autocomplete/search-autocomplete.component.js +146 -0
- package/esm2015/lib/shared/components/spinner/spinner.component.js +29 -0
- package/esm2015/lib/shared/components/user-card/user-card.component.js +49 -0
- package/esm2015/lib/shared/libraryShared.module.js +81 -0
- package/esm2015/lib/shared-services/dialog-mangment.service.js +61 -0
- package/esm2015/lib/shared-services/dynamic-form.service.js +241 -0
- package/esm2015/lib/shared-services/file-manager.adapter.js +74 -0
- package/esm2015/lib/shared-services/file-manager.service.js +793 -0
- package/esm2015/lib/shared-services/global-pdftron.service.js +46 -0
- package/esm2015/lib/shared-services/mainfolder.service.js +162 -0
- package/esm2015/lib/shared-services/publishing-document.service.js +202 -0
- package/esm2015/lib/shared-services/recently-viewed.service.js +57 -0
- package/esm2015/lib/shared-services/shared-docs.service.js +135 -0
- package/esm2015/lib/shared-services/shared-services.module.js +20 -0
- package/esm2015/lib/shared-services/upload-file.service.js +29 -0
- package/esm2015/lib/shared-services/upload-managment.service.js +151 -0
- package/esm2015/lib/shared-services/user.service.js +54 -0
- package/esm2015/nuxeo-development-framework.js +5 -0
- package/esm2015/public-api.js +237 -0
- package/fesm2015/nuxeo-development-framework.js +27436 -0
- package/fesm2015/nuxeo-development-framework.js.map +1 -0
- package/lib/Core/adapters/adapter.service.d.ts +11 -0
- package/lib/Core/core.module.d.ts +14 -0
- package/lib/Core/enums/language.enum.d.ts +4 -0
- package/lib/Core/models/component.model.d.ts +6 -0
- package/lib/Core/services/callApi/call-api.service.d.ts +11 -0
- package/lib/Core/services/extension/action.extensions.d.ts +31 -0
- package/lib/Core/services/extension/component-register.service.d.ts +17 -0
- package/lib/Core/services/extension/extenion-utils.d.ts +14 -0
- package/lib/Core/services/extension/extension-element.d.ts +5 -0
- package/lib/Core/services/extension/extension-loader.service.d.ts +28 -0
- package/lib/Core/services/extension/extension.service.d.ts +70 -0
- package/lib/Core/services/initialization/initialization.service.d.ts +14 -0
- package/lib/Core/services/localStorag/local-storag.service.d.ts +41 -0
- package/lib/Core/services/nuxeo/nuxeo-override.d.ts +8 -0
- package/lib/Core/services/nuxeo/nuxeo.service.d.ts +33 -0
- package/lib/Core/services/roles/roles.service.d.ts +12 -0
- package/lib/Core/services/translation/translate-loader.service.d.ts +26 -0
- package/lib/Core/services/translation/translation.service.d.ts +74 -0
- package/lib/Core/services/user/user-preferences.service.d.ts +80 -0
- package/lib/Core/utilities/moment-date-adapter.d.ts +37 -0
- package/lib/Core/utilities/utility.service.d.ts +11 -0
- package/lib/components/activities-log/activities-log/activities-log.component.d.ts +26 -0
- package/lib/components/activities-log/activities-log/activities-log.service.d.ts +9 -0
- package/lib/components/activities-log/activities-log.module.d.ts +12 -0
- package/lib/components/activity/activity/activity.component.d.ts +13 -0
- package/lib/components/activity/activity.module.d.ts +13 -0
- package/lib/components/attachment-item/attachment-item/attachment-item.component.d.ts +21 -0
- package/lib/components/attachment-item/attachment-item.module.d.ts +13 -0
- package/lib/components/attachment-modal/attachment-modal.module.d.ts +12 -0
- package/lib/components/attachment-modal/attachments/attachments.component.d.ts +50 -0
- package/lib/components/avatar/avatar/avatar.component.d.ts +23 -0
- package/lib/components/avatar/avatar.module.d.ts +13 -0
- package/lib/components/card/card.component.d.ts +32 -0
- package/lib/components/card/card.module.d.ts +12 -0
- package/lib/components/comments/comments.module.d.ts +26 -0
- package/lib/components/comments/components/comment-item/comment-item.component.d.ts +24 -0
- package/lib/components/comments/components/comments-dashlet/comments-dashlet.component.d.ts +46 -0
- package/lib/components/comments/components/comments-list/comments-list.component.d.ts +28 -0
- package/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.d.ts +22 -0
- package/lib/components/comments/constants/comment.d.ts +25 -0
- package/lib/components/comments/services/comment-api.service.d.ts +16 -0
- package/lib/components/confirm-caller/confirm-caller.dialog.d.ts +46 -0
- package/lib/components/confirm-caller/confirm-caller.module.d.ts +16 -0
- package/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.d.ts +12 -0
- package/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +12 -0
- package/lib/components/confirmation-dialog/confirmation-dialog.module.d.ts +10 -0
- package/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.d.ts +34 -0
- package/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.d.ts +42 -0
- package/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.d.ts +31 -0
- package/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.d.ts +18 -0
- package/lib/components/correspondence-relation/components/versions/versions.component.d.ts +38 -0
- package/lib/components/correspondence-relation/correspondence-relation.module.d.ts +30 -0
- package/lib/components/correspondence-relation/services/correspondence-realation.service.d.ts +26 -0
- package/lib/components/correspondence-relation/services/viewer-files.service.d.ts +18 -0
- package/lib/components/create-entity/create-entity/create-entity.component.d.ts +17 -0
- package/lib/components/create-entity/create-entity.module.d.ts +11 -0
- package/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.d.ts +38 -0
- package/lib/components/cts-tags/cts-tags.module.d.ts +21 -0
- package/lib/components/cts-tags/services/tags-api.service.d.ts +17 -0
- package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +30 -0
- package/lib/components/custom-toastr/custom-toastr.module.d.ts +12 -0
- package/lib/components/custom-toastr/interfaces/toast-type.interface.d.ts +1 -0
- package/lib/components/custom-toastr/services/custom-toastr.service.d.ts +18 -0
- package/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.d.ts +17 -0
- package/lib/components/display-suitable-icon/display-suitable-icon/icon.service.d.ts +8 -0
- package/lib/components/display-suitable-icon/display-suitable-icon.module.d.ts +8 -0
- package/lib/components/documents/components/attachments-list/attachments-list.component.d.ts +54 -0
- package/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.d.ts +38 -0
- package/lib/components/documents/components/document-list/documents-list.component.d.ts +81 -0
- package/lib/components/documents/components/document-scan/document-scan.component.d.ts +112 -0
- package/lib/components/documents/components/document-scan/document-scan.service.d.ts +14 -0
- package/lib/components/documents/components/document-upload/document-upload.component.d.ts +58 -0
- package/lib/components/documents/components/documents/documents.component.d.ts +27 -0
- package/lib/components/documents/constants/document-templates.d.ts +33 -0
- package/lib/components/documents/constants/documents.d.ts +95 -0
- package/lib/components/documents/documents.module.d.ts +33 -0
- package/lib/components/documents/services/document-templates.service.d.ts +24 -0
- package/lib/components/documents/services/documents.service.d.ts +36 -0
- package/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.d.ts +66 -0
- package/lib/components/dynamic-chart/dynamic-chart.module.d.ts +16 -0
- package/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.d.ts +33 -0
- package/lib/components/dynamic-chart/services/chart-data.service.d.ts +37 -0
- package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.d.ts +137 -0
- package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.d.ts +12 -0
- package/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.d.ts +55 -0
- package/lib/components/dynamic-filter/dynamic-filter.module.d.ts +17 -0
- package/lib/components/dynamic-form/components/department-form/department-form.component.d.ts +28 -0
- package/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.d.ts +27 -0
- package/lib/components/dynamic-form/components/dynamic-form/fields.adapter.d.ts +6 -0
- package/lib/components/dynamic-form/components/dynamic-form/form-builder.service.d.ts +21 -0
- package/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.d.ts +17 -0
- package/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.d.ts +57 -0
- package/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.d.ts +35 -0
- package/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.d.ts +70 -0
- package/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.d.ts +52 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/constants/department.d.ts +12 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +76 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +29 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.d.ts +21 -0
- package/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.d.ts +30 -0
- package/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.d.ts +64 -0
- package/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.d.ts +25 -0
- package/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.d.ts +15 -0
- package/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.d.ts +45 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.d.ts +41 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.d.ts +65 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.d.ts +85 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.d.ts +13 -0
- package/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.d.ts +80 -0
- package/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.d.ts +40 -0
- package/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.d.ts +71 -0
- package/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.d.ts +89 -0
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.d.ts +19 -0
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +104 -0
- package/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.d.ts +16 -0
- package/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.d.ts +79 -0
- package/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.d.ts +599 -0
- package/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.d.ts +13 -0
- package/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.d.ts +13 -0
- package/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.d.ts +16 -0
- package/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.d.ts +13 -0
- package/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.d.ts +9 -0
- package/lib/components/dynamic-form/dynamic-form.module.d.ts +66 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.d.ts +5 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.d.ts +5 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.d.ts +15 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.d.ts +4 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.d.ts +12 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.d.ts +8 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.d.ts +10 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.d.ts +5 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.d.ts +8 -0
- package/lib/components/dynamic-form/models/dynamic-form-baseitem.model.d.ts +21 -0
- package/lib/components/dynamic-form/models/dynamic-form-boolitem.model.d.ts +11 -0
- package/lib/components/dynamic-form/models/dynamic-form-dateitem.model.d.ts +13 -0
- package/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.d.ts +9 -0
- package/lib/components/dynamic-form/models/dynamic-form-mapitem.model.d.ts +8 -0
- package/lib/components/dynamic-form/models/dynamic-form-selectitem.model.d.ts +11 -0
- package/lib/components/dynamic-form/models/dynamic-form-textitem.model.d.ts +15 -0
- package/lib/components/dynamic-form/services/card-item-types.service.d.ts +13 -0
- package/lib/components/dynamic-form/services/dynamic-component-mapper.service.d.ts +36 -0
- package/lib/components/dynamic-form/services/dynamic-form-update.service.d.ts +25 -0
- package/lib/components/dynamic-form/validators/length-validator.d.ts +7 -0
- package/lib/components/dynamic-form/validators/regex-validator.d.ts +7 -0
- package/lib/components/dynamic-form/validators/required-validator.d.ts +5 -0
- package/lib/components/dynamic-form/validators/value-validator.d.ts +7 -0
- package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +98 -0
- package/lib/components/dynamic-search/dynamic-search.module.d.ts +20 -0
- package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +108 -0
- package/lib/components/dynamic-table/dynamic-table.module.d.ts +16 -0
- package/lib/components/dynamic-table/services/dynamic-table.service.d.ts +8 -0
- package/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.d.ts +13 -0
- package/lib/components/dynamic-tabs/dynamic-tabs.module.d.ts +11 -0
- package/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.d.ts +13 -0
- package/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.d.ts +22 -0
- package/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.d.ts +28 -0
- package/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.d.ts +16 -0
- package/lib/components/dynamic-view/data-viewer/data-viewer.component.d.ts +12 -0
- package/lib/components/dynamic-view/date-viewer/date-viewer.component.d.ts +22 -0
- package/lib/components/dynamic-view/department-viewer/department-viewer.component.d.ts +30 -0
- package/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.d.ts +37 -0
- package/lib/components/dynamic-view/dynamic-view.module.d.ts +23 -0
- package/lib/components/dynamic-view/dynamic-viewe.service.d.ts +15 -0
- package/lib/components/dynamic-view/list-viewer/list-viewer.component.d.ts +20 -0
- package/lib/components/file-manger/components/add-to-collection/add-to-collection.component.d.ts +31 -0
- package/lib/components/file-manger/components/clipboard/clipboard.component.d.ts +41 -0
- package/lib/components/file-manger/components/copy/copy.component.d.ts +33 -0
- package/lib/components/file-manger/components/create-directory/create-directory.component.d.ts +24 -0
- package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +108 -0
- package/lib/components/file-manger/components/creation-type/creation-type.component.d.ts +11 -0
- package/lib/components/file-manger/components/delete/delete.component.d.ts +24 -0
- package/lib/components/file-manger/components/folder-modal/folder-modal.component.d.ts +56 -0
- package/lib/components/file-manger/components/loan-request/loan-request.component.d.ts +23 -0
- package/lib/components/file-manger/components/move/move.component.d.ts +33 -0
- package/lib/components/file-manger/components/publish-dialog/publish-dialog.component.d.ts +32 -0
- package/lib/components/file-manger/components/rename/rename.component.d.ts +24 -0
- package/lib/components/file-manger/components/scan-modal/scan-modal.component.d.ts +95 -0
- package/lib/components/file-manger/components/share-dialog/share-dialog.component.d.ts +58 -0
- package/lib/components/file-manger/components/sidepanel/sidepanel.component.d.ts +62 -0
- package/lib/components/file-manger/components/template-modal/template-modal.component.d.ts +34 -0
- package/lib/components/file-manger/components/transfer-doc/transfer-doc.component.d.ts +23 -0
- package/lib/components/file-manger/components/update-modal/update-modal.component.d.ts +194 -0
- package/lib/components/file-manger/file-manager.abstract.d.ts +173 -0
- package/lib/components/file-manger/file-manger.module.d.ts +59 -0
- package/lib/components/filter/filter/filter.component.d.ts +31 -0
- package/lib/components/filter/filter.module.d.ts +15 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.d.ts +35 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.d.ts +35 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.d.ts +39 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.d.ts +9 -0
- package/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.d.ts +15 -0
- package/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.d.ts +15 -0
- package/lib/components/hijri-gregorian-datepicker/services/date-helper.service.d.ts +9 -0
- package/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.d.ts +11 -0
- package/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.d.ts +10 -0
- package/lib/components/hijri-gregorian-datepicker/utils/consts.d.ts +4 -0
- package/lib/components/latest-activity/components/activity-line/activity-line.component.d.ts +19 -0
- package/lib/components/latest-activity/components/latest-activity/latest-activity.component.d.ts +22 -0
- package/lib/components/latest-activity/components/single-activity/single-activity.component.d.ts +10 -0
- package/lib/components/latest-activity/constants/activitylog.d.ts +82 -0
- package/lib/components/latest-activity/latest-activity.module.d.ts +19 -0
- package/lib/components/latest-activity/services/activity-log.service.d.ts +12 -0
- package/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.d.ts +17 -0
- package/lib/components/mutiple-dynamic-form-viewer/mutiple-dynamic-form-viewer.module.d.ts +10 -0
- package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +25 -0
- package/lib/components/notifications/components/notification-options/notification-options.component.d.ts +10 -0
- package/lib/components/notifications/components/notification-toast/notification-toast.component.d.ts +19 -0
- package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +30 -0
- package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +51 -0
- package/lib/components/notifications/notifications.module.d.ts +24 -0
- package/lib/components/notifications/notifications.service.d.ts +64 -0
- package/lib/components/pagination/pagination/pagination.component.d.ts +46 -0
- package/lib/components/pagination/pagination.module.d.ts +13 -0
- package/lib/components/pdf-tron/pdf-tron.module.d.ts +8 -0
- package/lib/components/pdf-tron/pdftron/pdftron.component.d.ts +102 -0
- package/lib/components/pdf-tron/pdftron/pdftron.service.d.ts +33 -0
- package/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.d.ts +44 -0
- package/lib/components/permissions/permission.service.d.ts +21 -0
- package/lib/components/permissions/permissions/permissions.component.d.ts +48 -0
- package/lib/components/permissions/permissions-template/permissions-template.component.d.ts +22 -0
- package/lib/components/permissions/permissions.module.d.ts +21 -0
- package/lib/components/select/select/select.component.d.ts +43 -0
- package/lib/components/select/select.module.d.ts +12 -0
- package/lib/components/select-users-by-department/select-users-by-department.module.d.ts +13 -0
- package/lib/components/select-users-by-department/select-users-by-departments/department-management.service.d.ts +10 -0
- package/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.d.ts +33 -0
- package/lib/components/table/dynamic-column/dynamic-column.component.d.ts +19 -0
- package/lib/components/table/table/table.component.d.ts +108 -0
- package/lib/components/table/table.module.d.ts +20 -0
- package/lib/components/user/user/user.component.d.ts +13 -0
- package/lib/components/user/user.module.d.ts +10 -0
- package/lib/components/users-card/users-card.component.d.ts +22 -0
- package/lib/components/users-card/users-card.module.d.ts +17 -0
- package/lib/components/viewer-log/components/viewer-log/viewer-log.component.d.ts +12 -0
- package/lib/components/viewer-log/viewer-log.module.d.ts +10 -0
- package/lib/components/vocabulary/interfaces/op-type.interface.d.ts +1 -0
- package/lib/components/vocabulary/services/vocabulary-api.service.d.ts +16 -0
- package/lib/components/vocabulary/vocabulary/vocabulary.component.d.ts +37 -0
- package/lib/components/vocabulary/vocabulary.module.d.ts +11 -0
- package/lib/configuration/app-config.service.d.ts +14 -0
- package/lib/configuration/helpers/app-initializer.d.ts +2 -0
- package/lib/directive/app-has-role/app-has-role.directive.d.ts +18 -0
- package/lib/directive/clickOutSide/click-outside.directive.d.ts +11 -0
- package/lib/directive/directive.module.d.ts +17 -0
- package/lib/directive/drag-and-drop/drag-and-drop.directive.d.ts +11 -0
- package/lib/directive/permissions/evaluators.service.d.ts +37 -0
- package/lib/directive/permissions/permissions.directive.d.ts +42 -0
- package/lib/directive/rtl/set-dir-rtl.directive.d.ts +13 -0
- package/lib/directive/rtl/set-rtl.directive.d.ts +13 -0
- package/lib/nuxeo-development-framework.component.d.ts +8 -0
- package/lib/nuxeo-development-framework.module.d.ts +13 -0
- package/lib/nuxeo-development-framework.service.d.ts +6 -0
- package/lib/pipes/file-size.pipe.d.ts +34 -0
- package/lib/pipes/hijri-date.pipe.d.ts +32 -0
- package/lib/pipes/localized-date.pipe.d.ts +44 -0
- package/lib/pipes/multi-value.pipe.d.ts +32 -0
- package/lib/pipes/pipes.module.d.ts +18 -0
- package/lib/pipes/secure-html.pipe.d.ts +26 -0
- package/lib/pipes/secure.pipe.d.ts +29 -0
- package/lib/pipes/time-ago.pipe.d.ts +34 -0
- package/lib/shared/components/button/button.component.d.ts +38 -0
- package/lib/shared/components/item-list/item-list.component.d.ts +45 -0
- package/lib/shared/components/no-data/no-data.component.d.ts +21 -0
- package/lib/shared/components/read-more/read-more.component.d.ts +37 -0
- package/lib/shared/components/search-autocomplete/search-autocomplete.component.d.ts +51 -0
- package/lib/shared/components/spinner/spinner.component.d.ts +18 -0
- package/lib/shared/components/user-card/user-card.component.d.ts +30 -0
- package/lib/shared/libraryShared.module.d.ts +26 -0
- package/lib/shared-services/dialog-mangment.service.d.ts +15 -0
- package/lib/shared-services/dynamic-form.service.d.ts +24 -0
- package/lib/shared-services/file-manager.adapter.d.ts +48 -0
- package/lib/shared-services/file-manager.service.d.ts +94 -0
- package/lib/shared-services/global-pdftron.service.d.ts +10 -0
- package/lib/shared-services/mainfolder.service.d.ts +32 -0
- package/lib/shared-services/publishing-document.service.d.ts +25 -0
- package/lib/shared-services/recently-viewed.service.d.ts +17 -0
- package/lib/shared-services/shared-docs.service.d.ts +21 -0
- package/lib/shared-services/shared-services.module.d.ts +7 -0
- package/lib/shared-services/upload-file.service.d.ts +10 -0
- package/lib/shared-services/upload-managment.service.d.ts +72 -0
- package/lib/shared-services/user.service.d.ts +12 -0
- package/nuxeo-development-framework.d.ts +5 -0
- package/package.json +70 -63
- package/public-api.d.ts +224 -0
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/Core/adapters/adapter.service.ts +0 -46
- package/src/lib/Core/core.module.ts +0 -65
- package/src/lib/Core/enums/language.enum.ts +0 -4
- package/src/lib/Core/models/component.model.ts +0 -11
- package/src/lib/Core/services/callApi/call-api.service.ts +0 -31
- package/src/lib/Core/services/extension/action.extensions.ts +0 -35
- package/src/lib/Core/services/extension/component-register.service.ts +0 -25
- package/src/lib/Core/services/extension/extenion-utils.ts +0 -142
- package/src/lib/Core/services/extension/extension-element.ts +0 -6
- package/src/lib/Core/services/extension/extension-loader.service.ts +0 -160
- package/src/lib/Core/services/extension/extension.service.ts +0 -137
- package/src/lib/Core/services/initialization/initialization.service.ts +0 -50
- package/src/lib/Core/services/localStorag/local-storag.service.ts +0 -125
- package/src/lib/Core/services/nuxeo/nuxeo-override.ts +0 -86
- package/src/lib/Core/services/nuxeo/nuxeo.service.ts +0 -123
- package/src/lib/Core/services/roles/roles.service.spec.ts +0 -16
- package/src/lib/Core/services/roles/roles.service.ts +0 -122
- package/src/lib/Core/services/translation/translate-loader.service.ts +0 -173
- package/src/lib/Core/services/translation/translation.service.ts +0 -221
- package/src/lib/Core/services/user/user-preferences.service.ts +0 -172
- package/src/lib/Core/utilities/moment-date-adapter.ts +0 -203
- package/src/lib/Core/utilities/moment-dates-format.ts +0 -18
- package/src/lib/Core/utilities/utility.service.ts +0 -83
- package/src/lib/assets/scss/ej2/material.css +0 -1
- package/src/lib/assets/scss/mixins.scss +0 -38
- package/src/lib/assets/scss/myApp.scss +0 -487
- package/src/lib/assets/scss/variables.scss +0 -62
- package/src/lib/components/activities-log/activities-log/activities-log.component.html +0 -20
- package/src/lib/components/activities-log/activities-log/activities-log.component.scss +0 -12
- package/src/lib/components/activities-log/activities-log/activities-log.component.spec.ts +0 -25
- package/src/lib/components/activities-log/activities-log/activities-log.component.ts +0 -177
- package/src/lib/components/activities-log/activities-log/activities-log.service.ts +0 -30
- package/src/lib/components/activities-log/activities-log.module.ts +0 -23
- package/src/lib/components/activity/activity/activity.component.html +0 -28
- package/src/lib/components/activity/activity/activity.component.scss +0 -33
- package/src/lib/components/activity/activity/activity.component.spec.ts +0 -25
- package/src/lib/components/activity/activity/activity.component.ts +0 -23
- package/src/lib/components/activity/activity.module.ts +0 -24
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.html +0 -36
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.scss +0 -21
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.spec.ts +0 -25
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.ts +0 -35
- package/src/lib/components/attachment-item/attachment-item.module.ts +0 -26
- package/src/lib/components/attachment-modal/attachment-modal.module.ts +0 -24
- package/src/lib/components/attachment-modal/attachments/attachments.component.html +0 -41
- package/src/lib/components/attachment-modal/attachments/attachments.component.scss +0 -5
- package/src/lib/components/attachment-modal/attachments/attachments.component.spec.ts +0 -25
- package/src/lib/components/attachment-modal/attachments/attachments.component.ts +0 -161
- package/src/lib/components/avatar/avatar/avatar.component.html +0 -13
- package/src/lib/components/avatar/avatar/avatar.component.scss +0 -32
- package/src/lib/components/avatar/avatar/avatar.component.spec.ts +0 -25
- package/src/lib/components/avatar/avatar/avatar.component.ts +0 -50
- package/src/lib/components/avatar/avatar.module.ts +0 -21
- package/src/lib/components/card/card.component.html +0 -35
- package/src/lib/components/card/card.component.scss +0 -81
- package/src/lib/components/card/card.component.spec.ts +0 -25
- package/src/lib/components/card/card.component.ts +0 -38
- package/src/lib/components/card/card.module.ts +0 -15
- package/src/lib/components/comments/comments.module.ts +0 -48
- package/src/lib/components/comments/components/comment-item/comment-item.component.html +0 -32
- package/src/lib/components/comments/components/comment-item/comment-item.component.scss +0 -41
- package/src/lib/components/comments/components/comment-item/comment-item.component.ts +0 -70
- package/src/lib/components/comments/components/comments-dashlet/comments-dashlet.component.html +0 -58
- package/src/lib/components/comments/components/comments-dashlet/comments-dashlet.component.scss +0 -69
- package/src/lib/components/comments/components/comments-dashlet/comments-dashlet.component.ts +0 -80
- package/src/lib/components/comments/components/comments-list/comments-list.component.html +0 -43
- package/src/lib/components/comments/components/comments-list/comments-list.component.scss +0 -103
- package/src/lib/components/comments/components/comments-list/comments-list.component.ts +0 -61
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.html +0 -22
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.scss +0 -48
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.spec.ts +0 -25
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.ts +0 -56
- package/src/lib/components/comments/constants/comment.ts +0 -25
- package/src/lib/components/comments/services/comment-api.service.ts +0 -85
- package/src/lib/components/confirm-caller/confirm-caller.dialog.html +0 -26
- package/src/lib/components/confirm-caller/confirm-caller.dialog.scss +0 -34
- package/src/lib/components/confirm-caller/confirm-caller.dialog.ts +0 -68
- package/src/lib/components/confirm-caller/confirm-caller.module.ts +0 -19
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.html +0 -13
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.scss +0 -0
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.spec.ts +0 -25
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.ts +0 -18
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.html +0 -24
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.scss +0 -0
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.spec.ts +0 -25
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.ts +0 -19
- package/src/lib/components/confirmation-dialog/confirmation-dialog.module.ts +0 -18
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.html +0 -27
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.scss +0 -34
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.spec.ts +0 -25
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.ts +0 -149
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.html +0 -92
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.scss +0 -124
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.spec.ts +0 -25
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.ts +0 -132
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.html +0 -33
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.scss +0 -42
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.spec.ts +0 -25
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.ts +0 -111
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.html +0 -20
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.scss +0 -9
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.spec.ts +0 -25
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.ts +0 -64
- package/src/lib/components/correspondence-relation/components/versions/versions.component.html +0 -80
- package/src/lib/components/correspondence-relation/components/versions/versions.component.scss +0 -0
- package/src/lib/components/correspondence-relation/components/versions/versions.component.ts +0 -71
- package/src/lib/components/correspondence-relation/correspondence-relation.module.ts +0 -59
- package/src/lib/components/correspondence-relation/services/correspondence-realation.service.ts +0 -192
- package/src/lib/components/correspondence-relation/services/viewer-files.service.ts +0 -51
- package/src/lib/components/create-entity/create-entity/create-entity.component.html +0 -18
- package/src/lib/components/create-entity/create-entity/create-entity.component.scss +0 -90
- package/src/lib/components/create-entity/create-entity/create-entity.component.spec.ts +0 -25
- package/src/lib/components/create-entity/create-entity/create-entity.component.ts +0 -57
- package/src/lib/components/create-entity/create-entity.module.ts +0 -22
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.html +0 -57
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.scss +0 -43
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.spec.ts +0 -25
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.ts +0 -133
- package/src/lib/components/cts-tags/cts-tags.module.ts +0 -35
- package/src/lib/components/cts-tags/services/tags-api.service.ts +0 -106
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.html +0 -44
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.scss +0 -91
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.spec.ts +0 -25
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.ts +0 -79
- package/src/lib/components/custom-toastr/custom-toastr.module.ts +0 -19
- package/src/lib/components/custom-toastr/interfaces/toast-type.interface.ts +0 -1
- package/src/lib/components/custom-toastr/services/custom-toastr.service.ts +0 -56
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.html +0 -37
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.scss +0 -73
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.spec.ts +0 -25
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.ts +0 -34
- package/src/lib/components/display-suitable-icon/display-suitable-icon/icon.service.ts +0 -107
- package/src/lib/components/display-suitable-icon/display-suitable-icon.module.ts +0 -16
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.html +0 -92
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.scss +0 -65
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.spec.ts +0 -25
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.ts +0 -162
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.html +0 -36
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.scss +0 -44
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.spec.ts +0 -25
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.ts +0 -77
- package/src/lib/components/documents/components/document-list/documents-list.component.html +0 -34
- package/src/lib/components/documents/components/document-list/documents-list.component.scss +0 -41
- package/src/lib/components/documents/components/document-list/documents-list.component.ts +0 -244
- package/src/lib/components/documents/components/document-scan/document-scan.component.html +0 -176
- package/src/lib/components/documents/components/document-scan/document-scan.component.scss +0 -725
- package/src/lib/components/documents/components/document-scan/document-scan.component.ts +0 -1156
- package/src/lib/components/documents/components/document-scan/document-scan.service.ts +0 -26
- package/src/lib/components/documents/components/document-upload/document-upload.component.html +0 -19
- package/src/lib/components/documents/components/document-upload/document-upload.component.scss +0 -49
- package/src/lib/components/documents/components/document-upload/document-upload.component.ts +0 -168
- package/src/lib/components/documents/components/documents/documents.component.html +0 -16
- package/src/lib/components/documents/components/documents/documents.component.scss +0 -0
- package/src/lib/components/documents/components/documents/documents.component.ts +0 -49
- package/src/lib/components/documents/constants/document-templates.ts +0 -32
- package/src/lib/components/documents/constants/documents.ts +0 -85
- package/src/lib/components/documents/documents.module.ts +0 -69
- package/src/lib/components/documents/services/document-templates.service.ts +0 -155
- package/src/lib/components/documents/services/documents.service.ts +0 -354
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.html +0 -26
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.scss +0 -35
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.spec.ts +0 -25
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.ts +0 -423
- package/src/lib/components/dynamic-chart/dynamic-chart.module.ts +0 -22
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.html +0 -4
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.scss +0 -14
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.spec.ts +0 -25
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.ts +0 -178
- package/src/lib/components/dynamic-chart/new-chart-box.ts +0 -0
- package/src/lib/components/dynamic-chart/services/chart-data.service.ts +0 -613
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.html +0 -58
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.scss +0 -0
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.ts +0 -162
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.ts +0 -25
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.html +0 -122
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.scss +0 -103
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.spec.ts +0 -25
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.ts +0 -124
- package/src/lib/components/dynamic-filter/dynamic-filter.module.ts +0 -19
- package/src/lib/components/dynamic-filter/services/dynamic-filter.service.ts +0 -14
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.html +0 -100
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.scss +0 -38
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.ts +0 -132
- package/src/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.html +0 -3
- package/src/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.scss +0 -51
- package/src/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.ts +0 -109
- package/src/lib/components/dynamic-form/components/dynamic-form/fields.adapter.ts +0 -123
- package/src/lib/components/dynamic-form/components/dynamic-form/form-builder.service.ts +0 -120
- package/src/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.html +0 -14
- package/src/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.scss +0 -2
- package/src/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.ts +0 -34
- package/src/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.html +0 -15
- package/src/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.scss +0 -73
- package/src/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.ts +0 -161
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.html +0 -10
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.scss +0 -13
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.ts +0 -72
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.html +0 -56
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.scss +0 -99
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.ts +0 -210
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.ts +0 -94
- package/src/lib/components/dynamic-form/components/dynamic-form-department/constants/department.ts +0 -12
- package/src/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.html +0 -36
- package/src/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.scss +0 -11
- package/src/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.ts +0 -230
- package/src/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.ts +0 -251
- package/src/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.ts +0 -126
- package/src/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.html +0 -1
- package/src/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.ts +0 -92
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.html +0 -29
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.scss +0 -54
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.ts +0 -152
- package/src/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.ts +0 -105
- package/src/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.html +0 -31
- package/src/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.scss +0 -5
- package/src/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.ts +0 -32
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.html +0 -56
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.scss +0 -24
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.ts +0 -110
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.html +0 -27
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.scss +0 -100
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.ts +0 -117
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.html +0 -83
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.scss +0 -136
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.ts +0 -199
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.html +0 -99
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.scss +0 -177
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.ts +0 -335
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.ts +0 -50
- package/src/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.html +0 -92
- package/src/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.scss +0 -132
- package/src/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.ts +0 -194
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.html +0 -13
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.scss +0 -19
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.ts +0 -85
- package/src/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.html +0 -27
- package/src/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.scss +0 -147
- package/src/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.ts +0 -213
- package/src/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.html +0 -68
- package/src/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.scss +0 -208
- package/src/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.ts +0 -308
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.ts +0 -73
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.ts +0 -350
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dynamic-form-treeview-select.component.html +0 -235
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dynamic-form-treeview-select.component.scss +0 -246
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.html +0 -23
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.scss +0 -29
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.ts +0 -39
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.html +0 -35
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.spec.ts +0 -25
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.ts +0 -175
- package/src/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.ts +0 -780
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.html +0 -2
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.ts +0 -33
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.ts +0 -22
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.html +0 -1
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.ts +0 -32
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.ts +0 -20
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.css +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.html +0 -17
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.ts +0 -65
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.formio.ts +0 -34
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.html +0 -10
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.ts +0 -28
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.ts +0 -34
- package/src/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.ts +0 -10
- package/src/lib/components/dynamic-form/dynamic-form.module.scss +0 -13
- package/src/lib/components/dynamic-form/dynamic-form.module.ts +0 -193
- package/src/lib/components/dynamic-form/interfaces/aspect-oriented-config.interface.ts +0 -3
- package/src/lib/components/dynamic-form/interfaces/content-metadata-config.interface.ts +0 -16
- package/src/lib/components/dynamic-form/interfaces/content-metadata.interfaces.ts +0 -26
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-arrayitem-properties.interface.ts +0 -5
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.ts +0 -6
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.ts +0 -6
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-group.interface.ts +0 -6
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.ts +0 -16
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.ts +0 -4
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.ts +0 -12
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.ts +0 -11
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.ts +0 -13
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.ts +0 -6
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.ts +0 -9
- package/src/lib/components/dynamic-form/interfaces/indifferent-config.interface.ts +0 -1
- package/src/lib/components/dynamic-form/interfaces/layout-oriented-config.interface.ts +0 -17
- package/src/lib/components/dynamic-form/interfaces/organised-property-group.interface.ts +0 -7
- package/src/lib/components/dynamic-form/interfaces/preset-config.interface.ts +0 -8
- package/src/lib/components/dynamic-form/interfaces/property-group.interface.ts +0 -14
- package/src/lib/components/dynamic-form/interfaces/property.interface.ts +0 -12
- package/src/lib/components/dynamic-form/models/dynamic-form-arrayitem.model.ts +0 -26
- package/src/lib/components/dynamic-form/models/dynamic-form-baseitem.model.ts +0 -96
- package/src/lib/components/dynamic-form/models/dynamic-form-boolitem.model.ts +0 -27
- package/src/lib/components/dynamic-form/models/dynamic-form-dateitem.model.ts +0 -39
- package/src/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.ts +0 -18
- package/src/lib/components/dynamic-form/models/dynamic-form-keyvaluepairs.model.ts +0 -19
- package/src/lib/components/dynamic-form/models/dynamic-form-mapitem.model.ts +0 -17
- package/src/lib/components/dynamic-form/models/dynamic-form-selectitem.model.ts +0 -30
- package/src/lib/components/dynamic-form/models/dynamic-form-textitem.model.ts +0 -47
- package/src/lib/components/dynamic-form/services/card-item-types.service.ts +0 -55
- package/src/lib/components/dynamic-form/services/dynamic-component-mapper.service.ts +0 -86
- package/src/lib/components/dynamic-form/services/dynamic-form-update.service.ts +0 -105
- package/src/lib/components/dynamic-form/services/property-groups-translator.service.ts +0 -159
- package/src/lib/components/dynamic-form/services/vocabulary-api.service.ts +0 -32
- package/src/lib/components/dynamic-form/validators/date-validator.ts +0 -18
- package/src/lib/components/dynamic-form/validators/length-validator.ts +0 -18
- package/src/lib/components/dynamic-form/validators/regex-validator.ts +0 -16
- package/src/lib/components/dynamic-form/validators/required-validator.ts +0 -7
- package/src/lib/components/dynamic-form/validators/value-validator.ts +0 -18
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.html +0 -219
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.scss +0 -195
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.spec.ts +0 -25
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.ts +0 -316
- package/src/lib/components/dynamic-search/dynamic-search.module.ts +0 -33
- package/src/lib/components/dynamic-table/constants/documents.ts +0 -72
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.html +0 -46
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.scss +0 -33
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.spec.ts +0 -25
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.ts +0 -239
- package/src/lib/components/dynamic-table/dynamic-table.module.ts +0 -27
- package/src/lib/components/dynamic-table/services/dynamic-table.service.spec.ts +0 -16
- package/src/lib/components/dynamic-table/services/dynamic-table.service.ts +0 -10
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.html +0 -11
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.scss +0 -63
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.spec.ts +0 -25
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.ts +0 -25
- package/src/lib/components/dynamic-tabs/dynamic-tabs.module.ts +0 -20
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.html +0 -4
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.ts +0 -19
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.html +0 -3
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.ts +0 -55
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.html +0 -3
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.ts +0 -65
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.html +0 -14
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.ts +0 -28
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.html +0 -15
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.ts +0 -19
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.html +0 -5
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.ts +0 -38
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.html +0 -14
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.ts +0 -84
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.html +0 -4
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.ts +0 -44
- package/src/lib/components/dynamic-view/dynamic-view.module.ts +0 -44
- package/src/lib/components/dynamic-view/dynamic-viewe.service.ts +0 -58
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.html +0 -24
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.scss +0 -55
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.spec.ts +0 -25
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.ts +0 -27
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.html +0 -34
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.scss +0 -0
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.ts +0 -139
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.html +0 -88
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.scss +0 -17
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.ts +0 -279
- package/src/lib/components/file-manger/components/copy/copy.component.html +0 -24
- package/src/lib/components/file-manger/components/copy/copy.component.scss +0 -0
- package/src/lib/components/file-manger/components/copy/copy.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/copy/copy.component.ts +0 -129
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.html +0 -32
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.scss +0 -0
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.ts +0 -85
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.html +0 -241
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.scss +0 -30
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.ts +0 -475
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.html +0 -39
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.scss +0 -0
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.ts +0 -19
- package/src/lib/components/file-manger/components/delete/delete.component.html +0 -25
- package/src/lib/components/file-manger/components/delete/delete.component.scss +0 -0
- package/src/lib/components/file-manger/components/delete/delete.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/delete/delete.component.ts +0 -80
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.html +0 -65
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.scss +0 -17
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.ts +0 -113
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.html +0 -31
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.scss +0 -0
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.ts +0 -72
- package/src/lib/components/file-manger/components/move/move.component.html +0 -24
- package/src/lib/components/file-manger/components/move/move.component.scss +0 -0
- package/src/lib/components/file-manger/components/move/move.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/move/move.component.ts +0 -114
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.html +0 -45
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.scss +0 -0
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.ts +0 -98
- package/src/lib/components/file-manger/components/rename/rename.component.html +0 -28
- package/src/lib/components/file-manger/components/rename/rename.component.scss +0 -0
- package/src/lib/components/file-manger/components/rename/rename.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/rename/rename.component.ts +0 -82
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.html +0 -336
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.scss +0 -9
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.ts +0 -337
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.html +0 -159
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.scss +0 -38
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.ts +0 -288
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.html +0 -350
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.scss +0 -0
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.ts +0 -247
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.html +0 -213
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.scss +0 -3
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.ts +0 -55
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.html +0 -26
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.scss +0 -0
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.ts +0 -74
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.html +0 -97
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.scss +0 -7
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.spec.ts +0 -25
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.ts +0 -365
- package/src/lib/components/file-manger/file-manager.abstract.ts +0 -1351
- package/src/lib/components/file-manger/file-manger.module.ts +0 -154
- package/src/lib/components/filter/filter/filter.component.html +0 -79
- package/src/lib/components/filter/filter/filter.component.md +0 -68
- package/src/lib/components/filter/filter/filter.component.scss +0 -50
- package/src/lib/components/filter/filter/filter.component.spec.ts +0 -25
- package/src/lib/components/filter/filter/filter.component.ts +0 -81
- package/src/lib/components/filter/filter.module.ts +0 -27
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-date-picker.component.scss +0 -67
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.html +0 -47
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.ts +0 -99
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-date-picker.component.scss +0 -67
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.html +0 -47
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.ts +0 -102
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.html +0 -29
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.ts +0 -152
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.ts +0 -23
- package/src/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.ts +0 -35
- package/src/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.ts +0 -94
- package/src/lib/components/hijri-gregorian-datepicker/services/date-helper.service.ts +0 -28
- package/src/lib/components/hijri-gregorian-datepicker/services/ngx-hijri-gregorian-datepicker.service.ts +0 -9
- package/src/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.ts +0 -35
- package/src/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.ts +0 -26
- package/src/lib/components/hijri-gregorian-datepicker/utils/consts.ts +0 -4
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.html +0 -27
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.scss +0 -13
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.spec.ts +0 -25
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.ts +0 -73
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.html +0 -36
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.scss +0 -12
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.spec.ts +0 -25
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.ts +0 -78
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.html +0 -38
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.scss +0 -157
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.spec.ts +0 -25
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.ts +0 -19
- package/src/lib/components/latest-activity/constants/activitylog.ts +0 -80
- package/src/lib/components/latest-activity/latest-activity.module.ts +0 -33
- package/src/lib/components/latest-activity/services/activity-log.service.ts +0 -41
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.html +0 -36
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.scss +0 -32
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.spec.ts +0 -25
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.ts +0 -45
- package/src/lib/components/mutiple-dynamic-form-viewer/mutiple-dynamic-form-viewer.module.ts +0 -18
- package/src/lib/components/notifications/components/notification-item/notification-item.component.html +0 -45
- package/src/lib/components/notifications/components/notification-item/notification-item.component.scss +0 -60
- package/src/lib/components/notifications/components/notification-item/notification-item.component.ts +0 -136
- package/src/lib/components/notifications/components/notification-options/notification-options.component.html +0 -7
- package/src/lib/components/notifications/components/notification-options/notification-options.component.scss +0 -7
- package/src/lib/components/notifications/components/notification-options/notification-options.component.ts +0 -16
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.html +0 -66
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.scss +0 -62
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.spec.ts +0 -25
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.ts +0 -55
- package/src/lib/components/notifications/components/notifications-button/notifications-button.component.html +0 -7
- package/src/lib/components/notifications/components/notifications-button/notifications-button.component.scss +0 -90
- package/src/lib/components/notifications/components/notifications-button/notifications-button.component.ts +0 -190
- package/src/lib/components/notifications/components/notifications-list/notifications-list.component.html +0 -55
- package/src/lib/components/notifications/components/notifications-list/notifications-list.component.scss +0 -108
- package/src/lib/components/notifications/components/notifications-list/notifications-list.component.ts +0 -161
- package/src/lib/components/notifications/interceptors/token.interceptor.ts +0 -37
- package/src/lib/components/notifications/notifications.module.ts +0 -67
- package/src/lib/components/notifications/notifications.service.ts +0 -300
- package/src/lib/components/pagination/pagination/pagination.component.html +0 -33
- package/src/lib/components/pagination/pagination/pagination.component.scss +0 -46
- package/src/lib/components/pagination/pagination/pagination.component.spec.ts +0 -25
- package/src/lib/components/pagination/pagination/pagination.component.ts +0 -132
- package/src/lib/components/pagination/pagination.module.ts +0 -21
- package/src/lib/components/pdf-tron/pdf-tron.module.ts +0 -16
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.html +0 -1
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.scss +0 -0
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.spec.ts +0 -25
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.ts +0 -782
- package/src/lib/components/pdf-tron/pdftron/pdftron.service.ts +0 -236
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.html +0 -149
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.scss +0 -159
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.spec.ts +0 -25
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.ts +0 -198
- package/src/lib/components/permissions/permission.service.ts +0 -151
- package/src/lib/components/permissions/permissions/permissions.component.html +0 -129
- package/src/lib/components/permissions/permissions/permissions.component.scss +0 -0
- package/src/lib/components/permissions/permissions/permissions.component.spec.ts +0 -25
- package/src/lib/components/permissions/permissions/permissions.component.ts +0 -227
- package/src/lib/components/permissions/permissions-template/permissions-template.component.html +0 -47
- package/src/lib/components/permissions/permissions-template/permissions-template.component.scss +0 -7
- package/src/lib/components/permissions/permissions-template/permissions-template.component.spec.ts +0 -25
- package/src/lib/components/permissions/permissions-template/permissions-template.component.ts +0 -104
- package/src/lib/components/permissions/permissions.module.ts +0 -39
- package/src/lib/components/select/select/select.component.html +0 -64
- package/src/lib/components/select/select/select.component.scss +0 -144
- package/src/lib/components/select/select/select.component.spec.ts +0 -25
- package/src/lib/components/select/select/select.component.ts +0 -116
- package/src/lib/components/select/select.module.ts +0 -22
- package/src/lib/components/select-users-by-department/select-users-by-department.module.ts +0 -27
- package/src/lib/components/select-users-by-department/select-users-by-departments/department-management.service.ts +0 -27
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.html +0 -88
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.scss +0 -15
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.spec.ts +0 -25
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.ts +0 -105
- package/src/lib/components/table/dynamic-column/dynamic-column.component.ts +0 -79
- package/src/lib/components/table/table/table.component.html +0 -377
- package/src/lib/components/table/table/table.component.scss +0 -507
- package/src/lib/components/table/table/table.component.spec.ts +0 -25
- package/src/lib/components/table/table/table.component.ts +0 -195
- package/src/lib/components/table/table.module.ts +0 -35
- package/src/lib/components/user/user/user.component.html +0 -15
- package/src/lib/components/user/user/user.component.scss +0 -0
- package/src/lib/components/user/user/user.component.spec.ts +0 -25
- package/src/lib/components/user/user/user.component.ts +0 -19
- package/src/lib/components/user/user.module.ts +0 -18
- package/src/lib/components/users-card/users-card.component.html +0 -20
- package/src/lib/components/users-card/users-card.component.scss +0 -16
- package/src/lib/components/users-card/users-card.component.ts +0 -30
- package/src/lib/components/users-card/users-card.module.ts +0 -19
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.html +0 -9
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.scss +0 -12
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.spec.ts +0 -25
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.ts +0 -25
- package/src/lib/components/viewer-log/viewer-log.module.ts +0 -12
- package/src/lib/components/vocabulary/interfaces/op-type.interface.ts +0 -4
- package/src/lib/components/vocabulary/services/vocabulary-api.service.ts +0 -46
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.html +0 -12
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.scss +0 -0
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.spec.ts +0 -25
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.ts +0 -80
- package/src/lib/components/vocabulary/vocabulary.module.ts +0 -20
- package/src/lib/configuration/app-config.service.ts +0 -26
- package/src/lib/configuration/configuration.module.ts +0 -12
- package/src/lib/configuration/helpers/app-initializer.ts +0 -5
- package/src/lib/directive/app-has-role/app-has-role.directive.ts +0 -62
- package/src/lib/directive/clickOutSide/click-outside.directive.ts +0 -20
- package/src/lib/directive/directive.module.ts +0 -36
- package/src/lib/directive/drag-and-drop/drag-and-drop.directive.ts +0 -37
- package/src/lib/directive/permissions/evaluators.service.ts +0 -148
- package/src/lib/directive/permissions/permissions.directive.ts +0 -74
- package/src/lib/directive/rtl/set-dir-rtl.directive.ts +0 -25
- package/src/lib/directive/rtl/set-rtl.directive.ts +0 -26
- package/src/lib/nuxeo-development-framework.component.ts +0 -20
- package/src/lib/nuxeo-development-framework.module.ts +0 -31
- package/src/lib/nuxeo-development-framework.service.ts +0 -9
- package/src/lib/pipes/file-size.pipe.ts +0 -61
- package/src/lib/pipes/hijri-date.pipe.ts +0 -40
- package/src/lib/pipes/localized-date.pipe.ts +0 -80
- package/src/lib/pipes/multi-value.pipe.ts +0 -39
- package/src/lib/pipes/pipes.module.ts +0 -20
- package/src/lib/pipes/secure-html.pipe.ts +0 -27
- package/src/lib/pipes/secure.pipe.ts +0 -37
- package/src/lib/pipes/time-ago.pipe.ts +0 -68
- package/src/lib/shared/components/button/button.component.html +0 -13
- package/src/lib/shared/components/button/button.component.scss +0 -102
- package/src/lib/shared/components/button/button.component.spec.ts +0 -25
- package/src/lib/shared/components/button/button.component.ts +0 -87
- package/src/lib/shared/components/item-list/item-list.component.html +0 -37
- package/src/lib/shared/components/item-list/item-list.component.scss +0 -62
- package/src/lib/shared/components/item-list/item-list.component.spec.ts +0 -25
- package/src/lib/shared/components/item-list/item-list.component.ts +0 -69
- package/src/lib/shared/components/no-data/no-data.component.html +0 -3
- package/src/lib/shared/components/no-data/no-data.component.scss +0 -13
- package/src/lib/shared/components/no-data/no-data.component.spec.ts +0 -25
- package/src/lib/shared/components/no-data/no-data.component.ts +0 -26
- package/src/lib/shared/components/read-more/read-more.component.ts +0 -86
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.html +0 -24
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.scss +0 -50
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.spec.ts +0 -25
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.ts +0 -153
- package/src/lib/shared/components/spinner/spinner.component.html +0 -10
- package/src/lib/shared/components/spinner/spinner.component.scss +0 -11
- package/src/lib/shared/components/spinner/spinner.component.spec.ts +0 -25
- package/src/lib/shared/components/spinner/spinner.component.ts +0 -25
- package/src/lib/shared/components/user-card/user-card.component.html +0 -21
- package/src/lib/shared/components/user-card/user-card.component.scss +0 -42
- package/src/lib/shared/components/user-card/user-card.component.spec.ts +0 -25
- package/src/lib/shared/components/user-card/user-card.component.ts +0 -42
- package/src/lib/shared/libraryShared.module.ts +0 -47
- package/src/lib/shared-services/dialog-mangment.service.ts +0 -62
- package/src/lib/shared-services/dynamic-form.service.ts +0 -252
- package/src/lib/shared-services/file-manager.adapter.ts +0 -69
- package/src/lib/shared-services/file-manager.service.ts +0 -1074
- package/src/lib/shared-services/global-pdftron.service.ts +0 -50
- package/src/lib/shared-services/mainfolder.service.ts +0 -220
- package/src/lib/shared-services/publishing-document.service.ts +0 -242
- package/src/lib/shared-services/recently-viewed.service.ts +0 -55
- package/src/lib/shared-services/shared-docs.service.ts +0 -173
- package/src/lib/shared-services/shared-services.module.ts +0 -12
- package/src/lib/shared-services/upload-file.service.ts +0 -26
- package/src/lib/shared-services/upload-managment.service.ts +0 -148
- package/src/lib/shared-services/user.service.ts +0 -49
- package/src/public-api.ts +0 -274
- package/src/test.ts +0 -26
- package/tsconfig.doc.json +0 -4
- package/tsconfig.lib.json +0 -21
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
- /package/{src/lib/components/dynamic-form/interfaces/dynamic-form.interfaces.ts → lib/components/dynamic-form/interfaces/dynamic-form.interfaces.d.ts} +0 -0
- /package/{src/lib/components/dynamic-form/models/dynamic-form.models.ts → lib/components/dynamic-form/models/dynamic-form.models.d.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import WebViewer from '@pdftron/webviewer';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class GlobalPdfTron {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.init();
|
|
8
|
+
}
|
|
9
|
+
exportLinearizedPDF(file) {
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
this.instance.loadDocument(file);
|
|
12
|
+
this.instance.docViewer.on('documentLoaded', () => __awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
const doc = this.instance.docViewer.getDocument();
|
|
14
|
+
const data = yield doc.getFileData({
|
|
15
|
+
flags: this.saveOptions.LINEARIZED,
|
|
16
|
+
downloadType: 'pdf'
|
|
17
|
+
});
|
|
18
|
+
const arr = new Uint8Array(data);
|
|
19
|
+
const blob = new Blob([arr], { type: 'application/pdf' });
|
|
20
|
+
const newFile = new File([blob], file.name, { type: 'application/pdf' });
|
|
21
|
+
resolve(newFile);
|
|
22
|
+
}));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
init() {
|
|
26
|
+
if (!document.getElementById('global-pdftron')) {
|
|
27
|
+
const div = document.createElement('div');
|
|
28
|
+
div.style.display = 'none';
|
|
29
|
+
div.id = 'global-pdftron';
|
|
30
|
+
document.body.appendChild(div);
|
|
31
|
+
}
|
|
32
|
+
WebViewer({
|
|
33
|
+
path: '/dms/assets/pdftrons',
|
|
34
|
+
}, document.getElementById('global-pdftron')).then((instance) => {
|
|
35
|
+
this.saveOptions = instance.CoreControls.SaveOptions;
|
|
36
|
+
this.instance = instance;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
GlobalPdfTron.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: GlobalPdfTron, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
+
GlobalPdfTron.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: GlobalPdfTron, providedIn: 'root' });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: GlobalPdfTron, decorators: [{
|
|
43
|
+
type: Injectable,
|
|
44
|
+
args: [{ providedIn: 'root' }]
|
|
45
|
+
}], ctorParameters: function () { return []; } });
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsLXBkZnRyb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL3NoYXJlZC1zZXJ2aWNlcy9nbG9iYWwtcGRmdHJvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sU0FBMkIsTUFBTSxvQkFBb0IsQ0FBQzs7QUFHN0QsTUFBTSxPQUFPLGFBQWE7SUFHdEI7UUFDSSxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDaEIsQ0FBQztJQUdELG1CQUFtQixDQUFDLElBQUk7UUFDcEIsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBR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ydExpbmVhcml6ZWRQREYoZmlsZSkge1xyXG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XHJcbiAgICAgICAgICAgIHRoaXMuaW5zdGFuY2UubG9hZERvY3VtZW50KFxyXG4gICAgICAgICAgICAgICAgZmlsZVxyXG4gICAgICAgICAgICApO1xyXG4gICAgICAgICAgICB0aGlzLmluc3RhbmNlLmRvY1ZpZXdlci5vbignZG9jdW1lbnRMb2FkZWQnLCBhc3luYyAoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBkb2MgPSB0aGlzLmluc3RhbmNlLmRvY1ZpZXdlci5nZXREb2N1bWVudCgpO1xyXG4gICAgICAgICAgICAgICAgY29uc3QgZGF0YSA9IGF3YWl0IGRvYy5nZXRGaWxlRGF0YSh7XHJcbiAgICAgICAgICAgICAgICAgICAgZmxhZ3M6IHRoaXMuc2F2ZU9wdGlvbnMuTElORUFSSVpFRCxcclxuICAgICAgICAgICAgICAgICAgICBkb3dubG9hZFR5cGU6ICdwZGYnXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIGNvbnN0IGFyciA9IG5ldyBVaW50OEFycmF5KGRhdGEpO1xyXG4gICAgICAgICAgICAgICAgY29uc3QgYmxvYiA9IG5ldyBCbG9iKFthcnJdLCB7IHR5cGU6ICdhcHBsaWNhdGlvbi9wZGYnIH0pXHJcbiAgICAgICAgICAgICAgICBjb25zdCBuZXdGaWxlID0gbmV3IEZpbGUoW2Jsb2JdLCBmaWxlLm5hbWUsIHsgdHlwZTogJ2FwcGxpY2F0aW9uL3BkZicgfSlcclxuICAgICAgICAgICAgICAgIHJlc29sdmUobmV3RmlsZSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG5cclxuXHJcbiAgICB9XHJcbiAgICBpbml0KCkge1xyXG4gICAgICAgIGlmICghZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2dsb2JhbC1wZGZ0cm9uJykpIHtcclxuICAgICAgICAgICAgY29uc3QgZGl2ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZGl2Jyk7XHJcbiAgICAgICAgICAgIGRpdi5zdHlsZS5kaXNwbGF5ID0gJ25vbmUnO1xyXG4gICAgICAgICAgICBkaXYuaWQgPSAnZ2xvYmFsLXBkZnRyb24nO1xyXG4gICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGRpdik7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIFdlYlZpZXdlcihcclxuICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgcGF0aDogJy9kbXMvYXNzZXRzL3BkZnRyb25zJyxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2dsb2JhbC1wZGZ0cm9uJyksXHJcbiAgICAgICAgKS50aGVuKChpbnN0YW5jZSkgPT4ge1xyXG4gICAgICAgICAgICB0aGlzLnNhdmVPcHRpb25zID0gaW5zdGFuY2UuQ29yZUNvbnRyb2xzLlNhdmVPcHRpb25zO1xyXG4gICAgICAgICAgICB0aGlzLmluc3RhbmNlID0gaW5zdGFuY2U7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcbn0iXX0=
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { from, of } from 'rxjs';
|
|
3
|
+
import { catchError, switchMap, take, tap } from 'rxjs/operators';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../Core/services/nuxeo/nuxeo.service";
|
|
6
|
+
import * as i2 from "../configuration/app-config.service";
|
|
7
|
+
import * as i3 from "../Core/services/user/user-preferences.service";
|
|
8
|
+
export class MainfolderService {
|
|
9
|
+
constructor(nuxeoService, appConfigService, userPreference) {
|
|
10
|
+
this.nuxeoService = nuxeoService;
|
|
11
|
+
this.appConfigService = appConfigService;
|
|
12
|
+
this.userPreference = userPreference;
|
|
13
|
+
this.appConfigService.configLoaded.pipe(take(1)).subscribe(res => {
|
|
14
|
+
this.localStoragKeys = this.appConfigService.myConfiguration.localStorageKey;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
fetchfileManager_mainFolderId(apiName) {
|
|
18
|
+
return from(this.nuxeoService.nuxeoClient
|
|
19
|
+
.operation(apiName ? apiName : 'AC_UA_GetFileManagerID')
|
|
20
|
+
.execute({
|
|
21
|
+
headers: {
|
|
22
|
+
properties: 'file, dublincore, creator, driveroot, departmentspace',
|
|
23
|
+
'fetch-document': 'dc:creator, dc:lastContributor',
|
|
24
|
+
'enrichers-document': 'hasFolderishChild, favorites, thumbnail, quickAccess,breadcrumb',
|
|
25
|
+
'X-NXenrichers-document': 'tags,permissions',
|
|
26
|
+
},
|
|
27
|
+
})).pipe(tap((res) => {
|
|
28
|
+
var _a;
|
|
29
|
+
if (!((_a = res === null || res === void 0 ? void 0 : res.entries) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
30
|
+
throw Error('Main Folder - empty response');
|
|
31
|
+
}
|
|
32
|
+
}), catchError((err) => {
|
|
33
|
+
console.error(err);
|
|
34
|
+
return of(false);
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
fetchMyFilesManager_mainFolderId() {
|
|
38
|
+
return from(this.nuxeoService.nuxeoClient
|
|
39
|
+
.operation('AC_UA_PersonalSpace_GetOrCreate')
|
|
40
|
+
.execute()).pipe(tap((res) => {
|
|
41
|
+
console.log('res', res);
|
|
42
|
+
}), catchError((err) => {
|
|
43
|
+
console.error(err);
|
|
44
|
+
return of(false);
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
fetchArchiveManager_mainFolderId() {
|
|
48
|
+
return from(this.nuxeoService.nuxeoClient
|
|
49
|
+
.operation('AC_UA_GetSpaceID')
|
|
50
|
+
.execute()).pipe(tap((res) => {
|
|
51
|
+
console.log('res', res);
|
|
52
|
+
}), catchError((err) => {
|
|
53
|
+
console.error(err);
|
|
54
|
+
return of(false);
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
fetchcategory_mainFolderId() {
|
|
58
|
+
return from(this.nuxeoService.nuxeoClient
|
|
59
|
+
.operation('AC_UA_GetNCARCategoryID')
|
|
60
|
+
.execute()).pipe(tap((res) => {
|
|
61
|
+
// if (!res?.entries?.length) {
|
|
62
|
+
// throw Error('Category Folder - empty response');
|
|
63
|
+
// }
|
|
64
|
+
}), catchError((err) => {
|
|
65
|
+
console.error(err);
|
|
66
|
+
return of(false);
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
save_fileManagerObj_ToLocalStorage(apiName = 'AC_UA_GetFileManagerID') {
|
|
70
|
+
/*return this.userPreference.hasItem('fileManagerObj') && !reset
|
|
71
|
+
? of(true):*/
|
|
72
|
+
return this.fetchfileManager_mainFolderId(apiName).pipe(tap((res) => {
|
|
73
|
+
console.log('res: ', res);
|
|
74
|
+
if (res) {
|
|
75
|
+
this.fileManagerObj = {
|
|
76
|
+
entries: res.entries.map((item) => {
|
|
77
|
+
delete item._baseOptions;
|
|
78
|
+
delete item._dirtyProperties;
|
|
79
|
+
delete item._nuxeo;
|
|
80
|
+
delete item._repository;
|
|
81
|
+
return item;
|
|
82
|
+
}),
|
|
83
|
+
};
|
|
84
|
+
this.userPreference.set(apiName ? this.localStoragKeys[apiName] : 'fileManagerObj', JSON.stringify(this.fileManagerObj));
|
|
85
|
+
}
|
|
86
|
+
}), switchMap(value => of(this.get_fileManagerObj_FromLocalStorage(apiName ? this.localStoragKeys[apiName] : 'fileManagerObj'))));
|
|
87
|
+
}
|
|
88
|
+
save_myfilesManagerObj_ToLocalStorage() {
|
|
89
|
+
return this.userPreference.hasItem('myFilesManagerObj')
|
|
90
|
+
? of(true)
|
|
91
|
+
: this.fetchMyFilesManager_mainFolderId().pipe(tap((res) => {
|
|
92
|
+
console.log('res: ' + res);
|
|
93
|
+
if (res) {
|
|
94
|
+
this.myFilesManagerObj = {
|
|
95
|
+
id: res.uid,
|
|
96
|
+
path: res.path,
|
|
97
|
+
};
|
|
98
|
+
this.userPreference.set('myFilesManagerObj', JSON.stringify(this.myFilesManagerObj));
|
|
99
|
+
}
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
102
|
+
save_ArchiveManagerObject_ToLocalStorage() {
|
|
103
|
+
return this.userPreference.hasItem('ArchiveManagerObj')
|
|
104
|
+
? of(true)
|
|
105
|
+
: this.fetchArchiveManager_mainFolderId().pipe(tap((res) => {
|
|
106
|
+
console.log('res: ' + res);
|
|
107
|
+
if (res) {
|
|
108
|
+
this.ArchiveManagerObj = {
|
|
109
|
+
id: res.uid,
|
|
110
|
+
path: res.path,
|
|
111
|
+
};
|
|
112
|
+
this.userPreference.set('ArchiveManagerObj', JSON.stringify(this.ArchiveManagerObj));
|
|
113
|
+
}
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
save_categoryObj_ToLocalStorage() {
|
|
117
|
+
return this.userPreference.hasItem('categoryObj')
|
|
118
|
+
? of(true)
|
|
119
|
+
: this.fetchcategory_mainFolderId().pipe(tap((res) => {
|
|
120
|
+
if (res) {
|
|
121
|
+
this.categoryObj = {
|
|
122
|
+
id: res.uid,
|
|
123
|
+
path: res.path,
|
|
124
|
+
};
|
|
125
|
+
this.userPreference.set('categoryObj', JSON.stringify(this.categoryObj));
|
|
126
|
+
}
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
get_fileManagerObj_FromLocalStorage(key) {
|
|
130
|
+
if (this.userPreference.hasItem(key ? key : 'fileManagerObj')) {
|
|
131
|
+
return JSON.parse(this.userPreference.get(key ? key : 'fileManagerObj'));
|
|
132
|
+
}
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
get_myFilesManagerObj_FromLocalStorage() {
|
|
136
|
+
if (this.userPreference.hasItem('myFilesManagerObj')) {
|
|
137
|
+
return JSON.parse(this.userPreference.get('myFilesManagerObj'));
|
|
138
|
+
}
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
get_ArchiveManagerObj_FromLocalStorage() {
|
|
142
|
+
if (this.userPreference.hasItem('ArchiveManagerObj')) {
|
|
143
|
+
return JSON.parse(this.userPreference.get('ArchiveManagerObj'));
|
|
144
|
+
}
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
get_categoryObj_FromLocalStorage() {
|
|
148
|
+
if (this.userPreference.hasItem('categoryObj')) {
|
|
149
|
+
return JSON.parse(this.userPreference.get('categoryObj'));
|
|
150
|
+
}
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
MainfolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: MainfolderService, deps: [{ token: i1.NuxeoService }, { token: i2.AppConfigService }, { token: i3.UserPreferencesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
155
|
+
MainfolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: MainfolderService, providedIn: 'root' });
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: MainfolderService, decorators: [{
|
|
157
|
+
type: Injectable,
|
|
158
|
+
args: [{
|
|
159
|
+
providedIn: 'root',
|
|
160
|
+
}]
|
|
161
|
+
}], ctorParameters: function () { return [{ type: i1.NuxeoService }, { type: i2.AppConfigService }, { type: i3.UserPreferencesService }]; } });
|
|
162
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbmZvbGRlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvc2hhcmVkLXNlcnZpY2VzL21haW5m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ICAgICAgICAgICAgICAgICAgJ2hhc0ZvbGRlcmlzaENoaWxkLCBmYXZvcml0ZXMsIHRodW1ibmFpbCwgcXVpY2tBY2Nlc3MsYnJlYWRjcnVtYicsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICdYLU5YZW5yaWNoZXJzLWRvY3VtZW50JzogJ3RhZ3MscGVybWlzc2lvbnMnLFxyXG4gICAgICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICkucGlwZShcclxuICAgICAgICAgICAgdGFwKChyZXM6IGFueSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKCFyZXM/LmVudHJpZXM/Lmxlbmd0aCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKCdNYWluIEZvbGRlciAtIGVtcHR5IHJlc3BvbnNlJyk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICBjYXRjaEVycm9yKChlcnIpID0+IHtcclxuICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoZXJyKTtcclxuICAgICAgICAgICAgICAgIHJldHVybiBvZihmYWxzZSk7XHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICBmZXRjaE15RmlsZXNNYW5hZ2VyX21haW5Gb2xkZXJJZCgpOiBPYnNlcnZhYmxlPGFueT4ge1xyXG4gICAgICAgIHJldHVybiBmcm9tKFxyXG4gICAgICAgICAgICB0aGlzLm51eGVvU2VydmljZS5udXhlb0NsaWVudFxyXG4gICAgICAgICAgICAgICAgLm9wZXJhdGlvbignQUNfVUFfUGVyc29uYWxTcGFjZV9HZXRPckNyZWF0ZScpXHJcbiAgICAgICAgICAgICAgICAuZXhlY3V0ZSgpXHJcbiAgICAgICAgKS5waXBlKFxyXG4gICAgICAgICAgICB0YXAoKHJlczogYW55KSA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygncmVzJywgcmVzKTtcclxuICAgICAgICAgICAgfSksXHJcbiAgICAgICAgICAgIGNhdGNoRXJyb3IoKGVycikgPT4ge1xyXG4gICAgICAgICAgICAgICAgY29uc29sZS5lcnJvcihlcnIpO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIG9mKGZhbHNlKTtcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICApO1xyXG4gICAgfVxyXG4gICAgZmV0Y2hBcmNoaXZlTWFuYWdlcl9tYWluRm9sZGVySWQoKTogT2JzZXJ2YWJsZTxhbnk+IHtcclxuICAgICAgICByZXR1cm4gZnJvbShcclxuICAgICAgICAgICAgdGhpcy5udXhlb1NlcnZpY2UubnV4ZW9DbGllbnRcclxuICAgICAgICAgICAgICAgIC5vcGVyYXRpb24oJ0FDX1VBX0dldFNwYWNlSUQnKVxyXG4gICAgICAgICAgICAgICAgLmV4ZWN1dGUoKVxyXG4gICAgICAgICkucGlwZShcclxuICAgICAgICAgICAgdGFwKChyZXM6IGFueSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ3JlcycsIHJlcyk7XHJcbiAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICBjYXRjaEVycm9yKChlcnIpID0+IHtcclxuICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoZXJyKTtcclxuICAgICAgICAgICAgICAgIHJldHVybiBvZihmYWxzZSk7XHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICBmZXRjaGNhdGVnb3J5X21haW5Gb2xkZXJJZCgpOiBPYnNlcnZhYmxlPGFueT4ge1xyXG4gICAgICAgIHJldHVybiBmcm9tKFxyXG4gICAgICAgICAgICB0aGlzLm51eGVvU2VydmljZS5udXhlb0NsaWVudFxyXG4gICAgICAgICAgICAgICAgLm9wZXJhdGlvbignQUNfVUFfR2V0TkNBUkNhdGVnb3J5SUQnKVxyXG4gICAgICAgICAgICAgICAgLmV4ZWN1dGUoKVxyXG4gICAgICAgICkucGlwZShcclxuICAgICAgICAgICAgdGFwKChyZXM6IGFueSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgLy8gaWYgKCFyZXM/LmVudHJpZXM/Lmxlbmd0aCkge1xyXG4gICAgICAgICAgICAgICAgLy8gICAgIHRocm93IEVycm9yKCdDYXRlZ29yeSBGb2xkZXIgLSBlbXB0eSByZXNwb25zZScpO1xyXG4gICAgICAgICAgICAgICAgLy8gfVxyXG4gICAgICAgICAgICB9KSxcclxuICAgICAgICAgICAgY2F0Y2hFcnJvcigoZXJyKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKGVycik7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gb2YoZmFsc2UpO1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgICk7XHJcbiAgICB9XHJcblxyXG4gICAgc2F2ZV9maWxlTWFuYWdlck9ial9Ub0xvY2FsU3RvcmFnZShhcGlOYW1lID0gJ0FDX1VBX0dldEZpbGVNYW5hZ2VySUQnKTogT2JzZXJ2YWJsZTxhbnk+IHtcclxuICAgICAgICAvKnJldHVybiB0aGlzLnVzZXJQcmVmZXJlbmNlLmhhc0l0ZW0oJ2ZpbGVNYW5hZ2VyT2JqJykgJiYgIXJlc2V0XHJcbiAgICAgICAgICAgICA/IG9mKHRydWUpOiovXHJcbiAgICAgICAgcmV0dXJuIHRoaXMuZmV0Y2hmaWxlTWFuYWdlcl9tYWluRm9sZGVySWQoYXBpTmFtZSkucGlwZShcclxuICAgICAgICAgICAgdGFwKChyZXMpID0+IHtcclxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKCdyZXM6ICcsIHJlcyk7XHJcbiAgICAgICAgICAgICAgICBpZiAocmVzKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maWxlTWFuYWdlck9iaiA9IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgZW50cmllczogcmVzLmVudHJpZXMubWFwKChpdGVtKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgaXRlbS5fYmFzZU9wdGlvbnM7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgaXRlbS5fZGlydHlQcm9wZXJ0aWVzO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlIGl0ZW0uX251eGVvO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlIGl0ZW0uX3JlcG9zaXRvcnk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gaXRlbTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSksXHJcbiAgICAgICAgICAgICAgICAgICAgfTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy51c2VyUHJlZmVyZW5jZS5zZXQoXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwaU5hbWUgPyB0aGlzLmxvY2FsU3RvcmFnS2V5c1thcGlOYW1lXSA6ICdmaWxlTWFuYWdlck9iaicsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHRoaXMuZmlsZU1hbmFnZXJPYmopXHJcbiAgICAgICAgICAgICAgICAgICAgKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSksXHJcbiAgICAgICAgICAgIHN3aXRjaE1hcCh2YWx1ZSA9PiBvZih0aGlzLmdldF9maWxlTWFuYWdlck9ial9Gcm9tTG9jYWxTdG9yYWdlKGFwaU5hbWUgPyB0aGlzLmxvY2FsU3RvcmFnS2V5c1thcGlOYW1lXSA6ICdmaWxlTWFuYWdlck9iaicpKSlcclxuICAgICAgICApO1xyXG4gICAgfVxyXG5cclxuICAgIHNhdmVfbXlmaWxlc01hbmFnZXJPYmpfVG9Mb2NhbFN0b3JhZ2UoKTogT2JzZXJ2YWJsZTxhbnk+IHtcclxuICAgICAgICByZXR1cm4gdGhpcy51c2VyUHJlZmVyZW5jZS5oYXNJdGVtKCdteUZpbGVzTWFuYWdlck9iaicpXHJcbiAgICAgICAgICAgID8gb2YodHJ1ZSlcclxuICAgICAgICAgICAgOiB0aGlzLmZldGNoTXlGaWxlc01hbmFnZXJfbWFpbkZvbGRlcklkKCkucGlwZShcclxuICAgICAgICAgICAgICAgIHRhcCgocmVzKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ3JlczogJyArIHJlcyk7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlcykge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm15RmlsZXNNYW5hZ2VyT2JqID0ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ6IHJlcy51aWQsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXRoOiByZXMucGF0aCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudXNlclByZWZlcmVuY2Uuc2V0KFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ215RmlsZXNNYW5hZ2VyT2JqJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHRoaXMubXlGaWxlc01hbmFnZXJPYmopXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICBzYXZlX0FyY2hpdmVNYW5hZ2VyT2JqZWN0X1RvTG9jYWxTdG9yYWdlKCk6IE9ic2VydmFibGU8YW55PiB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMudXNlclByZWZlcmVuY2UuaGFzSXRlbSgnQXJjaGl2ZU1hbmFnZXJPYmonKVxyXG4gICAgICAgICAgICA/IG9mKHRydWUpXHJcbiAgICAgICAgICAgIDogdGhpcy5mZXRjaEFyY2hpdmVNYW5hZ2VyX21haW5Gb2xkZXJJZCgpLnBpcGUoXHJcbiAgICAgICAgICAgICAgICB0YXAoKHJlcykgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKCdyZXM6ICcgKyByZXMpO1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXMpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5BcmNoaXZlTWFuYWdlck9iaiA9IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkOiByZXMudWlkLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGF0aDogcmVzLnBhdGgsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnVzZXJQcmVmZXJlbmNlLnNldChcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdBcmNoaXZlTWFuYWdlck9iaicsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBKU09OLnN0cmluZ2lmeSh0aGlzLkFyY2hpdmVNYW5hZ2VyT2JqKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICk7XHJcbiAgICB9XHJcblxyXG4gICAgc2F2ZV9jYXRlZ29yeU9ial9Ub0xvY2FsU3RvcmFnZSgpOiBPYnNlcnZhYmxlPGFueT4ge1xyXG4gICAgICAgIHJldHVybiB0aGlzLnVzZXJQcmVmZXJlbmNlLmhhc0l0ZW0oJ2NhdGVnb3J5T2JqJylcclxuICAgICAgICAgICAgPyBvZih0cnVlKVxyXG4gICAgICAgICAgICA6IHRoaXMuZmV0Y2hjYXRlZ29yeV9tYWluRm9sZGVySWQoKS5waXBlKFxyXG4gICAgICAgICAgICAgICAgdGFwKChyZXMpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAocmVzKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2F0ZWdvcnlPYmogPSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZDogcmVzLnVpZCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdGg6IHJlcy5wYXRoLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9O1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy51c2VyUHJlZmVyZW5jZS5zZXQoXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnY2F0ZWdvcnlPYmonLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgSlNPTi5zdHJpbmdpZnkodGhpcy5jYXRlZ29yeU9iailcclxuICAgICAgICAgICAgICAgICAgICAgICAgKTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICApO1xyXG4gICAgfVxyXG5cclxuICAgIGdldF9maWxlTWFuYWdlck9ial9Gcm9tTG9jYWxTdG9yYWdlKGtleT8pIHtcclxuICAgICAgICBpZiAodGhpcy51c2VyUHJlZmVyZW5jZS5oYXNJdGVtKCBrZXkgPyBrZXkgOiAnZmlsZU1hbmFnZXJPYmonKSkge1xyXG4gICAgICAgICAgICByZXR1cm4gSlNPTi5wYXJzZSh0aGlzLnVzZXJQcmVmZXJlbmNlLmdldChrZXkgPyBrZXkgOiAnZmlsZU1hbmFnZXJPYmonKSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgfVxyXG5cclxuICAgIGdldF9teUZpbGVzTWFuYWdlck9ial9Gcm9tTG9jYWxTdG9yYWdlKCkge1xyXG4gICAgICAgIGlmICh0aGlzLnVzZXJQcmVmZXJlbmNlLmhhc0l0ZW0oJ215RmlsZXNNYW5hZ2VyT2JqJykpIHtcclxuICAgICAgICAgICAgcmV0dXJuIEpTT04ucGFyc2UodGhpcy51c2VyUHJlZmVyZW5jZS5nZXQoJ215RmlsZXNNYW5hZ2VyT2JqJykpO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gbnVsbDtcclxuICAgIH1cclxuICAgIGdldF9BcmNoaXZlTWFuYWdlck9ial9Gcm9tTG9jYWxTdG9yYWdlKCkge1xyXG4gICAgICAgIGlmICh0aGlzLnVzZXJQcmVmZXJlbmNlLmhhc0l0ZW0oJ0FyY2hpdmVNYW5hZ2VyT2JqJykpIHtcclxuICAgICAgICAgICAgcmV0dXJuIEpTT04ucGFyc2UodGhpcy51c2VyUHJlZmVyZW5jZS5nZXQoJ0FyY2hpdmVNYW5hZ2VyT2JqJykpO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gbnVsbDtcclxuICAgIH1cclxuXHJcbiAgICBnZXRfY2F0ZWdvcnlPYmpfRnJvbUxvY2FsU3RvcmFnZSgpIHtcclxuICAgICAgICBpZiAodGhpcy51c2VyUHJlZmVyZW5jZS5oYXNJdGVtKCdjYXRlZ29yeU9iaicpKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBKU09OLnBhcnNlKHRoaXMudXNlclByZWZlcmVuY2UuZ2V0KCdjYXRlZ29yeU9iaicpKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICB9XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, from } from 'rxjs';
|
|
3
|
+
import { catchError } from 'rxjs/operators';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../Core/services/nuxeo/nuxeo.service";
|
|
6
|
+
import * as i2 from "../Core/services/callApi/call-api.service";
|
|
7
|
+
export class PublishingDocumentService {
|
|
8
|
+
constructor(nuxeoService, environment, callApiService) {
|
|
9
|
+
this.nuxeoService = nuxeoService;
|
|
10
|
+
this.environment = environment;
|
|
11
|
+
this.callApiService = callApiService;
|
|
12
|
+
this.newPublished = new BehaviorSubject(false);
|
|
13
|
+
}
|
|
14
|
+
getSectionById(docIds) {
|
|
15
|
+
return this.callApiService.query({
|
|
16
|
+
pageProvider: 'Documents_InList_PP',
|
|
17
|
+
pageSize: 1000,
|
|
18
|
+
system_uuid: JSON.stringify(docIds),
|
|
19
|
+
}, {
|
|
20
|
+
headers: {
|
|
21
|
+
"X-NXproperties": "*",
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
getSectionByTitle(titles) {
|
|
26
|
+
return this.callApiService.query({
|
|
27
|
+
pageProvider: 'Documents_InList_PP',
|
|
28
|
+
pageSize: 1000,
|
|
29
|
+
system_primaryType: "OSDepartment",
|
|
30
|
+
dublincore_title: JSON.stringify(titles),
|
|
31
|
+
}, {
|
|
32
|
+
headers: {
|
|
33
|
+
"X-NXproperties": "*",
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
getPublishingSections(pageNumber, pageSize, sortObj) {
|
|
38
|
+
return from(this.nuxeoService.nuxeoClient
|
|
39
|
+
.operation('Repository.PageProvider', {
|
|
40
|
+
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
41
|
+
})
|
|
42
|
+
.params({
|
|
43
|
+
"documentSchemas": ["*"],
|
|
44
|
+
page: pageNumber ? pageNumber : 0,
|
|
45
|
+
currentPageIndex: pageNumber ? pageNumber : 0,
|
|
46
|
+
offset: 0,
|
|
47
|
+
pageSize: pageSize ? pageSize : 0,
|
|
48
|
+
sortBy: sortObj === null || sortObj === void 0 ? void 0 : sortObj.sortBy,
|
|
49
|
+
sortOrder: sortObj === null || sortObj === void 0 ? void 0 : sortObj.sortOrder,
|
|
50
|
+
"pageProviderName": "publish_space_suggestion",
|
|
51
|
+
"providerName": "publish_space_suggestion",
|
|
52
|
+
"repository": "default",
|
|
53
|
+
"searchTerm": "",
|
|
54
|
+
})
|
|
55
|
+
.context()
|
|
56
|
+
.execute({
|
|
57
|
+
headers: {
|
|
58
|
+
'X-NXproperties': '*',
|
|
59
|
+
'enrichers-document': 'acls',
|
|
60
|
+
"fetch-document": "dc:creator"
|
|
61
|
+
},
|
|
62
|
+
})).pipe(catchError((err) => {
|
|
63
|
+
console.log(err);
|
|
64
|
+
throw err;
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
unPublishDocument(docId) {
|
|
68
|
+
return from(this.nuxeoService.nuxeoClient
|
|
69
|
+
.operation('Document.Delete', {
|
|
70
|
+
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
71
|
+
})
|
|
72
|
+
.input(docId)
|
|
73
|
+
.execute()).pipe(catchError((err) => {
|
|
74
|
+
throw err;
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
publishDocument(docId, params) {
|
|
78
|
+
return from(this.nuxeoService.nuxeoClient
|
|
79
|
+
.operation('AC_UA_Puplish_Documents', {
|
|
80
|
+
url: `${this.environment.nuxeo}/api/v1/custom-automation`,
|
|
81
|
+
})
|
|
82
|
+
.params()
|
|
83
|
+
.input(docId)
|
|
84
|
+
.context(Object.assign({}, params))
|
|
85
|
+
.execute()).pipe(catchError((err) => {
|
|
86
|
+
throw err;
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
getPublishedPlaces(uid) {
|
|
90
|
+
return this.callApiService.query({
|
|
91
|
+
pageProvider: 'nxql_search',
|
|
92
|
+
currentPageIndex: 0,
|
|
93
|
+
pageSize: 40,
|
|
94
|
+
offset: 0,
|
|
95
|
+
queryParams: `SELECT * FROM Document WHERE ecm:isProxy = 1 AND ecm:isTrashed = 0 AND (rend:sourceVersionableId = "${uid}" OR ecm:proxyVersionableId = "${uid}")`,
|
|
96
|
+
sortBy: 'dc:modified,uid:major_version,uid:minor_version',
|
|
97
|
+
sortOrder: 'desc,desc,desc'
|
|
98
|
+
}, {
|
|
99
|
+
headers: {
|
|
100
|
+
'enrichers-document': 'breadcrumb',
|
|
101
|
+
properties: "dublincore,common,uid,rendition,file"
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
getVersionToPublishDialog(uid) {
|
|
106
|
+
return from(this.nuxeoService.nuxeoClient
|
|
107
|
+
.request(`search/execute`)
|
|
108
|
+
.queryParams({
|
|
109
|
+
currentPageIndex: 0,
|
|
110
|
+
pageSize: 100,
|
|
111
|
+
offset: 0,
|
|
112
|
+
query: `SELECT * FROM Document WHERE ecm:versionVersionableId = "${uid}" AND ecm:isVersion = 1`,
|
|
113
|
+
sortBy: 'uid:major_version,uid:minor_version',
|
|
114
|
+
sortOrder: 'desc,desc'
|
|
115
|
+
})
|
|
116
|
+
.get({
|
|
117
|
+
headers: {
|
|
118
|
+
properties: '*'
|
|
119
|
+
}
|
|
120
|
+
})).pipe(catchError((err) => {
|
|
121
|
+
throw err;
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
/*getProxyDocument(docId) {
|
|
125
|
+
return from(
|
|
126
|
+
this.nuxeoService.nuxeoClient
|
|
127
|
+
.operation('Proxy.GetSourceDocument', {
|
|
128
|
+
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
129
|
+
})
|
|
130
|
+
.input(docId)
|
|
131
|
+
.execute({
|
|
132
|
+
headers: {
|
|
133
|
+
properties: '*'
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
).pipe(
|
|
137
|
+
catchError((err) => {
|
|
138
|
+
throw err;
|
|
139
|
+
})
|
|
140
|
+
);
|
|
141
|
+
}*/
|
|
142
|
+
buildVersionNum(element) {
|
|
143
|
+
return parseFloat(`${element.properties['uid:major_version']}.${element.properties['uid:minor_version']}`);
|
|
144
|
+
}
|
|
145
|
+
createPublishDepartmentSection(section) {
|
|
146
|
+
return from(this.nuxeoService.nuxeoClient
|
|
147
|
+
.operation('AC_UA_Section_Create', {
|
|
148
|
+
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
149
|
+
})
|
|
150
|
+
.context({ section })
|
|
151
|
+
.execute()).pipe(catchError((err) => {
|
|
152
|
+
//console.log(err);
|
|
153
|
+
throw err;
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
Add_Permission_PublishDepartmentSection(sectionName, depList, uid) {
|
|
157
|
+
return from(this.nuxeoService.nuxeoClient
|
|
158
|
+
.operation('AC_UA_Section_Add_Permission', {
|
|
159
|
+
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
160
|
+
})
|
|
161
|
+
.context({
|
|
162
|
+
"permission": "Read",
|
|
163
|
+
"usersAndGroups": sectionName,
|
|
164
|
+
"departmentList": depList
|
|
165
|
+
})
|
|
166
|
+
.input(uid)
|
|
167
|
+
.execute()).pipe(catchError((err) => {
|
|
168
|
+
//console.log(err);
|
|
169
|
+
throw err;
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
updatePublishDepartmentSection(section, uid) {
|
|
173
|
+
return from(this.nuxeoService.nuxeoClient
|
|
174
|
+
.operation('AC_UA_Section_Update', {
|
|
175
|
+
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
176
|
+
})
|
|
177
|
+
.context({ section })
|
|
178
|
+
.input(uid)
|
|
179
|
+
.execute()).pipe(catchError((err) => {
|
|
180
|
+
//console.log(err);
|
|
181
|
+
throw err;
|
|
182
|
+
}));
|
|
183
|
+
}
|
|
184
|
+
deleteSection(uid) {
|
|
185
|
+
return from(this.nuxeoService.nuxeoClient
|
|
186
|
+
.operation('AC_UA_Section_Delete')
|
|
187
|
+
.input(uid)
|
|
188
|
+
.execute());
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
PublishingDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: PublishingDocumentService, deps: [{ token: i1.NuxeoService }, { token: 'environment' }, { token: i2.CallApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
192
|
+
PublishingDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: PublishingDocumentService, providedIn: 'root' });
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: PublishingDocumentService, decorators: [{
|
|
194
|
+
type: Injectable,
|
|
195
|
+
args: [{
|
|
196
|
+
providedIn: 'root'
|
|
197
|
+
}]
|
|
198
|
+
}], ctorParameters: function () { return [{ type: i1.NuxeoService }, { type: undefined, decorators: [{
|
|
199
|
+
type: Inject,
|
|
200
|
+
args: ['environment']
|
|
201
|
+
}] }, { type: i2.CallApiService }]; } });
|
|
202
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGlzaGluZy1kb2N1bWVudC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvc2hhcmVkLXNlcnZpY2VzL3B1Ymxpc2hpbmctZG9jdW1lbnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZUFBZSxFQUFFLElBQUksRUFBYyxNQUFNLE1BQU0sQ0FBQztBQUN6RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7QUFPNUMsTUFBTSxPQUFPLHlCQUF5QjtJQUlwQyxZQUFvQixZQUEwQixFQUNiLFdBQVcsRUFDbEMsY0FBOEI7UUFGcEIsaUJBQVksR0FBWixZQUFZLENBQWM7UUFDYixnQkFBVyxHQUFYLFdBQVcsQ0FBQTtRQUNsQyxtQkFBYyxHQUFkLGNBQWMsQ0FB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W5QdWJsaXNoRG9jdW1lbnQoZG9jSWQpIHtcclxuICAgIHJldHVybiBmcm9tKFxyXG4gICAgICB0aGlzLm51eGVvU2VydmljZS5udXhlb0NsaWVudFxyXG4gICAgICAgIC5vcGVyYXRpb24oJ0RvY3VtZW50LkRlbGV0ZScsIHtcclxuICAgICAgICAgIHVybDogYCR7dGhpcy5lbnZpcm9ubWVudC5udXhlb30ke3RoaXMuZW52aXJvbm1lbnQuY3VzdG9tQXV0b21hdGlvbn1gLFxyXG4gICAgICAgIH0pXHJcbiAgICAgICAgLmlucHV0KGRvY0lkKVxyXG4gICAgICAgIC5leGVjdXRlKClcclxuICAgICkucGlwZShcclxuICAgICAgY2F0Y2hFcnJvcigoZXJyKSA9PiB7XHJcbiAgICAgICAgdGhyb3cgZXJyO1xyXG4gICAgICB9KVxyXG4gICAgKTtcclxuICB9XHJcblxyXG4gIHB1Ymxpc2hEb2N1bWVudChkb2NJZCwgcGFyYW1zKSB7XHJcbiAgICByZXR1cm4gZnJvbShcclxuICAgICAgdGhpcy5udXhlb1NlcnZpY2UubnV4ZW9DbGllbnRcclxuICAgICAgICAub3BlcmF0aW9uKCdBQ19VQV9QdXBsaXNoX0RvY3VtZW50cycsIHtcclxuICAgICAgICAgIHVybDogYCR7dGhpcy5lbnZpcm9ubWVudC5udXhlb30vYXBpL3YxL2N1c3RvbS1hdXRvbWF0aW9uYCxcclxuICAgICAgICB9KVxyXG4gICAgICAgIC5wYXJhbXMoKVxyXG4gICAgICAgIC5pbnB1dChkb2NJZClcclxuICAgICAgICAuY29udGV4dCh7XHJcbiAgICAgICAgICAuLi5wYXJhbXNcclxuICAgICAgICB9KVxyXG4gICAgICAgIC5leGVjdXRlKClcclxuICAgICkucGlwZShcclxuICAgICAgY2F0Y2hFcnJvcigoZXJyKSA9PiB7XHJcbiAgICAgICAgdGhyb3cgZXJyO1xyXG4gICAgICB9KVxyXG4gICAgKTtcclxuICB9XHJcblxyXG4gIGdldFB1Ymxpc2hlZFBsYWN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HJcbiAgICAgICAgICBjdXJyZW50UGFnZUluZGV4OiAwLFxyXG4gICAgICAgICAgcGFnZVNpemU6IDEwMCxcclxuICAgICAgICAgIG9mZnNldDogMCxcclxuICAgICAgICAgIHF1ZXJ5OiBgU0VMRUNUICogRlJPTSBEb2N1bWVudCBXSEVSRSBlY206dmVyc2lvblZlcnNpb25hYmxlSWQgPSBcIiR7dWlkfVwiIEFORCBlY206aXNWZXJzaW9uID0gMWAsXHJcbiAgICAgICAgICBzb3J0Qnk6ICd1aWQ6bWFqb3JfdmVyc2lvbix1aWQ6bWlub3JfdmVyc2lvbicsXHJcbiAgICAgICAgICBzb3J0T3JkZXI6ICdkZXNjLGRlc2MnXHJcbiAgICAgICAgfSlcclxuICAgICAgICAuZ2V0KHtcclxuICAgICAgICAgIGhlYWRlcnM6IHtcclxuICAgICAgICAgICAgcHJvcGVydGllczogJyonXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgICkucGlwZShcclxuICAgICAgY2F0Y2hFcnJvcigoZXJyKSA9PiB7XHJcbiAgICAgICAgdGhyb3cgZXJyO1xyXG4gICAgICB9KVxyXG4gICAgKTtcclxuICB9XHJcblxyXG4gIC8qZ2V0UHJveHlEb2N1bWVudChkb2NJZCkge1xyXG4gICAgcmV0dXJuIGZyb20oXHJcbiAgICAgIHRoaXMubnV4ZW9TZXJ2aWNlLm51eGVvQ2xpZW50XHJcbiAgICAgICAgLm9wZXJhdGlvbignUHJveHkuR2V0U291cmNlRG9jdW1lbnQnLCB7XHJcbiAgICAgICAgICB1cmw6IGAke3RoaXMuZW52aXJvbm1lbnQubnV4ZW99JHt0aGlzLmVudmlyb25tZW50LmN1c3RvbUF1dG9tYXRpb259YCxcclxuICAgICAgICB9KVxyXG4gICAgICAgIC5pbnB1dChkb2NJZClcclxuICAgICAgICAuZXhlY3V0ZSh7XHJcbiAgICAgICAgICBoZWFkZXJzOiB7XHJcbiAgICAgICAgICAgIHByb3BlcnRpZXM6ICcqJ1xy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gKS5waXBlKFxyXG4gICAgICBjYXRjaEVycm9yKChlcnIpID0+IHtcclxuICAgICAgICAvL2NvbnNvbGUubG9nKGVycik7XHJcbiAgICAgICAgdGhyb3cgZXJyO1xyXG4gICAgICB9KVxyXG4gICAgKTtcclxuICB9XHJcbiAgZGVsZXRlU2VjdGlvbih1aWQpIHtcclxuICAgIHJldHVybiBmcm9tKFxyXG4gICAgICB0aGlzLm51eGVvU2VydmljZS5udXhlb0NsaWVudFxyXG4gICAgICAgIC5vcGVyYXRpb24oJ0FDX1VBX1NlY3Rpb25fRGVsZXRlJylcclxuICAgICAgICAuaW5wdXQodWlkKVxyXG4gICAgICAgIC5leGVjdXRlKClcclxuICAgICk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { EventEmitter, Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../Core/services/user/user-preferences.service";
|
|
4
|
+
import * as i2 from "../Core/services/callApi/call-api.service";
|
|
5
|
+
export class RecentlyViewedService {
|
|
6
|
+
constructor(userPreference, callApiService) {
|
|
7
|
+
this.userPreference = userPreference;
|
|
8
|
+
this.callApiService = callApiService;
|
|
9
|
+
this.itemAdded = new EventEmitter();
|
|
10
|
+
this.recentViewedDocsIds = [];
|
|
11
|
+
this.getIdsFromLocalStorage();
|
|
12
|
+
}
|
|
13
|
+
getIdsFromLocalStorage() {
|
|
14
|
+
this.recentViewedDocsIds = JSON.parse(this.userPreference.get('recentlyViewedDocsIds') || '[]');
|
|
15
|
+
return this.recentViewedDocsIds;
|
|
16
|
+
}
|
|
17
|
+
setIdsInLocalStorage(Id) {
|
|
18
|
+
if (this.recentViewedDocsIds.length > 14 && !this.recentViewedDocsIds.includes(Id)) {
|
|
19
|
+
this.recentViewedDocsIds.pop();
|
|
20
|
+
}
|
|
21
|
+
else if (this.recentViewedDocsIds.includes(Id)) {
|
|
22
|
+
this.recentViewedDocsIds.forEach((element, index) => {
|
|
23
|
+
if (element == Id)
|
|
24
|
+
this.recentViewedDocsIds.splice(index, 1);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
this.recentViewedDocsIds.unshift(Id);
|
|
28
|
+
this.userPreference.set("recentlyViewedDocsIds", JSON.stringify(this.recentViewedDocsIds));
|
|
29
|
+
this.itemAdded.emit();
|
|
30
|
+
}
|
|
31
|
+
getRecentlyViewedDocs(docIds, sortObj) {
|
|
32
|
+
return this.callApiService.query({
|
|
33
|
+
pageProvider: 'Documents_InList_PP',
|
|
34
|
+
currentPageIndex: 0,
|
|
35
|
+
offset: 0,
|
|
36
|
+
pageSize: 15,
|
|
37
|
+
system_uuid: JSON.stringify(docIds),
|
|
38
|
+
sortBy: (sortObj) ? sortObj.sortBy : '',
|
|
39
|
+
sortOrder: (sortObj) ? sortObj.sortOrder : ''
|
|
40
|
+
}, {
|
|
41
|
+
headers: {
|
|
42
|
+
"X-NXproperties": "*",
|
|
43
|
+
"enrichers-document": "thumbnail",
|
|
44
|
+
"fetch-document": "dc:lastContributor"
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
RecentlyViewedService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: RecentlyViewedService, deps: [{ token: i1.UserPreferencesService }, { token: i2.CallApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
+
RecentlyViewedService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: RecentlyViewedService, providedIn: 'root' });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: RecentlyViewedService, decorators: [{
|
|
52
|
+
type: Injectable,
|
|
53
|
+
args: [{
|
|
54
|
+
providedIn: 'root'
|
|
55
|
+
}]
|
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.UserPreferencesService }, { type: i2.CallApiService }]; } });
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjZW50bHktdmlld2VkLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9udXhlby1kZXZlbG9wbWVudC1mcmFtZXdvcmsvc3JjL2xpYi9zaGFyZWQtc2VydmljZXMvcmVjZW50bHktdmlld2VkLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFRekQsTUFBTSxPQUFPLHFCQUFxQjtJQUdoQyxZQUFvQixjQUFzQyxFQUNoRCxjQUE4QjtRQURwQixtQkFBYyxHQUFkLGNBQWMsQ0FBd0I7UUFDaEQsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBSHhDLGNBQVMsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBQy9CLHdCQUFtQixHQUFDLEVBQUUsQ0FBQztRQUdyQixJQUFJLENBQUMsc0JBQXNCLEVBQUUsQ0FBQztJQUMvQixDQUFDO0lBR0Ysc0JBQXNCO1FBQ3BCLElBQUksQ0FBQyxtQkFBbUIsR0FBRSxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLHVCQUF1QixDQUFDLElBQUssSUFBSSxDQUFDLENBQUM7UUFDaEcsT0FBTyxJQUFJLENBQUMsbUJBQW1CLENBQUM7SUFDbEMsQ0FBQztJQUVELG9CQUFvQixDQUFDLEVBQVU7UUFDN0IsSUFBSSxJQUFJLENBQUMsbUJBQW1CLENBQUMsTUFBTSxHQUFHLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUF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