nuxeo-development-framework 0.0.0-watch
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -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/charts/chart.const.js +3 -0
- package/esm2015/lib/components/charts/chart.token.js +3 -0
- package/esm2015/lib/components/charts/charts.module.js +19 -0
- package/esm2015/lib/components/charts/components/base-chart.component.js +44 -0
- package/esm2015/lib/components/charts/components/chart.component.js +135 -0
- package/esm2015/lib/components/charts/components/data-chart.component.js +156 -0
- package/esm2015/lib/components/charts/components/index.js +4 -0
- package/esm2015/lib/components/charts/defaults/bar.js +18 -0
- package/esm2015/lib/components/charts/defaults/doughnut.js +18 -0
- package/esm2015/lib/components/charts/defaults/index.js +5 -0
- package/esm2015/lib/components/charts/defaults/line.js +36 -0
- package/esm2015/lib/components/charts/defaults/pie.js +20 -0
- package/esm2015/lib/components/charts/index.js +10 -0
- package/esm2015/lib/components/charts/models/index.js +5 -0
- package/esm2015/lib/components/charts/models/options.js +2 -0
- package/esm2015/lib/components/charts/models/plugins-options.js +2 -0
- package/esm2015/lib/components/charts/models/response.js +2 -0
- package/esm2015/lib/components/charts/models/statistic-request-config.js +2 -0
- package/esm2015/lib/components/charts/plugins/doughnut-center-text.js +25 -0
- package/esm2015/lib/components/charts/plugins/doughnut-empty-state.js +34 -0
- package/esm2015/lib/components/charts/plugins/index.js +4 -0
- package/esm2015/lib/components/charts/plugins/legend-margin.js +16 -0
- package/esm2015/lib/components/charts/services/index.js +2 -0
- package/esm2015/lib/components/charts/services/statistic.service.js +71 -0
- package/esm2015/lib/components/charts/utility/colors.js +79 -0
- package/esm2015/lib/components/charts/utility/common.js +7 -0
- package/esm2015/lib/components/charts/utility/index.js +3 -0
- package/esm2015/lib/components/comments/comments.module.js +86 -0
- package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +94 -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 +74 -0
- package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +57 -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 +77 -0
- package/esm2015/lib/components/confirm-caller/confirm-caller.module.js +28 -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 +148 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.js +150 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +111 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.js +69 -0
- package/esm2015/lib/components/correspondence-relation/components/versions/versions.component.js +105 -0
- package/esm2015/lib/components/correspondence-relation/correspondence-relation.module.js +119 -0
- package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +165 -0
- package/esm2015/lib/components/correspondence-relation/services/viewer-files.service.js +54 -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 +180 -0
- package/esm2015/lib/components/cts-tags/cts-tags.module.js +65 -0
- package/esm2015/lib/components/cts-tags/services/tags-api.service.js +86 -0
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +67 -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 +63 -0
- package/esm2015/lib/components/diagrams/components/base-node.component.js +41 -0
- package/esm2015/lib/components/diagrams/components/circle-node/circle-node.component.js +19 -0
- package/esm2015/lib/components/diagrams/components/connection-label.component.js +92 -0
- package/esm2015/lib/components/diagrams/components/content-node/content-node.component.js +20 -0
- package/esm2015/lib/components/diagrams/components/custom-connection.component.js +84 -0
- package/esm2015/lib/components/diagrams/components/custom-socket.component.js +37 -0
- package/esm2015/lib/components/diagrams/components/gateway-node/gateway-node.component.js +18 -0
- package/esm2015/lib/components/diagrams/components/gateway-ports.component.js +118 -0
- package/esm2015/lib/components/diagrams/components/index.js +16 -0
- package/esm2015/lib/components/diagrams/components/node-icon.component.js +35 -0
- package/esm2015/lib/components/diagrams/components/node-inputs.component.js +61 -0
- package/esm2015/lib/components/diagrams/components/node-outputs.component.js +57 -0
- package/esm2015/lib/components/diagrams/components/node-ports.component.js +98 -0
- package/esm2015/lib/components/diagrams/components/remove-button.component.js +68 -0
- package/esm2015/lib/components/diagrams/components/status-icon.component.js +37 -0
- package/esm2015/lib/components/diagrams/components/template-node/template-node.component.js +40 -0
- package/esm2015/lib/components/diagrams/components/zoom-control.component.js +62 -0
- package/esm2015/lib/components/diagrams/constants/defaults.js +19 -0
- package/esm2015/lib/components/diagrams/constants/direction.js +7 -0
- package/esm2015/lib/components/diagrams/constants/index.js +8 -0
- package/esm2015/lib/components/diagrams/constants/message-type.js +5 -0
- package/esm2015/lib/components/diagrams/constants/node-type.js +8 -0
- package/esm2015/lib/components/diagrams/constants/notify-events.js +4 -0
- package/esm2015/lib/components/diagrams/constants/sizes.js +8 -0
- package/esm2015/lib/components/diagrams/constants/status.js +12 -0
- package/esm2015/lib/components/diagrams/diagrams.module.js +81 -0
- package/esm2015/lib/components/diagrams/directive/diagram.directive.js +86 -0
- package/esm2015/lib/components/diagrams/directive/index.js +2 -0
- package/esm2015/lib/components/diagrams/editor/customize.js +62 -0
- package/esm2015/lib/components/diagrams/editor/editor.js +97 -0
- package/esm2015/lib/components/diagrams/editor/index.js +5 -0
- package/esm2015/lib/components/diagrams/editor/overrides/connection-path.transformers.js +50 -0
- package/esm2015/lib/components/diagrams/editor/overrides/index.js +2 -0
- package/esm2015/lib/components/diagrams/editor/path-plugin.js +18 -0
- package/esm2015/lib/components/diagrams/editor/socket-position-watcher.js +7 -0
- package/esm2015/lib/components/diagrams/index.js +2 -0
- package/esm2015/lib/components/diagrams/models/base-node.model.js +26 -0
- package/esm2015/lib/components/diagrams/models/circle-node.model.js +10 -0
- package/esm2015/lib/components/diagrams/models/connection.model.js +15 -0
- package/esm2015/lib/components/diagrams/models/content-node.model.js +7 -0
- package/esm2015/lib/components/diagrams/models/gate-way.model.js +11 -0
- package/esm2015/lib/components/diagrams/models/index.js +8 -0
- package/esm2015/lib/components/diagrams/models/ports.model.js +14 -0
- package/esm2015/lib/components/diagrams/models/socket.model.js +9 -0
- package/esm2015/lib/components/diagrams/models/template-node.model.js +12 -0
- package/esm2015/lib/components/diagrams/public-api.js +9 -0
- package/esm2015/lib/components/diagrams/services/diagram-plugins.service.js +19 -0
- package/esm2015/lib/components/diagrams/services/diagram.service.js +222 -0
- package/esm2015/lib/components/diagrams/services/index.js +5 -0
- package/esm2015/lib/components/diagrams/services/message.service.js +24 -0
- package/esm2015/lib/components/diagrams/services/workflow.service.js +239 -0
- package/esm2015/lib/components/diagrams/types/common.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/connection-config.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/connection-label.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/customization.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/diagram-config.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/diagram-editor.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/emitter-type.js +2 -0
- package/esm2015/lib/components/diagrams/types/index.js +18 -0
- package/esm2015/lib/components/diagrams/types/layout.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/node-content.js +2 -0
- package/esm2015/lib/components/diagrams/types/node-definition.js +2 -0
- package/esm2015/lib/components/diagrams/types/node-status.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/node.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/notify-event.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/path.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/ports-config.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/schemes.type.js +2 -0
- package/esm2015/lib/components/diagrams/types/socket.type.js +2 -0
- package/esm2015/lib/components/diagrams/utilities/common.js +35 -0
- package/esm2015/lib/components/diagrams/utilities/index.js +5 -0
- package/esm2015/lib/components/diagrams/utilities/random.js +11 -0
- package/esm2015/lib/components/diagrams/utilities/remove.util.js +95 -0
- package/esm2015/lib/components/diagrams/utilities/serialize.js +23 -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 +159 -0
- package/esm2015/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.js +76 -0
- package/esm2015/lib/components/documents/components/document-list/documents-list.component.js +251 -0
- package/esm2015/lib/components/documents/components/document-scan/document-scan.component.js +975 -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 +175 -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 +545 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-chart.module.js +38 -0
- package/esm2015/lib/components/dynamic-chart/services/chart-data.service.js +558 -0
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.js +201 -0
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.js +51 -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 +129 -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 +213 -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 +230 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +253 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.js +104 -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 +104 -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 +337 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.js +64 -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 +316 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.js +79 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +336 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.js +54 -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 +306 -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 +342 -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 +288 -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 +37 -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 +36 -0
- package/esm2015/lib/components/dynamic-view/date-viewer/date-viewer.component.js +56 -0
- package/esm2015/lib/components/dynamic-view/department-viewer/department-viewer.component.js +90 -0
- package/esm2015/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.js +72 -0
- package/esm2015/lib/components/dynamic-view/dynamic-view.module.js +70 -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 +150 -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 +151 -0
- package/esm2015/lib/components/file-manger/components/create-directory/create-directory.component.js +118 -0
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +526 -0
- package/esm2015/lib/components/file-manger/components/creation-type/creation-type.component.js +28 -0
- package/esm2015/lib/components/file-manger/components/delete/delete.component.js +103 -0
- package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +131 -0
- package/esm2015/lib/components/file-manger/components/loan-request/loan-request.component.js +107 -0
- package/esm2015/lib/components/file-manger/components/move/move.component.js +140 -0
- package/esm2015/lib/components/file-manger/components/publish-dialog/publish-dialog.component.js +152 -0
- package/esm2015/lib/components/file-manger/components/rename/rename.component.js +114 -0
- package/esm2015/lib/components/file-manger/components/scan-modal/scan-modal.component.js +347 -0
- package/esm2015/lib/components/file-manger/components/share-dialog/share-dialog.component.js +314 -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 +68 -0
- package/esm2015/lib/components/file-manger/components/transfer-doc/transfer-doc.component.js +102 -0
- package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +366 -0
- package/esm2015/lib/components/file-manger/directives/file-grid-infinite-scroll.directive.js +78 -0
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +1202 -0
- package/esm2015/lib/components/file-manger/file-manger.module.js +304 -0
- package/esm2015/lib/components/file-manger/models/file-manager-config.model.js +7 -0
- package/esm2015/lib/components/file-manger/models/index.js +4 -0
- package/esm2015/lib/components/file-manger/models/pagination-payload.mode.js +2 -0
- package/esm2015/lib/components/file-manger/models/pagination-response.model.js +6 -0
- package/esm2015/lib/components/filter/filter/filter.component.js +102 -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 +80 -0
- package/esm2015/lib/components/latest-activity/components/latest-activity/latest-activity.component.js +78 -0
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +38 -0
- package/esm2015/lib/components/latest-activity/constants/activitylog.js +80 -0
- package/esm2015/lib/components/latest-activity/latest-activity.module.js +61 -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/base-list-notfications.component.js +156 -0
- package/esm2015/lib/components/notifications/components/base-notifications.component.js +17 -0
- package/esm2015/lib/components/notifications/components/index.js +7 -0
- package/esm2015/lib/components/notifications/components/notification-item/get-icon.pipe.js +44 -0
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +55 -0
- package/esm2015/lib/components/notifications/components/notification-source-select/notification-source-select.component.js +38 -0
- package/esm2015/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.js +26 -0
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +148 -0
- package/esm2015/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.js +63 -0
- package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +69 -0
- package/esm2015/lib/components/notifications/components/notifications-list/options.js +24 -0
- package/esm2015/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.js +43 -0
- package/esm2015/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.js +29 -0
- package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.js +30 -0
- package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.component.js +163 -0
- package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.js +28 -0
- package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.js +158 -0
- package/esm2015/lib/components/notifications/constants/date.js +8 -0
- package/esm2015/lib/components/notifications/constants/index.js +5 -0
- package/esm2015/lib/components/notifications/constants/pagination.js +5 -0
- package/esm2015/lib/components/notifications/constants/panel.js +5 -0
- package/esm2015/lib/components/notifications/constants/status.js +10 -0
- package/esm2015/lib/components/notifications/containers/index.js +3 -0
- package/esm2015/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.js +98 -0
- package/esm2015/lib/components/notifications/containers/notifications-list-container/options.js +18 -0
- package/esm2015/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.js +68 -0
- package/esm2015/lib/components/notifications/directives/button.directive.js +28 -0
- package/esm2015/lib/components/notifications/directives/index.js +3 -0
- package/esm2015/lib/components/notifications/directives/notification.directive.js +28 -0
- package/esm2015/lib/components/notifications/index.js +2 -0
- package/esm2015/lib/components/notifications/models/common.js +2 -0
- package/esm2015/lib/components/notifications/models/index.js +12 -0
- package/esm2015/lib/components/notifications/models/notification-definition.model.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-message.mode.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-options.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-setting.presenter.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-subscription.model.js +2 -0
- package/esm2015/lib/components/notifications/models/notification.model.js +2 -0
- package/esm2015/lib/components/notifications/models/notifications-list-options.js +3 -0
- package/esm2015/lib/components/notifications/models/paging-response.model.js +2 -0
- package/esm2015/lib/components/notifications/models/params.model.js +2 -0
- package/esm2015/lib/components/notifications/models/vocabularies.js +2 -0
- package/esm2015/lib/components/notifications/notifications.module.js +147 -0
- package/esm2015/lib/components/notifications/public-api.js +12 -0
- package/esm2015/lib/components/notifications/services/index.js +2 -0
- package/esm2015/lib/components/notifications/services/listener.service.js +19 -0
- package/esm2015/lib/components/notifications/services/notifications.service.js +178 -0
- package/esm2015/lib/components/notifications/services/params.service.js +31 -0
- package/esm2015/lib/components/notifications/services/response.service.js +65 -0
- package/esm2015/lib/components/notifications/services/socket.service.js +84 -0
- package/esm2015/lib/components/notifications/utilities/index.js +2 -0
- package/esm2015/lib/components/notifications/utilities/response.adapter.js +12 -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 +768 -0
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.service.js +241 -0
- package/esm2015/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.js +195 -0
- package/esm2015/lib/components/permissions/permission.service.js +118 -0
- package/esm2015/lib/components/permissions/permissions/permissions.component.js +278 -0
- package/esm2015/lib/components/permissions/permissions-template/permissions-template.component.js +101 -0
- package/esm2015/lib/components/permissions/permissions.module.js +87 -0
- package/esm2015/lib/components/select/select/select.component.js +130 -0
- package/esm2015/lib/components/select/select.module.js +39 -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/spell-checker-field/spell-checker-field.module.js +37 -0
- package/esm2015/lib/components/spell-checker-field/spell-checker-text-field/spell-checker-text-field.component.js +88 -0
- package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +64 -0
- package/esm2015/lib/components/table/dynamic-component.js +59 -0
- package/esm2015/lib/components/table/page-sizes-list/page-sizes-list.component.js +38 -0
- package/esm2015/lib/components/table/table/table.component.js +257 -0
- package/esm2015/lib/components/table/table.module.js +69 -0
- package/esm2015/lib/components/toasts/components/notification-toast/notification-toast.component.js +53 -0
- package/esm2015/lib/components/toasts/index.js +2 -0
- package/esm2015/lib/components/toasts/public-api.js +3 -0
- package/esm2015/lib/components/toasts/toasts.module.js +19 -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 +38 -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 +55 -0
- package/esm2015/lib/components/vocabulary/translated-vocabulary-select/translated-vocabulary-select.component.js +217 -0
- package/esm2015/lib/components/vocabulary/vocabulary/vocabulary.component.js +106 -0
- package/esm2015/lib/components/vocabulary/vocabulary.module.js +41 -0
- package/esm2015/lib/configuration/app-config.service.js +31 -0
- package/esm2015/lib/configuration/helpers/app-initializer.js +4 -0
- package/esm2015/lib/core/adapters/adapter.service.js +50 -0
- package/esm2015/lib/core/core.module.js +117 -0
- package/esm2015/lib/core/enums/language.enum.js +6 -0
- package/esm2015/lib/core/env/env-manager.js +15 -0
- package/esm2015/lib/core/env/index.js +2 -0
- package/esm2015/lib/core/models/api-response.model.js +2 -0
- package/esm2015/lib/core/models/automation-response.model.js +2 -0
- package/esm2015/lib/core/models/base-response.models.js +2 -0
- package/esm2015/lib/core/models/component.model.js +8 -0
- package/esm2015/lib/core/models/index.js +5 -0
- package/esm2015/lib/core/services/callApi/call-api.service.js +50 -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 +138 -0
- package/esm2015/lib/core/services/localStorag/local-storag.service.js +123 -0
- package/esm2015/lib/core/services/nuxeo/new-nuxeo-overide.js +146 -0
- package/esm2015/lib/core/services/nuxeo/nuxeo-override.js +82 -0
- package/esm2015/lib/core/services/nuxeo/nuxeo.service.js +155 -0
- package/esm2015/lib/core/services/roles/roles.service.js +130 -0
- package/esm2015/lib/core/services/translation/translate-loader.service.js +150 -0
- package/esm2015/lib/core/services/translation/translation.service.js +176 -0
- package/esm2015/lib/core/services/user/user-preferences.service.js +171 -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/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 +20 -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/base/base-column.component.js +18 -0
- package/esm2015/lib/shared/components/base/base-dialog.component.js +25 -0
- package/esm2015/lib/shared/components/base/base-selector.component.js +96 -0
- package/esm2015/lib/shared/components/base/base.component.js +57 -0
- package/esm2015/lib/shared/components/base/destroy.subject.js +19 -0
- package/esm2015/lib/shared/components/base/index.js +6 -0
- package/esm2015/lib/shared/components/button/button.component.js +90 -0
- package/esm2015/lib/shared/components/index.js +3 -0
- package/esm2015/lib/shared/components/item-list/item-list.component.js +78 -0
- package/esm2015/lib/shared/components/no-data/no-data.component.js +41 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.js +23 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/index.js +6 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/models/confirm-options.model.js +22 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/models/dialog-option.model.js +2 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.js +47 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +86 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/services/nuxeo-dialog.service.js +56 -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 +85 -0
- package/esm2015/lib/shared/models/index.js +4 -0
- package/esm2015/lib/shared/models/mapper/index.js +2 -0
- package/esm2015/lib/shared/models/mapper/nuxeo-mapper.js +32 -0
- package/esm2015/lib/shared/models/nuxeo-response.model.js +2 -0
- package/esm2015/lib/shared/models/task.model.js +2 -0
- package/esm2015/lib/shared/services/base/base.service.js +157 -0
- package/esm2015/lib/shared/services/base/cache-base.service.js +295 -0
- package/esm2015/lib/shared/services/base/config/default-ttl-config.js +9 -0
- package/esm2015/lib/shared/services/base/config/index.js +2 -0
- package/esm2015/lib/shared/services/base/constants/default-cache-options.js +28 -0
- package/esm2015/lib/shared/services/base/constants/index.js +2 -0
- package/esm2015/lib/shared/services/base/http-base.service.js +106 -0
- package/esm2015/lib/shared/services/base/index.js +3 -0
- package/esm2015/lib/shared/services/base/models/cache-info-model.js +12 -0
- package/esm2015/lib/shared/services/base/models/http-options.model.js +2 -0
- package/esm2015/lib/shared/services/base/models/index.js +6 -0
- package/esm2015/lib/shared/services/base/models/operation-options.model.js +2 -0
- package/esm2015/lib/shared/services/base/models/query-options.model.js +2 -0
- package/esm2015/lib/shared/services/base/models/request-options.model.js +2 -0
- package/esm2015/lib/shared/services/index.js +2 -0
- package/esm2015/lib/shared-services/dialog-mangment.service.js +102 -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 +1028 -0
- package/esm2015/lib/shared-services/global-admin.service.js +22 -0
- package/esm2015/lib/shared-services/global-pdftron.service.js +51 -0
- package/esm2015/lib/shared-services/mainfolder.service.js +170 -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 +129 -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 +64 -0
- package/esm2015/nuxeo-development-framework.js +5 -0
- package/esm2015/public-api.js +249 -0
- package/fesm2015/nuxeo-development-framework.js +33522 -0
- package/fesm2015/nuxeo-development-framework.js.map +1 -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/charts/chart.const.d.ts +2 -0
- package/lib/components/charts/chart.token.d.ts +8 -0
- package/lib/components/charts/charts.module.d.ts +9 -0
- package/lib/components/charts/components/base-chart.component.d.ts +21 -0
- package/lib/components/charts/components/chart.component.d.ts +28 -0
- package/lib/components/charts/components/data-chart.component.d.ts +36 -0
- package/lib/components/charts/components/index.d.ts +3 -0
- package/lib/components/charts/defaults/bar.d.ts +2 -0
- package/lib/components/charts/defaults/doughnut.d.ts +2 -0
- package/lib/components/charts/defaults/index.d.ts +4 -0
- package/lib/components/charts/defaults/line.d.ts +2 -0
- package/lib/components/charts/defaults/pie.d.ts +2 -0
- package/lib/components/charts/index.d.ts +9 -0
- package/lib/components/charts/models/index.d.ts +4 -0
- package/lib/components/charts/models/options.d.ts +12 -0
- package/lib/components/charts/models/plugins-options.d.ts +18 -0
- package/lib/components/charts/models/response.d.ts +5 -0
- package/lib/components/charts/models/statistic-request-config.d.ts +30 -0
- package/lib/components/charts/plugins/doughnut-center-text.d.ts +2 -0
- package/lib/components/charts/plugins/doughnut-empty-state.d.ts +2 -0
- package/lib/components/charts/plugins/index.d.ts +3 -0
- package/lib/components/charts/plugins/legend-margin.d.ts +2 -0
- package/lib/components/charts/services/index.d.ts +1 -0
- package/lib/components/charts/services/statistic.service.d.ts +23 -0
- package/lib/components/charts/utility/colors.d.ts +11 -0
- package/lib/components/charts/utility/common.d.ts +4 -0
- package/lib/components/charts/utility/index.d.ts +2 -0
- package/lib/components/comments/comments.module.d.ts +27 -0
- package/lib/components/comments/components/comment-item/comment-item.component.d.ts +26 -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 +25 -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 +17 -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 +45 -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 +49 -0
- package/lib/components/correspondence-relation/correspondence-relation.module.d.ts +32 -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 +43 -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 +21 -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 +30 -0
- package/lib/components/diagrams/components/base-node.component.d.ts +30 -0
- package/lib/components/diagrams/components/circle-node/circle-node.component.d.ts +7 -0
- package/lib/components/diagrams/components/connection-label.component.d.ts +19 -0
- package/lib/components/diagrams/components/content-node/content-node.component.d.ts +8 -0
- package/lib/components/diagrams/components/custom-connection.component.d.ts +13 -0
- package/lib/components/diagrams/components/custom-socket.component.d.ts +6 -0
- package/lib/components/diagrams/components/gateway-node/gateway-node.component.d.ts +6 -0
- package/lib/components/diagrams/components/gateway-ports.component.d.ts +12 -0
- package/lib/components/diagrams/components/index.d.ts +15 -0
- package/lib/components/diagrams/components/node-icon.component.d.ts +8 -0
- package/lib/components/diagrams/components/node-inputs.component.d.ts +12 -0
- package/lib/components/diagrams/components/node-outputs.component.d.ts +12 -0
- package/lib/components/diagrams/components/node-ports.component.d.ts +13 -0
- package/lib/components/diagrams/components/remove-button.component.d.ts +7 -0
- package/lib/components/diagrams/components/status-icon.component.d.ts +8 -0
- package/lib/components/diagrams/components/template-node/template-node.component.d.ts +17 -0
- package/lib/components/diagrams/components/zoom-control.component.d.ts +11 -0
- package/lib/components/diagrams/constants/defaults.d.ts +2 -0
- package/lib/components/diagrams/constants/direction.d.ts +6 -0
- package/lib/components/diagrams/constants/index.d.ts +7 -0
- package/lib/components/diagrams/constants/message-type.d.ts +4 -0
- package/lib/components/diagrams/constants/node-type.d.ts +7 -0
- package/lib/components/diagrams/constants/notify-events.d.ts +3 -0
- package/lib/components/diagrams/constants/sizes.d.ts +7 -0
- package/lib/components/diagrams/constants/status.d.ts +11 -0
- package/lib/components/diagrams/diagrams.module.d.ts +29 -0
- package/lib/components/diagrams/directive/diagram.directive.d.ts +27 -0
- package/lib/components/diagrams/directive/index.d.ts +1 -0
- package/lib/components/diagrams/editor/customize.d.ts +25 -0
- package/lib/components/diagrams/editor/editor.d.ts +3 -0
- package/lib/components/diagrams/editor/index.d.ts +4 -0
- package/lib/components/diagrams/editor/overrides/connection-path.transformers.d.ts +2 -0
- package/lib/components/diagrams/editor/overrides/index.d.ts +1 -0
- package/lib/components/diagrams/editor/path-plugin.d.ts +4 -0
- package/lib/components/diagrams/editor/socket-position-watcher.d.ts +3 -0
- package/lib/components/diagrams/index.d.ts +1 -0
- package/lib/components/diagrams/models/base-node.model.d.ts +22 -0
- package/lib/components/diagrams/models/circle-node.model.d.ts +7 -0
- package/lib/components/diagrams/models/connection.model.d.ts +16 -0
- package/lib/components/diagrams/models/content-node.model.d.ts +5 -0
- package/lib/components/diagrams/models/gate-way.model.d.ts +8 -0
- package/lib/components/diagrams/models/index.d.ts +7 -0
- package/lib/components/diagrams/models/ports.model.d.ts +11 -0
- package/lib/components/diagrams/models/socket.model.d.ts +7 -0
- package/lib/components/diagrams/models/template-node.model.d.ts +8 -0
- package/lib/components/diagrams/public-api.d.ts +8 -0
- package/lib/components/diagrams/services/diagram-plugins.service.d.ts +16 -0
- package/lib/components/diagrams/services/diagram.service.d.ts +53 -0
- package/lib/components/diagrams/services/index.d.ts +4 -0
- package/lib/components/diagrams/services/message.service.d.ts +10 -0
- package/lib/components/diagrams/services/workflow.service.d.ts +80 -0
- package/lib/components/diagrams/types/common.type.d.ts +9 -0
- package/lib/components/diagrams/types/connection-config.type.d.ts +11 -0
- package/lib/components/diagrams/types/connection-label.type.d.ts +4 -0
- package/lib/components/diagrams/types/customization.type.d.ts +10 -0
- package/lib/components/diagrams/types/diagram-config.type.d.ts +42 -0
- package/lib/components/diagrams/types/diagram-editor.type.d.ts +26 -0
- package/lib/components/diagrams/types/emitter-type.d.ts +5 -0
- package/lib/components/diagrams/types/index.d.ts +17 -0
- package/lib/components/diagrams/types/layout.type.d.ts +13 -0
- package/lib/components/diagrams/types/node-content.d.ts +9 -0
- package/lib/components/diagrams/types/node-definition.d.ts +20 -0
- package/lib/components/diagrams/types/node-status.type.d.ts +2 -0
- package/lib/components/diagrams/types/node.type.d.ts +2 -0
- package/lib/components/diagrams/types/notify-event.type.d.ts +2 -0
- package/lib/components/diagrams/types/path.type.d.ts +18 -0
- package/lib/components/diagrams/types/ports-config.type.d.ts +11 -0
- package/lib/components/diagrams/types/schemes.type.d.ts +3 -0
- package/lib/components/diagrams/types/socket.type.d.ts +5 -0
- package/lib/components/diagrams/utilities/common.d.ts +19 -0
- package/lib/components/diagrams/utilities/index.d.ts +4 -0
- package/lib/components/diagrams/utilities/random.d.ts +1 -0
- package/lib/components/diagrams/utilities/remove.util.d.ts +30 -0
- package/lib/components/diagrams/utilities/serialize.d.ts +15 -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 +55 -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 +60 -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 +78 -0
- package/lib/components/dynamic-chart/dynamic-chart.module.d.ts +15 -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 +142 -0
- package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.d.ts +14 -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 +71 -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 +85 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +32 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.d.ts +23 -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 +43 -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 +92 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.d.ts +16 -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 +94 -0
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.d.ts +21 -0
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +112 -0
- package/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.d.ts +20 -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 +68 -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/interfaces/dynamic-form.interfaces.d.ts +9 -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/models/dynamic-form.models.d.ts +7 -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 +103 -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 +130 -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 +13 -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 +39 -0
- package/lib/components/dynamic-view/dynamic-view.module.d.ts +24 -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 +37 -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 +40 -0
- package/lib/components/file-manger/components/create-directory/create-directory.component.d.ts +29 -0
- package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +104 -0
- package/lib/components/file-manger/components/creation-type/creation-type.component.d.ts +13 -0
- package/lib/components/file-manger/components/delete/delete.component.d.ts +31 -0
- package/lib/components/file-manger/components/folder-modal/folder-modal.component.d.ts +57 -0
- package/lib/components/file-manger/components/loan-request/loan-request.component.d.ts +29 -0
- package/lib/components/file-manger/components/move/move.component.d.ts +40 -0
- package/lib/components/file-manger/components/publish-dialog/publish-dialog.component.d.ts +39 -0
- package/lib/components/file-manger/components/rename/rename.component.d.ts +30 -0
- package/lib/components/file-manger/components/scan-modal/scan-modal.component.d.ts +96 -0
- package/lib/components/file-manger/components/share-dialog/share-dialog.component.d.ts +57 -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 +35 -0
- package/lib/components/file-manger/components/transfer-doc/transfer-doc.component.d.ts +30 -0
- package/lib/components/file-manger/components/update-modal/update-modal.component.d.ts +196 -0
- package/lib/components/file-manger/directives/file-grid-infinite-scroll.directive.d.ts +12 -0
- package/lib/components/file-manger/file-manager.abstract.d.ts +188 -0
- package/lib/components/file-manger/file-manger.module.d.ts +61 -0
- package/lib/components/file-manger/models/file-manager-config.model.d.ts +8 -0
- package/lib/components/file-manger/models/index.d.ts +3 -0
- package/lib/components/file-manger/models/pagination-payload.mode.d.ts +3 -0
- package/lib/components/file-manger/models/pagination-response.model.d.ts +30 -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 +23 -0
- package/lib/components/latest-activity/components/single-activity/single-activity.component.d.ts +15 -0
- package/lib/components/latest-activity/constants/activitylog.d.ts +83 -0
- package/lib/components/latest-activity/latest-activity.module.d.ts +20 -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/base-list-notfications.component.d.ts +42 -0
- package/lib/components/notifications/components/base-notifications.component.d.ts +11 -0
- package/lib/components/notifications/components/index.d.ts +6 -0
- package/lib/components/notifications/components/notification-item/get-icon.pipe.d.ts +8 -0
- package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +24 -0
- package/lib/components/notifications/components/notification-source-select/notification-source-select.component.d.ts +15 -0
- package/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.d.ts +8 -0
- package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +42 -0
- package/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.d.ts +22 -0
- package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +18 -0
- package/lib/components/notifications/components/notifications-list/options.d.ts +2 -0
- package/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.d.ts +15 -0
- package/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.d.ts +8 -0
- package/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.d.ts +3 -0
- package/lib/components/notifications/components/notifications-settings/notifications-settings.component.d.ts +40 -0
- package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.d.ts +9 -0
- package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.d.ts +43 -0
- package/lib/components/notifications/constants/date.d.ts +7 -0
- package/lib/components/notifications/constants/index.d.ts +4 -0
- package/lib/components/notifications/constants/pagination.d.ts +4 -0
- package/lib/components/notifications/constants/panel.d.ts +4 -0
- package/lib/components/notifications/constants/status.d.ts +9 -0
- package/lib/components/notifications/containers/index.d.ts +2 -0
- package/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.d.ts +27 -0
- package/lib/components/notifications/containers/notifications-list-container/options.d.ts +2 -0
- package/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.d.ts +22 -0
- package/lib/components/notifications/directives/button.directive.d.ts +9 -0
- package/lib/components/notifications/directives/index.d.ts +2 -0
- package/lib/components/notifications/directives/notification.directive.d.ts +9 -0
- package/lib/components/notifications/index.d.ts +1 -0
- package/lib/components/notifications/models/common.d.ts +64 -0
- package/lib/components/notifications/models/index.d.ts +11 -0
- package/lib/components/notifications/models/notification-definition.model.d.ts +17 -0
- package/lib/components/notifications/models/notification-message.mode.d.ts +14 -0
- package/lib/components/notifications/models/notification-options.d.ts +7 -0
- package/lib/components/notifications/models/notification-setting.presenter.d.ts +24 -0
- package/lib/components/notifications/models/notification-subscription.model.d.ts +13 -0
- package/lib/components/notifications/models/notification.model.d.ts +16 -0
- package/lib/components/notifications/models/notifications-list-options.d.ts +38 -0
- package/lib/components/notifications/models/paging-response.model.d.ts +12 -0
- package/lib/components/notifications/models/params.model.d.ts +6 -0
- package/lib/components/notifications/models/vocabularies.d.ts +12 -0
- package/lib/components/notifications/notifications.module.d.ts +41 -0
- package/lib/components/notifications/public-api.d.ts +11 -0
- package/lib/components/notifications/services/index.d.ts +1 -0
- package/lib/components/notifications/services/listener.service.d.ts +8 -0
- package/lib/components/notifications/services/notifications.service.d.ts +60 -0
- package/lib/components/notifications/services/params.service.d.ts +19 -0
- package/lib/components/notifications/services/response.service.d.ts +19 -0
- package/lib/components/notifications/services/socket.service.d.ts +26 -0
- package/lib/components/notifications/utilities/index.d.ts +1 -0
- package/lib/components/notifications/utilities/response.adapter.d.ts +3 -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 +107 -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 +46 -0
- package/lib/components/permissions/permission.service.d.ts +21 -0
- package/lib/components/permissions/permissions/permissions.component.d.ts +50 -0
- package/lib/components/permissions/permissions-template/permissions-template.component.d.ts +22 -0
- package/lib/components/permissions/permissions.module.d.ts +22 -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/spell-checker-field/spell-checker-field.module.d.ts +10 -0
- package/lib/components/spell-checker-field/spell-checker-text-field/spell-checker-text-field.component.d.ts +24 -0
- package/lib/components/table/dynamic-column/dynamic-column.component.d.ts +19 -0
- package/lib/components/table/dynamic-component.d.ts +20 -0
- package/lib/components/table/page-sizes-list/page-sizes-list.component.d.ts +15 -0
- package/lib/components/table/table/table.component.d.ts +122 -0
- package/lib/components/table/table.module.d.ts +25 -0
- package/lib/components/toasts/components/notification-toast/notification-toast.component.d.ts +17 -0
- package/lib/components/toasts/index.d.ts +1 -0
- package/lib/components/toasts/public-api.d.ts +2 -0
- package/lib/components/toasts/toasts.module.d.ts +8 -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 +14 -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 +19 -0
- package/lib/components/vocabulary/translated-vocabulary-select/translated-vocabulary-select.component.d.ts +81 -0
- package/lib/components/vocabulary/vocabulary/vocabulary.component.d.ts +37 -0
- package/lib/components/vocabulary/vocabulary.module.d.ts +13 -0
- package/lib/configuration/app-config.service.d.ts +14 -0
- package/lib/configuration/helpers/app-initializer.d.ts +2 -0
- package/lib/core/adapters/adapter.service.d.ts +11 -0
- package/lib/core/core.module.d.ts +17 -0
- package/lib/core/enums/language.enum.d.ts +4 -0
- package/lib/core/env/env-manager.d.ts +53 -0
- package/lib/core/env/index.d.ts +1 -0
- package/lib/core/models/api-response.model.d.ts +24 -0
- package/lib/core/models/automation-response.model.d.ts +24 -0
- package/lib/core/models/base-response.models.d.ts +12 -0
- package/lib/core/models/component.model.d.ts +6 -0
- package/lib/core/models/index.d.ts +4 -0
- package/lib/core/services/callApi/call-api.service.d.ts +18 -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 +31 -0
- package/lib/core/services/localStorag/local-storag.service.d.ts +41 -0
- package/lib/core/services/nuxeo/new-nuxeo-overide.d.ts +14 -0
- package/lib/core/services/nuxeo/nuxeo-override.d.ts +8 -0
- package/lib/core/services/nuxeo/nuxeo.service.d.ts +37 -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 +81 -0
- package/lib/core/utilities/moment-date-adapter.d.ts +37 -0
- package/lib/core/utilities/utility.service.d.ts +11 -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 +10 -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/base/base-column.component.d.ts +10 -0
- package/lib/shared/components/base/base-dialog.component.d.ts +12 -0
- package/lib/shared/components/base/base-selector.component.d.ts +43 -0
- package/lib/shared/components/base/base.component.d.ts +34 -0
- package/lib/shared/components/base/destroy.subject.d.ts +9 -0
- package/lib/shared/components/base/index.d.ts +5 -0
- package/lib/shared/components/button/button.component.d.ts +39 -0
- package/lib/shared/components/index.d.ts +2 -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 +22 -0
- package/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.d.ts +9 -0
- package/lib/shared/components/nuxeo-dialog/index.d.ts +5 -0
- package/lib/shared/components/nuxeo-dialog/models/confirm-options.model.d.ts +22 -0
- package/lib/shared/components/nuxeo-dialog/models/dialog-option.model.d.ts +16 -0
- package/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.d.ts +15 -0
- package/lib/shared/components/nuxeo-dialog/nuxeo.dialog.d.ts +23 -0
- package/lib/shared/components/nuxeo-dialog/services/nuxeo-dialog.service.d.ts +13 -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 +27 -0
- package/lib/shared/models/index.d.ts +3 -0
- package/lib/shared/models/mapper/index.d.ts +1 -0
- package/lib/shared/models/mapper/nuxeo-mapper.d.ts +8 -0
- package/lib/shared/models/nuxeo-response.model.d.ts +61 -0
- package/lib/shared/models/task.model.d.ts +71 -0
- package/lib/shared/services/base/base.service.d.ts +29 -0
- package/lib/shared/services/base/cache-base.service.d.ts +17 -0
- package/lib/shared/services/base/config/default-ttl-config.d.ts +7 -0
- package/lib/shared/services/base/config/index.d.ts +1 -0
- package/lib/shared/services/base/constants/default-cache-options.d.ts +16 -0
- package/lib/shared/services/base/constants/index.d.ts +1 -0
- package/lib/shared/services/base/http-base.service.d.ts +17 -0
- package/lib/shared/services/base/index.d.ts +2 -0
- package/lib/shared/services/base/models/cache-info-model.d.ts +49 -0
- package/lib/shared/services/base/models/http-options.model.d.ts +7 -0
- package/lib/shared/services/base/models/index.d.ts +5 -0
- package/lib/shared/services/base/models/operation-options.model.d.ts +8 -0
- package/lib/shared/services/base/models/query-options.model.d.ts +5 -0
- package/lib/shared/services/base/models/request-options.model.d.ts +7 -0
- package/lib/shared/services/index.d.ts +1 -0
- package/lib/shared-services/dialog-mangment.service.d.ts +19 -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 +102 -0
- package/lib/shared-services/global-admin.service.d.ts +11 -0
- package/lib/shared-services/global-pdftron.service.d.ts +11 -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 +23 -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 +82 -0
- package/public-api.d.ts +236 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import { EventEmitter, Injectable } from '@angular/core';
|
|
2
|
+
import * as _ from 'lodash';
|
|
3
|
+
import moment from 'moment-es6';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@ngx-translate/core";
|
|
6
|
+
import * as i2 from "../../../core/services/translation/translation.service";
|
|
7
|
+
export class ChartDataService {
|
|
8
|
+
constructor(translate, translation) {
|
|
9
|
+
this.translate = translate;
|
|
10
|
+
this.translation = translation;
|
|
11
|
+
this.refreshData = new EventEmitter();
|
|
12
|
+
this.prefix = 'STATS.';
|
|
13
|
+
this.size = 8;
|
|
14
|
+
this.totalNumber = [
|
|
15
|
+
{
|
|
16
|
+
beforeDraw: (chart) => {
|
|
17
|
+
if (chart.config.options.elements.center) {
|
|
18
|
+
// Get ctx from string
|
|
19
|
+
var ctx = chart.chart.ctx;
|
|
20
|
+
// Get options from the center object in options
|
|
21
|
+
var centerConfig = chart.config.options.elements.center;
|
|
22
|
+
var fontStyle = centerConfig.fontStyle || 'Arial';
|
|
23
|
+
var txt = centerConfig.text;
|
|
24
|
+
var color = centerConfig.color || '#000';
|
|
25
|
+
var maxFontSize = centerConfig.maxFontSize || 75;
|
|
26
|
+
var sidePadding = centerConfig.sidePadding || 20;
|
|
27
|
+
var sidePaddingCalculated = (sidePadding / 100) * (chart.innerRadius * 2);
|
|
28
|
+
// Start with a base font of 30px
|
|
29
|
+
ctx.font = '30px ' + fontStyle;
|
|
30
|
+
// Get the width of the string and also the width of the element minus 10 to give it 5px side padding
|
|
31
|
+
var stringWidth = ctx.measureText(txt).width;
|
|
32
|
+
var elementWidth = chart.innerRadius * 2 - sidePaddingCalculated;
|
|
33
|
+
// Find out how much the font can grow in width.
|
|
34
|
+
var widthRatio = elementWidth / stringWidth;
|
|
35
|
+
var newFontSize = Math.floor(30 * widthRatio);
|
|
36
|
+
var elementHeight = chart.innerRadius * 2;
|
|
37
|
+
// Pick a new font size so it will not be larger than the height of label.
|
|
38
|
+
var fontSizeToUse = Math.min(newFontSize, elementHeight, maxFontSize);
|
|
39
|
+
var minFontSize = centerConfig.minFontSize;
|
|
40
|
+
var lineHeight = centerConfig.lineHeight || 25;
|
|
41
|
+
var wrapText = false;
|
|
42
|
+
if (minFontSize === undefined) {
|
|
43
|
+
minFontSize = 20;
|
|
44
|
+
}
|
|
45
|
+
if (minFontSize && fontSizeToUse < minFontSize) {
|
|
46
|
+
fontSizeToUse = minFontSize;
|
|
47
|
+
wrapText = true;
|
|
48
|
+
}
|
|
49
|
+
// Set font settings to draw it correctly.
|
|
50
|
+
ctx.textAlign = 'center';
|
|
51
|
+
ctx.textBaseline = 'middle';
|
|
52
|
+
var centerX = (chart.chartArea.left + chart.chartArea.right) / 2;
|
|
53
|
+
var centerY = (chart.chartArea.top + chart.chartArea.bottom) / 2;
|
|
54
|
+
ctx.font = '14' + 'px ' + fontStyle;
|
|
55
|
+
ctx.fillStyle = color;
|
|
56
|
+
if (!wrapText) {
|
|
57
|
+
ctx.fillText(txt, centerX, centerY);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
var words = txt.split(' ');
|
|
61
|
+
var line = '';
|
|
62
|
+
var lines = [];
|
|
63
|
+
// Break words up into multiple lines if necessary
|
|
64
|
+
for (var n = 0; n < words.length; n++) {
|
|
65
|
+
var testLine = line + words[n] + ' ';
|
|
66
|
+
var metrics = ctx.measureText(testLine);
|
|
67
|
+
var testWidth = metrics.width;
|
|
68
|
+
if (testWidth > elementWidth && n > 0) {
|
|
69
|
+
lines.push(line);
|
|
70
|
+
line = words[n] + ' ';
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
line = testLine;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// Move the center up depending on line height and number of lines
|
|
77
|
+
centerY -= (lines.length / 2) * lineHeight;
|
|
78
|
+
for (var n = 0; n < lines.length; n++) {
|
|
79
|
+
ctx.fillText(lines[n], centerX, centerY);
|
|
80
|
+
centerY += lineHeight;
|
|
81
|
+
}
|
|
82
|
+
//Draw text in center
|
|
83
|
+
ctx.fillText(line, centerX, centerY);
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
this.groupObjectBykey = (data) => {
|
|
89
|
+
let nameIndices = {};
|
|
90
|
+
let statusHash = {};
|
|
91
|
+
let chartData = { labels: [], datasets: [] };
|
|
92
|
+
data.forEach((item) => {
|
|
93
|
+
if (!(item.label in nameIndices)) {
|
|
94
|
+
nameIndices[item.label] = chartData.labels.push(item.label) - 1;
|
|
95
|
+
chartData.datasets.forEach((a) => {
|
|
96
|
+
a.data.push(0);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (!statusHash[item.status]) {
|
|
100
|
+
statusHash[item.status] = Object.assign(Object.assign(Object.assign({ label: `${this.translate.instant(item.status)} (${item.totalItems})` }, (item.status === 'Incoming' && {
|
|
101
|
+
backgroundColor: '#00dca5',
|
|
102
|
+
})), (item.status === 'Outgoing' && {
|
|
103
|
+
backgroundColor: '#fbb62c',
|
|
104
|
+
})), { data: chartData.labels.map(() => {
|
|
105
|
+
return 0;
|
|
106
|
+
}), barPercentage: 0.4, barThickness: 24, maxBarThickness: 30, minBarLength: 2 });
|
|
107
|
+
chartData.datasets.push(statusHash[item.status]);
|
|
108
|
+
}
|
|
109
|
+
statusHash[item.status].data[nameIndices[item.label]] = item.count;
|
|
110
|
+
});
|
|
111
|
+
return chartData;
|
|
112
|
+
};
|
|
113
|
+
this.groupObjectBykeyLine = (data) => {
|
|
114
|
+
data.sort((left, right) => {
|
|
115
|
+
return moment.utc(left.id).diff(moment.utc(right.id));
|
|
116
|
+
});
|
|
117
|
+
let nameIndices = {};
|
|
118
|
+
let statusHash = {};
|
|
119
|
+
let chartData = { labels: [], datasets: [] };
|
|
120
|
+
data.forEach((item) => {
|
|
121
|
+
if (!(item.id in nameIndices)) {
|
|
122
|
+
nameIndices[item.id] = chartData.labels.push(item.id) - 1;
|
|
123
|
+
chartData.datasets.forEach((a) => {
|
|
124
|
+
a.data.push(0);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
if (!statusHash[item.status]) {
|
|
128
|
+
statusHash[item.status] = Object.assign(Object.assign(Object.assign({ label: `${this.translate.instant(item.status)} (${item.totalItems})` }, (item.status === 'Incoming' && {
|
|
129
|
+
borderColor: '#00dca5',
|
|
130
|
+
})), (item.status === 'Outgoing' && {
|
|
131
|
+
borderColor: '#fbb62c',
|
|
132
|
+
})), { fill: false, lineTension: 0, data: chartData.labels.map(() => {
|
|
133
|
+
return 0;
|
|
134
|
+
}) });
|
|
135
|
+
chartData.datasets.push(statusHash[item.status]);
|
|
136
|
+
}
|
|
137
|
+
statusHash[item.status].data[nameIndices[item.id]] = item.count;
|
|
138
|
+
});
|
|
139
|
+
return chartData;
|
|
140
|
+
};
|
|
141
|
+
this.translation.isArabic.subscribe((arabic) => {
|
|
142
|
+
arabic ? (this.isArabic = arabic) : (this.isArabic = arabic);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @param data data fetched from back-end
|
|
148
|
+
* @param totalItems totalItems from the backedn
|
|
149
|
+
* @param prefix for Translations
|
|
150
|
+
* @returns
|
|
151
|
+
*/
|
|
152
|
+
multiSeriesPieChart(data) {
|
|
153
|
+
const provideColors = data.colors;
|
|
154
|
+
const prefix = data.prefix;
|
|
155
|
+
const totalItems = data.totalItems;
|
|
156
|
+
let dataArr = [];
|
|
157
|
+
let labels = [];
|
|
158
|
+
//for aggregations
|
|
159
|
+
let itemCount = 0;
|
|
160
|
+
let otherItemsCount;
|
|
161
|
+
dataArr = data.data.slice(0, this.size).map((item, index) => {
|
|
162
|
+
const numbers = data.data.map((item1, index1) => index === index1 ? item.count : 0);
|
|
163
|
+
const colors = data.data.slice(0, this.size).map((item1, index1) => {
|
|
164
|
+
return provideColors[item1.label];
|
|
165
|
+
});
|
|
166
|
+
numbers.push(data.totalItems - item.count);
|
|
167
|
+
colors.push('#f7f8f9');
|
|
168
|
+
return {
|
|
169
|
+
data: numbers,
|
|
170
|
+
totalItems: data.totalItems,
|
|
171
|
+
backgroundColor: colors,
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
labels = data.data
|
|
175
|
+
.slice(0, this.size)
|
|
176
|
+
.map((item) => `${this.translate.instant(prefix + item.label)} (${item.count})`);
|
|
177
|
+
const chartData = {
|
|
178
|
+
datasets: dataArr,
|
|
179
|
+
labels: labels,
|
|
180
|
+
};
|
|
181
|
+
const options = {
|
|
182
|
+
type: 'doughnut',
|
|
183
|
+
data: chartData,
|
|
184
|
+
plugins: this.totalNumber,
|
|
185
|
+
showCount: true,
|
|
186
|
+
countSize: '18px',
|
|
187
|
+
options: {
|
|
188
|
+
responsive: true,
|
|
189
|
+
maintainAspectRatio: false,
|
|
190
|
+
tooltips: { enabled: false },
|
|
191
|
+
cutoutPercentage: 30,
|
|
192
|
+
legend: {
|
|
193
|
+
labels: {
|
|
194
|
+
usePointStyle: true,
|
|
195
|
+
boxWidth: 8,
|
|
196
|
+
},
|
|
197
|
+
position: 'left',
|
|
198
|
+
rtl: this.isArabic ? true : false,
|
|
199
|
+
},
|
|
200
|
+
elements: {
|
|
201
|
+
center: {
|
|
202
|
+
text: `${totalItems >= 1000
|
|
203
|
+
? parseFloat((totalItems / 1000).toFixed(2)) + 'K'
|
|
204
|
+
: totalItems}`,
|
|
205
|
+
color: '#596973',
|
|
206
|
+
fontStyle: 'Arial',
|
|
207
|
+
sidePadding: 20,
|
|
208
|
+
minFontSize: 20,
|
|
209
|
+
lineHeight: 25, // Default is 25 (in px), used for when text wraps
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
};
|
|
214
|
+
return { options: options, chartData: chartData };
|
|
215
|
+
}
|
|
216
|
+
doughnutChart(data) {
|
|
217
|
+
const provideColors = data.colors;
|
|
218
|
+
const prefix = data.prefix;
|
|
219
|
+
const totalItems = data.data.totalItems;
|
|
220
|
+
let backgroundColor = [];
|
|
221
|
+
let dataArr = [];
|
|
222
|
+
let labels = [];
|
|
223
|
+
//for aggregations
|
|
224
|
+
let itemCount = 0;
|
|
225
|
+
let otherItemsCount;
|
|
226
|
+
data.data.data.slice(0, this.size).forEach((item, index) => {
|
|
227
|
+
backgroundColor.push(provideColors[item.label]);
|
|
228
|
+
dataArr.push(item.count);
|
|
229
|
+
itemCount = itemCount + item.count;
|
|
230
|
+
});
|
|
231
|
+
labels = data.data.data.slice(0, this.size).map((item, index) => {
|
|
232
|
+
return `${this.translate.instant(prefix + item.label)} (${item.count})`;
|
|
233
|
+
});
|
|
234
|
+
//aggregate other data
|
|
235
|
+
otherItemsCount = totalItems - itemCount;
|
|
236
|
+
if (otherItemsCount > 0) {
|
|
237
|
+
backgroundColor.push(provideColors['other']);
|
|
238
|
+
dataArr.push(otherItemsCount);
|
|
239
|
+
labels.push(`${this.translate.instant(prefix + 'other')} (${otherItemsCount})`);
|
|
240
|
+
}
|
|
241
|
+
const chartData = {
|
|
242
|
+
datasets: [
|
|
243
|
+
{
|
|
244
|
+
backgroundColor: backgroundColor,
|
|
245
|
+
data: dataArr,
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
labels: labels,
|
|
249
|
+
};
|
|
250
|
+
const options = {
|
|
251
|
+
type: 'doughnut',
|
|
252
|
+
data: chartData,
|
|
253
|
+
plugins: [this.totalNumber],
|
|
254
|
+
options: {
|
|
255
|
+
responsive: true,
|
|
256
|
+
maintainAspectRatio: false,
|
|
257
|
+
plugins: {
|
|
258
|
+
tooltip: {
|
|
259
|
+
enabled: true,
|
|
260
|
+
},
|
|
261
|
+
legend: {
|
|
262
|
+
labels: {
|
|
263
|
+
usePointStyle: true,
|
|
264
|
+
boxWidth: 8,
|
|
265
|
+
},
|
|
266
|
+
display: true,
|
|
267
|
+
position: this.isArabic ? 'right' : 'left',
|
|
268
|
+
rtl: this.isArabic ? true : false,
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
cutout: '30%',
|
|
272
|
+
elements: {
|
|
273
|
+
center: {
|
|
274
|
+
text: `${totalItems >= 1000
|
|
275
|
+
? parseFloat((totalItems / 1000).toFixed(2)) + 'K'
|
|
276
|
+
: totalItems}`,
|
|
277
|
+
color: '#596973',
|
|
278
|
+
fontStyle: 'Arial',
|
|
279
|
+
sidePadding: 20,
|
|
280
|
+
minFontSize: 20,
|
|
281
|
+
lineHeight: 25,
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
return { options: options, chartData: chartData };
|
|
287
|
+
}
|
|
288
|
+
lineChart(data) {
|
|
289
|
+
data = this.groupObjectBykeyLine(data.data);
|
|
290
|
+
console.log('chart data', data);
|
|
291
|
+
this.isArabic ? moment.locale('ar-sa') : moment.locale('en-us');
|
|
292
|
+
const chartData = data;
|
|
293
|
+
const options = {
|
|
294
|
+
type: 'line',
|
|
295
|
+
data: chartData,
|
|
296
|
+
options: {
|
|
297
|
+
maintainAspectRatio: false,
|
|
298
|
+
scales: {
|
|
299
|
+
x: {
|
|
300
|
+
type: 'time',
|
|
301
|
+
ticks: {
|
|
302
|
+
autoSkip: true,
|
|
303
|
+
maxTicksLimit: 12,
|
|
304
|
+
source: 'labels',
|
|
305
|
+
},
|
|
306
|
+
time: {
|
|
307
|
+
unit: 'week',
|
|
308
|
+
displayFormats: {
|
|
309
|
+
week: 'DD-MM-yyyy',
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
y: {
|
|
314
|
+
ticks: {
|
|
315
|
+
min: 0,
|
|
316
|
+
precision: 0,
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
plugins: {
|
|
321
|
+
title: {
|
|
322
|
+
display: true,
|
|
323
|
+
text: '',
|
|
324
|
+
},
|
|
325
|
+
legend: {
|
|
326
|
+
labels: {
|
|
327
|
+
// usePointStyle: true,
|
|
328
|
+
boxWidth: 12,
|
|
329
|
+
},
|
|
330
|
+
// position: 'bottom',
|
|
331
|
+
rtl: this.isArabic ? true : false,
|
|
332
|
+
},
|
|
333
|
+
tooltip: {
|
|
334
|
+
callbacks: {
|
|
335
|
+
title: function (context) {
|
|
336
|
+
const label = context[0].label;
|
|
337
|
+
const inputFormat = 'MMMM D، YYYY، h:mm:ss A';
|
|
338
|
+
const isValid = moment(label, this.isArabic ? inputFormat : moment.ISO_8601, true).isValid();
|
|
339
|
+
return isValid ? moment(label).format('DD-MM-yyyy') : label;
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
return { options, chartData };
|
|
347
|
+
}
|
|
348
|
+
GroupedBarChart(data) {
|
|
349
|
+
data = this.groupObjectBykey(data.data);
|
|
350
|
+
this.isArabic ? moment.locale('ar-sa') : moment.locale('en-us');
|
|
351
|
+
const chartData = data;
|
|
352
|
+
const options = {
|
|
353
|
+
type: 'bar',
|
|
354
|
+
data: chartData,
|
|
355
|
+
options: {
|
|
356
|
+
plugins: {
|
|
357
|
+
legend: {
|
|
358
|
+
labels: {
|
|
359
|
+
boxWidth: 12,
|
|
360
|
+
},
|
|
361
|
+
rtl: this.isArabic ? true : false,
|
|
362
|
+
position: 'top', // Change as needed
|
|
363
|
+
},
|
|
364
|
+
labels: false,
|
|
365
|
+
outlabels: {
|
|
366
|
+
display: false,
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
scales: {
|
|
370
|
+
y: {
|
|
371
|
+
ticks: {
|
|
372
|
+
beginAtZero: true,
|
|
373
|
+
precision: 0,
|
|
374
|
+
stepSize: 1,
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
responsive: true,
|
|
379
|
+
maintainAspectRatio: false,
|
|
380
|
+
},
|
|
381
|
+
};
|
|
382
|
+
return { options, chartData };
|
|
383
|
+
}
|
|
384
|
+
BarChart(data) {
|
|
385
|
+
const provideColors = data.colors;
|
|
386
|
+
const prefix = data.prefix;
|
|
387
|
+
const totalItems = data.totalItems;
|
|
388
|
+
let backgroundColor = [];
|
|
389
|
+
let dataArr = [];
|
|
390
|
+
let labels = [];
|
|
391
|
+
data.data.data.forEach((item, index) => {
|
|
392
|
+
backgroundColor.push('#2e62df');
|
|
393
|
+
dataArr.push(item.count);
|
|
394
|
+
});
|
|
395
|
+
labels = data.data.data.map((item, index) => {
|
|
396
|
+
return `${item.label}`;
|
|
397
|
+
});
|
|
398
|
+
const chartData = {
|
|
399
|
+
datasets: [
|
|
400
|
+
{
|
|
401
|
+
backgroundColor: backgroundColor,
|
|
402
|
+
data: dataArr,
|
|
403
|
+
barPercentage: 0.4,
|
|
404
|
+
barThickness: 24,
|
|
405
|
+
maxBarThickness: 30,
|
|
406
|
+
minBarLength: 2,
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
labels: labels,
|
|
410
|
+
};
|
|
411
|
+
const options = {
|
|
412
|
+
type: 'bar',
|
|
413
|
+
data: chartData,
|
|
414
|
+
options: {
|
|
415
|
+
plugins: {
|
|
416
|
+
legend: {
|
|
417
|
+
display: false,
|
|
418
|
+
},
|
|
419
|
+
labels: false,
|
|
420
|
+
outlabels: {
|
|
421
|
+
display: false,
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
scales: {
|
|
425
|
+
y: {
|
|
426
|
+
ticks: {
|
|
427
|
+
beginAtZero: true,
|
|
428
|
+
precision: 0,
|
|
429
|
+
stepSize: 1,
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
responsive: true,
|
|
434
|
+
maintainAspectRatio: false,
|
|
435
|
+
},
|
|
436
|
+
};
|
|
437
|
+
return { options: options, chartData: chartData };
|
|
438
|
+
}
|
|
439
|
+
outlabeledPieChart(data) {
|
|
440
|
+
const provideColors = data.colors;
|
|
441
|
+
const prefix = data.prefix;
|
|
442
|
+
const totalItems = data.totalItems;
|
|
443
|
+
let backgroundColor = [];
|
|
444
|
+
let dataArr = [];
|
|
445
|
+
let labels = [];
|
|
446
|
+
data.data.data.forEach((item, index) => {
|
|
447
|
+
backgroundColor.push(provideColors[item.label]);
|
|
448
|
+
dataArr.push(item.count);
|
|
449
|
+
});
|
|
450
|
+
labels = data.data.data.map((item, index) => {
|
|
451
|
+
return `${item.label}`;
|
|
452
|
+
});
|
|
453
|
+
const chartData = {
|
|
454
|
+
datasets: [
|
|
455
|
+
{
|
|
456
|
+
backgroundColor: backgroundColor,
|
|
457
|
+
data: dataArr,
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
labels: labels,
|
|
461
|
+
};
|
|
462
|
+
const options = {
|
|
463
|
+
type: 'outlabeledPie',
|
|
464
|
+
data: chartData,
|
|
465
|
+
options: {
|
|
466
|
+
layout: {
|
|
467
|
+
padding: {
|
|
468
|
+
top: 33,
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
zoomOutPercentage: 55,
|
|
472
|
+
plugins: {
|
|
473
|
+
legend: false,
|
|
474
|
+
outlabels: {
|
|
475
|
+
lineWidth: 0.8,
|
|
476
|
+
lineColor: '#b4bac6',
|
|
477
|
+
text: (context) => {
|
|
478
|
+
let index = context.dataIndex;
|
|
479
|
+
let label = context.labels[index];
|
|
480
|
+
let num = context.percent * 100;
|
|
481
|
+
let text = `${_.truncate(label, {
|
|
482
|
+
length: 24,
|
|
483
|
+
})} ${num.toFixed(0)}%`;
|
|
484
|
+
return text;
|
|
485
|
+
},
|
|
486
|
+
color: 'white',
|
|
487
|
+
stretch: 20,
|
|
488
|
+
font: {
|
|
489
|
+
resizable: true,
|
|
490
|
+
minSize: 12,
|
|
491
|
+
maxSize: 18,
|
|
492
|
+
},
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
};
|
|
497
|
+
return { options: options, chartData: chartData };
|
|
498
|
+
}
|
|
499
|
+
pieChart(data) {
|
|
500
|
+
const provideColors = data.colors;
|
|
501
|
+
const prefix = data.prefix;
|
|
502
|
+
const totalItems = data.totalItems;
|
|
503
|
+
let backgroundColor = [];
|
|
504
|
+
let dataArr = [];
|
|
505
|
+
let labels = [];
|
|
506
|
+
data.data.data.forEach((item, index) => {
|
|
507
|
+
backgroundColor.push(provideColors[item.label]);
|
|
508
|
+
dataArr.push(item.count);
|
|
509
|
+
});
|
|
510
|
+
labels = data.data.data.map((item, index) => {
|
|
511
|
+
return `${item.label}`;
|
|
512
|
+
});
|
|
513
|
+
const chartData = {
|
|
514
|
+
datasets: [
|
|
515
|
+
{
|
|
516
|
+
backgroundColor: backgroundColor,
|
|
517
|
+
data: dataArr,
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
labels: labels,
|
|
521
|
+
};
|
|
522
|
+
const options = {
|
|
523
|
+
type: 'pie',
|
|
524
|
+
data: chartData,
|
|
525
|
+
options: {
|
|
526
|
+
plugins: {
|
|
527
|
+
title: {
|
|
528
|
+
display: false,
|
|
529
|
+
text: prefix.length > 0 ? `${this.translate.instant(prefix)}` : '',
|
|
530
|
+
},
|
|
531
|
+
legend: {
|
|
532
|
+
labels: {
|
|
533
|
+
usePointStyle: true,
|
|
534
|
+
boxWidth: 8,
|
|
535
|
+
},
|
|
536
|
+
rtl: this.isArabic ? true : false,
|
|
537
|
+
position: 'top',
|
|
538
|
+
},
|
|
539
|
+
},
|
|
540
|
+
layout: {
|
|
541
|
+
padding: 0,
|
|
542
|
+
},
|
|
543
|
+
responsive: true,
|
|
544
|
+
maintainAspectRatio: false,
|
|
545
|
+
},
|
|
546
|
+
};
|
|
547
|
+
return { options: options, chartData: chartData };
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
ChartDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ChartDataService, deps: [{ token: i1.TranslateService }, { token: i2.TranslationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
551
|
+
ChartDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ChartDataService, providedIn: 'root' });
|
|
552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ChartDataService, decorators: [{
|
|
553
|
+
type: Injectable,
|
|
554
|
+
args: [{
|
|
555
|
+
providedIn: 'root',
|
|
556
|
+
}]
|
|
557
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: i2.TranslationService }]; } });
|
|
558
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhcnQtZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZW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GVtZW50V2lkdGggLyBzdHJpbmdXaWR0aDtcclxuICAgICAgICAgIHZhciBuZXdGb250U2l6ZSA9IE1hdGguZmxvb3IoMzAgKiB3aWR0aFJhdGlvKTtcclxuICAgICAgICAgIHZhciBlbGVtZW50SGVpZ2h0ID0gY2hhcnQuaW5uZXJSYWRpdXMgKiAyO1xyXG5cclxuICAgICAgICAgIC8vIFBpY2sgYSBuZXcgZm9udCBzaXplIHNvIGl0IHdpbGwgbm90IGJlIGxhcmdlciB0aGFuIHRoZSBoZWlnaHQgb2YgbGFiZWwuXHJcbiAgICAgICAgICB2YXIgZm9udFNpemVUb1VzZSA9IE1hdGgubWluKG5ld0ZvbnRTaXplLCBlbGVtZW50SGVpZ2h0LCBtYXhGb250U2l6ZSk7XHJcbiAgICAgICAgICB2YXIgbWluRm9udFNpemUgPSBjZW50ZXJDb25maWcubWluRm9udFNpemU7XHJcbiAgICAgICAgICB2YXIgbGluZUhlaWdodCA9IGNlbnRlckNvbmZpZy5saW5lSGVpZ2h0IHx8IDI1O1xyXG4gICAgICAgICAgdmFyIHdyYXBUZXh0ID0gZmFsc2U7XHJcblxyXG4gICAgICAgICAgaWYgKG1pbkZvbnRTaXplID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgbWluRm9udFNpemUgPSAyMDtcclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBpZiAobWluRm9udFNpemUgJiYgZm9udFNpemVUb1VzZSA8IG1pbkZvbnRTaXplKSB7XHJcbiAgICAgICAgICAgIGZvbnRTaXplVG9Vc2UgPSBtaW5Gb250U2l6ZTtcclxuICAgICAgICAgICAgd3JhcFRleHQgPSB0cnVlO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIC8vIFNldCBmb250IHNldHRpbmdzIHRvIGRyYXcgaXQgY29ycmVjdGx5LlxyXG4gICAgICAgICAgY3R4LnRleHRBbGlnbiA9ICdjZW50ZXInO1xyXG4gICAgICAgICAgY3R4LnRleHRCYXNlbGluZSA9ICdtaWRkbGUnO1xyXG4gICAgICAgICAgdmFyIGNlbnRlclggPSAoY2hhcnQuY2hhcnRBcmVhLmxlZnQgKyBjaGFydC5jaGFydEFyZWEucmlnaHQpIC8gMjtcclxuICAgICAgICAgIHZhciBjZW50ZXJZID0gKGNoYXJ0LmNoYXJ0QXJlYS50b3AgKyBjaGFydC5jaGFydEFyZWEuYm90dG9tKSAvIDI7XHJcbiAgICAgICAgICBjdHguZm9udCA9ICcxNCcgKyAncHggJyArIGZvbnRTdHlsZTtcclxuICAgICAgICAgIGN0eC5maWxsU3R5bGUgPSBjb2xvcjtcclxuXHJcbiAgICAgICAgICBpZiAoIXdyYXBUZXh0KSB7XHJcbiAgICAgICAgICAgIGN0eC5maWxsVGV4dCh0eHQsIGNlbnRlclgsIGNlbnRlclkpO1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgdmFyIHdvcmRzID0gdHh0LnNwbGl0KCcgJyk7XHJcbiAgICAgICAgICB2YXIgbGluZSA9ICcnO1xyXG4gICAgICAgICAgdmFyIGxpbmVzID0gW107XHJcblxyXG4gICAgICAgICAgLy8gQnJlYWsgd29yZHMgdXAgaW50byBtdWx0aXBsZSBsaW5lcyBpZiBuZWNlc3NhcnlcclxuICAgICAgICAgIGZvciAodmFyIG4gPSAwOyBuIDwgd29yZHMubGVuZ3RoOyBuKyspIHtcclxuICAgICAgICAgICAgdmFyIHRlc3RMaW5lID0gbGluZSArIHdvcmRzW25dICsgJyAnO1xyXG4gICAgICAgICAgICB2YXIgbWV0cmljcyA9IGN0eC5tZWFzdXJlVGV4dCh0ZXN0TGluZSk7XHJcbiAgICAgICAgICAgIHZhciB0ZXN0V2lkdGggPSBtZXRyaWNzLndpZHRoO1xyXG4gICAgICAgICAgICBpZiAodGVzdFdpZHRoID4gZWxlbWVudFdpZHRoICYmIG4gPiAwKSB7XHJcbiAgICAgICAgICAgICAgbGluZXMucHVzaChsaW5lKTt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bnQ7XHJcbiAgICBpZiAob3RoZXJJdGVtc0NvdW50ID4gMCkge1xyXG4gICAgICBiYWNrZ3JvdW5kQ29sb3IucHVzaChwcm92aWRlQ29sb3JzWydvdGhlciddKTtcclxuICAgICAgZGF0YUFyci5wdXNoKG90aGVySXRlbXNDb3VudCk7XHJcbiAgICAgIGxhYmVscy5wdXNoKGAke3RoaXMudHJhbnNsYXRlLmluc3RhbnQocHJlZml4ICsgJ290aGVyJyl9ICgke290aGVySXRlbXNDb3VudH0pYCk7XHJcbiAgICB9XHJcbiAgICBjb25zdCBjaGFydERhdGEgPSB7XHJcbiAgICAgIGRhdGFzZXRzOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgYmFja2dyb3VuZENvbG9yOiBiYWNrZ3JvdW5kQ29sb3IsXHJcbiAgICAgICAgICBkYXRhOiBkYXRhQXJyLFxyXG4gICAgICAgIH0sXHJcbiAgICAgIF0sXHJcbiAgICAgIGxhYmVsczogbGFiZWxzLFxyXG4gICAgfTtcclxuXHJcbiAgICBjb25zdCBvcHRpb25zID0ge1xyXG4gICAgICB0eXBlOiAnZG91Z2hudXQnLFxyXG4gICAgICBkYXRhOiBjaGFydERhdGEsXHJcbiAgICAgIHBsdWdpbnM6IFt0aGlzLnRvdGFsTnVtYmVyXSxcclxuICAgICAgb3B0aW9uczoge1xyXG4gICAgICAgIHJlc3BvbnNpdmU6IHRydWUsXHJcbiAgICAgICAgbWFpbnRhaW5Bc3BlY3RSYXRpbzogZmFsc2UsXHJcbiAgICAgICAgcGx1Z2luczoge1xyXG4gICAgICAgICAgdG9vbHRpcDoge1xyXG4gICAgICAgICAgICBlbmFibGVkOiB0cnVlLFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICAgIGxlZ2VuZDoge1xyXG4gICAgICAgICAgICBsYWJlbHM6IHtcclxuICAgICAgICAgICAgICB1c2VQb2ludFN0eWxlOiB0cnVlLFxyXG4gICAgICAgICAgICAgIGJveFdpZHRoOiA4LFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBkaXNwbGF5OiB0cnVlLFxyXG4gICAgICAgICAgICBwb3NpdGlvbjogdGhpcy5pc0FyYWJpYyA/ICdyaWdodCcgOiAnbGVmdCcsXHJcbiAgICAgICAgICAgIHJ0bDogdGhpcy5pc0FyYWJpYyA/IHRydWUgOiBmYWxzZSxcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxcclxuICAgICAgICBjdXRvdXQ6ICczMCUnLCAvLyBSZXBsYWNlcyBgY3V0b3V0UGVyY2VudGFnZWBcclxuICAgICAgICBlbGVtZW50czoge1xyXG4gICAgICAgICAgY2VudGVyOiB7XHJcbiAgICAgICAgICAgIHRleHQ6IGAke1xyXG4gICAgICAgICAgICAgIHRvdGFsSXRlbXMgPj0gMTAwMFxyXG4gICAgICAgICAgICAgICAgPyBwYXJzZUZsb2F0KCh0b3RhbEl0ZW1zIC8gMTAwMCkudG9GaXhlZCgyKSkgKyAnSydcclxuICAgICAgICAgICAgICAgIDogdG90YWxJdGVtc1xyXG4gICAgICAgICAgICB9YCxcclxuICAgICAgICAgICAgY29sb3I6ICcjNTk2OTczJyxcclxuICAgICAgICAgICAgZm9udFN0eWxlOiAnQXJpYWwnLFxyXG4gICAgICAgICAgICBzaWRlUGFkZGluZzogMjAsXHJcbiAgICAgICAgICAgIG1pbkZvbnRTaXplOiAyMCxcclxuICAgICAgICAgICAgbGluZUhlaWdodDogMjUsXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIH0sXHJcbiAgICAgIH0sXHJcbiAgICB9O1xyXG5cclxuICAgIHJldHVybiB7IG9wdGlvbnM6IG9wdGlvbnMsIGNoYXJ0RGF0YTogY2hhcnREYXRhIH07XHJcbiAgfVxyXG5cclxuICBsaW5lQ2hhcnQoZGF0YSk6IENoYXJ0RGF0YSB7XHJcbiAgICBkYXRhID0gdGhpcy5ncm91cE9iamVjdEJ5a2V5TGluZShkYXRhLmRhdGEpO1xyXG4gICAgY29uc29sZS5sb2coJ2NoYXJ0IGRhdGEnLCBkYXRhKTtcclxuICAgIHRoaXMuaXNBcmFiaWMgPyBtb21lbnQubG9jYWxlKCdhci1zYScpIDogbW9tZW50LmxvY2FsZSgnZW4tdXMnKTtcclxuICAgIGNvbnN0IGNoYXJ0RGF0YSA9IGRhdGE7XHJcbiAgICBjb25zdCBvcHRpb25zID0ge1xyXG4gICAgICB0eXBlOiAnbGluZScsXHJcbiAgICAgIGRhdGE6IGNoYXJ0RGF0YSxcclxuICAgICAgb3B0aW9uczoge1xyXG4gICAgICAgIG1haW50YWluQXNwZWN0UmF0aW86IGZhbHNlLFxyXG4gICAgICAgIHNjYWxlczoge1xyXG4gICAgICAgICAgeDoge1xyXG4gICAgICAgICAgICB0eXBlOiAndGltZScsXHJcbiAgICAgICAgICAgIHRpY2tzOiB7XHJcbiAgICAgICAgICAgICAgYXV0b1NraXA6IHRydWUsXHJcbiAgICAgICAgICAgICAgbWF4VGlja3NMaW1pdDogMTIsXHJcbiAgICAgICAgICAgICAgc291cmNlOiAnbGFiZWxzJyxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgdGltZToge1xyXG4gICAgICAgICAgICAgIHVuaXQ6ICd3ZWVrJyxcclxuICAgICAgICAgICAgICBkaXNwbGF5Rm9ybWF0czoge1xyXG4gICAgICAgICAgICAgICAgd2VlazogJ0RELU1NLXl5eXknLFxyXG4gICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgICAgeToge1xyXG4gICAgICAgICAgICB0aWNrczoge1xyXG4gICAgICAgICAgICAgIG1pbjogMCxcclxuICAgICAgICAgICAgICBwcmVjaXNpb246IDAsXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgcGx1Z2luczoge1xyXG4gICAgICAgICAgdGl0bGU6IHtcclxuICAgICAgICAgICAgZGlzcGxheTogdHJ1ZSxcclxuICAgICAgICAgICAgdGV4dDogJycsXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgICAgbGVnZW5kOiB7XHJcbiAgICAgICAgICAgIGxhYmVsczoge1xyXG4gICAgICAgICAgICAgIC8vIHVzZVBvaW50U3R5bGU6IHRydWUsXHJcbiAgICAgICAgICAgICAgYm94V2lkdGg6IDEyLFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAvLyBwb3NpdGlvbjogJ2JvdHRvbScsXHJcbiAgICAgICAgICAgIHJ0bDogdGhpcy5pc0FyYWJpYyA/IHRydWUgOiBmYWxzZSxcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgICB0b29sdGlwOiB7XHJcbiAgICAgICAgICAgIGNhbGxiYWNrczoge1xyXG4gICAgICAgICAgICAgIHRpdGxlOiBmdW5jdGlvbiAoY29udGV4dCkge1xyXG4gICAgICAgICAgICAgICAgY29uc3QgbGFiZWwgPSBjb250ZXh0WzBdLmxhYmVsO1xyXG4gICAgICAgICAgICAgICAgY29uc3QgaW5wdXRGb3JtYXQgPSAnTU1NTSBE2IwgWVlZWdiMIGg6bW06c3MgQSc7XHJcbiAgICAgICAgICAgICAgICBjb25zdCBpc1ZhbGlkID0gbW9tZW50KFxyXG4gICAgICAgICAgICAgICAgICBsYWJlbCxcclxuICAgICAgICAgICAgICAgICAgdGhpcy5pc0FyYWJpYyA/IGlucHV0Rm9ybWF0IDogbW9tZW50LklTT184NjAxLFxyXG4gICAgICAgICAgICAgICAgICB0cnVlXHJcbiAgICAgICAgICAgICAgICApLmlzVmFsaWQoKTtcclxuICAgICAgICAgICAgICAgIHJldHVybiBpc1ZhbGlkID8gbW9tZW50KGxhYmVsKS5mb3JtYXQoJ0RELU1NLXl5eXknKSA6IGxhYmVsO1xyXG4gICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIH0sXHJcbiAgICAgIH0sXHJcbiAgICB9O1xyXG4gICAgcmV0dXJuIHsgb3B0aW9ucywgY2hhcnREYXRhIH07XHJcbiAgfVxyXG5cclxuICBHcm91cGVkQmFyQ2hhcnQoZGF0YSk6IENoYXJ0RGF0YSB7XHJcbiAgICBkYXRhID0gdGhpcy5ncm91cE9iamVjdEJ5a2V5KGRhdGEuZGF0YSk7XHJcbiAgICB0aGlzLmlzQXJhYmljID8gbW9tZW50LmxvY2FsZSgnYXItc2EnKSA6IG1vbWVudC5sb2NhbGUoJ2VuLXVzJyk7XHJcbiAgICBjb25zdCBjaGFydERhdGEgPSBkYXRhO1xyXG4gICAgY29uc3Qgb3B0aW9ucyA9IHtcclxuICAgICAgdHlwZTogJ2JhcicsXHJcbiAgICAgIGRhdGE6IGNoYXJ0RGF0YSxcclxuICAgICAgb3B0aW9uczoge1xyXG4gICAgICAgIHBsdWdpbnM6IHtcclxuICAgICAgICAgIGxlZ2VuZDoge1xyXG4gICAgICAgICAgICBsYWJlbHM6IHtcclxuICAgICAgICAgICAgICBib3hXaWR0aDogMTIsXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHJ0bDogdGhpcy5pc0FyYWJpYyA/IHRydWUgOiBmYWxzZSxcclxuICAgICAgICAgICAgcG9zaXRpb246ICd0b3AnLCAvLyBDaGFuZ2UgYXMgbmVlZGVkXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgICAgbGFiZWxzOiBmYWxzZSxcclxuICAgICAgICAgIG91dGxhYmVsczoge1xyXG4gICAgICAgICAgICBkaXNwbGF5OiBmYWxzZSxcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxcclxuICAgICAgICBzY2FsZXM6IHtcclxuICAgICAgICAgIHk6IHtcclxuICAgICAgICAgICAgdGlja3M6IHtcclxuICAgICAgICAgICAgICBiZWdpbkF0WmVybzogdHJ1ZSxcclxuICAgICAgICAgICAgICBwcmVjaXNpb246IDAsXHJcbiAgICAgICAgICAgICAgc3RlcFNpemU6IDEsXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgcmVzcG9uc2l2ZTogdHJ1ZSxcclxuICAgICAgICBtYWludGFpbkFzcGVjdFJhdGlvOiBmYWxzZSxcclxuICAgICAgfSxcclxuICAgIH07XHJcblxyXG4gICAgcmV0dXJuIHsgb3B0aW9ucywgY2hhcnREYXRhIH07XHJcbiAgfVxyXG5cclxuICBCYXJDaGFydChkYXRhKTogQ2hhcnREYXRhIHtcclxuICAgIGNvbnN0IHByb3ZpZGVDb2xvcnMgPSBkYXRhLmNvbG9ycztcclxuICAgIGNvbnN0IHByZWZpeCA9IGRhdGEucHJlZml4O1xyXG4gICAgY29uc3QgdG90YWxJdGVtcyA9IGRhdGEudG90YWxJdGVtcztcclxuICAgIGxldCBiYWNrZ3JvdW5kQ29sb3IgPSBbXTtcclxuICAgIGxldCBkYXRhQXJyID0gW107XHJcbiAgICBsZXQgbGFiZWxzID0gW107XHJcbiAgICBkYXRhLmRhdGEuZGF0YS5mb3JFYWNoKChpdGVtLCBpbmRleCkgPT4ge1xyXG4gICAgICBiYWNrZ3JvdW5kQ29sb3IucHVzaCgnIzJlNjJkZicpO1xyXG4gICAgICBkYXRhQXJyLnB1c2goaXRlbS5jb3VudCk7XHJcbiAgICB9KTtcclxuICAgIGxhYmVscyA9IGRhdGEuZGF0YS5kYXRhLm1hcCgoaXRlbSwgaW5kZXgpID0+IHtcclxuICAgICAgcmV0dXJuIGAke2l0ZW0ubGFiZWx9YDtcclxuICAgIH0pO1xyXG4gICAgY29uc3QgY2hhcnREYXRhID0ge1xyXG4gICAgICBkYXRhc2V0czogW1xyXG4gICAgICAgIHtcclxuICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogYmFja2dyb3VuZENvbG9yLFxyXG4gICAgICAgICAgZGF0YTogZGF0YUFycixcclxuICAgICAgICAgIGJhclBlcmNlbnRhZ2U6IDAuNCxcclxuICAgICAgICAgIGJhclRoaWNrbmVzczogMjQsXHJcbiAgICAgICAgICBtYXhCYXJUaGlja25lc3M6IDMwLFxyXG4gICAgICAgICAgbWluQmFyTGVuZ3RoOiAyLFxyXG4gICAgICAgIH0sXHJcbiAgICAgIF0sXHJcbiAgICAgIGxhYmVsczogbGFiZWxzLFxyXG4gICAgfTtcclxuXHJcbiAgICBjb25zdCBvcHRpb25zID0ge1xyXG4gICAgICB0eXBlOiAnYmFyJyxcclxuICAgICAgZGF0YTogY2hhcnREYXRhLFxyXG4gICAgICBvcHRpb25zOiB7XHJcbiAgICAgICAgcGx1Z2luczoge1xyXG4gICAgICAgICAgbGVnZW5kOiB7XHJcbiAgICAgICAgICAgIGRpc3BsYXk6IGZhbHNlLFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICAgIGxhYmVsczogZmFsc2UsXHJcbiAgICAgICAgICBvdXRsYWJlbHM6IHtcclxuICAgICAgICAgICAgZGlzcGxheTogZmFsc2UsXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgc2NhbGVzOiB7XHJcbiAgICAgICAgICB5OiB7XHJcbiAgICAgICAgICAgIHRpY2tzOiB7XHJcbiAgICAgICAgICAgICAgYmVnaW5BdFplcm86IHRydWUsXHJcbiAgICAgICAgICAgICAgcHJlY2lzaW9uOiAwLFxyXG4gICAgICAgICAgICAgIHN0ZXBTaXplOiAxLFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICB9LFxyXG4gICAgICAgIHJlc3BvbnNpdmU6IHRydWUsXHJcbiAgICAgICAgbWFpbnRhaW5Bc3BlY3RSYXRpbzogZmFsc2UsXHJcbiAgICAgIH0sXHJcbiAgICB9O1xyXG5cclxuICAgIHJldHVybiB7IG9wdGlvbnM6IG9wdGlvbnMsIGNoYXJ0RGF0YTogY2hhcnREYXRhIH07XHJcbiAgfVxyXG5cclxuICBvdXRsYWJlbGVkUGllQ2hhcnQoZGF0YSk6IENoYXJ0RGF0YSB7XHJcbiAgICBjb25zdCBwcm92aWRlQ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fSxcclxuICAgICAgICB6b29tT3V0UGVyY2VudGFnZTogNTUsXHJcbiAgICAgICAgcGx1Z2luczoge1xyXG4gICAgICAgICAgbGVnZW5kOiBmYWxzZSxcclxuICAgICAgICAgIG91dGxhYmVsczoge1xyXG4gICAgICAgICAgICBsaW5lV2lkdGg6IDAuOCxcclxuICAgICAgICAgICAgbGluZUNvbG9yOiAnI2I0YmFjNicsXHJcbiAgICAgICAgICAgIHRleHQ6IChjb250ZXh0KSA9PiB7XHJcbiAgICAgICAgICAgICAgbGV0IGluZGV4ID0gY29udGV4dC5kYXRhSW5kZXg7XHJcbiAgICAgICAgICAgICAgbGV0IGxhYmVsID0gY29udGV4dC5sYWJlbHNbaW5kZXhdO1xyXG4gICAgICAgICAgICAgIGxldCBudW0gPSBjb250ZXh0LnBlcmNlbnQgKiAxMDA7XHJcbiAgICAgICAgICAgICAgbGV0IHRleHQgPSBgJHtfLnRydW5jYXRlKGxhYmVsLCB7XHJcbiAgICAgICAgICAgICAgICBsZW5ndGg6IDI0LFxyXG4gICAgICAgICAgICAgIH0pfSAke251bS50b0ZpeGVkKDApfSVgO1xyXG5cclxuICAgICAgICAgICAgICByZXR1cm4gdGV4dDtcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgY29sb3I6ICd3aGl0ZScsXHJcbiAgICAgICAgICAgIHN0cmV0Y2g6IDIwLFxyXG4gICAgICAgICAgICBmb250OiB7XHJcbiAgICAgICAgICAgICAgcmVzaXphYmxlOiB0cnVlLFxyXG4gICAgICAgICAgICAgIG1pblNpemU6IDEyLFxyXG4gICAgICAgICAgICAgIG1heFNpemU6IDE4LFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICB9LFxyXG4gICAgICB9LFxyXG4gICAgfTtcclxuICAgIHJldHVybiB7IG9wdGlvbnM6IG9wdGlvbnMsIGNoYXJ0RGF0YTogY2hhcnREYXRhIH07XHJcbiAgfVxyXG5cclxuICBwaWVDaGFydChkYXRh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clxuICAgICAgICAgICAgdGV4dDogcHJlZml4Lmxlbmd0aCA+IDAgPyBgJHt0aGlzLnRyYW5zbGF0ZS5pbnN0YW50KHByZWZpeCl9YCA6ICcnLFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICAgIGxlZ2VuZDoge1xyXG4gICAgICAgICAgICBsYWJlbHM6IHtcclxuICAgICAgICAgICAgICB1c2VQb2ludFN0eWxlOiB0cnVlLFxyXG4gICAgICAgICAgICAgIGJveFdpZHRoOiA4LFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBydGw6IHRoaXMuaXNBcmFiaWMgPyB0cnVlIDogZmFsc2UsXHJcbiAgICAgICAgICAgIHBvc2l0aW9uOiAndG9wJyxcclxuICAgICAgICAgIH0sXHJcbiAgICAgICAgfSxcclxuICAgICAgICBsYXlvdXQ6IHtcclxuICAgICAgICAgIHBhZGRpbmc6IDAsXHJcbiAgICAgICAgfSxcclxuICAgICAgICByZXNwb25zaXZlOiB0cnVlLFxyXG4gICAgICAgIG1haW50YWluQXNwZWN0UmF0aW86IGZhbHNlLFxyXG4gICAgICB9LFxyXG4gICAgfTtcclxuXHJcbiAgICByZXR1cm4geyBvcHRpb25zOiBvcHRpb25zLCBjaGFydERhdGE6IGNoYXJ0RGF0YSB9O1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBncm91cE9iamVjdEJ5a2V5ID0gKGRhdGEpID0+IHtcclxuICAgIGxldCBuYW1lSW5kaWNlcyA9IHt9O1xyXG4gICAgbGV0IHN0YXR1c0hhc2ggPSB7fTtcclxuICAgIGxldCBjaGFydERhdGEgPSB7IGxhYmVsczogW10sIGRhdGFzZXRzOiBbXSB9O1xyXG4gICAgZGF0YS5mb3JFYWNoKChpdGVtKSA9PiB7XHJcbiAgICAgIGlmICghKGl0ZW0ubGFiZWwgaW4gbmFtZUluZGljZXMpKSB7XHJcbiAgICAgICAgbmFtZUluZGljZXNbaXRlbS5sYWJlbF0gPSBjaGFydERhdGEubGFiZWxzLnB1c2goaXRlbS5sYWJlbCkgLSAxO1xyXG4gICAgICAgIGNoYXJ0RGF0YS5kYXRhc2V0cy5mb3JFYWNoKChhKSA9PiB7XHJcbiAgICAgICAgICBhLmRhdGEucHVzaCgwKTtcclxuICAgICAgICB9KTtcclxuICAgICAgfVxyXG4gICAgICBpZiAoIXN0YXR1c0hhc2hbaXRlbS5zdGF0dXNdKSB7XHJcbiAgICAgICAgc3RhdHVzSGFzaFtpdGVtLnN0YXR1c10gPSB7XHJcbiAgICAgICAgICBsYWJlbDogYCR7dGhpcy50cmFuc2xhdGUuaW5zdGFudChpdGVtLnN0YXR1cyl9ICgke2l0ZW0udG90YWxJdGVtc30pYCxcclxuICAgICAgICAgIC4uLihpdGVtLnN0YXR1cyA9PT0gJ0luY29taW5nJyAmJiB7XHJcbiAgICAgICAgICAgIGJhY2tncm91bmRDb2xvcjogJyMwMGRjYTUnLFxyXG4gICAgICAgICAgfSksXHJcbiAgICAgICAgICAuLi4oaXRlbS5zdGF0dXMgPT09ICdPdXRnb2luZycgJiYge1xyXG4gICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6ICcjZmJiNjJjJyxcclxuICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgZGF0YTogY2hhcnREYXRhLmxhYmVscy5tYXAoKCkgPT4ge1xyXG4gICAgICAgICAgICByZXR1cm4gMDtcclxuICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgYmFyUGVyY2VudGFnZTogMC40LFxyXG4gICAgICAgICAgYmFyVGhpY2tuZXNzOiAyNCxcclxuICAgICAgICAgIG1heEJhclRoaWNrbmVzczogMzAsXHJcbiAgICAgICAgICBtaW5CYXJMZW5ndGg6IDIsXHJcbiAgICAgICAgfTtcclxuICAgICAgICBjaGFydERhdGEuZGF0YXNldHMucHVzaChzdGF0dXNIYXNoW2l0ZW0uc3RhdHVzXSk7XHJcbiAgICAgIH1cclxuICAgICAgc3RhdHVzSGFzaFtpdGVtLnN0YXR1c10uZGF0YVt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