@ptsecurity/mosaic 12.1.0 → 13.0.0
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 +113 -66
- package/_visual.scss +11 -9
- package/autocomplete/README.md +0 -0
- package/autocomplete/package.json +5 -5
- package/button/README.md +0 -0
- package/button/button.component.d.ts +17 -14
- package/button/button.module.d.ts +1 -1
- package/button/package.json +5 -5
- package/button-toggle/README.md +0 -0
- package/button-toggle/package.json +5 -5
- package/card/README.md +0 -0
- package/card/package.json +5 -5
- package/checkbox/README.md +1 -0
- package/checkbox/package.json +5 -5
- package/core/formatters/date/formatter.d.ts +4 -4
- package/core/formatters/date/templates/en-US.d.ts +8 -8
- package/core/formatters/date/templates/ru-RU.d.ts +8 -8
- package/core/package.json +5 -5
- package/core/pop-up/pop-up-trigger.d.ts +9 -12
- package/datepicker/README.md +0 -0
- package/datepicker/package.json +5 -5
- package/design-tokens/package.json +5 -5
- package/design-tokens/style-dictionary/build.js +6 -0
- package/design-tokens/style-dictionary/configs/index.js +2 -1
- package/design-tokens/tokens/components/navbar.json5 +12 -9
- package/design-tokens/tokens.d.ts +11 -9
- package/divider/README.md +0 -0
- package/divider/package.json +5 -5
- package/dropdown/dropdown-item.component.d.ts +1 -0
- package/dropdown/package.json +5 -5
- package/{esm2015/autocomplete/autocomplete-origin.directive.js → esm2020/autocomplete/autocomplete-origin.directive.mjs} +4 -4
- package/{esm2015/autocomplete/autocomplete-trigger.directive.js → esm2020/autocomplete/autocomplete-trigger.directive.mjs} +4 -4
- package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
- package/{esm2015/autocomplete/autocomplete.module.js → esm2020/autocomplete/autocomplete.module.mjs} +5 -5
- package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
- package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
- package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
- package/esm2020/button/button.component.mjs +129 -0
- package/esm2020/button/button.module.mjs +38 -0
- package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
- package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
- package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
- package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
- package/{esm2015/button-toggle/button-toggle.module.js → esm2020/button-toggle/button-toggle.module.mjs} +5 -5
- package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
- package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
- package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
- package/esm2020/card/card.component.mjs +80 -0
- package/{esm2015/card/card.module.js → esm2020/card/card.module.mjs} +5 -5
- package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
- package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
- package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-module.js → esm2020/checkbox/checkbox-module.mjs} +5 -5
- package/{esm2015/checkbox/checkbox-required-validator.js → esm2020/checkbox/checkbox-required-validator.mjs} +4 -4
- package/esm2020/checkbox/checkbox.mjs +315 -0
- package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
- package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
- package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
- package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
- package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
- package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
- package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
- package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
- package/{esm2015/core/common-behaviors/common-module.js → esm2020/core/common-behaviors/common-module.mjs} +5 -5
- package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
- package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
- package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
- package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
- package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
- package/{esm2015/core/error/error-options.js → esm2020/core/error/error-options.mjs} +7 -7
- package/esm2020/core/formatters/date/formatter.mjs +314 -0
- package/esm2020/core/formatters/date/templates/en-US.mjs +280 -0
- package/esm2020/core/formatters/date/templates/ru-RU.mjs +280 -0
- package/{esm2015/core/formatters/index.js → esm2020/core/formatters/index.mjs} +5 -5
- package/esm2020/core/formatters/number/formatter.mjs +105 -0
- package/{esm2015/core/forms/forms-module.js → esm2020/core/forms/forms-module.mjs} +5 -5
- package/{esm2015/core/forms/forms.directive.js → esm2020/core/forms/forms.directive.mjs} +7 -7
- package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
- package/{esm2015/core/highlight/highlight.pipe.js → esm2020/core/highlight/highlight.pipe.mjs} +4 -4
- package/{esm2015/core/highlight/index.js → esm2020/core/highlight/index.mjs} +5 -5
- package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
- package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
- package/{esm2015/core/line/line.js → esm2020/core/line/line.mjs} +8 -8
- package/esm2020/core/option/action.mjs +121 -0
- package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
- package/esm2020/core/option/optgroup.mjs +31 -0
- package/{esm2015/core/option/option-module.js → esm2020/core/option/option-module.mjs} +5 -5
- package/esm2020/core/option/option.mjs +254 -0
- package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
- package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
- package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
- package/esm2020/core/pop-up/pop-up-trigger.mjs +246 -0
- package/esm2020/core/pop-up/pop-up.mjs +91 -0
- package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
- package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
- package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
- package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
- package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
- package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
- package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
- package/{esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js → esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs} +5 -5
- package/{esm2015/core/services/measure-scrollbar.service.js → esm2020/core/services/measure-scrollbar.service.mjs} +4 -4
- package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
- package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
- package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
- package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
- package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
- package/esm2020/datepicker/calendar-body.component.mjs +106 -0
- package/esm2020/datepicker/calendar.component.mjs +362 -0
- package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
- package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
- package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
- package/{esm2015/datepicker/datepicker-intl.js → esm2020/datepicker/datepicker-intl.mjs} +4 -4
- package/{esm2015/datepicker/datepicker-module.js → esm2020/datepicker/datepicker-module.mjs} +5 -5
- package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
- package/esm2020/datepicker/datepicker.component.mjs +408 -0
- package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
- package/{esm2015/datepicker/month-view.component.js → esm2020/datepicker/month-view.component.mjs} +5 -11
- package/{esm2015/datepicker/multi-year-view.component.js → esm2020/datepicker/multi-year-view.component.mjs} +5 -11
- package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
- package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
- package/{esm2015/datepicker/year-view.component.js → esm2020/datepicker/year-view.component.mjs} +5 -11
- package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
- package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
- package/{esm2015/design-tokens/public-api.js → esm2020/design-tokens/public-api.mjs} +0 -0
- package/{esm2015/design-tokens/tokens.js → esm2020/design-tokens/tokens.mjs} +12 -10
- package/{esm2015/divider/divider.component.js → esm2020/divider/divider.component.mjs} +6 -13
- package/{esm2015/divider/divider.module.js → esm2020/divider/divider.module.mjs} +5 -5
- package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
- package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
- package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
- package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
- package/{esm2015/dropdown/dropdown-content.directive.js → esm2020/dropdown/dropdown-content.directive.mjs} +6 -8
- package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
- package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
- package/esm2020/dropdown/dropdown.component.mjs +292 -0
- package/{esm2015/dropdown/dropdown.module.js → esm2020/dropdown/dropdown.module.mjs} +5 -5
- package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
- package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
- package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
- package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
- package/esm2020/form-field/cleaner.mjs +23 -0
- package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
- package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/form-field/form-field.mjs +205 -0
- package/{esm2015/form-field/form-field.module.js → esm2020/form-field/form-field.module.mjs} +5 -5
- package/{esm2015/form-field/hint.js → esm2020/form-field/hint.mjs} +4 -4
- package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
- package/{esm2015/form-field/prefix.js → esm2020/form-field/prefix.mjs} +4 -4
- package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
- package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
- package/{esm2015/form-field/stepper.js → esm2020/form-field/stepper.mjs} +4 -4
- package/{esm2015/form-field/suffix.js → esm2020/form-field/suffix.mjs} +4 -4
- package/esm2020/icon/icon.component.mjs +44 -0
- package/{esm2015/icon/icon.module.js → esm2020/icon/icon.module.mjs} +5 -5
- package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
- package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
- package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
- package/esm2020/input/input-number-validators.mjs +92 -0
- package/{esm2015/input/input-number.js → esm2020/input/input-number.mjs} +4 -4
- package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
- package/{esm2015/input/input.js → esm2020/input/input.mjs} +7 -7
- package/{esm2015/input/input.module.js → esm2020/input/input.module.mjs} +5 -5
- package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
- package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
- package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
- package/esm2020/link/link.component.mjs +107 -0
- package/{esm2015/link/link.module.js → esm2020/link/link.module.mjs} +5 -5
- package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
- package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
- package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
- package/esm2020/list/list-selection.component.mjs +693 -0
- package/esm2020/list/list.component.mjs +44 -0
- package/{esm2015/list/list.module.js → esm2020/list/list.module.mjs} +5 -5
- package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
- package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
- package/{esm2015/modal/css-unit.pipe.js → esm2020/modal/css-unit.pipe.mjs} +4 -4
- package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
- package/{esm2015/modal/modal-control.service.js → esm2020/modal/modal-control.service.mjs} +4 -4
- package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
- package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
- package/esm2020/modal/modal.component.mjs +501 -0
- package/{esm2015/modal/modal.directive.js → esm2020/modal/modal.directive.mjs} +13 -13
- package/esm2020/modal/modal.module.mjs +72 -0
- package/esm2020/modal/modal.service.mjs +124 -0
- package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
- package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
- package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
- package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
- package/esm2020/navbar/navbar-item.component.mjs +577 -0
- package/esm2020/navbar/navbar.component.mjs +237 -0
- package/esm2020/navbar/navbar.module.mjs +92 -0
- package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
- package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
- package/{esm2015/navbar/vertical-navbar.animation.js → esm2020/navbar/vertical-navbar.animation.mjs} +2 -2
- package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
- package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
- package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
- package/esm2020/popover/popover-confirm.component.mjs +108 -0
- package/esm2020/popover/popover.component.mjs +253 -0
- package/esm2020/popover/popover.module.mjs +24 -0
- package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
- package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +2 -1
- package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
- package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
- package/{esm2015/progress-bar/progress-bar.module.js → esm2020/progress-bar/progress-bar.module.mjs} +5 -5
- package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
- package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
- package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
- package/{esm2015/progress-spinner/progress-spinner.module.js → esm2020/progress-spinner/progress-spinner.module.mjs} +5 -5
- package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
- package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
- package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
- package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
- package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
- package/esm2020/radio/radio.component.mjs +458 -0
- package/{esm2015/radio/radio.module.js → esm2020/radio/radio.module.mjs} +5 -5
- package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
- package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
- package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/esm2020/select/select.component.mjs +1110 -0
- package/{esm2015/select/select.module.js → esm2020/select/select.module.mjs} +5 -5
- package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
- package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
- package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
- package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
- package/esm2020/sidebar/sidebar.component.mjs +146 -0
- package/{esm2015/sidebar/sidebar.module.js → esm2020/sidebar/sidebar.module.mjs} +5 -5
- package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
- package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
- package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
- package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
- package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
- package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
- package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
- package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
- package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
- package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
- package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
- package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
- package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
- package/esm2020/splitter/splitter.component.mjs +480 -0
- package/esm2020/splitter/splitter.module.mjs +40 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/{esm2015/table/table.component.js → esm2020/table/table.component.mjs} +4 -4
- package/{esm2015/table/table.module.js → esm2020/table/table.module.mjs} +5 -5
- package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
- package/esm2020/tabs/paginated-tab-header.mjs +479 -0
- package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
- package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
- package/esm2020/tabs/tab-body.component.mjs +178 -0
- package/{esm2015/tabs/tab-content.directive.js → esm2020/tabs/tab-content.directive.mjs} +4 -4
- package/esm2020/tabs/tab-group.component.mjs +350 -0
- package/esm2020/tabs/tab-header.component.mjs +67 -0
- package/{esm2015/tabs/tab-label-wrapper.directive.js → esm2020/tabs/tab-label-wrapper.directive.mjs} +4 -4
- package/{esm2015/tabs/tab-label.directive.js → esm2020/tabs/tab-label.directive.mjs} +4 -4
- package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
- package/{esm2015/tabs/tab.component.js → esm2020/tabs/tab.component.mjs} +4 -4
- package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
- package/{esm2015/tabs/tabs.module.js → esm2020/tabs/tabs.module.mjs} +5 -5
- package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
- package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
- package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
- package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
- package/{esm2015/tags/tag-input.js → esm2020/tags/tag-input.mjs} +4 -4
- package/esm2020/tags/tag-list.component.mjs +722 -0
- package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
- package/esm2020/tags/tag.component.mjs +374 -0
- package/{esm2015/tags/tag.module.js → esm2020/tags/tag.module.mjs} +5 -5
- package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
- package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
- package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
- package/{esm2015/textarea/textarea.component.js → esm2020/textarea/textarea.component.mjs} +4 -4
- package/{esm2015/textarea/textarea.module.js → esm2020/textarea/textarea.module.mjs} +5 -5
- package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
- package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
- package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
- package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
- package/esm2020/timepicker/timepicker.directive.mjs +653 -0
- package/{esm2015/timepicker/timepicker.module.js → esm2020/timepicker/timepicker.module.mjs} +5 -5
- package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
- package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
- package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
- package/esm2020/toggle/toggle.component.mjs +158 -0
- package/{esm2015/toggle/toggle.module.js → esm2020/toggle/toggle.module.mjs} +5 -5
- package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
- package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
- package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
- package/esm2020/tooltip/tooltip.component.mjs +291 -0
- package/{esm2015/tooltip/tooltip.module.js → esm2020/tooltip/tooltip.module.mjs} +5 -5
- package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
- package/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -0
- package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/{esm2015/tree/node.js → esm2020/tree/node.mjs} +4 -4
- package/{esm2015/tree/outlet.js → esm2020/tree/outlet.mjs} +4 -4
- package/esm2020/tree/padding.directive.mjs +110 -0
- package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/esm2020/tree/toggle.mjs +80 -0
- package/{esm2015/tree/tree-base.js → esm2020/tree/tree-base.mjs} +7 -7
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-option.component.mjs +226 -0
- package/esm2020/tree/tree-selection.component.mjs +530 -0
- package/esm2020/tree/tree.mjs +15 -0
- package/esm2020/tree/tree.module.mjs +53 -0
- package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
- package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
- package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
- package/esm2020/tree-select/tree-select.component.mjs +889 -0
- package/{esm2015/tree-select/tree-select.module.js → esm2020/tree-select/tree-select.module.mjs} +5 -5
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-card.js → ptsecurity-mosaic-card.mjs} +10 -18
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-core.js → ptsecurity-mosaic-core.mjs} +186 -241
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-design-tokens.js → ptsecurity-mosaic-design-tokens.mjs} +13 -11
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-link.js → ptsecurity-mosaic-link.mjs} +8 -8
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs +796 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs +842 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +1025 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-progress-bar.js → ptsecurity-mosaic-progress-bar.mjs} +10 -18
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-sidebar.js → ptsecurity-mosaic-sidebar.mjs} +16 -25
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs +524 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-table.js → ptsecurity-mosaic-table.mjs} +8 -8
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tags.mjs +1372 -0
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-toggle.js → ptsecurity-mosaic-toggle.mjs} +12 -23
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +362 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +932 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs +1707 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic.js → ptsecurity-mosaic.mjs} +1 -1
- package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-autocomplete.js → fesm2020/ptsecurity-mosaic-autocomplete.mjs} +17 -26
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-button-toggle.js → fesm2020/ptsecurity-mosaic-button-toggle.mjs} +15 -23
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
- package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-checkbox.js → fesm2020/ptsecurity-mosaic-checkbox.mjs} +13 -23
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs +2688 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-datepicker.js → fesm2020/ptsecurity-mosaic-datepicker.mjs} +77 -121
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +939 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
- package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-dropdown.js → fesm2020/ptsecurity-mosaic-dropdown.mjs} +45 -53
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-input.js → fesm2020/ptsecurity-mosaic-input.mjs} +41 -27
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
- package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-list.js → fesm2020/ptsecurity-mosaic-list.mjs} +41 -70
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-modal.js → fesm2020/ptsecurity-mosaic-modal.mjs} +63 -59
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +1009 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-radio.js → fesm2020/ptsecurity-mosaic-radio.mjs} +13 -22
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-select.js → fesm2020/ptsecurity-mosaic-select.mjs} +23 -35
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-sidepanel.js → fesm2020/ptsecurity-mosaic-sidepanel.mjs} +57 -53
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +524 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tabs.js → fesm2020/ptsecurity-mosaic-tabs.mjs} +65 -102
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tags.js → fesm2020/ptsecurity-mosaic-tags.mjs} +29 -47
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-textarea.js → fesm2020/ptsecurity-mosaic-textarea.mjs} +8 -8
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-timepicker.js → fesm2020/ptsecurity-mosaic-timepicker.mjs} +16 -15
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +354 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tree-select.js → fesm2020/ptsecurity-mosaic-tree-select.mjs} +16 -27
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tree.js → fesm2020/ptsecurity-mosaic-tree.mjs} +61 -108
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic.mjs +4 -0
- package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
- package/form-field/README.md +0 -0
- package/form-field/cleaner.d.ts +2 -0
- package/form-field/package.json +5 -5
- package/icon/README.md +0 -0
- package/icon/package.json +5 -5
- package/input/input-number-validators.d.ts +2 -2
- package/input/package.json +5 -5
- package/link/README.md +0 -0
- package/link/package.json +5 -5
- package/list/README.md +0 -0
- package/list/package.json +5 -5
- package/modal/README.md +34 -0
- package/modal/modal.component.d.ts +2 -0
- package/modal/modal.module.d.ts +1 -1
- package/modal/package.json +5 -5
- package/navbar/README.md +41 -0
- package/navbar/navbar-item.component.d.ts +122 -34
- package/navbar/navbar.component.d.ts +37 -9
- package/navbar/navbar.module.d.ts +2 -1
- package/navbar/package.json +5 -5
- package/navbar/vertical-navbar.component.d.ts +15 -26
- package/package.json +299 -14
- package/popover/README.md +32 -0
- package/popover/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/progress-bar/README.md +0 -0
- package/progress-bar/package.json +5 -5
- package/progress-spinner/README.md +0 -0
- package/progress-spinner/package.json +5 -5
- package/radio/package.json +5 -5
- package/schematics/README.md +35 -0
- package/schematics/ng-update/data/index.d.ts +1 -0
- package/schematics/ng-update/data/index.js +10 -9
- package/schematics/ng-update/data/index.js.map +1 -1
- package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
- package/schematics/ng-update/data/symbol-removal.js +5 -0
- package/schematics/ng-update/data/symbol-removal.js.map +1 -0
- package/schematics/ng-update/index.js +3 -3
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
- package/schematics/ng-update/upgrade-data.js +2 -1
- package/schematics/ng-update/upgrade-data.js.map +1 -1
- package/schematics/tsconfig.lib.json +2 -2
- package/select/README.md +0 -0
- package/select/package.json +5 -5
- package/select/select.component.d.ts +2 -7
- package/sidebar/package.json +5 -5
- package/sidepanel/package.json +5 -5
- package/sidepanel/sidepanel-directives.d.ts +2 -0
- package/sidepanel/sidepanel.module.d.ts +2 -1
- package/splitter/package.json +5 -5
- package/splitter/splitter.component.d.ts +46 -5
- package/splitter/splitter.module.d.ts +1 -1
- package/table/README.md +0 -0
- package/table/package.json +5 -5
- package/tabs/README.md +0 -0
- package/tabs/package.json +5 -5
- package/tags/README.md +0 -0
- package/tags/package.json +5 -5
- package/textarea/README.md +0 -0
- package/textarea/package.json +5 -5
- package/timepicker/README.md +0 -0
- package/timepicker/package.json +5 -5
- package/toggle/package.json +5 -5
- package/tooltip/package.json +5 -5
- package/tooltip/tooltip.component.d.ts +12 -3
- package/tree/package.json +5 -5
- package/tree/padding.directive.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-selection.component.d.ts +2 -2
- package/tree/tree.module.d.ts +1 -1
- package/tree-select/README.md +0 -0
- package/tree-select/package.json +5 -5
- package/tree-select/tree-select.component.d.ts +2 -7
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1162
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -757
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +0 -535
- package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +0 -481
- package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -764
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +0 -2887
- package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3357
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1872
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +0 -108
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1519
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -789
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +0 -452
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +0 -996
- package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +0 -517
- package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +0 -1250
- package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1304
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -932
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +0 -655
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -442
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -450
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +0 -903
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +0 -1608
- package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -256
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -950
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -438
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +0 -83
- package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2015
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1913
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -666
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -822
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -559
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -728
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1370
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2309
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic.umd.js +0 -11
- package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
- package/esm2015/autocomplete/autocomplete.component.js +0 -163
- package/esm2015/button/button.component.js +0 -129
- package/esm2015/button/button.module.js +0 -42
- package/esm2015/button-toggle/button-toggle.component.js +0 -370
- package/esm2015/card/card.component.js +0 -88
- package/esm2015/checkbox/checkbox.js +0 -325
- package/esm2015/core/formatters/date/formatter.js +0 -287
- package/esm2015/core/formatters/date/templates/en-US.js +0 -280
- package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
- package/esm2015/core/formatters/number/formatter.js +0 -99
- package/esm2015/core/option/action.js +0 -131
- package/esm2015/core/option/optgroup.js +0 -40
- package/esm2015/core/option/option.js +0 -262
- package/esm2015/core/pop-up/pop-up-trigger.js +0 -273
- package/esm2015/core/pop-up/pop-up.js +0 -87
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
- package/esm2015/datepicker/calendar-body.component.js +0 -114
- package/esm2015/datepicker/calendar.component.js +0 -377
- package/esm2015/datepicker/datepicker-input.directive.js +0 -885
- package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
- package/esm2015/datepicker/datepicker.component.js +0 -418
- package/esm2015/dropdown/dropdown-item.component.js +0 -142
- package/esm2015/dropdown/dropdown-trigger.directive.js +0 -478
- package/esm2015/dropdown/dropdown.component.js +0 -302
- package/esm2015/form-field/cleaner.js +0 -19
- package/esm2015/form-field/form-field.js +0 -224
- package/esm2015/icon/icon.component.js +0 -51
- package/esm2015/input/input-number-validators.js +0 -78
- package/esm2015/link/link.component.js +0 -108
- package/esm2015/list/list-selection.component.js +0 -708
- package/esm2015/list/list.component.js +0 -58
- package/esm2015/modal/modal.component.js +0 -506
- package/esm2015/modal/modal.module.js +0 -70
- package/esm2015/modal/modal.service.js +0 -117
- package/esm2015/navbar/navbar-item.component.js +0 -209
- package/esm2015/navbar/navbar.component.js +0 -118
- package/esm2015/navbar/navbar.module.js +0 -76
- package/esm2015/navbar/vertical-navbar.component.js +0 -140
- package/esm2015/popover/popover.component.js +0 -219
- package/esm2015/popover/popover.module.js +0 -21
- package/esm2015/progress-bar/progress-bar.component.js +0 -50
- package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
- package/esm2015/radio/radio.component.js +0 -467
- package/esm2015/select/select.component.js +0 -1122
- package/esm2015/sidebar/sidebar.component.js +0 -155
- package/esm2015/sidepanel/sidepanel-container.component.js +0 -113
- package/esm2015/sidepanel/sidepanel-directives.js +0 -155
- package/esm2015/sidepanel/sidepanel.module.js +0 -70
- package/esm2015/sidepanel/sidepanel.service.js +0 -163
- package/esm2015/splitter/splitter.component.js +0 -331
- package/esm2015/splitter/splitter.module.js +0 -38
- package/esm2015/tabs/paginated-tab-header.js +0 -482
- package/esm2015/tabs/tab-body.component.js +0 -186
- package/esm2015/tabs/tab-group.component.js +0 -359
- package/esm2015/tabs/tab-header.component.js +0 -76
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
- package/esm2015/tags/tag-list.component.js +0 -732
- package/esm2015/tags/tag.component.js +0 -382
- package/esm2015/timepicker/timepicker.directive.js +0 -652
- package/esm2015/toggle/toggle.component.js +0 -169
- package/esm2015/tooltip/tooltip.component.js +0 -260
- package/esm2015/tree/padding.directive.js +0 -114
- package/esm2015/tree/toggle.js +0 -89
- package/esm2015/tree/tree-option.component.js +0 -238
- package/esm2015/tree/tree-selection.component.js +0 -541
- package/esm2015/tree/tree.js +0 -23
- package/esm2015/tree/tree.module.js +0 -56
- package/esm2015/tree-select/tree-select.component.js +0 -900
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button.js +0 -174
- package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
- package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +0 -393
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
- package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +0 -257
- package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +0 -373
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -323
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -0,0 +1,715 @@
|
|
1
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
2
|
+
import { PlatformModule } from '@angular/cdk/platform';
|
3
|
+
import { CommonModule } from '@angular/common';
|
4
|
+
import * as i0 from '@angular/core';
|
5
|
+
import { forwardRef, EventEmitter, Directive, Optional, Input, Output, NgModule } from '@angular/core';
|
6
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, FormsModule } from '@angular/forms';
|
7
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
8
|
+
import { isLetterKey, hasModifierKey, isVerticalMovement, isHorizontalMovement, DELETE, BACKSPACE, TAB, SPACE, HOME, PAGE_UP, END, PAGE_DOWN, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW } from '@ptsecurity/cdk/keycodes';
|
9
|
+
import { validationTooltipShowDelay, validationTooltipHideDelay } from '@ptsecurity/mosaic/core';
|
10
|
+
import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
11
|
+
import { Subject, noop } from 'rxjs';
|
12
|
+
import * as i1 from '@ptsecurity/cdk/datetime';
|
13
|
+
|
14
|
+
// tslint:disable:naming-convention
|
15
|
+
var TimeParts;
|
16
|
+
(function (TimeParts) {
|
17
|
+
TimeParts[TimeParts["hours"] = 0] = "hours";
|
18
|
+
TimeParts[TimeParts["minutes"] = 1] = "minutes";
|
19
|
+
TimeParts[TimeParts["seconds"] = 2] = "seconds";
|
20
|
+
})(TimeParts || (TimeParts = {}));
|
21
|
+
var TimeFormats;
|
22
|
+
(function (TimeFormats) {
|
23
|
+
TimeFormats["HHmmss"] = "HH:mm:ss";
|
24
|
+
TimeFormats["HHmm"] = "HH:mm";
|
25
|
+
})(TimeFormats || (TimeFormats = {}));
|
26
|
+
const TIMEFORMAT_PLACEHOLDERS = {
|
27
|
+
[TimeFormats.HHmmss]: 'чч:мм:сс',
|
28
|
+
[TimeFormats.HHmm]: 'чч:мм'
|
29
|
+
};
|
30
|
+
const DEFAULT_TIME_FORMAT = TimeFormats.HHmm;
|
31
|
+
const HOURS_MINUTES_SECONDS_REGEXP = /^([0-1][0-9]|2[0-3]):?([0-5][0-9]):?([0-5][0-9])?$/;
|
32
|
+
const HOURS_MINUTES_REGEXP = /^([0-1][0-9]|2[0-3]):?([0-5][0-9])?$/;
|
33
|
+
const HOURS_ONLY_REGEXP = /^([0-1][0-9]|2[0-3]):?$/;
|
34
|
+
const AM_PM_FORMAT_REGEXP = /^([0-1]?[0-9]):([0-5]?[0-9]) ([ap][m]?$)/i;
|
35
|
+
const SECONDS_PER_MINUTE = 59;
|
36
|
+
const MINUTES_PER_HOUR = 59;
|
37
|
+
const HOURS_PER_DAY = 23;
|
38
|
+
|
39
|
+
/** @docs-private */
|
40
|
+
const MC_TIMEPICKER_VALUE_ACCESSOR = {
|
41
|
+
provide: NG_VALUE_ACCESSOR,
|
42
|
+
useExisting: forwardRef(() => McTimepicker),
|
43
|
+
multi: true
|
44
|
+
};
|
45
|
+
/** @docs-private */
|
46
|
+
const MC_TIMEPICKER_VALIDATORS = {
|
47
|
+
provide: NG_VALIDATORS,
|
48
|
+
useExisting: forwardRef(() => McTimepicker),
|
49
|
+
multi: true
|
50
|
+
};
|
51
|
+
let uniqueComponentIdSuffix = 0;
|
52
|
+
const shortFormatSize = 5;
|
53
|
+
const fullFormatSize = 8;
|
54
|
+
class McTimepicker {
|
55
|
+
constructor(elementRef, renderer, dateAdapter) {
|
56
|
+
this.elementRef = elementRef;
|
57
|
+
this.renderer = renderer;
|
58
|
+
this.dateAdapter = dateAdapter;
|
59
|
+
/**
|
60
|
+
* Implemented as part of McFormFieldControl.
|
61
|
+
* @docs-private
|
62
|
+
*/
|
63
|
+
this.stateChanges = new Subject();
|
64
|
+
/**
|
65
|
+
* Implemented as part of McFormFieldControl.
|
66
|
+
* @docs-private
|
67
|
+
*/
|
68
|
+
this.focused = false;
|
69
|
+
/**
|
70
|
+
* Implemented as part of McFormFieldControl.
|
71
|
+
* @docs-private
|
72
|
+
*/
|
73
|
+
this.controlType = 'timepicker';
|
74
|
+
this._placeholder = TIMEFORMAT_PLACEHOLDERS[DEFAULT_TIME_FORMAT];
|
75
|
+
this._format = DEFAULT_TIME_FORMAT;
|
76
|
+
this._min = null;
|
77
|
+
this._max = null;
|
78
|
+
this.incorrectInput = new EventEmitter();
|
79
|
+
this.uid = `mc-timepicker-${uniqueComponentIdSuffix++}`;
|
80
|
+
this.lastValueValid = false;
|
81
|
+
this.defaultPlaceholder = true;
|
82
|
+
this.onInput = () => {
|
83
|
+
const formattedValue = this.formatUserInput(this.viewValue);
|
84
|
+
const newTimeObj = this.getDateFromTimeString(formattedValue);
|
85
|
+
this.lastValueValid = !!newTimeObj;
|
86
|
+
if (!newTimeObj) {
|
87
|
+
this.onChange(null);
|
88
|
+
return;
|
89
|
+
}
|
90
|
+
const selectionStart = this.selectionStart;
|
91
|
+
const selectionEnd = this.selectionEnd;
|
92
|
+
this.setViewValue(this.getTimeStringFromDate(newTimeObj, this.format));
|
93
|
+
this.selectionStart = selectionStart;
|
94
|
+
this.selectionEnd = selectionEnd;
|
95
|
+
this.createSelectionOfTimeComponentInInput(selectionStart + 1);
|
96
|
+
this.value = newTimeObj;
|
97
|
+
this.onChange(newTimeObj);
|
98
|
+
this.stateChanges.next();
|
99
|
+
};
|
100
|
+
this.parseValidator = () => {
|
101
|
+
return this.focused ||
|
102
|
+
this.empty ||
|
103
|
+
this.lastValueValid ? null : { mcTimepickerParse: { text: this.viewValue } };
|
104
|
+
};
|
105
|
+
this.minValidator = (control) => {
|
106
|
+
const controlValue = this.getValidDateOrNull(this.dateAdapter.deserialize(control.value));
|
107
|
+
return (!this.min || !controlValue || this.compareTime(this.min, controlValue) <= 0) ?
|
108
|
+
null :
|
109
|
+
{ mcTimepickerLowerThenMin: { min: this.min, actual: controlValue } };
|
110
|
+
};
|
111
|
+
this.maxValidator = (control) => {
|
112
|
+
const controlValue = this.getValidDateOrNull(this.dateAdapter.deserialize(control.value));
|
113
|
+
return (!this.max || !controlValue || this.compareTime(this.max, controlValue) >= 0) ?
|
114
|
+
null :
|
115
|
+
{ mcTimepickerHigherThenMax: { max: this.max, actual: controlValue } };
|
116
|
+
};
|
117
|
+
// tslint:disable-next-line:no-empty
|
118
|
+
this.validatorOnChange = () => { };
|
119
|
+
if (!this.dateAdapter) {
|
120
|
+
throw Error(`McTimepicker: No provider found for DateAdapter. You must import one of the existing ` +
|
121
|
+
`modules at your application root or provide a custom implementation or use exists ones.`);
|
122
|
+
}
|
123
|
+
this.validator = Validators.compose([this.parseValidator, this.minValidator, this.maxValidator]);
|
124
|
+
this.onChange = noop;
|
125
|
+
// Force setter to be called in case id was not specified.
|
126
|
+
this.id = this.id;
|
127
|
+
}
|
128
|
+
/**
|
129
|
+
* Implemented as part of McFormFieldControl.
|
130
|
+
* @docs-private
|
131
|
+
*/
|
132
|
+
get placeholder() {
|
133
|
+
return this._placeholder;
|
134
|
+
}
|
135
|
+
set placeholder(value) {
|
136
|
+
this._placeholder = value;
|
137
|
+
this.defaultPlaceholder = false;
|
138
|
+
}
|
139
|
+
get disabled() {
|
140
|
+
return this._disabled;
|
141
|
+
}
|
142
|
+
set disabled(value) {
|
143
|
+
this._disabled = coerceBooleanProperty(value);
|
144
|
+
// Browsers may not fire the blur event if the input is disabled too quickly.
|
145
|
+
// Reset from here to ensure that the element doesn't become stuck.
|
146
|
+
if (this.focused) {
|
147
|
+
this.focused = false;
|
148
|
+
}
|
149
|
+
this.stateChanges.next();
|
150
|
+
}
|
151
|
+
get id() {
|
152
|
+
return this._id;
|
153
|
+
}
|
154
|
+
set id(value) {
|
155
|
+
this._id = value || this.uid;
|
156
|
+
}
|
157
|
+
/**
|
158
|
+
* Implemented as part of McFormFieldControl.
|
159
|
+
* @docs-private
|
160
|
+
*/
|
161
|
+
get required() {
|
162
|
+
return this._required;
|
163
|
+
}
|
164
|
+
set required(value) {
|
165
|
+
this._required = coerceBooleanProperty(value);
|
166
|
+
}
|
167
|
+
get format() {
|
168
|
+
return this._format;
|
169
|
+
}
|
170
|
+
set format(formatValue) {
|
171
|
+
this._format = Object
|
172
|
+
.keys(TimeFormats)
|
173
|
+
.map((timeFormatKey) => TimeFormats[timeFormatKey])
|
174
|
+
.indexOf(formatValue) > -1 ? formatValue : DEFAULT_TIME_FORMAT;
|
175
|
+
if (this.defaultPlaceholder) {
|
176
|
+
this._placeholder = TIMEFORMAT_PLACEHOLDERS[this._format];
|
177
|
+
}
|
178
|
+
if (this.value) {
|
179
|
+
this.updateView();
|
180
|
+
}
|
181
|
+
}
|
182
|
+
get min() {
|
183
|
+
return this._min;
|
184
|
+
}
|
185
|
+
set min(value) {
|
186
|
+
this._min = this.getValidDateOrNull(this.dateAdapter.deserialize(value));
|
187
|
+
this.validatorOnChange();
|
188
|
+
}
|
189
|
+
get max() {
|
190
|
+
return this._max;
|
191
|
+
}
|
192
|
+
set max(value) {
|
193
|
+
this._max = this.getValidDateOrNull(this.dateAdapter.deserialize(value));
|
194
|
+
this.validatorOnChange();
|
195
|
+
}
|
196
|
+
get value() {
|
197
|
+
return this._value;
|
198
|
+
}
|
199
|
+
set value(value) {
|
200
|
+
const newValue = this.dateAdapter.deserialize(value);
|
201
|
+
this.lastValueValid = !newValue || this.dateAdapter.isValid(newValue);
|
202
|
+
this._value = this.getValidDateOrNull(newValue);
|
203
|
+
this.updateView();
|
204
|
+
}
|
205
|
+
set mcValidationTooltip(tooltip) {
|
206
|
+
if (!tooltip) {
|
207
|
+
return;
|
208
|
+
}
|
209
|
+
tooltip.enterDelay = validationTooltipShowDelay;
|
210
|
+
tooltip.trigger = 'manual';
|
211
|
+
tooltip.initListeners();
|
212
|
+
this.incorrectInput.subscribe(() => {
|
213
|
+
if (tooltip.isOpen) {
|
214
|
+
return;
|
215
|
+
}
|
216
|
+
tooltip.show();
|
217
|
+
setTimeout(() => tooltip.hide(), validationTooltipHideDelay);
|
218
|
+
});
|
219
|
+
}
|
220
|
+
get hasSelection() {
|
221
|
+
return this.selectionStart !== this.selectionEnd;
|
222
|
+
}
|
223
|
+
get isFullFormat() {
|
224
|
+
return this.format === TimeFormats.HHmmss;
|
225
|
+
}
|
226
|
+
get isShortFormat() {
|
227
|
+
return this.format === TimeFormats.HHmm;
|
228
|
+
}
|
229
|
+
get viewValue() {
|
230
|
+
return this.elementRef.nativeElement.value;
|
231
|
+
}
|
232
|
+
get ngControl() {
|
233
|
+
return this.control;
|
234
|
+
}
|
235
|
+
/**
|
236
|
+
* Implemented as part of McFormFieldControl.
|
237
|
+
* @docs-private
|
238
|
+
*/
|
239
|
+
get empty() {
|
240
|
+
return !this.viewValue && !this.isBadInput();
|
241
|
+
}
|
242
|
+
get selectionStart() {
|
243
|
+
return this.elementRef.nativeElement.selectionStart;
|
244
|
+
}
|
245
|
+
set selectionStart(value) {
|
246
|
+
this.elementRef.nativeElement.selectionStart = value;
|
247
|
+
}
|
248
|
+
get selectionEnd() {
|
249
|
+
return this.elementRef.nativeElement.selectionEnd;
|
250
|
+
}
|
251
|
+
set selectionEnd(value) {
|
252
|
+
this.elementRef.nativeElement.selectionEnd = value;
|
253
|
+
}
|
254
|
+
ngOnDestroy() {
|
255
|
+
this.stateChanges.complete();
|
256
|
+
}
|
257
|
+
getSize() {
|
258
|
+
return this.isFullFormat ? fullFormatSize : shortFormatSize;
|
259
|
+
}
|
260
|
+
focus() {
|
261
|
+
this.elementRef.nativeElement.focus();
|
262
|
+
}
|
263
|
+
focusChanged(isFocused) {
|
264
|
+
if (isFocused !== this.focused) {
|
265
|
+
this.focused = isFocused;
|
266
|
+
this.onTouched();
|
267
|
+
this.stateChanges.next();
|
268
|
+
}
|
269
|
+
}
|
270
|
+
onBlur() {
|
271
|
+
this.focusChanged(false);
|
272
|
+
this.setViewValue(this.formatUserPaste(this.viewValue));
|
273
|
+
this.onInput();
|
274
|
+
}
|
275
|
+
onPaste($event) {
|
276
|
+
$event.preventDefault();
|
277
|
+
const value = this.formatUserPaste($event.clipboardData.getData('text'));
|
278
|
+
const newTimeObj = this.getDateFromTimeString(value);
|
279
|
+
if (!newTimeObj) {
|
280
|
+
return;
|
281
|
+
}
|
282
|
+
this.setViewValue(this.getTimeStringFromDate(newTimeObj, this.format));
|
283
|
+
this.value = newTimeObj;
|
284
|
+
this.onChange(newTimeObj);
|
285
|
+
this.stateChanges.next();
|
286
|
+
}
|
287
|
+
/**
|
288
|
+
* Implemented as part of McFormFieldControl.
|
289
|
+
* @docs-private
|
290
|
+
*/
|
291
|
+
onContainerClick() {
|
292
|
+
this.focus();
|
293
|
+
}
|
294
|
+
onKeyDown(event) {
|
295
|
+
// tslint:disable-next-line: deprecation
|
296
|
+
const keyCode = event.keyCode;
|
297
|
+
if (isLetterKey(event) && !event.ctrlKey && !event.metaKey) {
|
298
|
+
event.preventDefault();
|
299
|
+
this.incorrectInput.emit();
|
300
|
+
}
|
301
|
+
else if ((hasModifierKey(event) && (isVerticalMovement(event) || isHorizontalMovement(event))) ||
|
302
|
+
event.ctrlKey || event.metaKey ||
|
303
|
+
[DELETE, BACKSPACE, TAB].includes(keyCode)) {
|
304
|
+
noop();
|
305
|
+
}
|
306
|
+
else if (keyCode === SPACE) {
|
307
|
+
this.spaceKeyHandler(event);
|
308
|
+
}
|
309
|
+
else if ([HOME, PAGE_UP].includes(keyCode)) {
|
310
|
+
this.createSelectionOfTimeComponentInInput(0);
|
311
|
+
}
|
312
|
+
else if ([END, PAGE_DOWN].includes(keyCode)) {
|
313
|
+
this.createSelectionOfTimeComponentInInput(this.viewValue.length);
|
314
|
+
}
|
315
|
+
else if ([UP_ARROW, DOWN_ARROW].includes(keyCode)) {
|
316
|
+
event.preventDefault();
|
317
|
+
this.verticalArrowKeyHandler(keyCode);
|
318
|
+
}
|
319
|
+
else if ([LEFT_ARROW, RIGHT_ARROW].includes(keyCode)) {
|
320
|
+
this.horizontalArrowKeyHandler(keyCode);
|
321
|
+
}
|
322
|
+
else if (/^\D$/.test(event.key)) {
|
323
|
+
event.preventDefault();
|
324
|
+
const newValue = this.getNewValue(event.key, this.selectionStart);
|
325
|
+
const formattedValue = this.replaceSymbols(newValue);
|
326
|
+
if (newValue !== formattedValue) {
|
327
|
+
this.setViewValue(formattedValue);
|
328
|
+
setTimeout(this.onInput);
|
329
|
+
}
|
330
|
+
else {
|
331
|
+
this.incorrectInput.emit();
|
332
|
+
}
|
333
|
+
}
|
334
|
+
else {
|
335
|
+
setTimeout(this.onInput);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
validate(control) {
|
339
|
+
this.setControl(control);
|
340
|
+
return this.validator ? this.validator(control) : null;
|
341
|
+
}
|
342
|
+
registerOnValidatorChange(fn) {
|
343
|
+
this.validatorOnChange = fn;
|
344
|
+
}
|
345
|
+
writeValue(value) {
|
346
|
+
this.value = value;
|
347
|
+
}
|
348
|
+
registerOnChange(fn) {
|
349
|
+
this.onChange = fn;
|
350
|
+
}
|
351
|
+
registerOnTouched(fn) {
|
352
|
+
this.onTouched = fn;
|
353
|
+
}
|
354
|
+
setDisabledState(isDisabled) {
|
355
|
+
this.disabled = isDisabled;
|
356
|
+
}
|
357
|
+
formatUserPaste(value) {
|
358
|
+
var _a;
|
359
|
+
if (value.match(AM_PM_FORMAT_REGEXP)) {
|
360
|
+
return value;
|
361
|
+
}
|
362
|
+
const match = value.match(/^(\D+)?(?<hours>\d+)?(\D+)?(\D+)?(?<minutes>\d+)?(\D+)?(\D+)?(?<seconds>\d+)?(\D+)?$/);
|
363
|
+
if (!((_a = match === null || match === void 0 ? void 0 : match.groups) === null || _a === void 0 ? void 0 : _a.hours)) {
|
364
|
+
this.setViewValue(value);
|
365
|
+
return value;
|
366
|
+
}
|
367
|
+
return this.replaceNumbers(Object.values(match.groups)
|
368
|
+
// tslint:disable-next-line:no-magic-numbers
|
369
|
+
.map((group) => (group || '').padStart(2, '0'))
|
370
|
+
.join(':'));
|
371
|
+
}
|
372
|
+
formatUserInput(value) {
|
373
|
+
return this.replaceNumbers(this.replaceSymbols(value));
|
374
|
+
}
|
375
|
+
replaceSymbols(value) {
|
376
|
+
let formattedValue = value;
|
377
|
+
const match = value.match(/^(\d\d:){0,2}(?<number>[0-9])(?<symbol>\W)(:\d\d){0,2}$/);
|
378
|
+
if (match === null || match === void 0 ? void 0 : match.groups) {
|
379
|
+
const { number, symbol } = match.groups;
|
380
|
+
formattedValue = value.replace(number + symbol, `0${number}`);
|
381
|
+
}
|
382
|
+
return formattedValue;
|
383
|
+
}
|
384
|
+
replaceNumbers(value) {
|
385
|
+
let formattedValue = value;
|
386
|
+
const match = value.match(/^(?<hours>\d{0,4}):?(?<minutes>\d{0,4}):?(?<seconds>\d{0,4})$/);
|
387
|
+
if (match === null || match === void 0 ? void 0 : match.groups) {
|
388
|
+
const { hours, minutes, seconds } = match.groups;
|
389
|
+
if (hours.length && parseInt(hours) > HOURS_PER_DAY) {
|
390
|
+
formattedValue = formattedValue.replace(hours, HOURS_PER_DAY.toString());
|
391
|
+
}
|
392
|
+
if (minutes.length && parseInt(minutes) > MINUTES_PER_HOUR) {
|
393
|
+
formattedValue = formattedValue.replace(minutes, MINUTES_PER_HOUR.toString());
|
394
|
+
}
|
395
|
+
if (seconds.length && parseInt(seconds) > SECONDS_PER_MINUTE) {
|
396
|
+
formattedValue = formattedValue.replace(seconds, SECONDS_PER_MINUTE.toString());
|
397
|
+
}
|
398
|
+
}
|
399
|
+
return formattedValue;
|
400
|
+
}
|
401
|
+
/** Checks whether the input is invalid based on the native validation. */
|
402
|
+
isBadInput() {
|
403
|
+
const validity = this.elementRef.nativeElement.validity;
|
404
|
+
return validity && validity.badInput;
|
405
|
+
}
|
406
|
+
spaceKeyHandler(event) {
|
407
|
+
event.preventDefault();
|
408
|
+
if (this.selectionStart === this.selectionEnd) {
|
409
|
+
const value = this.getNewValue(event.key, this.selectionStart);
|
410
|
+
const formattedValue = this.replaceSymbols(value);
|
411
|
+
if (value !== formattedValue) {
|
412
|
+
this.setViewValue(formattedValue);
|
413
|
+
setTimeout(this.onInput);
|
414
|
+
}
|
415
|
+
}
|
416
|
+
else if (this.selectionStart !== this.selectionEnd) {
|
417
|
+
let cursorPos = this.selectionStart;
|
418
|
+
const nextDividerPos = this.viewValue.indexOf(':', cursorPos);
|
419
|
+
cursorPos = nextDividerPos ? nextDividerPos + 1 : 0;
|
420
|
+
this.createSelectionOfTimeComponentInInput(cursorPos);
|
421
|
+
}
|
422
|
+
}
|
423
|
+
getNewValue(key, position) {
|
424
|
+
return [this.viewValue.slice(0, position), key, this.viewValue.slice(position)].join('');
|
425
|
+
}
|
426
|
+
verticalArrowKeyHandler(keyCode) {
|
427
|
+
if (!this.value) {
|
428
|
+
return;
|
429
|
+
}
|
430
|
+
let changedTime;
|
431
|
+
const newEditParams = this.getTimeEditMetrics(this.selectionStart);
|
432
|
+
if (keyCode === UP_ARROW) {
|
433
|
+
changedTime = this.incrementTime(this.value, newEditParams.modifiedTimePart);
|
434
|
+
}
|
435
|
+
if (keyCode === DOWN_ARROW) {
|
436
|
+
changedTime = this.decrementTime(this.value, newEditParams.modifiedTimePart);
|
437
|
+
}
|
438
|
+
this.value = changedTime;
|
439
|
+
this.selectionStart = newEditParams.cursorStartPosition;
|
440
|
+
this.selectionEnd = newEditParams.cursorEndPosition;
|
441
|
+
this.onChange(changedTime);
|
442
|
+
this.stateChanges.next();
|
443
|
+
}
|
444
|
+
horizontalArrowKeyHandler(keyCode) {
|
445
|
+
if (!this.value) {
|
446
|
+
return;
|
447
|
+
}
|
448
|
+
let cursorPos = this.selectionStart;
|
449
|
+
if (keyCode === LEFT_ARROW) {
|
450
|
+
cursorPos = cursorPos === 0 ? this.viewValue.length : cursorPos - 1;
|
451
|
+
}
|
452
|
+
else if (keyCode === RIGHT_ARROW) {
|
453
|
+
const nextDividerPos = this.viewValue.indexOf(':', cursorPos);
|
454
|
+
cursorPos = nextDividerPos ? nextDividerPos + 1 : 0;
|
455
|
+
}
|
456
|
+
this.createSelectionOfTimeComponentInInput(cursorPos);
|
457
|
+
}
|
458
|
+
createSelectionOfTimeComponentInInput(cursorPos) {
|
459
|
+
setTimeout(() => {
|
460
|
+
const newEditParams = this.getTimeEditMetrics(cursorPos);
|
461
|
+
this.selectionStart = newEditParams.cursorStartPosition;
|
462
|
+
this.selectionEnd = newEditParams.cursorEndPosition;
|
463
|
+
});
|
464
|
+
}
|
465
|
+
incrementTime(dateVal, whatToIncrement = TimeParts.seconds) {
|
466
|
+
let hours = this.dateAdapter.getHours(dateVal);
|
467
|
+
let minutes = this.dateAdapter.getMinutes(dateVal);
|
468
|
+
let seconds = this.dateAdapter.getSeconds(dateVal);
|
469
|
+
switch (whatToIncrement) {
|
470
|
+
case TimeParts.hours:
|
471
|
+
hours++;
|
472
|
+
break;
|
473
|
+
case TimeParts.minutes:
|
474
|
+
minutes++;
|
475
|
+
break;
|
476
|
+
case TimeParts.seconds:
|
477
|
+
seconds++;
|
478
|
+
break;
|
479
|
+
default:
|
480
|
+
}
|
481
|
+
if (seconds > SECONDS_PER_MINUTE) {
|
482
|
+
seconds = 0;
|
483
|
+
}
|
484
|
+
if (minutes > MINUTES_PER_HOUR) {
|
485
|
+
minutes = 0;
|
486
|
+
}
|
487
|
+
if (hours > HOURS_PER_DAY) {
|
488
|
+
hours = 0;
|
489
|
+
}
|
490
|
+
return this.dateAdapter.createDateTime(this.dateAdapter.getYear(this.value), this.dateAdapter.getMonth(this.value), this.dateAdapter.getDate(this.value), hours, minutes, seconds, this.dateAdapter.getMilliseconds(this.value));
|
491
|
+
}
|
492
|
+
decrementTime(dateVal, whatToDecrement = TimeParts.seconds) {
|
493
|
+
let hours = this.dateAdapter.getHours(dateVal);
|
494
|
+
let minutes = this.dateAdapter.getMinutes(dateVal);
|
495
|
+
let seconds = this.dateAdapter.getSeconds(dateVal);
|
496
|
+
switch (whatToDecrement) {
|
497
|
+
case TimeParts.hours:
|
498
|
+
hours--;
|
499
|
+
break;
|
500
|
+
case TimeParts.minutes:
|
501
|
+
minutes--;
|
502
|
+
break;
|
503
|
+
case TimeParts.seconds:
|
504
|
+
seconds--;
|
505
|
+
break;
|
506
|
+
default:
|
507
|
+
}
|
508
|
+
if (seconds < 0) {
|
509
|
+
seconds = SECONDS_PER_MINUTE;
|
510
|
+
}
|
511
|
+
if (minutes < 0) {
|
512
|
+
minutes = MINUTES_PER_HOUR;
|
513
|
+
}
|
514
|
+
if (hours < 0) {
|
515
|
+
hours = HOURS_PER_DAY;
|
516
|
+
}
|
517
|
+
return this.dateAdapter.createDateTime(this.dateAdapter.getYear(this.value), this.dateAdapter.getMonth(this.value), this.dateAdapter.getDate(this.value), hours, minutes, seconds, this.dateAdapter.getMilliseconds(this.value));
|
518
|
+
}
|
519
|
+
/**
|
520
|
+
* @description Get params for arrow-keys (up/down) time valie edit.
|
521
|
+
* @param cursorPosition Current cursor position in timeString
|
522
|
+
*/
|
523
|
+
getTimeEditMetrics(cursorPosition) {
|
524
|
+
const timeString = this.viewValue;
|
525
|
+
let modifiedTimePart;
|
526
|
+
let cursorStartPosition;
|
527
|
+
let cursorEndPosition;
|
528
|
+
const hoursIndex = 0;
|
529
|
+
const minutesIndex = timeString.indexOf(':', hoursIndex + 1);
|
530
|
+
const secondsIndex = minutesIndex !== -1 ? timeString.indexOf(':', minutesIndex + 1) : -1;
|
531
|
+
if (secondsIndex !== -1 && cursorPosition > secondsIndex) {
|
532
|
+
modifiedTimePart = TimeParts.seconds;
|
533
|
+
cursorStartPosition = secondsIndex + 1;
|
534
|
+
cursorEndPosition = timeString.length;
|
535
|
+
}
|
536
|
+
else if (minutesIndex !== -1 && cursorPosition > minutesIndex) {
|
537
|
+
modifiedTimePart = TimeParts.minutes;
|
538
|
+
cursorStartPosition = minutesIndex + 1;
|
539
|
+
cursorEndPosition = secondsIndex > -1 ? secondsIndex : timeString.length;
|
540
|
+
}
|
541
|
+
else {
|
542
|
+
modifiedTimePart = TimeParts.hours;
|
543
|
+
cursorStartPosition = hoursIndex;
|
544
|
+
cursorEndPosition = minutesIndex !== -1 ? minutesIndex : timeString.length;
|
545
|
+
}
|
546
|
+
return { modifiedTimePart, cursorStartPosition, cursorEndPosition };
|
547
|
+
}
|
548
|
+
/**
|
549
|
+
* @description Create time string for displaying inside input element of UI
|
550
|
+
*/
|
551
|
+
getTimeStringFromDate(value, timeFormat) {
|
552
|
+
if (!value || !this.dateAdapter.isValid(value)) {
|
553
|
+
return '';
|
554
|
+
}
|
555
|
+
return this.dateAdapter.format(value, timeFormat);
|
556
|
+
}
|
557
|
+
getDateFromTimeString(timeString) {
|
558
|
+
if (!timeString) {
|
559
|
+
return null;
|
560
|
+
}
|
561
|
+
const HMS = timeString.match(HOURS_MINUTES_SECONDS_REGEXP);
|
562
|
+
const HM = timeString.match(HOURS_MINUTES_REGEXP);
|
563
|
+
const H = timeString.match(HOURS_ONLY_REGEXP);
|
564
|
+
const amPm = timeString.match(AM_PM_FORMAT_REGEXP);
|
565
|
+
let hours = 0;
|
566
|
+
let minutes = 0;
|
567
|
+
let seconds = 0;
|
568
|
+
// tslint:disable:no-magic-numbers
|
569
|
+
if (amPm) {
|
570
|
+
hours = Number(amPm[1]);
|
571
|
+
minutes = Number(amPm[2]);
|
572
|
+
if (/[p]/i.test(amPm[3]) || (/[a]/i.test(amPm[3]) && hours === 12)) {
|
573
|
+
hours += 12;
|
574
|
+
}
|
575
|
+
}
|
576
|
+
else if (HMS) {
|
577
|
+
hours = Number(HMS[1]);
|
578
|
+
minutes = Number(HMS[2]);
|
579
|
+
seconds = Number(HMS[3]);
|
580
|
+
}
|
581
|
+
else if (HM) {
|
582
|
+
hours = Number(HM[1]);
|
583
|
+
minutes = Number(HM[2]);
|
584
|
+
}
|
585
|
+
else if (H) {
|
586
|
+
hours = Number(H[1]);
|
587
|
+
}
|
588
|
+
else {
|
589
|
+
return null;
|
590
|
+
}
|
591
|
+
// tslint:enable
|
592
|
+
const date = this.value || this.dateAdapter.today();
|
593
|
+
const resultDate = this.dateAdapter.createDateTime(this.dateAdapter.getYear(date), this.dateAdapter.getMonth(date), this.dateAdapter.getDate(date), hours, minutes || 0, seconds || 0, this.dateAdapter.getMilliseconds(date));
|
594
|
+
return this.getValidDateOrNull(resultDate);
|
595
|
+
}
|
596
|
+
compareTime(first, second) {
|
597
|
+
const result = this.dateAdapter.getHours(first) - this.dateAdapter.getHours(second) ||
|
598
|
+
this.dateAdapter.getMinutes(first) - this.dateAdapter.getMinutes(second);
|
599
|
+
if (TimeFormats.HHmm === this.format) {
|
600
|
+
return result;
|
601
|
+
}
|
602
|
+
else if (TimeFormats.HHmmss === this.format) {
|
603
|
+
return result || this.dateAdapter.getSeconds(first) - this.dateAdapter.getSeconds(second);
|
604
|
+
}
|
605
|
+
else {
|
606
|
+
throw Error(`Unknown format: ${this.format}`);
|
607
|
+
}
|
608
|
+
}
|
609
|
+
getValidDateOrNull(obj) {
|
610
|
+
return (this.dateAdapter.isDateInstance(obj) && this.dateAdapter.isValid(obj)) ? obj : null;
|
611
|
+
}
|
612
|
+
setViewValue(value) {
|
613
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);
|
614
|
+
}
|
615
|
+
updateView() {
|
616
|
+
const formattedValue = this.getTimeStringFromDate(this.value, this.format);
|
617
|
+
this.setViewValue(formattedValue);
|
618
|
+
}
|
619
|
+
setControl(control) {
|
620
|
+
if (!this.control) {
|
621
|
+
this.control = control;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
}
|
625
|
+
/** @nocollapse */ /** @nocollapse */ McTimepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTimepicker, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.DateAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
626
|
+
/** @nocollapse */ /** @nocollapse */ McTimepicker.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: McTimepicker, selector: "input[mcTimepicker]", inputs: { placeholder: "placeholder", disabled: "disabled", id: "id", required: "required", format: "format", min: "min", max: "max", value: "value", mcValidationTooltip: "mcValidationTooltip" }, outputs: { incorrectInput: "incorrectInput" }, host: { listeners: { "blur": "onBlur()", "focus": "focusChanged(true)", "paste": "onPaste($event)", "keydown": "onKeyDown($event)" }, properties: { "attr.id": "id", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "attr.required": "required", "attr.size": "getSize()", "attr.autocomplete": "\"off\"" }, classAttribute: "mc-input mc-timepicker" }, providers: [
|
627
|
+
MC_TIMEPICKER_VALIDATORS,
|
628
|
+
MC_TIMEPICKER_VALUE_ACCESSOR,
|
629
|
+
{ provide: McFormFieldControl, useExisting: McTimepicker }
|
630
|
+
], exportAs: ["mcTimepicker"], ngImport: i0 });
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTimepicker, decorators: [{
|
632
|
+
type: Directive,
|
633
|
+
args: [{
|
634
|
+
selector: 'input[mcTimepicker]',
|
635
|
+
exportAs: 'mcTimepicker',
|
636
|
+
host: {
|
637
|
+
class: 'mc-input mc-timepicker',
|
638
|
+
// Native input properties that are overwritten by Angular inputs need to be synced with
|
639
|
+
// the native input element. Otherwise property bindings for those don't work.
|
640
|
+
'[attr.id]': 'id',
|
641
|
+
'[attr.placeholder]': 'placeholder',
|
642
|
+
'[attr.disabled]': 'disabled || null',
|
643
|
+
'[attr.required]': 'required',
|
644
|
+
'[attr.size]': 'getSize()',
|
645
|
+
'[attr.autocomplete]': '"off"',
|
646
|
+
'(blur)': 'onBlur()',
|
647
|
+
'(focus)': 'focusChanged(true)',
|
648
|
+
'(paste)': 'onPaste($event)',
|
649
|
+
'(keydown)': 'onKeyDown($event)'
|
650
|
+
},
|
651
|
+
providers: [
|
652
|
+
MC_TIMEPICKER_VALIDATORS,
|
653
|
+
MC_TIMEPICKER_VALUE_ACCESSOR,
|
654
|
+
{ provide: McFormFieldControl, useExisting: McTimepicker }
|
655
|
+
]
|
656
|
+
}]
|
657
|
+
}], ctorParameters: function () {
|
658
|
+
return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.DateAdapter, decorators: [{
|
659
|
+
type: Optional
|
660
|
+
}] }];
|
661
|
+
}, propDecorators: { placeholder: [{
|
662
|
+
type: Input
|
663
|
+
}], disabled: [{
|
664
|
+
type: Input
|
665
|
+
}], id: [{
|
666
|
+
type: Input
|
667
|
+
}], required: [{
|
668
|
+
type: Input
|
669
|
+
}], format: [{
|
670
|
+
type: Input
|
671
|
+
}], min: [{
|
672
|
+
type: Input
|
673
|
+
}], max: [{
|
674
|
+
type: Input
|
675
|
+
}], value: [{
|
676
|
+
type: Input
|
677
|
+
}], mcValidationTooltip: [{
|
678
|
+
type: Input
|
679
|
+
}], incorrectInput: [{
|
680
|
+
type: Output
|
681
|
+
}] } });
|
682
|
+
|
683
|
+
class McTimepickerModule {
|
684
|
+
}
|
685
|
+
/** @nocollapse */ /** @nocollapse */ McTimepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
686
|
+
/** @nocollapse */ /** @nocollapse */ McTimepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTimepickerModule, declarations: [McTimepicker], imports: [CommonModule,
|
687
|
+
A11yModule,
|
688
|
+
PlatformModule,
|
689
|
+
FormsModule], exports: [McTimepicker] });
|
690
|
+
/** @nocollapse */ /** @nocollapse */ McTimepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTimepickerModule, imports: [[
|
691
|
+
CommonModule,
|
692
|
+
A11yModule,
|
693
|
+
PlatformModule,
|
694
|
+
FormsModule
|
695
|
+
]] });
|
696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: McTimepickerModule, decorators: [{
|
697
|
+
type: NgModule,
|
698
|
+
args: [{
|
699
|
+
imports: [
|
700
|
+
CommonModule,
|
701
|
+
A11yModule,
|
702
|
+
PlatformModule,
|
703
|
+
FormsModule
|
704
|
+
],
|
705
|
+
declarations: [McTimepicker],
|
706
|
+
exports: [McTimepicker]
|
707
|
+
}]
|
708
|
+
}] });
|
709
|
+
|
710
|
+
/**
|
711
|
+
* Generated bundle index. Do not edit.
|
712
|
+
*/
|
713
|
+
|
714
|
+
export { AM_PM_FORMAT_REGEXP, DEFAULT_TIME_FORMAT, HOURS_MINUTES_REGEXP, HOURS_MINUTES_SECONDS_REGEXP, HOURS_ONLY_REGEXP, HOURS_PER_DAY, MC_TIMEPICKER_VALIDATORS, MC_TIMEPICKER_VALUE_ACCESSOR, MINUTES_PER_HOUR, McTimepicker, McTimepickerModule, SECONDS_PER_MINUTE, TIMEFORMAT_PLACEHOLDERS, TimeFormats, TimeParts };
|
715
|
+
//# sourceMappingURL=ptsecurity-mosaic-timepicker.mjs.map
|