nuxeo-development-framework 0.0.2 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/bundles/nuxeo-development-framework.umd.js +18534 -50
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/Core/adapters/adapter.service.js +50 -0
- package/esm2015/lib/Core/core.module.js +104 -0
- package/esm2015/lib/Core/enums/language.enum.js +6 -0
- package/esm2015/lib/Core/models/component.model.js +8 -0
- package/esm2015/lib/Core/services/callApi/call-api.service.js +33 -0
- package/esm2015/lib/Core/services/initialization/initialization.service.js +57 -0
- package/esm2015/lib/Core/services/localStorag/local-storag.service.js +123 -0
- package/esm2015/lib/Core/services/nuxeo/nuxeo-override.js +82 -0
- package/esm2015/lib/Core/services/nuxeo/nuxeo.service.js +120 -0
- package/esm2015/lib/Core/services/roles/roles.service.js +103 -0
- package/esm2015/lib/Core/services/translation/translate-loader.service.js +150 -0
- package/esm2015/lib/Core/services/translation/translation.service.js +171 -0
- package/esm2015/lib/Core/services/user/user-preferences.service.js +153 -0
- package/esm2015/lib/Core/utilities/moment-date-adapter.js +178 -0
- package/esm2015/lib/Core/utilities/utility.service.js +81 -0
- package/esm2015/lib/components/activity/activity/activity.component.js +28 -0
- package/esm2015/lib/components/activity/activity.module.js +37 -0
- package/esm2015/lib/components/avatar/avatar/avatar.component.js +55 -0
- package/esm2015/lib/components/avatar/avatar.module.js +32 -0
- package/esm2015/lib/components/card/card.component.js +48 -0
- package/esm2015/lib/components/card/card.module.js +23 -0
- package/esm2015/lib/components/comments/comments.module.js +76 -0
- package/esm2015/lib/components/comments/components/comment-item/comment-item.component.js +33 -0
- package/esm2015/lib/components/comments/components/comments-dashlet/comments-dashlet.component.js +78 -0
- package/esm2015/lib/components/comments/components/comments-list/comments-list.component.js +68 -0
- package/esm2015/lib/components/comments/constants/comment.js +25 -0
- package/esm2015/lib/components/comments/services/comment-api.service.js +49 -0
- package/esm2015/lib/components/confirm-caller/confirm-caller.dialog.js +73 -0
- package/esm2015/lib/components/confirm-caller/confirm-caller.module.js +27 -0
- package/esm2015/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.js +29 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.js +134 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.js +133 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.js +110 -0
- package/esm2015/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.js +49 -0
- package/esm2015/lib/components/correspondence-relation/components/versions/versions.component.js +61 -0
- package/esm2015/lib/components/correspondence-relation/correspondence-relation.module.js +111 -0
- package/esm2015/lib/components/correspondence-relation/services/correspondence-realation.service.js +115 -0
- package/esm2015/lib/components/correspondence-relation/services/viewer-files.service.js +50 -0
- package/esm2015/lib/components/create-entity/create-entity/create-entity.component.js +62 -0
- package/esm2015/lib/components/create-entity/create-entity.module.js +36 -0
- package/esm2015/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.js +73 -0
- package/esm2015/lib/components/cts-tags/cts-tags.module.js +65 -0
- package/esm2015/lib/components/cts-tags/services/tags-api.service.js +61 -0
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +82 -0
- package/esm2015/lib/components/custom-toastr/custom-toastr.module.js +36 -0
- package/esm2015/lib/components/custom-toastr/interfaces/toast-type.interface.js +2 -0
- package/esm2015/lib/components/custom-toastr/services/custom-toastr.service.js +41 -0
- package/esm2015/lib/components/documents/components/attachments-list/attachments-list.component.js +156 -0
- package/esm2015/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.js +72 -0
- package/esm2015/lib/components/documents/components/document-list/documents-list.component.js +255 -0
- package/esm2015/lib/components/documents/components/document-scan/document-scan.component.js +929 -0
- package/esm2015/lib/components/documents/components/document-upload/document-upload.component.js +159 -0
- package/esm2015/lib/components/documents/components/documents/documents.component.js +61 -0
- package/esm2015/lib/components/documents/constants/document-templates.js +32 -0
- package/esm2015/lib/components/documents/constants/documents.js +86 -0
- package/esm2015/lib/components/documents/documents.module.js +123 -0
- package/esm2015/lib/components/documents/services/document-templates.service.js +115 -0
- package/esm2015/lib/components/documents/services/documents.service.js +217 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +342 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-chart.module.js +34 -0
- package/esm2015/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.js +164 -0
- package/esm2015/lib/components/dynamic-chart/services/chart-data.service.js +542 -0
- package/esm2015/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.js +106 -0
- package/esm2015/lib/components/dynamic-filter/dynamic-filter.module.js +26 -0
- package/esm2015/lib/components/dynamic-form/components/department-form/department-form.component.js +124 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.js +94 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/fields.adapter.js +127 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/form-builder.service.js +102 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.js +35 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.js +165 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.js +71 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.js +202 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.js +78 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/constants/department.js +13 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +185 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.js +207 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.js +94 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.js +85 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.js +128 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.js +81 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.js +36 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.js +106 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.js +93 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.js +207 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +302 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.js +44 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.js +176 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.js +76 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.js +180 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.js +250 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.js +63 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +269 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.js +47 -0
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.js +172 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.js +768 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.js +35 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.js +17 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.js +34 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.js +17 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.js +38 -0
- package/esm2015/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.js +30 -0
- package/esm2015/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.js +17 -0
- package/esm2015/lib/components/dynamic-form/dynamic-form.module.js +289 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.js +2 -0
- package/esm2015/lib/components/dynamic-form/interfaces/dynamic-form.interfaces.js +10 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-baseitem.model.js +63 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-boolitem.model.js +20 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-dateitem.model.js +24 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.js +12 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-mapitem.model.js +16 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-selectitem.model.js +17 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form-textitem.model.js +32 -0
- package/esm2015/lib/components/dynamic-form/models/dynamic-form.models.js +8 -0
- package/esm2015/lib/components/dynamic-form/services/card-item-types.service.js +46 -0
- package/esm2015/lib/components/dynamic-form/services/dynamic-component-mapper.service.js +60 -0
- package/esm2015/lib/components/dynamic-form/services/dynamic-form-update.service.js +74 -0
- package/esm2015/lib/components/dynamic-form/validators/length-validator.js +15 -0
- package/esm2015/lib/components/dynamic-form/validators/regex-validator.js +15 -0
- package/esm2015/lib/components/dynamic-form/validators/required-validator.js +9 -0
- package/esm2015/lib/components/dynamic-form/validators/value-validator.js +15 -0
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +148 -0
- package/esm2015/lib/components/dynamic-search/dynamic-search.module.js +57 -0
- package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +204 -0
- package/esm2015/lib/components/dynamic-table/dynamic-table.module.js +44 -0
- package/esm2015/lib/components/dynamic-table/services/dynamic-table.service.js +16 -0
- package/esm2015/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.js +36 -0
- package/esm2015/lib/components/dynamic-view/data-viewer/data-viewer.component.js +32 -0
- package/esm2015/lib/components/dynamic-view/date-viewer/date-viewer.component.js +49 -0
- package/esm2015/lib/components/dynamic-view/department-viewer/department-viewer.component.js +71 -0
- package/esm2015/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.js +60 -0
- package/esm2015/lib/components/dynamic-view/dynamic-view.module.js +54 -0
- package/esm2015/lib/components/dynamic-view/list-viewer/list-viewer.component.js +40 -0
- package/esm2015/lib/components/filter/filter/filter.component.js +94 -0
- package/esm2015/lib/components/filter/filter.module.js +45 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.js +114 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.js +111 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.js +165 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.js +32 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.js +54 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.js +71 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/services/date-helper.service.js +25 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.js +43 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.js +26 -0
- package/esm2015/lib/components/hijri-gregorian-datepicker/utils/consts.js +5 -0
- package/esm2015/lib/components/latest-activity/components/activity-line/activity-line.component.js +75 -0
- package/esm2015/lib/components/latest-activity/components/latest-activity/latest-activity.component.js +70 -0
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +27 -0
- package/esm2015/lib/components/latest-activity/constants/activitylog.js +80 -0
- package/esm2015/lib/components/latest-activity/latest-activity.module.js +53 -0
- package/esm2015/lib/components/latest-activity/services/activity-log.service.js +33 -0
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +69 -0
- package/esm2015/lib/components/notifications/components/notification-options/notification-options.component.js +22 -0
- package/esm2015/lib/components/notifications/components/notification-toast/notification-toast.component.js +57 -0
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +129 -0
- package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +149 -0
- package/esm2015/lib/components/notifications/notifications.module.js +109 -0
- package/esm2015/lib/components/notifications/notifications.service.js +277 -0
- package/esm2015/lib/components/pagination/pagination/pagination.component.js +123 -0
- package/esm2015/lib/components/pagination/pagination.module.js +32 -0
- package/esm2015/lib/components/pdf-tron/pdf-tron.module.js +24 -0
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +228 -0
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.service.js +181 -0
- package/esm2015/lib/components/select/select/select.component.js +130 -0
- package/esm2015/lib/components/select/select.module.js +37 -0
- package/esm2015/lib/components/table/table/table.component.js +174 -0
- package/esm2015/lib/components/table/table.module.js +57 -0
- package/esm2015/lib/components/users-card/users-card.component.js +43 -0
- package/esm2015/lib/components/users-card/users-card.module.js +28 -0
- package/esm2015/lib/components/viewer-log/components/viewer-log/viewer-log.component.js +33 -0
- package/esm2015/lib/components/viewer-log/viewer-log.module.js +20 -0
- package/esm2015/lib/components/vocabulary/interfaces/op-type.interface.js +2 -0
- package/esm2015/lib/components/vocabulary/services/vocabulary-api.service.js +49 -0
- package/esm2015/lib/components/vocabulary/vocabulary/vocabulary.component.js +106 -0
- package/esm2015/lib/components/vocabulary/vocabulary.module.js +34 -0
- package/esm2015/lib/configuration/app-config.service.js +26 -0
- package/esm2015/lib/configuration/helpers/app-initializer.js +4 -0
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +61 -0
- package/esm2015/lib/directive/clickOutSide/click-outside.directive.js +29 -0
- package/esm2015/lib/directive/directive.module.js +48 -0
- package/esm2015/lib/directive/permissions/evaluators.service.js +118 -0
- package/esm2015/lib/directive/permissions/permissions.directive.js +106 -0
- package/esm2015/lib/directive/rtl/set-dir-rtl.directive.js +28 -0
- package/esm2015/lib/directive/rtl/set-rtl.directive.js +29 -0
- package/esm2015/lib/nuxeo-development-framework.component.js +26 -18
- package/esm2015/lib/nuxeo-development-framework.module.js +45 -16
- package/esm2015/lib/nuxeo-development-framework.service.js +14 -13
- package/esm2015/lib/pipes/file-size.pipe.js +57 -0
- package/esm2015/lib/pipes/hijri-date.pipe.js +46 -0
- package/esm2015/lib/pipes/localized-date.pipe.js +81 -0
- package/esm2015/lib/pipes/multi-value.pipe.js +42 -0
- package/esm2015/lib/pipes/pipes.module.js +29 -0
- package/esm2015/lib/pipes/secure-html.pipe.js +34 -0
- package/esm2015/lib/pipes/secure.pipe.js +40 -0
- package/esm2015/lib/pipes/time-ago.pipe.js +68 -0
- package/esm2015/lib/shared/components/button/button.component.js +87 -0
- package/esm2015/lib/shared/components/item-list/item-list.component.js +76 -0
- package/esm2015/lib/shared/components/no-data/no-data.component.js +37 -0
- package/esm2015/lib/shared/components/read-more/read-more.component.js +107 -0
- package/esm2015/lib/shared/components/search-autocomplete/search-autocomplete.component.js +144 -0
- package/esm2015/lib/shared/components/spinner/spinner.component.js +29 -0
- package/esm2015/lib/shared/components/user-card/user-card.component.js +49 -0
- package/esm2015/lib/shared/libraryShared.module.js +80 -0
- package/esm2015/nuxeo-development-framework.js +4 -4
- package/esm2015/public-api.js +156 -7
- package/fesm2015/nuxeo-development-framework.js +17027 -49
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/Core/adapters/adapter.service.d.ts +11 -0
- package/lib/Core/core.module.d.ts +14 -0
- package/lib/Core/enums/language.enum.d.ts +4 -0
- package/lib/Core/models/component.model.d.ts +6 -0
- package/lib/Core/services/callApi/call-api.service.d.ts +11 -0
- package/lib/Core/services/initialization/initialization.service.d.ts +14 -0
- package/lib/Core/services/localStorag/local-storag.service.d.ts +41 -0
- package/lib/Core/services/nuxeo/nuxeo-override.d.ts +8 -0
- package/lib/Core/services/nuxeo/nuxeo.service.d.ts +33 -0
- package/lib/Core/services/roles/roles.service.d.ts +11 -0
- package/lib/Core/services/translation/translate-loader.service.d.ts +26 -0
- package/lib/Core/services/translation/translation.service.d.ts +71 -0
- package/lib/Core/services/user/user-preferences.service.d.ts +80 -0
- package/lib/Core/utilities/moment-date-adapter.d.ts +37 -0
- package/lib/Core/utilities/utility.service.d.ts +11 -0
- package/lib/components/activity/activity/activity.component.d.ts +13 -0
- package/lib/components/activity/activity.module.d.ts +13 -0
- package/lib/components/avatar/avatar/avatar.component.d.ts +23 -0
- package/lib/components/avatar/avatar.module.d.ts +13 -0
- package/lib/components/card/card.component.d.ts +32 -0
- package/lib/components/card/card.module.d.ts +12 -0
- package/lib/components/comments/comments.module.d.ts +25 -0
- package/lib/components/comments/components/comment-item/comment-item.component.d.ts +13 -0
- package/lib/components/comments/components/comments-dashlet/comments-dashlet.component.d.ts +45 -0
- package/lib/components/comments/components/comments-list/comments-list.component.d.ts +26 -0
- package/lib/components/comments/constants/comment.d.ts +25 -0
- package/lib/components/comments/services/comment-api.service.d.ts +14 -0
- package/lib/components/confirm-caller/confirm-caller.dialog.d.ts +46 -0
- package/lib/components/confirm-caller/confirm-caller.module.d.ts +16 -0
- package/lib/components/confirm-caller/confirm-dialog/confirm-dialog.component.d.ts +12 -0
- package/lib/components/correspondence-relation/components/correspondence-relation/correspondence-relation.component.d.ts +34 -0
- package/lib/components/correspondence-relation/components/correspondence-relation-create-form/correspondence-relation-create-form.component.d.ts +42 -0
- package/lib/components/correspondence-relation/components/correspondence-relation-list/correspondence-relation-list.component.d.ts +31 -0
- package/lib/components/correspondence-relation/components/correspondence-relation-reply/correspondence-relation-reply.component.d.ts +18 -0
- package/lib/components/correspondence-relation/components/versions/versions.component.d.ts +31 -0
- package/lib/components/correspondence-relation/correspondence-relation.module.d.ts +30 -0
- package/lib/components/correspondence-relation/services/correspondence-realation.service.d.ts +24 -0
- package/lib/components/correspondence-relation/services/viewer-files.service.d.ts +18 -0
- package/lib/components/create-entity/create-entity/create-entity.component.d.ts +17 -0
- package/lib/components/create-entity/create-entity.module.d.ts +11 -0
- package/lib/components/cts-tags/components/correspondence-tags/correspondence-tags.component.d.ts +28 -0
- package/lib/components/cts-tags/cts-tags.module.d.ts +21 -0
- package/lib/components/cts-tags/services/tags-api.service.d.ts +15 -0
- package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +30 -0
- package/lib/components/custom-toastr/custom-toastr.module.d.ts +12 -0
- package/lib/components/custom-toastr/interfaces/toast-type.interface.d.ts +1 -0
- package/lib/components/custom-toastr/services/custom-toastr.service.d.ts +18 -0
- package/lib/components/documents/components/attachments-list/attachments-list.component.d.ts +54 -0
- package/lib/components/documents/components/attachments-page-provider/attachments-page-provider.component.d.ts +37 -0
- package/lib/components/documents/components/document-list/documents-list.component.d.ts +81 -0
- package/lib/components/documents/components/document-scan/document-scan.component.d.ts +103 -0
- package/lib/components/documents/components/document-upload/document-upload.component.d.ts +58 -0
- package/lib/components/documents/components/documents/documents.component.d.ts +27 -0
- package/lib/components/documents/constants/document-templates.d.ts +33 -0
- package/lib/components/documents/constants/documents.d.ts +95 -0
- package/lib/components/documents/documents.module.d.ts +33 -0
- package/lib/components/documents/services/document-templates.service.d.ts +24 -0
- package/lib/components/documents/services/documents.service.d.ts +36 -0
- package/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.d.ts +63 -0
- package/lib/components/dynamic-chart/dynamic-chart.module.d.ts +16 -0
- package/lib/components/dynamic-chart/dynamic-single-chart/dynamic-single-chart.component.d.ts +33 -0
- package/lib/components/dynamic-chart/services/chart-data.service.d.ts +37 -0
- package/lib/components/dynamic-filter/dynamic-filter/dynamic-filter.component.d.ts +45 -0
- package/lib/components/dynamic-filter/dynamic-filter.module.d.ts +16 -0
- package/lib/components/dynamic-form/components/department-form/department-form.component.d.ts +28 -0
- package/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.d.ts +26 -0
- package/lib/components/dynamic-form/components/dynamic-form/fields.adapter.d.ts +6 -0
- package/lib/components/dynamic-form/components/dynamic-form/form-builder.service.d.ts +21 -0
- package/lib/components/dynamic-form/components/dynamic-form-boolitem/dynamic-form-boolitem.component.d.ts +17 -0
- package/lib/components/dynamic-form/components/dynamic-form-builder/dynamic-form-builder.component.d.ts +57 -0
- package/lib/components/dynamic-form/components/dynamic-form-checkbox-item/dynamic-form-checkbox-item.component.d.ts +35 -0
- package/lib/components/dynamic-form/components/dynamic-form-dateitem/dynamic-form-dateitem.component.d.ts +70 -0
- package/lib/components/dynamic-form/components/dynamic-form-dateitem/owlDateTimeIntl.d.ts +52 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/constants/department.d.ts +12 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +65 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-api.service.d.ts +29 -0
- package/lib/components/dynamic-form/components/dynamic-form-department/services/department-management.service.d.ts +21 -0
- package/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.d.ts +30 -0
- package/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.d.ts +61 -0
- package/lib/components/dynamic-form/components/dynamic-form-item-dispatcher/dynamic-form-item-dispatcher.component.d.ts +25 -0
- package/lib/components/dynamic-form/components/dynamic-form-mapitem/dynamic-form-mapitem.component.d.ts +15 -0
- package/lib/components/dynamic-form/components/dynamic-form-options/dynamic-form-options.component.d.ts +45 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-tag/dynamic-form-select-tag.component.d.ts +41 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-user-filter/dynamic-form-select-user-filter.component.d.ts +65 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.d.ts +83 -0
- package/lib/components/dynamic-form/components/dynamic-form-select-users/services/user-api.service.d.ts +13 -0
- package/lib/components/dynamic-form/components/dynamic-form-selectitem/dynamic-form-selectitem.component.d.ts +79 -0
- package/lib/components/dynamic-form/components/dynamic-form-slide-toggleitem/dynamic-form-slide-toggleitem.component.d.ts +37 -0
- package/lib/components/dynamic-form/components/dynamic-form-textarea/dynamic-form-textarea.component.d.ts +71 -0
- package/lib/components/dynamic-form/components/dynamic-form-textitem/dynamic-form-textitem.component.d.ts +86 -0
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select-i18n.d.ts +19 -0
- package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +88 -0
- package/lib/components/dynamic-form/components/dynamic-form-viewer/dynamic-form-viewer.component.d.ts +16 -0
- package/lib/components/dynamic-form/components/dynamic-form-vocabulary-item/dynamic-form-vocabulary-item.component.d.ts +76 -0
- package/lib/components/dynamic-form/components/form-wrappers/base-edit-form/base-edit-form.d.ts +599 -0
- package/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.component.d.ts +13 -0
- package/lib/components/dynamic-form/components/form-wrappers/date-wrapper/date-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.component.d.ts +13 -0
- package/lib/components/dynamic-form/components/form-wrappers/toggle-wrapper/toggle-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.component.d.ts +16 -0
- package/lib/components/dynamic-form/components/form-wrappers/vocabulary-wrapper/vocabulary-wrapper.formio.d.ts +2 -0
- package/lib/components/dynamic-form/directives/dynamic-form-content-proxy.directive.d.ts +9 -0
- package/lib/components/dynamic-form/dynamic-form.module.d.ts +64 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-boolitem-properties.interface.d.ts +5 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-dateitem-properties.interface.d.ts +5 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-item-properties.interface.d.ts +15 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-item-validator.interface.d.ts +4 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-item.interface.d.ts +12 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-keyvaluepairsitem-properties.interface.d.ts +8 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-selectitem-properties.interface.d.ts +10 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-textitem-pipe-property.interface.d.ts +5 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form-textitem-properties.interface.d.ts +8 -0
- package/lib/components/dynamic-form/interfaces/dynamic-form.interfaces.d.ts +9 -0
- package/lib/components/dynamic-form/models/dynamic-form-baseitem.model.d.ts +21 -0
- package/lib/components/dynamic-form/models/dynamic-form-boolitem.model.d.ts +11 -0
- package/lib/components/dynamic-form/models/dynamic-form-dateitem.model.d.ts +13 -0
- package/lib/components/dynamic-form/models/dynamic-form-datetimeitem.model.d.ts +9 -0
- package/lib/components/dynamic-form/models/dynamic-form-mapitem.model.d.ts +8 -0
- package/lib/components/dynamic-form/models/dynamic-form-selectitem.model.d.ts +11 -0
- package/lib/components/dynamic-form/models/dynamic-form-textitem.model.d.ts +15 -0
- package/lib/components/dynamic-form/models/dynamic-form.models.d.ts +7 -0
- package/lib/components/dynamic-form/services/card-item-types.service.d.ts +13 -0
- package/lib/components/dynamic-form/services/dynamic-component-mapper.service.d.ts +36 -0
- package/lib/components/dynamic-form/services/dynamic-form-update.service.d.ts +30 -0
- package/lib/components/dynamic-form/validators/length-validator.d.ts +7 -0
- package/lib/components/dynamic-form/validators/regex-validator.d.ts +7 -0
- package/lib/components/dynamic-form/validators/required-validator.d.ts +5 -0
- package/lib/components/dynamic-form/validators/value-validator.d.ts +7 -0
- package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +71 -0
- package/lib/components/dynamic-search/dynamic-search.module.d.ts +19 -0
- package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +96 -0
- package/lib/components/dynamic-table/dynamic-table.module.d.ts +16 -0
- package/lib/components/dynamic-table/services/dynamic-table.service.d.ts +8 -0
- package/lib/components/dynamic-view/boolean-viewer/boolean-viewer.component.d.ts +13 -0
- package/lib/components/dynamic-view/data-viewer/data-viewer.component.d.ts +12 -0
- package/lib/components/dynamic-view/date-viewer/date-viewer.component.d.ts +17 -0
- package/lib/components/dynamic-view/department-viewer/department-viewer.component.d.ts +29 -0
- package/lib/components/dynamic-view/dropdown-viewer/dropdown-viewer.component.d.ts +37 -0
- package/lib/components/dynamic-view/dynamic-view.module.d.ts +20 -0
- package/lib/components/dynamic-view/list-viewer/list-viewer.component.d.ts +20 -0
- package/lib/components/filter/filter/filter.component.d.ts +31 -0
- package/lib/components/filter/filter.module.d.ts +15 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/gregorian-datepicker/gregorian-datepicker.component.d.ts +34 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-datepicker/hijri-datepicker.component.d.ts +32 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/hijri-gregorian-datepicker.component.d.ts +39 -0
- package/lib/components/hijri-gregorian-datepicker/hijri-gregorian-datepicker/provide-parent-form.directive.d.ts +9 -0
- package/lib/components/hijri-gregorian-datepicker/ngx-hijri-gregorian-datepicker.module.d.ts +14 -0
- package/lib/components/hijri-gregorian-datepicker/services/date-formatter.service.d.ts +15 -0
- package/lib/components/hijri-gregorian-datepicker/services/date-helper.service.d.ts +8 -0
- package/lib/components/hijri-gregorian-datepicker/utils/CustomNgbDateParserFormatter.d.ts +11 -0
- package/lib/components/hijri-gregorian-datepicker/utils/IslamicI18n.d.ts +10 -0
- package/lib/components/hijri-gregorian-datepicker/utils/consts.d.ts +4 -0
- package/lib/components/latest-activity/components/activity-line/activity-line.component.d.ts +19 -0
- package/lib/components/latest-activity/components/latest-activity/latest-activity.component.d.ts +22 -0
- package/lib/components/latest-activity/components/single-activity/single-activity.component.d.ts +10 -0
- package/lib/components/latest-activity/constants/activitylog.d.ts +82 -0
- package/lib/components/latest-activity/latest-activity.module.d.ts +19 -0
- package/lib/components/latest-activity/services/activity-log.service.d.ts +12 -0
- package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +15 -0
- package/lib/components/notifications/components/notification-options/notification-options.component.d.ts +10 -0
- package/lib/components/notifications/components/notification-toast/notification-toast.component.d.ts +19 -0
- package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +25 -0
- package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +45 -0
- package/lib/components/notifications/notifications.module.d.ts +24 -0
- package/lib/components/notifications/notifications.service.d.ts +61 -0
- package/lib/components/pagination/pagination/pagination.component.d.ts +46 -0
- package/lib/components/pagination/pagination.module.d.ts +13 -0
- package/lib/components/pdf-tron/pdf-tron.module.d.ts +8 -0
- package/lib/components/pdf-tron/pdftron/pdftron.component.d.ts +54 -0
- package/lib/components/pdf-tron/pdftron/pdftron.service.d.ts +30 -0
- package/lib/components/select/select/select.component.d.ts +43 -0
- package/lib/components/select/select.module.d.ts +12 -0
- package/lib/components/table/table/table.component.d.ts +89 -0
- package/lib/components/table/table.module.d.ts +18 -0
- package/lib/components/users-card/users-card.component.d.ts +22 -0
- package/lib/components/users-card/users-card.module.d.ts +17 -0
- package/lib/components/viewer-log/components/viewer-log/viewer-log.component.d.ts +12 -0
- package/lib/components/viewer-log/viewer-log.module.d.ts +10 -0
- package/lib/components/vocabulary/interfaces/op-type.interface.d.ts +1 -0
- package/lib/components/vocabulary/services/vocabulary-api.service.d.ts +16 -0
- package/lib/components/vocabulary/vocabulary/vocabulary.component.d.ts +37 -0
- package/lib/components/vocabulary/vocabulary.module.d.ts +11 -0
- package/lib/configuration/app-config.service.d.ts +11 -0
- package/lib/configuration/helpers/app-initializer.d.ts +2 -0
- package/lib/directive/app-has-role/app-has-role.directive.d.ts +18 -0
- package/lib/directive/clickOutSide/click-outside.directive.d.ts +11 -0
- package/lib/directive/directive.module.d.ts +16 -0
- package/lib/directive/permissions/evaluators.service.d.ts +26 -0
- package/lib/directive/permissions/permissions.directive.d.ts +46 -0
- package/lib/directive/rtl/set-dir-rtl.directive.d.ts +13 -0
- package/lib/directive/rtl/set-rtl.directive.d.ts +13 -0
- package/lib/nuxeo-development-framework.component.d.ts +8 -5
- package/lib/nuxeo-development-framework.module.d.ts +12 -2
- package/lib/nuxeo-development-framework.service.d.ts +6 -3
- package/lib/pipes/file-size.pipe.d.ts +34 -0
- package/lib/pipes/hijri-date.pipe.d.ts +32 -0
- package/lib/pipes/localized-date.pipe.d.ts +44 -0
- package/lib/pipes/multi-value.pipe.d.ts +32 -0
- package/lib/pipes/pipes.module.d.ts +18 -0
- package/lib/pipes/secure-html.pipe.d.ts +26 -0
- package/lib/pipes/secure.pipe.d.ts +29 -0
- package/lib/pipes/time-ago.pipe.d.ts +34 -0
- package/lib/shared/components/button/button.component.d.ts +38 -0
- package/lib/shared/components/item-list/item-list.component.d.ts +45 -0
- package/lib/shared/components/no-data/no-data.component.d.ts +21 -0
- package/lib/shared/components/read-more/read-more.component.d.ts +37 -0
- package/lib/shared/components/search-autocomplete/search-autocomplete.component.d.ts +49 -0
- package/lib/shared/components/spinner/spinner.component.d.ts +18 -0
- package/lib/shared/components/user-card/user-card.component.d.ts +30 -0
- package/lib/shared/libraryShared.module.d.ts +25 -0
- package/nuxeo-development-framework.d.ts +5 -4
- package/package.json +57 -16
- package/public-api.d.ts +145 -3
- package/bundles/nuxeo-development-framework.umd.min.js +0 -2
- package/bundles/nuxeo-development-framework.umd.min.js.map +0 -1
- package/nuxeo-development-framework.metadata.json +0 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Dyanamic filter is a component that leverages Nuxeo Elastic search aggregation buckets data to dynamically
|
|
5
|
+
* generate data filtering checkbox groups & emits checkbox selection for consumption
|
|
6
|
+
* @title
|
|
7
|
+
* Dynamic Filter
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* <cts-dynamic-filter
|
|
12
|
+
* [entityType]="entityType"
|
|
13
|
+
* [filters]="aggregationBuckets"
|
|
14
|
+
* [id]="aggregationId"
|
|
15
|
+
* [selections]="aggregationSelection"
|
|
16
|
+
* [title]="aggregationField"
|
|
17
|
+
* [prefix]="'search'"
|
|
18
|
+
* (onFilterSelected)="FilterSelected($event)">
|
|
19
|
+
* </cts-dynamic-filter>
|
|
20
|
+
*/
|
|
21
|
+
export declare class DynamicFilterComponent implements OnInit {
|
|
22
|
+
/** emits array of filters */
|
|
23
|
+
onFilterSelected: EventEmitter<any>;
|
|
24
|
+
_selections: any;
|
|
25
|
+
/** title of the filters group */
|
|
26
|
+
title: string;
|
|
27
|
+
/** filters group */
|
|
28
|
+
filters: any;
|
|
29
|
+
/** new filters coming from the backend based on the selection */
|
|
30
|
+
set selections(val: any);
|
|
31
|
+
/** Aggregation ID */
|
|
32
|
+
id: any;
|
|
33
|
+
entityType: any;
|
|
34
|
+
/** static path for translation passed from out side according to each page translation path */
|
|
35
|
+
prefix: any;
|
|
36
|
+
/** special type for department */
|
|
37
|
+
department: boolean;
|
|
38
|
+
more: boolean;
|
|
39
|
+
constructor();
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
onFilterSelect(committeeName: any, e: any): void;
|
|
42
|
+
EntityType(fetchedKey: any): any;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFilterComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFilterComponent, "cts-dynamic-filter", never, { "title": "title"; "filters": "filters"; "selections": "selections"; "id": "id"; "entityType": "entityType"; "prefix": "prefix"; "department": "department"; }, { "onFilterSelected": "onFilterSelected"; }, never, never>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dynamic-filter/dynamic-filter.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../pipes/pipes.module";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "@angular/material/checkbox";
|
|
7
|
+
import * as i6 from "../dynamic-view/dynamic-view.module";
|
|
8
|
+
/**
|
|
9
|
+
* @title
|
|
10
|
+
* Dynamic Filter Module
|
|
11
|
+
*/
|
|
12
|
+
export declare class DynamicFilterModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFilterModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicFilterModule, [typeof i1.DynamicFilterComponent], [typeof i2.CommonModule, typeof i3.PipesModule, typeof i4.TranslateModule, typeof i5.MatCheckboxModule, typeof i6.DynamicViewModule], [typeof i1.DynamicFilterComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DynamicFilterModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { TreeviewItem } from 'ngx-treeview';
|
|
5
|
+
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
6
|
+
import { DepartmentApiService } from '../dynamic-form-department/services/department-api.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DepartmentFormComponent implements OnInit {
|
|
9
|
+
data: any;
|
|
10
|
+
dialogRef: MatDialogRef<DepartmentFormComponent>;
|
|
11
|
+
private toastr;
|
|
12
|
+
private departmentManagementService;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
depId: any;
|
|
15
|
+
updateMode: boolean;
|
|
16
|
+
depCode: any;
|
|
17
|
+
item: TreeviewItem;
|
|
18
|
+
constructor(data: any, dialogRef: MatDialogRef<DepartmentFormComponent>, toastr: CustomToastrService, departmentManagementService: DepartmentApiService);
|
|
19
|
+
departmentForm: FormGroup;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
filterNullValues(formValue: any): {};
|
|
22
|
+
save(): void;
|
|
23
|
+
departmentFormPopulate(department: any): void;
|
|
24
|
+
getDepartment(): void;
|
|
25
|
+
update(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentFormComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DepartmentFormComponent, "cts-department-form", never, {}, {}, never, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilderService } from './form-builder.service';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export declare class DynamicFormComponent implements OnChanges, OnInit, OnDestroy {
|
|
8
|
+
private formBuilderServic;
|
|
9
|
+
translate: TranslateService;
|
|
10
|
+
form: any;
|
|
11
|
+
data: any;
|
|
12
|
+
readOnly: boolean;
|
|
13
|
+
change: EventEmitter<any>;
|
|
14
|
+
submission: {};
|
|
15
|
+
translations: {};
|
|
16
|
+
renderOptions: {};
|
|
17
|
+
refresher: EventEmitter<any>;
|
|
18
|
+
langSubscription: Subscription;
|
|
19
|
+
constructor(formBuilderServic: FormBuilderService, translate: TranslateService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: any): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
excuteFunction(event: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "form": "form"; "data": "data"; "readOnly": "readOnly"; }, { "change": "change"; }, never, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { AppConfigService } from '../../../../configuration/app-config.service';
|
|
3
|
+
import { NuxeoService } from '../../../../Core/services/nuxeo/nuxeo.service';
|
|
4
|
+
import { FieldsAdapterService } from './fields.adapter';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FormBuilderService {
|
|
7
|
+
private nuxeoService;
|
|
8
|
+
private configService;
|
|
9
|
+
private fieldsAdapter;
|
|
10
|
+
private environment;
|
|
11
|
+
dynamicFieldsOperations: any;
|
|
12
|
+
myPrefix: string;
|
|
13
|
+
constructor(nuxeoService: NuxeoService, configService: AppConfigService, fieldsAdapter: FieldsAdapterService, environment: any);
|
|
14
|
+
getSchemaComponents(type: any): Observable<any>;
|
|
15
|
+
createFormJson(type: any, jsonObject: any): Observable<unknown>;
|
|
16
|
+
getDynamicForm(type: any): Observable<any>;
|
|
17
|
+
adaptOutDynamicFields(data: any): {};
|
|
18
|
+
adaptInDynamicFields(data: any): {};
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormBuilderService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
2
|
+
import { DynamicFormUpdateService } from '../../services/dynamic-form-update.service';
|
|
3
|
+
import { DynamicFormBoolItemModel } from '../../models/dynamic-form.models';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/** @ignore */
|
|
7
|
+
export declare class DynamicFormBoolItemComponent {
|
|
8
|
+
private dynamicFormUpdateService;
|
|
9
|
+
translate: TranslateService;
|
|
10
|
+
property: DynamicFormBoolItemModel;
|
|
11
|
+
editable: boolean;
|
|
12
|
+
constructor(dynamicFormUpdateService: DynamicFormUpdateService, translate: TranslateService);
|
|
13
|
+
isEditable(): boolean;
|
|
14
|
+
changed(change: MatCheckboxChange): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormBoolItemComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormBoolItemComponent, "app-dynamic-form-boolitem", never, { "property": "property"; "editable": "editable"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilderComponent } from 'angular-formio';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DynamicFormBuilderComponent implements OnChanges, OnInit {
|
|
5
|
+
jsonElement?: ElementRef;
|
|
6
|
+
form: any;
|
|
7
|
+
builder: any;
|
|
8
|
+
builderComponents: {};
|
|
9
|
+
formUpdated: EventEmitter<any>;
|
|
10
|
+
saving: boolean;
|
|
11
|
+
FormBuilderComponent: FormBuilderComponent;
|
|
12
|
+
builderOptions: {
|
|
13
|
+
noDefaultSubmitButton: boolean;
|
|
14
|
+
builder: {
|
|
15
|
+
basic: boolean;
|
|
16
|
+
advanced: boolean;
|
|
17
|
+
data: boolean;
|
|
18
|
+
premium: boolean;
|
|
19
|
+
layout: {
|
|
20
|
+
components: {
|
|
21
|
+
htmlelement: boolean;
|
|
22
|
+
content: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
customBasic: {
|
|
26
|
+
title: string;
|
|
27
|
+
default: boolean;
|
|
28
|
+
weight: number;
|
|
29
|
+
components: {};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
editForm: {
|
|
33
|
+
textfield: {
|
|
34
|
+
key: string;
|
|
35
|
+
ignore: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
number: ({
|
|
38
|
+
key: string;
|
|
39
|
+
ignore?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
key: string;
|
|
42
|
+
ignore: boolean;
|
|
43
|
+
})[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
refresher: EventEmitter<any>;
|
|
47
|
+
deletedComponents: {};
|
|
48
|
+
private _form;
|
|
49
|
+
constructor();
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
ngOnChanges(changes: any): void;
|
|
52
|
+
save(): void;
|
|
53
|
+
onChange(event: any): void;
|
|
54
|
+
handleComponentChange(component: any, eventType: any): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormBuilderComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormBuilderComponent, "app-dynamic-form-builder", never, { "form": "form"; "builder": "builder"; "builderComponents": "builderComponents"; }, { "formUpdated": "formUpdated"; }, never, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* A checkbox input that can be used inside reactive or template driven forms
|
|
6
|
+
* @title
|
|
7
|
+
* Checkbox
|
|
8
|
+
* @example
|
|
9
|
+
* <cts-dynamic-form-checkbox-item
|
|
10
|
+
* [label]="'test slide'"
|
|
11
|
+
* formControlName="checkbox"
|
|
12
|
+
* ></cts-dynamic-form-checkbox-item>
|
|
13
|
+
*/
|
|
14
|
+
export declare class DynamicFormCheckboxItemComponent implements ControlValueAccessor {
|
|
15
|
+
translate: TranslateService;
|
|
16
|
+
private control;
|
|
17
|
+
value: any;
|
|
18
|
+
/** Input Label */
|
|
19
|
+
label: any;
|
|
20
|
+
/** set input to disabled */
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
/** is checkbox checked */
|
|
23
|
+
checked: boolean;
|
|
24
|
+
onChange: any;
|
|
25
|
+
onTouched: any;
|
|
26
|
+
constructor(translate: TranslateService, control: NgControl);
|
|
27
|
+
writeValue(obj: boolean): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
registerOnTouched(fn: any): void;
|
|
30
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
31
|
+
isRequired(): any;
|
|
32
|
+
setValue(event: any): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormCheckboxItemComponent, [null, { optional: true; self: true; }]>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormCheckboxItemComponent, "cts-dynamic-form-checkbox-item", never, { "label": "label"; "disabled": "disabled"; "checked": "checked"; }, {}, never, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { DateAdapter } from '@angular/material/core';
|
|
4
|
+
import { MatDatetimepicker } from '@mat-datetimepicker/core';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { Moment } from 'moment';
|
|
7
|
+
import { UserPreferencesService } from '../../../../Core/services/user/user-preferences.service';
|
|
8
|
+
import { DynamicFormDateItemModel } from '../../models/dynamic-form.models';
|
|
9
|
+
import { DynamicFormUpdateService } from '../../services/dynamic-form-update.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare const MY_MOMENT_FORMATS: {
|
|
12
|
+
parseInput: string;
|
|
13
|
+
fullPickerInput: string;
|
|
14
|
+
datePickerInput: string;
|
|
15
|
+
timePickerInput: string;
|
|
16
|
+
monthYearLabel: string;
|
|
17
|
+
dateA11yLabel: string;
|
|
18
|
+
monthYearA11yLabel: string;
|
|
19
|
+
};
|
|
20
|
+
/** @ignore */
|
|
21
|
+
export declare class DynamicFormDateItemComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
22
|
+
private dynamicFormUpdateService;
|
|
23
|
+
private dateAdapter;
|
|
24
|
+
private userPreferencesService;
|
|
25
|
+
translate: TranslateService;
|
|
26
|
+
control: NgControl;
|
|
27
|
+
label: any;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
inEdit: boolean;
|
|
30
|
+
editedValue: string;
|
|
31
|
+
errorMessages: string[];
|
|
32
|
+
valueSeparator: string;
|
|
33
|
+
property: DynamicFormDateItemModel;
|
|
34
|
+
editable: boolean;
|
|
35
|
+
displayEmpty: boolean;
|
|
36
|
+
min: any;
|
|
37
|
+
max: any;
|
|
38
|
+
startAt: any;
|
|
39
|
+
displayClearAction: boolean;
|
|
40
|
+
pickerType: string;
|
|
41
|
+
selectMode: string;
|
|
42
|
+
datepicker: MatDatetimepicker<any>;
|
|
43
|
+
valueDate: any;
|
|
44
|
+
dateFormat: string;
|
|
45
|
+
isfilter: boolean;
|
|
46
|
+
placeholder: string;
|
|
47
|
+
private onDestroy$;
|
|
48
|
+
constructor(dynamicFormUpdateService: DynamicFormUpdateService, dateAdapter: DateAdapter<Moment>, userPreferencesService: UserPreferencesService, translate: TranslateService, control: NgControl);
|
|
49
|
+
onChange: any;
|
|
50
|
+
onTouched: any;
|
|
51
|
+
isRequired(): any;
|
|
52
|
+
writeValue(obj: any): void;
|
|
53
|
+
get invalid(): boolean;
|
|
54
|
+
get showError(): boolean;
|
|
55
|
+
registerOnChange(fn: any): void;
|
|
56
|
+
registerOnTouched(fn: any): void;
|
|
57
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
58
|
+
hasErrors(): boolean;
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
ngOnDestroy(): void;
|
|
61
|
+
showProperty(): boolean;
|
|
62
|
+
showClearAction(): boolean;
|
|
63
|
+
isEditable(): boolean;
|
|
64
|
+
isDisabled(): boolean;
|
|
65
|
+
showDatePicker(): void;
|
|
66
|
+
onDateChanged(newDateValue: any): void;
|
|
67
|
+
onDateClear(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormDateItemComponent, [null, null, null, null, { optional: true; self: true; }]>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormDateItemComponent, "app-dynamic-form-dateitem", never, { "label": "label"; "disabled": "disabled"; "property": "property"; "editable": "editable"; "displayEmpty": "displayEmpty"; "min": "min"; "max": "max"; "startAt": "startAt"; "displayClearAction": "displayClearAction"; "pickerType": "pickerType"; "selectMode": "selectMode"; "isfilter": "isfilter"; "placeholder": "placeholder"; }, {}, never, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DateTimeAdapter, OwlDateTimeIntl } from '@busacca/ng-pick-datetime';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { UserPreferencesService } from '../../../../Core/services/user/user-preferences.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class owlDateTimeIntl extends OwlDateTimeIntl {
|
|
6
|
+
private translate;
|
|
7
|
+
private userPreference;
|
|
8
|
+
private dateTimeAdapter;
|
|
9
|
+
cancelBtnLabel: string;
|
|
10
|
+
setBtnLabel: string;
|
|
11
|
+
private currentLang;
|
|
12
|
+
/** A label for the up second button (used by screen readers). */
|
|
13
|
+
upSecondLabel: string;
|
|
14
|
+
/** A label for the down second button (used by screen readers). */
|
|
15
|
+
downSecondLabel: string;
|
|
16
|
+
/** A label for the up minute button (used by screen readers). */
|
|
17
|
+
upMinuteLabel: string;
|
|
18
|
+
/** A label for the down minute button (used by screen readers). */
|
|
19
|
+
downMinuteLabel: string;
|
|
20
|
+
/** A label for the up hour button (used by screen readers). */
|
|
21
|
+
upHourLabel: string;
|
|
22
|
+
/** A label for the down hour button (used by screen readers). */
|
|
23
|
+
downHourLabel: string;
|
|
24
|
+
/** A label for the previous month button (used by screen readers). */
|
|
25
|
+
prevMonthLabel: string;
|
|
26
|
+
/** A label for the next month button (used by screen readers). */
|
|
27
|
+
nextMonthLabel: string;
|
|
28
|
+
/** A label for the previous year button (used by screen readers). */
|
|
29
|
+
prevYearLabel: string;
|
|
30
|
+
/** A label for the next year button (used by screen readers). */
|
|
31
|
+
nextYearLabel: string;
|
|
32
|
+
/** A label for the previous multi-year button (used by screen readers). */
|
|
33
|
+
prevMultiYearLabel: string;
|
|
34
|
+
/** A label for the next multi-year button (used by screen readers). */
|
|
35
|
+
nextMultiYearLabel: string;
|
|
36
|
+
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
37
|
+
switchToMonthViewLabel: string;
|
|
38
|
+
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
39
|
+
switchToMultiYearViewLabel: string;
|
|
40
|
+
/** A label for the range 'from' in picker info */
|
|
41
|
+
rangeFromLabel: string;
|
|
42
|
+
/** A label for the range 'to' in picker info */
|
|
43
|
+
rangeToLabel: string;
|
|
44
|
+
/** A label for the hour12 button (AM) */
|
|
45
|
+
hour12AMLabel: string;
|
|
46
|
+
/** A label for the hour12 button (PM) */
|
|
47
|
+
hour12PMLabel: string;
|
|
48
|
+
constructor(translate: TranslateService, userPreference: UserPreferencesService, dateTimeAdapter: DateTimeAdapter<any>);
|
|
49
|
+
getLang(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<owlDateTimeIntl, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<owlDateTimeIntl>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
|
+
import { TreeviewItem } from 'ngx-treeview';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { TranslationService } from '../../../../Core/services/translation/translation.service';
|
|
6
|
+
import { DepartmentApiService } from './services/department-api.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* A department tree dropdown input already with departments backend,
|
|
10
|
+
* that can be used inside reactive or template driven forms
|
|
11
|
+
* @title
|
|
12
|
+
* Department tree dropdown
|
|
13
|
+
* @example
|
|
14
|
+
* <app-dynamic-form-department
|
|
15
|
+
* label="Field Label"
|
|
16
|
+
* placeholder="Placeholder text"
|
|
17
|
+
* formControlName="controlName"
|
|
18
|
+
* >
|
|
19
|
+
* </app-dynamic-form-department>
|
|
20
|
+
*/
|
|
21
|
+
export declare class DynamicFormDepartmentComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
22
|
+
private translation;
|
|
23
|
+
private departmentApi;
|
|
24
|
+
control: NgControl;
|
|
25
|
+
data: any[];
|
|
26
|
+
/** is tree View or dropdown view */
|
|
27
|
+
treeview: boolean;
|
|
28
|
+
/** use tree view inside form */
|
|
29
|
+
treeViewAsFormControl: boolean;
|
|
30
|
+
/** Placeholder text */
|
|
31
|
+
placeholder: any;
|
|
32
|
+
/** Can select multiple */
|
|
33
|
+
multiple: boolean;
|
|
34
|
+
/** is tree searchable */
|
|
35
|
+
searchable: boolean;
|
|
36
|
+
/** Input Field label */
|
|
37
|
+
label: any;
|
|
38
|
+
/** emitted when item is selected */
|
|
39
|
+
onSelecting: EventEmitter<any>;
|
|
40
|
+
/** emitted when action is clicked */
|
|
41
|
+
actionClicked: EventEmitter<any>;
|
|
42
|
+
loading: boolean;
|
|
43
|
+
selection: any;
|
|
44
|
+
arabic: boolean;
|
|
45
|
+
languageSubscription: Subscription;
|
|
46
|
+
propagateChange: any;
|
|
47
|
+
validateFn: any;
|
|
48
|
+
onTouched: any;
|
|
49
|
+
get invalid(): boolean;
|
|
50
|
+
get showError(): boolean;
|
|
51
|
+
constructor(translation: TranslationService, departmentApi: DepartmentApiService, control: NgControl);
|
|
52
|
+
ngOnInit(): void;
|
|
53
|
+
ngOnDestroy(): void;
|
|
54
|
+
recursiveFill(entries: any, level?: number): Promise<TreeviewItem[]>;
|
|
55
|
+
getLisOfOptions(): Promise<void>;
|
|
56
|
+
getSelecteditems(selectedItems: any): void;
|
|
57
|
+
writeValue(value: any): void;
|
|
58
|
+
registerOnChange(fn: any): void;
|
|
59
|
+
registerOnTouched(fn: any): void;
|
|
60
|
+
validate(c: FormControl): any;
|
|
61
|
+
isRequired(): boolean;
|
|
62
|
+
hasErrors(): boolean;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormDepartmentComponent, [null, null, { optional: true; self: true; }]>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormDepartmentComponent, "app-dynamic-form-department", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "placeholder": "placeholder"; "multiple": "multiple"; "searchable": "searchable"; "label": "label"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TreeviewItem } from 'ngx-treeview';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { AdapterService } from '../../../../../Core/adapters/adapter.service';
|
|
4
|
+
import { CallApiService } from '../../../../../Core/services/callApi/call-api.service';
|
|
5
|
+
import { NuxeoService } from '../../../../../Core/services/nuxeo/nuxeo.service';
|
|
6
|
+
import { TranslationService } from '../../../../../Core/services/translation/translation.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare const departmentCacheBuster$: Subject<void>;
|
|
9
|
+
export declare const minute = 60000;
|
|
10
|
+
/** @ignore */
|
|
11
|
+
export declare class DepartmentApiService {
|
|
12
|
+
private CallApiService;
|
|
13
|
+
private translation;
|
|
14
|
+
private nuxeoService;
|
|
15
|
+
private adapter;
|
|
16
|
+
private environment;
|
|
17
|
+
arabic: any;
|
|
18
|
+
constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, environment: any);
|
|
19
|
+
getDepartmentTree(): Observable<any>;
|
|
20
|
+
getDepartmentDetails(code: any): Observable<any>;
|
|
21
|
+
getDepartmentNestedTree(code: any): Observable<any>;
|
|
22
|
+
getDepartment(uid: any): Observable<any>;
|
|
23
|
+
createDepartment(Department: any, parentId: any): Observable<unknown>;
|
|
24
|
+
createDepartmentInRoot(Department: any): Observable<unknown>;
|
|
25
|
+
updateDepartment(Department: any, departmentId: any): Observable<unknown>;
|
|
26
|
+
recursiveFill(entries: any, level?: number, treeview?: boolean, collapsed?: boolean): TreeviewItem[];
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentApiService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DepartmentApiService>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { TreeviewItem } from 'ngx-treeview';
|
|
3
|
+
import { AppConfigService } from '../../../../../configuration/app-config.service';
|
|
4
|
+
import { AdapterService } from '../../../../../Core/adapters/adapter.service';
|
|
5
|
+
import { NuxeoService } from '../../../../../Core/services/nuxeo/nuxeo.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DepartmentManagementService {
|
|
8
|
+
private nuxeoService;
|
|
9
|
+
private adapter;
|
|
10
|
+
private myConfigService;
|
|
11
|
+
private dialog;
|
|
12
|
+
private environment;
|
|
13
|
+
constructor(nuxeoService: NuxeoService, adapter: AdapterService, myConfigService: AppConfigService, dialog: MatDialog, environment: any);
|
|
14
|
+
createDepartment(Department: any, parentId: any): import("rxjs").Observable<unknown>;
|
|
15
|
+
createDepartmentInRoot(Department: any): import("rxjs").Observable<unknown>;
|
|
16
|
+
updateDepartment(Department: any, departmentId: any): import("rxjs").Observable<unknown>;
|
|
17
|
+
getDepartment(uid: any): import("rxjs").Observable<any>;
|
|
18
|
+
openFormDialog(e?: string, update?: boolean, depCode?: any, item?: TreeviewItem): import("rxjs").Observable<any>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DepartmentManagementService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DepartmentManagementService>;
|
|
21
|
+
}
|
package/lib/components/dynamic-form/components/dynamic-form-field/dynamic-form-field.component.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DynamicFormFieldComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
6
|
+
translate: TranslateService;
|
|
7
|
+
private control;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
field: any;
|
|
10
|
+
value: any;
|
|
11
|
+
private onDestroy$;
|
|
12
|
+
constructor(translate: TranslateService, control: NgControl);
|
|
13
|
+
onChange: any;
|
|
14
|
+
onTouched: any;
|
|
15
|
+
get invalid(): boolean;
|
|
16
|
+
get showError(): boolean;
|
|
17
|
+
Validator: (control: AbstractControl) => {
|
|
18
|
+
[key: string]: boolean;
|
|
19
|
+
};
|
|
20
|
+
isRequired(): boolean;
|
|
21
|
+
writeValue(value: any): void;
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
registerOnChange(fn: any): void;
|
|
24
|
+
registerOnTouched(fn: any): void;
|
|
25
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
onChanged(value: any): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormFieldComponent, [null, { optional: true; self: true; }]>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormFieldComponent, "cts-dynamic-form-field", never, { "disabled": "disabled"; "field": "field"; }, {}, never, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgbDate } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import { DateFormatterService } from '../../../hijri-gregorian-datepicker/services/date-formatter.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* A Hijri and gregorian datepicker
|
|
8
|
+
* that can be used inside reactive or template driven forms
|
|
9
|
+
* @title
|
|
10
|
+
* Hijri Gregorian Datepicker
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <cts-dynamic-form-hijri-dateitem
|
|
14
|
+
* formControlName="controlName"
|
|
15
|
+
* label="PATH.TO.LABEL.TRANSLATION"
|
|
16
|
+
* [minGreg]="maxDate"
|
|
17
|
+
* >
|
|
18
|
+
* </cts-dynamic-form-hijri-dateitem>
|
|
19
|
+
*/
|
|
20
|
+
export declare class DynamicFormHijriDateitemComponent implements OnInit, ControlValueAccessor {
|
|
21
|
+
private dateFormatterService;
|
|
22
|
+
private control;
|
|
23
|
+
/** Minimum Hijri Date */
|
|
24
|
+
minHijri: NgbDate;
|
|
25
|
+
/** Max Hijri Date */
|
|
26
|
+
maxHijri: NgbDate;
|
|
27
|
+
/** Minimum Gregorian Date */
|
|
28
|
+
minGreg: NgbDate;
|
|
29
|
+
/** Max Gregorian Date */
|
|
30
|
+
maxGreg: NgbDate;
|
|
31
|
+
/** Field Label */
|
|
32
|
+
label: any;
|
|
33
|
+
/** Is input disabled */
|
|
34
|
+
isDisabled: boolean;
|
|
35
|
+
/** is input a range picker */
|
|
36
|
+
range: boolean;
|
|
37
|
+
/** list inputs vertically (for range only) */
|
|
38
|
+
vertical: boolean;
|
|
39
|
+
/** Sets picker to readonly mode */
|
|
40
|
+
isReadOnly: boolean;
|
|
41
|
+
/** Emitted when the value changes */
|
|
42
|
+
valueChanged: EventEmitter<any>;
|
|
43
|
+
date: any;
|
|
44
|
+
dateString: string;
|
|
45
|
+
selectedDateType: number;
|
|
46
|
+
onChange: any;
|
|
47
|
+
onTouched: any;
|
|
48
|
+
startDatePicker: any;
|
|
49
|
+
constructor(dateFormatterService: DateFormatterService, control: NgControl);
|
|
50
|
+
writeValue(obj: any): void;
|
|
51
|
+
registerOnChange(fn: any): void;
|
|
52
|
+
registerOnTouched(fn: any): void;
|
|
53
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
54
|
+
ngOnInit(): void;
|
|
55
|
+
ngAfterViewInit(): void;
|
|
56
|
+
removelable(): void;
|
|
57
|
+
setValue(event: any): void;
|
|
58
|
+
isRequired(): any;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormHijriDateitemComponent, [null, { optional: true; self: true; }]>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormHijriDateitemComponent, "cts-dynamic-form-hijri-dateitem", never, { "minHijri": "minHijri"; "maxHijri": "maxHijri"; "minGreg": "minGreg"; "maxGreg": "maxGreg"; "label": "label"; "isDisabled": "isDisabled"; "range": "range"; "vertical": "vertical"; "isReadOnly": "isReadOnly"; }, { "valueChanged": "valueChanged"; }, never, never>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { CardItemTypeService } from '../../services/card-item-types.service';
|
|
3
|
+
import { DynamicFormItem } from '../../interfaces/dynamic-form-item.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/** @ignore */
|
|
6
|
+
export declare class DynamicFormItemDispatcherComponent implements OnChanges {
|
|
7
|
+
private cardItemTypeService;
|
|
8
|
+
private resolver;
|
|
9
|
+
property: DynamicFormItem;
|
|
10
|
+
editable: boolean;
|
|
11
|
+
displayEmpty: boolean;
|
|
12
|
+
displayNoneOption: boolean;
|
|
13
|
+
displayClearAction: boolean;
|
|
14
|
+
private content;
|
|
15
|
+
private loaded;
|
|
16
|
+
private componentReference;
|
|
17
|
+
ngOnInit: any;
|
|
18
|
+
ngDoCheck: any;
|
|
19
|
+
constructor(cardItemTypeService: CardItemTypeService, resolver: ComponentFactoryResolver);
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
private loadComponent;
|
|
22
|
+
private proxy;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormItemDispatcherComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormItemDispatcherComponent, "app-dynamic-form-item-dispatcher", never, { "property": "property"; "editable": "editable"; "displayEmpty": "displayEmpty"; "displayNoneOption": "displayNoneOption"; "displayClearAction": "displayClearAction"; }, {}, never, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DynamicFormUpdateService } from '../../services/dynamic-form-update.service';
|
|
2
|
+
import { DynamicFormMapItemModel } from '../../models/dynamic-form.models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** @ignore */
|
|
5
|
+
export declare class DynamicFormMapItemComponent {
|
|
6
|
+
private dynamicFormUpdateService;
|
|
7
|
+
property: DynamicFormMapItemModel;
|
|
8
|
+
displayEmpty: boolean;
|
|
9
|
+
constructor(dynamicFormUpdateService: DynamicFormUpdateService);
|
|
10
|
+
showProperty(): boolean;
|
|
11
|
+
isClickable(): boolean;
|
|
12
|
+
clicked(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormMapItemComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormMapItemComponent, "app-dynamic-form-mapitem", never, { "property": "property"; "displayEmpty": "displayEmpty"; }, {}, never, never>;
|
|
15
|
+
}
|