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