nuxeo-development-framework 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +63 -70
- package/src/lib/Core/adapters/adapter.service.ts +46 -0
- package/src/lib/Core/core.module.ts +65 -0
- package/src/lib/Core/enums/language.enum.ts +4 -0
- package/src/lib/Core/models/component.model.ts +11 -0
- package/src/lib/Core/services/callApi/call-api.service.ts +31 -0
- package/src/lib/Core/services/extension/action.extensions.ts +35 -0
- package/src/lib/Core/services/extension/component-register.service.ts +25 -0
- package/src/lib/Core/services/extension/extenion-utils.ts +142 -0
- package/src/lib/Core/services/extension/extension-element.ts +6 -0
- package/src/lib/Core/services/extension/extension-loader.service.ts +160 -0
- package/src/lib/Core/services/extension/extension.service.ts +137 -0
- package/src/lib/Core/services/initialization/initialization.service.ts +50 -0
- package/src/lib/Core/services/localStorag/local-storag.service.ts +125 -0
- package/src/lib/Core/services/nuxeo/nuxeo-override.ts +86 -0
- package/src/lib/Core/services/nuxeo/nuxeo.service.ts +123 -0
- package/src/lib/Core/services/roles/roles.service.spec.ts +16 -0
- package/src/lib/Core/services/roles/roles.service.ts +122 -0
- package/src/lib/Core/services/translation/translate-loader.service.ts +173 -0
- package/src/lib/Core/services/translation/translation.service.ts +221 -0
- package/src/lib/Core/services/user/user-preferences.service.ts +172 -0
- package/src/lib/Core/utilities/moment-date-adapter.ts +203 -0
- package/src/lib/Core/utilities/moment-dates-format.ts +18 -0
- package/src/lib/Core/utilities/utility.service.ts +83 -0
- package/src/lib/assets/scss/ej2/material.css +1 -0
- package/src/lib/assets/scss/mixins.scss +38 -0
- package/src/lib/assets/scss/myApp.scss +487 -0
- package/src/lib/assets/scss/variables.scss +62 -0
- package/src/lib/components/activities-log/activities-log/activities-log.component.html +11 -0
- package/src/lib/components/activities-log/activities-log/activities-log.component.scss +12 -0
- package/src/lib/components/activities-log/activities-log/activities-log.component.spec.ts +25 -0
- package/src/lib/components/activities-log/activities-log/activities-log.component.ts +107 -0
- package/src/lib/components/activities-log/activities-log/activities-log.service.ts +30 -0
- package/src/lib/components/activities-log/activities-log.module.ts +18 -0
- package/src/lib/components/activity/activity/activity.component.html +28 -0
- package/src/lib/components/activity/activity/activity.component.scss +33 -0
- package/src/lib/components/activity/activity/activity.component.spec.ts +25 -0
- package/src/lib/components/activity/activity/activity.component.ts +23 -0
- package/src/lib/components/activity/activity.module.ts +24 -0
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.html +36 -0
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.scss +21 -0
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.spec.ts +25 -0
- package/src/lib/components/attachment-item/attachment-item/attachment-item.component.ts +35 -0
- package/src/lib/components/attachment-item/attachment-item.module.ts +26 -0
- package/src/lib/components/attachment-modal/attachment-modal.module.ts +24 -0
- package/src/lib/components/attachment-modal/attachments/attachments.component.html +41 -0
- package/src/lib/components/attachment-modal/attachments/attachments.component.scss +5 -0
- package/src/lib/components/attachment-modal/attachments/attachments.component.spec.ts +25 -0
- package/src/lib/components/attachment-modal/attachments/attachments.component.ts +161 -0
- package/src/lib/components/avatar/avatar/avatar.component.html +13 -0
- package/src/lib/components/avatar/avatar/avatar.component.scss +32 -0
- package/src/lib/components/avatar/avatar/avatar.component.spec.ts +25 -0
- package/src/lib/components/avatar/avatar/avatar.component.ts +50 -0
- package/src/lib/components/avatar/avatar.module.ts +21 -0
- package/src/lib/components/card/card.component.html +35 -0
- package/src/lib/components/card/card.component.scss +81 -0
- package/src/lib/components/card/card.component.spec.ts +25 -0
- package/src/lib/components/card/card.component.ts +38 -0
- package/src/lib/components/card/card.module.ts +15 -0
- package/src/lib/components/comments/comments.module.ts +48 -0
- package/src/lib/components/comments/components/comment-item/comment-item.component.html +32 -0
- package/src/lib/components/comments/components/comment-item/comment-item.component.scss +41 -0
- package/src/lib/components/comments/components/comment-item/comment-item.component.ts +70 -0
- package/src/lib/components/comments/components/comments-dashlet/comments-dashlet.component.html +58 -0
- package/src/lib/components/comments/components/comments-dashlet/comments-dashlet.component.scss +69 -0
- package/src/lib/components/comments/components/comments-dashlet/comments-dashlet.component.ts +80 -0
- package/src/lib/components/comments/components/comments-list/comments-list.component.html +43 -0
- package/src/lib/components/comments/components/comments-list/comments-list.component.scss +103 -0
- package/src/lib/components/comments/components/comments-list/comments-list.component.ts +61 -0
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.html +22 -0
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.scss +48 -0
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.spec.ts +25 -0
- package/src/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.ts +56 -0
- package/src/lib/components/comments/constants/comment.ts +25 -0
- package/src/lib/components/comments/services/comment-api.service.ts +85 -0
- package/src/lib/components/confirm-caller/confirm-caller.dialog.html +26 -0
- package/src/lib/components/confirm-caller/confirm-caller.dialog.scss +34 -0
- package/src/lib/components/confirm-caller/confirm-caller.dialog.ts +68 -0
- package/src/lib/components/confirm-caller/confirm-caller.module.ts +19 -0
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.html +13 -0
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.scss +0 -0
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.spec.ts +25 -0
- package/src/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.ts +18 -0
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.html +24 -0
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.scss +0 -0
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.spec.ts +25 -0
- package/src/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.ts +19 -0
- package/src/lib/components/confirmation-dialog/confirmation-dialog.module.ts +18 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.html +27 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.scss +34 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.spec.ts +25 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.ts +149 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.html +92 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.scss +124 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.spec.ts +25 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.ts +132 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.html +33 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.scss +42 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.spec.ts +25 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.ts +111 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.html +20 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.scss +9 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.spec.ts +25 -0
- package/src/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.ts +64 -0
- package/src/lib/components/correspondence-relation/components/versions/versions.component.html +80 -0
- package/src/lib/components/correspondence-relation/components/versions/versions.component.scss +0 -0
- package/src/lib/components/correspondence-relation/components/versions/versions.component.ts +71 -0
- package/src/lib/components/correspondence-relation/correspondence-relation.module.ts +59 -0
- package/src/lib/components/correspondence-relation/services/correspondence-realation.service.ts +192 -0
- package/src/lib/components/correspondence-relation/services/viewer-files.service.ts +51 -0
- package/src/lib/components/create-entity/create-entity/create-entity.component.html +18 -0
- package/src/lib/components/create-entity/create-entity/create-entity.component.scss +90 -0
- package/src/lib/components/create-entity/create-entity/create-entity.component.spec.ts +25 -0
- package/src/lib/components/create-entity/create-entity/create-entity.component.ts +57 -0
- package/src/lib/components/create-entity/create-entity.module.ts +22 -0
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.html +57 -0
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.scss +43 -0
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.spec.ts +25 -0
- package/src/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.ts +133 -0
- package/src/lib/components/cts-tags/cts-tags.module.ts +35 -0
- package/src/lib/components/cts-tags/services/tags-api.service.ts +106 -0
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.html +44 -0
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.scss +91 -0
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.spec.ts +25 -0
- package/src/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.ts +79 -0
- package/src/lib/components/custom-toastr/custom-toastr.module.ts +19 -0
- package/src/lib/components/custom-toastr/interfaces/toast-type.interface.ts +1 -0
- package/src/lib/components/custom-toastr/services/custom-toastr.service.ts +56 -0
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.html +37 -0
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.scss +73 -0
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.spec.ts +25 -0
- package/src/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.ts +34 -0
- package/src/lib/components/display-suitable-icon/display-suitable-icon/icon.service.ts +107 -0
- package/src/lib/components/display-suitable-icon/display-suitable-icon.module.ts +16 -0
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.html +92 -0
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.scss +65 -0
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.spec.ts +25 -0
- package/src/lib/components/documents/components/attachments-list/attachments-list.component.ts +162 -0
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.html +36 -0
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.scss +44 -0
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.spec.ts +25 -0
- package/src/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.ts +77 -0
- package/src/lib/components/documents/components/document-list/documents-list.component.html +34 -0
- package/src/lib/components/documents/components/document-list/documents-list.component.scss +41 -0
- package/src/lib/components/documents/components/document-list/documents-list.component.ts +244 -0
- package/src/lib/components/documents/components/document-scan/document-scan.component.html +176 -0
- package/src/lib/components/documents/components/document-scan/document-scan.component.scss +725 -0
- package/src/lib/components/documents/components/document-scan/document-scan.component.ts +1156 -0
- package/src/lib/components/documents/components/document-scan/document-scan.service.ts +26 -0
- package/src/lib/components/documents/components/document-upload/document-upload.component.html +19 -0
- package/src/lib/components/documents/components/document-upload/document-upload.component.scss +49 -0
- package/src/lib/components/documents/components/document-upload/document-upload.component.ts +168 -0
- package/src/lib/components/documents/components/documents/documents.component.html +16 -0
- package/src/lib/components/documents/components/documents/documents.component.scss +0 -0
- package/src/lib/components/documents/components/documents/documents.component.ts +49 -0
- package/src/lib/components/documents/constants/document-templates.ts +32 -0
- package/src/lib/components/documents/constants/documents.ts +85 -0
- package/src/lib/components/documents/documents.module.ts +69 -0
- package/src/lib/components/documents/services/document-templates.service.ts +155 -0
- package/src/lib/components/documents/services/documents.service.ts +354 -0
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.html +26 -0
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.scss +35 -0
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.spec.ts +25 -0
- package/src/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.ts +423 -0
- package/src/lib/components/dynamic-chart/dynamic-chart.module.ts +22 -0
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.html +4 -0
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.scss +14 -0
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.spec.ts +25 -0
- package/src/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.ts +178 -0
- package/src/lib/components/dynamic-chart/new-chart-box.ts +0 -0
- package/src/lib/components/dynamic-chart/services/chart-data.service.ts +613 -0
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.html +58 -0
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.scss +0 -0
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.ts +162 -0
- package/src/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.ts +25 -0
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.html +122 -0
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.scss +103 -0
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.spec.ts +25 -0
- package/src/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.ts +124 -0
- package/src/lib/components/dynamic-filter/dynamic-filter.module.ts +19 -0
- package/src/lib/components/dynamic-filter/services/dynamic-filter.service.ts +14 -0
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.html +100 -0
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.scss +38 -0
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/department-form/department-form.component.ts +132 -0
- package/src/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.html +3 -0
- package/src/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.scss +51 -0
- package/src/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.ts +109 -0
- package/src/lib/components/dynamic-form/components/dynamic-form/fields.adapter.ts +123 -0
- package/src/lib/components/dynamic-form/components/dynamic-form/form-builder.service.ts +120 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.html +14 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.scss +2 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.ts +34 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.html +15 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.scss +73 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.ts +161 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.html +10 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.scss +13 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.ts +72 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.html +56 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.scss +99 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.ts +210 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.ts +94 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-department/constants/department.ts +12 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.html +36 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.scss +11 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.ts +230 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.ts +251 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.ts +126 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.html +1 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.ts +92 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.html +29 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.scss +54 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.ts +152 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.ts +105 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.html +31 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.scss +5 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.ts +32 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.html +56 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.scss +24 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.ts +110 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.html +27 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.scss +100 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.ts +117 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.html +83 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.scss +136 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.ts +199 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.html +99 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.scss +177 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.ts +335 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.ts +50 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.html +92 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.scss +132 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.ts +194 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.html +13 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.scss +19 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.ts +85 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.html +27 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.scss +147 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.ts +213 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.html +68 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.scss +208 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.ts +308 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.ts +73 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.ts +350 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dynamic-form-treeview-select.component.html +235 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-treeview-select/dynamic-form-treeview-select.component.scss +246 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.html +23 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.scss +29 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.ts +39 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.html +35 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.spec.ts +25 -0
- package/src/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.ts +175 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.ts +780 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.html +2 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.ts +33 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.ts +22 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.html +1 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.ts +32 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.ts +20 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.css +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.html +17 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.ts +65 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.formio.ts +34 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.html +10 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.scss +0 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.ts +28 -0
- package/src/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.ts +34 -0
- package/src/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.ts +10 -0
- package/src/lib/components/dynamic-form/dynamic-form.module.scss +13 -0
- package/src/lib/components/dynamic-form/dynamic-form.module.ts +193 -0
- package/src/lib/components/dynamic-form/interfaces/aspect-oriented-config.interface.ts +3 -0
- package/src/lib/components/dynamic-form/interfaces/content-metadata-config.interface.ts +16 -0
- package/src/lib/components/dynamic-form/interfaces/content-metadata.interfaces.ts +26 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-arrayitem-properties.interface.ts +5 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.ts +6 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.ts +6 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-group.interface.ts +6 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.ts +16 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.ts +4 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.ts +12 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.ts +11 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.ts +13 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.ts +6 -0
- package/src/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.ts +9 -0
- package/src/lib/components/dynamic-form/interfaces/indifferent-config.interface.ts +1 -0
- package/src/lib/components/dynamic-form/interfaces/layout-oriented-config.interface.ts +17 -0
- package/src/lib/components/dynamic-form/interfaces/organised-property-group.interface.ts +7 -0
- package/src/lib/components/dynamic-form/interfaces/preset-config.interface.ts +8 -0
- package/src/lib/components/dynamic-form/interfaces/property-group.interface.ts +14 -0
- package/src/lib/components/dynamic-form/interfaces/property.interface.ts +12 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-arrayitem.model.ts +26 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-baseitem.model.ts +96 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-boolitem.model.ts +27 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-dateitem.model.ts +39 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.ts +18 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-keyvaluepairs.model.ts +19 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-mapitem.model.ts +17 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-selectitem.model.ts +30 -0
- package/src/lib/components/dynamic-form/models/dynamic-form-textitem.model.ts +47 -0
- package/src/lib/components/dynamic-form/services/card-item-types.service.ts +55 -0
- package/src/lib/components/dynamic-form/services/dynamic-component-mapper.service.ts +86 -0
- package/src/lib/components/dynamic-form/services/dynamic-form-update.service.ts +105 -0
- package/src/lib/components/dynamic-form/services/property-groups-translator.service.ts +159 -0
- package/src/lib/components/dynamic-form/services/vocabulary-api.service.ts +32 -0
- package/src/lib/components/dynamic-form/validators/date-validator.ts +18 -0
- package/src/lib/components/dynamic-form/validators/length-validator.ts +18 -0
- package/src/lib/components/dynamic-form/validators/regex-validator.ts +16 -0
- package/src/lib/components/dynamic-form/validators/required-validator.ts +7 -0
- package/src/lib/components/dynamic-form/validators/value-validator.ts +18 -0
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.html +219 -0
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.scss +195 -0
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.spec.ts +25 -0
- package/src/lib/components/dynamic-search/dynamic-search/dynamic-search.component.ts +316 -0
- package/src/lib/components/dynamic-search/dynamic-search.module.ts +33 -0
- package/src/lib/components/dynamic-table/constants/documents.ts +72 -0
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.html +46 -0
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.scss +33 -0
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.spec.ts +25 -0
- package/src/lib/components/dynamic-table/dynamic-table/dynamic-table.component.ts +239 -0
- package/src/lib/components/dynamic-table/dynamic-table.module.ts +27 -0
- package/src/lib/components/dynamic-table/services/dynamic-table.service.spec.ts +16 -0
- package/src/lib/components/dynamic-table/services/dynamic-table.service.ts +10 -0
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.html +11 -0
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.scss +63 -0
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.spec.ts +25 -0
- package/src/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.ts +25 -0
- package/src/lib/components/dynamic-tabs/dynamic-tabs.module.ts +20 -0
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.html +4 -0
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.ts +19 -0
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.html +3 -0
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.ts +55 -0
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.html +3 -0
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.ts +65 -0
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.html +14 -0
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.ts +28 -0
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.html +15 -0
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/data-viewer/data-viewer.component.ts +19 -0
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.html +5 -0
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/date-viewer/date-viewer.component.ts +38 -0
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.html +14 -0
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/department-viewer/department-viewer.component.ts +84 -0
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.html +4 -0
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.scss +0 -0
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.ts +44 -0
- package/src/lib/components/dynamic-view/dynamic-view.module.ts +44 -0
- package/src/lib/components/dynamic-view/dynamic-viewe.service.ts +58 -0
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.html +24 -0
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.scss +55 -0
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.spec.ts +25 -0
- package/src/lib/components/dynamic-view/list-viewer/list-viewer.component.ts +27 -0
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.html +34 -0
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.scss +0 -0
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/add-to-collection/add-to-collection.component.ts +139 -0
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.html +88 -0
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.scss +17 -0
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/clipboard/clipboard.component.ts +279 -0
- package/src/lib/components/file-manger/components/copy/copy.component.html +24 -0
- package/src/lib/components/file-manger/components/copy/copy.component.scss +0 -0
- package/src/lib/components/file-manger/components/copy/copy.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/copy/copy.component.ts +129 -0
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.html +32 -0
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.scss +0 -0
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/create-directory/create-directory.component.ts +85 -0
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.html +244 -0
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.scss +20 -0
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/create-modal/create-modal.component.ts +475 -0
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.html +39 -0
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.scss +0 -0
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/creation-type/creation-type.component.ts +19 -0
- package/src/lib/components/file-manger/components/delete/delete.component.html +25 -0
- package/src/lib/components/file-manger/components/delete/delete.component.scss +0 -0
- package/src/lib/components/file-manger/components/delete/delete.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/delete/delete.component.ts +80 -0
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.html +88 -0
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.scss +7 -0
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/folder-modal/folder-modal.component.ts +113 -0
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.html +31 -0
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.scss +0 -0
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/loan-request/loan-request.component.ts +72 -0
- package/src/lib/components/file-manger/components/move/move.component.html +24 -0
- package/src/lib/components/file-manger/components/move/move.component.scss +0 -0
- package/src/lib/components/file-manger/components/move/move.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/move/move.component.ts +114 -0
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.html +45 -0
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.scss +0 -0
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/publish-dialog/publish-dialog.component.ts +98 -0
- package/src/lib/components/file-manger/components/rename/rename.component.html +28 -0
- package/src/lib/components/file-manger/components/rename/rename.component.scss +0 -0
- package/src/lib/components/file-manger/components/rename/rename.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/rename/rename.component.ts +82 -0
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.html +336 -0
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.scss +9 -0
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/scan-modal/scan-modal.component.ts +337 -0
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.html +159 -0
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.scss +38 -0
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/share-dialog/share-dialog.component.ts +288 -0
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.html +350 -0
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.scss +0 -0
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/sidepanel/sidepanel.component.ts +247 -0
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.html +213 -0
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.scss +3 -0
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/template-modal/template-modal.component.ts +55 -0
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.html +26 -0
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.scss +0 -0
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/transfer-doc/transfer-doc.component.ts +74 -0
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.html +97 -0
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.scss +7 -0
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.spec.ts +25 -0
- package/src/lib/components/file-manger/components/update-modal/update-modal.component.ts +365 -0
- package/src/lib/components/file-manger/file-manager.abstract.ts +1347 -0
- package/src/lib/components/file-manger/file-manger.module.ts +154 -0
- package/src/lib/components/filter/filter/filter.component.html +79 -0
- package/src/lib/components/filter/filter/filter.component.md +68 -0
- package/src/lib/components/filter/filter/filter.component.scss +50 -0
- package/src/lib/components/filter/filter/filter.component.spec.ts +25 -0
- package/src/lib/components/filter/filter/filter.component.ts +81 -0
- package/src/lib/components/filter/filter.module.ts +27 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-date-picker.component.scss +67 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.html +47 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.ts +99 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-date-picker.component.scss +67 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.html +47 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.ts +102 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.html +29 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.ts +152 -0
- package/src/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.ts +23 -0
- package/src/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.ts +35 -0
- package/src/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.ts +94 -0
- package/src/lib/components/hijri-gregorian-datepicker/services/date-helper.service.ts +28 -0
- package/src/lib/components/hijri-gregorian-datepicker/services/ngx-hijri-gregorian-datepicker.service.ts +9 -0
- package/src/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.ts +35 -0
- package/src/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.ts +26 -0
- package/src/lib/components/hijri-gregorian-datepicker/utils/consts.ts +4 -0
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.html +27 -0
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.scss +13 -0
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.spec.ts +25 -0
- package/src/lib/components/latest-activity/components/activity-line/activity-line.component.ts +73 -0
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.html +36 -0
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.scss +12 -0
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.spec.ts +25 -0
- package/src/lib/components/latest-activity/components/latest-activity/latest-activity.component.ts +78 -0
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.html +38 -0
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.scss +157 -0
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.spec.ts +25 -0
- package/src/lib/components/latest-activity/components/single-activity/single-activity.component.ts +19 -0
- package/src/lib/components/latest-activity/constants/activitylog.ts +80 -0
- package/src/lib/components/latest-activity/latest-activity.module.ts +33 -0
- package/src/lib/components/latest-activity/services/activity-log.service.ts +41 -0
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.html +36 -0
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.scss +32 -0
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.spec.ts +25 -0
- package/src/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.ts +45 -0
- package/src/lib/components/mutiple-dynamic-form-viewer/mutiple-dynamic-form-viewer.module.ts +18 -0
- package/src/lib/components/notifications/components/notification-item/notification-item.component.html +45 -0
- package/src/lib/components/notifications/components/notification-item/notification-item.component.scss +60 -0
- package/src/lib/components/notifications/components/notification-item/notification-item.component.ts +136 -0
- package/src/lib/components/notifications/components/notification-options/notification-options.component.html +7 -0
- package/src/lib/components/notifications/components/notification-options/notification-options.component.scss +7 -0
- package/src/lib/components/notifications/components/notification-options/notification-options.component.ts +16 -0
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.html +66 -0
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.scss +62 -0
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.spec.ts +25 -0
- package/src/lib/components/notifications/components/notification-toast/notification-toast.component.ts +55 -0
- package/src/lib/components/notifications/components/notifications-button/notifications-button.component.html +7 -0
- package/src/lib/components/notifications/components/notifications-button/notifications-button.component.scss +90 -0
- package/src/lib/components/notifications/components/notifications-button/notifications-button.component.ts +190 -0
- package/src/lib/components/notifications/components/notifications-list/notifications-list.component.html +55 -0
- package/src/lib/components/notifications/components/notifications-list/notifications-list.component.scss +108 -0
- package/src/lib/components/notifications/components/notifications-list/notifications-list.component.ts +161 -0
- package/src/lib/components/notifications/interceptors/token.interceptor.ts +37 -0
- package/src/lib/components/notifications/notifications.module.ts +67 -0
- package/src/lib/components/notifications/notifications.service.ts +300 -0
- package/src/lib/components/pagination/pagination/pagination.component.html +33 -0
- package/src/lib/components/pagination/pagination/pagination.component.scss +46 -0
- package/src/lib/components/pagination/pagination/pagination.component.spec.ts +25 -0
- package/src/lib/components/pagination/pagination/pagination.component.ts +132 -0
- package/src/lib/components/pagination/pagination.module.ts +21 -0
- package/src/lib/components/pdf-tron/pdf-tron.module.ts +16 -0
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.html +1 -0
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.scss +0 -0
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.spec.ts +25 -0
- package/src/lib/components/pdf-tron/pdftron/pdftron.component.ts +782 -0
- package/src/lib/components/pdf-tron/pdftron/pdftron.service.ts +236 -0
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.html +149 -0
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.scss +159 -0
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.spec.ts +25 -0
- package/src/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.ts +198 -0
- package/src/lib/components/permissions/permission.service.ts +151 -0
- package/src/lib/components/permissions/permissions/permissions.component.html +129 -0
- package/src/lib/components/permissions/permissions/permissions.component.scss +0 -0
- package/src/lib/components/permissions/permissions/permissions.component.spec.ts +25 -0
- package/src/lib/components/permissions/permissions/permissions.component.ts +227 -0
- package/src/lib/components/permissions/permissions-template/permissions-template.component.html +47 -0
- package/src/lib/components/permissions/permissions-template/permissions-template.component.scss +7 -0
- package/src/lib/components/permissions/permissions-template/permissions-template.component.spec.ts +25 -0
- package/src/lib/components/permissions/permissions-template/permissions-template.component.ts +104 -0
- package/src/lib/components/permissions/permissions.module.ts +39 -0
- package/src/lib/components/select/select/select.component.html +64 -0
- package/src/lib/components/select/select/select.component.scss +144 -0
- package/src/lib/components/select/select/select.component.spec.ts +25 -0
- package/src/lib/components/select/select/select.component.ts +116 -0
- package/src/lib/components/select/select.module.ts +22 -0
- package/src/lib/components/select-users-by-department/select-users-by-department.module.ts +27 -0
- package/src/lib/components/select-users-by-department/select-users-by-departments/department-management.service.ts +27 -0
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.html +88 -0
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.scss +15 -0
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.spec.ts +25 -0
- package/src/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.ts +105 -0
- package/src/lib/components/table/dynamic-column/dynamic-column.component.ts +79 -0
- package/src/lib/components/table/table/table.component.html +377 -0
- package/src/lib/components/table/table/table.component.scss +507 -0
- package/src/lib/components/table/table/table.component.spec.ts +25 -0
- package/src/lib/components/table/table/table.component.ts +195 -0
- package/src/lib/components/table/table.module.ts +35 -0
- package/src/lib/components/user/user/user.component.html +15 -0
- package/src/lib/components/user/user/user.component.scss +0 -0
- package/src/lib/components/user/user/user.component.spec.ts +25 -0
- package/src/lib/components/user/user/user.component.ts +19 -0
- package/src/lib/components/user/user.module.ts +18 -0
- package/src/lib/components/users-card/users-card.component.html +20 -0
- package/src/lib/components/users-card/users-card.component.scss +16 -0
- package/src/lib/components/users-card/users-card.component.ts +30 -0
- package/src/lib/components/users-card/users-card.module.ts +19 -0
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.html +9 -0
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.scss +12 -0
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.spec.ts +25 -0
- package/src/lib/components/viewer-log/components/viewer-log/viewer-log.component.ts +25 -0
- package/src/lib/components/viewer-log/viewer-log.module.ts +12 -0
- package/src/lib/components/vocabulary/interfaces/op-type.interface.ts +4 -0
- package/src/lib/components/vocabulary/services/vocabulary-api.service.ts +46 -0
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.html +12 -0
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.scss +0 -0
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.spec.ts +25 -0
- package/src/lib/components/vocabulary/vocabulary/vocabulary.component.ts +80 -0
- package/src/lib/components/vocabulary/vocabulary.module.ts +20 -0
- package/src/lib/configuration/app-config.service.ts +26 -0
- package/src/lib/configuration/configuration.module.ts +12 -0
- package/src/lib/configuration/helpers/app-initializer.ts +5 -0
- package/src/lib/directive/app-has-role/app-has-role.directive.ts +62 -0
- package/src/lib/directive/clickOutSide/click-outside.directive.ts +20 -0
- package/src/lib/directive/directive.module.ts +36 -0
- package/src/lib/directive/drag-and-drop/drag-and-drop.directive.ts +37 -0
- package/src/lib/directive/permissions/evaluators.service.ts +148 -0
- package/src/lib/directive/permissions/permissions.directive.ts +74 -0
- package/src/lib/directive/rtl/set-dir-rtl.directive.ts +25 -0
- package/src/lib/directive/rtl/set-rtl.directive.ts +26 -0
- package/src/lib/nuxeo-development-framework.component.ts +20 -0
- package/src/lib/nuxeo-development-framework.module.ts +31 -0
- package/src/lib/nuxeo-development-framework.service.ts +9 -0
- package/src/lib/pipes/file-size.pipe.ts +61 -0
- package/src/lib/pipes/hijri-date.pipe.ts +40 -0
- package/src/lib/pipes/localized-date.pipe.ts +80 -0
- package/src/lib/pipes/multi-value.pipe.ts +39 -0
- package/src/lib/pipes/pipes.module.ts +20 -0
- package/src/lib/pipes/secure-html.pipe.ts +27 -0
- package/src/lib/pipes/secure.pipe.ts +37 -0
- package/src/lib/pipes/time-ago.pipe.ts +68 -0
- package/src/lib/shared/components/button/button.component.html +13 -0
- package/src/lib/shared/components/button/button.component.scss +102 -0
- package/src/lib/shared/components/button/button.component.spec.ts +25 -0
- package/src/lib/shared/components/button/button.component.ts +87 -0
- package/src/lib/shared/components/item-list/item-list.component.html +37 -0
- package/src/lib/shared/components/item-list/item-list.component.scss +62 -0
- package/src/lib/shared/components/item-list/item-list.component.spec.ts +25 -0
- package/src/lib/shared/components/item-list/item-list.component.ts +69 -0
- package/src/lib/shared/components/no-data/no-data.component.html +3 -0
- package/src/lib/shared/components/no-data/no-data.component.scss +13 -0
- package/src/lib/shared/components/no-data/no-data.component.spec.ts +25 -0
- package/src/lib/shared/components/no-data/no-data.component.ts +26 -0
- package/src/lib/shared/components/read-more/read-more.component.ts +86 -0
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.html +24 -0
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.scss +50 -0
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.spec.ts +25 -0
- package/src/lib/shared/components/search-autocomplete/search-autocomplete.component.ts +153 -0
- package/src/lib/shared/components/spinner/spinner.component.html +10 -0
- package/src/lib/shared/components/spinner/spinner.component.scss +11 -0
- package/src/lib/shared/components/spinner/spinner.component.spec.ts +25 -0
- package/src/lib/shared/components/spinner/spinner.component.ts +25 -0
- package/src/lib/shared/components/user-card/user-card.component.html +21 -0
- package/src/lib/shared/components/user-card/user-card.component.scss +42 -0
- package/src/lib/shared/components/user-card/user-card.component.spec.ts +25 -0
- package/src/lib/shared/components/user-card/user-card.component.ts +42 -0
- package/src/lib/shared/libraryShared.module.ts +47 -0
- package/src/lib/shared-services/dialog-mangment.service.ts +62 -0
- package/src/lib/shared-services/dynamic-form.service.ts +252 -0
- package/src/lib/shared-services/file-manager.adapter.ts +69 -0
- package/src/lib/shared-services/file-manager.service.ts +1073 -0
- package/src/lib/shared-services/global-pdftron.service.ts +50 -0
- package/src/lib/shared-services/mainfolder.service.ts +220 -0
- package/src/lib/shared-services/publishing-document.service.ts +242 -0
- package/src/lib/shared-services/recently-viewed.service.ts +55 -0
- package/src/lib/shared-services/shared-docs.service.ts +173 -0
- package/src/lib/shared-services/shared-services.module.ts +12 -0
- package/src/lib/shared-services/upload-file.service.ts +26 -0
- package/src/lib/shared-services/upload-managment.service.ts +148 -0
- package/src/lib/shared-services/user.service.ts +49 -0
- package/src/public-api.ts +274 -0
- package/src/test.ts +26 -0
- package/tsconfig.doc.json +4 -0
- package/tsconfig.lib.json +21 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/nuxeo-development-framework.umd.js +0 -29331
- package/bundles/nuxeo-development-framework.umd.js.map +0 -1
- package/esm2015/lib/Core/adapters/adapter.service.js +0 -50
- package/esm2015/lib/Core/core.module.js +0 -107
- package/esm2015/lib/Core/enums/language.enum.js +0 -6
- package/esm2015/lib/Core/models/component.model.js +0 -8
- package/esm2015/lib/Core/services/callApi/call-api.service.js +0 -33
- package/esm2015/lib/Core/services/extension/action.extensions.js +0 -9
- package/esm2015/lib/Core/services/extension/component-register.service.js +0 -25
- package/esm2015/lib/Core/services/extension/extenion-utils.js +0 -115
- package/esm2015/lib/Core/services/extension/extension-element.js +0 -2
- package/esm2015/lib/Core/services/extension/extension-loader.service.js +0 -127
- package/esm2015/lib/Core/services/extension/extension.service.js +0 -120
- package/esm2015/lib/Core/services/initialization/initialization.service.js +0 -57
- package/esm2015/lib/Core/services/localStorag/local-storag.service.js +0 -123
- package/esm2015/lib/Core/services/nuxeo/nuxeo-override.js +0 -82
- package/esm2015/lib/Core/services/nuxeo/nuxeo.service.js +0 -120
- package/esm2015/lib/Core/services/roles/roles.service.js +0 -119
- package/esm2015/lib/Core/services/translation/translate-loader.service.js +0 -150
- package/esm2015/lib/Core/services/translation/translation.service.js +0 -174
- package/esm2015/lib/Core/services/user/user-preferences.service.js +0 -153
- package/esm2015/lib/Core/utilities/moment-date-adapter.js +0 -178
- package/esm2015/lib/Core/utilities/utility.service.js +0 -81
- package/esm2015/lib/components/activities-log/activities-log/activities-log.component.js +0 -84
- package/esm2015/lib/components/activities-log/activities-log/activities-log.service.js +0 -35
- package/esm2015/lib/components/activities-log/activities-log.module.js +0 -30
- package/esm2015/lib/components/activity/activity/activity.component.js +0 -28
- package/esm2015/lib/components/activity/activity.module.js +0 -37
- package/esm2015/lib/components/attachment-item/attachment-item/attachment-item.component.js +0 -54
- package/esm2015/lib/components/attachment-item/attachment-item.module.js +0 -44
- package/esm2015/lib/components/attachment-modal/attachment-modal.module.js +0 -40
- package/esm2015/lib/components/attachment-modal/attachments/attachments.component.js +0 -157
- package/esm2015/lib/components/avatar/avatar/avatar.component.js +0 -55
- package/esm2015/lib/components/avatar/avatar.module.js +0 -32
- package/esm2015/lib/components/card/card.component.js +0 -48
- package/esm2015/lib/components/card/card.module.js +0 -23
- package/esm2015/lib/components/comments/comments.module.js +0 -82
- package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +0 -86
- package/esm2015/lib/components/comments/components/comments-dashlet/comments-dashlet.component.js +0 -81
- package/esm2015/lib/components/comments/components/comments-list/comments-list.component.js +0 -73
- package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +0 -63
- package/esm2015/lib/components/comments/constants/comment.js +0 -25
- package/esm2015/lib/components/comments/services/comment-api.service.js +0 -71
- package/esm2015/lib/components/confirm-caller/confirm-caller.dialog.js +0 -75
- package/esm2015/lib/components/confirm-caller/confirm-caller.module.js +0 -27
- package/esm2015/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.js +0 -29
- package/esm2015/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.js +0 -30
- package/esm2015/lib/components/confirmation-dialog/confirmation-dialog.module.js +0 -30
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.js +0 -137
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.js +0 -133
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +0 -110
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.js +0 -68
- package/esm2015/lib/components/correspondence-relation/components/versions/versions.component.js +0 -75
- package/esm2015/lib/components/correspondence-relation/correspondence-relation.module.js +0 -111
- package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +0 -153
- package/esm2015/lib/components/correspondence-relation/services/viewer-files.service.js +0 -50
- package/esm2015/lib/components/create-entity/create-entity/create-entity.component.js +0 -69
- package/esm2015/lib/components/create-entity/create-entity.module.js +0 -36
- package/esm2015/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.js +0 -140
- package/esm2015/lib/components/cts-tags/cts-tags.module.js +0 -65
- package/esm2015/lib/components/cts-tags/services/tags-api.service.js +0 -90
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +0 -82
- package/esm2015/lib/components/custom-toastr/custom-toastr.module.js +0 -36
- package/esm2015/lib/components/custom-toastr/interfaces/toast-type.interface.js +0 -2
- package/esm2015/lib/components/custom-toastr/services/custom-toastr.service.js +0 -41
- package/esm2015/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.js +0 -44
- package/esm2015/lib/components/display-suitable-icon/display-suitable-icon/icon.service.js +0 -140
- package/esm2015/lib/components/display-suitable-icon/display-suitable-icon.module.js +0 -24
- package/esm2015/lib/components/documents/components/attachments-list/attachments-list.component.js +0 -156
- package/esm2015/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.js +0 -75
- package/esm2015/lib/components/documents/components/document-list/documents-list.component.js +0 -252
- package/esm2015/lib/components/documents/components/document-scan/document-scan.component.js +0 -974
- package/esm2015/lib/components/documents/components/document-scan/document-scan.service.js +0 -30
- package/esm2015/lib/components/documents/components/document-upload/document-upload.component.js +0 -159
- package/esm2015/lib/components/documents/components/documents/documents.component.js +0 -63
- package/esm2015/lib/components/documents/constants/document-templates.js +0 -32
- package/esm2015/lib/components/documents/constants/documents.js +0 -86
- package/esm2015/lib/components/documents/documents.module.js +0 -123
- package/esm2015/lib/components/documents/services/document-templates.service.js +0 -115
- package/esm2015/lib/components/documents/services/documents.service.js +0 -223
- package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +0 -391
- package/esm2015/lib/components/dynamic-chart/dynamic-chart.module.js +0 -34
- package/esm2015/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.js +0 -164
- package/esm2015/lib/components/dynamic-chart/services/chart-data.service.js +0 -552
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.js +0 -177
- package/esm2015/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.js +0 -43
- package/esm2015/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.js +0 -137
- package/esm2015/lib/components/dynamic-filter/dynamic-filter.module.js +0 -27
- package/esm2015/lib/components/dynamic-form/components/department-form/department-form.component.js +0 -130
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.js +0 -105
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/fields.adapter.js +0 -127
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/form-builder.service.js +0 -107
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.js +0 -35
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.js +0 -165
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.js +0 -71
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.js +0 -202
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.js +0 -78
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/constants/department.js +0 -13
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +0 -204
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +0 -203
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.js +0 -95
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.js +0 -85
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.js +0 -139
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.js +0 -81
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.js +0 -36
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.js +0 -106
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.js +0 -93
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.js +0 -207
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +0 -311
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.js +0 -44
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.js +0 -191
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.js +0 -81
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.js +0 -180
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.js +0 -279
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.js +0 -68
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +0 -314
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.js +0 -47
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.js +0 -178
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.js +0 -768
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.js +0 -35
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.js +0 -17
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.js +0 -34
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.js +0 -17
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.js +0 -74
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.formio.js +0 -30
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.js +0 -32
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.js +0 -30
- package/esm2015/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.js +0 -17
- package/esm2015/lib/components/dynamic-form/dynamic-form.module.js +0 -299
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.js +0 -2
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form.interfaces.js +0 -10
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-baseitem.model.js +0 -63
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-boolitem.model.js +0 -20
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-dateitem.model.js +0 -24
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.js +0 -12
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-mapitem.model.js +0 -16
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-selectitem.model.js +0 -17
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-textitem.model.js +0 -32
- package/esm2015/lib/components/dynamic-form/models/dynamic-form.models.js +0 -8
- package/esm2015/lib/components/dynamic-form/services/card-item-types.service.js +0 -46
- package/esm2015/lib/components/dynamic-form/services/dynamic-component-mapper.service.js +0 -60
- package/esm2015/lib/components/dynamic-form/services/dynamic-form-update.service.js +0 -83
- package/esm2015/lib/components/dynamic-form/validators/length-validator.js +0 -15
- package/esm2015/lib/components/dynamic-form/validators/regex-validator.js +0 -15
- package/esm2015/lib/components/dynamic-form/validators/required-validator.js +0 -9
- package/esm2015/lib/components/dynamic-form/validators/value-validator.js +0 -15
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +0 -323
- package/esm2015/lib/components/dynamic-search/dynamic-search.module.js +0 -61
- package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +0 -238
- package/esm2015/lib/components/dynamic-table/dynamic-table.module.js +0 -44
- package/esm2015/lib/components/dynamic-table/services/dynamic-table.service.js +0 -16
- package/esm2015/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.js +0 -39
- package/esm2015/lib/components/dynamic-tabs/dynamic-tabs.module.js +0 -34
- package/esm2015/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.js +0 -36
- package/esm2015/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.js +0 -59
- package/esm2015/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.js +0 -68
- package/esm2015/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.js +0 -33
- package/esm2015/lib/components/dynamic-view/data-viewer/data-viewer.component.js +0 -33
- package/esm2015/lib/components/dynamic-view/date-viewer/date-viewer.component.js +0 -55
- package/esm2015/lib/components/dynamic-view/department-viewer/department-viewer.component.js +0 -89
- package/esm2015/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.js +0 -61
- package/esm2015/lib/components/dynamic-view/dynamic-view.module.js +0 -69
- package/esm2015/lib/components/dynamic-view/dynamic-viewe.service.js +0 -62
- package/esm2015/lib/components/dynamic-view/list-viewer/list-viewer.component.js +0 -40
- package/esm2015/lib/components/file-manger/components/add-to-collection/add-to-collection.component.js +0 -132
- package/esm2015/lib/components/file-manger/components/clipboard/clipboard.component.js +0 -264
- package/esm2015/lib/components/file-manger/components/copy/copy.component.js +0 -121
- package/esm2015/lib/components/file-manger/components/create-directory/create-directory.component.js +0 -91
- package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +0 -455
- package/esm2015/lib/components/file-manger/components/creation-type/creation-type.component.js +0 -26
- package/esm2015/lib/components/file-manger/components/delete/delete.component.js +0 -74
- package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +0 -114
- package/esm2015/lib/components/file-manger/components/loan-request/loan-request.component.js +0 -80
- package/esm2015/lib/components/file-manger/components/move/move.component.js +0 -110
- package/esm2015/lib/components/file-manger/components/publish-dialog/publish-dialog.component.js +0 -108
- package/esm2015/lib/components/file-manger/components/rename/rename.component.js +0 -86
- package/esm2015/lib/components/file-manger/components/scan-modal/scan-modal.component.js +0 -314
- package/esm2015/lib/components/file-manger/components/share-dialog/share-dialog.component.js +0 -294
- package/esm2015/lib/components/file-manger/components/sidepanel/sidepanel.component.js +0 -257
- package/esm2015/lib/components/file-manger/components/template-modal/template-modal.component.js +0 -64
- package/esm2015/lib/components/file-manger/components/transfer-doc/transfer-doc.component.js +0 -71
- package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +0 -358
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +0 -1035
- package/esm2015/lib/components/file-manger/file-manger.module.js +0 -295
- package/esm2015/lib/components/filter/filter/filter.component.js +0 -94
- package/esm2015/lib/components/filter/filter.module.js +0 -45
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.js +0 -123
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.js +0 -126
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.js +0 -165
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.js +0 -32
- package/esm2015/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.js +0 -58
- package/esm2015/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.js +0 -71
- package/esm2015/lib/components/hijri-gregorian-datepicker/services/date-helper.service.js +0 -30
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.js +0 -43
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.js +0 -26
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/consts.js +0 -5
- package/esm2015/lib/components/latest-activity/components/activity-line/activity-line.component.js +0 -75
- package/esm2015/lib/components/latest-activity/components/latest-activity/latest-activity.component.js +0 -70
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +0 -27
- package/esm2015/lib/components/latest-activity/constants/activitylog.js +0 -80
- package/esm2015/lib/components/latest-activity/latest-activity.module.js +0 -57
- package/esm2015/lib/components/latest-activity/services/activity-log.service.js +0 -33
- package/esm2015/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.js +0 -51
- package/esm2015/lib/components/mutiple-dynamic-form-viewer/mutiple-dynamic-form-viewer.module.js +0 -30
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +0 -137
- package/esm2015/lib/components/notifications/components/notification-options/notification-options.component.js +0 -22
- package/esm2015/lib/components/notifications/components/notification-toast/notification-toast.component.js +0 -57
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +0 -172
- package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +0 -164
- package/esm2015/lib/components/notifications/notifications.module.js +0 -109
- package/esm2015/lib/components/notifications/notifications.service.js +0 -280
- package/esm2015/lib/components/pagination/pagination/pagination.component.js +0 -124
- package/esm2015/lib/components/pagination/pagination.module.js +0 -32
- package/esm2015/lib/components/pdf-tron/pdf-tron.module.js +0 -24
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +0 -745
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.service.js +0 -239
- package/esm2015/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.js +0 -177
- package/esm2015/lib/components/permissions/permission.service.js +0 -118
- package/esm2015/lib/components/permissions/permissions/permissions.component.js +0 -232
- package/esm2015/lib/components/permissions/permissions-template/permissions-template.component.js +0 -117
- package/esm2015/lib/components/permissions/permissions.module.js +0 -71
- package/esm2015/lib/components/select/select/select.component.js +0 -130
- package/esm2015/lib/components/select/select.module.js +0 -37
- package/esm2015/lib/components/select-users-by-department/select-users-by-department.module.js +0 -47
- package/esm2015/lib/components/select-users-by-department/select-users-by-departments/department-management.service.js +0 -27
- package/esm2015/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.js +0 -116
- package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +0 -64
- package/esm2015/lib/components/table/table/table.component.js +0 -227
- package/esm2015/lib/components/table/table.module.js +0 -61
- package/esm2015/lib/components/user/user/user.component.js +0 -31
- package/esm2015/lib/components/user/user.module.js +0 -30
- package/esm2015/lib/components/users-card/users-card.component.js +0 -43
- package/esm2015/lib/components/users-card/users-card.module.js +0 -28
- package/esm2015/lib/components/viewer-log/components/viewer-log/viewer-log.component.js +0 -33
- package/esm2015/lib/components/viewer-log/viewer-log.module.js +0 -20
- package/esm2015/lib/components/vocabulary/interfaces/op-type.interface.js +0 -2
- package/esm2015/lib/components/vocabulary/services/vocabulary-api.service.js +0 -49
- package/esm2015/lib/components/vocabulary/vocabulary/vocabulary.component.js +0 -106
- package/esm2015/lib/components/vocabulary/vocabulary.module.js +0 -34
- package/esm2015/lib/configuration/app-config.service.js +0 -30
- package/esm2015/lib/configuration/helpers/app-initializer.js +0 -4
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +0 -61
- package/esm2015/lib/directive/clickOutSide/click-outside.directive.js +0 -29
- package/esm2015/lib/directive/directive.module.js +0 -52
- package/esm2015/lib/directive/drag-and-drop/drag-and-drop.directive.js +0 -46
- package/esm2015/lib/directive/permissions/evaluators.service.js +0 -152
- package/esm2015/lib/directive/permissions/permissions.directive.js +0 -69
- package/esm2015/lib/directive/rtl/set-dir-rtl.directive.js +0 -28
- package/esm2015/lib/directive/rtl/set-rtl.directive.js +0 -29
- package/esm2015/lib/nuxeo-development-framework.component.js +0 -26
- package/esm2015/lib/nuxeo-development-framework.module.js +0 -50
- package/esm2015/lib/nuxeo-development-framework.service.js +0 -14
- package/esm2015/lib/pipes/file-size.pipe.js +0 -57
- package/esm2015/lib/pipes/hijri-date.pipe.js +0 -46
- package/esm2015/lib/pipes/localized-date.pipe.js +0 -81
- package/esm2015/lib/pipes/multi-value.pipe.js +0 -42
- package/esm2015/lib/pipes/pipes.module.js +0 -29
- package/esm2015/lib/pipes/secure-html.pipe.js +0 -34
- package/esm2015/lib/pipes/secure.pipe.js +0 -40
- package/esm2015/lib/pipes/time-ago.pipe.js +0 -68
- package/esm2015/lib/shared/components/button/button.component.js +0 -87
- package/esm2015/lib/shared/components/item-list/item-list.component.js +0 -77
- package/esm2015/lib/shared/components/no-data/no-data.component.js +0 -37
- package/esm2015/lib/shared/components/read-more/read-more.component.js +0 -108
- package/esm2015/lib/shared/components/search-autocomplete/search-autocomplete.component.js +0 -146
- package/esm2015/lib/shared/components/spinner/spinner.component.js +0 -29
- package/esm2015/lib/shared/components/user-card/user-card.component.js +0 -49
- package/esm2015/lib/shared/libraryShared.module.js +0 -81
- package/esm2015/lib/shared-services/dialog-mangment.service.js +0 -61
- package/esm2015/lib/shared-services/dynamic-form.service.js +0 -241
- package/esm2015/lib/shared-services/file-manager.adapter.js +0 -74
- package/esm2015/lib/shared-services/file-manager.service.js +0 -792
- package/esm2015/lib/shared-services/global-pdftron.service.js +0 -46
- package/esm2015/lib/shared-services/mainfolder.service.js +0 -162
- package/esm2015/lib/shared-services/publishing-document.service.js +0 -202
- package/esm2015/lib/shared-services/recently-viewed.service.js +0 -57
- package/esm2015/lib/shared-services/shared-docs.service.js +0 -135
- package/esm2015/lib/shared-services/shared-services.module.js +0 -20
- package/esm2015/lib/shared-services/upload-file.service.js +0 -29
- package/esm2015/lib/shared-services/upload-managment.service.js +0 -151
- package/esm2015/lib/shared-services/user.service.js +0 -54
- package/esm2015/nuxeo-development-framework.js +0 -5
- package/esm2015/public-api.js +0 -237
- package/fesm2015/nuxeo-development-framework.js +0 -27318
- package/fesm2015/nuxeo-development-framework.js.map +0 -1
- package/lib/Core/adapters/adapter.service.d.ts +0 -11
- package/lib/Core/core.module.d.ts +0 -14
- package/lib/Core/enums/language.enum.d.ts +0 -4
- package/lib/Core/models/component.model.d.ts +0 -6
- package/lib/Core/services/callApi/call-api.service.d.ts +0 -11
- package/lib/Core/services/extension/action.extensions.d.ts +0 -31
- package/lib/Core/services/extension/component-register.service.d.ts +0 -17
- package/lib/Core/services/extension/extenion-utils.d.ts +0 -14
- package/lib/Core/services/extension/extension-element.d.ts +0 -5
- package/lib/Core/services/extension/extension-loader.service.d.ts +0 -28
- package/lib/Core/services/extension/extension.service.d.ts +0 -70
- package/lib/Core/services/initialization/initialization.service.d.ts +0 -14
- package/lib/Core/services/localStorag/local-storag.service.d.ts +0 -41
- package/lib/Core/services/nuxeo/nuxeo-override.d.ts +0 -8
- package/lib/Core/services/nuxeo/nuxeo.service.d.ts +0 -33
- package/lib/Core/services/roles/roles.service.d.ts +0 -12
- package/lib/Core/services/translation/translate-loader.service.d.ts +0 -26
- package/lib/Core/services/translation/translation.service.d.ts +0 -74
- package/lib/Core/services/user/user-preferences.service.d.ts +0 -80
- package/lib/Core/utilities/moment-date-adapter.d.ts +0 -37
- package/lib/Core/utilities/utility.service.d.ts +0 -11
- package/lib/components/activities-log/activities-log/activities-log.component.d.ts +0 -23
- package/lib/components/activities-log/activities-log/activities-log.service.d.ts +0 -9
- package/lib/components/activities-log/activities-log.module.d.ts +0 -10
- package/lib/components/activity/activity/activity.component.d.ts +0 -13
- package/lib/components/activity/activity.module.d.ts +0 -13
- package/lib/components/attachment-item/attachment-item/attachment-item.component.d.ts +0 -21
- package/lib/components/attachment-item/attachment-item.module.d.ts +0 -13
- package/lib/components/attachment-modal/attachment-modal.module.d.ts +0 -12
- package/lib/components/attachment-modal/attachments/attachments.component.d.ts +0 -50
- package/lib/components/avatar/avatar/avatar.component.d.ts +0 -23
- package/lib/components/avatar/avatar.module.d.ts +0 -13
- package/lib/components/card/card.component.d.ts +0 -32
- package/lib/components/card/card.module.d.ts +0 -12
- package/lib/components/comments/comments.module.d.ts +0 -26
- package/lib/components/comments/components/comment-item/comment-item.component.d.ts +0 -24
- package/lib/components/comments/components/comments-dashlet/comments-dashlet.component.d.ts +0 -46
- package/lib/components/comments/components/comments-list/comments-list.component.d.ts +0 -28
- package/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.d.ts +0 -22
- package/lib/components/comments/constants/comment.d.ts +0 -25
- package/lib/components/comments/services/comment-api.service.d.ts +0 -16
- package/lib/components/confirm-caller/confirm-caller.dialog.d.ts +0 -46
- package/lib/components/confirm-caller/confirm-caller.module.d.ts +0 -16
- package/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.d.ts +0 -12
- package/lib/components/confirmation-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +0 -12
- package/lib/components/confirmation-dialog/confirmation-dialog.module.d.ts +0 -10
- package/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.d.ts +0 -34
- package/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.d.ts +0 -42
- package/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.d.ts +0 -31
- package/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.d.ts +0 -18
- package/lib/components/correspondence-relation/components/versions/versions.component.d.ts +0 -38
- package/lib/components/correspondence-relation/correspondence-relation.module.d.ts +0 -30
- package/lib/components/correspondence-relation/services/correspondence-realation.service.d.ts +0 -26
- package/lib/components/correspondence-relation/services/viewer-files.service.d.ts +0 -18
- package/lib/components/create-entity/create-entity/create-entity.component.d.ts +0 -17
- package/lib/components/create-entity/create-entity.module.d.ts +0 -11
- package/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.d.ts +0 -38
- package/lib/components/cts-tags/cts-tags.module.d.ts +0 -21
- package/lib/components/cts-tags/services/tags-api.service.d.ts +0 -17
- package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +0 -30
- package/lib/components/custom-toastr/custom-toastr.module.d.ts +0 -12
- package/lib/components/custom-toastr/interfaces/toast-type.interface.d.ts +0 -1
- package/lib/components/custom-toastr/services/custom-toastr.service.d.ts +0 -18
- package/lib/components/display-suitable-icon/display-suitable-icon/display-suitable-icon.component.d.ts +0 -17
- package/lib/components/display-suitable-icon/display-suitable-icon/icon.service.d.ts +0 -8
- package/lib/components/display-suitable-icon/display-suitable-icon.module.d.ts +0 -8
- package/lib/components/documents/components/attachments-list/attachments-list.component.d.ts +0 -54
- package/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.d.ts +0 -38
- package/lib/components/documents/components/document-list/documents-list.component.d.ts +0 -81
- package/lib/components/documents/components/document-scan/document-scan.component.d.ts +0 -112
- package/lib/components/documents/components/document-scan/document-scan.service.d.ts +0 -14
- package/lib/components/documents/components/document-upload/document-upload.component.d.ts +0 -58
- package/lib/components/documents/components/documents/documents.component.d.ts +0 -27
- package/lib/components/documents/constants/document-templates.d.ts +0 -33
- package/lib/components/documents/constants/documents.d.ts +0 -95
- package/lib/components/documents/documents.module.d.ts +0 -33
- package/lib/components/documents/services/document-templates.service.d.ts +0 -24
- package/lib/components/documents/services/documents.service.d.ts +0 -36
- package/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.d.ts +0 -66
- package/lib/components/dynamic-chart/dynamic-chart.module.d.ts +0 -16
- package/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.d.ts +0 -33
- package/lib/components/dynamic-chart/services/chart-data.service.d.ts +0 -37
- package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer/dynamic-fields-renderer.component.d.ts +0 -137
- package/lib/components/dynamic-fields-renderer/dynamic-fields-renderer.module.d.ts +0 -12
- package/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.d.ts +0 -55
- package/lib/components/dynamic-filter/dynamic-filter.module.d.ts +0 -17
- package/lib/components/dynamic-form/components/department-form/department-form.component.d.ts +0 -28
- package/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.d.ts +0 -27
- package/lib/components/dynamic-form/components/dynamic-form/fields.adapter.d.ts +0 -6
- package/lib/components/dynamic-form/components/dynamic-form/form-builder.service.d.ts +0 -21
- package/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.d.ts +0 -17
- package/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.d.ts +0 -57
- package/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.d.ts +0 -35
- package/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.d.ts +0 -70
- package/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.d.ts +0 -52
- package/lib/components/dynamic-form/components/dynamic-form-department/constants/department.d.ts +0 -12
- package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +0 -76
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +0 -29
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.d.ts +0 -21
- package/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.d.ts +0 -30
- package/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.d.ts +0 -64
- package/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.d.ts +0 -25
- package/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.d.ts +0 -15
- package/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.d.ts +0 -45
- package/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.d.ts +0 -41
- package/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.d.ts +0 -65
- package/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.d.ts +0 -85
- package/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.d.ts +0 -13
- package/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.d.ts +0 -80
- package/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.d.ts +0 -40
- package/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.d.ts +0 -71
- package/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.d.ts +0 -89
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.d.ts +0 -19
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +0 -104
- package/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.d.ts +0 -16
- package/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.d.ts +0 -79
- package/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.d.ts +0 -599
- package/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.d.ts +0 -13
- package/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.d.ts +0 -2
- package/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.d.ts +0 -13
- package/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.d.ts +0 -2
- package/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.component.d.ts +0 -16
- package/lib/components/dynamic-form/components/form-wrappers/user-selector-wrapper/user-selector-wrapper.formio.d.ts +0 -2
- package/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.d.ts +0 -13
- package/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.d.ts +0 -2
- package/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.d.ts +0 -9
- package/lib/components/dynamic-form/dynamic-form.module.d.ts +0 -66
- package/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.d.ts +0 -5
- package/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.d.ts +0 -5
- package/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.d.ts +0 -15
- package/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.d.ts +0 -4
- package/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.d.ts +0 -12
- package/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.d.ts +0 -8
- package/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.d.ts +0 -10
- package/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.d.ts +0 -5
- package/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.d.ts +0 -8
- package/lib/components/dynamic-form/models/dynamic-form-baseitem.model.d.ts +0 -21
- package/lib/components/dynamic-form/models/dynamic-form-boolitem.model.d.ts +0 -11
- package/lib/components/dynamic-form/models/dynamic-form-dateitem.model.d.ts +0 -13
- package/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.d.ts +0 -9
- package/lib/components/dynamic-form/models/dynamic-form-mapitem.model.d.ts +0 -8
- package/lib/components/dynamic-form/models/dynamic-form-selectitem.model.d.ts +0 -11
- package/lib/components/dynamic-form/models/dynamic-form-textitem.model.d.ts +0 -15
- package/lib/components/dynamic-form/services/card-item-types.service.d.ts +0 -13
- package/lib/components/dynamic-form/services/dynamic-component-mapper.service.d.ts +0 -36
- package/lib/components/dynamic-form/services/dynamic-form-update.service.d.ts +0 -25
- package/lib/components/dynamic-form/validators/length-validator.d.ts +0 -7
- package/lib/components/dynamic-form/validators/regex-validator.d.ts +0 -7
- package/lib/components/dynamic-form/validators/required-validator.d.ts +0 -5
- package/lib/components/dynamic-form/validators/value-validator.d.ts +0 -7
- package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +0 -98
- package/lib/components/dynamic-search/dynamic-search.module.d.ts +0 -20
- package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +0 -108
- package/lib/components/dynamic-table/dynamic-table.module.d.ts +0 -16
- package/lib/components/dynamic-table/services/dynamic-table.service.d.ts +0 -8
- package/lib/components/dynamic-tabs/dynamic-tabs/dynamic-tabs.component.d.ts +0 -13
- package/lib/components/dynamic-tabs/dynamic-tabs.module.d.ts +0 -11
- package/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.d.ts +0 -13
- package/lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component.d.ts +0 -22
- package/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.d.ts +0 -28
- package/lib/components/dynamic-view/cutome-voc-viewer/cutome-voc-viewer.component.d.ts +0 -16
- package/lib/components/dynamic-view/data-viewer/data-viewer.component.d.ts +0 -12
- package/lib/components/dynamic-view/date-viewer/date-viewer.component.d.ts +0 -22
- package/lib/components/dynamic-view/department-viewer/department-viewer.component.d.ts +0 -30
- package/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.d.ts +0 -37
- package/lib/components/dynamic-view/dynamic-view.module.d.ts +0 -23
- package/lib/components/dynamic-view/dynamic-viewe.service.d.ts +0 -15
- package/lib/components/dynamic-view/list-viewer/list-viewer.component.d.ts +0 -20
- package/lib/components/file-manger/components/add-to-collection/add-to-collection.component.d.ts +0 -31
- package/lib/components/file-manger/components/clipboard/clipboard.component.d.ts +0 -41
- package/lib/components/file-manger/components/copy/copy.component.d.ts +0 -33
- package/lib/components/file-manger/components/create-directory/create-directory.component.d.ts +0 -24
- package/lib/components/file-manger/components/create-modal/create-modal.component.d.ts +0 -108
- package/lib/components/file-manger/components/creation-type/creation-type.component.d.ts +0 -11
- package/lib/components/file-manger/components/delete/delete.component.d.ts +0 -24
- package/lib/components/file-manger/components/folder-modal/folder-modal.component.d.ts +0 -56
- package/lib/components/file-manger/components/loan-request/loan-request.component.d.ts +0 -23
- package/lib/components/file-manger/components/move/move.component.d.ts +0 -33
- package/lib/components/file-manger/components/publish-dialog/publish-dialog.component.d.ts +0 -32
- package/lib/components/file-manger/components/rename/rename.component.d.ts +0 -24
- package/lib/components/file-manger/components/scan-modal/scan-modal.component.d.ts +0 -95
- package/lib/components/file-manger/components/share-dialog/share-dialog.component.d.ts +0 -58
- package/lib/components/file-manger/components/sidepanel/sidepanel.component.d.ts +0 -62
- package/lib/components/file-manger/components/template-modal/template-modal.component.d.ts +0 -34
- package/lib/components/file-manger/components/transfer-doc/transfer-doc.component.d.ts +0 -23
- package/lib/components/file-manger/components/update-modal/update-modal.component.d.ts +0 -194
- package/lib/components/file-manger/file-manager.abstract.d.ts +0 -173
- package/lib/components/file-manger/file-manger.module.d.ts +0 -59
- package/lib/components/filter/filter/filter.component.d.ts +0 -31
- package/lib/components/filter/filter.module.d.ts +0 -15
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.d.ts +0 -35
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.d.ts +0 -35
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.d.ts +0 -39
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.d.ts +0 -9
- package/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.d.ts +0 -15
- package/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.d.ts +0 -15
- package/lib/components/hijri-gregorian-datepicker/services/date-helper.service.d.ts +0 -9
- package/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.d.ts +0 -11
- package/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.d.ts +0 -10
- package/lib/components/hijri-gregorian-datepicker/utils/consts.d.ts +0 -4
- package/lib/components/latest-activity/components/activity-line/activity-line.component.d.ts +0 -19
- package/lib/components/latest-activity/components/latest-activity/latest-activity.component.d.ts +0 -22
- package/lib/components/latest-activity/components/single-activity/single-activity.component.d.ts +0 -10
- package/lib/components/latest-activity/constants/activitylog.d.ts +0 -82
- package/lib/components/latest-activity/latest-activity.module.d.ts +0 -19
- package/lib/components/latest-activity/services/activity-log.service.d.ts +0 -12
- package/lib/components/mutiple-dynamic-form-viewer/multiple-dynamic-form-viewer/multiple-dynamic-form-viewer.component.d.ts +0 -17
- package/lib/components/mutiple-dynamic-form-viewer/mutiple-dynamic-form-viewer.module.d.ts +0 -10
- package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +0 -25
- package/lib/components/notifications/components/notification-options/notification-options.component.d.ts +0 -10
- package/lib/components/notifications/components/notification-toast/notification-toast.component.d.ts +0 -19
- package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +0 -30
- package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +0 -51
- package/lib/components/notifications/notifications.module.d.ts +0 -24
- package/lib/components/notifications/notifications.service.d.ts +0 -64
- package/lib/components/pagination/pagination/pagination.component.d.ts +0 -46
- package/lib/components/pagination/pagination.module.d.ts +0 -13
- package/lib/components/pdf-tron/pdf-tron.module.d.ts +0 -8
- package/lib/components/pdf-tron/pdftron/pdftron.component.d.ts +0 -102
- package/lib/components/pdf-tron/pdftron/pdftron.service.d.ts +0 -33
- package/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.d.ts +0 -44
- package/lib/components/permissions/permission.service.d.ts +0 -21
- package/lib/components/permissions/permissions/permissions.component.d.ts +0 -48
- package/lib/components/permissions/permissions-template/permissions-template.component.d.ts +0 -22
- package/lib/components/permissions/permissions.module.d.ts +0 -21
- package/lib/components/select/select/select.component.d.ts +0 -43
- package/lib/components/select/select.module.d.ts +0 -12
- package/lib/components/select-users-by-department/select-users-by-department.module.d.ts +0 -13
- package/lib/components/select-users-by-department/select-users-by-departments/department-management.service.d.ts +0 -10
- package/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.d.ts +0 -33
- package/lib/components/table/dynamic-column/dynamic-column.component.d.ts +0 -19
- package/lib/components/table/table/table.component.d.ts +0 -108
- package/lib/components/table/table.module.d.ts +0 -20
- package/lib/components/user/user/user.component.d.ts +0 -13
- package/lib/components/user/user.module.d.ts +0 -10
- package/lib/components/users-card/users-card.component.d.ts +0 -22
- package/lib/components/users-card/users-card.module.d.ts +0 -17
- package/lib/components/viewer-log/components/viewer-log/viewer-log.component.d.ts +0 -12
- package/lib/components/viewer-log/viewer-log.module.d.ts +0 -10
- package/lib/components/vocabulary/interfaces/op-type.interface.d.ts +0 -1
- package/lib/components/vocabulary/services/vocabulary-api.service.d.ts +0 -16
- package/lib/components/vocabulary/vocabulary/vocabulary.component.d.ts +0 -37
- package/lib/components/vocabulary/vocabulary.module.d.ts +0 -11
- package/lib/configuration/app-config.service.d.ts +0 -14
- package/lib/configuration/helpers/app-initializer.d.ts +0 -2
- package/lib/directive/app-has-role/app-has-role.directive.d.ts +0 -18
- package/lib/directive/clickOutSide/click-outside.directive.d.ts +0 -11
- package/lib/directive/directive.module.d.ts +0 -17
- package/lib/directive/drag-and-drop/drag-and-drop.directive.d.ts +0 -11
- package/lib/directive/permissions/evaluators.service.d.ts +0 -37
- package/lib/directive/permissions/permissions.directive.d.ts +0 -42
- package/lib/directive/rtl/set-dir-rtl.directive.d.ts +0 -13
- package/lib/directive/rtl/set-rtl.directive.d.ts +0 -13
- package/lib/nuxeo-development-framework.component.d.ts +0 -8
- package/lib/nuxeo-development-framework.module.d.ts +0 -13
- package/lib/nuxeo-development-framework.service.d.ts +0 -6
- package/lib/pipes/file-size.pipe.d.ts +0 -34
- package/lib/pipes/hijri-date.pipe.d.ts +0 -32
- package/lib/pipes/localized-date.pipe.d.ts +0 -44
- package/lib/pipes/multi-value.pipe.d.ts +0 -32
- package/lib/pipes/pipes.module.d.ts +0 -18
- package/lib/pipes/secure-html.pipe.d.ts +0 -26
- package/lib/pipes/secure.pipe.d.ts +0 -29
- package/lib/pipes/time-ago.pipe.d.ts +0 -34
- package/lib/shared/components/button/button.component.d.ts +0 -38
- package/lib/shared/components/item-list/item-list.component.d.ts +0 -45
- package/lib/shared/components/no-data/no-data.component.d.ts +0 -21
- package/lib/shared/components/read-more/read-more.component.d.ts +0 -37
- package/lib/shared/components/search-autocomplete/search-autocomplete.component.d.ts +0 -51
- package/lib/shared/components/spinner/spinner.component.d.ts +0 -18
- package/lib/shared/components/user-card/user-card.component.d.ts +0 -30
- package/lib/shared/libraryShared.module.d.ts +0 -26
- package/lib/shared-services/dialog-mangment.service.d.ts +0 -15
- package/lib/shared-services/dynamic-form.service.d.ts +0 -24
- package/lib/shared-services/file-manager.adapter.d.ts +0 -48
- package/lib/shared-services/file-manager.service.d.ts +0 -93
- package/lib/shared-services/global-pdftron.service.d.ts +0 -10
- package/lib/shared-services/mainfolder.service.d.ts +0 -32
- package/lib/shared-services/publishing-document.service.d.ts +0 -25
- package/lib/shared-services/recently-viewed.service.d.ts +0 -17
- package/lib/shared-services/shared-docs.service.d.ts +0 -21
- package/lib/shared-services/shared-services.module.d.ts +0 -7
- package/lib/shared-services/upload-file.service.d.ts +0 -10
- package/lib/shared-services/upload-managment.service.d.ts +0 -72
- package/lib/shared-services/user.service.d.ts +0 -12
- package/nuxeo-development-framework.d.ts +0 -5
- package/public-api.d.ts +0 -224
- /package/{lib/components/dynamic-form/interfaces/dynamic-form.interfaces.d.ts → src/lib/components/dynamic-form/interfaces/dynamic-form.interfaces.ts} +0 -0
- /package/{lib/components/dynamic-form/models/dynamic-form.models.d.ts → src/lib/components/dynamic-form/models/dynamic-form.models.ts} +0 -0
package/esm2015/lib/components/dynamic-form/components/department-form/department-form.component.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { Component, Inject } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
3
|
-
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/material/dialog";
|
|
6
|
-
import * as i2 from "../../../custom-toastr/services/custom-toastr.service";
|
|
7
|
-
import * as i3 from "../dynamic-form-department/services/department-api.service";
|
|
8
|
-
import * as i4 from "../dynamic-form-textitem/dynamic-form-textitem.component";
|
|
9
|
-
import * as i5 from "../dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component";
|
|
10
|
-
import * as i6 from "../dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component";
|
|
11
|
-
import * as i7 from "../../../../shared/components/button/button.component";
|
|
12
|
-
import * as i8 from "../../../../directive/rtl/set-dir-rtl.directive";
|
|
13
|
-
import * as i9 from "@angular/forms";
|
|
14
|
-
import * as i10 from "@angular/common";
|
|
15
|
-
import * as i11 from "@ngx-translate/core";
|
|
16
|
-
export class DepartmentFormComponent {
|
|
17
|
-
constructor(data, dialogRef, toastr, departmentManagementService) {
|
|
18
|
-
this.data = data;
|
|
19
|
-
this.dialogRef = dialogRef;
|
|
20
|
-
this.toastr = toastr;
|
|
21
|
-
this.departmentManagementService = departmentManagementService;
|
|
22
|
-
this.loading = false;
|
|
23
|
-
this.updateMode = false;
|
|
24
|
-
this.departmentForm = new FormGroup({
|
|
25
|
-
title: new FormControl(null, [Validators.required, Validators.pattern(new RegExp("^\\S*$"))]),
|
|
26
|
-
agencyCode: new FormControl('tdf', Validators.required),
|
|
27
|
-
arabicName: new FormControl(null, Validators.required),
|
|
28
|
-
englishName: new FormControl(null, Validators.required),
|
|
29
|
-
deptTypee: new FormControl(null, Validators.required),
|
|
30
|
-
description: new FormControl(null),
|
|
31
|
-
isAllowRecExternal: new FormControl(false),
|
|
32
|
-
// manager: new FormControl(null),
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
ngOnInit() {
|
|
36
|
-
this.depId = this.data.depId;
|
|
37
|
-
this.updateMode = this.data.updateMode;
|
|
38
|
-
this.depCode = this.data.depCode;
|
|
39
|
-
this.item = this.data.item;
|
|
40
|
-
if (this.updateMode) {
|
|
41
|
-
this.getDepartment();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
filterNullValues(formValue) {
|
|
45
|
-
const filtered = {};
|
|
46
|
-
for (let key in formValue) {
|
|
47
|
-
if (formValue[key]) {
|
|
48
|
-
filtered[key] = formValue[key];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return filtered;
|
|
52
|
-
}
|
|
53
|
-
save() {
|
|
54
|
-
this.loading = true;
|
|
55
|
-
const depObj = this.filterNullValues(this.departmentForm.value);
|
|
56
|
-
if (this.depId === 'root') {
|
|
57
|
-
this.departmentManagementService.createDepartmentInRoot(depObj).subscribe((res) => {
|
|
58
|
-
this.loading = false;
|
|
59
|
-
this.dialogRef.close(true);
|
|
60
|
-
this.toastr.show('success', 'success', 'success');
|
|
61
|
-
}, (err) => {
|
|
62
|
-
this.loading = false;
|
|
63
|
-
this.dialogRef.close(false);
|
|
64
|
-
this.toastr.show('error', 'error', err.ret.message ?
|
|
65
|
-
`errors.${err.ret.code}`
|
|
66
|
-
: 'genericError');
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this.departmentManagementService
|
|
71
|
-
.createDepartment(depObj, this.depId)
|
|
72
|
-
.subscribe((res) => {
|
|
73
|
-
this.loading = false;
|
|
74
|
-
this.dialogRef.close(true);
|
|
75
|
-
this.toastr.show('success', 'success', 'success');
|
|
76
|
-
}, (err) => {
|
|
77
|
-
this.loading = false;
|
|
78
|
-
this.toastr.show('error', 'error', err.ret.message ?
|
|
79
|
-
`errors.${err.ret.code}`
|
|
80
|
-
: 'genericError');
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
departmentFormPopulate(department) {
|
|
85
|
-
this.departmentForm.patchValue({
|
|
86
|
-
title: department.title,
|
|
87
|
-
arabicName: department.arabicName,
|
|
88
|
-
englishName: department.englishName,
|
|
89
|
-
deptTypee: department.deptTypee,
|
|
90
|
-
description: department.description,
|
|
91
|
-
isAllowRecExternal: department.isAllowRecExternal,
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
getDepartment() {
|
|
95
|
-
this.departmentManagementService
|
|
96
|
-
.getDepartment(this.depId)
|
|
97
|
-
.subscribe((res) => {
|
|
98
|
-
this.departmentFormPopulate(res.properties);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
update() {
|
|
102
|
-
this.loading = true;
|
|
103
|
-
this.departmentManagementService
|
|
104
|
-
.updateDepartment(this.departmentForm.value, this.depId)
|
|
105
|
-
.subscribe((res) => {
|
|
106
|
-
this.loading = false;
|
|
107
|
-
this.dialogRef.close(true);
|
|
108
|
-
this.toastr.show('success', 'success', 'success');
|
|
109
|
-
}, (err) => {
|
|
110
|
-
this.loading = false;
|
|
111
|
-
this.toastr.show('error', 'error', err.ret.message ?
|
|
112
|
-
`errors.${err.ret.code}`
|
|
113
|
-
: 'genericError');
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
DepartmentFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DepartmentFormComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.CustomToastrService }, { token: i3.DepartmentApiService }], target: i0.ɵɵFactoryTarget.Component });
|
|
118
|
-
DepartmentFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DepartmentFormComponent, selector: "cts-department-form", ngImport: i0, template: "<div SetDirRtl class=\"voc-form\">\r\n <div class=\"voc-form-hedaer\">\r\n {{\r\n \"department_management.form.\" + (updateMode ? \"updateHeader\" : \"header\")\r\n | translate\r\n }}\r\n </div>\r\n <form [formGroup]=\"departmentForm\" class=\"row voc-form-body\">\r\n <div class=\"col-lg-6 col-12\">\r\n <app-dynamic-form-textitem\r\n formControlName=\"title\"\r\n [label]=\"'department_management.form.title'\"\r\n [disabled]=\"updateMode\"\r\n [preventSpace]=\"true\"\r\n ></app-dynamic-form-textitem>\r\n <div class=\"hint-msg\">{{ \"department_management.form.hintMsg\" | translate }}</div>\r\n </div>\r\n <!-- <app-dynamic-form-textitem\r\n class=\"col-lg-6 col-12\"\r\n formControlName=\"agencyCode\"\r\n [label]=\"'department_management.form.AgencyCode'\"\r\n ></app-dynamic-form-textitem> -->\r\n <app-dynamic-form-textitem\r\n class=\"col-lg-6 col-12\"\r\n formControlName=\"arabicName\"\r\n [label]=\"'department_management.form.ArabicName'\"\r\n ></app-dynamic-form-textitem>\r\n <app-dynamic-form-textitem\r\n class=\"col-lg-6 col-12\"\r\n formControlName=\"englishName\"\r\n [label]=\"'department_management.form.EnglishName'\"\r\n ></app-dynamic-form-textitem>\r\n <app-dynamic-form-vocabulary-item\r\n class=\"col-lg-6 col-12\"\r\n [label]=\"'department_management.form.deptTypee'\"\r\n [bindLabel]=\"'label'\"\r\n [bindValue]=\"'id'\"\r\n placeholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\"\r\n [multiple]=\"false\"\r\n [searchable]=\"false\"\r\n [closeOnSelect]=\"true\"\r\n [hideSelectedItems]=\"false\"\r\n [vocabularyType]=\"'VOC_DepartmentType'\"\r\n formControlName=\"deptTypee\"\r\n >\r\n </app-dynamic-form-vocabulary-item>\r\n <app-dynamic-form-textitem\r\n class=\"col-lg-6 col-12\"\r\n formControlName=\"description\"\r\n [label]=\"'department_management.form.Description'\"\r\n ></app-dynamic-form-textitem>\r\n <!-- <cts-dynamic-form-select-users\r\n class=\"col-lg-6 col-12\"\r\n formControlName=\"manager\"\r\n [bindValue]=\"\"\r\n [bindLabel]=\"\"\r\n [label]=\"'department_management.form.Manager'\"\r\n [deptTitle]=\"'all'\"\r\n [bindValue]=\"'properties.username'\"\r\n ></cts-dynamic-form-select-users> -->\r\n\r\n <cts-dynamic-form-slide-toggleitem\r\n class=\"col-lg-6 col-12 isAllowRecExternal\"\r\n formControlName=\"isAllowRecExternal\"\r\n [label]=\"'department_management.form.isAllowRecExternal'\"\r\n ></cts-dynamic-form-slide-toggleitem>\r\n </form>\r\n <div class=\"button-group d-flex flex-row-reverse\">\r\n <cts-button\r\n [theme]=\"'danger'\"\r\n size=\"'regular'\"\r\n class=\"voc-form-close\"\r\n mat-dialog-close\r\n >\r\n {{ \"BUTTONS.CLOSE\" | translate }}\r\n </cts-button>\r\n <cts-button\r\n *ngIf=\"!updateMode\"\r\n [loading]=\"loading\"\r\n size=\"'regular'\"\r\n [theme]=\"'primary'\"\r\n class=\"voc-form-submit\"\r\n (onClick)=\"save()\"\r\n [disabled]=\"departmentForm.invalid\"\r\n >\r\n {{ \"BUTTONS.SAVE\" | translate }}\r\n </cts-button>\r\n <cts-button\r\n *ngIf=\"updateMode\"\r\n [loading]=\"loading\"\r\n size=\"'regular'\"\r\n [theme]=\"'primary'\"\r\n class=\"voc-form-submit\"\r\n (onClick)=\"update()\"\r\n [disabled]=\"departmentForm.invalid\"\r\n >\r\n {{ \"BUTTONS.UPDATE\" | translate }}\r\n </cts-button>\r\n </div>\r\n</div>\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.voc-form{padding:20px}.voc-form .hint-msg{font-size:12px;font-style:italic;margin-top:2px;color:#6a768e}.voc-form .voc-form-hedaer{margin-bottom:8px;font-size:20px;color:#465573}.voc-form .button-group{margin-top:12px;grid-column-gap:6px!important;column-gap:6px!important}.voc-form .button-group cts-button{width:16%}@media (max-width: 992px){.voc-form .button-group cts-button{width:20%}}@media only screen and (max-width: 768px){.voc-form .button-group cts-button{width:28%}}.voc-form .isAllowRecExternal{display:flex;align-items:center;margin-top:26px;overflow:hidden}@media only screen and (max-width: 768px){.voc-form .isAllowRecExternal{font-size:12px}}\n"], components: [{ type: i4.DynamicFormTextItemComponent, selector: "app-dynamic-form-textitem", inputs: ["autoComplete", "nativeAutoComplete", "autoComplete_pageProvider", "autoComplete_propertyName", "autoComplete_propertyKey", "autoCompleteValueKey", "autoCompleteType", "type", "property", "label", "editable", "placeholder", "disabled", "displayEmpty", "preventSpace", "id"] }, { type: i5.DynamicFormVocabularyItemComponent, selector: "app-dynamic-form-vocabulary-item", inputs: ["bindValue", "bindLabel", "placeholder", "multiple", "searchable", "closeOnSelect", "hideSelectedItems", "disabled", "vocabularyType", "label", "cacheable", "shwoAllValues"], outputs: ["onSelecting"] }, { type: i6.DynamicFormSlideToggleitemComponent, selector: "cts-dynamic-form-slide-toggleitem", inputs: ["label", "disabled", "checked", "theme"], outputs: ["onToggle"] }, { type: i7.ButtonComponent, selector: "cts-button", inputs: ["disabled", "loading", "size", "theme"], outputs: ["onClick"] }], directives: [{ type: i8.SetDirRtlDirective, selector: "[SetDirRtl]" }, { type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i11.TranslatePipe } });
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DepartmentFormComponent, decorators: [{
|
|
120
|
-
type: Component,
|
|
121
|
-
args: [{
|
|
122
|
-
selector: 'cts-department-form',
|
|
123
|
-
templateUrl: './department-form.component.html',
|
|
124
|
-
styleUrls: ['./department-form.component.scss'],
|
|
125
|
-
}]
|
|
126
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
127
|
-
type: Inject,
|
|
128
|
-
args: [MAT_DIALOG_DATA]
|
|
129
|
-
}] }, { type: i1.MatDialogRef }, { type: i2.CustomToastrService }, { type: i3.DepartmentApiService }]; } });
|
|
130
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwYXJ0bWVudC1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtL2NvbXBvbmVudHMvZGVwYXJ0bWVudC1mb3JtL2RlcGFydG1lbnQtZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN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WJsZWRdPVwiZGVwYXJ0bWVudEZvcm0uaW52YWxpZFwiXHJcbiAgICA+XHJcbiAgICAgIHt7IFwiQlVUVE9OUy5TQVZFXCIgfCB0cmFuc2xhdGUgfX1cclxuICAgIDwvY3RzLWJ1dHRvbj5cclxuICAgIDxjdHMtYnV0dG9uXHJcbiAgICAgICpuZ0lmPVwidXBkYXRlTW9kZVwiXHJcbiAgICAgIFtsb2FkaW5nXT1cImxvYWRpbmdcIlxyXG4gICAgICBzaXplPVwiJ3JlZ3VsYXInXCJcclxuICAgICAgW3RoZW1lXT1cIidwcmltYXJ5J1wiXHJcbiAgICAgIGNsYXNzPVwidm9jLWZvcm0tc3VibWl0XCJcclxuICAgICAgKG9uQ2xpY2spPVwidXBkYXRlKClcIlxyXG4gICAgICBbZGlzYWJsZWRdPVwiZGVwYXJ0bWVudEZvcm0uaW52YWxpZFwiXHJcbiAgICA+XHJcbiAgICAgIHt7IFwiQlVUVE9OUy5VUERBVEVcIiB8IHRyYW5zbGF0ZSB9fVxyXG4gICAgPC9jdHMtYnV0dG9uPlxyXG4gIDwvZGl2PlxyXG48L2Rpdj5cclxuIl19
|
package/esm2015/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { Utils } from 'formiojs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./form-builder.service";
|
|
5
|
-
import * as i2 from "@ngx-translate/core";
|
|
6
|
-
import * as i3 from "angular-formio";
|
|
7
|
-
/** @ignore */
|
|
8
|
-
export class DynamicFormComponent {
|
|
9
|
-
constructor(formBuilderServic, translate) {
|
|
10
|
-
this.formBuilderServic = formBuilderServic;
|
|
11
|
-
this.translate = translate;
|
|
12
|
-
this.form = {};
|
|
13
|
-
this.data = null;
|
|
14
|
-
this.readOnly = false;
|
|
15
|
-
this.change = new EventEmitter();
|
|
16
|
-
this.submission = {};
|
|
17
|
-
// tslint:disable-next-line:no-output-native
|
|
18
|
-
this.renderOptions = {};
|
|
19
|
-
this.refresher = new EventEmitter();
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.langSubscription = this.translate.onLangChange.subscribe(event => {
|
|
23
|
-
this.refresher.emit(event.lang);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
ngOnChanges(changes) {
|
|
27
|
-
if (this.data) {
|
|
28
|
-
this.submission = {
|
|
29
|
-
data: this.formBuilderServic.adaptInDynamicFields(this.data)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const translations = {};
|
|
33
|
-
const translationsAr = {};
|
|
34
|
-
Utils.eachComponent(this.form.components, (comp) => {
|
|
35
|
-
translations[comp.label] = comp.label;
|
|
36
|
-
translations[comp.description] = comp.description;
|
|
37
|
-
translations[comp.tooltip] = comp.tooltip;
|
|
38
|
-
translationsAr[comp.label] = comp.labelAr;
|
|
39
|
-
translationsAr[comp.description] = comp.descriptionAr;
|
|
40
|
-
translationsAr[comp.tooltip] = comp.tooltipAr;
|
|
41
|
-
});
|
|
42
|
-
this.renderOptions = {
|
|
43
|
-
language: this.translate.currentLang,
|
|
44
|
-
i18n: {
|
|
45
|
-
ar: translationsAr,
|
|
46
|
-
en: translations
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
filterNullValues(formValue) {
|
|
51
|
-
const filtered = {};
|
|
52
|
-
for (let key in formValue) {
|
|
53
|
-
if (formValue[key]) {
|
|
54
|
-
filtered[key] = formValue[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return filtered;
|
|
58
|
-
}
|
|
59
|
-
ngOnDestroy() {
|
|
60
|
-
this.langSubscription ? this.langSubscription.unsubscribe() : '';
|
|
61
|
-
}
|
|
62
|
-
excuteFunction(event) {
|
|
63
|
-
// this.FormBuilderService.adaptOutDynamicFields(formChange.data);
|
|
64
|
-
// let data = event.data;
|
|
65
|
-
// let p = this.formBuilderServic.myPrefix;
|
|
66
|
-
// let myAdaptedData = {};
|
|
67
|
-
// // for ( let key in data){
|
|
68
|
-
// // data[this.formBuilderServic.myPrefix + key] = data[key];
|
|
69
|
-
// // delete data[key];
|
|
70
|
-
// // }
|
|
71
|
-
// Object.keys({...data}).map(key => {
|
|
72
|
-
// myAdaptedData[p + ':' + key] = data[key];
|
|
73
|
-
// })
|
|
74
|
-
// this.change.emit(myAdaptedData);
|
|
75
|
-
if (event.data) {
|
|
76
|
-
let myformValue = {
|
|
77
|
-
valid: event.isValid,
|
|
78
|
-
data: this.formBuilderServic.adaptOutDynamicFields(event.data),
|
|
79
|
-
originalEvent: event
|
|
80
|
-
};
|
|
81
|
-
let body = this.filterNullValues(myformValue);
|
|
82
|
-
this.change.emit(body);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
DynamicFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DynamicFormComponent, deps: [{ token: i1.FormBuilderService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
-
DynamicFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DynamicFormComponent, selector: "app-dynamic-form", inputs: { form: "form", data: "data", readOnly: "readOnly" }, outputs: { change: "change" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"container-fluid\">\r\n <formio [form]=\"form\" (change)=\"excuteFunction($event)\" [renderOptions]=\"renderOptions\" [language]=\"refresher\" [submission]=\"submission\"></formio>\r\n</div>\r\n", styles: [".app-property-list{padding:0 16px}.app-property-list.no-padding{padding:0}.app-property-list.no-padding .app-property-label{font-size:12px;word-wrap:break-word}.formio-component .formio-form .form-group .col-form-label{color:#646f85;font-size:13px}.formio-component .formio-form .form-group .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}\n"], components: [{ type: i3.FormioComponent, selector: "formio" }], encapsulation: i0.ViewEncapsulation.None });
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DynamicFormComponent, decorators: [{
|
|
89
|
-
type: Component,
|
|
90
|
-
args: [{
|
|
91
|
-
selector: 'app-dynamic-form',
|
|
92
|
-
templateUrl: './dynamic-form.component.html',
|
|
93
|
-
styleUrls: ['./dynamic-form.component.scss'],
|
|
94
|
-
encapsulation: ViewEncapsulation.None
|
|
95
|
-
}]
|
|
96
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilderService }, { type: i2.TranslateService }]; }, propDecorators: { form: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], data: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], readOnly: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], change: [{
|
|
103
|
-
type: Output
|
|
104
|
-
}] } });
|
|
105
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtL2R5bmFtaWMtZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9udXhlby1kZXZlbG9wbWVudC1mcmFtZXdvcmsvc3JjL2xpYi9jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9keW5hbWljLWZvcm0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNM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HJcbiAgICAgIGxldCBteWZvcm1WYWx1ZSA9IHtcclxuICAgICAgICB2YWxpZDogZXZlbnQuaXNWYWxpZCxcclxuICAgICAgICBkYXRhOiB0aGlzLmZvcm1CdWlsZGVyU2VydmljLmFkYXB0T3V0RHluYW1pY0ZpZWxkcyhldmVudC5kYXRhKSxcclxuICAgICAgICBvcmlnaW5hbEV2ZW50OiBldmVudFxyXG4gICAgICB9XHJcbiAgICAgIGxldCBib2R5ID0gdGhpcy5maWx0ZXJOdWxsVmFsdWVzKG15Zm9ybVZhbHVlKTtcclxuICAgICAgdGhpcy5jaGFuZ2UuZW1pdChib2R5KVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iLCI8ZGl2IGNsYXNzPVwiY29udGFpbmVyLWZsdWlkXCI+XHJcbiAgICA8Zm9ybWlvIFtmb3JtXT1cImZvcm1cIiAoY2hhbmdlKT1cImV4Y3V0ZUZ1bmN0aW9uKCRldmVudClcIiBbcmVuZGVyT3B0aW9uc109XCJyZW5kZXJPcHRpb25zXCIgW2xhbmd1YWdlXT1cInJlZnJlc2hlclwiIFtzdWJtaXNzaW9uXT1cInN1Ym1pc3Npb25cIj48L2Zvcm1pbz5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class FieldsAdapterService {
|
|
4
|
-
/* this.builderComponents = {
|
|
5
|
-
VOC_CorrespondenceCategory: {
|
|
6
|
-
title: 'Category',
|
|
7
|
-
icon: 'terminal',
|
|
8
|
-
schema: {
|
|
9
|
-
'customOptions.vocId': 'VOC_CorrespondenceCategory',
|
|
10
|
-
label: 'Category',
|
|
11
|
-
type: 'vocabulary',
|
|
12
|
-
fixedKey: 'VOC_CorrespondenceCategory',
|
|
13
|
-
input: true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
VOC_CorrespondenceClass: {
|
|
17
|
-
title: 'Correspondence Class',
|
|
18
|
-
icon: 'terminal',
|
|
19
|
-
schema: {
|
|
20
|
-
'customOptions.vocId': 'VOC_CorrespondenceClass',
|
|
21
|
-
label: 'Correspondence Class',
|
|
22
|
-
type: 'vocabulary',
|
|
23
|
-
fixedKey: 'VOC_CorrespondenceClass',
|
|
24
|
-
input: true
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
VOC_CorrespondenceClassfication: {
|
|
28
|
-
title: 'Correspondence Classfication',
|
|
29
|
-
icon: 'terminal',
|
|
30
|
-
schema: {
|
|
31
|
-
'customOptions.vocId': 'VOC_CorrespondenceClassfication',
|
|
32
|
-
label: 'Correspondence Classfication',
|
|
33
|
-
type: 'vocabulary',
|
|
34
|
-
fixedKey: 'VOC_CorrespondenceClassfication',
|
|
35
|
-
input: true
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
VOC_CorrespondenceDeliveryType: {
|
|
39
|
-
title: 'Correspondence Delivery Type',
|
|
40
|
-
icon: 'terminal',
|
|
41
|
-
schema: {
|
|
42
|
-
'customOptions.vocId': 'VOC_CorrespondenceDeliveryType',
|
|
43
|
-
label: 'Correspondence Delivery Type',
|
|
44
|
-
type: 'vocabulary',
|
|
45
|
-
fixedKey: 'VOC_CorrespondenceDeliveryType',
|
|
46
|
-
input: true
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
VOC_CorrespondencePriority: {
|
|
50
|
-
title: 'Correspondence Priority',
|
|
51
|
-
icon: 'terminal',
|
|
52
|
-
schema: {
|
|
53
|
-
'customOptions.vocId': 'VOC_CorrespondencePriority',
|
|
54
|
-
label: 'Correspondence Priority',
|
|
55
|
-
type: 'vocabulary',
|
|
56
|
-
fixedKey: 'VOC_CorrespondencePriority',
|
|
57
|
-
input: true
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
VOC_CorrespondenceSecrecyLevel: {
|
|
61
|
-
title: 'Correspondence Secrecy Level',
|
|
62
|
-
icon: 'terminal',
|
|
63
|
-
schema: {
|
|
64
|
-
'customOptions.vocId': 'VOC_CorrespondenceSecrecyLevel',
|
|
65
|
-
label: 'Correspondence Secrecy Level',
|
|
66
|
-
type: 'vocabulary',
|
|
67
|
-
fixedKey: 'VOC_CorrespondenceSecrecyLevel',
|
|
68
|
-
input: true
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};*/
|
|
72
|
-
adapt(fields) {
|
|
73
|
-
const builderComponents = {};
|
|
74
|
-
fields = Object.keys(fields).map(fieldKey => {
|
|
75
|
-
const constraints = fields[fieldKey].constraints ? fields[fieldKey].constraints : [];
|
|
76
|
-
const vocabularySearch = constraints.filter(item => item.name === 'directoryResolver');
|
|
77
|
-
const vocabulary = vocabularySearch.length ? vocabularySearch[0].parameters.directory : null;
|
|
78
|
-
const adaptedField = {
|
|
79
|
-
title: fieldKey,
|
|
80
|
-
icon: 'terminal',
|
|
81
|
-
schema: {
|
|
82
|
-
// 'validate.required': constraints.filter(item => item.name === 'NotNullConstraint').length > 0,
|
|
83
|
-
label: fieldKey,
|
|
84
|
-
type: '',
|
|
85
|
-
fixedKey: fieldKey,
|
|
86
|
-
input: true
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
switch (fields[fieldKey].type) {
|
|
90
|
-
case 'string':
|
|
91
|
-
adaptedField.schema.type = 'textfield';
|
|
92
|
-
if (vocabulary) {
|
|
93
|
-
adaptedField.schema.type = 'vocabulary';
|
|
94
|
-
adaptedField.schema['customOptions.vocId'] = vocabulary;
|
|
95
|
-
}
|
|
96
|
-
break;
|
|
97
|
-
case 'boolean':
|
|
98
|
-
adaptedField.schema.type = 'toggle';
|
|
99
|
-
break;
|
|
100
|
-
case 'string[]':
|
|
101
|
-
adaptedField.schema.type = 'textfield';
|
|
102
|
-
// tslint:disable-next-line:no-string-literal
|
|
103
|
-
adaptedField.schema['multiple'] = true;
|
|
104
|
-
break;
|
|
105
|
-
case 'long':
|
|
106
|
-
adaptedField.schema.type = 'number';
|
|
107
|
-
break;
|
|
108
|
-
case 'date':
|
|
109
|
-
adaptedField.schema.type = 'customdate';
|
|
110
|
-
}
|
|
111
|
-
return adaptedField;
|
|
112
|
-
});
|
|
113
|
-
fields.forEach(field => {
|
|
114
|
-
builderComponents[field.schema.fixedKey] = field;
|
|
115
|
-
});
|
|
116
|
-
return builderComponents;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
FieldsAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FieldsAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
120
|
-
FieldsAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FieldsAdapterService, providedIn: 'root' });
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FieldsAdapterService, decorators: [{
|
|
122
|
-
type: Injectable,
|
|
123
|
-
args: [{
|
|
124
|
-
providedIn: 'root'
|
|
125
|
-
}]
|
|
126
|
-
}] });
|
|
127
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGRzLmFkYXB0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9udXhlby1kZXZlbG9wbWVudC1mcmFtZXdvcmsvc3JjL2xpYi9jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9maWVsZHMuYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sb0JBQW9CO0lBRS9COzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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gICAgZmllbGRzLmZvckVhY2goZmllbGQgPT4ge1xyXG4gICAgICBidWlsZGVyQ29tcG9uZW50c1tmaWVsZC5zY2hlbWEuZml4ZWRLZXldID0gZmllbGQ7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiBidWlsZGVyQ29tcG9uZW50cztcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { from } from 'rxjs';
|
|
3
|
-
import { catchError, map } from 'rxjs/operators';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../../../Core/services/nuxeo/nuxeo.service";
|
|
6
|
-
import * as i2 from "../../../../configuration/app-config.service";
|
|
7
|
-
import * as i3 from "./fields.adapter";
|
|
8
|
-
export class FormBuilderService {
|
|
9
|
-
constructor(nuxeoService, configService, fieldsAdapter, environment) {
|
|
10
|
-
this.nuxeoService = nuxeoService;
|
|
11
|
-
this.configService = configService;
|
|
12
|
-
this.fieldsAdapter = fieldsAdapter;
|
|
13
|
-
this.environment = environment;
|
|
14
|
-
this.myPrefix = '';
|
|
15
|
-
this.dynamicFieldsOperations = this.configService.myConfiguration.dynamicForms.operations;
|
|
16
|
-
}
|
|
17
|
-
// getSchema(schema): Observable<any> {
|
|
18
|
-
// return from(this.nuxeoService.nuxeoClient.request(`/config/schemas/${schema}`)
|
|
19
|
-
// .get({
|
|
20
|
-
// headers: {
|
|
21
|
-
// 'fetch.schema': 'fields'
|
|
22
|
-
// }
|
|
23
|
-
// })).pipe(
|
|
24
|
-
// map((data: any) => this.fieldsAdapter.adapt(data.fields))
|
|
25
|
-
// );
|
|
26
|
-
// }
|
|
27
|
-
getSchemaComponents(type) {
|
|
28
|
-
return from(this.nuxeoService.nuxeoClient.request(`config/facets/${type}`)
|
|
29
|
-
.get({
|
|
30
|
-
headers: {
|
|
31
|
-
'fetch.schema': 'fields'
|
|
32
|
-
}
|
|
33
|
-
})).pipe(map((data) => {
|
|
34
|
-
this.myPrefix = data.schemas[0].prefix;
|
|
35
|
-
return this.fieldsAdapter.adapt(data.schemas[0].fields);
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
createFormJson(type, jsonObject) {
|
|
39
|
-
jsonObject['prefix'] = this.myPrefix;
|
|
40
|
-
return from(this.nuxeoService.nuxeoClient
|
|
41
|
-
.operation(this.dynamicFieldsOperations.createFormApi ? this.dynamicFieldsOperations.createFormApi : 'AC_UA_DynamicForm_Create', {
|
|
42
|
-
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
43
|
-
})
|
|
44
|
-
.context({
|
|
45
|
-
"schema": type,
|
|
46
|
-
"json": jsonObject
|
|
47
|
-
})
|
|
48
|
-
.execute()).pipe(catchError((err) => {
|
|
49
|
-
console.log(err);
|
|
50
|
-
throw err;
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
getDynamicForm(type) {
|
|
54
|
-
return from(this.nuxeoService.nuxeoClient
|
|
55
|
-
.operation(this.dynamicFieldsOperations.getFormJson, {
|
|
56
|
-
url: `${this.environment.nuxeo}${this.environment.customAutomation}`,
|
|
57
|
-
})
|
|
58
|
-
.context({
|
|
59
|
-
"schema": type
|
|
60
|
-
})
|
|
61
|
-
.execute({
|
|
62
|
-
headers: {
|
|
63
|
-
properties: '*',
|
|
64
|
-
},
|
|
65
|
-
})).pipe(map((res) => {
|
|
66
|
-
if (res.entries.length > 0) {
|
|
67
|
-
let myData = JSON.parse(res['entries'][0]['properties']['note:note']);
|
|
68
|
-
this.myPrefix = myData.prefix;
|
|
69
|
-
return myData;
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return '';
|
|
73
|
-
}
|
|
74
|
-
}), catchError((err) => {
|
|
75
|
-
console.log(err);
|
|
76
|
-
throw err;
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
adaptOutDynamicFields(data) {
|
|
80
|
-
let myAdaptedData = {};
|
|
81
|
-
Object.keys(Object.assign({}, data)).map(key => {
|
|
82
|
-
myAdaptedData[this.myPrefix + ':' + key] = data[key];
|
|
83
|
-
});
|
|
84
|
-
return myAdaptedData;
|
|
85
|
-
}
|
|
86
|
-
adaptInDynamicFields(data) {
|
|
87
|
-
let myAdaptedData = {};
|
|
88
|
-
Object.keys(Object.assign({}, data)).map(key => {
|
|
89
|
-
if (key.includes(this.myPrefix + ':')) {
|
|
90
|
-
myAdaptedData[key.replace(this.myPrefix + ':', '')] = data[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
return myAdaptedData;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
FormBuilderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FormBuilderService, deps: [{ token: i1.NuxeoService }, { token: i2.AppConfigService }, { token: i3.FieldsAdapterService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
97
|
-
FormBuilderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FormBuilderService, providedIn: 'root' });
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: FormBuilderService, decorators: [{
|
|
99
|
-
type: Injectable,
|
|
100
|
-
args: [{
|
|
101
|
-
providedIn: 'root'
|
|
102
|
-
}]
|
|
103
|
-
}], ctorParameters: function () { return [{ type: i1.NuxeoService }, { type: i2.AppConfigService }, { type: i3.FieldsAdapterService }, { type: undefined, decorators: [{
|
|
104
|
-
type: Inject,
|
|
105
|
-
args: ['environment']
|
|
106
|
-
}] }]; } });
|
|
107
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1idWlsZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9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IuYWRhcHQoZGF0YS5zY2hlbWFzWzBdLmZpZWxkcylcclxuICAgICAgfSlcclxuICAgICk7XHJcbiAgfVxyXG5cclxuICAgIGNyZWF0ZUZvcm1Kc29uKHR5cGUgLCBqc29uT2JqZWN0KXtcclxuICAgICAganNvbk9iamVjdFsncHJlZml4J109dGhpcy5teVByZWZpeDtcclxuICAgICAgcmV0dXJuIGZyb20oXHJcbiAgICAgICAgdGhpcy5udXhlb1NlcnZpY2UubnV4ZW9DbGllbnRcclxuICAgICAgICAgIC5vcGVyYXRpb24odGhpcy5keW5hbWljRmllbGRzT3BlcmF0aW9ucy5jcmVhdGVGb3JtQXBpID8gdGhpcy5keW5hbWljRmllbGRzT3BlcmF0aW9ucy5jcmVhdGVGb3JtQXBpIDogJ0FDX1VBX0R5bmFtaWNGb3JtX0NyZWF0ZScsIHtcclxuICAgICAgICAgICAgdXJsOiBgJHt0aGlzLmVudmlyb25tZW50Lm51eGVvfSR7dGhpcy5lbnZpcm9ubWVudC5jdXN0b21BdXRvbWF0aW9ufWAsXHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgICAgLmNvbnRleHQoe1xyXG4gICAgICAgICAgICBcInNjaGVtYVwiOnR5cGUsXHJcbiAgICAgICAgICAgIFwianNvblwiOmpzb25PYmplY3RcclxuICAgICAgICAgIH0pXHJcbiAgICAgICAgICAuZXhlY3V0ZSgpXHJcbiAgICAgICkucGlwZShcclxuICAgICAgICBjYXRjaEVycm9yKChlcnIpID0+IHtcclxuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XHJcbiAgICAgICAgICB0aHJvdyBlcnI7XHJcbiAgICAgICAgfSkpXHJcbiAgICBcclxuICB9XHJcblxyXG4gICAgZ2V0RHluYW1pY0Zvcm0odHlwZSkge1xyXG4gICAgICByZXR1cm4gZnJvbShcclxuICAgICAgICB0aGlzLm51eGVvU2VydmljZS5udXhlb0NsaWVudFxyXG4gICAgICAgICAgLm9wZXJhdGlvbih0aGlzLmR5bmFtaWNGaWVsZHNPcGVyYXRpb25zLmdldEZvcm1Kc29uLCB7XHJcbiAgICAgICAgICAgIHVybDogYCR7dGhpcy5lbnZpcm9ubWVudC5udXhlb30ke3RoaXMuZW52aXJvbm1lbnQuY3VzdG9tQXV0b21hdGlvbn1gLFxyXG4gICAgICAgICAgfSlcclxuICAgICAgICAgIC5jb250ZXh0KHtcclxuICAgICAgICAgICAgXCJzY2hlbWFcIjogdHlwZVxyXG4gICAgICAgICAgfSlcclxuICAgICAgICAgIC5leGVjdXRlKHtcclxuICAgICAgICAgICAgaGVhZGVyczoge1xyXG4gICAgICAgICAgICAgIHByb3BlcnRpZXM6ICcqJyxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgIH0pXHJcbiAgICAgICkucGlwZShcclxuICAgICAgICBtYXAoKHJlcyA6IGFueSkgPT4ge1xyXG4gICAgICAgICAgaWYocmVzLmVudHJpZXMubGVuZ3RoID4gMCl7XHJcbiAgICAgICAgICAgIGxldCBteURhdGEgPSAgSlNPTi5wYXJzZShyZXNbJ2VudHJpZXMnXVswXVsncHJvcGVydGllcyddWydub3RlOm5vdGUnXSk7XHJcbiAgICAgICAgICAgIHRoaXMubXlQcmVmaXggPSBteURhdGEucHJlZml4O1xyXG4gICAgICAgICAgICByZXR1cm4gbXlEYXRhO1xyXG4gICAgICAgICAgfWVsc2V7XHJcbiAgICAgICAgICAgIHJldHVybiAnJztcclxuICAgICAgICAgIH1cclxuICAgICAgICB9KSxcclxuICAgICAgICBjYXRjaEVycm9yKChlcnIpID0+IHtcclxuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XHJcbiAgICAgICAgICB0aHJvdyBlcnI7XHJcbiAgICAgICAgfSlcclxuICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICBhZGFwdE91dER5bmFtaWNGaWVsZHMoZGF0YSkge1xyXG4gICAgICBsZXQgbXlBZGFwdGVkRGF0YSA9IHt9O1xyXG5cclxuICAgICAgT2JqZWN0LmtleXMoey4uLmRhdGF9KS5tYXAoa2V5ID0+IHtcclxuICAgICAgICBteUFkYXB0ZWREYXRhW3RoaXMubXlQcmVmaXggKyAnOicgKyBrZXldID0gZGF0YVtrZXldO1xyXG4gICAgICB9KVxyXG5cclxuICAgICAgcmV0dXJuIG15QWRhcHRlZERhdGE7XHJcbiAgICB9XHJcbiAgICBcclxuICAgIGFkYXB0SW5EeW5hbWljRmllbGRzKGRhdGEpIHtcclxuICAgICAgbGV0IG15QWRhcHRlZERhdGEgPSB7fTtcclxuXHJcbiAgICAgIE9iamVjdC5rZXlzKHsuLi5kYXRhfSkubWFwKGtleSA9PiB7XHJcbiAgICAgICAgaWYoa2V5LmluY2x1ZGVzKHRoaXMubXlQcmVmaXggKyAnOicpKXtcclxuICAgICAgICAgIG15QWRhcHRlZERhdGFba2V5LnJlcGxhY2UodGhpcy5teVByZWZpeCsnOicsJycpXSA9IGRhdGFba2V5XTtcclxuICAgICAgICB9XHJcbiAgICAgIH0pXHJcblxyXG4gICAgICByZXR1cm4gbXlBZGFwdGVkRGF0YTtcclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../../services/dynamic-form-update.service";
|
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
|
5
|
-
import * as i3 from "@angular/material/checkbox";
|
|
6
|
-
import * as i4 from "@angular/common";
|
|
7
|
-
/** @ignore */
|
|
8
|
-
export class DynamicFormBoolItemComponent {
|
|
9
|
-
constructor(dynamicFormUpdateService, translate) {
|
|
10
|
-
this.dynamicFormUpdateService = dynamicFormUpdateService;
|
|
11
|
-
this.translate = translate;
|
|
12
|
-
}
|
|
13
|
-
isEditable() {
|
|
14
|
-
return this.editable && this.property.editable;
|
|
15
|
-
}
|
|
16
|
-
changed(change) {
|
|
17
|
-
//this.dynamicFormUpdateService.update(this.property, change.checked);
|
|
18
|
-
//this.property.value = change.checked;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
DynamicFormBoolItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DynamicFormBoolItemComponent, deps: [{ token: i1.DynamicFormUpdateService }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
DynamicFormBoolItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: DynamicFormBoolItemComponent, selector: "app-dynamic-form-boolitem", inputs: { property: "property", editable: "editable" }, ngImport: i0, template: "<ng-container *ngIf=\"!property.isEmpty() || isEditable()\">\r\n <div class=\"row gap\">\r\n\r\n <label class=\"col-sm-3\" for=\"formGroupInputSmall\">{{\r\n property.label | translate\r\n }}<span *ngIf=\"property.mandatory\" class=\"text-danger\">*</span></label>\r\n <div class=\"col-sm-9\">\r\n <mat-checkbox [required]=\"property.mandatory\" [attr.data-automation-id]=\"'card-boolean-' + property.key\"\r\n [attr.title]=\"'CORE.METADATA.ACTIONS.TOGGLE' | translate\" [checked]=\"property.displayValue\"\r\n [disabled]=\"!isEditable()\" (change)=\"changed($event)\">\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n</ng-container>\r\n", styles: [""], components: [{ type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2.TranslatePipe } });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0, type: DynamicFormBoolItemComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{
|
|
26
|
-
selector: 'app-dynamic-form-boolitem',
|
|
27
|
-
templateUrl: './dynamic-form-boolitem.component.html',
|
|
28
|
-
styleUrls: ['./dynamic-form-boolitem.component.scss']
|
|
29
|
-
}]
|
|
30
|
-
}], ctorParameters: function () { return [{ type: i1.DynamicFormUpdateService }, { type: i2.TranslateService }]; }, propDecorators: { property: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}], editable: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1mb3JtLWJvb2xpdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtL2NvbXBvbmVudHMvZHluYW1pYy1mb3JtLWJvb2xpdGVtL2R5bmFtaWMtZm9ybS1ib29saXRlbS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9udXhlby1kZXZlbG9wbWVudC1mcmFtZXdvcmsvc3JjL2xpYi9jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL2R5bmFtaWMtZm9ybS1ib29saXRlbS9keW5hbWljLWZvcm0tYm9vbGl0ZW0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7OztBQU1qRCxjQUFjO0FBT2QsTUFBTSxPQUFPLDRCQUE0QjtJQU92QyxZQUNVLHdCQUFrRCxFQUNuRCxTQUEyQjtRQUQxQiw2QkFBd0IsR0FBeEIsd0JBQXdCLENBQTBCO1FBQ25ELGNBQVMsR0FBVCxT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