@mtna/web-form-angular 1.0.1 → 1.0.2-SNAPSHOT.1
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/_index.scss +17 -16
- package/bundles/mtna-web-form-angular.umd.js +6562 -4919
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/acknowledge-dialog/acknowledge-dialog.component.js +30 -0
- package/esm2015/lib/components/acknowledge-dialog/acknowledge-dialog.module.js +21 -0
- package/esm2015/lib/components/acknowledge-dialog/index.js +3 -0
- package/esm2015/lib/components/base-items/base-form-item-control.component.js +40 -0
- package/esm2015/lib/components/base-items/base-form-item.component.js +50 -0
- package/esm2015/lib/components/base-items/base-group-item.component.js +29 -0
- package/esm2015/lib/components/base-items/base-parent-value-item.component.js +42 -0
- package/esm2015/lib/components/base-items/base-section-item.component.js +28 -0
- package/esm2015/lib/components/base-items/base-single-selection-parent-value-item.component.js +64 -0
- package/esm2015/lib/components/base-items/base-value-item.component.js +40 -0
- package/esm2015/lib/components/base-items/index.js +7 -0
- package/esm2015/lib/components/form/form.component.js +250 -0
- package/esm2015/lib/components/form/form.module.js +60 -0
- package/esm2015/lib/components/form/index.js +3 -0
- package/esm2015/lib/{form → components/form-disabler}/form-disabler.component.js +1 -1
- package/esm2015/lib/components/form-disabler/form-disabler.module.js +18 -0
- package/esm2015/lib/components/form-disabler/index.js +3 -0
- package/esm2015/lib/components/form-item/form-item.component.js +124 -0
- package/esm2015/lib/components/form-item/form-item.module.js +22 -0
- package/esm2015/lib/components/form-item/index.js +3 -0
- package/esm2015/lib/components/form-item-component-provider/form-item-component-provider.js +8 -0
- package/esm2015/lib/components/form-item-component-provider/form-item-injected-components.js +120 -0
- package/esm2015/lib/components/form-item-component-provider/index.js +3 -0
- package/esm2015/lib/components/form-item-dialog/form-item-dialog.component.js +29 -0
- package/esm2015/lib/components/form-item-dialog/form-item-dialog.module.js +20 -0
- package/esm2015/lib/components/form-item-dialog/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/boolean/boolean.component.js +33 -0
- package/esm2015/lib/components/form-item-impl/boolean/boolean.module.js +22 -0
- package/esm2015/lib/components/form-item-impl/boolean/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/checkbox/checkbox.component.js +92 -0
- package/esm2015/lib/components/form-item-impl/checkbox/checkbox.module.js +61 -0
- package/esm2015/lib/components/form-item-impl/checkbox/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/date/date.component.js +92 -0
- package/esm2015/lib/components/form-item-impl/date/date.module.js +53 -0
- package/esm2015/lib/components/form-item-impl/date/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/date-range/date-range.component.js +31 -0
- package/esm2015/lib/components/form-item-impl/date-range/date-range.module.js +45 -0
- package/esm2015/lib/components/form-item-impl/date-range/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/dropdown/dropdown.component.js +29 -0
- package/esm2015/lib/components/form-item-impl/dropdown/dropdown.module.js +59 -0
- package/esm2015/lib/components/form-item-impl/dropdown/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/file-upload/file-upload.component.js +56 -0
- package/esm2015/lib/components/form-item-impl/file-upload/file-upload.module.js +49 -0
- package/esm2015/lib/components/form-item-impl/file-upload/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/form-group/form-group.component.js +50 -0
- package/esm2015/lib/components/form-item-impl/form-group/form-group.module.js +49 -0
- package/esm2015/lib/components/form-item-impl/form-group/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/form-section/form-section.component.js +22 -0
- package/esm2015/lib/components/form-item-impl/form-section/form-section.module.js +22 -0
- package/esm2015/lib/components/form-item-impl/form-section/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/i18n-input/i18n-input.component.js +51 -0
- package/esm2015/lib/components/form-item-impl/i18n-input/i18n-input.module.js +52 -0
- package/esm2015/lib/components/form-item-impl/i18n-input/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/index.js +23 -0
- package/esm2015/lib/components/form-item-impl/input/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/input/input.component.js +39 -0
- package/esm2015/lib/components/form-item-impl/input/input.module.js +52 -0
- package/esm2015/lib/components/form-item-impl/multiple-choice/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.component.js +24 -0
- package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.module.js +45 -0
- package/esm2015/lib/components/form-item-impl/ordered-list/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/ordered-list/ordered-list-item.component.js +21 -0
- package/esm2015/lib/components/form-item-impl/ordered-list/ordered-list-item.module.js +20 -0
- package/esm2015/lib/components/form-item-impl/repeatable-item/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/repeatable-item/repeatable-item.component.js +23 -0
- package/esm2015/lib/components/form-item-impl/repeatable-item/repeatable-item.module.js +18 -0
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.js +56 -0
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.module.js +53 -0
- package/esm2015/lib/components/form-item-impl/search/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/search/resource-search.component.js +56 -0
- package/esm2015/lib/components/form-item-impl/search/resource-search.module.js +22 -0
- package/esm2015/lib/components/form-item-impl/table-item/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/table-item/table-item.component.js +27 -0
- package/esm2015/lib/components/form-item-impl/table-item/table-item.module.js +20 -0
- package/esm2015/lib/components/form-item-impl/text/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/text/text.component.js +19 -0
- package/esm2015/lib/components/form-item-impl/text/text.module.js +20 -0
- package/esm2015/lib/components/form-item-impl/title/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/title/title.component.js +18 -0
- package/esm2015/lib/components/form-item-impl/title/title.module.js +20 -0
- package/esm2015/lib/components/form-item-impl/unordered-list/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/unordered-list/unordered-list-item.component.js +21 -0
- package/esm2015/lib/components/form-item-impl/unordered-list/unordered-list-item.module.js +20 -0
- package/esm2015/lib/components/form-item-impl/year-quarter/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/year-quarter/year-quarter.component.js +166 -0
- package/esm2015/lib/components/form-item-impl/year-quarter/year-quarter.module.js +55 -0
- package/esm2015/lib/components/form-item-impl/year-quarter-range/index.js +3 -0
- package/esm2015/lib/components/form-item-impl/year-quarter-range/year-quarter-range.component.js +39 -0
- package/esm2015/lib/components/form-item-impl/year-quarter-range/year-quarter-range.module.js +22 -0
- package/esm2015/lib/components/form-item-injector/form-item-injector.component.js +158 -0
- package/esm2015/lib/components/form-item-injector/form-item-injector.module.js +18 -0
- package/esm2015/lib/components/form-item-injector/index.js +3 -0
- package/esm2015/lib/components/form-stepper/form-step/form-step.component.js +68 -0
- package/esm2015/lib/components/form-stepper/form-step/index.js +2 -0
- package/esm2015/lib/components/form-stepper/form-step-group/form-step-group.component.js +53 -0
- package/esm2015/lib/components/form-stepper/form-step-group/index.js +2 -0
- package/esm2015/lib/components/form-stepper/form-stepper/form-stepper.component.js +59 -0
- package/esm2015/lib/components/form-stepper/form-stepper/index.js +2 -0
- package/esm2015/lib/components/form-stepper/form-stepper.module.js +56 -0
- package/esm2015/lib/components/form-stepper/index.js +5 -0
- package/esm2015/lib/components/index.js +13 -0
- package/esm2015/lib/components/item-header/index.js +3 -0
- package/esm2015/lib/components/item-header/item-header.component.js +71 -0
- package/esm2015/lib/components/item-header/item-header.module.js +19 -0
- package/esm2015/lib/components/step-card/index.js +3 -0
- package/esm2015/lib/{step-card → components/step-card}/step-card.component.js +2 -2
- package/esm2015/lib/components/step-card/step-card.module.js +23 -0
- package/esm2015/lib/directives/base-form-item-control.directive.js +59 -0
- package/esm2015/lib/directives/base-parent-item-control.directive.js +42 -0
- package/esm2015/lib/directives/base-single-selection-parent.directive.js +53 -0
- package/esm2015/lib/{form → directives}/form-item.directive.js +1 -1
- package/esm2015/lib/directives/index.js +5 -0
- package/esm2015/lib/models/api-config.js +3 -0
- package/esm2015/lib/models/base-form-item.model.js +2 -0
- package/esm2015/lib/{groups → models}/form-item-dialog-data.model.js +1 -1
- package/esm2015/lib/{form-stepper/models → models/form-stepper}/base-form-step.model.js +1 -1
- package/esm2015/lib/{form-stepper/models → models/form-stepper}/form-step-group.model.js +1 -1
- package/esm2015/lib/{form-stepper/models → models/form-stepper}/form-step.model.js +1 -1
- package/esm2015/lib/{form-stepper/models → models/form-stepper}/index.js +1 -1
- package/esm2015/lib/models/index.js +7 -0
- package/esm2015/lib/models/toggle-form-item-data.model.js +2 -0
- package/esm2015/lib/models/white-list.model.js +11 -0
- package/esm2015/lib/pipes/coerce-date-item.pipe.js +37 -0
- package/esm2015/lib/pipes/coerce-form-control.pipe.js +38 -0
- package/esm2015/lib/pipes/coerce-form-group.pipe.js +47 -0
- package/esm2015/lib/pipes/date-quarter.pipe.js +55 -0
- package/esm2015/lib/pipes/form-step-group.pipe.js +32 -0
- package/esm2015/lib/pipes/get-auto-complete.pipe.js +54 -0
- package/esm2015/lib/pipes/get-available-quarters.pipe.js +41 -0
- package/esm2015/lib/pipes/get-form-control-error.pipe.js +32 -0
- package/esm2015/lib/pipes/get-list-icon.pipe.js +65 -0
- package/esm2015/lib/pipes/get-object-type.pipe.js +29 -0
- package/esm2015/lib/pipes/get-selected-option.pipe.js +32 -0
- package/esm2015/lib/pipes/index.js +14 -0
- package/esm2015/lib/pipes/items-with-value.pipe.js +42 -0
- package/esm2015/lib/pipes/sanitize-html.pipe.js +35 -0
- package/esm2015/lib/services/api.service.js +67 -0
- package/esm2015/lib/services/dialog.service.js +48 -0
- package/esm2015/lib/services/form-manager.service.js +465 -0
- package/esm2015/lib/services/index.js +7 -0
- package/esm2015/lib/services/ng-form.service.js +150 -0
- package/esm2015/lib/services/resource-search-selection.service.js +24 -0
- package/esm2015/lib/services/ui.service.js +333 -0
- package/esm2015/lib/utilities/animations.js +8 -0
- package/esm2015/lib/utilities/find-form-control.js +29 -0
- package/esm2015/lib/utilities/find-form-item.js +25 -0
- package/esm2015/lib/utilities/flatten-steps.js +10 -0
- package/esm2015/lib/utilities/form-step.util.js +28 -0
- package/esm2015/lib/utilities/generate-form-steps.js +38 -0
- package/esm2015/lib/utilities/get-item-class-suffix.js +17 -0
- package/esm2015/lib/utilities/index.js +13 -0
- package/esm2015/lib/utilities/is-form-control.js +5 -0
- package/esm2015/lib/utilities/is-form-group.js +6 -0
- package/esm2015/lib/utilities/serializer-util.js +391 -0
- package/esm2015/lib/utilities/update-step-status.js +38 -0
- package/esm2015/lib/validators/index.js +3 -0
- package/esm2015/lib/validators/instant-validation-result-error-state-matcher.js +23 -0
- package/esm2015/lib/validators/validation-result-validator.js +19 -0
- package/esm2015/public-api.js +8 -10
- package/fesm2015/mtna-web-form-angular.js +4516 -3887
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/components/acknowledge-dialog/acknowledge-dialog.component.d.ts +13 -0
- package/lib/components/acknowledge-dialog/acknowledge-dialog.module.d.ts +11 -0
- package/lib/components/acknowledge-dialog/index.d.ts +2 -0
- package/lib/components/base-items/base-form-item-control.component.d.ts +17 -0
- package/lib/components/base-items/base-form-item.component.d.ts +25 -0
- package/lib/components/base-items/base-group-item.component.d.ts +12 -0
- package/lib/components/base-items/base-parent-value-item.component.d.ts +17 -0
- package/lib/components/base-items/base-section-item.component.d.ts +13 -0
- package/lib/components/base-items/base-single-selection-parent-value-item.component.d.ts +20 -0
- package/lib/components/base-items/base-value-item.component.d.ts +18 -0
- package/lib/components/base-items/index.d.ts +6 -0
- package/lib/{form → components/form}/form.component.d.ts +2 -2
- package/lib/components/form/form.module.d.ts +16 -0
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form-disabler/form-disabler.module.d.ts +8 -0
- package/lib/components/form-disabler/index.d.ts +2 -0
- package/lib/components/form-item/form-item.component.d.ts +53 -0
- package/lib/components/form-item/form-item.module.d.ts +12 -0
- package/lib/components/form-item/index.d.ts +2 -0
- package/lib/components/form-item-component-provider/form-item-component-provider.d.ts +4 -0
- package/lib/components/form-item-component-provider/form-item-injected-components.d.ts +2 -0
- package/lib/components/form-item-component-provider/index.d.ts +2 -0
- package/lib/components/form-item-dialog/form-item-dialog.component.d.ts +13 -0
- package/lib/components/form-item-dialog/form-item-dialog.module.d.ts +10 -0
- package/lib/components/form-item-dialog/index.d.ts +2 -0
- package/lib/components/form-item-impl/boolean/boolean.component.d.ts +17 -0
- package/lib/components/form-item-impl/boolean/boolean.module.d.ts +12 -0
- package/lib/components/form-item-impl/boolean/index.d.ts +2 -0
- package/lib/components/form-item-impl/checkbox/checkbox.component.d.ts +29 -0
- package/lib/components/form-item-impl/checkbox/checkbox.module.d.ts +17 -0
- package/lib/components/form-item-impl/checkbox/index.d.ts +2 -0
- package/lib/{form-item-controls → components/form-item-impl/date}/date.component.d.ts +6 -6
- package/lib/components/form-item-impl/date/date.module.d.ts +15 -0
- package/lib/components/form-item-impl/date/index.d.ts +2 -0
- package/lib/{form-item-controls → components/form-item-impl/date-range}/date-range.component.d.ts +2 -2
- package/lib/components/form-item-impl/date-range/date-range.module.d.ts +13 -0
- package/lib/components/form-item-impl/date-range/index.d.ts +2 -0
- package/lib/{form-item-controls → components/form-item-impl/dropdown}/dropdown.component.d.ts +2 -4
- package/lib/components/form-item-impl/dropdown/dropdown.module.d.ts +17 -0
- package/lib/components/form-item-impl/dropdown/index.d.ts +2 -0
- package/lib/components/form-item-impl/file-upload/file-upload.component.d.ts +19 -0
- package/lib/components/form-item-impl/file-upload/file-upload.module.d.ts +14 -0
- package/lib/{file-upload → components/form-item-impl/file-upload}/index.d.ts +1 -0
- package/lib/components/form-item-impl/form-group/form-group.component.d.ts +17 -0
- package/lib/components/form-item-impl/form-group/form-group.module.d.ts +14 -0
- package/lib/components/form-item-impl/form-group/index.d.ts +2 -0
- package/lib/components/form-item-impl/form-section/form-section.component.d.ts +7 -0
- package/lib/components/form-item-impl/form-section/form-section.module.d.ts +12 -0
- package/lib/components/form-item-impl/form-section/index.d.ts +2 -0
- package/lib/components/form-item-impl/i18n-input/i18n-input.component.d.ts +15 -0
- package/lib/components/form-item-impl/i18n-input/i18n-input.module.d.ts +15 -0
- package/lib/components/form-item-impl/i18n-input/index.d.ts +2 -0
- package/lib/components/form-item-impl/index.d.ts +21 -0
- package/lib/components/form-item-impl/input/index.d.ts +2 -0
- package/lib/{form-item-controls → components/form-item-impl/input}/input.component.d.ts +2 -2
- package/lib/components/form-item-impl/input/input.module.d.ts +15 -0
- package/lib/components/form-item-impl/multiple-choice/index.d.ts +2 -0
- package/lib/components/form-item-impl/multiple-choice/multiple-choice.component.d.ts +7 -0
- package/lib/components/form-item-impl/multiple-choice/multiple-choice.module.d.ts +13 -0
- package/lib/components/form-item-impl/ordered-list/index.d.ts +2 -0
- package/lib/components/form-item-impl/ordered-list/ordered-list-item.component.d.ts +7 -0
- package/lib/components/form-item-impl/ordered-list/ordered-list-item.module.d.ts +10 -0
- package/lib/{groups → components/form-item-impl/repeatable-item}/index.d.ts +1 -1
- package/lib/components/form-item-impl/repeatable-item/repeatable-item.component.d.ts +5 -0
- package/lib/components/form-item-impl/repeatable-item/repeatable-item.module.d.ts +8 -0
- package/lib/components/form-item-impl/repeatable-item-container/index.d.ts +2 -0
- package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.d.ts +13 -0
- package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.module.d.ts +15 -0
- package/lib/components/form-item-impl/search/index.d.ts +2 -0
- package/lib/components/form-item-impl/search/resource-search.component.d.ts +15 -0
- package/lib/components/form-item-impl/search/resource-search.module.d.ts +12 -0
- package/lib/components/form-item-impl/table-item/index.d.ts +2 -0
- package/lib/components/form-item-impl/table-item/table-item.component.d.ts +9 -0
- package/lib/components/form-item-impl/table-item/table-item.module.d.ts +10 -0
- package/lib/components/form-item-impl/text/index.d.ts +2 -0
- package/lib/components/form-item-impl/text/text.component.d.ts +7 -0
- package/lib/components/form-item-impl/text/text.module.d.ts +10 -0
- package/lib/components/form-item-impl/title/index.d.ts +2 -0
- package/lib/components/form-item-impl/title/title.component.d.ts +7 -0
- package/lib/components/form-item-impl/title/title.module.d.ts +10 -0
- package/lib/components/form-item-impl/unordered-list/index.d.ts +2 -0
- package/lib/components/form-item-impl/unordered-list/unordered-list-item.component.d.ts +7 -0
- package/lib/components/form-item-impl/unordered-list/unordered-list-item.module.d.ts +10 -0
- package/lib/components/form-item-impl/year-quarter/index.d.ts +2 -0
- package/lib/{form-item-controls → components/form-item-impl/year-quarter}/year-quarter.component.d.ts +6 -4
- package/lib/components/form-item-impl/year-quarter/year-quarter.module.d.ts +16 -0
- package/lib/components/form-item-impl/year-quarter-range/index.d.ts +2 -0
- package/lib/{form-item-controls → components/form-item-impl/year-quarter-range}/year-quarter-range.component.d.ts +6 -2
- package/lib/components/form-item-impl/year-quarter-range/year-quarter-range.module.d.ts +12 -0
- package/lib/components/form-item-injector/form-item-injector.component.d.ts +48 -0
- package/lib/components/form-item-injector/form-item-injector.module.d.ts +8 -0
- package/lib/components/form-item-injector/index.d.ts +2 -0
- package/lib/{form-stepper → components/form-stepper/form-step}/form-step.component.d.ts +1 -1
- package/lib/components/form-stepper/form-step/index.d.ts +1 -0
- package/lib/{form-stepper → components/form-stepper/form-step-group}/form-step-group.component.d.ts +1 -1
- package/lib/components/form-stepper/form-step-group/index.d.ts +1 -0
- package/lib/{form-stepper → components/form-stepper/form-stepper}/form-stepper.component.d.ts +1 -2
- package/lib/components/form-stepper/form-stepper/index.d.ts +1 -0
- package/lib/components/form-stepper/form-stepper.module.d.ts +18 -0
- package/lib/components/form-stepper/index.d.ts +4 -0
- package/lib/components/index.d.ts +12 -0
- package/lib/{item-header → components/item-header}/index.d.ts +1 -0
- package/lib/{item-header → components/item-header}/item-header.component.d.ts +3 -3
- package/lib/components/item-header/item-header.module.d.ts +9 -0
- package/lib/{step-card → components/step-card}/index.d.ts +1 -0
- package/lib/{step-card → components/step-card}/step-card.component.d.ts +1 -1
- package/lib/components/step-card/step-card.module.d.ts +13 -0
- package/lib/core/_all-color.scss +13 -15
- package/lib/core/_all-theme.scss +13 -18
- package/lib/core/_all-typography.scss +13 -15
- package/lib/{form-item-controls → directives}/base-single-selection-parent.directive.d.ts +1 -1
- package/lib/directives/index.d.ts +4 -0
- package/lib/models/index.d.ts +6 -0
- package/lib/models/toggle-form-item-data.model.d.ts +7 -0
- package/lib/pipes/coerce-date-item.pipe.d.ts +17 -0
- package/lib/pipes/coerce-form-control.pipe.d.ts +13 -0
- package/lib/{core/pipes → pipes}/coerce-form-group.pipe.d.ts +5 -0
- package/lib/pipes/date-quarter.pipe.d.ts +12 -0
- package/lib/{form-stepper → pipes}/form-step-group.pipe.d.ts +6 -1
- package/lib/pipes/get-auto-complete.pipe.d.ts +12 -0
- package/lib/{core/pipes → pipes}/get-available-quarters.pipe.d.ts +5 -0
- package/lib/pipes/get-form-control-error.pipe.d.ts +19 -0
- package/lib/pipes/get-list-icon.pipe.d.ts +12 -0
- package/lib/pipes/get-object-type.pipe.d.ts +12 -0
- package/lib/{core/pipes → pipes}/get-selected-option.pipe.d.ts +5 -0
- package/lib/pipes/index.d.ts +13 -0
- package/lib/{core/pipes → pipes}/items-with-value.pipe.d.ts +5 -0
- package/lib/{core/pipes → pipes}/sanitize-html.pipe.d.ts +5 -0
- package/lib/{core/services → services}/api.service.d.ts +1 -1
- package/lib/services/dialog.service.d.ts +21 -0
- package/lib/{core/services → services}/form-manager.service.d.ts +1 -1
- package/lib/{core/services → services}/index.d.ts +2 -0
- package/lib/services/resource-search-selection.service.d.ts +10 -0
- package/lib/{core/services → services}/ui.service.d.ts +1 -1
- package/lib/{core/utilities → utilities}/flatten-steps.d.ts +1 -1
- package/lib/{form-stepper → utilities}/form-step.util.d.ts +1 -1
- package/lib/{core/utilities → utilities}/generate-form-steps.d.ts +1 -1
- package/lib/utilities/get-item-class-suffix.d.ts +1 -0
- package/lib/{core/utilities → utilities}/index.d.ts +4 -0
- package/lib/utilities/is-form-control.d.ts +2 -0
- package/lib/{core/utilities → utilities}/update-step-status.d.ts +1 -1
- package/package.json +4 -2
- package/public-api.d.ts +7 -9
- package/esm2015/lib/core/animations.js +0 -8
- package/esm2015/lib/core/api-config.js +0 -3
- package/esm2015/lib/core/index.js +0 -7
- package/esm2015/lib/core/pipes/coerce-date-item.pipe.js +0 -23
- package/esm2015/lib/core/pipes/coerce-form-group.pipe.js +0 -35
- package/esm2015/lib/core/pipes/date-quarter.pipe.js +0 -43
- package/esm2015/lib/core/pipes/get-auto-complete.pipe.js +0 -42
- package/esm2015/lib/core/pipes/get-available-quarters.pipe.js +0 -29
- package/esm2015/lib/core/pipes/get-form-control-error.pipe.js +0 -20
- package/esm2015/lib/core/pipes/get-list-icon.pipe.js +0 -53
- package/esm2015/lib/core/pipes/get-object-type.pipe.js +0 -17
- package/esm2015/lib/core/pipes/get-selected-option.pipe.js +0 -20
- package/esm2015/lib/core/pipes/index.js +0 -71
- package/esm2015/lib/core/pipes/items-with-value.pipe.js +0 -30
- package/esm2015/lib/core/pipes/sanitize-html.pipe.js +0 -23
- package/esm2015/lib/core/services/api.service.js +0 -67
- package/esm2015/lib/core/services/form-manager.service.js +0 -465
- package/esm2015/lib/core/services/index.js +0 -5
- package/esm2015/lib/core/services/ng-form.service.js +0 -150
- package/esm2015/lib/core/services/ui.service.js +0 -333
- package/esm2015/lib/core/utilities/find-form-control.js +0 -29
- package/esm2015/lib/core/utilities/find-form-item.js +0 -25
- package/esm2015/lib/core/utilities/flatten-steps.js +0 -10
- package/esm2015/lib/core/utilities/generate-form-steps.js +0 -38
- package/esm2015/lib/core/utilities/index.js +0 -9
- package/esm2015/lib/core/utilities/is-form-group.js +0 -6
- package/esm2015/lib/core/utilities/serializer-util.js +0 -358
- package/esm2015/lib/core/utilities/update-step-status.js +0 -38
- package/esm2015/lib/core/validators/index.js +0 -3
- package/esm2015/lib/core/validators/instant-validation-result-error-state-matcher.js +0 -23
- package/esm2015/lib/core/validators/validation-result-validator.js +0 -19
- package/esm2015/lib/file-upload/file-upload.component.js +0 -66
- package/esm2015/lib/file-upload/index.js +0 -2
- package/esm2015/lib/form/base-form-item.model.js +0 -2
- package/esm2015/lib/form/form.component.js +0 -250
- package/esm2015/lib/form/form.module.js +0 -214
- package/esm2015/lib/form/index.js +0 -5
- package/esm2015/lib/form/white-list.model.js +0 -11
- package/esm2015/lib/form-item-controls/base-form-item-control.directive.js +0 -58
- package/esm2015/lib/form-item-controls/base-parent-item-control.directive.js +0 -42
- package/esm2015/lib/form-item-controls/base-single-selection-parent.directive.js +0 -53
- package/esm2015/lib/form-item-controls/date-range.component.js +0 -84
- package/esm2015/lib/form-item-controls/date.component.js +0 -134
- package/esm2015/lib/form-item-controls/dropdown.component.js +0 -109
- package/esm2015/lib/form-item-controls/index.js +0 -8
- package/esm2015/lib/form-item-controls/input.component.js +0 -149
- package/esm2015/lib/form-item-controls/year-quarter-range.component.js +0 -75
- package/esm2015/lib/form-item-controls/year-quarter.component.js +0 -228
- package/esm2015/lib/form-stepper/form-step-group.component.js +0 -95
- package/esm2015/lib/form-stepper/form-step-group.pipe.js +0 -20
- package/esm2015/lib/form-stepper/form-step.component.js +0 -110
- package/esm2015/lib/form-stepper/form-step.util.js +0 -28
- package/esm2015/lib/form-stepper/form-stepper.component.js +0 -115
- package/esm2015/lib/form-stepper/form-stepper.module.js +0 -53
- package/esm2015/lib/form-stepper/index.js +0 -8
- package/esm2015/lib/groups/group-components.js +0 -646
- package/esm2015/lib/groups/index.js +0 -3
- package/esm2015/lib/groups/repeatable-item.component.js +0 -23
- package/esm2015/lib/item-header/index.js +0 -2
- package/esm2015/lib/item-header/item-header.component.js +0 -108
- package/esm2015/lib/static-form-items/index.js +0 -3
- package/esm2015/lib/static-form-items/ordered-list-item.js +0 -50
- package/esm2015/lib/static-form-items/unordered-list-item.js +0 -52
- package/esm2015/lib/step-card/index.js +0 -2
- package/lib/_index.scss +0 -24
- package/lib/core/index.d.ts +0 -6
- package/lib/core/pipes/coerce-date-item.pipe.d.ts +0 -11
- package/lib/core/pipes/date-quarter.pipe.d.ts +0 -7
- package/lib/core/pipes/get-auto-complete.pipe.d.ts +0 -7
- package/lib/core/pipes/get-form-control-error.pipe.d.ts +0 -14
- package/lib/core/pipes/get-list-icon.pipe.d.ts +0 -7
- package/lib/core/pipes/get-object-type.pipe.d.ts +0 -7
- package/lib/core/pipes/index.d.ts +0 -28
- package/lib/file-upload/file-upload.component.d.ts +0 -23
- package/lib/form/form.module.d.ts +0 -52
- package/lib/form/index.d.ts +0 -4
- package/lib/form-item-controls/index.d.ts +0 -7
- package/lib/form-stepper/form-stepper.module.d.ts +0 -18
- package/lib/form-stepper/index.d.ts +0 -7
- package/lib/groups/group-components.d.ts +0 -221
- package/lib/groups/repeatable-item.component.d.ts +0 -5
- package/lib/static-form-items/index.d.ts +0 -2
- package/lib/static-form-items/ordered-list-item.d.ts +0 -11
- package/lib/static-form-items/unordered-list-item.d.ts +0 -11
- /package/lib/{form → components/form-disabler}/form-disabler.component.d.ts +0 -0
- /package/lib/{groups → components/form-item-impl/checkbox}/_checkbox-theme.scss +0 -0
- /package/lib/{form-item-controls → components/form-item-impl/date}/_date-item-theme.scss +0 -0
- /package/lib/{groups → components/form-item-impl/form-group}/_form-group-theme.scss +0 -0
- /package/lib/{groups → components/form-item-impl/multiple-choice}/_multiple-choice-theme.scss +0 -0
- /package/lib/{groups/_repeatable-item-theme.scss → components/form-item-impl/repeatable-item-container/_repeatable-item-container-theme.scss} +0 -0
- /package/lib/{form-item-controls → components/form-item-impl/year-quarter}/_year-quarter-item-theme.scss +0 -0
- /package/lib/{form-stepper → components/form-stepper/form-step-group}/_form-step-group-theme.scss +0 -0
- /package/lib/{form-stepper → components/form-stepper/form-stepper}/_form-stepper-theme.scss +0 -0
- /package/lib/{item-header → components/item-header}/_item-header-theme.scss +0 -0
- /package/lib/{step-card → components/step-card}/_step-card-theme.scss +0 -0
- /package/lib/{form-item-controls → core}/_form-control-theme.scss +0 -0
- /package/lib/{form-item-controls → directives}/base-form-item-control.directive.d.ts +0 -0
- /package/lib/{form-item-controls → directives}/base-parent-item-control.directive.d.ts +0 -0
- /package/lib/{form → directives}/form-item.directive.d.ts +0 -0
- /package/lib/{core → models}/api-config.d.ts +0 -0
- /package/lib/{form → models}/base-form-item.model.d.ts +0 -0
- /package/lib/{groups → models}/form-item-dialog-data.model.d.ts +0 -0
- /package/lib/{form-stepper/models → models/form-stepper}/base-form-step.model.d.ts +0 -0
- /package/lib/{form-stepper/models → models/form-stepper}/form-step-group.model.d.ts +0 -0
- /package/lib/{form-stepper/models → models/form-stepper}/form-step.model.d.ts +0 -0
- /package/lib/{form-stepper/models → models/form-stepper}/index.d.ts +0 -0
- /package/lib/{form → models}/white-list.model.d.ts +0 -0
- /package/lib/{core/services → services}/ng-form.service.d.ts +0 -0
- /package/lib/{core → utilities}/animations.d.ts +0 -0
- /package/lib/{core/utilities → utilities}/find-form-control.d.ts +0 -0
- /package/lib/{core/utilities → utilities}/find-form-item.d.ts +0 -0
- /package/lib/{core/utilities → utilities}/is-form-group.d.ts +0 -0
- /package/lib/{core/utilities → utilities}/serializer-util.d.ts +0 -0
- /package/lib/{core/validators → validators}/index.d.ts +0 -0
- /package/lib/{core/validators → validators}/instant-validation-result-error-state-matcher.d.ts +0 -0
- /package/lib/{core/validators → validators}/validation-result-validator.d.ts +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from './base-form-item.model';
|
|
2
|
-
export * from './form.component';
|
|
3
|
-
export * from './form.module';
|
|
4
|
-
export * from './white-list.model';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93ZWItZm9ybS1hbmd1bGFyL3NyYy9saWIvZm9ybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmFzZS1mb3JtLWl0ZW0ubW9kZWwnO1xuZXhwb3J0ICogZnJvbSAnLi9mb3JtLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2Zvcm0ubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vd2hpdGUtbGlzdC5tb2RlbCc7XG4iXX0=
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const MTNA_WF_ITEM_WHITELIST = new InjectionToken('mtna-wf-item-whitelist', {
|
|
3
|
-
providedIn: 'root',
|
|
4
|
-
factory: MTNA_WF_ITEM_WHITELIST_FACTORY,
|
|
5
|
-
});
|
|
6
|
-
export function MTNA_WF_ITEM_WHITELIST_FACTORY() {
|
|
7
|
-
return {
|
|
8
|
-
itemTypes: [],
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hpdGUtbGlzdC5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dlYi1mb3JtLWFuZ3VsYXIvc3JjL2xpYi9mb3JtL3doaXRlLWxpc3QubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU0vQyxNQUFNLENBQUMsTUFBTSxzQkFBc0IsR0FBRyxJQUFJLGNBQWMsQ0FBc0Isd0JBQXdCLEVBQUU7SUFDdEcsVUFBVSxFQUFFLE1BQU07SUFDbEIsT0FBTyxFQUFFLDhCQUE4QjtDQUN4QyxDQUFDLENBQUM7QUFFSCxNQUFNLFVBQVUsOEJBQThCO0lBQzVDLE9BQU87UUFDTCxTQUFTLEVBQUUsRUFBRTtLQUNkLENBQUM7QUFDSixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGludGVyZmFjZSBNdG5hV2ZJdGVtV2hpdGVMaXN0IHtcbiAgaXRlbVR5cGVzOiBBcnJheTxzdHJpbmc+O1xufVxuXG5leHBvcnQgY29uc3QgTVROQV9XRl9JVEVNX1dISVRFTElTVCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxNdG5hV2ZJdGVtV2hpdGVMaXN0PignbXRuYS13Zi1pdGVtLXdoaXRlbGlzdCcsIHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxuICBmYWN0b3J5OiBNVE5BX1dGX0lURU1fV0hJVEVMSVNUX0ZBQ1RPUlksXG59KTtcblxuZXhwb3J0IGZ1bmN0aW9uIE1UTkFfV0ZfSVRFTV9XSElURUxJU1RfRkFDVE9SWSgpOiBNdG5hV2ZJdGVtV2hpdGVMaXN0IHtcbiAgcmV0dXJuIHtcbiAgICBpdGVtVHlwZXM6IFtdLFxuICB9O1xufVxuIl19
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Directive, HostBinding, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Base control class for a ValueItem.
|
|
5
|
-
* If a FormItem can have value, its component class should extend this class.
|
|
6
|
-
*/
|
|
7
|
-
export class BaseFormItemControl {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.formControlClass = true;
|
|
10
|
-
this.header = null;
|
|
11
|
-
this.inList = false;
|
|
12
|
-
this.indicatorStatus = 'INACTIVE';
|
|
13
|
-
this.readonly = false;
|
|
14
|
-
}
|
|
15
|
-
get control() {
|
|
16
|
-
return this._control;
|
|
17
|
-
}
|
|
18
|
-
set control(control) {
|
|
19
|
-
this._control = control;
|
|
20
|
-
}
|
|
21
|
-
get item() {
|
|
22
|
-
return this._item;
|
|
23
|
-
}
|
|
24
|
-
set item(item) {
|
|
25
|
-
this._item = item;
|
|
26
|
-
}
|
|
27
|
-
// Whether the item has a header component above the content
|
|
28
|
-
get hasItemHeader() {
|
|
29
|
-
return !!this.item && (!!this.item.questionText || !!this.item.descriptiveText);
|
|
30
|
-
}
|
|
31
|
-
_trackByOptionId(index, option) {
|
|
32
|
-
return option.option.id;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
BaseFormItemControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseFormItemControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
-
BaseFormItemControl.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseFormItemControl, inputs: { control: "control", header: "header", inList: "inList", indicatorStatus: "indicatorStatus", item: "item", readonly: "readonly" }, host: { properties: { "class.mtna-wf-control-item": "this.formControlClass", "class.read-only": "this.readonly" } }, ngImport: i0 });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseFormItemControl, decorators: [{
|
|
38
|
-
type: Directive
|
|
39
|
-
}], propDecorators: { formControlClass: [{
|
|
40
|
-
type: HostBinding,
|
|
41
|
-
args: ['class.mtna-wf-control-item']
|
|
42
|
-
}], control: [{
|
|
43
|
-
type: Input
|
|
44
|
-
}], header: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}], inList: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], indicatorStatus: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}], item: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], readonly: [{
|
|
53
|
-
type: HostBinding,
|
|
54
|
-
args: ['class.read-only']
|
|
55
|
-
}, {
|
|
56
|
-
type: Input
|
|
57
|
-
}] } });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1mb3JtLWl0ZW0tY29udHJvbC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93ZWItZm9ybS1hbmd1bGFyL3NyYy9saWIvZm9ybS1pdGVtLWNvbnRyb2xzL2Jhc2UtZm9ybS1pdGVtLWNvbnRyb2wuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBZSxNQUFNLGVBQWUsQ0FBQzs7QUFNM0U7OztHQUdHO0FBRUgsTUFBTSxPQUFnQixtQkFBbUI7SUFEekM7UUFJNkMscUJBQWdCLEdBQUcsSUFBSSxDQUFDO1FBVzFELFdBQU0sR0FBZ0MsSUFBSSxDQUFDO1FBQzNDLFdBQU0sR0FBRyxLQUFLLENBQUM7UUFDZixvQkFBZSxHQUE4QixVQUFVLENBQUM7UUFhakUsYUFBUSxHQUFHLEtBQUssQ0FBQztLQVVsQjtJQWxDQyxJQUNJLE9BQU87UUFDVCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDdkIsQ0FBQztJQUNELElBQUksT0FBTyxDQUFDLE9BQTZCO1FBQ3ZDLElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxDQUFDO0lBQzFCLENBQUM7SUFPRCxJQUNJLElBQUk7UUFDTixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUM7SUFDcEIsQ0FBQztJQUNELElBQUksSUFBSSxDQUFDLElBQU87UUFDZCxJQUFJLENBQUMsS0FBSyxHQUFHLElBQU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KVxuICBnZXQgaXRlbSgpOiBJIHtcbiAgICByZXR1cm4gdGhpcy5faXRlbTtcbiAgfVxuICBzZXQgaXRlbShpdGVtOiBJKSB7XG4gICAgdGhpcy5faXRlbSA9IGl0ZW07XG4gIH1cbiAgcHJvdGVjdGVkIF9pdGVtITogSTtcblxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLnJlYWQtb25seScpXG4gIEBJbnB1dCgpXG4gIHJlYWRvbmx5ID0gZmFsc2U7XG5cbiAgLy8gV2hldGhlciB0aGUgaXRlbSBoYXMgYSBoZWFkZXIgY29tcG9uZW50IGFib3ZlIHRoZSBjb250ZW50XG4gIGdldCBoYXNJdGVtSGVhZGVyKCkge1xuICAgIHJldHVybiAhIXRoaXMuaXRlbSAmJiAoISF0aGlzLml0ZW0ucXVlc3Rpb25UZXh0IHx8ICEhdGhpcy5pdGVtLmRlc2NyaXB0aXZlVGV4dCk7XG4gIH1cblxuICBfdHJhY2tCeU9wdGlvbklkKGluZGV4OiBudW1iZXIsIG9wdGlvbjogRm9ybU9wdGlvblNlbGVjdG9yPE9wdGlvbjx1bmtub3duPj4pIHtcbiAgICByZXR1cm4gb3B0aW9uLm9wdGlvbi5pZDtcbiAgfVxufVxuIl19
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { BaseFormItemControl } from './base-form-item-control.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Base control class for a FormItem with nested FormItems.
|
|
7
|
-
* If a FormItem contains an 'optionItemMap', its component class should extend this class.
|
|
8
|
-
*/
|
|
9
|
-
export class BaseParentItemControl extends BaseFormItemControl {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.parentIds = new Array();
|
|
13
|
-
}
|
|
14
|
-
/** FormControl representing this item's value.
|
|
15
|
-
* If this item has items in its 'optionItemMap', this control is nested inside a FormGroup wrapper */
|
|
16
|
-
get control() {
|
|
17
|
-
return this._control;
|
|
18
|
-
}
|
|
19
|
-
set control(control) {
|
|
20
|
-
if (control instanceof FormGroup) {
|
|
21
|
-
this._control = control.get(this.item.instanceId);
|
|
22
|
-
this.controlWrapper = control;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
super.control = control;
|
|
26
|
-
}
|
|
27
|
-
// FIXME sometimes this gets set with undefined which was a problem
|
|
28
|
-
// Why is it undefined sometimes? something to do with readonly?
|
|
29
|
-
// Do we need to split the read-only components and edit-components
|
|
30
|
-
// I think the read-only components are carrying a bunch of extra unecessary weight
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
BaseParentItemControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseParentItemControl, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
-
BaseParentItemControl.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseParentItemControl, inputs: { control: "control", parentIds: "parentIds" }, usesInheritance: true, ngImport: i0 });
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseParentItemControl, decorators: [{
|
|
36
|
-
type: Directive
|
|
37
|
-
}], propDecorators: { control: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], parentIds: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}] } });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1wYXJlbnQtaXRlbS1jb250cm9sLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dlYi1mb3JtLWFuZ3VsYXIvc3JjL2xpYi9mb3JtLWl0ZW0tY29udHJvbHMvYmFzZS1wYXJ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nRyb2w6IEMgfCBudWxsIHwgdW5kZWZpbmVkKSB7XG4gICAgaWYgKGNvbnRyb2wgaW5zdGFuY2VvZiBGb3JtR3JvdXApIHtcbiAgICAgIHRoaXMuX2NvbnRyb2wgPSBjb250cm9sLmdldCh0aGlzLml0ZW0uaW5zdGFuY2VJZCkgYXMgQztcbiAgICAgIHRoaXMuY29udHJvbFdyYXBwZXIgPSBjb250cm9sO1xuICAgIH0gZWxzZSB7XG4gICAgICBzdXBlci5jb250cm9sID0gY29udHJvbDtcbiAgICB9XG4gICAgLy8gRklYTUUgc29tZXRpbWVzIHRoaXMgZ2V0cyBzZXQgd2l0aCB1bmRlZmluZWQgd2hpY2ggd2FzIGEgcHJvYmxlbVxuICAgIC8vIFdoeSBpcyBpdCB1bmRlZmluZWQgc29tZXRpbWVzPyBzb21ldGhpbmcgdG8gZG8gd2l0aCByZWFkb25seT9cbiAgICAvLyBEbyB3ZSBuZWVkIHRvIHNwbGl0IHRoZSByZWFkLW9ubHkgY29tcG9uZW50cyBhbmQgZWRpdC1jb21wb25lbnRzXG4gICAgLy8gSSB0aGluayB0aGUgcmVhZC1vbmx5IGNvbXBvbmVudHMgYXJlIGNhcnJ5aW5nIGEgYnVuY2ggb2YgZXh0cmEgdW5lY2Vzc2FyeSB3ZWlnaHRcbiAgfVxuXG4gIEBJbnB1dCgpIHBhcmVudElkcyA9IG5ldyBBcnJheTxzdHJpbmc+KCk7XG5cbiAgLyoqIEZvcm1Hcm91cCB3cmFwcGluZyB0aGlzIGl0ZW0ncyBGb3JtQ29udHJvbCwgJiBGb3JtQ29udHJvbHMgZm9yIGFueSBuZXN0ZWQgZm9ybSBpdGVtcyAqL1xuICBjb250cm9sV3JhcHBlcjogRm9ybUdyb3VwIHwgdW5kZWZpbmVkO1xufVxuIl19
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { MatRadioChange } from '@angular/material/radio';
|
|
3
|
-
import { MatSelectChange } from '@angular/material/select';
|
|
4
|
-
import { isPresent } from '@mtna/core-ts';
|
|
5
|
-
import { BaseParentItemControl } from './base-parent-item-control.directive';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../core/services/ui.service";
|
|
8
|
-
export class BaseSingleSelectionParent extends BaseParentItemControl {
|
|
9
|
-
constructor(uiService) {
|
|
10
|
-
super();
|
|
11
|
-
this.uiService = uiService;
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
var _a;
|
|
15
|
-
if (isPresent((_a = this.control) === null || _a === void 0 ? void 0 : _a.value)) {
|
|
16
|
-
this.selectedOption = this.item.options.find((o) => { var _a; return ((_a = this.control) === null || _a === void 0 ? void 0 : _a.value) === o.option.id; });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Toggles the 'selected' value of the previous & newly selected options,
|
|
21
|
-
* then calls toggleFormItems to change their enabled/disabled items
|
|
22
|
-
* @param change MatRadioChange from the radio group
|
|
23
|
-
*/
|
|
24
|
-
selectionChange(change) {
|
|
25
|
-
// event fires when an option's nested item, e.g. FileUploadItem, changes value.
|
|
26
|
-
// This event is not a MatRadioChange, so we need to ignore it.
|
|
27
|
-
if (change instanceof MatRadioChange || change instanceof MatSelectChange) {
|
|
28
|
-
// Newly selected option
|
|
29
|
-
const option = this.item.options.find((o) => o.option.id === change.value);
|
|
30
|
-
if (!!this.selectedOption && this.selectedOption.option.id !== change.value) {
|
|
31
|
-
// New option does not match the previous option
|
|
32
|
-
// Previous option's enabled/disabled items need toggling
|
|
33
|
-
// toggle visibility and enable/disable, should be rendered already
|
|
34
|
-
this.uiService.toggleFormItems(this.selectedOption.enabledItems, this.selectedOption.disabledItems, false, this.item.instanceId);
|
|
35
|
-
}
|
|
36
|
-
// toggle visibility and enable/disable, should be rendered already
|
|
37
|
-
if (option) {
|
|
38
|
-
this.uiService.toggleFormItems(option.enabledItems, option.disabledItems, true, this.item.instanceId);
|
|
39
|
-
}
|
|
40
|
-
// Set the selected option as the previous
|
|
41
|
-
this.selectedOption = option;
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
console.warn('[BaseSingleSelectionParent] selectionChange - not a MatRadioChange | MatSelectChange', change);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
BaseSingleSelectionParent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseSingleSelectionParent, deps: [{ token: i1.MtnaWfUIService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
49
|
-
BaseSingleSelectionParent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: BaseSingleSelectionParent, usesInheritance: true, ngImport: i0 });
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: BaseSingleSelectionParent, decorators: [{
|
|
51
|
-
type: Directive
|
|
52
|
-
}], ctorParameters: function () { return [{ type: i1.MtnaWfUIService }]; } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1zaW5nbGUtc2VsZWN0aW9uLXBhcmVudC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93ZWItZm9ybS1hbmd1bGFyL3NyYy9saWIvZm9ybS1pdGVtLWNvbnRyb2xzL2Jhc2Utc2luZ2xlLXNlbGVjdGlvbi1wYXJlbnQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBT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nNlbGVjdGVkT3B0aW9uID0gb3B0aW9uO1xuICAgIH0gZWxzZSB7XG4gICAgICBjb25zb2xlLndhcm4oJ1tCYXNlU2luZ2xlU2VsZWN0aW9uUGFyZW50XSBzZWxlY3Rpb25DaGFuZ2UgLSBub3QgYSBNYXRSYWRpb0NoYW5nZSB8IE1hdFNlbGVjdENoYW5nZScsIGNoYW5nZSk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { BaseFormItemControl } from './base-form-item-control.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./date.component";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "@angular/flex-layout/flex";
|
|
7
|
-
import * as i4 from "@mtna/core-angular";
|
|
8
|
-
export class MtnaWfDateRangeComponent extends BaseFormItemControl {
|
|
9
|
-
get item() {
|
|
10
|
-
return this._item;
|
|
11
|
-
}
|
|
12
|
-
set item(item) {
|
|
13
|
-
this._item = item;
|
|
14
|
-
// Create fake items for the underlying date-item component
|
|
15
|
-
this._startItem = Object.assign(Object.assign({}, item), { label: 'Start', value: undefined });
|
|
16
|
-
this._endItem = Object.assign(Object.assign({}, item), { label: 'End', value: undefined });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
MtnaWfDateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfDateRangeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
MtnaWfDateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDateRangeComponent, selector: "mtna-wf-date-range", usesInheritance: true, ngImport: i0, template: `
|
|
21
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
22
|
-
|
|
23
|
-
<div
|
|
24
|
-
*ngIf="control"
|
|
25
|
-
class="range-item-container"
|
|
26
|
-
fxLayout="row"
|
|
27
|
-
fxLayoutAlign="start center"
|
|
28
|
-
fxLayoutGap="8px"
|
|
29
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
30
|
-
>
|
|
31
|
-
<mtna-wf-date-item
|
|
32
|
-
[control]="control.controls['start']"
|
|
33
|
-
[format]="item.format"
|
|
34
|
-
[item]="_startItem"
|
|
35
|
-
[rangeLimits]="item.rangeLimits"
|
|
36
|
-
[readonly]="readonly"
|
|
37
|
-
></mtna-wf-date-item>
|
|
38
|
-
<span fxFlex="14px"> to </span>
|
|
39
|
-
<mtna-wf-date-item
|
|
40
|
-
[control]="control.controls['end']"
|
|
41
|
-
[format]="item.format"
|
|
42
|
-
[item]="_endItem"
|
|
43
|
-
[rangeLimits]="item.rangeLimits"
|
|
44
|
-
[readonly]="readonly"
|
|
45
|
-
></mtna-wf-date-item>
|
|
46
|
-
</div>
|
|
47
|
-
`, isInline: true, components: [{ type: i1.MtnaWfDateComponent, selector: "mtna-wf-date-item", inputs: ["format", "rangeLimits"] }], directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfDateRangeComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'mtna-wf-date-range',
|
|
52
|
-
template: `
|
|
53
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
54
|
-
|
|
55
|
-
<div
|
|
56
|
-
*ngIf="control"
|
|
57
|
-
class="range-item-container"
|
|
58
|
-
fxLayout="row"
|
|
59
|
-
fxLayoutAlign="start center"
|
|
60
|
-
fxLayoutGap="8px"
|
|
61
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
62
|
-
>
|
|
63
|
-
<mtna-wf-date-item
|
|
64
|
-
[control]="control.controls['start']"
|
|
65
|
-
[format]="item.format"
|
|
66
|
-
[item]="_startItem"
|
|
67
|
-
[rangeLimits]="item.rangeLimits"
|
|
68
|
-
[readonly]="readonly"
|
|
69
|
-
></mtna-wf-date-item>
|
|
70
|
-
<span fxFlex="14px"> to </span>
|
|
71
|
-
<mtna-wf-date-item
|
|
72
|
-
[control]="control.controls['end']"
|
|
73
|
-
[format]="item.format"
|
|
74
|
-
[item]="_endItem"
|
|
75
|
-
[rangeLimits]="item.rangeLimits"
|
|
76
|
-
[readonly]="readonly"
|
|
77
|
-
></mtna-wf-date-item>
|
|
78
|
-
</div>
|
|
79
|
-
`,
|
|
80
|
-
encapsulation: ViewEncapsulation.None,
|
|
81
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
82
|
-
}]
|
|
83
|
-
}] });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1yYW5nZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93ZWItZm9ybS1hbmd1bGFyL3NyYy9saWIvZm9ybS1pdGVtLWNvbnRyb2xzL2RhdGUtcmFuZ2UuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFLdEYsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sb0NBQW9DLENBQUM7Ozs7OztBQW1DekUsTUFBTSxPQUFPLHdCQUF5QixTQUFRLG1CQUFtRDtJQUMvRixJQUFJLElBQUk7UUFDTixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUM7SUFDcEIsQ0FBQztJQUNELElBQUksSUFBSSxDQUFDLElBQXlCO1FBQ2hDLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDO1FBQ2xCLDJEQUEyRDtRQUMzRCxJQUFJLENBQUMsVUFBVSxtQ0FBUSxJQUFJLEtBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsU0FBUyxHQUFFLENBQUM7UUFDaEUsSUFBSSxDQUFDLFFBQVEsbUNBQVEsSUFBSSxLQUFFLEtBQUssRUFBRSxLQUFL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PblB1c2gsXG59KVxuZXhwb3J0IGNsYXNzIE10bmFXZkRhdGVSYW5nZUNvbXBvbmVudCBleHRlbmRzIEJhc2VGb3JtSXRlbUNvbnRyb2w8T2Zmc2V0RGF0ZVJhbmdlSXRlbSwgRm9ybUdyb3VwPiB7XG4gIGdldCBpdGVtKCk6IE9mZnNldERhdGVSYW5nZUl0ZW0ge1xuICAgIHJldHVybiB0aGlzLl9pdGVtO1xuICB9XG4gIHNldCBpdGVtKGl0ZW06IE9mZnNldERhdGVSYW5nZUl0ZW0pIHtcbiAgICB0aGlzLl9pdGVtID0gaXRlbTtcbiAgICAvLyBDcmVhdGUgZmFrZSBpdGVtcyBmb3IgdGhlIHVuZGVybHlpbmcgZGF0ZS1pdGVtIGNvbXBvbmVudFxuICAgIHRoaXMuX3N0YXJ0SXRlbSA9IHsgLi4uaXRlbSwgbGFiZWw6ICdTdGFydCcsIHZhbHVlOiB1bmRlZmluZWQgfTtcbiAgICB0aGlzLl9lbmRJdGVtID0geyAuLi5pdGVtLCBsYWJlbDogJ0VuZCcsIHZhbHVlOiB1bmRlZmluZWQgfTtcbiAgfVxuXG4gIF9zdGFydEl0ZW0hOiBEYXRlSXRlbTtcbiAgX2VuZEl0ZW0hOiBEYXRlSXRlbTtcbn1cbiJdfQ==
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Input, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { MatDatepicker } from '@angular/material/datepicker';
|
|
3
|
-
import { BaseFormItemControl } from './base-form-item-control.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@mtna/core-angular";
|
|
6
|
-
import * as i2 from "@angular/material/form-field";
|
|
7
|
-
import * as i3 from "@angular/material/datepicker";
|
|
8
|
-
import * as i4 from "@angular/common";
|
|
9
|
-
import * as i5 from "@angular/material/input";
|
|
10
|
-
import * as i6 from "@angular/forms";
|
|
11
|
-
import * as i7 from "../core/pipes/get-form-control-error.pipe";
|
|
12
|
-
export class MtnaWfDateComponent extends BaseFormItemControl {
|
|
13
|
-
constructor(logger) {
|
|
14
|
-
super();
|
|
15
|
-
this.dateItemClass = true;
|
|
16
|
-
this._format = 'YYYY-MM-DD';
|
|
17
|
-
this.rangeLimits = { end: null, start: null };
|
|
18
|
-
// We need to check to ensure 'moment' & 'moment-jdateformatparser' scripts have been added to angular.json so that
|
|
19
|
-
// the DateFormItemComponent doesn't break when attempting to format SimpleDateFormat string to Moment format string
|
|
20
|
-
MtnaWfDateComponent.dateFormItemComponentInstances++;
|
|
21
|
-
if (MtnaWfDateComponent.dateFormItemComponentInstances === 1) {
|
|
22
|
-
try {
|
|
23
|
-
if (!!moment && typeof moment().toMomentFormatString !== 'function') {
|
|
24
|
-
logger.error(`[DateFormItemComponent] constructor
|
|
25
|
-
- Cannot find moment-jdateformatparser, make sure to install the dependency and add the script in angular.json, i.e.
|
|
26
|
-
"scripts": ["node_modules/moment-jdateformatparser/moment-jdateformatparser.min.js"]`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
catch (e) {
|
|
30
|
-
logger.error(`[DateFormItemComponent] constructor
|
|
31
|
-
- Cannot find moment.js, make sure to install the dependency and add the script in angular.json, i.e.
|
|
32
|
-
"scripts": ["node_modules/moment/min/moment.min.js"]`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
get format() {
|
|
37
|
-
return this._format;
|
|
38
|
-
}
|
|
39
|
-
set format(f) {
|
|
40
|
-
if (f) {
|
|
41
|
-
this._format = f;
|
|
42
|
-
// Update configuration anytime the formatter changes
|
|
43
|
-
this.configureDatePickerFormatter();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
ngAfterViewInit() {
|
|
47
|
-
this.configureDatePickerFormatter();
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Manually change the parse and display formats of the date picker.
|
|
51
|
-
* @see https://github.com/angular/components/issues/8355#issuecomment-376783293
|
|
52
|
-
*/
|
|
53
|
-
configureDatePickerFormatter() {
|
|
54
|
-
if (this.picker) {
|
|
55
|
-
const datepickerInput = this.picker.datepickerInput;
|
|
56
|
-
// @ts-ignore: access the private date formats on the date picker
|
|
57
|
-
const d = JSON.parse(JSON.stringify(datepickerInput._dateFormats));
|
|
58
|
-
// Convert the Java SimpleDateFormat to the moment equivalents using moment-jdateformatparser
|
|
59
|
-
const momentFormatString = moment().toMomentFormatString(this.format);
|
|
60
|
-
// Use the converted format for the date picker display
|
|
61
|
-
d.display.dateInput = momentFormatString;
|
|
62
|
-
// Use the converted format for the date picker parser (user input)
|
|
63
|
-
d.parse.dateInput = momentFormatString;
|
|
64
|
-
// @ts-ignore: set the updated date formats
|
|
65
|
-
datepickerInput._dateFormats = d;
|
|
66
|
-
// @ts-ignore: manually format the current value in the date picker
|
|
67
|
-
datepickerInput._formatValue(datepickerInput.value);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
MtnaWfDateComponent.dateFormItemComponentInstances = 0;
|
|
72
|
-
MtnaWfDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfDateComponent, deps: [{ token: i1.MtnaLogger }], target: i0.ɵɵFactoryTarget.Component });
|
|
73
|
-
MtnaWfDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDateComponent, selector: "mtna-wf-date-item", inputs: { format: "format", rangeLimits: "rangeLimits" }, host: { properties: { "class.mtna-wf-date-item": "this.dateItemClass" } }, viewQueries: [{ propertyName: "picker", first: true, predicate: MatDatepicker, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
74
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
75
|
-
<mat-form-field *ngIf="control" appearance="outline" [mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader">
|
|
76
|
-
<mat-label>{{ item.label || 'Date' }}</mat-label>
|
|
77
|
-
<input
|
|
78
|
-
matInput
|
|
79
|
-
[matDatepicker]="picker"
|
|
80
|
-
[formControl]="$any(control)"
|
|
81
|
-
[max]="rangeLimits?.end"
|
|
82
|
-
[min]="rangeLimits?.start"
|
|
83
|
-
placeholder="Choose a date"
|
|
84
|
-
[required]="item.required"
|
|
85
|
-
/>
|
|
86
|
-
<mat-datepicker-toggle matSuffix [for]="picker" [disabled]="readonly || control.disabled"></mat-datepicker-toggle>
|
|
87
|
-
<mat-datepicker #picker></mat-datepicker>
|
|
88
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
89
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
90
|
-
</mat-error>
|
|
91
|
-
<mat-hint>{{ item?.format || format }}</mat-hint>
|
|
92
|
-
</mat-form-field>
|
|
93
|
-
`, isInline: true, styles: [".mtna-wf-control-item .mat-form-field{width:100%}.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}\n"], components: [{ type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["tabIndex", "disabled", "for", "aria-label", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { type: i3.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }], directives: [{ type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i2.MatLabel, selector: "mat-label" }, { type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i3.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2.MatSuffix, selector: "[matSuffix]" }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }], pipes: { "keyvalue": i4.KeyValuePipe, "mtnaWfGetControlError": i7.MtnaGetFormControlErrorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfDateComponent, decorators: [{
|
|
95
|
-
type: Component,
|
|
96
|
-
args: [{
|
|
97
|
-
selector: 'mtna-wf-date-item',
|
|
98
|
-
template: `
|
|
99
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
100
|
-
<mat-form-field *ngIf="control" appearance="outline" [mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader">
|
|
101
|
-
<mat-label>{{ item.label || 'Date' }}</mat-label>
|
|
102
|
-
<input
|
|
103
|
-
matInput
|
|
104
|
-
[matDatepicker]="picker"
|
|
105
|
-
[formControl]="$any(control)"
|
|
106
|
-
[max]="rangeLimits?.end"
|
|
107
|
-
[min]="rangeLimits?.start"
|
|
108
|
-
placeholder="Choose a date"
|
|
109
|
-
[required]="item.required"
|
|
110
|
-
/>
|
|
111
|
-
<mat-datepicker-toggle matSuffix [for]="picker" [disabled]="readonly || control.disabled"></mat-datepicker-toggle>
|
|
112
|
-
<mat-datepicker #picker></mat-datepicker>
|
|
113
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
114
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
115
|
-
</mat-error>
|
|
116
|
-
<mat-hint>{{ item?.format || format }}</mat-hint>
|
|
117
|
-
</mat-form-field>
|
|
118
|
-
`,
|
|
119
|
-
styleUrls: [`form-control.scss`],
|
|
120
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
121
|
-
encapsulation: ViewEncapsulation.None,
|
|
122
|
-
}]
|
|
123
|
-
}], ctorParameters: function () { return [{ type: i1.MtnaLogger }]; }, propDecorators: { dateItemClass: [{
|
|
124
|
-
type: HostBinding,
|
|
125
|
-
args: ['class.mtna-wf-date-item']
|
|
126
|
-
}], format: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], rangeLimits: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], picker: [{
|
|
131
|
-
type: ViewChild,
|
|
132
|
-
args: [MatDatepicker, { static: false }]
|
|
133
|
-
}] } });
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2V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GxlRGF0ZUZvcm1hdCB0byB0aGUgbW9tZW50IGVxdWl2YWxlbnRzIHVzaW5nIG1vbWVudC1qZGF0ZWZvcm1hdHBhcnNlclxuICAgICAgY29uc3QgbW9tZW50Rm9ybWF0U3RyaW5nID0gbW9tZW50KCkudG9Nb21lbnRGb3JtYXRTdHJpbmcodGhpcy5mb3JtYXQpO1xuICAgICAgLy8gVXNlIHRoZSBjb252ZXJ0ZWQgZm9ybWF0IGZvciB0aGUgZGF0ZSBwaWNrZXIgZGlzcGxheVxuICAgICAgZC5kaXNwbGF5LmRhdGVJbnB1dCA9IG1vbWVudEZvcm1hdFN0cmluZztcbiAgICAgIC8vIFVzZSB0aGUgY29udmVydGVkIGZvcm1hdCBmb3IgdGhlIGRhdGUgcGlja2VyIHBhcnNlciAodXNlciBpbnB1dClcbiAgICAgIGQucGFyc2UuZGF0ZUlucHV0ID0gbW9tZW50Rm9ybWF0U3RyaW5nO1xuICAgICAgLy8gQHRzLWlnbm9yZTogc2V0IHRoZSB1cGRhdGVkIGRhdGUgZm9ybWF0c1xuICAgICAgZGF0ZXBpY2tlcklucHV0Ll9kYXRlRm9ybWF0cyA9IGQ7XG5cbiAgICAgIC8vIEB0cy1pZ25vcmU6IG1hbnVhbGx5IGZvcm1hdCB0aGUgY3VycmVudCB2YWx1ZSBpbiB0aGUgZGF0ZSBwaWNrZXJcbiAgICAgIGRhdGVwaWNrZXJJbnB1dC5fZm9ybWF0VmFsdWUoZGF0ZXBpY2tlcklucHV0LnZhbHVlKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { BaseSingleSelectionParent } from './base-single-selection-parent.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../core/services/ui.service";
|
|
5
|
-
import * as i2 from "@angular/material/form-field";
|
|
6
|
-
import * as i3 from "@angular/material/select";
|
|
7
|
-
import * as i4 from "@angular/material/core";
|
|
8
|
-
import * as i5 from "@angular/material/list";
|
|
9
|
-
import * as i6 from "@angular/material/icon";
|
|
10
|
-
import * as i7 from "@angular/common";
|
|
11
|
-
import * as i8 from "@mtna/core-angular";
|
|
12
|
-
import * as i9 from "@angular/forms";
|
|
13
|
-
import * as i10 from "../core/pipes/get-form-control-error.pipe";
|
|
14
|
-
import * as i11 from "../core/pipes/get-list-icon.pipe";
|
|
15
|
-
import * as i12 from "../core/pipes/get-selected-option.pipe";
|
|
16
|
-
export class MtnaWfDropdownComponent extends BaseSingleSelectionParent {
|
|
17
|
-
constructor(uiService) {
|
|
18
|
-
super(uiService);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
MtnaWfDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfDropdownComponent, deps: [{ token: i1.MtnaWfUIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
MtnaWfDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfDropdownComponent, selector: "mtna-wf-dropdown-item", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
-
<ng-container *ngTemplateOutlet="header; context: { $implicit: true }"></ng-container>
|
|
24
|
-
<mat-form-field
|
|
25
|
-
*ngIf="!readonly && !!control; else readOnly"
|
|
26
|
-
appearance="outline"
|
|
27
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
28
|
-
>
|
|
29
|
-
<mat-label>{{ item.label }}</mat-label>
|
|
30
|
-
<mat-select [formControl]="control" (selectionChange)="selectionChange($event)" [required]="item.required">
|
|
31
|
-
<mat-option *ngIf="!item.required">-- None --</mat-option>
|
|
32
|
-
<mat-option *ngFor="let opt of item.options" [value]="opt.option.id" [disabled]="control.value === opt.option.id">{{
|
|
33
|
-
opt.option.name
|
|
34
|
-
}}</mat-option>
|
|
35
|
-
</mat-select>
|
|
36
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
37
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
38
|
-
</mat-error>
|
|
39
|
-
</mat-form-field>
|
|
40
|
-
|
|
41
|
-
<ng-template #readOnly>
|
|
42
|
-
<ng-container *ngIf="inList; else fullList">
|
|
43
|
-
<mat-list-item *ngIf="item.required || !!item.value">
|
|
44
|
-
<mat-icon *ngIf="item.label | getListIcon as icon" matListIcon>{{ icon }}</mat-icon>
|
|
45
|
-
<h4 matLine>{{ item.label }}</h4>
|
|
46
|
-
<p matLine>{{ item.value || control?.value | mtnaWfGetSelectedOptionName : item.options }}</p>
|
|
47
|
-
</mat-list-item>
|
|
48
|
-
</ng-container>
|
|
49
|
-
|
|
50
|
-
<ng-template #fullList>
|
|
51
|
-
<mat-list>
|
|
52
|
-
<mat-list-item *ngIf="item.required || !!item.value">
|
|
53
|
-
<mat-icon *ngIf="item.label | getListIcon as icon" matListIcon>{{ icon }}</mat-icon>
|
|
54
|
-
<h4 matLine>{{ item.label }}</h4>
|
|
55
|
-
<p matLine>{{ item.value || control?.value | mtnaWfGetSelectedOptionName : item.options }}</p>
|
|
56
|
-
</mat-list-item>
|
|
57
|
-
</mat-list>
|
|
58
|
-
</ng-template>
|
|
59
|
-
</ng-template>
|
|
60
|
-
`, isInline: true, styles: [".mtna-wf-control-item .mat-form-field{width:100%}.mtna-wf-control-item .mtna-wf-error-container{font-size:75%;line-height:1;min-height:1em;margin-top:-.75rem}.mtna-wf-control-item .control-item-content{padding:.35em .75em .625em}.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list){padding-left:.75em}.mtna-wf-control-item .mtna-wf-item-header~:not(.mtna-wf-error-container):not(.mat-list).mat-form-field{width:calc(100% - .75em)}\n"], components: [{ type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i5.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }], directives: [{ type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i2.MatLabel, selector: "mat-label" }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.MatError, selector: "mat-error", inputs: ["id"] }, { type: i5.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }, { type: i4.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "keyvalue": i7.KeyValuePipe, "mtnaWfGetControlError": i10.MtnaGetFormControlErrorPipe, "getListIcon": i11.GetListIconPipe, "mtnaWfGetSelectedOptionName": i12.MtnaWfGetSelectedOptionNamePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfDropdownComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{
|
|
64
|
-
selector: 'mtna-wf-dropdown-item',
|
|
65
|
-
template: `
|
|
66
|
-
<ng-container *ngTemplateOutlet="header; context: { $implicit: true }"></ng-container>
|
|
67
|
-
<mat-form-field
|
|
68
|
-
*ngIf="!readonly && !!control; else readOnly"
|
|
69
|
-
appearance="outline"
|
|
70
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
71
|
-
>
|
|
72
|
-
<mat-label>{{ item.label }}</mat-label>
|
|
73
|
-
<mat-select [formControl]="control" (selectionChange)="selectionChange($event)" [required]="item.required">
|
|
74
|
-
<mat-option *ngIf="!item.required">-- None --</mat-option>
|
|
75
|
-
<mat-option *ngFor="let opt of item.options" [value]="opt.option.id" [disabled]="control.value === opt.option.id">{{
|
|
76
|
-
opt.option.name
|
|
77
|
-
}}</mat-option>
|
|
78
|
-
</mat-select>
|
|
79
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
80
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
81
|
-
</mat-error>
|
|
82
|
-
</mat-form-field>
|
|
83
|
-
|
|
84
|
-
<ng-template #readOnly>
|
|
85
|
-
<ng-container *ngIf="inList; else fullList">
|
|
86
|
-
<mat-list-item *ngIf="item.required || !!item.value">
|
|
87
|
-
<mat-icon *ngIf="item.label | getListIcon as icon" matListIcon>{{ icon }}</mat-icon>
|
|
88
|
-
<h4 matLine>{{ item.label }}</h4>
|
|
89
|
-
<p matLine>{{ item.value || control?.value | mtnaWfGetSelectedOptionName : item.options }}</p>
|
|
90
|
-
</mat-list-item>
|
|
91
|
-
</ng-container>
|
|
92
|
-
|
|
93
|
-
<ng-template #fullList>
|
|
94
|
-
<mat-list>
|
|
95
|
-
<mat-list-item *ngIf="item.required || !!item.value">
|
|
96
|
-
<mat-icon *ngIf="item.label | getListIcon as icon" matListIcon>{{ icon }}</mat-icon>
|
|
97
|
-
<h4 matLine>{{ item.label }}</h4>
|
|
98
|
-
<p matLine>{{ item.value || control?.value | mtnaWfGetSelectedOptionName : item.options }}</p>
|
|
99
|
-
</mat-list-item>
|
|
100
|
-
</mat-list>
|
|
101
|
-
</ng-template>
|
|
102
|
-
</ng-template>
|
|
103
|
-
`,
|
|
104
|
-
styleUrls: [`form-control.scss`],
|
|
105
|
-
encapsulation: ViewEncapsulation.None,
|
|
106
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
107
|
-
}]
|
|
108
|
-
}], ctorParameters: function () { return [{ type: i1.MtnaWfUIService }]; } });
|
|
109
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd2ViLWZvcm0tYW5ndWxhci9zcmMvbGliL2Zvcm0taXRlbS1jb250cm9scy9kcm9wZG93bi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUt0RixPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7QUErQ3JGLE1BQU0sT0FBTyx1QkFBd0IsU0FBUSx5QkFBdUM7SUFDbEYsWUFBWSxTQUEwQjtRQUNwQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDbkIsQ0FBQzs7cUhBSFUsdUJBQXVCO3lHQUF2Qix1QkFBdUIsb0ZBM0N4Qjs7Ozs7Ozs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8L25nLXRlbXBsYXRlPlxuICAgIDwvbmctdGVtcGxhdGU+XG4gIGAsXG4gIHN0eWxlVXJsczogW2Bmb3JtLWNvbnRyb2wuc2Nzc2BdLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgTXRuYVdmRHJvcGRvd25Db21wb25lbnQgZXh0ZW5kcyBCYXNlU2luZ2xlU2VsZWN0aW9uUGFyZW50PERyb3Bkb3duSXRlbT4ge1xuICBjb25zdHJ1Y3Rvcih1aVNlcnZpY2U6IE10bmFXZlVJU2VydmljZSkge1xuICAgIHN1cGVyKHVpU2VydmljZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './base-form-item-control.directive';
|
|
2
|
-
export * from './date.component';
|
|
3
|
-
export * from './date-range.component';
|
|
4
|
-
export * from './dropdown.component';
|
|
5
|
-
export * from './input.component';
|
|
6
|
-
export * from './year-quarter.component';
|
|
7
|
-
export * from './year-quarter-range.component';
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93ZWItZm9ybS1hbmd1bGFyL3NyYy9saWIvZm9ybS1pdGVtLWNvbnRyb2xzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsZ0NBQWdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Jhc2UtZm9ybS1pdGVtLWNvbnRyb2wuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vZGF0ZS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9kYXRlLXJhbmdlLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2Ryb3Bkb3duLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2lucHV0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3llYXItcXVhcnRlci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi95ZWFyLXF1YXJ0ZXItcmFuZ2UuY29tcG9uZW50JztcbiJdfQ==
|