@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,800 @@
|
|
|
1
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
2
|
+
import * as i3 from '@angular/common';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { forwardRef, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Attribute, Optional, ContentChildren, Output, Input, Inject, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
6
|
+
import * as i2 from '@koobiq/components/core';
|
|
7
|
+
import { mixinTabIndex, mixinDisabled, MultipleMode, toBoolean, KBQ_OPTION_ACTION_PARENT, KBQ_TITLE_TEXT_REF, KbqOptionActionComponent, KbqLineSetter, KbqLine, KbqPseudoCheckboxModule, KbqLineModule, KbqOptionModule } from '@koobiq/components/core';
|
|
8
|
+
import * as i1 from '@angular/cdk/clipboard';
|
|
9
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
10
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
11
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
12
|
+
import { FocusKeyManager } from '@koobiq/cdk/a11y';
|
|
13
|
+
import { SPACE, ENTER, LEFT_ARROW, RIGHT_ARROW, isVerticalMovement, isSelectAll, isCopy, TAB, DOWN_ARROW, UP_ARROW, HOME, END, PAGE_UP, PAGE_DOWN, hasModifierKey } from '@koobiq/cdk/keycodes';
|
|
14
|
+
import { KbqDropdownTrigger } from '@koobiq/components/dropdown';
|
|
15
|
+
import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
16
|
+
import { merge, Subject } from 'rxjs';
|
|
17
|
+
import { takeUntil, startWith, take } from 'rxjs/operators';
|
|
18
|
+
|
|
19
|
+
/* tslint:disable:no-empty */
|
|
20
|
+
const KBQ_SELECTION_LIST_VALUE_ACCESSOR = {
|
|
21
|
+
provide: NG_VALUE_ACCESSOR,
|
|
22
|
+
useExisting: forwardRef(() => KbqListSelection),
|
|
23
|
+
multi: true
|
|
24
|
+
};
|
|
25
|
+
class KbqListSelectionChange {
|
|
26
|
+
constructor(source, option) {
|
|
27
|
+
this.source = source;
|
|
28
|
+
this.option = option;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
class KbqListSelectAllEvent {
|
|
32
|
+
constructor(source, options) {
|
|
33
|
+
this.source = source;
|
|
34
|
+
this.options = options;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class KbqListCopyEvent {
|
|
38
|
+
constructor(source, option) {
|
|
39
|
+
this.source = source;
|
|
40
|
+
this.option = option;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** @docs-private */
|
|
44
|
+
class KbqListSelectionBase {
|
|
45
|
+
constructor(elementRef) {
|
|
46
|
+
this.elementRef = elementRef;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** @docs-private */
|
|
50
|
+
const KbqListSelectionMixinBase = mixinTabIndex(mixinDisabled(KbqListSelectionBase));
|
|
51
|
+
class KbqListSelection extends KbqListSelectionMixinBase {
|
|
52
|
+
get autoSelect() {
|
|
53
|
+
return this._autoSelect;
|
|
54
|
+
}
|
|
55
|
+
set autoSelect(value) {
|
|
56
|
+
this._autoSelect = coerceBooleanProperty(value);
|
|
57
|
+
}
|
|
58
|
+
get noUnselectLast() {
|
|
59
|
+
return this._noUnselectLast;
|
|
60
|
+
}
|
|
61
|
+
set noUnselectLast(value) {
|
|
62
|
+
this._noUnselectLast = coerceBooleanProperty(value);
|
|
63
|
+
}
|
|
64
|
+
get multiple() {
|
|
65
|
+
return !!this.multipleMode;
|
|
66
|
+
}
|
|
67
|
+
get tabIndex() {
|
|
68
|
+
return this.disabled ? -1 : this._tabIndex;
|
|
69
|
+
}
|
|
70
|
+
set tabIndex(value) {
|
|
71
|
+
this.userTabIndex = value;
|
|
72
|
+
this._tabIndex = value;
|
|
73
|
+
}
|
|
74
|
+
get showCheckbox() {
|
|
75
|
+
return this.multipleMode === MultipleMode.CHECKBOX;
|
|
76
|
+
}
|
|
77
|
+
get optionFocusChanges() {
|
|
78
|
+
return merge(...this.options.map((option) => option.onFocus));
|
|
79
|
+
}
|
|
80
|
+
get optionBlurChanges() {
|
|
81
|
+
return merge(...this.options.map((option) => option.onBlur));
|
|
82
|
+
}
|
|
83
|
+
constructor(elementRef, changeDetectorRef, multiple, clipboard) {
|
|
84
|
+
super(elementRef);
|
|
85
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
86
|
+
this.clipboard = clipboard;
|
|
87
|
+
this.onSelectAll = new EventEmitter();
|
|
88
|
+
this.onCopy = new EventEmitter();
|
|
89
|
+
this._autoSelect = true;
|
|
90
|
+
this._noUnselectLast = true;
|
|
91
|
+
this.horizontal = false;
|
|
92
|
+
this._tabIndex = 0;
|
|
93
|
+
this.userTabIndex = null;
|
|
94
|
+
// Emits a change event whenever the selected state of an option changes.
|
|
95
|
+
this.selectionChange = new EventEmitter();
|
|
96
|
+
/** Emits whenever the component is destroyed. */
|
|
97
|
+
this.destroyed = new Subject();
|
|
98
|
+
/**
|
|
99
|
+
* Function used for comparing an option against the selected value when determining which
|
|
100
|
+
* options should appear as selected. The first argument is the value of an options. The second
|
|
101
|
+
* one is a value from the selected value. A boolean must be returned.
|
|
102
|
+
*/
|
|
103
|
+
this.compareWith = (a1, a2) => a1 === a2;
|
|
104
|
+
// View to model callback that should be called if the list or its options lost focus.
|
|
105
|
+
// tslint:disable-next-line:no-empty
|
|
106
|
+
this.onTouched = () => { };
|
|
107
|
+
// View to model callback that should be called whenever the selected options change.
|
|
108
|
+
this.onChange = (_) => { };
|
|
109
|
+
if (multiple === MultipleMode.CHECKBOX || multiple === MultipleMode.KEYBOARD) {
|
|
110
|
+
this.multipleMode = multiple;
|
|
111
|
+
}
|
|
112
|
+
else if (multiple !== null) {
|
|
113
|
+
this.multipleMode = MultipleMode.CHECKBOX;
|
|
114
|
+
}
|
|
115
|
+
if (this.multipleMode === MultipleMode.CHECKBOX) {
|
|
116
|
+
this.autoSelect = false;
|
|
117
|
+
this.noUnselectLast = false;
|
|
118
|
+
}
|
|
119
|
+
this.selectionModel = new SelectionModel(this.multiple);
|
|
120
|
+
}
|
|
121
|
+
ngAfterContentInit() {
|
|
122
|
+
this.horizontal = toBoolean(this.horizontal);
|
|
123
|
+
this.keyManager = new FocusKeyManager(this.options)
|
|
124
|
+
.withTypeAhead()
|
|
125
|
+
.withVerticalOrientation(!this.horizontal)
|
|
126
|
+
.withHorizontalOrientation(this.horizontal ? 'ltr' : null);
|
|
127
|
+
this.keyManager.tabOut
|
|
128
|
+
.pipe(takeUntil(this.destroyed))
|
|
129
|
+
.subscribe(() => {
|
|
130
|
+
this._tabIndex = -1;
|
|
131
|
+
setTimeout(() => {
|
|
132
|
+
this._tabIndex = this.userTabIndex || 0;
|
|
133
|
+
this.changeDetectorRef.markForCheck();
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
if (this._value) {
|
|
137
|
+
this.setOptionsFromValues(this._value);
|
|
138
|
+
}
|
|
139
|
+
this.selectionModel.changed
|
|
140
|
+
.pipe(takeUntil(this.destroyed))
|
|
141
|
+
.subscribe((event) => {
|
|
142
|
+
for (const item of event.added) {
|
|
143
|
+
item.selected = true;
|
|
144
|
+
}
|
|
145
|
+
for (const item of event.removed) {
|
|
146
|
+
item.selected = false;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
this.options.changes
|
|
150
|
+
.pipe(startWith(null), takeUntil(this.destroyed))
|
|
151
|
+
.subscribe(() => {
|
|
152
|
+
this.resetOptions();
|
|
153
|
+
// Check to see if we need to update our tab index
|
|
154
|
+
this.updateTabIndex();
|
|
155
|
+
});
|
|
156
|
+
this.updateScrollSize();
|
|
157
|
+
}
|
|
158
|
+
ngOnDestroy() {
|
|
159
|
+
this.destroyed.next();
|
|
160
|
+
this.destroyed.complete();
|
|
161
|
+
}
|
|
162
|
+
focus() {
|
|
163
|
+
if (this.options.length === 0) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
this.keyManager.setFirstItemActive();
|
|
167
|
+
}
|
|
168
|
+
blur() {
|
|
169
|
+
if (!this.hasFocusedOption()) {
|
|
170
|
+
this.keyManager.setActiveItem(-1);
|
|
171
|
+
}
|
|
172
|
+
this.onTouched();
|
|
173
|
+
this.changeDetectorRef.markForCheck();
|
|
174
|
+
}
|
|
175
|
+
selectAll() {
|
|
176
|
+
this.options.forEach((option) => option.setSelected(true));
|
|
177
|
+
this.reportValueChange();
|
|
178
|
+
}
|
|
179
|
+
deselectAll() {
|
|
180
|
+
this.options.forEach((option) => option.setSelected(false));
|
|
181
|
+
this.reportValueChange();
|
|
182
|
+
}
|
|
183
|
+
updateScrollSize() {
|
|
184
|
+
if (this.horizontal || !this.options.first) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
this.keyManager.withScrollSize(Math.floor(this.getHeight() / this.options.first.getHeight()));
|
|
188
|
+
}
|
|
189
|
+
setSelectedOptionsByClick(option, shiftKey, ctrlKey) {
|
|
190
|
+
if (shiftKey && this.multiple) {
|
|
191
|
+
this.selectActiveOptions();
|
|
192
|
+
}
|
|
193
|
+
else if (ctrlKey) {
|
|
194
|
+
if (!this.canDeselectLast(option)) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
this.selectionModel.toggle(option);
|
|
198
|
+
}
|
|
199
|
+
else if (this.autoSelect) {
|
|
200
|
+
this.selectionModel.clear();
|
|
201
|
+
this.selectionModel.toggle(option);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
this.selectionModel.toggle(option);
|
|
205
|
+
}
|
|
206
|
+
this.emitChangeEvent(option);
|
|
207
|
+
this.reportValueChange();
|
|
208
|
+
}
|
|
209
|
+
setSelectedOptionsByKey(option, shiftKey, ctrlKey) {
|
|
210
|
+
if (shiftKey && this.multiple) {
|
|
211
|
+
this.selectActiveOptions();
|
|
212
|
+
}
|
|
213
|
+
else if (ctrlKey) {
|
|
214
|
+
if (!this.canDeselectLast(option)) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else if (this.autoSelect) {
|
|
219
|
+
this.options.forEach((item) => item.setSelected(false));
|
|
220
|
+
option.setSelected(true);
|
|
221
|
+
}
|
|
222
|
+
if (shiftKey || ctrlKey || this.autoSelect) {
|
|
223
|
+
this.emitChangeEvent(option);
|
|
224
|
+
this.reportValueChange();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
selectActiveOptions() {
|
|
228
|
+
const options = this.options.toArray();
|
|
229
|
+
let fromIndex = this.keyManager.previousActiveItemIndex;
|
|
230
|
+
let toIndex = this.keyManager.previousActiveItemIndex = this.keyManager.activeItemIndex;
|
|
231
|
+
const selectedOptionState = options[fromIndex].selected;
|
|
232
|
+
if (toIndex === fromIndex) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
if (fromIndex > toIndex) {
|
|
236
|
+
[fromIndex, toIndex] = [toIndex, fromIndex];
|
|
237
|
+
}
|
|
238
|
+
options
|
|
239
|
+
.slice(fromIndex, toIndex + 1)
|
|
240
|
+
.filter((item) => !item.disabled)
|
|
241
|
+
.forEach((renderedOption) => {
|
|
242
|
+
if (!selectedOptionState && this.noUnselectLast && this.selectionModel.selected.length === 1) {
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
renderedOption.setSelected(selectedOptionState);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
// Implemented as part of ControlValueAccessor.
|
|
249
|
+
writeValue(values) {
|
|
250
|
+
this._value = values;
|
|
251
|
+
if (this.options) {
|
|
252
|
+
this.setOptionsFromValues(values || []);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
// Implemented as part of ControlValueAccessor.
|
|
256
|
+
registerOnChange(fn) {
|
|
257
|
+
this.onChange = fn;
|
|
258
|
+
}
|
|
259
|
+
// Implemented as part of ControlValueAccessor.
|
|
260
|
+
registerOnTouched(fn) {
|
|
261
|
+
this.onTouched = fn;
|
|
262
|
+
}
|
|
263
|
+
// Implemented as a part of ControlValueAccessor.
|
|
264
|
+
setDisabledState(isDisabled) {
|
|
265
|
+
if (this.options) {
|
|
266
|
+
this.options.forEach((option) => option.disabled = isDisabled);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
getSelectedOptionValues() {
|
|
270
|
+
return this.options.filter((option) => option.selected).map((option) => option.value);
|
|
271
|
+
}
|
|
272
|
+
// Toggles the selected state of the currently focused option.
|
|
273
|
+
toggleFocusedOption() {
|
|
274
|
+
const focusedIndex = this.keyManager.activeItemIndex;
|
|
275
|
+
if (focusedIndex != null && this.isValidIndex(focusedIndex)) {
|
|
276
|
+
const focusedOption = this.options.toArray()[focusedIndex];
|
|
277
|
+
if (focusedOption && this.canDeselectLast(focusedOption)) {
|
|
278
|
+
focusedOption.toggle();
|
|
279
|
+
// Emit a change event because the focused option changed its state through user interaction.
|
|
280
|
+
this.emitChangeEvent(focusedOption);
|
|
281
|
+
this.reportValueChange();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
canDeselectLast(listOption) {
|
|
286
|
+
return !(this.noUnselectLast && this.selectionModel.selected.length === 1 && listOption.selected);
|
|
287
|
+
}
|
|
288
|
+
getHeight() {
|
|
289
|
+
const clientRects = this.elementRef.nativeElement.getClientRects();
|
|
290
|
+
return clientRects.length ? clientRects[0].height : 0;
|
|
291
|
+
}
|
|
292
|
+
// Removes an option from the selection list and updates the active item.
|
|
293
|
+
removeOptionFromList(option) {
|
|
294
|
+
if (!option.hasFocus) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
const optionIndex = this.getOptionIndex(option);
|
|
298
|
+
// Check whether the option is the last item
|
|
299
|
+
if (optionIndex > 0) {
|
|
300
|
+
this.keyManager.setPreviousItemActive();
|
|
301
|
+
}
|
|
302
|
+
else if (optionIndex === 0 && this.options.length > 1) {
|
|
303
|
+
this.keyManager.setNextItemActive();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
onKeyDown(event) {
|
|
307
|
+
// tslint:disable-next-line: deprecation
|
|
308
|
+
const keyCode = event.keyCode;
|
|
309
|
+
if ([SPACE, ENTER, LEFT_ARROW, RIGHT_ARROW].includes(keyCode) || isVerticalMovement(event)) {
|
|
310
|
+
event.preventDefault();
|
|
311
|
+
}
|
|
312
|
+
if (this.multiple && isSelectAll(event)) {
|
|
313
|
+
this.selectAllOptions();
|
|
314
|
+
event.preventDefault();
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
else if (isCopy(event)) {
|
|
318
|
+
this.copyActiveOption();
|
|
319
|
+
event.preventDefault();
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
else if ([SPACE, ENTER].includes(keyCode)) {
|
|
323
|
+
this.toggleFocusedOption();
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
else if (keyCode === TAB) {
|
|
327
|
+
this.keyManager.tabOut.next();
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
else if (keyCode === DOWN_ARROW) {
|
|
331
|
+
this.keyManager.setNextItemActive();
|
|
332
|
+
}
|
|
333
|
+
else if (keyCode === UP_ARROW) {
|
|
334
|
+
this.keyManager.setPreviousItemActive();
|
|
335
|
+
}
|
|
336
|
+
else if (keyCode === HOME) {
|
|
337
|
+
this.keyManager.setFirstItemActive();
|
|
338
|
+
}
|
|
339
|
+
else if (keyCode === END) {
|
|
340
|
+
this.keyManager.setLastItemActive();
|
|
341
|
+
}
|
|
342
|
+
else if (keyCode === PAGE_UP) {
|
|
343
|
+
this.keyManager.setPreviousPageItemActive();
|
|
344
|
+
}
|
|
345
|
+
else if (keyCode === PAGE_DOWN) {
|
|
346
|
+
this.keyManager.setNextPageItemActive();
|
|
347
|
+
}
|
|
348
|
+
if (this.keyManager.activeItem && isVerticalMovement(event)) {
|
|
349
|
+
this.setSelectedOptionsByKey(this.keyManager.activeItem, hasModifierKey(event, 'shiftKey'), hasModifierKey(event, 'ctrlKey'));
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
// Reports a value change to the ControlValueAccessor
|
|
353
|
+
reportValueChange() {
|
|
354
|
+
if (this.options) {
|
|
355
|
+
const value = this.getSelectedOptionValues();
|
|
356
|
+
this.onChange(value);
|
|
357
|
+
this._value = value;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
// Emits a change event if the selected state of an option changed.
|
|
361
|
+
emitChangeEvent(option) {
|
|
362
|
+
this.selectionChange.emit(new KbqListSelectionChange(this, option));
|
|
363
|
+
}
|
|
364
|
+
updateTabIndex() {
|
|
365
|
+
this._tabIndex = this.userTabIndex || (this.options.length === 0 ? -1 : 0);
|
|
366
|
+
}
|
|
367
|
+
onCopyDefaultHandler() {
|
|
368
|
+
this.clipboard?.copy(this.keyManager.activeItem.value);
|
|
369
|
+
}
|
|
370
|
+
resetOptions() {
|
|
371
|
+
this.dropSubscriptions();
|
|
372
|
+
this.listenToOptionsFocus();
|
|
373
|
+
}
|
|
374
|
+
dropSubscriptions() {
|
|
375
|
+
if (this.optionFocusSubscription) {
|
|
376
|
+
this.optionFocusSubscription.unsubscribe();
|
|
377
|
+
this.optionFocusSubscription = null;
|
|
378
|
+
}
|
|
379
|
+
if (this.optionBlurSubscription) {
|
|
380
|
+
this.optionBlurSubscription.unsubscribe();
|
|
381
|
+
this.optionBlurSubscription = null;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
listenToOptionsFocus() {
|
|
385
|
+
this.optionFocusSubscription = this.optionFocusChanges
|
|
386
|
+
.subscribe((event) => {
|
|
387
|
+
const index = this.options.toArray().indexOf(event.option);
|
|
388
|
+
if (this.isValidIndex(index)) {
|
|
389
|
+
this.keyManager.updateActiveItem(index);
|
|
390
|
+
}
|
|
391
|
+
});
|
|
392
|
+
this.optionBlurSubscription = this.optionBlurChanges
|
|
393
|
+
.subscribe(() => this.blur());
|
|
394
|
+
}
|
|
395
|
+
/** Checks whether any of the options is focused. */
|
|
396
|
+
hasFocusedOption() {
|
|
397
|
+
return this.options.some((option) => option.hasFocus);
|
|
398
|
+
}
|
|
399
|
+
// Returns the option with the specified value.
|
|
400
|
+
getOptionByValue(value) {
|
|
401
|
+
return this.options.find((option) => option.value === value);
|
|
402
|
+
}
|
|
403
|
+
// Sets the selected options based on the specified values.
|
|
404
|
+
setOptionsFromValues(values) {
|
|
405
|
+
this.options.forEach((option) => option.setSelected(false));
|
|
406
|
+
values
|
|
407
|
+
.map((value) => this.getOptionByValue(value))
|
|
408
|
+
.filter(Boolean)
|
|
409
|
+
.forEach((option) => option.setSelected(true));
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Utility to ensure all indexes are valid.
|
|
413
|
+
* @param index The index to be checked.
|
|
414
|
+
* @returns True if the index is valid for our list of options.
|
|
415
|
+
*/
|
|
416
|
+
isValidIndex(index) {
|
|
417
|
+
return index >= 0 && index < this.options.length;
|
|
418
|
+
}
|
|
419
|
+
// Returns the index of the specified list option.
|
|
420
|
+
getOptionIndex(option) {
|
|
421
|
+
return this.options.toArray().indexOf(option);
|
|
422
|
+
}
|
|
423
|
+
selectAllOptions() {
|
|
424
|
+
const optionsToSelect = this.options
|
|
425
|
+
.filter((option) => !option.disabled);
|
|
426
|
+
optionsToSelect
|
|
427
|
+
.forEach((option) => option.setSelected(true));
|
|
428
|
+
this.onSelectAll.emit(new KbqListSelectAllEvent(this, optionsToSelect));
|
|
429
|
+
}
|
|
430
|
+
copyActiveOption() {
|
|
431
|
+
if (!this.keyManager.activeItem) {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
const option = this.keyManager.activeItem;
|
|
435
|
+
option.preventBlur = true;
|
|
436
|
+
if (this.onCopy.observers.length) {
|
|
437
|
+
this.onCopy.emit(new KbqListCopyEvent(this, option));
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
this.onCopyDefaultHandler();
|
|
441
|
+
}
|
|
442
|
+
option.preventBlur = false;
|
|
443
|
+
}
|
|
444
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListSelection, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: 'multiple', attribute: true }, { token: i1.Clipboard, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
445
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqListSelection, selector: "kbq-list-selection", inputs: { disabled: "disabled", autoSelect: "autoSelect", noUnselectLast: "noUnselectLast", horizontal: "horizontal", tabIndex: "tabIndex", compareWith: "compareWith" }, outputs: { onSelectAll: "onSelectAll", onCopy: "onCopy", selectionChange: "selectionChange" }, host: { listeners: { "keydown": "onKeyDown($event)", "window:resize": "updateScrollSize()" }, properties: { "attr.tabindex": "-1", "attr.disabled": "disabled || null" }, classAttribute: "kbq-list-selection" }, providers: [KBQ_SELECTION_LIST_VALUE_ACCESSOR], queries: [{ propertyName: "options", predicate: i0.forwardRef(function () { return KbqListOption; }), descendants: true }], exportAs: ["mcListSelection"], usesInheritance: true, ngImport: i0, template: `
|
|
446
|
+
<div [attr.tabindex]="tabIndex"
|
|
447
|
+
(focus)="focus()"
|
|
448
|
+
(blur)="blur()">
|
|
449
|
+
<ng-content></ng-content>
|
|
450
|
+
</div>`, isInline: true, styles: [".kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,rgba(0,0,0,.05) 10px,transparent 10px,transparent 20px,rgba(0,0,0,.05) 20px,rgba(0,0,0,.05) 30px,transparent 30px) repeat;background-size:29px 29px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-list,.kbq-list-selection{display:block;outline:none}.kbq-list-item,.kbq-list-option{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:var(--kbq-list-size-item-height, 32px);border:2px solid transparent;padding-left:var(--kbq-list-size-horizontal-padding, 12px)}.kbq-list-item .kbq-list-text,.kbq-list-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;padding-right:var(--kbq-list-size-horizontal-padding, 12px);display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-list-item .kbq-list-text>*,.kbq-list-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-list-item .kbq-list-text:empty,.kbq-list-option .kbq-list-text:empty{display:none}.kbq-list-item .kbq-divider,.kbq-list-option .kbq-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .kbq-list-item .kbq-divider,[dir=rtl] .kbq-list-option .kbq-divider{margin-left:auto;margin-right:0}.kbq-list-item .kbq-divider.kbq-divider_inset,.kbq-list-option .kbq-divider.kbq-divider_inset{position:absolute}.kbq-list-item.kbq-progress:after,.kbq-list-option.kbq-progress:after{inset:-2px}.kbq-list-item .kbq-pseudo-checkbox,.kbq-list-item .kbq-icon,.kbq-list-option .kbq-pseudo-checkbox,.kbq-list-option .kbq-icon{margin-right:var(--kbq-list-size-icon-right-margin, 8px)}.kbq-list-item .kbq-option-action,.kbq-list-option .kbq-option-action{display:none}.kbq-list-item:not([disabled]):hover .kbq-option-action,.kbq-list-item:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-item:not([disabled]).kbq-action-button-focused .kbq-option-action,.kbq-list-option:not([disabled]):hover .kbq-option-action,.kbq-list-option:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-option:not([disabled]).kbq-action-button-focused .kbq-option-action{display:flex}.kbq-list-option:not([disabled]):not(.kbq-disabled){cursor:pointer}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
451
|
+
}
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListSelection, decorators: [{
|
|
453
|
+
type: Component,
|
|
454
|
+
args: [{ exportAs: 'mcListSelection', selector: 'kbq-list-selection', template: `
|
|
455
|
+
<div [attr.tabindex]="tabIndex"
|
|
456
|
+
(focus)="focus()"
|
|
457
|
+
(blur)="blur()">
|
|
458
|
+
<ng-content></ng-content>
|
|
459
|
+
</div>`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: ['disabled'], host: {
|
|
460
|
+
class: 'kbq-list-selection',
|
|
461
|
+
'[attr.tabindex]': '-1',
|
|
462
|
+
'[attr.disabled]': 'disabled || null',
|
|
463
|
+
'(keydown)': 'onKeyDown($event)',
|
|
464
|
+
'(window:resize)': 'updateScrollSize()'
|
|
465
|
+
}, providers: [KBQ_SELECTION_LIST_VALUE_ACCESSOR], preserveWhitespaces: false, styles: [".kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,rgba(0,0,0,.05) 10px,transparent 10px,transparent 20px,rgba(0,0,0,.05) 20px,rgba(0,0,0,.05) 30px,transparent 30px) repeat;background-size:29px 29px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-list,.kbq-list-selection{display:block;outline:none}.kbq-list-item,.kbq-list-option{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:var(--kbq-list-size-item-height, 32px);border:2px solid transparent;padding-left:var(--kbq-list-size-horizontal-padding, 12px)}.kbq-list-item .kbq-list-text,.kbq-list-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;padding-right:var(--kbq-list-size-horizontal-padding, 12px);display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-list-item .kbq-list-text>*,.kbq-list-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-list-item .kbq-list-text:empty,.kbq-list-option .kbq-list-text:empty{display:none}.kbq-list-item .kbq-divider,.kbq-list-option .kbq-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .kbq-list-item .kbq-divider,[dir=rtl] .kbq-list-option .kbq-divider{margin-left:auto;margin-right:0}.kbq-list-item .kbq-divider.kbq-divider_inset,.kbq-list-option .kbq-divider.kbq-divider_inset{position:absolute}.kbq-list-item.kbq-progress:after,.kbq-list-option.kbq-progress:after{inset:-2px}.kbq-list-item .kbq-pseudo-checkbox,.kbq-list-item .kbq-icon,.kbq-list-option .kbq-pseudo-checkbox,.kbq-list-option .kbq-icon{margin-right:var(--kbq-list-size-icon-right-margin, 8px)}.kbq-list-item .kbq-option-action,.kbq-list-option .kbq-option-action{display:none}.kbq-list-item:not([disabled]):hover .kbq-option-action,.kbq-list-item:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-item:not([disabled]).kbq-action-button-focused .kbq-option-action,.kbq-list-option:not([disabled]):hover .kbq-option-action,.kbq-list-option:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-option:not([disabled]).kbq-action-button-focused .kbq-option-action{display:flex}.kbq-list-option:not([disabled]):not(.kbq-disabled){cursor:pointer}\n"] }]
|
|
466
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i2.MultipleMode, decorators: [{
|
|
467
|
+
type: Attribute,
|
|
468
|
+
args: ['multiple']
|
|
469
|
+
}] }, { type: i1.Clipboard, decorators: [{
|
|
470
|
+
type: Optional
|
|
471
|
+
}] }]; }, propDecorators: { options: [{
|
|
472
|
+
type: ContentChildren,
|
|
473
|
+
args: [forwardRef(() => KbqListOption), { descendants: true }]
|
|
474
|
+
}], onSelectAll: [{
|
|
475
|
+
type: Output
|
|
476
|
+
}], onCopy: [{
|
|
477
|
+
type: Output
|
|
478
|
+
}], autoSelect: [{
|
|
479
|
+
type: Input
|
|
480
|
+
}], noUnselectLast: [{
|
|
481
|
+
type: Input
|
|
482
|
+
}], horizontal: [{
|
|
483
|
+
type: Input
|
|
484
|
+
}], tabIndex: [{
|
|
485
|
+
type: Input
|
|
486
|
+
}], selectionChange: [{
|
|
487
|
+
type: Output
|
|
488
|
+
}], compareWith: [{
|
|
489
|
+
type: Input
|
|
490
|
+
}] } });
|
|
491
|
+
/**
|
|
492
|
+
* Component for list-options of selection-list. Each list-option can automatically
|
|
493
|
+
* generate a checkbox and can put current item into the selectionModel of selection-list
|
|
494
|
+
* if the current item is selected.
|
|
495
|
+
*/
|
|
496
|
+
class KbqListOption {
|
|
497
|
+
get value() { return this._value; }
|
|
498
|
+
set value(newValue) {
|
|
499
|
+
if (this.selected && newValue !== this.value && this.inputsInitialized) {
|
|
500
|
+
this.selected = false;
|
|
501
|
+
}
|
|
502
|
+
this._value = newValue;
|
|
503
|
+
}
|
|
504
|
+
get disabled() {
|
|
505
|
+
const listSelectionDisabled = this.listSelection && this.listSelection.disabled;
|
|
506
|
+
const groupDisabled = this.group && this.group.disabled;
|
|
507
|
+
return listSelectionDisabled || groupDisabled || this._disabled;
|
|
508
|
+
}
|
|
509
|
+
set disabled(value) {
|
|
510
|
+
const newValue = toBoolean(value);
|
|
511
|
+
if (newValue !== this._disabled) {
|
|
512
|
+
this._disabled = newValue;
|
|
513
|
+
this.changeDetector.markForCheck();
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
get showCheckbox() {
|
|
517
|
+
return this._showCheckbox !== undefined ? this._showCheckbox : this.listSelection.showCheckbox;
|
|
518
|
+
}
|
|
519
|
+
set showCheckbox(value) {
|
|
520
|
+
this._showCheckbox = coerceBooleanProperty(value);
|
|
521
|
+
}
|
|
522
|
+
get selected() {
|
|
523
|
+
return this.listSelection.selectionModel?.isSelected(this) || false;
|
|
524
|
+
}
|
|
525
|
+
set selected(value) {
|
|
526
|
+
const isSelected = toBoolean(value);
|
|
527
|
+
if (isSelected !== this._selected) {
|
|
528
|
+
this.setSelected(isSelected);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
get tabIndex() {
|
|
532
|
+
return this.disabled ? null : -1;
|
|
533
|
+
}
|
|
534
|
+
constructor(elementRef, changeDetector, ngZone, listSelection, group) {
|
|
535
|
+
this.elementRef = elementRef;
|
|
536
|
+
this.changeDetector = changeDetector;
|
|
537
|
+
this.ngZone = ngZone;
|
|
538
|
+
this.listSelection = listSelection;
|
|
539
|
+
this.group = group;
|
|
540
|
+
this.hasFocus = false;
|
|
541
|
+
this.preventBlur = false;
|
|
542
|
+
this.onFocus = new Subject();
|
|
543
|
+
this.onBlur = new Subject();
|
|
544
|
+
/**
|
|
545
|
+
* This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
|
|
546
|
+
* in the first cycle.
|
|
547
|
+
*/
|
|
548
|
+
this.inputsInitialized = false;
|
|
549
|
+
this._disabled = false;
|
|
550
|
+
this._selected = false;
|
|
551
|
+
}
|
|
552
|
+
ngOnInit() {
|
|
553
|
+
const list = this.listSelection;
|
|
554
|
+
if (list._value && list._value.some((value) => list.compareWith(value, this._value))) {
|
|
555
|
+
this.setSelected(true);
|
|
556
|
+
}
|
|
557
|
+
const wasSelected = this._selected;
|
|
558
|
+
// List options that are selected at initialization can't be reported properly to the form
|
|
559
|
+
// control. This is because it takes some time until the selection-list knows about all
|
|
560
|
+
// available options. Also it can happen that the ControlValueAccessor has an initial value
|
|
561
|
+
// that should be used instead. Deferring the value change report to the next tick ensures
|
|
562
|
+
// that the form control value is not being overwritten.
|
|
563
|
+
Promise.resolve().then(() => {
|
|
564
|
+
if (this._selected || wasSelected) {
|
|
565
|
+
this.selected = true;
|
|
566
|
+
this.changeDetector.markForCheck();
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
this.inputsInitialized = true;
|
|
570
|
+
}
|
|
571
|
+
ngOnDestroy() {
|
|
572
|
+
if (this.selected) {
|
|
573
|
+
// We have to delay this until the next tick in order
|
|
574
|
+
// to avoid changed after checked errors.
|
|
575
|
+
Promise.resolve().then(() => this.selected = false);
|
|
576
|
+
}
|
|
577
|
+
this.listSelection.removeOptionFromList(this);
|
|
578
|
+
}
|
|
579
|
+
toggle() {
|
|
580
|
+
this.selected = !this.selected;
|
|
581
|
+
}
|
|
582
|
+
getLabel() {
|
|
583
|
+
return this.text ? this.text.nativeElement.textContent : '';
|
|
584
|
+
}
|
|
585
|
+
setSelected(selected) {
|
|
586
|
+
if (this._selected === selected || !this.listSelection.selectionModel) {
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
this._selected = selected;
|
|
590
|
+
if (selected) {
|
|
591
|
+
this.listSelection.selectionModel.select(this);
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
this.listSelection.selectionModel.deselect(this);
|
|
595
|
+
}
|
|
596
|
+
this.changeDetector.markForCheck();
|
|
597
|
+
}
|
|
598
|
+
getHeight() {
|
|
599
|
+
const clientRects = this.elementRef.nativeElement.getClientRects();
|
|
600
|
+
return clientRects.length ? clientRects[0].height : 0;
|
|
601
|
+
}
|
|
602
|
+
handleClick($event) {
|
|
603
|
+
if (this.disabled) {
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
this.listSelection.setSelectedOptionsByClick(this, hasModifierKey($event, 'shiftKey'), hasModifierKey($event, 'ctrlKey'));
|
|
607
|
+
}
|
|
608
|
+
onKeydown($event) {
|
|
609
|
+
if (!this.actionButton) {
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
if ($event.keyCode === TAB && !$event.shiftKey && !this.actionButton.hasFocus) {
|
|
613
|
+
this.actionButton.focus();
|
|
614
|
+
$event.preventDefault();
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
focus() {
|
|
618
|
+
if (this.disabled || this.hasFocus || this.actionButton?.hasFocus) {
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
this.elementRef.nativeElement.focus();
|
|
622
|
+
this.onFocus.next({ option: this });
|
|
623
|
+
Promise.resolve().then(() => {
|
|
624
|
+
this.hasFocus = true;
|
|
625
|
+
this.changeDetector.markForCheck();
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
blur() {
|
|
629
|
+
if (this.preventBlur) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
// When animations are enabled, Angular may end up removing the option from the DOM a little
|
|
633
|
+
// earlier than usual, causing it to be blurred and throwing off the logic in the list
|
|
634
|
+
// that moves focus not the next item. To work around the issue, we defer marking the option
|
|
635
|
+
// as not focused until the next time the zone stabilizes.
|
|
636
|
+
this.ngZone.onStable
|
|
637
|
+
.asObservable()
|
|
638
|
+
.pipe(take(1))
|
|
639
|
+
.subscribe(() => {
|
|
640
|
+
this.ngZone.run(() => {
|
|
641
|
+
this.hasFocus = false;
|
|
642
|
+
if (this.actionButton?.hasFocus) {
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
this.onBlur.next({ option: this });
|
|
646
|
+
});
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
getHostElement() {
|
|
650
|
+
return this.elementRef.nativeElement;
|
|
651
|
+
}
|
|
652
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: forwardRef(() => KbqListSelection) }, { token: i2.KbqOptgroup, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
653
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqListOption, selector: "kbq-list-option", inputs: { checkboxPosition: "checkboxPosition", value: "value", disabled: "disabled", showCheckbox: "showCheckbox", selected: "selected" }, host: { listeners: { "focusin": "focus()", "blur": "blur()", "click": "handleClick($event)", "keydown": "onKeydown($event)" }, properties: { "class.kbq-selected": "selected", "class.kbq-disabled": "disabled", "class.kbq-focused": "hasFocus", "class.kbq-action-button-focused": "actionButton?.active", "attr.tabindex": "tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "kbq-list-option" }, providers: [
|
|
654
|
+
{ provide: KBQ_OPTION_ACTION_PARENT, useExisting: KbqListOption },
|
|
655
|
+
{ provide: KBQ_TITLE_TEXT_REF, useExisting: KbqListOption }
|
|
656
|
+
], queries: [{ propertyName: "actionButton", first: true, predicate: KbqOptionActionComponent, descendants: true }, { propertyName: "tooltipTrigger", first: true, predicate: KbqTooltipTrigger, descendants: true }, { propertyName: "dropdownTrigger", first: true, predicate: KbqDropdownTrigger, descendants: true }], viewQueries: [{ propertyName: "text", first: true, predicate: ["text"], descendants: true }, { propertyName: "textElement", first: true, predicate: ["mcTitleText"], descendants: true }], exportAs: ["mcListOption"], ngImport: i0, template: "<kbq-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</kbq-pseudo-checkbox>\n\n<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<div class=\"kbq-list-text\" #text #mcTitleText>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"kbq-option-action\"></ng-content>\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.KbqPseudoCheckbox, selector: "kbq-pseudo-checkbox", inputs: ["color", "big", "state", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
657
|
+
}
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListOption, decorators: [{
|
|
659
|
+
type: Component,
|
|
660
|
+
args: [{ exportAs: 'mcListOption', selector: 'kbq-list-option', host: {
|
|
661
|
+
class: 'kbq-list-option',
|
|
662
|
+
'[class.kbq-selected]': 'selected',
|
|
663
|
+
'[class.kbq-disabled]': 'disabled',
|
|
664
|
+
'[class.kbq-focused]': 'hasFocus',
|
|
665
|
+
'[class.kbq-action-button-focused]': 'actionButton?.active',
|
|
666
|
+
'[attr.tabindex]': 'tabIndex',
|
|
667
|
+
'[attr.disabled]': 'disabled || null',
|
|
668
|
+
'(focusin)': 'focus()',
|
|
669
|
+
'(blur)': 'blur()',
|
|
670
|
+
'(click)': 'handleClick($event)',
|
|
671
|
+
'(keydown)': 'onKeydown($event)'
|
|
672
|
+
}, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
673
|
+
{ provide: KBQ_OPTION_ACTION_PARENT, useExisting: KbqListOption },
|
|
674
|
+
{ provide: KBQ_TITLE_TEXT_REF, useExisting: KbqListOption }
|
|
675
|
+
], template: "<kbq-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</kbq-pseudo-checkbox>\n\n<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<div class=\"kbq-list-text\" #text #mcTitleText>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"kbq-option-action\"></ng-content>\n" }]
|
|
676
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: KbqListSelection, decorators: [{
|
|
677
|
+
type: Inject,
|
|
678
|
+
args: [forwardRef(() => KbqListSelection)]
|
|
679
|
+
}] }, { type: i2.KbqOptgroup, decorators: [{
|
|
680
|
+
type: Optional
|
|
681
|
+
}] }]; }, propDecorators: { actionButton: [{
|
|
682
|
+
type: ContentChild,
|
|
683
|
+
args: [KbqOptionActionComponent]
|
|
684
|
+
}], tooltipTrigger: [{
|
|
685
|
+
type: ContentChild,
|
|
686
|
+
args: [KbqTooltipTrigger]
|
|
687
|
+
}], dropdownTrigger: [{
|
|
688
|
+
type: ContentChild,
|
|
689
|
+
args: [KbqDropdownTrigger]
|
|
690
|
+
}], text: [{
|
|
691
|
+
type: ViewChild,
|
|
692
|
+
args: ['text', { static: false }]
|
|
693
|
+
}], textElement: [{
|
|
694
|
+
type: ViewChild,
|
|
695
|
+
args: ['mcTitleText', { static: false }]
|
|
696
|
+
}], checkboxPosition: [{
|
|
697
|
+
type: Input
|
|
698
|
+
}], value: [{
|
|
699
|
+
type: Input
|
|
700
|
+
}], disabled: [{
|
|
701
|
+
type: Input
|
|
702
|
+
}], showCheckbox: [{
|
|
703
|
+
type: Input
|
|
704
|
+
}], selected: [{
|
|
705
|
+
type: Input
|
|
706
|
+
}] } });
|
|
707
|
+
|
|
708
|
+
// todo пока не делаем, перенесено из материала, но у нас в доках таких простых списков нет.
|
|
709
|
+
class KbqList {
|
|
710
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
711
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqList, selector: "kbq-list", host: { classAttribute: "kbq-list" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,rgba(0,0,0,.05) 10px,transparent 10px,transparent 20px,rgba(0,0,0,.05) 20px,rgba(0,0,0,.05) 30px,transparent 30px) repeat;background-size:29px 29px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-list,.kbq-list-selection{display:block;outline:none}.kbq-list-item,.kbq-list-option{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:var(--kbq-list-size-item-height, 32px);border:2px solid transparent;padding-left:var(--kbq-list-size-horizontal-padding, 12px)}.kbq-list-item .kbq-list-text,.kbq-list-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;padding-right:var(--kbq-list-size-horizontal-padding, 12px);display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-list-item .kbq-list-text>*,.kbq-list-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-list-item .kbq-list-text:empty,.kbq-list-option .kbq-list-text:empty{display:none}.kbq-list-item .kbq-divider,.kbq-list-option .kbq-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .kbq-list-item .kbq-divider,[dir=rtl] .kbq-list-option .kbq-divider{margin-left:auto;margin-right:0}.kbq-list-item .kbq-divider.kbq-divider_inset,.kbq-list-option .kbq-divider.kbq-divider_inset{position:absolute}.kbq-list-item.kbq-progress:after,.kbq-list-option.kbq-progress:after{inset:-2px}.kbq-list-item .kbq-pseudo-checkbox,.kbq-list-item .kbq-icon,.kbq-list-option .kbq-pseudo-checkbox,.kbq-list-option .kbq-icon{margin-right:var(--kbq-list-size-icon-right-margin, 8px)}.kbq-list-item .kbq-option-action,.kbq-list-option .kbq-option-action{display:none}.kbq-list-item:not([disabled]):hover .kbq-option-action,.kbq-list-item:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-item:not([disabled]).kbq-action-button-focused .kbq-option-action,.kbq-list-option:not([disabled]):hover .kbq-option-action,.kbq-list-option:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-option:not([disabled]).kbq-action-button-focused .kbq-option-action{display:flex}.kbq-list-option:not([disabled]):not(.kbq-disabled){cursor:pointer}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
712
|
+
}
|
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqList, decorators: [{
|
|
714
|
+
type: Component,
|
|
715
|
+
args: [{ selector: 'kbq-list', host: { class: 'kbq-list' }, template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,rgba(0,0,0,.05) 10px,transparent 10px,transparent 20px,rgba(0,0,0,.05) 20px,rgba(0,0,0,.05) 30px,transparent 30px) repeat;background-size:29px 29px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-list,.kbq-list-selection{display:block;outline:none}.kbq-list-item,.kbq-list-option{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:var(--kbq-list-size-item-height, 32px);border:2px solid transparent;padding-left:var(--kbq-list-size-horizontal-padding, 12px)}.kbq-list-item .kbq-list-text,.kbq-list-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;padding-right:var(--kbq-list-size-horizontal-padding, 12px);display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-list-item .kbq-list-text>*,.kbq-list-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-list-item .kbq-list-text:empty,.kbq-list-option .kbq-list-text:empty{display:none}.kbq-list-item .kbq-divider,.kbq-list-option .kbq-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .kbq-list-item .kbq-divider,[dir=rtl] .kbq-list-option .kbq-divider{margin-left:auto;margin-right:0}.kbq-list-item .kbq-divider.kbq-divider_inset,.kbq-list-option .kbq-divider.kbq-divider_inset{position:absolute}.kbq-list-item.kbq-progress:after,.kbq-list-option.kbq-progress:after{inset:-2px}.kbq-list-item .kbq-pseudo-checkbox,.kbq-list-item .kbq-icon,.kbq-list-option .kbq-pseudo-checkbox,.kbq-list-option .kbq-icon{margin-right:var(--kbq-list-size-icon-right-margin, 8px)}.kbq-list-item .kbq-option-action,.kbq-list-option .kbq-option-action{display:none}.kbq-list-item:not([disabled]):hover .kbq-option-action,.kbq-list-item:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-item:not([disabled]).kbq-action-button-focused .kbq-option-action,.kbq-list-option:not([disabled]):hover .kbq-option-action,.kbq-list-option:not([disabled]).kbq-focused .kbq-option-action,.kbq-list-option:not([disabled]).kbq-action-button-focused .kbq-option-action{display:flex}.kbq-list-option:not([disabled]):not(.kbq-disabled){cursor:pointer}\n"] }]
|
|
716
|
+
}] });
|
|
717
|
+
class KbqListItem {
|
|
718
|
+
constructor(elementRef) {
|
|
719
|
+
this.elementRef = elementRef;
|
|
720
|
+
}
|
|
721
|
+
ngAfterContentInit() {
|
|
722
|
+
// tslint:disable-next-line:no-unused-expression
|
|
723
|
+
new KbqLineSetter(this.lines, this.elementRef);
|
|
724
|
+
}
|
|
725
|
+
handleFocus() {
|
|
726
|
+
this.elementRef.nativeElement.classList.add('kbq-focused');
|
|
727
|
+
}
|
|
728
|
+
handleBlur() {
|
|
729
|
+
this.elementRef.nativeElement.classList.remove('kbq-focused');
|
|
730
|
+
}
|
|
731
|
+
getHostElement() {
|
|
732
|
+
return this.elementRef.nativeElement;
|
|
733
|
+
}
|
|
734
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListItem, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
735
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqListItem, selector: "kbq-list-item, a[kbq-list-item]", host: { listeners: { "focus": "handleFocus()", "blur": "handleBlur()" }, classAttribute: "kbq-list-item" }, queries: [{ propertyName: "lines", predicate: KbqLine }], ngImport: i0, template: "<ng-content select=\"[kbq-list-icon], [mcListIcon]\"></ng-content>\n\n<div class=\"kbq-list-text\">\n <ng-content select=\"[kbq-line], [mcLine]\"></ng-content>\n</div>\n\n<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
736
|
+
}
|
|
737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListItem, decorators: [{
|
|
738
|
+
type: Component,
|
|
739
|
+
args: [{ selector: 'kbq-list-item, a[kbq-list-item]', host: {
|
|
740
|
+
class: 'kbq-list-item',
|
|
741
|
+
'(focus)': 'handleFocus()',
|
|
742
|
+
'(blur)': 'handleBlur()'
|
|
743
|
+
}, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"[kbq-list-icon], [mcListIcon]\"></ng-content>\n\n<div class=\"kbq-list-text\">\n <ng-content select=\"[kbq-line], [mcLine]\"></ng-content>\n</div>\n\n<ng-content></ng-content>\n" }]
|
|
744
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { lines: [{
|
|
745
|
+
type: ContentChildren,
|
|
746
|
+
args: [KbqLine]
|
|
747
|
+
}] } });
|
|
748
|
+
|
|
749
|
+
class KbqListModule {
|
|
750
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
751
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: KbqListModule, declarations: [KbqList,
|
|
752
|
+
KbqListSelection,
|
|
753
|
+
KbqListItem,
|
|
754
|
+
KbqListOption], imports: [CommonModule,
|
|
755
|
+
A11yModule,
|
|
756
|
+
KbqPseudoCheckboxModule,
|
|
757
|
+
KbqLineModule,
|
|
758
|
+
KbqOptionModule], exports: [KbqList,
|
|
759
|
+
KbqListSelection,
|
|
760
|
+
KbqListItem,
|
|
761
|
+
KbqListOption,
|
|
762
|
+
KbqOptionModule] }); }
|
|
763
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListModule, imports: [CommonModule,
|
|
764
|
+
A11yModule,
|
|
765
|
+
KbqPseudoCheckboxModule,
|
|
766
|
+
KbqLineModule,
|
|
767
|
+
KbqOptionModule, KbqOptionModule] }); }
|
|
768
|
+
}
|
|
769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqListModule, decorators: [{
|
|
770
|
+
type: NgModule,
|
|
771
|
+
args: [{
|
|
772
|
+
imports: [
|
|
773
|
+
CommonModule,
|
|
774
|
+
A11yModule,
|
|
775
|
+
KbqPseudoCheckboxModule,
|
|
776
|
+
KbqLineModule,
|
|
777
|
+
KbqOptionModule
|
|
778
|
+
],
|
|
779
|
+
exports: [
|
|
780
|
+
KbqList,
|
|
781
|
+
KbqListSelection,
|
|
782
|
+
KbqListItem,
|
|
783
|
+
KbqListOption,
|
|
784
|
+
KbqOptionModule
|
|
785
|
+
],
|
|
786
|
+
declarations: [
|
|
787
|
+
KbqList,
|
|
788
|
+
KbqListSelection,
|
|
789
|
+
KbqListItem,
|
|
790
|
+
KbqListOption
|
|
791
|
+
]
|
|
792
|
+
}]
|
|
793
|
+
}] });
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Generated bundle index. Do not edit.
|
|
797
|
+
*/
|
|
798
|
+
|
|
799
|
+
export { KBQ_SELECTION_LIST_VALUE_ACCESSOR, KbqList, KbqListCopyEvent, KbqListItem, KbqListModule, KbqListOption, KbqListSelectAllEvent, KbqListSelection, KbqListSelectionBase, KbqListSelectionChange, KbqListSelectionMixinBase };
|
|
800
|
+
//# sourceMappingURL=koobiq-components-list.mjs.map
|