@ptsecurity/mosaic 12.0.2 → 12.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +475 -101
- package/_visual.scss +131 -13
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +18 -20
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +15 -17
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +17 -19
- package/bundles/ptsecurity-mosaic-button.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +11 -13
- package/bundles/ptsecurity-mosaic-card.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +14 -16
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +259 -172
- package/bundles/ptsecurity-mosaic-core.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +47 -48
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +231 -26
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +11 -13
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +67 -59
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +737 -738
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +14 -16
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +45 -33
- package/bundles/ptsecurity-mosaic-input.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +11 -13
- package/bundles/ptsecurity-mosaic-link.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +177 -89
- package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +52 -44
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +46 -43
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +215 -34
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +12 -14
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +12 -14
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +14 -16
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +22 -24
- package/bundles/ptsecurity-mosaic-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +17 -19
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +62 -58
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +31 -21
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +11 -13
- package/bundles/ptsecurity-mosaic-table.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +150 -74
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +28 -29
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +12 -14
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +16 -17
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +11 -13
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +72 -23
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +24 -29
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +1018 -261
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic.umd.js +2 -2
- package/core/option/action.d.ts +42 -0
- package/core/option/index.d.ts +1 -0
- package/core/option/option-module.d.ts +4 -3
- package/core/pop-up/pop-up-trigger.d.ts +9 -12
- package/design-tokens/style-dictionary/build.js +6 -0
- package/design-tokens/style-dictionary/configs/index.js +2 -1
- package/design-tokens/tokens/components/badge.json5 +177 -7
- package/design-tokens/tokens/components/list.json5 +0 -4
- package/design-tokens/tokens/components/tree.json5 +3 -3
- package/design-tokens/tokens/properties/globals.json5 +1 -1
- package/design-tokens/tokens/properties/typography.json5 +16 -0
- package/design-tokens/tokens.d.ts +115 -13
- package/dropdown/dropdown-item.component.d.ts +1 -0
- package/dropdown/dropdown-trigger.directive.d.ts +3 -8
- package/dropdown/dropdown.component.d.ts +1 -0
- package/esm2015/autocomplete/autocomplete-origin.directive.js +4 -4
- package/esm2015/autocomplete/autocomplete-trigger.directive.js +4 -4
- package/esm2015/autocomplete/autocomplete.component.js +4 -4
- package/esm2015/autocomplete/autocomplete.module.js +5 -5
- package/esm2015/button/button.component.js +10 -10
- package/esm2015/button/button.module.js +5 -5
- package/esm2015/button-toggle/button-toggle.component.js +7 -7
- package/esm2015/button-toggle/button-toggle.module.js +5 -5
- package/esm2015/card/card.component.js +4 -4
- package/esm2015/card/card.module.js +5 -5
- package/esm2015/checkbox/checkbox-module.js +5 -5
- package/esm2015/checkbox/checkbox-required-validator.js +4 -4
- package/esm2015/checkbox/checkbox.js +4 -4
- package/esm2015/core/common-behaviors/common-module.js +5 -5
- package/esm2015/core/error/error-options.js +7 -7
- package/esm2015/core/formatters/date/formatter.js +6 -5
- package/esm2015/core/formatters/index.js +5 -5
- package/esm2015/core/formatters/number/formatter.js +5 -5
- package/esm2015/core/forms/forms-module.js +5 -5
- package/esm2015/core/forms/forms.directive.js +7 -7
- package/esm2015/core/highlight/highlight.pipe.js +4 -4
- package/esm2015/core/highlight/index.js +5 -5
- package/esm2015/core/line/line.js +8 -8
- package/esm2015/core/option/action.js +131 -0
- package/esm2015/core/option/index.js +2 -1
- package/esm2015/core/option/optgroup.js +4 -4
- package/esm2015/core/option/option-module.js +8 -7
- package/esm2015/core/option/option.js +4 -4
- package/esm2015/core/pop-up/pop-up-trigger.js +32 -64
- package/esm2015/core/pop-up/pop-up.js +4 -4
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +4 -4
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +5 -5
- package/esm2015/core/services/measure-scrollbar.service.js +4 -4
- package/esm2015/datepicker/calendar-body.component.js +4 -4
- package/esm2015/datepicker/calendar.component.js +7 -7
- package/esm2015/datepicker/datepicker-input.directive.js +6 -5
- package/esm2015/datepicker/datepicker-intl.js +4 -4
- package/esm2015/datepicker/datepicker-module.js +5 -5
- package/esm2015/datepicker/datepicker-toggle.component.js +7 -7
- package/esm2015/datepicker/datepicker.component.js +7 -7
- package/esm2015/datepicker/month-view.component.js +4 -4
- package/esm2015/datepicker/multi-year-view.component.js +4 -4
- package/esm2015/datepicker/year-view.component.js +4 -4
- package/esm2015/design-tokens/tokens.js +116 -14
- package/esm2015/divider/divider.component.js +4 -4
- package/esm2015/divider/divider.module.js +5 -5
- package/esm2015/dropdown/dropdown-content.directive.js +4 -4
- package/esm2015/dropdown/dropdown-item.component.js +11 -4
- package/esm2015/dropdown/dropdown-trigger.directive.js +39 -39
- package/esm2015/dropdown/dropdown.component.js +9 -5
- package/esm2015/dropdown/dropdown.module.js +5 -5
- package/esm2015/form-field/cleaner.js +9 -5
- package/esm2015/form-field/form-field.js +7 -7
- package/esm2015/form-field/form-field.module.js +5 -5
- package/esm2015/form-field/hint.js +4 -4
- package/esm2015/form-field/prefix.js +4 -4
- package/esm2015/form-field/stepper.js +4 -4
- package/esm2015/form-field/suffix.js +4 -4
- package/esm2015/icon/icon.component.js +7 -7
- package/esm2015/icon/icon.module.js +5 -5
- package/esm2015/input/input-number-validators.js +28 -14
- package/esm2015/input/input-number.js +4 -4
- package/esm2015/input/input.js +7 -7
- package/esm2015/input/input.module.js +5 -5
- package/esm2015/link/link.component.js +4 -4
- package/esm2015/link/link.module.js +5 -5
- package/esm2015/list/list-selection.component.js +155 -66
- package/esm2015/list/list.component.js +7 -7
- package/esm2015/list/list.module.js +5 -5
- package/esm2015/modal/css-unit.pipe.js +4 -4
- package/esm2015/modal/modal-control.service.js +4 -4
- package/esm2015/modal/modal.component.js +6 -4
- package/esm2015/modal/modal.directive.js +13 -13
- package/esm2015/modal/modal.module.js +9 -7
- package/esm2015/modal/modal.service.js +16 -9
- package/esm2015/navbar/navbar-item.component.js +21 -21
- package/esm2015/navbar/navbar.component.js +7 -7
- package/esm2015/navbar/navbar.module.js +5 -5
- package/esm2015/navbar/vertical-navbar.component.js +14 -9
- package/esm2015/popover/popover-confirm.component.js +116 -0
- package/esm2015/popover/popover.component.js +63 -20
- package/esm2015/popover/popover.module.js +13 -10
- package/esm2015/popover/public-api.js +2 -1
- package/esm2015/progress-bar/progress-bar.component.js +4 -4
- package/esm2015/progress-bar/progress-bar.module.js +5 -5
- package/esm2015/progress-spinner/progress-spinner.component.js +4 -4
- package/esm2015/progress-spinner/progress-spinner.module.js +5 -5
- package/esm2015/radio/radio.component.js +7 -7
- package/esm2015/radio/radio.module.js +5 -5
- package/esm2015/select/select.component.js +14 -14
- package/esm2015/select/select.module.js +5 -5
- package/esm2015/sidebar/sidebar.component.js +10 -10
- package/esm2015/sidebar/sidebar.module.js +5 -5
- package/esm2015/sidepanel/sidepanel-container.component.js +14 -13
- package/esm2015/sidepanel/sidepanel-directives.js +22 -18
- package/esm2015/sidepanel/sidepanel.module.js +12 -8
- package/esm2015/sidepanel/sidepanel.service.js +6 -5
- package/esm2015/splitter/splitter.component.js +24 -13
- package/esm2015/splitter/splitter.module.js +5 -5
- package/esm2015/table/table.component.js +4 -4
- package/esm2015/table/table.module.js +5 -5
- package/esm2015/tabs/paginated-tab-header.js +5 -5
- package/esm2015/tabs/tab-body.component.js +7 -7
- package/esm2015/tabs/tab-content.directive.js +4 -4
- package/esm2015/tabs/tab-group.component.js +56 -26
- package/esm2015/tabs/tab-header.component.js +4 -4
- package/esm2015/tabs/tab-label-wrapper.directive.js +21 -6
- package/esm2015/tabs/tab-label.directive.js +4 -4
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +7 -7
- package/esm2015/tabs/tab.component.js +36 -13
- package/esm2015/tabs/tabs.module.js +5 -5
- package/esm2015/tags/tag-input.js +4 -4
- package/esm2015/tags/tag-list.component.js +4 -4
- package/esm2015/tags/tag.component.js +14 -13
- package/esm2015/tags/tag.module.js +5 -5
- package/esm2015/textarea/textarea.component.js +4 -4
- package/esm2015/textarea/textarea.module.js +5 -5
- package/esm2015/timepicker/timepicker.directive.js +9 -8
- package/esm2015/timepicker/timepicker.module.js +5 -5
- package/esm2015/toggle/toggle.component.js +4 -4
- package/esm2015/toggle/toggle.module.js +5 -5
- package/esm2015/tooltip/tooltip.component.js +55 -16
- package/esm2015/tooltip/tooltip.module.js +5 -5
- package/esm2015/tree/control/base-tree-control.js +60 -0
- package/esm2015/tree/control/flat-tree-control.js +123 -0
- package/esm2015/tree/control/nested-tree-control.js +41 -0
- package/esm2015/tree/control/tree-control.js +2 -0
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/esm2015/tree/node.js +31 -0
- package/esm2015/tree/outlet.js +15 -0
- package/esm2015/tree/padding.directive.js +90 -23
- package/esm2015/tree/public-api.js +9 -2
- package/esm2015/tree/toggle.js +46 -52
- package/esm2015/tree/tree-base.js +243 -0
- package/esm2015/tree/tree-errors.js +36 -0
- package/esm2015/tree/tree-option.component.js +75 -32
- package/esm2015/tree/tree-selection.component.js +122 -73
- package/esm2015/tree/tree.js +23 -0
- package/esm2015/tree/tree.module.js +24 -13
- package/esm2015/tree-select/tree-select.component.js +11 -12
- package/esm2015/tree-select/tree-select.module.js +5 -9
- package/fesm2015/ptsecurity-mosaic-autocomplete.js +13 -13
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js +10 -10
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.js +13 -13
- package/fesm2015/ptsecurity-mosaic-button.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.js +7 -7
- package/fesm2015/ptsecurity-mosaic-card.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js +10 -10
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.js +231 -140
- package/fesm2015/ptsecurity-mosaic-core.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js +42 -41
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js +116 -14
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +7 -7
- package/fesm2015/ptsecurity-mosaic-divider.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js +63 -52
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +30 -27
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +10 -10
- package/fesm2015/ptsecurity-mosaic-icon.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.js +40 -26
- package/fesm2015/ptsecurity-mosaic-input.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.js +7 -7
- package/fesm2015/ptsecurity-mosaic-link.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.js +164 -76
- package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.js +46 -35
- package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +43 -38
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +179 -30
- package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js +7 -7
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +7 -7
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.js +10 -10
- package/fesm2015/ptsecurity-mosaic-radio.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.js +17 -17
- package/fesm2015/ptsecurity-mosaic-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js +13 -13
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js +50 -41
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +27 -16
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.js +7 -7
- package/fesm2015/ptsecurity-mosaic-table.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js +240 -174
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.js +23 -22
- package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js +7 -7
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js +12 -11
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js +7 -7
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +57 -18
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js +14 -18
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.js +874 -190
- package/fesm2015/ptsecurity-mosaic-tree.js.map +1 -1
- package/form-field/cleaner.d.ts +2 -0
- package/input/input-number-validators.d.ts +2 -2
- package/list/list-selection.component.d.ts +28 -6
- package/modal/modal.component.d.ts +2 -0
- package/modal/modal.module.d.ts +1 -1
- package/package.json +5 -5
- package/popover/popover-confirm.component.d.ts +33 -0
- package/popover/popover.component.d.ts +14 -4
- package/popover/popover.module.d.ts +6 -3
- package/popover/public-api.d.ts +1 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/select/select.component.d.ts +2 -7
- package/sidepanel/sidepanel-directives.d.ts +2 -0
- package/sidepanel/sidepanel.module.d.ts +2 -1
- package/splitter/splitter.component.d.ts +6 -3
- package/tabs/tab-group.component.d.ts +11 -4
- package/tabs/tab-label-wrapper.directive.d.ts +7 -1
- package/tabs/tab.component.d.ts +10 -4
- package/tooltip/tooltip.component.d.ts +12 -3
- package/tree/control/base-tree-control.d.ts +40 -0
- package/tree/control/flat-tree-control.d.ts +48 -0
- package/tree/control/nested-tree-control.d.ts +19 -0
- package/tree/control/tree-control.d.ts +44 -0
- package/tree/data-source/flat-data-source.d.ts +2 -1
- package/tree/node.d.ts +34 -0
- package/tree/outlet.d.ts +9 -0
- package/tree/padding.directive.d.ts +35 -7
- package/tree/public-api.d.ts +8 -1
- package/tree/toggle.d.ts +17 -17
- package/tree/tree-base.d.ts +97 -0
- package/tree/tree-errors.d.ts +25 -0
- package/tree/tree-option.component.d.ts +13 -5
- package/tree/tree-selection.component.d.ts +32 -13
- package/tree/tree.d.ts +6 -0
- package/tree/tree.module.d.ts +10 -8
- package/tree-select/tree-select.component.d.ts +2 -7
- package/tree-select/tree-select.module.d.ts +5 -6
- package/esm2015/tree/node.directive.js +0 -19
- package/tree/node.directive.d.ts +0 -7
@@ -1,789 +1,788 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
}(this, (function (exports, i1$1, i0, i1,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@ptsecurity/mosaic/icon'), require('@ptsecurity/mosaic/core'), require('@ptsecurity/cdk/keycodes'), require('rxjs'), require('rxjs/operators')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/form-field', ['exports', '@angular/common', '@angular/core', '@ptsecurity/mosaic/icon', '@ptsecurity/mosaic/core', '@ptsecurity/cdk/keycodes', 'rxjs', 'rxjs/operators'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic["form-field"] = {}), global.ng.common, global.ng.core, global.ptsecurity.mosaic.icon, global.ptsecurity.mosaic.core, global.mc.cdk.keycodes, global.rxjs, global.rxjs.operators));
|
5
|
+
})(this, (function (exports, i1$1, i0, i1, core, keycodes, rxjs, operators) { 'use strict';
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
});
|
20
|
-
}
|
21
|
-
});
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () { return e[k]; }
|
17
|
+
});
|
22
18
|
}
|
23
|
-
|
24
|
-
return Object.freeze(n);
|
19
|
+
});
|
25
20
|
}
|
21
|
+
n["default"] = e;
|
22
|
+
return Object.freeze(n);
|
23
|
+
}
|
26
24
|
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
26
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
27
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
30
28
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
48
|
-
|
29
|
+
var McCleaner = /** @class */ (function () {
|
30
|
+
function McCleaner() {
|
31
|
+
this.themePalette = core.ThemePalette;
|
32
|
+
}
|
33
|
+
return McCleaner;
|
34
|
+
}());
|
35
|
+
/** @nocollapse */ McCleaner.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCleaner, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
36
|
+
/** @nocollapse */ McCleaner.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McCleaner, selector: "mc-cleaner", host: { classAttribute: "mc-cleaner" }, exportAs: ["mcCleaner"], ngImport: i0__namespace, template: "<i class=\"mc-icon_light\" mc-icon=\"mc-close-circle_16\" [color]=\"themePalette.Primary\"></i>", isInline: true, components: [{ type: i1__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i1__namespace.McIconCSSStyler, selector: "[mc-icon]" }] });
|
37
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCleaner, decorators: [{
|
38
|
+
type: i0.Component,
|
39
|
+
args: [{
|
40
|
+
selector: 'mc-cleaner',
|
41
|
+
exportAs: 'mcCleaner',
|
42
|
+
template: "<i class=\"mc-icon_light\" mc-icon=\"mc-close-circle_16\" [color]=\"themePalette.Primary\"></i>",
|
43
|
+
host: {
|
44
|
+
class: 'mc-cleaner'
|
45
|
+
}
|
46
|
+
}]
|
47
|
+
}] });
|
49
48
|
|
50
|
-
|
51
|
-
|
49
|
+
/*! *****************************************************************************
|
50
|
+
Copyright (c) Microsoft Corporation.
|
52
51
|
|
53
|
-
|
54
|
-
|
52
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
53
|
+
purpose with or without fee is hereby granted.
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
return t;
|
89
|
-
};
|
90
|
-
return __assign.apply(this, arguments);
|
91
|
-
};
|
92
|
-
function __rest(s, e) {
|
93
|
-
var t = {};
|
94
|
-
for (var p in s)
|
95
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
96
|
-
t[p] = s[p];
|
97
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
98
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
99
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
100
|
-
t[p[i]] = s[p[i]];
|
101
|
-
}
|
55
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
56
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
57
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
58
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
59
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
60
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
61
|
+
PERFORMANCE OF THIS SOFTWARE.
|
62
|
+
***************************************************************************** */
|
63
|
+
/* global Reflect, Promise */
|
64
|
+
var extendStatics = function (d, b) {
|
65
|
+
extendStatics = Object.setPrototypeOf ||
|
66
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
67
|
+
function (d, b) { for (var p in b)
|
68
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
69
|
+
d[p] = b[p]; };
|
70
|
+
return extendStatics(d, b);
|
71
|
+
};
|
72
|
+
function __extends(d, b) {
|
73
|
+
if (typeof b !== "function" && b !== null)
|
74
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
75
|
+
extendStatics(d, b);
|
76
|
+
function __() { this.constructor = d; }
|
77
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
78
|
+
}
|
79
|
+
var __assign = function () {
|
80
|
+
__assign = Object.assign || function __assign(t) {
|
81
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
82
|
+
s = arguments[i];
|
83
|
+
for (var p in s)
|
84
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
85
|
+
t[p] = s[p];
|
86
|
+
}
|
102
87
|
return t;
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
116
|
-
}
|
117
|
-
function __metadata(metadataKey, metadataValue) {
|
118
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
119
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
120
|
-
}
|
121
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
122
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
123
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
124
|
-
function fulfilled(value) { try {
|
125
|
-
step(generator.next(value));
|
126
|
-
}
|
127
|
-
catch (e) {
|
128
|
-
reject(e);
|
129
|
-
} }
|
130
|
-
function rejected(value) { try {
|
131
|
-
step(generator["throw"](value));
|
132
|
-
}
|
133
|
-
catch (e) {
|
134
|
-
reject(e);
|
135
|
-
} }
|
136
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
137
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
138
|
-
});
|
139
|
-
}
|
140
|
-
function __generator(thisArg, body) {
|
141
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
142
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
143
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
144
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
145
|
-
function step(op) {
|
146
|
-
if (f)
|
147
|
-
throw new TypeError("Generator is already executing.");
|
148
|
-
while (_)
|
149
|
-
try {
|
150
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
151
|
-
return t;
|
152
|
-
if (y = 0, t)
|
153
|
-
op = [op[0] & 2, t.value];
|
154
|
-
switch (op[0]) {
|
155
|
-
case 0:
|
156
|
-
case 1:
|
157
|
-
t = op;
|
158
|
-
break;
|
159
|
-
case 4:
|
160
|
-
_.label++;
|
161
|
-
return { value: op[1], done: false };
|
162
|
-
case 5:
|
163
|
-
_.label++;
|
164
|
-
y = op[1];
|
165
|
-
op = [0];
|
166
|
-
continue;
|
167
|
-
case 7:
|
168
|
-
op = _.ops.pop();
|
169
|
-
_.trys.pop();
|
170
|
-
continue;
|
171
|
-
default:
|
172
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
173
|
-
_ = 0;
|
174
|
-
continue;
|
175
|
-
}
|
176
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
177
|
-
_.label = op[1];
|
178
|
-
break;
|
179
|
-
}
|
180
|
-
if (op[0] === 6 && _.label < t[1]) {
|
181
|
-
_.label = t[1];
|
182
|
-
t = op;
|
183
|
-
break;
|
184
|
-
}
|
185
|
-
if (t && _.label < t[2]) {
|
186
|
-
_.label = t[2];
|
187
|
-
_.ops.push(op);
|
188
|
-
break;
|
189
|
-
}
|
190
|
-
if (t[2])
|
191
|
-
_.ops.pop();
|
192
|
-
_.trys.pop();
|
193
|
-
continue;
|
194
|
-
}
|
195
|
-
op = body.call(thisArg, _);
|
196
|
-
}
|
197
|
-
catch (e) {
|
198
|
-
op = [6, e];
|
199
|
-
y = 0;
|
200
|
-
}
|
201
|
-
finally {
|
202
|
-
f = t = 0;
|
203
|
-
}
|
204
|
-
if (op[0] & 5)
|
205
|
-
throw op[1];
|
206
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
88
|
+
};
|
89
|
+
return __assign.apply(this, arguments);
|
90
|
+
};
|
91
|
+
function __rest(s, e) {
|
92
|
+
var t = {};
|
93
|
+
for (var p in s)
|
94
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
95
|
+
t[p] = s[p];
|
96
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
97
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
98
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
99
|
+
t[p[i]] = s[p[i]];
|
207
100
|
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
return { value: o && o[i++], done: !o };
|
233
|
-
}
|
234
|
-
};
|
235
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
236
|
-
}
|
237
|
-
function __read(o, n) {
|
238
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
239
|
-
if (!m)
|
240
|
-
return o;
|
241
|
-
var i = m.call(o), r, ar = [], e;
|
242
|
-
try {
|
243
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
244
|
-
ar.push(r.value);
|
101
|
+
return t;
|
102
|
+
}
|
103
|
+
function __decorate(decorators, target, key, desc) {
|
104
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
105
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
106
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
107
|
+
else
|
108
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
109
|
+
if (d = decorators[i])
|
110
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
111
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
112
|
+
}
|
113
|
+
function __param(paramIndex, decorator) {
|
114
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
115
|
+
}
|
116
|
+
function __metadata(metadataKey, metadataValue) {
|
117
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
118
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
119
|
+
}
|
120
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
121
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
122
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
123
|
+
function fulfilled(value) { try {
|
124
|
+
step(generator.next(value));
|
245
125
|
}
|
246
|
-
catch (
|
247
|
-
e
|
126
|
+
catch (e) {
|
127
|
+
reject(e);
|
128
|
+
} }
|
129
|
+
function rejected(value) { try {
|
130
|
+
step(generator["throw"](value));
|
248
131
|
}
|
249
|
-
|
132
|
+
catch (e) {
|
133
|
+
reject(e);
|
134
|
+
} }
|
135
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
136
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
137
|
+
});
|
138
|
+
}
|
139
|
+
function __generator(thisArg, body) {
|
140
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
141
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
142
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
143
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
144
|
+
function step(op) {
|
145
|
+
if (f)
|
146
|
+
throw new TypeError("Generator is already executing.");
|
147
|
+
while (_)
|
250
148
|
try {
|
251
|
-
if (
|
252
|
-
|
149
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
150
|
+
return t;
|
151
|
+
if (y = 0, t)
|
152
|
+
op = [op[0] & 2, t.value];
|
153
|
+
switch (op[0]) {
|
154
|
+
case 0:
|
155
|
+
case 1:
|
156
|
+
t = op;
|
157
|
+
break;
|
158
|
+
case 4:
|
159
|
+
_.label++;
|
160
|
+
return { value: op[1], done: false };
|
161
|
+
case 5:
|
162
|
+
_.label++;
|
163
|
+
y = op[1];
|
164
|
+
op = [0];
|
165
|
+
continue;
|
166
|
+
case 7:
|
167
|
+
op = _.ops.pop();
|
168
|
+
_.trys.pop();
|
169
|
+
continue;
|
170
|
+
default:
|
171
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
172
|
+
_ = 0;
|
173
|
+
continue;
|
174
|
+
}
|
175
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
176
|
+
_.label = op[1];
|
177
|
+
break;
|
178
|
+
}
|
179
|
+
if (op[0] === 6 && _.label < t[1]) {
|
180
|
+
_.label = t[1];
|
181
|
+
t = op;
|
182
|
+
break;
|
183
|
+
}
|
184
|
+
if (t && _.label < t[2]) {
|
185
|
+
_.label = t[2];
|
186
|
+
_.ops.push(op);
|
187
|
+
break;
|
188
|
+
}
|
189
|
+
if (t[2])
|
190
|
+
_.ops.pop();
|
191
|
+
_.trys.pop();
|
192
|
+
continue;
|
193
|
+
}
|
194
|
+
op = body.call(thisArg, _);
|
195
|
+
}
|
196
|
+
catch (e) {
|
197
|
+
op = [6, e];
|
198
|
+
y = 0;
|
253
199
|
}
|
254
200
|
finally {
|
255
|
-
|
256
|
-
throw e.error;
|
201
|
+
f = t = 0;
|
257
202
|
}
|
258
|
-
|
259
|
-
|
203
|
+
if (op[0] & 5)
|
204
|
+
throw op[1];
|
205
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
260
206
|
}
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
207
|
+
}
|
208
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
209
|
+
if (k2 === undefined)
|
210
|
+
k2 = k;
|
211
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
212
|
+
}) : (function (o, m, k, k2) {
|
213
|
+
if (k2 === undefined)
|
214
|
+
k2 = k;
|
215
|
+
o[k2] = m[k];
|
216
|
+
});
|
217
|
+
function __exportStar(m, o) {
|
218
|
+
for (var p in m)
|
219
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
220
|
+
__createBinding(o, m, p);
|
221
|
+
}
|
222
|
+
function __values(o) {
|
223
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
224
|
+
if (m)
|
225
|
+
return m.call(o);
|
226
|
+
if (o && typeof o.length === "number")
|
227
|
+
return {
|
228
|
+
next: function () {
|
229
|
+
if (o && i >= o.length)
|
230
|
+
o = void 0;
|
231
|
+
return { value: o && o[i++], done: !o };
|
284
232
|
}
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
297
|
-
function resume(n, v) { try {
|
298
|
-
step(g[n](v));
|
299
|
-
}
|
300
|
-
catch (e) {
|
301
|
-
settle(q[0][3], e);
|
302
|
-
} }
|
303
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
304
|
-
function fulfill(value) { resume("next", value); }
|
305
|
-
function reject(value) { resume("throw", value); }
|
306
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
307
|
-
resume(q[0][0], q[0][1]); }
|
308
|
-
}
|
309
|
-
function __asyncDelegator(o) {
|
310
|
-
var i, p;
|
311
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
312
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
233
|
+
};
|
234
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
235
|
+
}
|
236
|
+
function __read(o, n) {
|
237
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
238
|
+
if (!m)
|
239
|
+
return o;
|
240
|
+
var i = m.call(o), r, ar = [], e;
|
241
|
+
try {
|
242
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
243
|
+
ar.push(r.value);
|
313
244
|
}
|
314
|
-
|
315
|
-
|
316
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
317
|
-
var m = o[Symbol.asyncIterator], i;
|
318
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
319
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
320
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
245
|
+
catch (error) {
|
246
|
+
e = { error: error };
|
321
247
|
}
|
322
|
-
|
323
|
-
|
324
|
-
|
248
|
+
finally {
|
249
|
+
try {
|
250
|
+
if (r && !r.done && (m = i["return"]))
|
251
|
+
m.call(i);
|
325
252
|
}
|
326
|
-
|
327
|
-
|
253
|
+
finally {
|
254
|
+
if (e)
|
255
|
+
throw e.error;
|
328
256
|
}
|
329
|
-
return cooked;
|
330
257
|
}
|
331
|
-
;
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
258
|
+
return ar;
|
259
|
+
}
|
260
|
+
/** @deprecated */
|
261
|
+
function __spread() {
|
262
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
263
|
+
ar = ar.concat(__read(arguments[i]));
|
264
|
+
return ar;
|
265
|
+
}
|
266
|
+
/** @deprecated */
|
267
|
+
function __spreadArrays() {
|
268
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
269
|
+
s += arguments[i].length;
|
270
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
271
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
272
|
+
r[k] = a[j];
|
273
|
+
return r;
|
274
|
+
}
|
275
|
+
function __spreadArray(to, from, pack) {
|
276
|
+
if (pack || arguments.length === 2)
|
277
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
278
|
+
if (ar || !(i in from)) {
|
279
|
+
if (!ar)
|
280
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
281
|
+
ar[i] = from[i];
|
282
|
+
}
|
283
|
+
}
|
284
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
285
|
+
}
|
286
|
+
function __await(v) {
|
287
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
288
|
+
}
|
289
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
290
|
+
if (!Symbol.asyncIterator)
|
291
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
292
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
293
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
294
|
+
function verb(n) { if (g[n])
|
295
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
296
|
+
function resume(n, v) { try {
|
297
|
+
step(g[n](v));
|
347
298
|
}
|
348
|
-
|
349
|
-
|
299
|
+
catch (e) {
|
300
|
+
settle(q[0][3], e);
|
301
|
+
} }
|
302
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
303
|
+
function fulfill(value) { resume("next", value); }
|
304
|
+
function reject(value) { resume("throw", value); }
|
305
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
306
|
+
resume(q[0][0], q[0][1]); }
|
307
|
+
}
|
308
|
+
function __asyncDelegator(o) {
|
309
|
+
var i, p;
|
310
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
311
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
312
|
+
}
|
313
|
+
function __asyncValues(o) {
|
314
|
+
if (!Symbol.asyncIterator)
|
315
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
316
|
+
var m = o[Symbol.asyncIterator], i;
|
317
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
318
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
319
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
320
|
+
}
|
321
|
+
function __makeTemplateObject(cooked, raw) {
|
322
|
+
if (Object.defineProperty) {
|
323
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
350
324
|
}
|
351
|
-
|
352
|
-
|
353
|
-
throw new TypeError("Private accessor was defined without a getter");
|
354
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
355
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
356
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
325
|
+
else {
|
326
|
+
cooked.raw = raw;
|
357
327
|
}
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
328
|
+
return cooked;
|
329
|
+
}
|
330
|
+
;
|
331
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
332
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
333
|
+
}) : function (o, v) {
|
334
|
+
o["default"] = v;
|
335
|
+
};
|
336
|
+
function __importStar(mod) {
|
337
|
+
if (mod && mod.__esModule)
|
338
|
+
return mod;
|
339
|
+
var result = {};
|
340
|
+
if (mod != null)
|
341
|
+
for (var k in mod)
|
342
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
343
|
+
__createBinding(result, mod, k);
|
344
|
+
__setModuleDefault(result, mod);
|
345
|
+
return result;
|
346
|
+
}
|
347
|
+
function __importDefault(mod) {
|
348
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
349
|
+
}
|
350
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
351
|
+
if (kind === "a" && !f)
|
352
|
+
throw new TypeError("Private accessor was defined without a getter");
|
353
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
354
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
355
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
356
|
+
}
|
357
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
358
|
+
if (kind === "m")
|
359
|
+
throw new TypeError("Private method is not writable");
|
360
|
+
if (kind === "a" && !f)
|
361
|
+
throw new TypeError("Private accessor was defined without a setter");
|
362
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
363
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
364
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
365
|
+
}
|
366
|
+
|
367
|
+
/** An interface which allows a control to work inside of a `MсFormField`. */
|
368
|
+
// tslint:disable-next-line:naming-convention
|
369
|
+
var McFormFieldControl = /** @class */ (function () {
|
370
|
+
function McFormFieldControl() {
|
366
371
|
}
|
372
|
+
return McFormFieldControl;
|
373
|
+
}());
|
367
374
|
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
}());
|
375
|
+
function getMcFormFieldMissingControlError() {
|
376
|
+
return Error('mc-form-field must contain a McFormFieldControl.');
|
377
|
+
}
|
378
|
+
function getMcFormFieldYouCanNotUseCleanerInNumberInputError() {
|
379
|
+
return Error("You can't use mc-cleaner with input that have type=\"number\"");
|
380
|
+
}
|
375
381
|
|
376
|
-
|
377
|
-
|
382
|
+
var nextUniqueId$1 = 0;
|
383
|
+
var McHint = /** @class */ (function () {
|
384
|
+
function McHint() {
|
385
|
+
this.id = "mc-hint-" + nextUniqueId$1++;
|
378
386
|
}
|
379
|
-
|
380
|
-
|
387
|
+
return McHint;
|
388
|
+
}());
|
389
|
+
/** @nocollapse */ McHint.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHint, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
390
|
+
/** @nocollapse */ McHint.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McHint, selector: "mc-hint", inputs: { id: "id" }, host: { properties: { "attr.id": "id" }, classAttribute: "mc-hint" }, ngImport: i0__namespace });
|
391
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McHint, decorators: [{
|
392
|
+
type: i0.Directive,
|
393
|
+
args: [{
|
394
|
+
selector: 'mc-hint',
|
395
|
+
host: {
|
396
|
+
class: 'mc-hint',
|
397
|
+
'[attr.id]': 'id'
|
398
|
+
}
|
399
|
+
}]
|
400
|
+
}], propDecorators: { id: [{
|
401
|
+
type: i0.Input
|
402
|
+
}] } });
|
403
|
+
|
404
|
+
var McPrefix = /** @class */ (function () {
|
405
|
+
function McPrefix() {
|
381
406
|
}
|
407
|
+
return McPrefix;
|
408
|
+
}());
|
409
|
+
/** @nocollapse */ McPrefix.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPrefix, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
410
|
+
/** @nocollapse */ McPrefix.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McPrefix, selector: "[mcPrefix]", ngImport: i0__namespace });
|
411
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McPrefix, decorators: [{
|
412
|
+
type: i0.Directive,
|
413
|
+
args: [{
|
414
|
+
selector: '[mcPrefix]'
|
415
|
+
}]
|
416
|
+
}] });
|
382
417
|
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
418
|
+
var McStepper = /** @class */ (function () {
|
419
|
+
function McStepper() {
|
420
|
+
this.stepUp = new i0.EventEmitter();
|
421
|
+
this.stepDown = new i0.EventEmitter();
|
422
|
+
}
|
423
|
+
McStepper.prototype.connectTo = function (numberInput) {
|
424
|
+
if (!numberInput) {
|
425
|
+
return;
|
387
426
|
}
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
427
|
+
this.stepUp.subscribe(function () {
|
428
|
+
numberInput.stepUp(numberInput.step);
|
429
|
+
});
|
430
|
+
this.stepDown.subscribe(function () {
|
431
|
+
numberInput.stepDown(numberInput.step);
|
432
|
+
});
|
433
|
+
};
|
434
|
+
McStepper.prototype.onStepUp = function ($event) {
|
435
|
+
this.stepUp.emit();
|
436
|
+
$event.preventDefault();
|
437
|
+
};
|
438
|
+
McStepper.prototype.onStepDown = function ($event) {
|
439
|
+
this.stepDown.emit();
|
440
|
+
$event.preventDefault();
|
441
|
+
};
|
442
|
+
return McStepper;
|
443
|
+
}());
|
444
|
+
/** @nocollapse */ McStepper.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McStepper, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
445
|
+
/** @nocollapse */ McStepper.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McStepper, selector: "mc-stepper", outputs: { stepUp: "stepUp", stepDown: "stepDown" }, ngImport: i0__namespace, template: "\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-up mc-angle-down-L_16\"\n (mousedown)=\"onStepUp($event)\">\n </i>\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-down mc-angle-down-L_16\"\n (mousedown)=\"onStepDown($event)\">\n </i>\n ", isInline: true });
|
446
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McStepper, decorators: [{
|
447
|
+
type: i0.Component,
|
448
|
+
args: [{
|
449
|
+
selector: 'mc-stepper',
|
450
|
+
template: "\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-up mc-angle-down-L_16\"\n (mousedown)=\"onStepUp($event)\">\n </i>\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-down mc-angle-down-L_16\"\n (mousedown)=\"onStepDown($event)\">\n </i>\n "
|
451
|
+
}]
|
452
|
+
}], propDecorators: { stepUp: [{
|
453
|
+
type: i0.Output
|
454
|
+
}], stepDown: [{
|
455
|
+
type: i0.Output
|
456
|
+
}] } });
|
404
457
|
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
458
|
+
var McSuffix = /** @class */ (function () {
|
459
|
+
function McSuffix() {
|
460
|
+
}
|
461
|
+
return McSuffix;
|
462
|
+
}());
|
463
|
+
/** @nocollapse */ McSuffix.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McSuffix, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
464
|
+
/** @nocollapse */ McSuffix.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McSuffix, selector: "[mcSuffix]", ngImport: i0__namespace });
|
465
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McSuffix, decorators: [{
|
466
|
+
type: i0.Directive,
|
467
|
+
args: [{
|
468
|
+
selector: '[mcSuffix]'
|
469
|
+
}]
|
470
|
+
}] });
|
418
471
|
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
472
|
+
var nextUniqueId = 0;
|
473
|
+
var McFormFieldBase = /** @class */ (function () {
|
474
|
+
// tslint:disable-next-line:naming-convention
|
475
|
+
function McFormFieldBase(_elementRef) {
|
476
|
+
this._elementRef = _elementRef;
|
477
|
+
}
|
478
|
+
return McFormFieldBase;
|
479
|
+
}());
|
480
|
+
// tslint:disable-next-line:naming-convention
|
481
|
+
var McFormFieldMixinBase = core.mixinColor(McFormFieldBase);
|
482
|
+
var McFormField = /** @class */ (function (_super) {
|
483
|
+
__extends(McFormField, _super);
|
484
|
+
// tslint:disable-next-line:naming-convention
|
485
|
+
function McFormField(_elementRef, _changeDetectorRef) {
|
486
|
+
var _this = _super.call(this, _elementRef) || this;
|
487
|
+
_this._elementRef = _elementRef;
|
488
|
+
_this._changeDetectorRef = _changeDetectorRef;
|
489
|
+
// Unique id for the internal form field label.
|
490
|
+
_this.labelId = "mc-form-field-label-" + nextUniqueId++;
|
491
|
+
_this.hovered = false;
|
492
|
+
_this.canCleanerClearByEsc = true;
|
493
|
+
_this.$unsubscribe = new rxjs.Subject();
|
494
|
+
return _this;
|
495
|
+
}
|
496
|
+
Object.defineProperty(McFormField.prototype, "hasHint", {
|
497
|
+
get: function () {
|
498
|
+
return this.hint && this.hint.length > 0;
|
499
|
+
},
|
500
|
+
enumerable: false,
|
501
|
+
configurable: true
|
502
|
+
});
|
503
|
+
Object.defineProperty(McFormField.prototype, "hasSuffix", {
|
504
|
+
get: function () {
|
505
|
+
return this.suffix && this.suffix.length > 0;
|
506
|
+
},
|
507
|
+
enumerable: false,
|
508
|
+
configurable: true
|
509
|
+
});
|
510
|
+
Object.defineProperty(McFormField.prototype, "hasPrefix", {
|
511
|
+
get: function () {
|
512
|
+
return this.prefix && this.prefix.length > 0;
|
513
|
+
},
|
514
|
+
enumerable: false,
|
515
|
+
configurable: true
|
516
|
+
});
|
517
|
+
Object.defineProperty(McFormField.prototype, "hasCleaner", {
|
518
|
+
get: function () {
|
519
|
+
return !!this.cleaner;
|
520
|
+
},
|
521
|
+
enumerable: false,
|
522
|
+
configurable: true
|
523
|
+
});
|
524
|
+
Object.defineProperty(McFormField.prototype, "hasStepper", {
|
525
|
+
get: function () {
|
526
|
+
return !!this.stepper;
|
527
|
+
},
|
528
|
+
enumerable: false,
|
529
|
+
configurable: true
|
530
|
+
});
|
531
|
+
Object.defineProperty(McFormField.prototype, "canShowCleaner", {
|
532
|
+
get: function () {
|
533
|
+
return this.hasCleaner &&
|
534
|
+
this.control &&
|
535
|
+
this.control.ngControl
|
536
|
+
? this.control.ngControl.value && !this.control.disabled
|
537
|
+
: false;
|
538
|
+
},
|
539
|
+
enumerable: false,
|
540
|
+
configurable: true
|
541
|
+
});
|
542
|
+
Object.defineProperty(McFormField.prototype, "disabled", {
|
543
|
+
get: function () {
|
544
|
+
return this.control && this.control.disabled;
|
545
|
+
},
|
546
|
+
enumerable: false,
|
547
|
+
configurable: true
|
548
|
+
});
|
549
|
+
Object.defineProperty(McFormField.prototype, "canShowStepper", {
|
550
|
+
get: function () {
|
551
|
+
var _a;
|
552
|
+
return this.hasStepper &&
|
553
|
+
!this.disabled &&
|
554
|
+
(((_a = this.control) === null || _a === void 0 ? void 0 : _a.focused) || this.hovered);
|
555
|
+
},
|
556
|
+
enumerable: false,
|
557
|
+
configurable: true
|
558
|
+
});
|
559
|
+
McFormField.prototype.ngAfterContentInit = function () {
|
560
|
+
var _this = this;
|
561
|
+
if (this.control.numberInput && this.hasCleaner) {
|
562
|
+
this.cleaner = null;
|
563
|
+
throw getMcFormFieldYouCanNotUseCleanerInNumberInputError();
|
423
564
|
}
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
}
|
428
|
-
this.stepUp.subscribe(function () {
|
429
|
-
numberInput.stepUp(numberInput.step);
|
430
|
-
});
|
431
|
-
this.stepDown.subscribe(function () {
|
432
|
-
numberInput.stepDown(numberInput.step);
|
433
|
-
});
|
434
|
-
};
|
435
|
-
McStepper.prototype.onStepUp = function ($event) {
|
436
|
-
this.stepUp.emit();
|
437
|
-
$event.preventDefault();
|
438
|
-
};
|
439
|
-
McStepper.prototype.onStepDown = function ($event) {
|
440
|
-
this.stepDown.emit();
|
441
|
-
$event.preventDefault();
|
442
|
-
};
|
443
|
-
return McStepper;
|
444
|
-
}());
|
445
|
-
/** @nocollapse */ McStepper.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McStepper, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
446
|
-
/** @nocollapse */ McStepper.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McStepper, selector: "mc-stepper", outputs: { stepUp: "stepUp", stepDown: "stepDown" }, ngImport: i0__namespace, template: "\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-up mc-angle-down-L_16\"\n (mousedown)=\"onStepUp($event)\">\n </i>\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-down mc-angle-down-L_16\"\n (mousedown)=\"onStepDown($event)\">\n </i>\n ", isInline: true });
|
447
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McStepper, decorators: [{
|
448
|
-
type: i0.Component,
|
449
|
-
args: [{
|
450
|
-
selector: 'mc-stepper',
|
451
|
-
template: "\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-up mc-angle-down-L_16\"\n (mousedown)=\"onStepUp($event)\">\n </i>\n <i class=\"mc mc-icon mc-icon_light mc-second mc-stepper-step-down mc-angle-down-L_16\"\n (mousedown)=\"onStepDown($event)\">\n </i>\n "
|
452
|
-
}]
|
453
|
-
}], propDecorators: { stepUp: [{
|
454
|
-
type: i0.Output
|
455
|
-
}], stepDown: [{
|
456
|
-
type: i0.Output
|
457
|
-
}] } });
|
458
|
-
|
459
|
-
var McSuffix = /** @class */ (function () {
|
460
|
-
function McSuffix() {
|
565
|
+
this.validateControlChild();
|
566
|
+
if (this.control.controlType) {
|
567
|
+
this._elementRef.nativeElement.classList.add("mc-form-field-type-" + this.control.controlType);
|
461
568
|
}
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
}]
|
471
|
-
}] });
|
472
|
-
|
473
|
-
var nextUniqueId = 0;
|
474
|
-
var McFormFieldBase = /** @class */ (function () {
|
475
|
-
// tslint:disable-next-line:naming-convention
|
476
|
-
function McFormFieldBase(_elementRef) {
|
477
|
-
this._elementRef = _elementRef;
|
569
|
+
// Subscribe to changes in the child control state in order to update the form field UI.
|
570
|
+
this.control.stateChanges
|
571
|
+
.pipe(operators.startWith())
|
572
|
+
.subscribe(function () {
|
573
|
+
_this._changeDetectorRef.markForCheck();
|
574
|
+
});
|
575
|
+
if (this.hasStepper) {
|
576
|
+
this.stepper.connectTo(this.control.numberInput);
|
478
577
|
}
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
578
|
+
// Run change detection if the value changes.
|
579
|
+
var valueChanges = this.control.ngControl && this.control.ngControl.valueChanges || rxjs.EMPTY;
|
580
|
+
rxjs.merge(valueChanges)
|
581
|
+
.pipe(operators.takeUntil(this.$unsubscribe))
|
582
|
+
.subscribe(function () { return _this._changeDetectorRef.markForCheck(); });
|
583
|
+
};
|
584
|
+
McFormField.prototype.ngAfterContentChecked = function () {
|
585
|
+
this.validateControlChild();
|
586
|
+
};
|
587
|
+
McFormField.prototype.ngAfterViewInit = function () {
|
588
|
+
// Avoid animations on load.
|
589
|
+
this._changeDetectorRef.detectChanges();
|
590
|
+
};
|
591
|
+
McFormField.prototype.clearValue = function ($event) {
|
592
|
+
$event.stopPropagation();
|
593
|
+
if (this.control && this.control.ngControl) {
|
594
|
+
this.control.ngControl.reset();
|
595
|
+
this.control.focus();
|
496
596
|
}
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
return this.suffix && this.suffix.length > 0;
|
507
|
-
},
|
508
|
-
enumerable: false,
|
509
|
-
configurable: true
|
510
|
-
});
|
511
|
-
Object.defineProperty(McFormField.prototype, "hasPrefix", {
|
512
|
-
get: function () {
|
513
|
-
return this.prefix && this.prefix.length > 0;
|
514
|
-
},
|
515
|
-
enumerable: false,
|
516
|
-
configurable: true
|
517
|
-
});
|
518
|
-
Object.defineProperty(McFormField.prototype, "hasCleaner", {
|
519
|
-
get: function () {
|
520
|
-
return !!this.cleaner;
|
521
|
-
},
|
522
|
-
enumerable: false,
|
523
|
-
configurable: true
|
524
|
-
});
|
525
|
-
Object.defineProperty(McFormField.prototype, "hasStepper", {
|
526
|
-
get: function () {
|
527
|
-
return !!this.stepper;
|
528
|
-
},
|
529
|
-
enumerable: false,
|
530
|
-
configurable: true
|
531
|
-
});
|
532
|
-
Object.defineProperty(McFormField.prototype, "canShowCleaner", {
|
533
|
-
get: function () {
|
534
|
-
return this.hasCleaner &&
|
535
|
-
this.control &&
|
536
|
-
this.control.ngControl
|
537
|
-
? this.control.ngControl.value && !this.control.disabled
|
538
|
-
: false;
|
539
|
-
},
|
540
|
-
enumerable: false,
|
541
|
-
configurable: true
|
542
|
-
});
|
543
|
-
Object.defineProperty(McFormField.prototype, "disabled", {
|
544
|
-
get: function () {
|
545
|
-
return this.control && this.control.disabled;
|
546
|
-
},
|
547
|
-
enumerable: false,
|
548
|
-
configurable: true
|
549
|
-
});
|
550
|
-
Object.defineProperty(McFormField.prototype, "canShowStepper", {
|
551
|
-
get: function () {
|
552
|
-
var _a;
|
553
|
-
return this.hasStepper &&
|
554
|
-
!this.disabled &&
|
555
|
-
(((_a = this.control) === null || _a === void 0 ? void 0 : _a.focused) || this.hovered);
|
556
|
-
},
|
557
|
-
enumerable: false,
|
558
|
-
configurable: true
|
559
|
-
});
|
560
|
-
McFormField.prototype.ngAfterContentInit = function () {
|
561
|
-
var _this = this;
|
562
|
-
if (this.control.numberInput && this.hasCleaner) {
|
563
|
-
this.cleaner = null;
|
564
|
-
throw getMcFormFieldYouCanNotUseCleanerInNumberInputError();
|
565
|
-
}
|
566
|
-
this.validateControlChild();
|
567
|
-
if (this.control.controlType) {
|
568
|
-
this._elementRef.nativeElement.classList.add("mc-form-field-type-" + this.control.controlType);
|
569
|
-
}
|
570
|
-
// Subscribe to changes in the child control state in order to update the form field UI.
|
571
|
-
this.control.stateChanges
|
572
|
-
.pipe(operators.startWith())
|
573
|
-
.subscribe(function () {
|
574
|
-
_this._changeDetectorRef.markForCheck();
|
575
|
-
});
|
576
|
-
if (this.hasStepper) {
|
577
|
-
this.stepper.connectTo(this.control.numberInput);
|
578
|
-
}
|
579
|
-
// Run change detection if the value changes.
|
580
|
-
var valueChanges = this.control.ngControl && this.control.ngControl.valueChanges || rxjs.EMPTY;
|
581
|
-
rxjs.merge(valueChanges)
|
582
|
-
.pipe(operators.takeUntil(this.$unsubscribe))
|
583
|
-
.subscribe(function () { return _this._changeDetectorRef.markForCheck(); });
|
584
|
-
};
|
585
|
-
McFormField.prototype.ngAfterContentChecked = function () {
|
586
|
-
this.validateControlChild();
|
587
|
-
};
|
588
|
-
McFormField.prototype.ngAfterViewInit = function () {
|
589
|
-
// Avoid animations on load.
|
590
|
-
this._changeDetectorRef.detectChanges();
|
591
|
-
};
|
592
|
-
McFormField.prototype.clearValue = function ($event) {
|
593
|
-
$event.stopPropagation();
|
597
|
+
};
|
598
|
+
McFormField.prototype.onContainerClick = function ($event) {
|
599
|
+
if (this.control.onContainerClick) {
|
600
|
+
this.control.onContainerClick($event);
|
601
|
+
}
|
602
|
+
};
|
603
|
+
McFormField.prototype.onKeyDown = function (event) {
|
604
|
+
// tslint:disable-next-line:deprecation
|
605
|
+
if (this.canCleanerClearByEsc && event.keyCode === keycodes.ESCAPE && this.control.focused && this.hasCleaner) {
|
594
606
|
if (this.control && this.control.ngControl) {
|
595
607
|
this.control.ngControl.reset();
|
596
|
-
this.control.focus();
|
597
|
-
}
|
598
|
-
};
|
599
|
-
McFormField.prototype.onContainerClick = function ($event) {
|
600
|
-
if (this.control.onContainerClick) {
|
601
|
-
this.control.onContainerClick($event);
|
602
|
-
}
|
603
|
-
};
|
604
|
-
McFormField.prototype.onKeyDown = function (event) {
|
605
|
-
// tslint:disable-next-line:deprecation
|
606
|
-
if (this.canCleanerClearByEsc && event.keyCode === keycodes.ESCAPE && this.control.focused && this.hasCleaner) {
|
607
|
-
if (this.control && this.control.ngControl) {
|
608
|
-
this.control.ngControl.reset();
|
609
|
-
}
|
610
|
-
event.preventDefault();
|
611
|
-
}
|
612
|
-
};
|
613
|
-
McFormField.prototype.onHoverChanged = function (isHovered) {
|
614
|
-
if (isHovered !== this.hovered) {
|
615
|
-
this.hovered = isHovered;
|
616
|
-
this._changeDetectorRef.markForCheck();
|
617
608
|
}
|
618
|
-
|
619
|
-
/**
|
620
|
-
* Gets an ElementRef for the element that a overlay attached to the form-field should be
|
621
|
-
* positioned relative to.
|
622
|
-
*/
|
623
|
-
McFormField.prototype.getConnectedOverlayOrigin = function () {
|
624
|
-
return this.connectionContainerRef || this._elementRef;
|
625
|
-
};
|
626
|
-
/** Determines whether a class from the NgControl should be forwarded to the host element. */
|
627
|
-
McFormField.prototype.shouldForward = function (prop) {
|
628
|
-
var ngControl = this.control ? this.control.ngControl : null;
|
629
|
-
return ngControl && ngControl[prop];
|
630
|
-
};
|
631
|
-
McFormField.prototype.ngOnDestroy = function () {
|
632
|
-
this.$unsubscribe.next();
|
633
|
-
this.$unsubscribe.complete();
|
634
|
-
};
|
635
|
-
/** Throws an error if the form field's control is missing. */
|
636
|
-
McFormField.prototype.validateControlChild = function () {
|
637
|
-
if (!this.control) {
|
638
|
-
throw getMcFormFieldMissingControlError();
|
639
|
-
}
|
640
|
-
};
|
641
|
-
return McFormField;
|
642
|
-
}(McFormFieldMixinBase));
|
643
|
-
/** @nocollapse */ McFormField.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McFormField, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
644
|
-
/** @nocollapse */ McFormField.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McFormField, selector: "mc-form-field", inputs: { color: "color" }, host: { listeners: { "keydown": "onKeyDown($event)", "mouseenter": "onHoverChanged(true)", "mouseleave": "onHoverChanged(false)" }, properties: { "class.mc-form-field_invalid": "control.errorState", "class.mc-form-field_has-prefix": "hasPrefix", "class.mc-form-field_has-suffix": "hasSuffix", "class.mc-form-field_has-cleaner": "canShowCleaner", "class.mc-form-field_has-stepper": "canShowStepper", "class.mc-disabled": "control.disabled", "class.mc-focused": "control.focused", "class.ng-untouched": "shouldForward(\"untouched\")", "class.ng-touched": "shouldForward(\"touched\")", "class.ng-pristine": "shouldForward(\"pristine\")", "class.ng-dirty": "shouldForward(\"dirty\")", "class.ng-valid": "shouldForward(\"valid\")", "class.ng-invalid": "shouldForward(\"invalid\")", "class.ng-pending": "shouldForward(\"pending\")" }, classAttribute: "mc-form-field" }, queries: [{ propertyName: "control", first: true, predicate: McFormFieldControl, descendants: true }, { propertyName: "stepper", first: true, predicate: McStepper, descendants: true }, { propertyName: "cleaner", first: true, predicate: McCleaner, descendants: true }, { propertyName: "hint", predicate: McHint }, { propertyName: "suffix", predicate: McSuffix }, { propertyName: "prefix", predicate: McPrefix }], viewQueries: [{ propertyName: "connectionContainerRef", first: true, predicate: ["connectionContainer"], descendants: true, static: true }], exportAs: ["mcFormField"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"mc-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[mcPrefix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"mc-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"mc-stepper\"></ng-content>\n</div>\n\n<div class=\"mc-form-field__hint\">\n <ng-content select=\"mc-hint\"></ng-content>\n</div>\n", styles: [".mc-form-field{position:relative;display:inline-block;width:100%;border-radius:3px;border-radius:var(--mc-form-field-size-border-radius, 3px)}.mc-form-field:hover{z-index:1}.mc-form-field.mc-focused{z-index:2}.mc-hint{display:block}.mc-form-field__hint>.mc-hint{margin-top:4px;margin-top:var(--mc-form-field-hint-size-margin-top, 4px)}.mc-form-field__container{position:relative;border-width:1px;border-width:var(--mc-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:3px;border-radius:var(--mc-form-field-size-border-radius, 3px)}.mc-form-field_without-borders .mc-form-field__container{border-color:transparent}.mc-form-field__prefix,.mc-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-form-field__prefix{left:0}.mc-form-field__suffix{right:0}.mc-form-field_has-suffix .mc-input,.mc-form-field_has-cleaner .mc-input,.mc-form-field_has-stepper .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-form-field_has-prefix .mc-input{padding-left:32px;padding-left:var(--mc-form-field-size-button-width, 32px)}.mc-cleaner{display:flex;width:32px;width:var(--mc-form-field-size-button-width, 32px);height:100%;cursor:pointer}.mc-cleaner .mc-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.mc-form-field__cleaner .mc-cleaner{position:absolute;top:0;bottom:0;right:0}mc-stepper{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:0;bottom:0;right:0;width:32px;width:var(--mc-form-field-size-button-width, 32px)}mc-stepper .mc-stepper-step-up,mc-stepper .mc-stepper-step-down{cursor:pointer;width:32px;width:var(--mc-form-field-size-button-width, 32px);text-align:center}mc-stepper .mc-stepper-step-up{transform:scaleY(-1)}\n", ".mc-input{background:transparent;margin:0;border:none;outline:none;box-sizing:border-box;padding:5px 16px;padding:var(--mc-input-size-padding, 5px 16px);width:100%;width:var(--mc-input-size-width, 100%);min-height:30px;min-height:var(--mc-input-size-min-height, 30px)}.mc-input::-ms-clear{display:none;width:0;height:0}.mc-input::-ms-reveal{display:none;width:0;height:0}.mc-input::-webkit-search-decoration,.mc-input::-webkit-search-cancel-button,.mc-input::-webkit-search-results-button,.mc-input::-webkit-search-results-decoration{display:none}.mc-input{display:inline-block}input.mc-input[type=number]{-moz-appearance:textfield}input.mc-input[type=number]::-webkit-inner-spin-button,input.mc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.mc-input:invalid{box-shadow:unset}\n", ".mc-timepicker{padding-right:calc(16px - 1px);padding-right:calc(var(--mc-timepicker-size-padding-right, 16px) - var(--mc-form-field-size-border-width, 1px))}.mc-form-field-type-timepicker{width:auto}\n", ".mc-form-field-type-datepicker{width:auto}.mc-datepicker{width:130px;width:var(--mc-datepicker-input-size-width, 130px)}\n", ".mc-textarea{background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:5px 16px;padding:var(--mc-textarea-size-padding, 5px 16px)}.mc-textarea{display:inline-block;-webkit-appearance:none;vertical-align:bottom}.mc-textarea:not(.mc-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.mc-textarea.mc-textarea-resizable{resize:vertical;min-height:50px;min-height:var(--mc-textarea-size-min-height, 50px)}.mc-textarea:invalid{box-shadow:unset}\n"], directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
645
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McFormField, decorators: [{
|
646
|
-
type: i0.Component,
|
647
|
-
args: [{
|
648
|
-
selector: 'mc-form-field',
|
649
|
-
exportAs: 'mcFormField',
|
650
|
-
templateUrl: 'form-field.html',
|
651
|
-
// McInput is a directive and can't have styles, so we need to include its styles here.
|
652
|
-
// The McInput styles are fairly minimal so it shouldn't be a big deal for people who
|
653
|
-
// aren't using McInput.
|
654
|
-
styleUrls: [
|
655
|
-
'form-field.scss',
|
656
|
-
'../input/input.scss',
|
657
|
-
'../timepicker/timepicker.scss',
|
658
|
-
'../datepicker/datepicker-input.scss',
|
659
|
-
'../textarea/textarea.scss'
|
660
|
-
],
|
661
|
-
host: {
|
662
|
-
class: 'mc-form-field',
|
663
|
-
'[class.mc-form-field_invalid]': 'control.errorState',
|
664
|
-
'[class.mc-form-field_has-prefix]': 'hasPrefix',
|
665
|
-
'[class.mc-form-field_has-suffix]': 'hasSuffix',
|
666
|
-
'[class.mc-form-field_has-cleaner]': 'canShowCleaner',
|
667
|
-
'[class.mc-form-field_has-stepper]': 'canShowStepper',
|
668
|
-
'[class.mc-disabled]': 'control.disabled',
|
669
|
-
'[class.mc-focused]': 'control.focused',
|
670
|
-
'[class.ng-untouched]': 'shouldForward("untouched")',
|
671
|
-
'[class.ng-touched]': 'shouldForward("touched")',
|
672
|
-
'[class.ng-pristine]': 'shouldForward("pristine")',
|
673
|
-
'[class.ng-dirty]': 'shouldForward("dirty")',
|
674
|
-
'[class.ng-valid]': 'shouldForward("valid")',
|
675
|
-
'[class.ng-invalid]': 'shouldForward("invalid")',
|
676
|
-
'[class.ng-pending]': 'shouldForward("pending")',
|
677
|
-
'(keydown)': 'onKeyDown($event)',
|
678
|
-
'(mouseenter)': 'onHoverChanged(true)',
|
679
|
-
'(mouseleave)': 'onHoverChanged(false)'
|
680
|
-
},
|
681
|
-
inputs: ['color'],
|
682
|
-
encapsulation: i0.ViewEncapsulation.None,
|
683
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
684
|
-
}]
|
685
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { control: [{
|
686
|
-
type: i0.ContentChild,
|
687
|
-
args: [McFormFieldControl, { static: false }]
|
688
|
-
}], stepper: [{
|
689
|
-
type: i0.ContentChild,
|
690
|
-
args: [McStepper, { static: false }]
|
691
|
-
}], cleaner: [{
|
692
|
-
type: i0.ContentChild,
|
693
|
-
args: [McCleaner, { static: false }]
|
694
|
-
}], hint: [{
|
695
|
-
type: i0.ContentChildren,
|
696
|
-
args: [McHint]
|
697
|
-
}], suffix: [{
|
698
|
-
type: i0.ContentChildren,
|
699
|
-
args: [McSuffix]
|
700
|
-
}], prefix: [{
|
701
|
-
type: i0.ContentChildren,
|
702
|
-
args: [McPrefix]
|
703
|
-
}], connectionContainerRef: [{
|
704
|
-
type: i0.ViewChild,
|
705
|
-
args: ['connectionContainer', { static: true }]
|
706
|
-
}] } });
|
707
|
-
var McFormFieldWithoutBorders = /** @class */ (function () {
|
708
|
-
function McFormFieldWithoutBorders() {
|
609
|
+
event.preventDefault();
|
709
610
|
}
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
type: i0.Directive,
|
716
|
-
args: [{
|
717
|
-
selector: 'mc-form-field[mcFormFieldWithoutBorders]',
|
718
|
-
exportAs: 'mcFormFieldWithoutBorders',
|
719
|
-
host: { class: 'mc-form-field_without-borders' }
|
720
|
-
}]
|
721
|
-
}] });
|
722
|
-
|
723
|
-
var McFormFieldModule = /** @class */ (function () {
|
724
|
-
function McFormFieldModule() {
|
611
|
+
};
|
612
|
+
McFormField.prototype.onHoverChanged = function (isHovered) {
|
613
|
+
if (isHovered !== this.hovered) {
|
614
|
+
this.hovered = isHovered;
|
615
|
+
this._changeDetectorRef.markForCheck();
|
725
616
|
}
|
726
|
-
|
727
|
-
}());
|
728
|
-
/** @nocollapse */ McFormFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McFormFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
729
|
-
/** @nocollapse */ McFormFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McFormFieldModule, declarations: [McFormField,
|
730
|
-
McFormFieldWithoutBorders,
|
731
|
-
McHint,
|
732
|
-
McPrefix,
|
733
|
-
McSuffix,
|
734
|
-
McCleaner,
|
735
|
-
McStepper], imports: [i1$1.CommonModule, i1.McIconModule], exports: [McFormField,
|
736
|
-
McFormFieldWithoutBorders,
|
737
|
-
McHint,
|
738
|
-
McPrefix,
|
739
|
-
McSuffix,
|
740
|
-
McCleaner,
|
741
|
-
McStepper] });
|
742
|
-
/** @nocollapse */ McFormFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McFormFieldModule, imports: [[i1$1.CommonModule, i1.McIconModule]] });
|
743
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McFormFieldModule, decorators: [{
|
744
|
-
type: i0.NgModule,
|
745
|
-
args: [{
|
746
|
-
declarations: [
|
747
|
-
McFormField,
|
748
|
-
McFormFieldWithoutBorders,
|
749
|
-
McHint,
|
750
|
-
McPrefix,
|
751
|
-
McSuffix,
|
752
|
-
McCleaner,
|
753
|
-
McStepper
|
754
|
-
],
|
755
|
-
imports: [i1$1.CommonModule, i1.McIconModule],
|
756
|
-
exports: [
|
757
|
-
McFormField,
|
758
|
-
McFormFieldWithoutBorders,
|
759
|
-
McHint,
|
760
|
-
McPrefix,
|
761
|
-
McSuffix,
|
762
|
-
McCleaner,
|
763
|
-
McStepper
|
764
|
-
]
|
765
|
-
}]
|
766
|
-
}] });
|
767
|
-
|
617
|
+
};
|
768
618
|
/**
|
769
|
-
*
|
619
|
+
* Gets an ElementRef for the element that a overlay attached to the form-field should be
|
620
|
+
* positioned relative to.
|
770
621
|
*/
|
622
|
+
McFormField.prototype.getConnectedOverlayOrigin = function () {
|
623
|
+
return this.connectionContainerRef || this._elementRef;
|
624
|
+
};
|
625
|
+
/** Determines whether a class from the NgControl should be forwarded to the host element. */
|
626
|
+
McFormField.prototype.shouldForward = function (prop) {
|
627
|
+
var ngControl = this.control ? this.control.ngControl : null;
|
628
|
+
return ngControl && ngControl[prop];
|
629
|
+
};
|
630
|
+
McFormField.prototype.ngOnDestroy = function () {
|
631
|
+
this.$unsubscribe.next();
|
632
|
+
this.$unsubscribe.complete();
|
633
|
+
};
|
634
|
+
/** Throws an error if the form field's control is missing. */
|
635
|
+
McFormField.prototype.validateControlChild = function () {
|
636
|
+
if (!this.control) {
|
637
|
+
throw getMcFormFieldMissingControlError();
|
638
|
+
}
|
639
|
+
};
|
640
|
+
return McFormField;
|
641
|
+
}(McFormFieldMixinBase));
|
642
|
+
/** @nocollapse */ McFormField.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormField, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
643
|
+
/** @nocollapse */ McFormField.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McFormField, selector: "mc-form-field", inputs: { color: "color" }, host: { listeners: { "keydown": "onKeyDown($event)", "mouseenter": "onHoverChanged(true)", "mouseleave": "onHoverChanged(false)" }, properties: { "class.mc-form-field_invalid": "control.errorState", "class.mc-form-field_has-prefix": "hasPrefix", "class.mc-form-field_has-suffix": "hasSuffix", "class.mc-form-field_has-cleaner": "canShowCleaner", "class.mc-form-field_has-stepper": "canShowStepper", "class.mc-disabled": "control.disabled", "class.mc-focused": "control.focused", "class.ng-untouched": "shouldForward(\"untouched\")", "class.ng-touched": "shouldForward(\"touched\")", "class.ng-pristine": "shouldForward(\"pristine\")", "class.ng-dirty": "shouldForward(\"dirty\")", "class.ng-valid": "shouldForward(\"valid\")", "class.ng-invalid": "shouldForward(\"invalid\")", "class.ng-pending": "shouldForward(\"pending\")" }, classAttribute: "mc-form-field" }, queries: [{ propertyName: "control", first: true, predicate: McFormFieldControl, descendants: true }, { propertyName: "stepper", first: true, predicate: McStepper, descendants: true }, { propertyName: "cleaner", first: true, predicate: McCleaner, descendants: true }, { propertyName: "hint", predicate: McHint }, { propertyName: "suffix", predicate: McSuffix }, { propertyName: "prefix", predicate: McPrefix }], viewQueries: [{ propertyName: "connectionContainerRef", first: true, predicate: ["connectionContainer"], descendants: true, static: true }], exportAs: ["mcFormField"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"mc-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[mcPrefix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"mc-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"mc-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"mc-stepper\"></ng-content>\n</div>\n\n<div class=\"mc-form-field__hint\">\n <ng-content select=\"mc-hint\"></ng-content>\n</div>\n", styles: [".mc-form-field{position:relative;display:inline-block;width:100%;border-radius:3px;border-radius:var(--mc-form-field-size-border-radius, 3px)}.mc-form-field:hover{z-index:1}.mc-form-field.mc-focused{z-index:2}.mc-hint{display:block}.mc-form-field__hint>.mc-hint{margin-top:4px;margin-top:var(--mc-form-field-hint-size-margin-top, 4px)}.mc-form-field__container{position:relative;border-width:1px;border-width:var(--mc-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:3px;border-radius:var(--mc-form-field-size-border-radius, 3px)}.mc-form-field_without-borders .mc-form-field__container{border-color:transparent}.mc-form-field__prefix,.mc-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.mc-form-field__prefix{left:0}.mc-form-field__suffix{right:0}.mc-form-field_has-suffix .mc-input,.mc-form-field_has-cleaner .mc-input,.mc-form-field_has-stepper .mc-input{padding-right:32px;padding-right:var(--mc-form-field-size-button-width, 32px)}.mc-form-field_has-prefix .mc-input{padding-left:32px;padding-left:var(--mc-form-field-size-button-width, 32px)}.mc-cleaner{display:flex;width:32px;width:var(--mc-form-field-size-button-width, 32px);height:100%;cursor:pointer}.mc-cleaner .mc-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.mc-form-field__cleaner .mc-cleaner{position:absolute;top:0;bottom:0;right:0}mc-stepper{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;top:0;bottom:0;right:0;width:32px;width:var(--mc-form-field-size-button-width, 32px)}mc-stepper .mc-stepper-step-up,mc-stepper .mc-stepper-step-down{cursor:pointer;width:32px;width:var(--mc-form-field-size-button-width, 32px);text-align:center}mc-stepper .mc-stepper-step-up{transform:scaleY(-1)}\n", ".mc-input{background:transparent;margin:0;border:none;outline:none;box-sizing:border-box;padding:5px 16px;padding:var(--mc-input-size-padding, 5px 16px);width:100%;width:var(--mc-input-size-width, 100%);min-height:30px;min-height:var(--mc-input-size-min-height, 30px)}.mc-input::-ms-clear{display:none;width:0;height:0}.mc-input::-ms-reveal{display:none;width:0;height:0}.mc-input::-webkit-search-decoration,.mc-input::-webkit-search-cancel-button,.mc-input::-webkit-search-results-button,.mc-input::-webkit-search-results-decoration{display:none}.mc-input{display:inline-block}input.mc-input[type=number]{-moz-appearance:textfield}input.mc-input[type=number]::-webkit-inner-spin-button,input.mc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.mc-input:invalid{box-shadow:unset}\n", ".mc-timepicker{padding-right:calc(16px - 1px);padding-right:calc(var(--mc-timepicker-size-padding-right, 16px) - var(--mc-form-field-size-border-width, 1px))}.mc-form-field-type-timepicker{width:auto}\n", ".mc-form-field-type-datepicker{width:auto}.mc-datepicker{width:130px;width:var(--mc-datepicker-input-size-width, 130px)}\n", ".mc-textarea{background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:5px 16px;padding:var(--mc-textarea-size-padding, 5px 16px)}.mc-textarea{display:inline-block;-webkit-appearance:none;vertical-align:bottom}.mc-textarea:not(.mc-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.mc-textarea.mc-textarea-resizable{resize:vertical;min-height:50px;min-height:var(--mc-textarea-size-min-height, 50px)}.mc-textarea:invalid{box-shadow:unset}\n"], directives: [{ type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
644
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormField, decorators: [{
|
645
|
+
type: i0.Component,
|
646
|
+
args: [{
|
647
|
+
selector: 'mc-form-field',
|
648
|
+
exportAs: 'mcFormField',
|
649
|
+
templateUrl: 'form-field.html',
|
650
|
+
// McInput is a directive and can't have styles, so we need to include its styles here.
|
651
|
+
// The McInput styles are fairly minimal so it shouldn't be a big deal for people who
|
652
|
+
// aren't using McInput.
|
653
|
+
styleUrls: [
|
654
|
+
'form-field.scss',
|
655
|
+
'../input/input.scss',
|
656
|
+
'../timepicker/timepicker.scss',
|
657
|
+
'../datepicker/datepicker-input.scss',
|
658
|
+
'../textarea/textarea.scss'
|
659
|
+
],
|
660
|
+
host: {
|
661
|
+
class: 'mc-form-field',
|
662
|
+
'[class.mc-form-field_invalid]': 'control.errorState',
|
663
|
+
'[class.mc-form-field_has-prefix]': 'hasPrefix',
|
664
|
+
'[class.mc-form-field_has-suffix]': 'hasSuffix',
|
665
|
+
'[class.mc-form-field_has-cleaner]': 'canShowCleaner',
|
666
|
+
'[class.mc-form-field_has-stepper]': 'canShowStepper',
|
667
|
+
'[class.mc-disabled]': 'control.disabled',
|
668
|
+
'[class.mc-focused]': 'control.focused',
|
669
|
+
'[class.ng-untouched]': 'shouldForward("untouched")',
|
670
|
+
'[class.ng-touched]': 'shouldForward("touched")',
|
671
|
+
'[class.ng-pristine]': 'shouldForward("pristine")',
|
672
|
+
'[class.ng-dirty]': 'shouldForward("dirty")',
|
673
|
+
'[class.ng-valid]': 'shouldForward("valid")',
|
674
|
+
'[class.ng-invalid]': 'shouldForward("invalid")',
|
675
|
+
'[class.ng-pending]': 'shouldForward("pending")',
|
676
|
+
'(keydown)': 'onKeyDown($event)',
|
677
|
+
'(mouseenter)': 'onHoverChanged(true)',
|
678
|
+
'(mouseleave)': 'onHoverChanged(false)'
|
679
|
+
},
|
680
|
+
inputs: ['color'],
|
681
|
+
encapsulation: i0.ViewEncapsulation.None,
|
682
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
683
|
+
}]
|
684
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { control: [{
|
685
|
+
type: i0.ContentChild,
|
686
|
+
args: [McFormFieldControl, { static: false }]
|
687
|
+
}], stepper: [{
|
688
|
+
type: i0.ContentChild,
|
689
|
+
args: [McStepper, { static: false }]
|
690
|
+
}], cleaner: [{
|
691
|
+
type: i0.ContentChild,
|
692
|
+
args: [McCleaner, { static: false }]
|
693
|
+
}], hint: [{
|
694
|
+
type: i0.ContentChildren,
|
695
|
+
args: [McHint]
|
696
|
+
}], suffix: [{
|
697
|
+
type: i0.ContentChildren,
|
698
|
+
args: [McSuffix]
|
699
|
+
}], prefix: [{
|
700
|
+
type: i0.ContentChildren,
|
701
|
+
args: [McPrefix]
|
702
|
+
}], connectionContainerRef: [{
|
703
|
+
type: i0.ViewChild,
|
704
|
+
args: ['connectionContainer', { static: true }]
|
705
|
+
}] } });
|
706
|
+
var McFormFieldWithoutBorders = /** @class */ (function () {
|
707
|
+
function McFormFieldWithoutBorders() {
|
708
|
+
}
|
709
|
+
return McFormFieldWithoutBorders;
|
710
|
+
}());
|
711
|
+
/** @nocollapse */ McFormFieldWithoutBorders.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormFieldWithoutBorders, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
712
|
+
/** @nocollapse */ McFormFieldWithoutBorders.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McFormFieldWithoutBorders, selector: "mc-form-field[mcFormFieldWithoutBorders]", host: { classAttribute: "mc-form-field_without-borders" }, exportAs: ["mcFormFieldWithoutBorders"], ngImport: i0__namespace });
|
713
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormFieldWithoutBorders, decorators: [{
|
714
|
+
type: i0.Directive,
|
715
|
+
args: [{
|
716
|
+
selector: 'mc-form-field[mcFormFieldWithoutBorders]',
|
717
|
+
exportAs: 'mcFormFieldWithoutBorders',
|
718
|
+
host: { class: 'mc-form-field_without-borders' }
|
719
|
+
}]
|
720
|
+
}] });
|
721
|
+
|
722
|
+
var McFormFieldModule = /** @class */ (function () {
|
723
|
+
function McFormFieldModule() {
|
724
|
+
}
|
725
|
+
return McFormFieldModule;
|
726
|
+
}());
|
727
|
+
/** @nocollapse */ McFormFieldModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormFieldModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
728
|
+
/** @nocollapse */ McFormFieldModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormFieldModule, declarations: [McFormField,
|
729
|
+
McFormFieldWithoutBorders,
|
730
|
+
McHint,
|
731
|
+
McPrefix,
|
732
|
+
McSuffix,
|
733
|
+
McCleaner,
|
734
|
+
McStepper], imports: [i1$1.CommonModule, i1.McIconModule], exports: [McFormField,
|
735
|
+
McFormFieldWithoutBorders,
|
736
|
+
McHint,
|
737
|
+
McPrefix,
|
738
|
+
McSuffix,
|
739
|
+
McCleaner,
|
740
|
+
McStepper] });
|
741
|
+
/** @nocollapse */ McFormFieldModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormFieldModule, imports: [[i1$1.CommonModule, i1.McIconModule]] });
|
742
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McFormFieldModule, decorators: [{
|
743
|
+
type: i0.NgModule,
|
744
|
+
args: [{
|
745
|
+
declarations: [
|
746
|
+
McFormField,
|
747
|
+
McFormFieldWithoutBorders,
|
748
|
+
McHint,
|
749
|
+
McPrefix,
|
750
|
+
McSuffix,
|
751
|
+
McCleaner,
|
752
|
+
McStepper
|
753
|
+
],
|
754
|
+
imports: [i1$1.CommonModule, i1.McIconModule],
|
755
|
+
exports: [
|
756
|
+
McFormField,
|
757
|
+
McFormFieldWithoutBorders,
|
758
|
+
McHint,
|
759
|
+
McPrefix,
|
760
|
+
McSuffix,
|
761
|
+
McCleaner,
|
762
|
+
McStepper
|
763
|
+
]
|
764
|
+
}]
|
765
|
+
}] });
|
766
|
+
|
767
|
+
/**
|
768
|
+
* Generated bundle index. Do not edit.
|
769
|
+
*/
|
771
770
|
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
771
|
+
exports.McCleaner = McCleaner;
|
772
|
+
exports.McFormField = McFormField;
|
773
|
+
exports.McFormFieldBase = McFormFieldBase;
|
774
|
+
exports.McFormFieldControl = McFormFieldControl;
|
775
|
+
exports.McFormFieldMixinBase = McFormFieldMixinBase;
|
776
|
+
exports.McFormFieldModule = McFormFieldModule;
|
777
|
+
exports.McFormFieldWithoutBorders = McFormFieldWithoutBorders;
|
778
|
+
exports.McHint = McHint;
|
779
|
+
exports.McPrefix = McPrefix;
|
780
|
+
exports.McStepper = McStepper;
|
781
|
+
exports.McSuffix = McSuffix;
|
782
|
+
exports.getMcFormFieldMissingControlError = getMcFormFieldMissingControlError;
|
783
|
+
exports.getMcFormFieldYouCanNotUseCleanerInNumberInputError = getMcFormFieldYouCanNotUseCleanerInNumberInputError;
|
785
784
|
|
786
|
-
|
785
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
787
786
|
|
788
|
-
}))
|
787
|
+
}));
|
789
788
|
//# sourceMappingURL=ptsecurity-mosaic-form-field.umd.js.map
|