@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,149 +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 "@angular/material/form-field";
|
|
5
|
-
import * as i2 from "@angular/material/list";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
import * as i4 from "@mtna/core-angular";
|
|
8
|
-
import * as i5 from "@angular/material/input";
|
|
9
|
-
import * as i6 from "@angular/forms";
|
|
10
|
-
import * as i7 from "@angular/material/core";
|
|
11
|
-
import * as i8 from "../core/pipes/get-auto-complete.pipe";
|
|
12
|
-
import * as i9 from "../core/pipes/get-form-control-error.pipe";
|
|
13
|
-
export class MtnaWfInputComponent extends BaseFormItemControl {
|
|
14
|
-
constructor(elementRef) {
|
|
15
|
-
super();
|
|
16
|
-
this.elementRef = elementRef;
|
|
17
|
-
this.isParagraph = this._hasHostAttributes('mtnaWfParagraphItem');
|
|
18
|
-
this.isNumberInput = this._hasHostAttributes('mtnaWfDecimalItem', 'mtnaWfWholeNumberItem');
|
|
19
|
-
}
|
|
20
|
-
_hasHostAttributes(...attributes) {
|
|
21
|
-
return attributes.some((attr) => this.elementRef.nativeElement.hasAttribute(attr));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
MtnaWfInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfInputComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
MtnaWfInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfInputComponent, selector: "mtna-wf-input-item[mtnaWfDecimalItem],\n mtna-wf-input-item[mtnaWfParagraphItem],\n mtna-wf-input-item[mtnaWfShortAnswerItem],\n mtna-wf-input-item[mtnaWfWholeNumberItem],", usesInheritance: true, ngImport: i0, template: `
|
|
26
|
-
<ng-container *ngTemplateOutlet="header; context: { $implicit: true }"></ng-container>
|
|
27
|
-
<mat-form-field
|
|
28
|
-
*ngIf="!readonly && !!control; else readOnly"
|
|
29
|
-
appearance="outline"
|
|
30
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
31
|
-
>
|
|
32
|
-
<mat-label>{{ item.label }}</mat-label>
|
|
33
|
-
<textarea
|
|
34
|
-
*ngIf="isParagraph; else shortInput"
|
|
35
|
-
matInput
|
|
36
|
-
[formControl]="control"
|
|
37
|
-
[required]="item.required"
|
|
38
|
-
[attr.autocomplete]="item.label || item.name | getAutoComplete"
|
|
39
|
-
cdkTextareaAutoSize
|
|
40
|
-
cdkAutosizeMinRows="3"
|
|
41
|
-
cdkAutosizeMaxRows="5"
|
|
42
|
-
></textarea>
|
|
43
|
-
|
|
44
|
-
<ng-template #shortInput>
|
|
45
|
-
<input matInput [formControl]="control!" [autocomplete]="item.label || item.name | getAutoComplete" [required]="item.required" />
|
|
46
|
-
</ng-template>
|
|
47
|
-
|
|
48
|
-
<mat-error *ngFor="let error of control.errors | keyvalue | slice : 0 : 1">
|
|
49
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
50
|
-
</mat-error>
|
|
51
|
-
</mat-form-field>
|
|
52
|
-
|
|
53
|
-
<!-- READONLY -->
|
|
54
|
-
<ng-template #readOnly>
|
|
55
|
-
<ng-container *ngTemplateOutlet="inList ? listItem : fullList"></ng-container>
|
|
56
|
-
</ng-template>
|
|
57
|
-
|
|
58
|
-
<ng-template #fullList>
|
|
59
|
-
<mat-list>
|
|
60
|
-
<ng-container *ngTemplateOutlet="listItem"></ng-container>
|
|
61
|
-
</mat-list>
|
|
62
|
-
</ng-template>
|
|
63
|
-
|
|
64
|
-
<ng-template #listItem>
|
|
65
|
-
<mat-list-item class="wrappable-list-item">
|
|
66
|
-
<!-- <mat-icon *ngIf="item.label || item.header as label" matListIcon>{{ label | getListIcon }}</mat-icon> -->
|
|
67
|
-
<h4 *ngIf="!item.questionText && (item.label || item.name) as label" mat-line>{{ label }}</h4>
|
|
68
|
-
<p mat-line class="wrap-line">{{ item.value || 'No Information Provided' }}</p>
|
|
69
|
-
</mat-list-item>
|
|
70
|
-
</ng-template>
|
|
71
|
-
`, 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", "\n mtna-wf-input-item .mat-list-base .mat-list-item,\n mtna-wf-input-item .mat-list-base .mat-list-item.mat-list-item-with-avatar {\n height: auto;\n padding: 12px 0;\n }\n mtna-wf-input-item .mat-list-base .mat-list-item.mat-2-line,\n mtna-wf-input-item .mat-list-base .mat-list-item.mat-2-line.mat-list-item-with-avatar {\n padding: 18.5px 0;\n }\n mtna-wf-input-item .mat-list-base .mat-list-item .mat-line {\n white-space: normal;\n overflow: unset;\n text-overflow: unset;\n }\n "], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }], directives: [{ type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i1.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: 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: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i7.MatLine, selector: "[mat-line], [matLine]" }], pipes: { "getAutoComplete": i8.GetAutoCompletePipe, "slice": i3.SlicePipe, "keyvalue": i3.KeyValuePipe, "mtnaWfGetControlError": i9.MtnaGetFormControlErrorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfInputComponent, decorators: [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{
|
|
75
|
-
selector: `mtna-wf-input-item[mtnaWfDecimalItem],
|
|
76
|
-
mtna-wf-input-item[mtnaWfParagraphItem],
|
|
77
|
-
mtna-wf-input-item[mtnaWfShortAnswerItem],
|
|
78
|
-
mtna-wf-input-item[mtnaWfWholeNumberItem],`,
|
|
79
|
-
template: `
|
|
80
|
-
<ng-container *ngTemplateOutlet="header; context: { $implicit: true }"></ng-container>
|
|
81
|
-
<mat-form-field
|
|
82
|
-
*ngIf="!readonly && !!control; else readOnly"
|
|
83
|
-
appearance="outline"
|
|
84
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
85
|
-
>
|
|
86
|
-
<mat-label>{{ item.label }}</mat-label>
|
|
87
|
-
<textarea
|
|
88
|
-
*ngIf="isParagraph; else shortInput"
|
|
89
|
-
matInput
|
|
90
|
-
[formControl]="control"
|
|
91
|
-
[required]="item.required"
|
|
92
|
-
[attr.autocomplete]="item.label || item.name | getAutoComplete"
|
|
93
|
-
cdkTextareaAutoSize
|
|
94
|
-
cdkAutosizeMinRows="3"
|
|
95
|
-
cdkAutosizeMaxRows="5"
|
|
96
|
-
></textarea>
|
|
97
|
-
|
|
98
|
-
<ng-template #shortInput>
|
|
99
|
-
<input matInput [formControl]="control!" [autocomplete]="item.label || item.name | getAutoComplete" [required]="item.required" />
|
|
100
|
-
</ng-template>
|
|
101
|
-
|
|
102
|
-
<mat-error *ngFor="let error of control.errors | keyvalue | slice : 0 : 1">
|
|
103
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
104
|
-
</mat-error>
|
|
105
|
-
</mat-form-field>
|
|
106
|
-
|
|
107
|
-
<!-- READONLY -->
|
|
108
|
-
<ng-template #readOnly>
|
|
109
|
-
<ng-container *ngTemplateOutlet="inList ? listItem : fullList"></ng-container>
|
|
110
|
-
</ng-template>
|
|
111
|
-
|
|
112
|
-
<ng-template #fullList>
|
|
113
|
-
<mat-list>
|
|
114
|
-
<ng-container *ngTemplateOutlet="listItem"></ng-container>
|
|
115
|
-
</mat-list>
|
|
116
|
-
</ng-template>
|
|
117
|
-
|
|
118
|
-
<ng-template #listItem>
|
|
119
|
-
<mat-list-item class="wrappable-list-item">
|
|
120
|
-
<!-- <mat-icon *ngIf="item.label || item.header as label" matListIcon>{{ label | getListIcon }}</mat-icon> -->
|
|
121
|
-
<h4 *ngIf="!item.questionText && (item.label || item.name) as label" mat-line>{{ label }}</h4>
|
|
122
|
-
<p mat-line class="wrap-line">{{ item.value || 'No Information Provided' }}</p>
|
|
123
|
-
</mat-list-item>
|
|
124
|
-
</ng-template>
|
|
125
|
-
`,
|
|
126
|
-
styleUrls: [`form-control.scss`],
|
|
127
|
-
styles: [
|
|
128
|
-
`
|
|
129
|
-
mtna-wf-input-item .mat-list-base .mat-list-item,
|
|
130
|
-
mtna-wf-input-item .mat-list-base .mat-list-item.mat-list-item-with-avatar {
|
|
131
|
-
height: auto;
|
|
132
|
-
padding: 12px 0;
|
|
133
|
-
}
|
|
134
|
-
mtna-wf-input-item .mat-list-base .mat-list-item.mat-2-line,
|
|
135
|
-
mtna-wf-input-item .mat-list-base .mat-list-item.mat-2-line.mat-list-item-with-avatar {
|
|
136
|
-
padding: 18.5px 0;
|
|
137
|
-
}
|
|
138
|
-
mtna-wf-input-item .mat-list-base .mat-list-item .mat-line {
|
|
139
|
-
white-space: normal;
|
|
140
|
-
overflow: unset;
|
|
141
|
-
text-overflow: unset;
|
|
142
|
-
}
|
|
143
|
-
`,
|
|
144
|
-
],
|
|
145
|
-
encapsulation: ViewEncapsulation.None,
|
|
146
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
147
|
-
}]
|
|
148
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
149
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd2ViLWZvcm0tYW5ndWxhci9zcmMvbGliL2Zvcm0taXRlbS1jb250cm9scy9pbnB1dC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBYyxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUtsRyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQzs7Ozs7Ozs7Ozs7QUE0RXpFLE1BQU0sT0FBTyxvQkFFWCxTQUFRLG1CQUFtQztJQUkzQyxZQUFzQixVQUFzQjtRQUMxQyxLQUFLLEVBQUUsQ0FBQztRQURZLGVBQVUsR0FBVixVQUFVLENBQVk7UUFIbkMsZ0JBQVcsR0FB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PiB7XG4gIHJlYWRvbmx5IGlzUGFyYWdyYXBoID0gdGhpcy5faGFzSG9zdEF0dHJpYnV0ZXMoJ210bmFXZlBhcmFncmFwaEl0ZW0nKTtcbiAgcmVhZG9ubHkgaXNOdW1iZXJJbnB1dCA9IHRoaXMuX2hhc0hvc3RBdHRyaWJ1dGVzKCdtdG5hV2ZEZWNpbWFsSXRlbScsICdtdG5hV2ZXaG9sZU51bWJlckl0ZW0nKTtcblxuICBjb25zdHJ1Y3Rvcihwcm90ZWN0ZWQgZWxlbWVudFJlZjogRWxlbWVudFJlZikge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBwcml2YXRlIF9oYXNIb3N0QXR0cmlidXRlcyguLi5hdHRyaWJ1dGVzOiBzdHJpbmdbXSkge1xuICAgIHJldHVybiBhdHRyaWJ1dGVzLnNvbWUoKGF0dHIpID0+ICh0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuaGFzQXR0cmlidXRlKGF0dHIpKTtcbiAgfVxufVxuIl19
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, 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 "./year-quarter.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 MtnaWfYearQuarterRangeComponent extends BaseFormItemControl {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.yearQuarterRangeClass = true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
MtnaWfYearQuarterRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfYearQuarterRangeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
MtnaWfYearQuarterRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfYearQuarterRangeComponent, selector: "mtna-wf-year-quarter-range-item", host: { properties: { "class.mtna-wf-year-quarter-range-item": "this.yearQuarterRangeClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
16
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
17
|
-
|
|
18
|
-
<div
|
|
19
|
-
*ngIf="control"
|
|
20
|
-
class="range-item-container"
|
|
21
|
-
fxLayout="row"
|
|
22
|
-
fxLayoutAlign="start center"
|
|
23
|
-
fxLayoutGap="8px"
|
|
24
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
25
|
-
>
|
|
26
|
-
<mtna-wf-year-quarter-item
|
|
27
|
-
[control]="control.controls['start']"
|
|
28
|
-
[readonly]="readonly"
|
|
29
|
-
[rangeLimits]="item.rangeLimits"
|
|
30
|
-
></mtna-wf-year-quarter-item>
|
|
31
|
-
<span fxFlex="14px">to</span>
|
|
32
|
-
<mtna-wf-year-quarter-item
|
|
33
|
-
[control]="control.controls['end']"
|
|
34
|
-
[readonly]="readonly"
|
|
35
|
-
[rangeLimits]="item.rangeLimits"
|
|
36
|
-
></mtna-wf-year-quarter-item>
|
|
37
|
-
</div>
|
|
38
|
-
`, 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: i1.MtnaWfYearQuarterComponent, selector: "mtna-wf-year-quarter-item", inputs: ["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 });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfYearQuarterRangeComponent, decorators: [{
|
|
40
|
-
type: Component,
|
|
41
|
-
args: [{
|
|
42
|
-
selector: 'mtna-wf-year-quarter-range-item',
|
|
43
|
-
template: `
|
|
44
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
45
|
-
|
|
46
|
-
<div
|
|
47
|
-
*ngIf="control"
|
|
48
|
-
class="range-item-container"
|
|
49
|
-
fxLayout="row"
|
|
50
|
-
fxLayoutAlign="start center"
|
|
51
|
-
fxLayoutGap="8px"
|
|
52
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
53
|
-
>
|
|
54
|
-
<mtna-wf-year-quarter-item
|
|
55
|
-
[control]="control.controls['start']"
|
|
56
|
-
[readonly]="readonly"
|
|
57
|
-
[rangeLimits]="item.rangeLimits"
|
|
58
|
-
></mtna-wf-year-quarter-item>
|
|
59
|
-
<span fxFlex="14px">to</span>
|
|
60
|
-
<mtna-wf-year-quarter-item
|
|
61
|
-
[control]="control.controls['end']"
|
|
62
|
-
[readonly]="readonly"
|
|
63
|
-
[rangeLimits]="item.rangeLimits"
|
|
64
|
-
></mtna-wf-year-quarter-item>
|
|
65
|
-
</div>
|
|
66
|
-
`,
|
|
67
|
-
styleUrls: [`form-control.scss`],
|
|
68
|
-
encapsulation: ViewEncapsulation.None,
|
|
69
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
70
|
-
}]
|
|
71
|
-
}], propDecorators: { yearQuarterRangeClass: [{
|
|
72
|
-
type: HostBinding,
|
|
73
|
-
args: ['class.mtna-wf-year-quarter-range-item']
|
|
74
|
-
}] } });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVhci1xdWFydGVyLXJhbmdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dlYi1mb3JtLWFuZ3VsYXIvc3JjL2xpYi9mb3JtLWl0ZW0tY29udHJvbHMveWVhci1xdWFydGVyLXJhbmdlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxP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1xdWFydGVyLWl0ZW0+XG4gICAgPC9kaXY+XG4gIGAsXG4gIHN0eWxlVXJsczogW2Bmb3JtLWNvbnRyb2wuc2Nzc2BdLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgTXRuYVdmWWVhclF1YXJ0ZXJSYW5nZUNvbXBvbmVudCBleHRlbmRzIEJhc2VGb3JtSXRlbUNvbnRyb2w8WWVhclF1YXJ0ZXJSYW5nZUl0ZW0sIEZvcm1Hcm91cD4ge1xuICBASG9zdEJpbmRpbmcoJ2NsYXNzLm10bmEtd2YteWVhci1xdWFydGVyLXJhbmdlLWl0ZW0nKSB5ZWFyUXVhcnRlclJhbmdlQ2xhc3MgPSB0cnVlO1xufVxuIl19
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, Inject, InjectionToken, Input, Optional, ViewEncapsulation, } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { isPresent } from '@mtna/core-ts';
|
|
4
|
-
import { merge, Subject } from 'rxjs';
|
|
5
|
-
import { takeUntil } from 'rxjs/operators';
|
|
6
|
-
import { BaseFormItemControl } from './base-form-item-control.directive';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/form-field";
|
|
9
|
-
import * as i2 from "@angular/material/select";
|
|
10
|
-
import * as i3 from "@angular/material/core";
|
|
11
|
-
import * as i4 from "@angular/common";
|
|
12
|
-
import * as i5 from "@angular/flex-layout/flex";
|
|
13
|
-
import * as i6 from "@mtna/core-angular";
|
|
14
|
-
import * as i7 from "@angular/forms";
|
|
15
|
-
import * as i8 from "../core/pipes/get-form-control-error.pipe";
|
|
16
|
-
import * as i9 from "../core/pipes/get-available-quarters.pipe";
|
|
17
|
-
import * as i10 from "../core/pipes/date-quarter.pipe";
|
|
18
|
-
export const MTNA_WF_DEFAULT_YEAR_RANGE = new InjectionToken('mtna.wf.default.year.range');
|
|
19
|
-
export class MtnaWfYearQuarterComponent extends BaseFormItemControl {
|
|
20
|
-
constructor(defaultYearRange) {
|
|
21
|
-
super();
|
|
22
|
-
this.yearQuarterItemClass = true;
|
|
23
|
-
this._quarterControl = new FormControl();
|
|
24
|
-
this._yearControl = new FormControl();
|
|
25
|
-
this._yearSelection = new Array();
|
|
26
|
-
this.destroyObs = new Subject();
|
|
27
|
-
/**
|
|
28
|
-
* Sets the quarter value to `null` if the year & quarter is out of bounds of the range limits.
|
|
29
|
-
* Otherwise, returns original value
|
|
30
|
-
*
|
|
31
|
-
* @param value `[number, number]` The selected [year, quarter] value
|
|
32
|
-
* @returns `[number, number]` The original [year, quarter] value OR [year, null]
|
|
33
|
-
*/
|
|
34
|
-
this.withinRangeLimits = ([year, quarter]) => {
|
|
35
|
-
var _a, _b;
|
|
36
|
-
const beyondUpperLimit =
|
|
37
|
-
// year matches end year range limit
|
|
38
|
-
year === ((_a = this.rangeLimits) === null || _a === void 0 ? void 0 : _a.end.year) &&
|
|
39
|
-
// quarter limit was provided
|
|
40
|
-
isPresent(this.rangeLimits.end.quarter) &&
|
|
41
|
-
// selected quarter is beyond quarter limit
|
|
42
|
-
quarter > this.rangeLimits.end.quarter;
|
|
43
|
-
const beyondLowerLimit =
|
|
44
|
-
// year matches start year range limit
|
|
45
|
-
year === ((_b = this.rangeLimits) === null || _b === void 0 ? void 0 : _b.start.year) &&
|
|
46
|
-
// quarter limit was provided
|
|
47
|
-
isPresent(this.rangeLimits.start.quarter) &&
|
|
48
|
-
// selected quarter is beyond quarter limit
|
|
49
|
-
quarter < this.rangeLimits.start.quarter;
|
|
50
|
-
if (beyondLowerLimit || beyondUpperLimit) {
|
|
51
|
-
this._quarterControl.setValue(null, { emitEvent: false });
|
|
52
|
-
return [year, null];
|
|
53
|
-
}
|
|
54
|
-
return [year, quarter];
|
|
55
|
-
};
|
|
56
|
-
this.defaultYearRange = defaultYearRange || { numFutureYears: 25, numPastYears: 25 };
|
|
57
|
-
}
|
|
58
|
-
ngAfterViewInit() {
|
|
59
|
-
if (!this.readonly) {
|
|
60
|
-
// Observe Year & Quarter value changes && set them on the item's control
|
|
61
|
-
merge(this._yearControl.valueChanges, this._quarterControl.valueChanges)
|
|
62
|
-
.pipe(takeUntil(this.destroyObs))
|
|
63
|
-
.subscribe(() => {
|
|
64
|
-
var _a, _b, _c, _d;
|
|
65
|
-
if (!((_a = this.control) === null || _a === void 0 ? void 0 : _a.dirty) && (this._yearControl.dirty || this._quarterControl.dirty)) {
|
|
66
|
-
(_b = this.control) === null || _b === void 0 ? void 0 : _b.markAsDirty();
|
|
67
|
-
(_c = this.control) === null || _c === void 0 ? void 0 : _c.markAsTouched();
|
|
68
|
-
}
|
|
69
|
-
if (isPresent(this._yearControl.value)) {
|
|
70
|
-
const [year, quarter] = this.withinRangeLimits([this._yearControl.value, this._quarterControl.value]);
|
|
71
|
-
(_d = this.control) === null || _d === void 0 ? void 0 : _d.setValue({ year, quarter });
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
// FIXME not sure we need this until we starting making this control
|
|
75
|
-
// required/unrequired at the right time. Even then, this is super inneficient
|
|
76
|
-
/*
|
|
77
|
-
// Listen to this control for disabling local controls
|
|
78
|
-
this.control.statusChanges
|
|
79
|
-
.pipe(
|
|
80
|
-
startWith(this.control.status),
|
|
81
|
-
takeUntil(this.destroyObs)
|
|
82
|
-
)
|
|
83
|
-
.subscribe(status => {
|
|
84
|
-
console.warn('statusChanges', status, this.control);
|
|
85
|
-
// if this control is enabled, enable local controls if disabled
|
|
86
|
-
if (this.control.enabled) {
|
|
87
|
-
if (this._quarterControl.disabled || this._yearControl.disabled) {
|
|
88
|
-
console.warn('[YearQuarterItem] enable the things');
|
|
89
|
-
// this._quarterControl.enable();
|
|
90
|
-
// this._yearControl.enable();
|
|
91
|
-
}
|
|
92
|
-
// else this control is disabled, so disable local controls if enabled
|
|
93
|
-
} else if (this._quarterControl.enabled || this._yearControl.enabled) {
|
|
94
|
-
console.warn('[YearQuarterItem] disable the things');
|
|
95
|
-
// this._yearControl.disable();
|
|
96
|
-
// this._quarterControl.disable();
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
*/
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
ngOnDestroy() {
|
|
103
|
-
this.destroyObs.next();
|
|
104
|
-
this.destroyObs.complete();
|
|
105
|
-
}
|
|
106
|
-
ngOnInit() {
|
|
107
|
-
var _a, _b, _c;
|
|
108
|
-
// Set any initial value onto the Year & Quarter controls
|
|
109
|
-
this._yearControl.setValue(((_a = this.control) === null || _a === void 0 ? void 0 : _a.value) ? this.control.value.year : null);
|
|
110
|
-
this._quarterControl.setValue(((_b = this.control) === null || _b === void 0 ? void 0 : _b.value) ? this.control.value.quarter : null);
|
|
111
|
-
// Create range limits if none exist
|
|
112
|
-
if (!this.rangeLimits) {
|
|
113
|
-
const thisYear = new Date().getFullYear();
|
|
114
|
-
this.rangeLimits = {
|
|
115
|
-
start: {
|
|
116
|
-
year: thisYear - this.defaultYearRange.numPastYears,
|
|
117
|
-
quarter: null,
|
|
118
|
-
},
|
|
119
|
-
end: {
|
|
120
|
-
year: thisYear + this.defaultYearRange.numFutureYears,
|
|
121
|
-
quarter: null,
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
// Populate the year selection
|
|
126
|
-
for (let i = this.rangeLimits.start.year || 0; i <= (this.rangeLimits.end.year || 0); i++) {
|
|
127
|
-
this._yearSelection.push(i);
|
|
128
|
-
}
|
|
129
|
-
if (this.readonly) {
|
|
130
|
-
(_c = this.control) === null || _c === void 0 ? void 0 : _c.disable();
|
|
131
|
-
this._quarterControl.disable();
|
|
132
|
-
this._yearControl.disable();
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
MtnaWfYearQuarterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfYearQuarterComponent, deps: [{ token: MTNA_WF_DEFAULT_YEAR_RANGE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
137
|
-
MtnaWfYearQuarterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfYearQuarterComponent, selector: "mtna-wf-year-quarter-item", inputs: { rangeLimits: "rangeLimits" }, host: { properties: { "class.mtna-wf-year-quarter-item": "this.yearQuarterItemClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
138
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
139
|
-
<div
|
|
140
|
-
*ngIf="control"
|
|
141
|
-
class="year-quarter-container"
|
|
142
|
-
fxLayout="row"
|
|
143
|
-
fxLayoutGap="8px"
|
|
144
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
145
|
-
>
|
|
146
|
-
<mat-form-field>
|
|
147
|
-
<mat-select [formControl]="_yearControl" aria-label="year selection">
|
|
148
|
-
<mat-option *ngFor="let year of _yearSelection" [value]="year">{{ year }}</mat-option>
|
|
149
|
-
</mat-select>
|
|
150
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
151
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
152
|
-
</mat-error>
|
|
153
|
-
</mat-form-field>
|
|
154
|
-
|
|
155
|
-
<mat-form-field>
|
|
156
|
-
<mat-select [formControl]="_quarterControl" aria-label="quarter selection">
|
|
157
|
-
<mat-option>None</mat-option>
|
|
158
|
-
<mat-option *ngFor="let quarter of _yearControl.value | mtnaWfGetQuarters : rangeLimits" [value]="quarter">{{
|
|
159
|
-
$any(quarter) | mtnaWfDateQuarter : 'short'
|
|
160
|
-
}}</mat-option>
|
|
161
|
-
</mat-select>
|
|
162
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
163
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
164
|
-
</mat-error>
|
|
165
|
-
</mat-form-field>
|
|
166
|
-
</div>
|
|
167
|
-
`, 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", "\n .mtna-wf-year-quarter-item .year-quarter-container > .mat-form-field {\n max-width: 75px;\n }\n .mtna-wf-year-quarter-item .year-quarter-container > .mat-form-field:first-of-type {\n margin-right: 8px;\n }\n "], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.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: i5.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: i6.MtnaHighlightDirective, selector: "[mtnaHighlight]", inputs: ["mtnaHighlight", "mtnaHighlightColor"], exportAs: ["mtnaHighlight"] }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatError, selector: "mat-error", inputs: ["id"] }], pipes: { "keyvalue": i4.KeyValuePipe, "mtnaWfGetControlError": i8.MtnaGetFormControlErrorPipe, "mtnaWfGetQuarters": i9.MtnaWfGetAvailableQuartersPipe, "mtnaWfDateQuarter": i10.DateQuarterPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfYearQuarterComponent, decorators: [{
|
|
169
|
-
type: Component,
|
|
170
|
-
args: [{
|
|
171
|
-
selector: 'mtna-wf-year-quarter-item',
|
|
172
|
-
template: `
|
|
173
|
-
<ng-container *ngTemplateOutlet="header"></ng-container>
|
|
174
|
-
<div
|
|
175
|
-
*ngIf="control"
|
|
176
|
-
class="year-quarter-container"
|
|
177
|
-
fxLayout="row"
|
|
178
|
-
fxLayoutGap="8px"
|
|
179
|
-
[mtnaHighlight]="indicatorStatus === 'ACTIVE' && !hasItemHeader"
|
|
180
|
-
>
|
|
181
|
-
<mat-form-field>
|
|
182
|
-
<mat-select [formControl]="_yearControl" aria-label="year selection">
|
|
183
|
-
<mat-option *ngFor="let year of _yearSelection" [value]="year">{{ year }}</mat-option>
|
|
184
|
-
</mat-select>
|
|
185
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
186
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
187
|
-
</mat-error>
|
|
188
|
-
</mat-form-field>
|
|
189
|
-
|
|
190
|
-
<mat-form-field>
|
|
191
|
-
<mat-select [formControl]="_quarterControl" aria-label="quarter selection">
|
|
192
|
-
<mat-option>None</mat-option>
|
|
193
|
-
<mat-option *ngFor="let quarter of _yearControl.value | mtnaWfGetQuarters : rangeLimits" [value]="quarter">{{
|
|
194
|
-
$any(quarter) | mtnaWfDateQuarter : 'short'
|
|
195
|
-
}}</mat-option>
|
|
196
|
-
</mat-select>
|
|
197
|
-
<mat-error *ngFor="let error of control.errors | keyvalue">
|
|
198
|
-
{{ error | mtnaWfGetControlError : item }}
|
|
199
|
-
</mat-error>
|
|
200
|
-
</mat-form-field>
|
|
201
|
-
</div>
|
|
202
|
-
`,
|
|
203
|
-
styleUrls: [`form-control.scss`],
|
|
204
|
-
styles: [
|
|
205
|
-
`
|
|
206
|
-
.mtna-wf-year-quarter-item .year-quarter-container > .mat-form-field {
|
|
207
|
-
max-width: 75px;
|
|
208
|
-
}
|
|
209
|
-
.mtna-wf-year-quarter-item .year-quarter-container > .mat-form-field:first-of-type {
|
|
210
|
-
margin-right: 8px;
|
|
211
|
-
}
|
|
212
|
-
`,
|
|
213
|
-
],
|
|
214
|
-
encapsulation: ViewEncapsulation.None,
|
|
215
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
216
|
-
}]
|
|
217
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
218
|
-
type: Optional
|
|
219
|
-
}, {
|
|
220
|
-
type: Inject,
|
|
221
|
-
args: [MTNA_WF_DEFAULT_YEAR_RANGE]
|
|
222
|
-
}] }]; }, propDecorators: { yearQuarterItemClass: [{
|
|
223
|
-
type: HostBinding,
|
|
224
|
-
args: ['class.mtna-wf-year-quarter-item']
|
|
225
|
-
}], rangeLimits: [{
|
|
226
|
-
type: Input
|
|
227
|
-
}] } });
|
|
228
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVhci1xdWFydGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dlYi1mb3JtLWFuZ3VsYXIvc3JjL2xpYi9mb3JtLWl0ZW0tY29udHJvbHMveWVhci1xdWFydGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxXQUFXLEVBQ1gsTUFBTSxFQUNOLGNBQWMsRUFDZCxLQUFLLEVBR0wsUUFBUSxFQUNSLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcxQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUF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
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { mixinColor } from '@angular/material/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./form-step.component";
|
|
5
|
-
import * as i2 from "@angular/material/divider";
|
|
6
|
-
import * as i3 from "@angular/material/button";
|
|
7
|
-
import * as i4 from "@angular/material/icon";
|
|
8
|
-
import * as i5 from "@angular/common";
|
|
9
|
-
import * as i6 from "@angular/material/tooltip";
|
|
10
|
-
/* eslint-disable @angular-eslint/no-inputs-metadata-property */
|
|
11
|
-
const _FormStepMixinBase = mixinColor(class {
|
|
12
|
-
constructor(_elementRef) {
|
|
13
|
-
this._elementRef = _elementRef;
|
|
14
|
-
}
|
|
15
|
-
}, 'primary');
|
|
16
|
-
export class MtnaWfFormStepGroupComponent extends _FormStepMixinBase {
|
|
17
|
-
constructor(elementRef) {
|
|
18
|
-
super(elementRef);
|
|
19
|
-
/** Whether all but the first step is hidden*/
|
|
20
|
-
this.collapsed = false;
|
|
21
|
-
this._steps = [];
|
|
22
|
-
this.selected = new EventEmitter();
|
|
23
|
-
}
|
|
24
|
-
/** Steps to be displayed */
|
|
25
|
-
get steps() {
|
|
26
|
-
return this._steps;
|
|
27
|
-
}
|
|
28
|
-
set steps(steps) {
|
|
29
|
-
this._steps = steps;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
MtnaWfFormStepGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfFormStepGroupComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
-
MtnaWfFormStepGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MtnaWfFormStepGroupComponent, selector: "mtna-wf-step-group", inputs: { color: "color", collapsed: "collapsed", incompleteIcon: "incompleteIcon", steps: "steps" }, outputs: { selected: "selected" }, usesInheritance: true, ngImport: i0, template: `
|
|
34
|
-
<ng-container *ngFor="let step of steps | slice : 0 : (collapsed ? 1 : steps.length); let last = last">
|
|
35
|
-
<mtna-wf-step
|
|
36
|
-
[clickable]="step.status !== 'DISABLED'"
|
|
37
|
-
[color]="color"
|
|
38
|
-
[incompleteIcon]="incompleteIcon"
|
|
39
|
-
[step]="step"
|
|
40
|
-
(click)="selected.emit(step)"
|
|
41
|
-
></mtna-wf-step>
|
|
42
|
-
<mat-divider *ngIf="!last" [vertical]="true"></mat-divider>
|
|
43
|
-
<p *ngIf="collapsed" class="show-more mat-caption">and {{ steps.length - 1 }} more...</p>
|
|
44
|
-
</ng-container>
|
|
45
|
-
<button
|
|
46
|
-
mat-icon-button
|
|
47
|
-
class="collapse-button"
|
|
48
|
-
[color]="color"
|
|
49
|
-
(click)="collapsed = !collapsed"
|
|
50
|
-
[matTooltip]="collapsed ? 'View All' : 'Hide'"
|
|
51
|
-
>
|
|
52
|
-
<mat-icon>{{ collapsed ? 'expand_more' : 'expand_less' }}</mat-icon>
|
|
53
|
-
</button>
|
|
54
|
-
`, isInline: true, styles: ["mtna-wf-step-group{border-style:solid;border-radius:4px;border-width:1px;display:block;margin:4px 4px 16px 8px;padding-bottom:16px;position:relative}mtna-wf-step-group .collapse-button{bottom:-19px;left:calc(50% - 20px);position:absolute;z-index:10}mtna-wf-step-group .collapse-button:after{bottom:8px;content:\"\";height:12px;left:calc(50% - 16px);position:absolute;width:32px;z-index:-1}mtna-wf-step-group mtna-wf-step li{padding-left:8px}mtna-wf-step-group mat-divider.mat-divider{margin-left:20px}mtna-wf-step-group .show-more{margin:0;text-align:center}\n"], components: [{ type: i1.MtnaWfFormStepComponent, selector: "mtna-wf-step", inputs: ["color", "step", "clickable", "incompleteIcon"] }, { type: i2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "slice": i5.SlicePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MtnaWfFormStepGroupComponent, decorators: [{
|
|
56
|
-
type: Component,
|
|
57
|
-
args: [{
|
|
58
|
-
selector: 'mtna-wf-step-group',
|
|
59
|
-
template: `
|
|
60
|
-
<ng-container *ngFor="let step of steps | slice : 0 : (collapsed ? 1 : steps.length); let last = last">
|
|
61
|
-
<mtna-wf-step
|
|
62
|
-
[clickable]="step.status !== 'DISABLED'"
|
|
63
|
-
[color]="color"
|
|
64
|
-
[incompleteIcon]="incompleteIcon"
|
|
65
|
-
[step]="step"
|
|
66
|
-
(click)="selected.emit(step)"
|
|
67
|
-
></mtna-wf-step>
|
|
68
|
-
<mat-divider *ngIf="!last" [vertical]="true"></mat-divider>
|
|
69
|
-
<p *ngIf="collapsed" class="show-more mat-caption">and {{ steps.length - 1 }} more...</p>
|
|
70
|
-
</ng-container>
|
|
71
|
-
<button
|
|
72
|
-
mat-icon-button
|
|
73
|
-
class="collapse-button"
|
|
74
|
-
[color]="color"
|
|
75
|
-
(click)="collapsed = !collapsed"
|
|
76
|
-
[matTooltip]="collapsed ? 'View All' : 'Hide'"
|
|
77
|
-
>
|
|
78
|
-
<mat-icon>{{ collapsed ? 'expand_more' : 'expand_less' }}</mat-icon>
|
|
79
|
-
</button>
|
|
80
|
-
`,
|
|
81
|
-
styleUrls: ['form-step-group.component.scss'],
|
|
82
|
-
inputs: ['color'],
|
|
83
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
84
|
-
encapsulation: ViewEncapsulation.None,
|
|
85
|
-
}]
|
|
86
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { collapsed: [{
|
|
87
|
-
type: Input
|
|
88
|
-
}], incompleteIcon: [{
|
|
89
|
-
type: Input
|
|
90
|
-
}], steps: [{
|
|
91
|
-
type: Input
|
|
92
|
-
}], selected: [{
|
|
93
|
-
type: Output
|
|
94
|
-
}] } });
|
|
95
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1zdGVwLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dlYi1mb3JtLWFuZ3VsYXIvc3JjL2xpYi9mb3JtLXN0ZXBwZXIvZm9ybS1zdGVwLWdyb3VwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9ILE9BQU8sRUFBWSxVQUFVLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQzs7Ozs7Ozs7QUFJOUQsZ0VBQWdFO0FBQ2hFLE1BQU0sa0JBQWtCLEdBQUcsVUFBVSxDQUNuQztJQUNFLFlBQW1CLFdBQXVCO1FBQXZCLGdCQUFXLEdBQVgsV0FBVyxDQUFZO0lBQUcsQ0FBQztDQUMvQyxFQUNELFN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