@taiga-ui/core 3.58.0 → 3.59.0-canary.10da730
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/abstract/abstract-driver.directive.d.ts +1 -1
- package/abstract/abstract-textfield-host.d.ts +1 -1
- package/abstract/rect-accessor.d.ts +1 -1
- package/components/alert/alert.component.d.ts +1 -1
- package/components/alert/alert.directive.d.ts +1 -1
- package/components/button/button.component.d.ts +1 -1
- package/components/calendar/calendar.component.d.ts +1 -1
- package/components/data-list/data-list.component.d.ts +1 -1
- package/components/data-list/data-list.directive.d.ts +1 -1
- package/components/data-list/opt-group.directive.d.ts +1 -1
- package/components/data-list/option/option.component.d.ts +1 -1
- package/components/dialog/dialog.component.d.ts +2 -2
- package/components/dialog/dialog.directive.d.ts +1 -1
- package/components/dialog/dialog.tokens.d.ts +1 -1
- package/components/error/error.component.d.ts +1 -1
- package/components/expand/expand-content.directive.d.ts +1 -1
- package/components/expand/expand.component.d.ts +1 -1
- package/components/group/group-styles.component.d.ts +1 -1
- package/components/group/group.directive.d.ts +1 -1
- package/components/hints-host/hints-host.component.d.ts +1 -1
- package/components/hosted-dropdown/accessor-proxy.directive.d.ts +1 -1
- package/components/hosted-dropdown/dropdown-open-monitor.directive.d.ts +1 -1
- package/components/hosted-dropdown/hosted-dropdown-connector.directive.d.ts +1 -1
- package/components/hosted-dropdown/hosted-dropdown.component.d.ts +3 -3
- package/components/label/label.component.d.ts +1 -1
- package/components/link/link.component.d.ts +1 -1
- package/components/loader/loader.component.d.ts +1 -1
- package/components/notification/notification.component.d.ts +1 -1
- package/components/primitive-calendar/primitive-calendar.component.d.ts +7 -2
- package/components/primitive-checkbox/primitive-checkbox.component.d.ts +1 -1
- package/components/primitive-spin-button/primitive-spin-button.component.d.ts +1 -1
- package/components/primitive-textfield/primitive-textfield-options.d.ts +1 -1
- package/components/primitive-textfield/primitive-textfield-types.d.ts +1 -1
- package/components/primitive-textfield/primitive-textfield.component.d.ts +1 -1
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +1 -1
- package/components/primitive-textfield/textfield/textfield.component.d.ts +1 -1
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +1 -1
- package/components/primitive-year-picker/primitive-year-picker.component.d.ts +1 -1
- package/components/root/root.component.d.ts +1 -1
- package/components/scroll-controls/scroll-controls.component.d.ts +1 -1
- package/components/scroll-controls/scrollbar-wrapper.directive.d.ts +1 -1
- package/components/scroll-controls/scrollbar.directive.d.ts +1 -1
- package/components/scrollbar/scroll-ref.directive.d.ts +1 -1
- package/components/scrollbar/scrollable.directive.d.ts +1 -1
- package/components/scrollbar/scrollbar.component.d.ts +1 -1
- package/components/svg/svg-options.d.ts +1 -1
- package/components/svg/svg.component.d.ts +1 -1
- package/components/theme-night/theme-night.component.d.ts +1 -1
- package/components/tooltip/tooltip.component.d.ts +1 -1
- package/constants/cache-basting-payload.d.ts +1 -1
- package/directives/dropdown/dropdown-context.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-driver.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-host.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-hover.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-manual.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-open.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-options.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-position-sided.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-position.directive.d.ts +1 -1
- package/directives/dropdown/dropdown-selection.directive.d.ts +1 -1
- package/directives/dropdown/dropdown.component.d.ts +1 -1
- package/directives/dropdown/dropdown.directive.d.ts +1 -1
- package/directives/hint/hint-describe.directive.d.ts +1 -1
- package/directives/hint/hint-driver.directive.d.ts +1 -1
- package/directives/hint/hint-host.directive.d.ts +1 -1
- package/directives/hint/hint-hover.directive.d.ts +1 -1
- package/directives/hint/hint-manual.directive.d.ts +1 -1
- package/directives/hint/hint-options.directive.d.ts +1 -1
- package/directives/hint/hint-pointer.directive.d.ts +1 -1
- package/directives/hint/hint-position.directive.d.ts +1 -1
- package/directives/hint/hint-unstyled.component.d.ts +2 -2
- package/directives/hint/hint.component.d.ts +1 -1
- package/directives/hint/hint.directive.d.ts +1 -1
- package/directives/mask-accessor/mask-accessor.directive.d.ts +1 -1
- package/directives/mode/mode.directive.d.ts +1 -1
- package/directives/number-format/number-format.directive.d.ts +1 -1
- package/directives/scroll-into-view/scroll-into-view.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-appearance.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-filler.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-icon.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +1 -1
- package/directives/textfield-controller/textfield-size.directive.d.ts +1 -1
- package/directives/wrapper/README.md +21 -0
- package/directives/wrapper/wrapper.directive.d.ts +1 -1
- package/enums/interactive-state.d.ts +1 -1
- package/esm2020/abstract/abstract-driver.directive.mjs +39 -0
- package/esm2020/abstract/abstract-textfield-host.mjs +36 -0
- package/esm2020/abstract/rect-accessor.mjs +24 -0
- package/esm2020/components/alert/alert.component.mjs +88 -0
- package/esm2020/components/alert/alert.directive.mjs +28 -0
- package/esm2020/components/alert/alert.module.mjs +24 -0
- package/esm2020/components/alert/alert.service.mjs +27 -0
- package/esm2020/components/button/button.component.mjs +104 -0
- package/esm2020/components/button/button.module.mjs +36 -0
- package/esm2020/components/calendar/calendar.component.mjs +125 -0
- package/esm2020/components/calendar/calendar.module.mjs +40 -0
- package/esm2020/components/data-list/data-list.component.mjs +119 -0
- package/esm2020/components/data-list/data-list.directive.mjs +19 -0
- package/esm2020/components/data-list/data-list.module.mjs +39 -0
- package/esm2020/components/data-list/opt-group.directive.mjs +21 -0
- package/esm2020/components/data-list/option/option.component.mjs +112 -0
- package/esm2020/components/dialog/dialog-close.service.mjs +46 -0
- package/esm2020/components/dialog/dialog.component.mjs +116 -0
- package/esm2020/components/dialog/dialog.directive.mjs +28 -0
- package/esm2020/components/dialog/dialog.module.mjs +24 -0
- package/esm2020/components/dialog/dialog.service.mjs +26 -0
- package/esm2020/components/error/error.component.mjs +49 -0
- package/esm2020/components/error/error.module.mjs +19 -0
- package/esm2020/components/expand/expand-content.directive.mjs +13 -0
- package/esm2020/components/expand/expand.component.mjs +125 -0
- package/esm2020/components/expand/expand.module.mjs +20 -0
- package/esm2020/components/group/group-styles.component.mjs +13 -0
- package/esm2020/components/group/group.directive.mjs +68 -0
- package/esm2020/components/group/group.module.mjs +19 -0
- package/esm2020/components/hints-host/hints-host.component.mjs +45 -0
- package/esm2020/components/hints-host/hints-host.module.mjs +20 -0
- package/esm2020/components/hosted-dropdown/accessor-proxy.directive.mjs +42 -0
- package/esm2020/components/hosted-dropdown/dropdown-open-monitor.directive.mjs +46 -0
- package/esm2020/components/hosted-dropdown/hosted-dropdown-connector.directive.mjs +13 -0
- package/esm2020/components/hosted-dropdown/hosted-dropdown.component.mjs +262 -0
- package/esm2020/components/hosted-dropdown/hosted-dropdown.module.mjs +55 -0
- package/esm2020/components/label/label.component.mjs +37 -0
- package/esm2020/components/label/label.module.mjs +18 -0
- package/esm2020/components/link/link.component.mjs +92 -0
- package/esm2020/components/link/link.module.mjs +19 -0
- package/esm2020/components/loader/loader.component.mjs +72 -0
- package/esm2020/components/loader/loader.module.mjs +19 -0
- package/esm2020/components/notification/notification.component.mjs +62 -0
- package/esm2020/components/notification/notification.module.mjs +21 -0
- package/esm2020/components/primitive-calendar/primitive-calendar.component.mjs +155 -0
- package/esm2020/components/primitive-calendar/primitive-calendar.module.mjs +43 -0
- package/esm2020/components/primitive-checkbox/primitive-checkbox.component.mjs +72 -0
- package/esm2020/components/primitive-checkbox/primitive-checkbox.module.mjs +20 -0
- package/esm2020/components/primitive-spin-button/primitive-spin-button.component.mjs +85 -0
- package/esm2020/components/primitive-spin-button/primitive-spin-button.module.mjs +19 -0
- package/esm2020/components/primitive-textfield/primitive-textfield.component.mjs +272 -0
- package/esm2020/components/primitive-textfield/primitive-textfield.directive.mjs +36 -0
- package/esm2020/components/primitive-textfield/primitive-textfield.module.mjs +68 -0
- package/esm2020/components/primitive-textfield/textfield/textfield.component.mjs +57 -0
- package/esm2020/components/primitive-textfield/value-decoration/value-decoration.component.mjs +77 -0
- package/esm2020/components/primitive-year-picker/primitive-year-picker.component.mjs +157 -0
- package/esm2020/components/primitive-year-picker/primitive-year-picker.module.mjs +33 -0
- package/esm2020/components/root/root.component.mjs +70 -0
- package/esm2020/components/root/root.module.mjs +45 -0
- package/esm2020/components/scroll-controls/scroll-controls.component.mjs +53 -0
- package/esm2020/components/scroll-controls/scroll-controls.module.mjs +28 -0
- package/esm2020/components/scroll-controls/scrollbar-wrapper.directive.mjs +25 -0
- package/esm2020/components/scroll-controls/scrollbar.directive.mjs +134 -0
- package/esm2020/components/scrollbar/scroll-ref.directive.mjs +28 -0
- package/esm2020/components/scrollbar/scrollable.directive.mjs +26 -0
- package/esm2020/components/scrollbar/scrollbar.component.mjs +87 -0
- package/esm2020/components/scrollbar/scrollbar.module.mjs +21 -0
- package/esm2020/components/svg/svg-options.mjs +68 -0
- package/esm2020/components/svg/svg.component.mjs +176 -0
- package/esm2020/components/svg/svg.module.mjs +19 -0
- package/esm2020/components/theme-night/theme-night.component.mjs +12 -0
- package/esm2020/components/theme-night/theme-night.module.mjs +16 -0
- package/esm2020/components/tooltip/tooltip.component.mjs +68 -0
- package/esm2020/components/tooltip/tooltip.module.mjs +36 -0
- package/esm2020/directives/dropdown/dropdown-context.directive.mjs +66 -0
- package/esm2020/directives/dropdown/dropdown-driver.directive.mjs +33 -0
- package/esm2020/directives/dropdown/dropdown-host.directive.mjs +25 -0
- package/esm2020/directives/dropdown/dropdown-hover.directive.mjs +56 -0
- package/esm2020/directives/dropdown/dropdown-manual.directive.mjs +27 -0
- package/esm2020/directives/dropdown/dropdown-open.directive.mjs +28 -0
- package/esm2020/directives/dropdown/dropdown-options.directive.mjs +84 -0
- package/esm2020/directives/dropdown/dropdown-position-sided.directive.mjs +81 -0
- package/esm2020/directives/dropdown/dropdown-position.directive.mjs +85 -0
- package/esm2020/directives/dropdown/dropdown-selection.directive.mjs +160 -0
- package/esm2020/directives/dropdown/dropdown.component.mjs +162 -0
- package/esm2020/directives/dropdown/dropdown.directive.mjs +120 -0
- package/esm2020/directives/dropdown/dropdown.module.mjs +93 -0
- package/esm2020/directives/hint/hint-describe.directive.mjs +56 -0
- package/esm2020/directives/hint/hint-driver.directive.mjs +33 -0
- package/esm2020/directives/hint/hint-host.directive.mjs +25 -0
- package/esm2020/directives/hint/hint-hover.directive.mjs +55 -0
- package/esm2020/directives/hint/hint-manual.directive.mjs +33 -0
- package/esm2020/directives/hint/hint-options.directive.mjs +75 -0
- package/esm2020/directives/hint/hint-pointer.directive.mjs +36 -0
- package/esm2020/directives/hint/hint-position.directive.mjs +104 -0
- package/esm2020/directives/hint/hint-unstyled.component.mjs +66 -0
- package/esm2020/directives/hint/hint.component.mjs +158 -0
- package/esm2020/directives/hint/hint.directive.mjs +95 -0
- package/esm2020/directives/hint/hint.module.mjs +75 -0
- package/esm2020/directives/mask-accessor/mask-accessor.directive.mjs +30 -0
- package/esm2020/directives/mask-accessor/mask-accessor.module.mjs +19 -0
- package/esm2020/directives/mode/mode.directive.mjs +21 -0
- package/esm2020/directives/mode/mode.module.mjs +16 -0
- package/esm2020/directives/number-format/number-format.directive.mjs +38 -0
- package/esm2020/directives/number-format/number-format.module.mjs +16 -0
- package/esm2020/directives/scroll-into-view/scroll-into-view.directive.mjs +50 -0
- package/esm2020/directives/scroll-into-view/scroll-into-view.module.mjs +16 -0
- package/esm2020/directives/textfield-controller/textfield-appearance.directive.mjs +36 -0
- package/esm2020/directives/textfield-controller/textfield-cleaner.directive.mjs +33 -0
- package/esm2020/directives/textfield-controller/textfield-controller.module.mjs +65 -0
- package/esm2020/directives/textfield-controller/textfield-controller.provider.mjs +45 -0
- package/esm2020/directives/textfield-controller/textfield-custom-content.directive.mjs +29 -0
- package/esm2020/directives/textfield-controller/textfield-filler.directive.mjs +33 -0
- package/esm2020/directives/textfield-controller/textfield-icon-left.directive.mjs +29 -0
- package/esm2020/directives/textfield-controller/textfield-icon.directive.mjs +29 -0
- package/esm2020/directives/textfield-controller/textfield-label-outside.directive.mjs +33 -0
- package/esm2020/directives/textfield-controller/textfield-postfix.directive.mjs +33 -0
- package/esm2020/directives/textfield-controller/textfield-prefix.directive.mjs +33 -0
- package/esm2020/directives/textfield-controller/textfield-size.directive.mjs +33 -0
- package/esm2020/directives/wrapper/wrapper.directive.mjs +93 -0
- package/esm2020/directives/wrapper/wrapper.module.mjs +16 -0
- package/esm2020/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.mjs +75 -0
- package/esm2020/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.mjs +36 -0
- package/esm2020/internal/svg-defs-host/svg-defs-host.component.mjs +46 -0
- package/esm2020/internal/svg-defs-host/svg-defs-host.module.mjs +19 -0
- package/esm2020/observables/smart-search.mjs +8 -0
- package/esm2020/observables/zoneful-map.mjs +13 -0
- package/esm2020/pipes/calendar-sheet/calendar-sheet.module.mjs +16 -0
- package/esm2020/pipes/calendar-sheet/calendar-sheet.pipe.mjs +56 -0
- package/esm2020/pipes/flag/flag.module.mjs +16 -0
- package/esm2020/pipes/flag/flag.pipe.mjs +46 -0
- package/esm2020/pipes/format-date/format-date.module.mjs +16 -0
- package/esm2020/pipes/format-date/format-date.pipe.mjs +24 -0
- package/esm2020/pipes/format-number/format-number.module.mjs +16 -0
- package/esm2020/pipes/format-number/format-number.pipe.mjs +28 -0
- package/esm2020/pipes/format-phone/format-phone.module.mjs +16 -0
- package/esm2020/pipes/format-phone/format-phone.pipe.mjs +25 -0
- package/esm2020/pipes/month/month.module.mjs +16 -0
- package/esm2020/pipes/month/month.pipe.mjs +23 -0
- package/esm2020/pipes/order-week-days/order-week-days.module.mjs +16 -0
- package/esm2020/pipes/order-week-days/order-week-days.pipe.mjs +34 -0
- package/esm2020/providers/mode.provider.mjs +16 -0
- package/esm2020/providers/watched-controller-provider-factory.mjs +7 -0
- package/esm2020/services/breakpoint.service.mjs +41 -0
- package/esm2020/services/format-date.service.mjs +26 -0
- package/esm2020/services/hint.service.mjs +28 -0
- package/esm2020/services/night-theme.service.mjs +23 -0
- package/esm2020/services/position.service.mjs +35 -0
- package/esm2020/services/router-link-active.service.mjs +41 -0
- package/esm2020/services/svg.service.mjs +73 -0
- package/esm2020/services/visual-viewport.service.mjs +34 -0
- package/esm2020/tokens/is-mobile-resolution.mjs +17 -0
- package/esm2020/tokens/number-format-observable.mjs +8 -0
- package/esm2020/tokens/ordered-short-week-days.mjs +27 -0
- package/esm2020/tokens/reduced-motion.mjs +6 -0
- package/esm2020/tokens/selection-stream.mjs +12 -0
- package/esm2020/tokens/viewport.mjs +35 -0
- package/esm2020/utils/dom/process-icon.mjs +31 -0
- package/esm2020/utils/format/format-number.mjs +43 -0
- package/esm2020/utils/format/number-to-string-without-exp.mjs +18 -0
- package/esm2020/utils/mask/create-number-mask.mjs +121 -0
- package/esm2020/utils/miscellaneous/is-obscured.mjs +8 -0
- package/esm2020/utils/miscellaneous/override-options.mjs +11 -0
- package/fesm2015/taiga-ui-core-abstract.mjs +145 -0
- package/fesm2015/taiga-ui-core-abstract.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-animations.mjs +262 -0
- package/fesm2015/taiga-ui-core-animations.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-alert.mjs +154 -0
- package/fesm2015/taiga-ui-core-components-alert.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-button.mjs +161 -0
- package/fesm2015/taiga-ui-core-components-button.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-calendar.mjs +172 -0
- package/fesm2015/taiga-ui-core-components-calendar.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-data-list.mjs +303 -0
- package/fesm2015/taiga-ui-core-components-data-list.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-dialog.mjs +244 -0
- package/fesm2015/taiga-ui-core-components-dialog.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-error.mjs +74 -0
- package/fesm2015/taiga-ui-core-components-error.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-expand.mjs +160 -0
- package/fesm2015/taiga-ui-core-components-expand.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-group.mjs +102 -0
- package/fesm2015/taiga-ui-core-components-group.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-hints-host.mjs +70 -0
- package/fesm2015/taiga-ui-core-components-hints-host.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.mjs +412 -0
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-label.mjs +61 -0
- package/fesm2015/taiga-ui-core-components-label.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-link.mjs +117 -0
- package/fesm2015/taiga-ui-core-components-link.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-loader.mjs +109 -0
- package/fesm2015/taiga-ui-core-components-loader.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-notification.mjs +89 -0
- package/fesm2015/taiga-ui-core-components-notification.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-primitive-calendar.mjs +203 -0
- package/fesm2015/taiga-ui-core-components-primitive-calendar.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.mjs +120 -0
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.mjs +110 -0
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-primitive-textfield.mjs +526 -0
- package/fesm2015/taiga-ui-core-components-primitive-textfield.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.mjs +195 -0
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-root.mjs +119 -0
- package/fesm2015/taiga-ui-core-components-root.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-scroll-controls.mjs +232 -0
- package/fesm2015/taiga-ui-core-components-scroll-controls.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-scrollbar.mjs +162 -0
- package/fesm2015/taiga-ui-core-components-scrollbar.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-svg.mjs +313 -0
- package/fesm2015/taiga-ui-core-components-svg.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-theme-night.mjs +32 -0
- package/fesm2015/taiga-ui-core-components-theme-night.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components-tooltip.mjs +111 -0
- package/fesm2015/taiga-ui-core-components-tooltip.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-components.mjs +30 -0
- package/fesm2015/taiga-ui-core-components.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-constants.mjs +90 -0
- package/fesm2015/taiga-ui-core-constants.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-dropdown.mjs +980 -0
- package/fesm2015/taiga-ui-core-directives-dropdown.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-hint.mjs +764 -0
- package/fesm2015/taiga-ui-core-directives-hint.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-mask-accessor.mjs +53 -0
- package/fesm2015/taiga-ui-core-directives-mask-accessor.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-mode.mjs +41 -0
- package/fesm2015/taiga-ui-core-directives-mode.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-number-format.mjs +60 -0
- package/fesm2015/taiga-ui-core-directives-number-format.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.mjs +72 -0
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-textfield-controller.mjs +446 -0
- package/fesm2015/taiga-ui-core-directives-textfield-controller.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives-wrapper.mjs +115 -0
- package/fesm2015/taiga-ui-core-directives-wrapper.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-directives.mjs +13 -0
- package/fesm2015/taiga-ui-core-directives.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-enums.mjs +68 -0
- package/fesm2015/taiga-ui-core-enums.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-interfaces.mjs +4 -0
- package/fesm2015/taiga-ui-core-interfaces.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.mjs +116 -0
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.mjs +69 -0
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-internal.mjs +7 -0
- package/fesm2015/taiga-ui-core-internal.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-mask.mjs +4 -0
- package/fesm2015/taiga-ui-core-mask.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-observables.mjs +26 -0
- package/fesm2015/taiga-ui-core-observables.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.mjs +111 -0
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-flag.mjs +68 -0
- package/fesm2015/taiga-ui-core-pipes-flag.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-format-date.mjs +46 -0
- package/fesm2015/taiga-ui-core-pipes-format-date.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-format-number.mjs +50 -0
- package/fesm2015/taiga-ui-core-pipes-format-number.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-format-phone.mjs +45 -0
- package/fesm2015/taiga-ui-core-pipes-format-phone.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-month.mjs +45 -0
- package/fesm2015/taiga-ui-core-pipes-month.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes-order-week-days.mjs +56 -0
- package/fesm2015/taiga-ui-core-pipes-order-week-days.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-pipes.mjs +12 -0
- package/fesm2015/taiga-ui-core-pipes.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-providers.mjs +41 -0
- package/fesm2015/taiga-ui-core-providers.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-services.mjs +287 -0
- package/fesm2015/taiga-ui-core-services.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-tokens.mjs +333 -0
- package/fesm2015/taiga-ui-core-tokens.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-types.mjs +4 -0
- package/fesm2015/taiga-ui-core-types.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-utils-dom.mjs +160 -0
- package/fesm2015/taiga-ui-core-utils-dom.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-utils-format.mjs +146 -0
- package/fesm2015/taiga-ui-core-utils-format.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-utils-mask.mjs +284 -0
- package/fesm2015/taiga-ui-core-utils-mask.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-utils-miscellaneous.mjs +89 -0
- package/fesm2015/taiga-ui-core-utils-miscellaneous.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-utils-mobile.mjs +12 -0
- package/fesm2015/taiga-ui-core-utils-mobile.mjs.map +1 -0
- package/fesm2015/taiga-ui-core-utils.mjs +10 -0
- package/fesm2015/taiga-ui-core-utils.mjs.map +1 -0
- package/fesm2015/taiga-ui-core.mjs +21 -0
- package/fesm2015/taiga-ui-core.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-abstract.mjs +140 -0
- package/fesm2020/taiga-ui-core-abstract.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-animations.mjs +262 -0
- package/fesm2020/taiga-ui-core-animations.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-alert.mjs +157 -0
- package/fesm2020/taiga-ui-core-components-alert.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-button.mjs +157 -0
- package/fesm2020/taiga-ui-core-components-button.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-calendar.mjs +168 -0
- package/fesm2020/taiga-ui-core-components-calendar.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-data-list.mjs +297 -0
- package/fesm2020/taiga-ui-core-components-data-list.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-dialog.mjs +243 -0
- package/fesm2020/taiga-ui-core-components-dialog.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-error.mjs +72 -0
- package/fesm2020/taiga-ui-core-components-error.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-expand.mjs +158 -0
- package/fesm2020/taiga-ui-core-components-expand.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-group.mjs +100 -0
- package/fesm2020/taiga-ui-core-components-group.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-hints-host.mjs +68 -0
- package/fesm2020/taiga-ui-core-components-hints-host.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-hosted-dropdown.mjs +404 -0
- package/fesm2020/taiga-ui-core-components-hosted-dropdown.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-label.mjs +59 -0
- package/fesm2020/taiga-ui-core-components-label.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-link.mjs +115 -0
- package/fesm2020/taiga-ui-core-components-link.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-loader.mjs +107 -0
- package/fesm2020/taiga-ui-core-components-loader.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-notification.mjs +87 -0
- package/fesm2020/taiga-ui-core-components-notification.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-primitive-calendar.mjs +201 -0
- package/fesm2020/taiga-ui-core-components-primitive-calendar.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-primitive-checkbox.mjs +118 -0
- package/fesm2020/taiga-ui-core-components-primitive-checkbox.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-primitive-spin-button.mjs +108 -0
- package/fesm2020/taiga-ui-core-components-primitive-spin-button.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-primitive-textfield.mjs +511 -0
- package/fesm2020/taiga-ui-core-components-primitive-textfield.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-primitive-year-picker.mjs +193 -0
- package/fesm2020/taiga-ui-core-components-primitive-year-picker.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-root.mjs +117 -0
- package/fesm2020/taiga-ui-core-components-root.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-scroll-controls.mjs +228 -0
- package/fesm2020/taiga-ui-core-components-scroll-controls.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-scrollbar.mjs +157 -0
- package/fesm2020/taiga-ui-core-components-scrollbar.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-svg.mjs +318 -0
- package/fesm2020/taiga-ui-core-components-svg.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-theme-night.mjs +32 -0
- package/fesm2020/taiga-ui-core-components-theme-night.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components-tooltip.mjs +108 -0
- package/fesm2020/taiga-ui-core-components-tooltip.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-components.mjs +30 -0
- package/fesm2020/taiga-ui-core-components.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-constants.mjs +90 -0
- package/fesm2020/taiga-ui-core-constants.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-dropdown.mjs +952 -0
- package/fesm2020/taiga-ui-core-directives-dropdown.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-hint.mjs +740 -0
- package/fesm2020/taiga-ui-core-directives-hint.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-mask-accessor.mjs +53 -0
- package/fesm2020/taiga-ui-core-directives-mask-accessor.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-mode.mjs +41 -0
- package/fesm2020/taiga-ui-core-directives-mode.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-number-format.mjs +58 -0
- package/fesm2020/taiga-ui-core-directives-number-format.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-scroll-into-view.mjs +70 -0
- package/fesm2020/taiga-ui-core-directives-scroll-into-view.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-textfield-controller.mjs +446 -0
- package/fesm2020/taiga-ui-core-directives-textfield-controller.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives-wrapper.mjs +113 -0
- package/fesm2020/taiga-ui-core-directives-wrapper.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-directives.mjs +13 -0
- package/fesm2020/taiga-ui-core-directives.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-enums.mjs +68 -0
- package/fesm2020/taiga-ui-core-enums.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-interfaces.mjs +4 -0
- package/fesm2020/taiga-ui-core-interfaces.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-internal-primitive-year-month-pagination.mjs +114 -0
- package/fesm2020/taiga-ui-core-internal-primitive-year-month-pagination.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-internal-svg-defs-host.mjs +67 -0
- package/fesm2020/taiga-ui-core-internal-svg-defs-host.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-internal.mjs +7 -0
- package/fesm2020/taiga-ui-core-internal.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-mask.mjs +4 -0
- package/fesm2020/taiga-ui-core-mask.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-observables.mjs +26 -0
- package/fesm2020/taiga-ui-core-observables.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-calendar-sheet.mjs +108 -0
- package/fesm2020/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-flag.mjs +66 -0
- package/fesm2020/taiga-ui-core-pipes-flag.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-format-date.mjs +44 -0
- package/fesm2020/taiga-ui-core-pipes-format-date.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-format-number.mjs +48 -0
- package/fesm2020/taiga-ui-core-pipes-format-number.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-format-phone.mjs +45 -0
- package/fesm2020/taiga-ui-core-pipes-format-phone.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-month.mjs +43 -0
- package/fesm2020/taiga-ui-core-pipes-month.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes-order-week-days.mjs +54 -0
- package/fesm2020/taiga-ui-core-pipes-order-week-days.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-pipes.mjs +12 -0
- package/fesm2020/taiga-ui-core-pipes.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-providers.mjs +41 -0
- package/fesm2020/taiga-ui-core-providers.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-services.mjs +278 -0
- package/fesm2020/taiga-ui-core-services.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-tokens.mjs +334 -0
- package/fesm2020/taiga-ui-core-tokens.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-types.mjs +16 -0
- package/fesm2020/taiga-ui-core-types.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-utils-dom.mjs +160 -0
- package/fesm2020/taiga-ui-core-utils-dom.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-utils-format.mjs +149 -0
- package/fesm2020/taiga-ui-core-utils-format.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-utils-mask.mjs +284 -0
- package/fesm2020/taiga-ui-core-utils-mask.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-utils-miscellaneous.mjs +88 -0
- package/fesm2020/taiga-ui-core-utils-miscellaneous.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-utils-mobile.mjs +12 -0
- package/fesm2020/taiga-ui-core-utils-mobile.mjs.map +1 -0
- package/fesm2020/taiga-ui-core-utils.mjs +10 -0
- package/fesm2020/taiga-ui-core-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-core.mjs +21 -0
- package/fesm2020/taiga-ui-core.mjs.map +1 -0
- package/interfaces/alert-options.d.ts +1 -1
- package/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.d.ts +1 -1
- package/internal/svg-defs-host/svg-defs-host.component.d.ts +1 -1
- package/mask/text-mask-correction-handler.d.ts +1 -1
- package/mask/text-mask-list-handler.d.ts +1 -1
- package/mask/text-mask-list.d.ts +1 -1
- package/mask/text-mask-pipe-handler.d.ts +1 -1
- package/package.json +559 -42
- package/pipes/calendar-sheet/calendar-sheet.pipe.d.ts +1 -1
- package/pipes/flag/flag.pipe.d.ts +1 -1
- package/pipes/format-date/format-date.pipe.d.ts +1 -1
- package/pipes/format-number/format-number.pipe.d.ts +1 -1
- package/pipes/format-phone/format-phone.pipe.d.ts +1 -1
- package/pipes/month/month.pipe.d.ts +1 -1
- package/pipes/order-week-days/order-week-days.pipe.d.ts +2 -2
- package/services/breakpoint.service.d.ts +1 -1
- package/styles/theme/appearance/outline.less +24 -15
- package/styles/theme/appearance/primary.less +8 -3
- package/styles/theme/appearance/secondary.less +15 -1
- package/styles/theme/appearance/status.less +48 -20
- package/tokens/number-format-observable.d.ts +4 -8
- package/tokens/ordered-short-week-days.d.ts +1 -1
- package/types/brightness.d.ts +1 -1
- package/types/calendar-view.d.ts +1 -1
- package/types/data-list-role.d.ts +1 -1
- package/types/decimal-symbol.d.ts +1 -1
- package/types/decimal.d.ts +1 -1
- package/types/dialog-size.d.ts +1 -1
- package/types/direction.d.ts +2 -2
- package/types/dropdown-align.d.ts +1 -1
- package/types/dropdown-width.d.ts +1 -1
- package/types/hint-direction.d.ts +1 -1
- package/types/marker-handler.d.ts +1 -1
- package/types/notification.d.ts +1 -1
- package/types/option-role.d.ts +1 -1
- package/types/orientation.d.ts +1 -1
- package/types/point.d.ts +1 -1
- package/types/size.d.ts +7 -7
- package/abstract/package.json +0 -10
- package/abstract/taiga-ui-core-abstract.d.ts +0 -5
- package/animations/package.json +0 -10
- package/animations/taiga-ui-core-animations.d.ts +0 -5
- package/bundles/taiga-ui-core-abstract.umd.js +0 -546
- package/bundles/taiga-ui-core-abstract.umd.js.map +0 -1
- package/bundles/taiga-ui-core-animations.umd.js +0 -290
- package/bundles/taiga-ui-core-animations.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-alert.umd.js +0 -517
- package/bundles/taiga-ui-core-components-alert.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-button.umd.js +0 -540
- package/bundles/taiga-ui-core-components-button.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +0 -233
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +0 -693
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +0 -634
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-error.umd.js +0 -111
- package/bundles/taiga-ui-core-components-error.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +0 -220
- package/bundles/taiga-ui-core-components-expand.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-group.umd.js +0 -154
- package/bundles/taiga-ui-core-components-group.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +0 -108
- package/bundles/taiga-ui-core-components-hints-host.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +0 -808
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-label.umd.js +0 -96
- package/bundles/taiga-ui-core-components-label.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-link.umd.js +0 -172
- package/bundles/taiga-ui-core-components-link.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +0 -165
- package/bundles/taiga-ui-core-components-loader.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +0 -124
- package/bundles/taiga-ui-core-components-notification.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +0 -245
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +0 -173
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +0 -476
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +0 -1050
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +0 -255
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-root.umd.js +0 -476
- package/bundles/taiga-ui-core-components-root.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +0 -620
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +0 -217
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +0 -707
- package/bundles/taiga-ui-core-components-svg.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +0 -391
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +0 -466
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +0 -1
- package/bundles/taiga-ui-core-components.umd.js +0 -165
- package/bundles/taiga-ui-core-components.umd.js.map +0 -1
- package/bundles/taiga-ui-core-constants.umd.js +0 -117
- package/bundles/taiga-ui-core-constants.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +0 -1390
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +0 -1169
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +0 -85
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-mode.umd.js +0 -392
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-number-format.umd.js +0 -414
- package/bundles/taiga-ui-core-directives-number-format.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +0 -106
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +0 -901
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.js +0 -164
- package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives.umd.js +0 -63
- package/bundles/taiga-ui-core-directives.umd.js.map +0 -1
- package/bundles/taiga-ui-core-enums.umd.js +0 -76
- package/bundles/taiga-ui-core-enums.umd.js.map +0 -1
- package/bundles/taiga-ui-core-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-core-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +0 -170
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +0 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +0 -104
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +0 -1
- package/bundles/taiga-ui-core-internal.umd.js +0 -27
- package/bundles/taiga-ui-core-internal.umd.js.map +0 -1
- package/bundles/taiga-ui-core-mask.umd.js +0 -11
- package/bundles/taiga-ui-core-mask.umd.js.map +0 -1
- package/bundles/taiga-ui-core-observables.umd.js +0 -35
- package/bundles/taiga-ui-core-observables.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +0 -149
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-flag.umd.js +0 -97
- package/bundles/taiga-ui-core-pipes-flag.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.js +0 -77
- package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.js +0 -81
- package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js +0 -79
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-month.umd.js +0 -76
- package/bundles/taiga-ui-core-pipes-month.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +0 -401
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes.umd.js +0 -57
- package/bundles/taiga-ui-core-pipes.umd.js.map +0 -1
- package/bundles/taiga-ui-core-providers.umd.js +0 -49
- package/bundles/taiga-ui-core-providers.umd.js.map +0 -1
- package/bundles/taiga-ui-core-services.umd.js +0 -657
- package/bundles/taiga-ui-core-services.umd.js.map +0 -1
- package/bundles/taiga-ui-core-tokens.umd.js +0 -695
- package/bundles/taiga-ui-core-tokens.umd.js.map +0 -1
- package/bundles/taiga-ui-core-types.umd.js +0 -11
- package/bundles/taiga-ui-core-types.umd.js.map +0 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +0 -176
- package/bundles/taiga-ui-core-utils-dom.umd.js.map +0 -1
- package/bundles/taiga-ui-core-utils-format.umd.js +0 -489
- package/bundles/taiga-ui-core-utils-format.umd.js.map +0 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +0 -625
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +0 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +0 -108
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +0 -1
- package/bundles/taiga-ui-core-utils-mobile.umd.js +0 -21
- package/bundles/taiga-ui-core-utils-mobile.umd.js.map +0 -1
- package/bundles/taiga-ui-core-utils.umd.js +0 -45
- package/bundles/taiga-ui-core-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-core.umd.js +0 -111
- package/bundles/taiga-ui-core.umd.js.map +0 -1
- package/components/alert/package.json +0 -10
- package/components/alert/taiga-ui-core-components-alert.d.ts +0 -5
- package/components/button/package.json +0 -10
- package/components/button/taiga-ui-core-components-button.d.ts +0 -5
- package/components/calendar/package.json +0 -10
- package/components/calendar/taiga-ui-core-components-calendar.d.ts +0 -5
- package/components/data-list/package.json +0 -10
- package/components/data-list/taiga-ui-core-components-data-list.d.ts +0 -5
- package/components/dialog/package.json +0 -10
- package/components/dialog/taiga-ui-core-components-dialog.d.ts +0 -5
- package/components/error/package.json +0 -10
- package/components/error/taiga-ui-core-components-error.d.ts +0 -5
- package/components/expand/package.json +0 -10
- package/components/expand/taiga-ui-core-components-expand.d.ts +0 -5
- package/components/group/package.json +0 -10
- package/components/group/taiga-ui-core-components-group.d.ts +0 -5
- package/components/hints-host/package.json +0 -10
- package/components/hints-host/taiga-ui-core-components-hints-host.d.ts +0 -5
- package/components/hosted-dropdown/package.json +0 -10
- package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.d.ts +0 -5
- package/components/label/package.json +0 -10
- package/components/label/taiga-ui-core-components-label.d.ts +0 -5
- package/components/link/package.json +0 -10
- package/components/link/taiga-ui-core-components-link.d.ts +0 -5
- package/components/loader/package.json +0 -10
- package/components/loader/taiga-ui-core-components-loader.d.ts +0 -5
- package/components/notification/package.json +0 -10
- package/components/notification/taiga-ui-core-components-notification.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/primitive-calendar/package.json +0 -10
- package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.d.ts +0 -5
- package/components/primitive-checkbox/package.json +0 -10
- package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.d.ts +0 -5
- package/components/primitive-spin-button/package.json +0 -10
- package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.d.ts +0 -5
- package/components/primitive-textfield/package.json +0 -10
- package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.d.ts +0 -5
- package/components/primitive-year-picker/package.json +0 -10
- package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.d.ts +0 -5
- package/components/root/package.json +0 -10
- package/components/root/taiga-ui-core-components-root.d.ts +0 -5
- package/components/scroll-controls/package.json +0 -10
- package/components/scroll-controls/taiga-ui-core-components-scroll-controls.d.ts +0 -5
- package/components/scrollbar/package.json +0 -10
- package/components/scrollbar/taiga-ui-core-components-scrollbar.d.ts +0 -5
- package/components/svg/package.json +0 -10
- package/components/svg/taiga-ui-core-components-svg.d.ts +0 -5
- package/components/taiga-ui-core-components.d.ts +0 -5
- package/components/theme-night/package.json +0 -10
- package/components/theme-night/taiga-ui-core-components-theme-night.d.ts +0 -5
- package/components/tooltip/package.json +0 -10
- package/components/tooltip/taiga-ui-core-components-tooltip.d.ts +0 -5
- package/constants/package.json +0 -10
- package/constants/taiga-ui-core-constants.d.ts +0 -5
- package/directives/dropdown/package.json +0 -10
- package/directives/dropdown/taiga-ui-core-directives-dropdown.d.ts +0 -5
- package/directives/hint/package.json +0 -10
- package/directives/hint/taiga-ui-core-directives-hint.d.ts +0 -5
- package/directives/mask-accessor/package.json +0 -10
- package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.d.ts +0 -5
- package/directives/mode/package.json +0 -10
- package/directives/mode/taiga-ui-core-directives-mode.d.ts +0 -5
- package/directives/number-format/package.json +0 -10
- package/directives/number-format/taiga-ui-core-directives-number-format.d.ts +0 -5
- package/directives/package.json +0 -10
- package/directives/scroll-into-view/package.json +0 -10
- package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.d.ts +0 -5
- package/directives/taiga-ui-core-directives.d.ts +0 -5
- package/directives/textfield-controller/package.json +0 -10
- package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.d.ts +0 -5
- package/directives/wrapper/package.json +0 -10
- package/directives/wrapper/taiga-ui-core-directives-wrapper.d.ts +0 -5
- package/enums/package.json +0 -10
- package/enums/taiga-ui-core-enums.d.ts +0 -5
- package/esm2015/abstract/abstract-driver.directive.js +0 -40
- package/esm2015/abstract/abstract-textfield-host.js +0 -37
- package/esm2015/abstract/rect-accessor.js +0 -24
- package/esm2015/components/alert/alert.component.js +0 -90
- package/esm2015/components/alert/alert.directive.js +0 -28
- package/esm2015/components/alert/alert.module.js +0 -24
- package/esm2015/components/alert/alert.service.js +0 -27
- package/esm2015/components/button/button.component.js +0 -113
- package/esm2015/components/button/button.module.js +0 -38
- package/esm2015/components/calendar/calendar.component.js +0 -134
- package/esm2015/components/calendar/calendar.module.js +0 -42
- package/esm2015/components/data-list/data-list.component.js +0 -127
- package/esm2015/components/data-list/data-list.directive.js +0 -19
- package/esm2015/components/data-list/data-list.module.js +0 -39
- package/esm2015/components/data-list/opt-group.directive.js +0 -21
- package/esm2015/components/data-list/option/option.component.js +0 -119
- package/esm2015/components/dialog/dialog-close.service.js +0 -47
- package/esm2015/components/dialog/dialog.component.js +0 -127
- package/esm2015/components/dialog/dialog.directive.js +0 -28
- package/esm2015/components/dialog/dialog.module.js +0 -24
- package/esm2015/components/dialog/dialog.service.js +0 -23
- package/esm2015/components/error/error.component.js +0 -56
- package/esm2015/components/error/error.module.js +0 -19
- package/esm2015/components/expand/expand-content.directive.js +0 -13
- package/esm2015/components/expand/expand.component.js +0 -131
- package/esm2015/components/expand/expand.module.js +0 -20
- package/esm2015/components/group/group-styles.component.js +0 -19
- package/esm2015/components/group/group.directive.js +0 -68
- package/esm2015/components/group/group.module.js +0 -19
- package/esm2015/components/hints-host/hints-host.component.js +0 -55
- package/esm2015/components/hints-host/hints-host.module.js +0 -20
- package/esm2015/components/hosted-dropdown/accessor-proxy.directive.js +0 -42
- package/esm2015/components/hosted-dropdown/dropdown-open-monitor.directive.js +0 -45
- package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +0 -13
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +0 -279
- package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +0 -57
- package/esm2015/components/label/label.component.js +0 -44
- package/esm2015/components/label/label.module.js +0 -18
- package/esm2015/components/link/link.component.js +0 -101
- package/esm2015/components/link/link.module.js +0 -19
- package/esm2015/components/loader/loader.component.js +0 -77
- package/esm2015/components/loader/loader.module.js +0 -19
- package/esm2015/components/notification/notification.component.js +0 -67
- package/esm2015/components/notification/notification.module.js +0 -21
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +0 -160
- package/esm2015/components/primitive-calendar/primitive-calendar.module.js +0 -45
- package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +0 -77
- package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +0 -20
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +0 -91
- package/esm2015/components/primitive-spin-button/primitive-spin-button.module.js +0 -19
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +0 -286
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +0 -36
- package/esm2015/components/primitive-textfield/primitive-textfield.module.js +0 -70
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +0 -64
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +0 -86
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +0 -164
- package/esm2015/components/primitive-year-picker/primitive-year-picker.module.js +0 -35
- package/esm2015/components/root/root.component.js +0 -80
- package/esm2015/components/root/root.module.js +0 -47
- package/esm2015/components/scroll-controls/scroll-controls.component.js +0 -61
- package/esm2015/components/scroll-controls/scroll-controls.module.js +0 -28
- package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +0 -25
- package/esm2015/components/scroll-controls/scrollbar.directive.js +0 -135
- package/esm2015/components/scrollbar/scroll-ref.directive.js +0 -28
- package/esm2015/components/scrollbar/scrollable.directive.js +0 -26
- package/esm2015/components/scrollbar/scrollbar.component.js +0 -94
- package/esm2015/components/scrollbar/scrollbar.module.js +0 -21
- package/esm2015/components/svg/svg-options.js +0 -60
- package/esm2015/components/svg/svg.component.js +0 -183
- package/esm2015/components/svg/svg.module.js +0 -19
- package/esm2015/components/theme-night/theme-night.component.js +0 -18
- package/esm2015/components/theme-night/theme-night.module.js +0 -16
- package/esm2015/components/tooltip/tooltip.component.js +0 -76
- package/esm2015/components/tooltip/tooltip.module.js +0 -38
- package/esm2015/directives/dropdown/dropdown-context.directive.js +0 -66
- package/esm2015/directives/dropdown/dropdown-driver.directive.js +0 -33
- package/esm2015/directives/dropdown/dropdown-host.directive.js +0 -26
- package/esm2015/directives/dropdown/dropdown-hover.directive.js +0 -58
- package/esm2015/directives/dropdown/dropdown-manual.directive.js +0 -27
- package/esm2015/directives/dropdown/dropdown-open.directive.js +0 -29
- package/esm2015/directives/dropdown/dropdown-options.directive.js +0 -84
- package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +0 -82
- package/esm2015/directives/dropdown/dropdown-position.directive.js +0 -86
- package/esm2015/directives/dropdown/dropdown-selection.directive.js +0 -162
- package/esm2015/directives/dropdown/dropdown.component.js +0 -174
- package/esm2015/directives/dropdown/dropdown.directive.js +0 -123
- package/esm2015/directives/dropdown/dropdown.module.js +0 -95
- package/esm2015/directives/hint/hint-describe.directive.js +0 -57
- package/esm2015/directives/hint/hint-driver.directive.js +0 -33
- package/esm2015/directives/hint/hint-host.directive.js +0 -26
- package/esm2015/directives/hint/hint-hover.directive.js +0 -56
- package/esm2015/directives/hint/hint-manual.directive.js +0 -33
- package/esm2015/directives/hint/hint-options.directive.js +0 -75
- package/esm2015/directives/hint/hint-pointer.directive.js +0 -36
- package/esm2015/directives/hint/hint-position.directive.js +0 -105
- package/esm2015/directives/hint/hint-unstyled.component.js +0 -66
- package/esm2015/directives/hint/hint.component.js +0 -167
- package/esm2015/directives/hint/hint.directive.js +0 -96
- package/esm2015/directives/hint/hint.module.js +0 -75
- package/esm2015/directives/mask-accessor/mask-accessor.directive.js +0 -30
- package/esm2015/directives/mask-accessor/mask-accessor.module.js +0 -19
- package/esm2015/directives/mode/mode.directive.js +0 -21
- package/esm2015/directives/mode/mode.module.js +0 -16
- package/esm2015/directives/number-format/number-format.directive.js +0 -38
- package/esm2015/directives/number-format/number-format.module.js +0 -16
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +0 -51
- package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +0 -16
- package/esm2015/directives/textfield-controller/textfield-appearance.directive.js +0 -36
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +0 -33
- package/esm2015/directives/textfield-controller/textfield-controller.module.js +0 -65
- package/esm2015/directives/textfield-controller/textfield-controller.provider.js +0 -46
- package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +0 -29
- package/esm2015/directives/textfield-controller/textfield-filler.directive.js +0 -33
- package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +0 -29
- package/esm2015/directives/textfield-controller/textfield-icon.directive.js +0 -29
- package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +0 -33
- package/esm2015/directives/textfield-controller/textfield-postfix.directive.js +0 -33
- package/esm2015/directives/textfield-controller/textfield-prefix.directive.js +0 -33
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +0 -33
- package/esm2015/directives/wrapper/wrapper.directive.js +0 -93
- package/esm2015/directives/wrapper/wrapper.module.js +0 -16
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +0 -82
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +0 -38
- package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +0 -52
- package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +0 -19
- package/esm2015/observables/smart-search.js +0 -8
- package/esm2015/observables/zoneful-map.js +0 -14
- package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +0 -16
- package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +0 -57
- package/esm2015/pipes/flag/flag.module.js +0 -16
- package/esm2015/pipes/flag/flag.pipe.js +0 -46
- package/esm2015/pipes/format-date/format-date.module.js +0 -16
- package/esm2015/pipes/format-date/format-date.pipe.js +0 -24
- package/esm2015/pipes/format-number/format-number.module.js +0 -16
- package/esm2015/pipes/format-number/format-number.pipe.js +0 -28
- package/esm2015/pipes/format-phone/format-phone.module.js +0 -16
- package/esm2015/pipes/format-phone/format-phone.pipe.js +0 -25
- package/esm2015/pipes/month/month.module.js +0 -16
- package/esm2015/pipes/month/month.pipe.js +0 -23
- package/esm2015/pipes/order-week-days/order-week-days.module.js +0 -16
- package/esm2015/pipes/order-week-days/order-week-days.pipe.js +0 -34
- package/esm2015/providers/mode.provider.js +0 -17
- package/esm2015/providers/watched-controller-provider-factory.js +0 -7
- package/esm2015/services/breakpoint.service.js +0 -39
- package/esm2015/services/format-date.service.js +0 -26
- package/esm2015/services/hint.service.js +0 -28
- package/esm2015/services/night-theme.service.js +0 -24
- package/esm2015/services/position.service.js +0 -36
- package/esm2015/services/router-link-active.service.js +0 -42
- package/esm2015/services/svg.service.js +0 -70
- package/esm2015/services/visual-viewport.service.js +0 -35
- package/esm2015/tokens/is-mobile-resolution.js +0 -17
- package/esm2015/tokens/number-format-observable.js +0 -8
- package/esm2015/tokens/ordered-short-week-days.js +0 -27
- package/esm2015/tokens/reduced-motion.js +0 -8
- package/esm2015/tokens/selection-stream.js +0 -13
- package/esm2015/tokens/viewport.js +0 -29
- package/esm2015/utils/dom/process-icon.js +0 -31
- package/esm2015/utils/format/format-number.js +0 -40
- package/esm2015/utils/format/number-to-string-without-exp.js +0 -18
- package/esm2015/utils/mask/create-number-mask.js +0 -121
- package/esm2015/utils/miscellaneous/is-obscured.js +0 -9
- package/esm2015/utils/miscellaneous/override-options.js +0 -11
- package/fesm2015/taiga-ui-core-abstract.js +0 -142
- package/fesm2015/taiga-ui-core-abstract.js.map +0 -1
- package/fesm2015/taiga-ui-core-animations.js +0 -262
- package/fesm2015/taiga-ui-core-animations.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-alert.js +0 -159
- package/fesm2015/taiga-ui-core-components-alert.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-button.js +0 -168
- package/fesm2015/taiga-ui-core-components-button.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-calendar.js +0 -179
- package/fesm2015/taiga-ui-core-components-calendar.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-data-list.js +0 -312
- package/fesm2015/taiga-ui-core-components-data-list.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +0 -251
- package/fesm2015/taiga-ui-core-components-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-error.js +0 -79
- package/fesm2015/taiga-ui-core-components-error.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-expand.js +0 -164
- package/fesm2015/taiga-ui-core-components-expand.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-group.js +0 -106
- package/fesm2015/taiga-ui-core-components-group.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js +0 -78
- package/fesm2015/taiga-ui-core-components-hints-host.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +0 -422
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-label.js +0 -66
- package/fesm2015/taiga-ui-core-components-label.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-link.js +0 -124
- package/fesm2015/taiga-ui-core-components-link.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-loader.js +0 -112
- package/fesm2015/taiga-ui-core-components-loader.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-notification.js +0 -92
- package/fesm2015/taiga-ui-core-components-notification.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +0 -208
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +0 -123
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +0 -114
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +0 -542
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +0 -202
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-root.js +0 -129
- package/fesm2015/taiga-ui-core-components-root.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +0 -237
- package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js +0 -164
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-svg.js +0 -317
- package/fesm2015/taiga-ui-core-components-svg.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +0 -38
- package/fesm2015/taiga-ui-core-components-theme-night.js.map +0 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +0 -118
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +0 -1
- package/fesm2015/taiga-ui-core-components.js +0 -30
- package/fesm2015/taiga-ui-core-components.js.map +0 -1
- package/fesm2015/taiga-ui-core-constants.js +0 -90
- package/fesm2015/taiga-ui-core-constants.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +0 -975
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +0 -753
- package/fesm2015/taiga-ui-core-directives-hint.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js +0 -53
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-mode.js +0 -41
- package/fesm2015/taiga-ui-core-directives-mode.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-number-format.js +0 -58
- package/fesm2015/taiga-ui-core-directives-number-format.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +0 -71
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +0 -447
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-wrapper.js +0 -113
- package/fesm2015/taiga-ui-core-directives-wrapper.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives.js +0 -13
- package/fesm2015/taiga-ui-core-directives.js.map +0 -1
- package/fesm2015/taiga-ui-core-enums.js +0 -68
- package/fesm2015/taiga-ui-core-enums.js.map +0 -1
- package/fesm2015/taiga-ui-core-interfaces.js +0 -4
- package/fesm2015/taiga-ui-core-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +0 -123
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +0 -1
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +0 -73
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +0 -1
- package/fesm2015/taiga-ui-core-internal.js +0 -7
- package/fesm2015/taiga-ui-core-internal.js.map +0 -1
- package/fesm2015/taiga-ui-core-mask.js +0 -4
- package/fesm2015/taiga-ui-core-mask.js.map +0 -1
- package/fesm2015/taiga-ui-core-observables.js +0 -27
- package/fesm2015/taiga-ui-core-observables.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +0 -109
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-flag.js +0 -66
- package/fesm2015/taiga-ui-core-pipes-flag.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-format-date.js +0 -44
- package/fesm2015/taiga-ui-core-pipes-format-date.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-format-number.js +0 -48
- package/fesm2015/taiga-ui-core-pipes-format-number.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-format-phone.js +0 -45
- package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-month.js +0 -43
- package/fesm2015/taiga-ui-core-pipes-month.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-order-week-days.js +0 -54
- package/fesm2015/taiga-ui-core-pipes-order-week-days.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes.js +0 -12
- package/fesm2015/taiga-ui-core-pipes.js.map +0 -1
- package/fesm2015/taiga-ui-core-providers.js +0 -42
- package/fesm2015/taiga-ui-core-providers.js.map +0 -1
- package/fesm2015/taiga-ui-core-services.js +0 -274
- package/fesm2015/taiga-ui-core-services.js.map +0 -1
- package/fesm2015/taiga-ui-core-tokens.js +0 -331
- package/fesm2015/taiga-ui-core-tokens.js.map +0 -1
- package/fesm2015/taiga-ui-core-types.js +0 -16
- package/fesm2015/taiga-ui-core-types.js.map +0 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +0 -160
- package/fesm2015/taiga-ui-core-utils-dom.js.map +0 -1
- package/fesm2015/taiga-ui-core-utils-format.js +0 -146
- package/fesm2015/taiga-ui-core-utils-format.js.map +0 -1
- package/fesm2015/taiga-ui-core-utils-mask.js +0 -284
- package/fesm2015/taiga-ui-core-utils-mask.js.map +0 -1
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js +0 -89
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +0 -1
- package/fesm2015/taiga-ui-core-utils-mobile.js +0 -12
- package/fesm2015/taiga-ui-core-utils-mobile.js.map +0 -1
- package/fesm2015/taiga-ui-core-utils.js +0 -10
- package/fesm2015/taiga-ui-core-utils.js.map +0 -1
- package/fesm2015/taiga-ui-core.js +0 -21
- package/fesm2015/taiga-ui-core.js.map +0 -1
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-core-interfaces.d.ts +0 -5
- package/internal/package.json +0 -10
- package/internal/primitive-year-month-pagination/package.json +0 -10
- package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.d.ts +0 -5
- package/internal/svg-defs-host/package.json +0 -10
- package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.d.ts +0 -5
- package/internal/taiga-ui-core-internal.d.ts +0 -5
- package/mask/package.json +0 -10
- package/mask/taiga-ui-core-mask.d.ts +0 -5
- package/observables/package.json +0 -10
- package/observables/taiga-ui-core-observables.d.ts +0 -5
- package/pipes/calendar-sheet/package.json +0 -10
- package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.d.ts +0 -5
- package/pipes/flag/package.json +0 -10
- package/pipes/flag/taiga-ui-core-pipes-flag.d.ts +0 -5
- package/pipes/format-date/package.json +0 -10
- package/pipes/format-date/taiga-ui-core-pipes-format-date.d.ts +0 -5
- package/pipes/format-number/package.json +0 -10
- package/pipes/format-number/taiga-ui-core-pipes-format-number.d.ts +0 -5
- package/pipes/format-phone/package.json +0 -10
- package/pipes/format-phone/taiga-ui-core-pipes-format-phone.d.ts +0 -5
- package/pipes/month/package.json +0 -10
- package/pipes/month/taiga-ui-core-pipes-month.d.ts +0 -5
- package/pipes/order-week-days/package.json +0 -10
- package/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.d.ts +0 -5
- package/pipes/package.json +0 -10
- package/pipes/taiga-ui-core-pipes.d.ts +0 -5
- package/providers/package.json +0 -10
- package/providers/taiga-ui-core-providers.d.ts +0 -5
- package/services/package.json +0 -10
- package/services/taiga-ui-core-services.d.ts +0 -5
- package/taiga-ui-core.d.ts +0 -5
- package/tokens/package.json +0 -10
- package/tokens/taiga-ui-core-tokens.d.ts +0 -5
- package/types/package.json +0 -10
- package/types/taiga-ui-core-types.d.ts +0 -5
- package/utils/dom/package.json +0 -10
- package/utils/dom/taiga-ui-core-utils-dom.d.ts +0 -5
- package/utils/format/package.json +0 -10
- package/utils/format/taiga-ui-core-utils-format.d.ts +0 -5
- package/utils/mask/package.json +0 -10
- package/utils/mask/taiga-ui-core-utils-mask.d.ts +0 -5
- package/utils/miscellaneous/package.json +0 -10
- package/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.d.ts +0 -5
- package/utils/mobile/package.json +0 -10
- package/utils/mobile/taiga-ui-core-utils-mobile.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-core-utils.d.ts +0 -5
- /package/{esm2015/abstract/driver.js → esm2020/abstract/driver.mjs} +0 -0
- /package/{esm2015/abstract/index.js → esm2020/abstract/index.mjs} +0 -0
- /package/{esm2015/abstract/position-accessor.js → esm2020/abstract/position-accessor.mjs} +0 -0
- /package/{esm2015/abstract/taiga-ui-core-abstract.js → esm2020/abstract/taiga-ui-core-abstract.mjs} +0 -0
- /package/{esm2015/abstract/vehicle.js → esm2020/abstract/vehicle.mjs} +0 -0
- /package/{esm2015/animations/animations.js → esm2020/animations/animations.mjs} +0 -0
- /package/{esm2015/animations/index.js → esm2020/animations/index.mjs} +0 -0
- /package/{esm2015/animations/taiga-ui-core-animations.js → esm2020/animations/taiga-ui-core-animations.mjs} +0 -0
- /package/{esm2015/components/alert/alert.providers.js → esm2020/components/alert/alert.providers.mjs} +0 -0
- /package/{esm2015/components/alert/index.js → esm2020/components/alert/index.mjs} +0 -0
- /package/{esm2015/components/alert/taiga-ui-core-components-alert.js → esm2020/components/alert/taiga-ui-core-components-alert.mjs} +0 -0
- /package/{esm2015/components/button/button.options.js → esm2020/components/button/button.options.mjs} +0 -0
- /package/{esm2015/components/button/index.js → esm2020/components/button/index.mjs} +0 -0
- /package/{esm2015/components/button/taiga-ui-core-components-button.js → esm2020/components/button/taiga-ui-core-components-button.mjs} +0 -0
- /package/{esm2015/components/calendar/index.js → esm2020/components/calendar/index.mjs} +0 -0
- /package/{esm2015/components/calendar/taiga-ui-core-components-calendar.js → esm2020/components/calendar/taiga-ui-core-components-calendar.mjs} +0 -0
- /package/{esm2015/components/data-list/index.js → esm2020/components/data-list/index.mjs} +0 -0
- /package/{esm2015/components/data-list/taiga-ui-core-components-data-list.js → esm2020/components/data-list/taiga-ui-core-components-data-list.mjs} +0 -0
- /package/{esm2015/components/dialog/dialog.tokens.js → esm2020/components/dialog/dialog.tokens.mjs} +0 -0
- /package/{esm2015/components/dialog/index.js → esm2020/components/dialog/index.mjs} +0 -0
- /package/{esm2015/components/dialog/taiga-ui-core-components-dialog.js → esm2020/components/dialog/taiga-ui-core-components-dialog.mjs} +0 -0
- /package/{esm2015/components/error/index.js → esm2020/components/error/index.mjs} +0 -0
- /package/{esm2015/components/error/taiga-ui-core-components-error.js → esm2020/components/error/taiga-ui-core-components-error.mjs} +0 -0
- /package/{esm2015/components/expand/index.js → esm2020/components/expand/index.mjs} +0 -0
- /package/{esm2015/components/expand/taiga-ui-core-components-expand.js → esm2020/components/expand/taiga-ui-core-components-expand.mjs} +0 -0
- /package/{esm2015/components/group/index.js → esm2020/components/group/index.mjs} +0 -0
- /package/{esm2015/components/group/taiga-ui-core-components-group.js → esm2020/components/group/taiga-ui-core-components-group.mjs} +0 -0
- /package/{esm2015/components/hints-host/index.js → esm2020/components/hints-host/index.mjs} +0 -0
- /package/{esm2015/components/hints-host/taiga-ui-core-components-hints-host.js → esm2020/components/hints-host/taiga-ui-core-components-hints-host.mjs} +0 -0
- /package/{esm2015/components/hosted-dropdown/hosted-dropdown.token.js → esm2020/components/hosted-dropdown/hosted-dropdown.token.mjs} +0 -0
- /package/{esm2015/components/hosted-dropdown/index.js → esm2020/components/hosted-dropdown/index.mjs} +0 -0
- /package/{esm2015/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.js → esm2020/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.mjs} +0 -0
- /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
- /package/{esm2015/components/label/index.js → esm2020/components/label/index.mjs} +0 -0
- /package/{esm2015/components/label/taiga-ui-core-components-label.js → esm2020/components/label/taiga-ui-core-components-label.mjs} +0 -0
- /package/{esm2015/components/link/index.js → esm2020/components/link/index.mjs} +0 -0
- /package/{esm2015/components/link/taiga-ui-core-components-link.js → esm2020/components/link/taiga-ui-core-components-link.mjs} +0 -0
- /package/{esm2015/components/loader/index.js → esm2020/components/loader/index.mjs} +0 -0
- /package/{esm2015/components/loader/loader.options.js → esm2020/components/loader/loader.options.mjs} +0 -0
- /package/{esm2015/components/loader/taiga-ui-core-components-loader.js → esm2020/components/loader/taiga-ui-core-components-loader.mjs} +0 -0
- /package/{esm2015/components/notification/index.js → esm2020/components/notification/index.mjs} +0 -0
- /package/{esm2015/components/notification/taiga-ui-core-components-notification.js → esm2020/components/notification/taiga-ui-core-components-notification.mjs} +0 -0
- /package/{esm2015/components/primitive-calendar/index.js → esm2020/components/primitive-calendar/index.mjs} +0 -0
- /package/{esm2015/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.js → esm2020/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.mjs} +0 -0
- /package/{esm2015/components/primitive-checkbox/checkbox.options.js → esm2020/components/primitive-checkbox/checkbox.options.mjs} +0 -0
- /package/{esm2015/components/primitive-checkbox/index.js → esm2020/components/primitive-checkbox/index.mjs} +0 -0
- /package/{esm2015/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.js → esm2020/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.mjs} +0 -0
- /package/{esm2015/components/primitive-spin-button/index.js → esm2020/components/primitive-spin-button/index.mjs} +0 -0
- /package/{esm2015/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.js → esm2020/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.mjs} +0 -0
- /package/{esm2015/components/primitive-textfield/index.js → esm2020/components/primitive-textfield/index.mjs} +0 -0
- /package/{esm2015/components/primitive-textfield/primitive-textfield-options.js → esm2020/components/primitive-textfield/primitive-textfield-options.mjs} +0 -0
- /package/{esm2015/components/primitive-textfield/primitive-textfield-types.js → esm2020/components/primitive-textfield/primitive-textfield-types.mjs} +0 -0
- /package/{esm2015/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.js → esm2020/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.mjs} +0 -0
- /package/{esm2015/components/primitive-year-picker/index.js → esm2020/components/primitive-year-picker/index.mjs} +0 -0
- /package/{esm2015/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.js → esm2020/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.mjs} +0 -0
- /package/{esm2015/components/root/index.js → esm2020/components/root/index.mjs} +0 -0
- /package/{esm2015/components/root/taiga-ui-core-components-root.js → esm2020/components/root/taiga-ui-core-components-root.mjs} +0 -0
- /package/{esm2015/components/scroll-controls/index.js → esm2020/components/scroll-controls/index.mjs} +0 -0
- /package/{esm2015/components/scroll-controls/taiga-ui-core-components-scroll-controls.js → esm2020/components/scroll-controls/taiga-ui-core-components-scroll-controls.mjs} +0 -0
- /package/{esm2015/components/scrollbar/index.js → esm2020/components/scrollbar/index.mjs} +0 -0
- /package/{esm2015/components/scrollbar/taiga-ui-core-components-scrollbar.js → esm2020/components/scrollbar/taiga-ui-core-components-scrollbar.mjs} +0 -0
- /package/{esm2015/components/svg/deprecated-icons.js → esm2020/components/svg/deprecated-icons.mjs} +0 -0
- /package/{esm2015/components/svg/index.js → esm2020/components/svg/index.mjs} +0 -0
- /package/{esm2015/components/svg/taiga-ui-core-components-svg.js → esm2020/components/svg/taiga-ui-core-components-svg.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-core-components.js → esm2020/components/taiga-ui-core-components.mjs} +0 -0
- /package/{esm2015/components/theme-night/index.js → esm2020/components/theme-night/index.mjs} +0 -0
- /package/{esm2015/components/theme-night/taiga-ui-core-components-theme-night.js → esm2020/components/theme-night/taiga-ui-core-components-theme-night.mjs} +0 -0
- /package/{esm2015/components/tooltip/index.js → esm2020/components/tooltip/index.mjs} +0 -0
- /package/{esm2015/components/tooltip/taiga-ui-core-components-tooltip.js → esm2020/components/tooltip/taiga-ui-core-components-tooltip.mjs} +0 -0
- /package/{esm2015/constants/cache-basting-payload.js → esm2020/constants/cache-basting-payload.mjs} +0 -0
- /package/{esm2015/constants/decimal-symbols.js → esm2020/constants/decimal-symbols.mjs} +0 -0
- /package/{esm2015/constants/default-icons-path.js → esm2020/constants/default-icons-path.mjs} +0 -0
- /package/{esm2015/constants/default-marker-handler.js → esm2020/constants/default-marker-handler.mjs} +0 -0
- /package/{esm2015/constants/default-number-format.js → esm2020/constants/default-number-format.mjs} +0 -0
- /package/{esm2015/constants/editing-keys.js → esm2020/constants/editing-keys.mjs} +0 -0
- /package/{esm2015/constants/events.js → esm2020/constants/events.mjs} +0 -0
- /package/{esm2015/constants/hint-directions.js → esm2020/constants/hint-directions.mjs} +0 -0
- /package/{esm2015/constants/index.js → esm2020/constants/index.mjs} +0 -0
- /package/{esm2015/constants/mask-caret-trap.js → esm2020/constants/mask-caret-trap.mjs} +0 -0
- /package/{esm2015/constants/regexp.js → esm2020/constants/regexp.mjs} +0 -0
- /package/{esm2015/constants/taiga-ui-core-constants.js → esm2020/constants/taiga-ui-core-constants.mjs} +0 -0
- /package/{esm2015/directives/dropdown/dropdown-hover.options.js → esm2020/directives/dropdown/dropdown-hover.options.mjs} +0 -0
- /package/{esm2015/directives/dropdown/dropdown.providers.js → esm2020/directives/dropdown/dropdown.providers.mjs} +0 -0
- /package/{esm2015/directives/dropdown/index.js → esm2020/directives/dropdown/index.mjs} +0 -0
- /package/{esm2015/directives/dropdown/taiga-ui-core-directives-dropdown.js → esm2020/directives/dropdown/taiga-ui-core-directives-dropdown.mjs} +0 -0
- /package/{esm2015/directives/hint/hint.providers.js → esm2020/directives/hint/hint.providers.mjs} +0 -0
- /package/{esm2015/directives/hint/index.js → esm2020/directives/hint/index.mjs} +0 -0
- /package/{esm2015/directives/hint/taiga-ui-core-directives-hint.js → esm2020/directives/hint/taiga-ui-core-directives-hint.mjs} +0 -0
- /package/{esm2015/directives/index.js → esm2020/directives/index.mjs} +0 -0
- /package/{esm2015/directives/mask-accessor/index.js → esm2020/directives/mask-accessor/index.mjs} +0 -0
- /package/{esm2015/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.js → esm2020/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.mjs} +0 -0
- /package/{esm2015/directives/mode/index.js → esm2020/directives/mode/index.mjs} +0 -0
- /package/{esm2015/directives/mode/taiga-ui-core-directives-mode.js → esm2020/directives/mode/taiga-ui-core-directives-mode.mjs} +0 -0
- /package/{esm2015/directives/number-format/index.js → esm2020/directives/number-format/index.mjs} +0 -0
- /package/{esm2015/directives/number-format/taiga-ui-core-directives-number-format.js → esm2020/directives/number-format/taiga-ui-core-directives-number-format.mjs} +0 -0
- /package/{esm2015/directives/scroll-into-view/index.js → esm2020/directives/scroll-into-view/index.mjs} +0 -0
- /package/{esm2015/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.js → esm2020/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.mjs} +0 -0
- /package/{esm2015/directives/taiga-ui-core-directives.js → esm2020/directives/taiga-ui-core-directives.mjs} +0 -0
- /package/{esm2015/directives/textfield-controller/index.js → esm2020/directives/textfield-controller/index.mjs} +0 -0
- /package/{esm2015/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.js → esm2020/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.mjs} +0 -0
- /package/{esm2015/directives/textfield-controller/textfield.controller.js → esm2020/directives/textfield-controller/textfield.controller.mjs} +0 -0
- /package/{esm2015/directives/textfield-controller/textfield.options.js → esm2020/directives/textfield-controller/textfield.options.mjs} +0 -0
- /package/{esm2015/directives/wrapper/index.js → esm2020/directives/wrapper/index.mjs} +0 -0
- /package/{esm2015/directives/wrapper/taiga-ui-core-directives-wrapper.js → esm2020/directives/wrapper/taiga-ui-core-directives-wrapper.mjs} +0 -0
- /package/{esm2015/enums/appearance.js → esm2020/enums/appearance.mjs} +0 -0
- /package/{esm2015/enums/dropdown-animation.js → esm2020/enums/dropdown-animation.mjs} +0 -0
- /package/{esm2015/enums/index.js → esm2020/enums/index.mjs} +0 -0
- /package/{esm2015/enums/interactive-state.js → esm2020/enums/interactive-state.mjs} +0 -0
- /package/{esm2015/enums/notification.js → esm2020/enums/notification.mjs} +0 -0
- /package/{esm2015/enums/range-state.js → esm2020/enums/range-state.mjs} +0 -0
- /package/{esm2015/enums/taiga-ui-core-enums.js → esm2020/enums/taiga-ui-core-enums.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/interfaces/alert-options.js → esm2020/interfaces/alert-options.mjs} +0 -0
- /package/{esm2015/interfaces/animation-options.js → esm2020/interfaces/animation-options.mjs} +0 -0
- /package/{esm2015/interfaces/data-list-accessor.js → esm2020/interfaces/data-list-accessor.mjs} +0 -0
- /package/{esm2015/interfaces/data-list-host.js → esm2020/interfaces/data-list-host.mjs} +0 -0
- /package/{esm2015/interfaces/dialog-context.js → esm2020/interfaces/dialog-context.mjs} +0 -0
- /package/{esm2015/interfaces/dialog-options.js → esm2020/interfaces/dialog-options.mjs} +0 -0
- /package/{esm2015/interfaces/icon-error.js → esm2020/interfaces/icon-error.mjs} +0 -0
- /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
- /package/{esm2015/interfaces/media.js → esm2020/interfaces/media.mjs} +0 -0
- /package/{esm2015/interfaces/number-format-settings.js → esm2020/interfaces/number-format-settings.mjs} +0 -0
- /package/{esm2015/interfaces/portal-item.js → esm2020/interfaces/portal-item.mjs} +0 -0
- /package/{esm2015/interfaces/taiga-ui-core-interfaces.js → esm2020/interfaces/taiga-ui-core-interfaces.mjs} +0 -0
- /package/{esm2015/interfaces/textfield-host.js → esm2020/interfaces/textfield-host.mjs} +0 -0
- /package/{esm2015/interfaces/value-content-context.js → esm2020/interfaces/value-content-context.mjs} +0 -0
- /package/{esm2015/interfaces/with-optional-min-max.js → esm2020/interfaces/with-optional-min-max.mjs} +0 -0
- /package/{esm2015/internal/index.js → esm2020/internal/index.mjs} +0 -0
- /package/{esm2015/internal/primitive-year-month-pagination/index.js → esm2020/internal/primitive-year-month-pagination/index.mjs} +0 -0
- /package/{esm2015/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.js → esm2020/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.mjs} +0 -0
- /package/{esm2015/internal/svg-defs-host/index.js → esm2020/internal/svg-defs-host/index.mjs} +0 -0
- /package/{esm2015/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.js → esm2020/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.mjs} +0 -0
- /package/{esm2015/internal/taiga-ui-core-internal.js → esm2020/internal/taiga-ui-core-internal.mjs} +0 -0
- /package/{esm2015/mask/index.js → esm2020/mask/index.mjs} +0 -0
- /package/{esm2015/mask/number-mask-options.js → esm2020/mask/number-mask-options.mjs} +0 -0
- /package/{esm2015/mask/taiga-ui-core-mask.js → esm2020/mask/taiga-ui-core-mask.mjs} +0 -0
- /package/{esm2015/mask/text-mask-config.js → esm2020/mask/text-mask-config.mjs} +0 -0
- /package/{esm2015/mask/text-mask-correction-handler.js → esm2020/mask/text-mask-correction-handler.mjs} +0 -0
- /package/{esm2015/mask/text-mask-list-handler.js → esm2020/mask/text-mask-list-handler.mjs} +0 -0
- /package/{esm2015/mask/text-mask-list.js → esm2020/mask/text-mask-list.mjs} +0 -0
- /package/{esm2015/mask/text-mask-options.js → esm2020/mask/text-mask-options.mjs} +0 -0
- /package/{esm2015/mask/text-mask-pipe-handler.js → esm2020/mask/text-mask-pipe-handler.mjs} +0 -0
- /package/{esm2015/mask/text-mask-pipe-result.js → esm2020/mask/text-mask-pipe-result.mjs} +0 -0
- /package/{esm2015/observables/index.js → esm2020/observables/index.mjs} +0 -0
- /package/{esm2015/observables/taiga-ui-core-observables.js → esm2020/observables/taiga-ui-core-observables.mjs} +0 -0
- /package/{esm2015/pipes/calendar-sheet/index.js → esm2020/pipes/calendar-sheet/index.mjs} +0 -0
- /package/{esm2015/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.js → esm2020/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs} +0 -0
- /package/{esm2015/pipes/calendar-sheet/utils.js → esm2020/pipes/calendar-sheet/utils.mjs} +0 -0
- /package/{esm2015/pipes/flag/index.js → esm2020/pipes/flag/index.mjs} +0 -0
- /package/{esm2015/pipes/flag/taiga-ui-core-pipes-flag.js → esm2020/pipes/flag/taiga-ui-core-pipes-flag.mjs} +0 -0
- /package/{esm2015/pipes/format-date/index.js → esm2020/pipes/format-date/index.mjs} +0 -0
- /package/{esm2015/pipes/format-date/taiga-ui-core-pipes-format-date.js → esm2020/pipes/format-date/taiga-ui-core-pipes-format-date.mjs} +0 -0
- /package/{esm2015/pipes/format-number/index.js → esm2020/pipes/format-number/index.mjs} +0 -0
- /package/{esm2015/pipes/format-number/taiga-ui-core-pipes-format-number.js → esm2020/pipes/format-number/taiga-ui-core-pipes-format-number.mjs} +0 -0
- /package/{esm2015/pipes/format-phone/index.js → esm2020/pipes/format-phone/index.mjs} +0 -0
- /package/{esm2015/pipes/format-phone/taiga-ui-core-pipes-format-phone.js → esm2020/pipes/format-phone/taiga-ui-core-pipes-format-phone.mjs} +0 -0
- /package/{esm2015/pipes/index.js → esm2020/pipes/index.mjs} +0 -0
- /package/{esm2015/pipes/month/index.js → esm2020/pipes/month/index.mjs} +0 -0
- /package/{esm2015/pipes/month/taiga-ui-core-pipes-month.js → esm2020/pipes/month/taiga-ui-core-pipes-month.mjs} +0 -0
- /package/{esm2015/pipes/order-week-days/index.js → esm2020/pipes/order-week-days/index.mjs} +0 -0
- /package/{esm2015/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.js → esm2020/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs} +0 -0
- /package/{esm2015/pipes/taiga-ui-core-pipes.js → esm2020/pipes/taiga-ui-core-pipes.mjs} +0 -0
- /package/{esm2015/providers/index.js → esm2020/providers/index.mjs} +0 -0
- /package/{esm2015/providers/is-mobile-resolution.provider.js → esm2020/providers/is-mobile-resolution.provider.mjs} +0 -0
- /package/{esm2015/providers/taiga-ui-core-providers.js → esm2020/providers/taiga-ui-core-providers.mjs} +0 -0
- /package/{esm2015/services/index.js → esm2020/services/index.mjs} +0 -0
- /package/{esm2015/services/taiga-ui-core-services.js → esm2020/services/taiga-ui-core-services.mjs} +0 -0
- /package/{esm2015/taiga-ui-core.js → esm2020/taiga-ui-core.mjs} +0 -0
- /package/{esm2015/tokens/animation-options.js → esm2020/tokens/animation-options.mjs} +0 -0
- /package/{esm2015/tokens/animations-duration.js → esm2020/tokens/animations-duration.mjs} +0 -0
- /package/{esm2015/tokens/assert-enabled.js → esm2020/tokens/assert-enabled.mjs} +0 -0
- /package/{esm2015/tokens/common-icon.js → esm2020/tokens/common-icon.mjs} +0 -0
- /package/{esm2015/tokens/data-list-accessor.js → esm2020/tokens/data-list-accessor.mjs} +0 -0
- /package/{esm2015/tokens/data-list-host.js → esm2020/tokens/data-list-host.mjs} +0 -0
- /package/{esm2015/tokens/day-type-handler.js → esm2020/tokens/day-type-handler.mjs} +0 -0
- /package/{esm2015/tokens/document-or-shadow-root.js → esm2020/tokens/document-or-shadow-root.mjs} +0 -0
- /package/{esm2015/tokens/element-ref.js → esm2020/tokens/element-ref.mjs} +0 -0
- /package/{esm2015/tokens/first-day-of-week.js → esm2020/tokens/first-day-of-week.mjs} +0 -0
- /package/{esm2015/tokens/i18n.js → esm2020/tokens/i18n.mjs} +0 -0
- /package/{esm2015/tokens/icon-place.js → esm2020/tokens/icon-place.mjs} +0 -0
- /package/{esm2015/tokens/icons-path.js → esm2020/tokens/icons-path.mjs} +0 -0
- /package/{esm2015/tokens/icons.js → esm2020/tokens/icons.mjs} +0 -0
- /package/{esm2015/tokens/index.js → esm2020/tokens/index.mjs} +0 -0
- /package/{esm2015/tokens/legacy-mask.js → esm2020/tokens/legacy-mask.mjs} +0 -0
- /package/{esm2015/tokens/media.js → esm2020/tokens/media.mjs} +0 -0
- /package/{esm2015/tokens/mode.js → esm2020/tokens/mode.mjs} +0 -0
- /package/{esm2015/tokens/notification-options.js → esm2020/tokens/notification-options.mjs} +0 -0
- /package/{esm2015/tokens/number-format.js → esm2020/tokens/number-format.mjs} +0 -0
- /package/{esm2015/tokens/option-content.js → esm2020/tokens/option-content.mjs} +0 -0
- /package/{esm2015/tokens/sanitizer.js → esm2020/tokens/sanitizer.mjs} +0 -0
- /package/{esm2015/tokens/scroll-ref.js → esm2020/tokens/scroll-ref.mjs} +0 -0
- /package/{esm2015/tokens/spin-icons.js → esm2020/tokens/spin-icons.mjs} +0 -0
- /package/{esm2015/tokens/svg-content-processor.js → esm2020/tokens/svg-content-processor.mjs} +0 -0
- /package/{esm2015/tokens/svg-src-processor.js → esm2020/tokens/svg-src-processor.mjs} +0 -0
- /package/{esm2015/tokens/taiga-ui-core-tokens.js → esm2020/tokens/taiga-ui-core-tokens.mjs} +0 -0
- /package/{esm2015/tokens/textfield-appearance.js → esm2020/tokens/textfield-appearance.mjs} +0 -0
- /package/{esm2015/tokens/textfield-host.js → esm2020/tokens/textfield-host.mjs} +0 -0
- /package/{esm2015/tokens/theme.js → esm2020/tokens/theme.mjs} +0 -0
- /package/{esm2015/tokens/value-accessor.js → esm2020/tokens/value-accessor.mjs} +0 -0
- /package/{esm2015/types/brightness.js → esm2020/types/brightness.mjs} +0 -0
- /package/{esm2015/types/calendar-view.js → esm2020/types/calendar-view.mjs} +0 -0
- /package/{esm2015/types/data-list-role.js → esm2020/types/data-list-role.mjs} +0 -0
- /package/{esm2015/types/decimal-symbol.js → esm2020/types/decimal-symbol.mjs} +0 -0
- /package/{esm2015/types/decimal.js → esm2020/types/decimal.mjs} +0 -0
- /package/{esm2015/types/dialog-size.js → esm2020/types/dialog-size.mjs} +0 -0
- /package/{esm2015/types/direction.js → esm2020/types/direction.mjs} +0 -0
- /package/{esm2015/types/dropdown-align.js → esm2020/types/dropdown-align.mjs} +0 -0
- /package/{esm2015/types/dropdown-width.js → esm2020/types/dropdown-width.mjs} +0 -0
- /package/{esm2015/types/hint-direction.js → esm2020/types/hint-direction.mjs} +0 -0
- /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
- /package/{esm2015/types/marker-handler.js → esm2020/types/marker-handler.mjs} +0 -0
- /package/{esm2015/types/notification.js → esm2020/types/notification.mjs} +0 -0
- /package/{esm2015/types/option-role.js → esm2020/types/option-role.mjs} +0 -0
- /package/{esm2015/types/orientation.js → esm2020/types/orientation.mjs} +0 -0
- /package/{esm2015/types/point.js → esm2020/types/point.mjs} +0 -0
- /package/{esm2015/types/size.js → esm2020/types/size.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-core-types.js → esm2020/types/taiga-ui-core-types.mjs} +0 -0
- /package/{esm2015/utils/dom/check-fixed-position.js → esm2020/utils/dom/check-fixed-position.mjs} +0 -0
- /package/{esm2015/utils/dom/get-safe-area-size.js → esm2020/utils/dom/get-safe-area-size.mjs} +0 -0
- /package/{esm2015/utils/dom/get-screen-width.js → esm2020/utils/dom/get-screen-width.mjs} +0 -0
- /package/{esm2015/utils/dom/get-viewport-height.js → esm2020/utils/dom/get-viewport-height.mjs} +0 -0
- /package/{esm2015/utils/dom/get-viewport-width.js → esm2020/utils/dom/get-viewport-width.mjs} +0 -0
- /package/{esm2015/utils/dom/get-word-range.js → esm2020/utils/dom/get-word-range.mjs} +0 -0
- /package/{esm2015/utils/dom/index.js → esm2020/utils/dom/index.mjs} +0 -0
- /package/{esm2015/utils/dom/taiga-ui-core-utils-dom.js → esm2020/utils/dom/taiga-ui-core-utils-dom.mjs} +0 -0
- /package/{esm2015/utils/format/capitalize-first-letter.js → esm2020/utils/format/capitalize-first-letter.mjs} +0 -0
- /package/{esm2015/utils/format/capitalize.js → esm2020/utils/format/capitalize.mjs} +0 -0
- /package/{esm2015/utils/format/format-phone.js → esm2020/utils/format/format-phone.mjs} +0 -0
- /package/{esm2015/utils/format/get-fractional-part-padded.js → esm2020/utils/format/get-fractional-part-padded.mjs} +0 -0
- /package/{esm2015/utils/format/index.js → esm2020/utils/format/index.mjs} +0 -0
- /package/{esm2015/utils/format/other-decimal-symbol.js → esm2020/utils/format/other-decimal-symbol.mjs} +0 -0
- /package/{esm2015/utils/format/taiga-ui-core-utils-format.js → esm2020/utils/format/taiga-ui-core-utils-format.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/mask/create-auto-corrected-money-pipe.js → esm2020/utils/mask/create-auto-corrected-money-pipe.mjs} +0 -0
- /package/{esm2015/utils/mask/create-correction-mask.js → esm2020/utils/mask/create-correction-mask.mjs} +0 -0
- /package/{esm2015/utils/mask/enable-auto-correct-decimal-symbol.js → esm2020/utils/mask/enable-auto-correct-decimal-symbol.mjs} +0 -0
- /package/{esm2015/utils/mask/index.js → esm2020/utils/mask/index.mjs} +0 -0
- /package/{esm2015/utils/mask/masked-money-value-is-empty.js → esm2020/utils/mask/masked-money-value-is-empty.mjs} +0 -0
- /package/{esm2015/utils/mask/masked-number-string-to-number.js → esm2020/utils/mask/masked-number-string-to-number.mjs} +0 -0
- /package/{esm2015/utils/mask/taiga-ui-core-utils-mask.js → esm2020/utils/mask/taiga-ui-core-utils-mask.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/get-border.js → esm2020/utils/miscellaneous/get-border.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/icons-path-factory.js → esm2020/utils/miscellaneous/icons-path-factory.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/index.js → esm2020/utils/miscellaneous/index.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/is-editing-key.js → esm2020/utils/miscellaneous/is-editing-key.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/is-presumed-html-string.js → esm2020/utils/miscellaneous/is-presumed-html-string.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/size-bigger.js → esm2020/utils/miscellaneous/size-bigger.mjs} +0 -0
- /package/{esm2015/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.js → esm2020/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs} +0 -0
- /package/{esm2015/utils/mobile/index.js → esm2020/utils/mobile/index.mjs} +0 -0
- /package/{esm2015/utils/mobile/is-mobile.js → esm2020/utils/mobile/is-mobile.mjs} +0 -0
- /package/{esm2015/utils/mobile/taiga-ui-core-utils-mobile.js → esm2020/utils/mobile/taiga-ui-core-utils-mobile.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-core-utils.js → esm2020/utils/taiga-ui-core-utils.mjs} +0 -0
|
@@ -0,0 +1,980 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Directive, Input, Output, ElementRef, INJECTOR, Self, Inject, Optional, SkipSelf, forwardRef, Component, ChangeDetectionStrategy, HostListener, ViewContainerRef, NgModule } from '@angular/core';
|
|
3
|
+
import { WINDOW } from '@ng-web-apis/common';
|
|
4
|
+
import * as i2 from '@taiga-ui/cdk';
|
|
5
|
+
import { tuiCreateTokenFromFactory, TuiDestroyService, TuiDropdownPortalService, tuiPure, tuiCreateToken, tuiProvideOptions, TuiHoveredService, tuiPx, tuiGetClosestFocusable, EMPTY_CLIENT_RECT, tuiPointToClientRect, TuiActiveZoneDirective, tuiIsString, ALWAYS_TRUE_HANDLER, tuiIsTextNode, tuiIsElement, tuiGetNativeFocused, tuiIsTextfield, CHAR_ZERO_WIDTH_SPACE, CHAR_NO_BREAK_SPACE, TUI_RANGE, TuiActiveZoneModule, TuiOverscrollModule, TuiHoveredModule } from '@taiga-ui/cdk';
|
|
6
|
+
import * as i1$2 from '@taiga-ui/core/abstract';
|
|
7
|
+
import { tuiAsRectAccessor, tuiAsVehicle, TuiDriver, tuiAsDriver, TuiRectAccessor, tuiPositionAccessorFor, tuiRectAccessorFor, AbstractTuiDriverDirective, TuiVehicle, TuiPositionAccessor, tuiFallbackRectAccessor, tuiAsPositionAccessor } from '@taiga-ui/core/abstract';
|
|
8
|
+
import { tuiDropdownAnimation } from '@taiga-ui/core/animations';
|
|
9
|
+
import { MODE_PROVIDER } from '@taiga-ui/core/providers';
|
|
10
|
+
import * as i4 from '@taiga-ui/core/services';
|
|
11
|
+
import { TuiVisualViewportService, TuiPositionService } from '@taiga-ui/core/services';
|
|
12
|
+
import { TUI_ANIMATION_OPTIONS, TUI_MODE, TUI_VIEWPORT, TUI_SELECTION_STREAM } from '@taiga-ui/core/tokens';
|
|
13
|
+
import * as i1 from 'rxjs';
|
|
14
|
+
import { Subject, throttleTime, takeUntil, merge, switchMap, of, delay, tap, share, map, BehaviorSubject, combineLatest, distinctUntilChanged } from 'rxjs';
|
|
15
|
+
import { __decorate } from 'tslib';
|
|
16
|
+
import { tuiCheckFixedPosition, tuiOverrideOptions, tuiGetWordRange } from '@taiga-ui/core/utils';
|
|
17
|
+
import * as i1$1 from '@tinkoff/ng-polymorpheus';
|
|
18
|
+
import { PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
19
|
+
import * as i3 from '@taiga-ui/core/components/scrollbar';
|
|
20
|
+
import { TuiScrollbarModule } from '@taiga-ui/core/components/scrollbar';
|
|
21
|
+
import { shouldCall } from '@tinkoff/ng-event-plugins';
|
|
22
|
+
import { DOCUMENT } from '@angular/common';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A component to display a dropdown
|
|
26
|
+
*/
|
|
27
|
+
const TUI_DROPDOWN_COMPONENT = tuiCreateTokenFromFactory(() => TuiDropdownComponent);
|
|
28
|
+
|
|
29
|
+
class TuiDropdownOpenDirective {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.tuiDropdownOpen = false;
|
|
32
|
+
this.tuiDropdownOpenChange = new EventEmitter();
|
|
33
|
+
}
|
|
34
|
+
update(open) {
|
|
35
|
+
this.tuiDropdownOpen = open;
|
|
36
|
+
this.tuiDropdownOpenChange.emit(open);
|
|
37
|
+
}
|
|
38
|
+
ngOnChanges() {
|
|
39
|
+
var _a;
|
|
40
|
+
(_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.toggle(this.tuiDropdownOpen);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
TuiDropdownOpenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownOpenDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
+
TuiDropdownOpenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownOpenDirective, selector: "[tuiDropdownOpen],[tuiDropdownOpenChange]", inputs: { tuiDropdownOpen: "tuiDropdownOpen" }, outputs: { tuiDropdownOpenChange: "tuiDropdownOpenChange" }, usesOnChanges: true, ngImport: i0 });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownOpenDirective, decorators: [{
|
|
46
|
+
type: Directive,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: '[tuiDropdownOpen],[tuiDropdownOpenChange]',
|
|
49
|
+
}]
|
|
50
|
+
}], propDecorators: { tuiDropdownOpen: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], tuiDropdownOpenChange: [{
|
|
53
|
+
type: Output
|
|
54
|
+
}] } });
|
|
55
|
+
|
|
56
|
+
class TuiDropdownDirective {
|
|
57
|
+
constructor(destroy$, el, dropdown, injector, dropdownService, open) {
|
|
58
|
+
this.el = el;
|
|
59
|
+
this.dropdown = dropdown;
|
|
60
|
+
this.injector = injector;
|
|
61
|
+
this.dropdownService = dropdownService;
|
|
62
|
+
this.open = open;
|
|
63
|
+
this.refresh$ = new Subject();
|
|
64
|
+
this.dropdownBoxRef = null;
|
|
65
|
+
this.type = 'dropdown';
|
|
66
|
+
this.component = new PolymorpheusComponent(this.dropdown, this.injector);
|
|
67
|
+
if (this.open && !this.open.dropdown) {
|
|
68
|
+
this.open.dropdown = this;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.open = null;
|
|
72
|
+
}
|
|
73
|
+
// Ignore multiple change detection triggers at the same frame
|
|
74
|
+
this.refresh$.pipe(throttleTime(0), takeUntil(destroy$)).subscribe(() => {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
(_a = this.dropdownBoxRef) === null || _a === void 0 ? void 0 : _a.changeDetectorRef.detectChanges();
|
|
77
|
+
(_b = this.dropdownBoxRef) === null || _b === void 0 ? void 0 : _b.changeDetectorRef.markForCheck();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
get position() {
|
|
81
|
+
return tuiCheckFixedPosition(this.el.nativeElement) ? 'fixed' : 'absolute';
|
|
82
|
+
}
|
|
83
|
+
ngAfterViewChecked() {
|
|
84
|
+
this.refresh$.next();
|
|
85
|
+
}
|
|
86
|
+
ngAfterViewInit() {
|
|
87
|
+
if (this.open) {
|
|
88
|
+
this.toggle(this.open.tuiDropdownOpen);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
ngOnChanges() {
|
|
92
|
+
if (!this.content) {
|
|
93
|
+
this.toggle(false);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
ngOnDestroy() {
|
|
97
|
+
this.toggle(false);
|
|
98
|
+
if (this.open) {
|
|
99
|
+
this.open.dropdown = undefined;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
getClientRect() {
|
|
103
|
+
return this.el.nativeElement.getBoundingClientRect();
|
|
104
|
+
}
|
|
105
|
+
toggle(show) {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
if (show && this.content && !this.dropdownBoxRef) {
|
|
108
|
+
this.dropdownBoxRef = this.dropdownService.add(this.component);
|
|
109
|
+
(_a = this.open) === null || _a === void 0 ? void 0 : _a.update(true);
|
|
110
|
+
}
|
|
111
|
+
else if (!show && this.dropdownBoxRef) {
|
|
112
|
+
this.dropdownService.remove(this.dropdownBoxRef);
|
|
113
|
+
this.dropdownBoxRef = null;
|
|
114
|
+
(_b = this.open) === null || _b === void 0 ? void 0 : _b.update(false);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
TuiDropdownDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownDirective, deps: [{ token: TuiDestroyService, self: true }, { token: ElementRef }, { token: TUI_DROPDOWN_COMPONENT }, { token: INJECTOR }, { token: TuiDropdownPortalService }, { token: TuiDropdownOpenDirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
119
|
+
TuiDropdownDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: { content: ["tuiDropdown", "content"] }, providers: [
|
|
120
|
+
TuiDestroyService,
|
|
121
|
+
tuiAsRectAccessor(TuiDropdownDirective),
|
|
122
|
+
tuiAsVehicle(TuiDropdownDirective),
|
|
123
|
+
], exportAs: ["tuiDropdown"], usesOnChanges: true, ngImport: i0 });
|
|
124
|
+
__decorate([
|
|
125
|
+
tuiPure
|
|
126
|
+
], TuiDropdownDirective.prototype, "position", null);
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownDirective, decorators: [{
|
|
128
|
+
type: Directive,
|
|
129
|
+
args: [{
|
|
130
|
+
selector: '[tuiDropdown]:not(ng-container)',
|
|
131
|
+
providers: [
|
|
132
|
+
TuiDestroyService,
|
|
133
|
+
tuiAsRectAccessor(TuiDropdownDirective),
|
|
134
|
+
tuiAsVehicle(TuiDropdownDirective),
|
|
135
|
+
],
|
|
136
|
+
exportAs: 'tuiDropdown',
|
|
137
|
+
}]
|
|
138
|
+
}], ctorParameters: function () {
|
|
139
|
+
return [{ type: i1.Observable, decorators: [{
|
|
140
|
+
type: Self
|
|
141
|
+
}, {
|
|
142
|
+
type: Inject,
|
|
143
|
+
args: [TuiDestroyService]
|
|
144
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
145
|
+
type: Inject,
|
|
146
|
+
args: [ElementRef]
|
|
147
|
+
}] }, { type: i0.Type, decorators: [{
|
|
148
|
+
type: Inject,
|
|
149
|
+
args: [TUI_DROPDOWN_COMPONENT]
|
|
150
|
+
}] }, { type: i0.Injector, decorators: [{
|
|
151
|
+
type: Inject,
|
|
152
|
+
args: [INJECTOR]
|
|
153
|
+
}] }, { type: i2.TuiDropdownPortalService, decorators: [{
|
|
154
|
+
type: Inject,
|
|
155
|
+
args: [TuiDropdownPortalService]
|
|
156
|
+
}] }, { type: TuiDropdownOpenDirective, decorators: [{
|
|
157
|
+
type: Optional
|
|
158
|
+
}, {
|
|
159
|
+
type: Inject,
|
|
160
|
+
args: [TuiDropdownOpenDirective]
|
|
161
|
+
}] }];
|
|
162
|
+
}, propDecorators: { content: [{
|
|
163
|
+
type: Input,
|
|
164
|
+
args: ['tuiDropdown']
|
|
165
|
+
}], position: [] } });
|
|
166
|
+
|
|
167
|
+
/** Default values for hint options */
|
|
168
|
+
const TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS = {
|
|
169
|
+
showDelay: 200,
|
|
170
|
+
hideDelay: 500,
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Default parameters for dropdown hover directive
|
|
174
|
+
*/
|
|
175
|
+
const TUI_DROPDOWN_HOVER_OPTIONS = tuiCreateToken(TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS);
|
|
176
|
+
function tuiDropdownHoverOptionsProvider(options) {
|
|
177
|
+
return tuiProvideOptions(TUI_DROPDOWN_HOVER_OPTIONS, options, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
class TuiDropdownHoverDirective extends TuiDriver {
|
|
181
|
+
constructor(hovered$, options, parentHover) {
|
|
182
|
+
super(subscriber => this.stream$.subscribe(subscriber));
|
|
183
|
+
this.hovered$ = hovered$;
|
|
184
|
+
this.options = options;
|
|
185
|
+
this.parentHover = parentHover;
|
|
186
|
+
this.toggle$ = new Subject();
|
|
187
|
+
this.stream$ = merge(this.toggle$, this.hovered$).pipe(switchMap(visible => of(visible).pipe(delay(visible ? this.showDelay : this.hideDelay))), tap(visible => {
|
|
188
|
+
this.hovered = visible;
|
|
189
|
+
}), share());
|
|
190
|
+
this.showDelay = this.options.showDelay;
|
|
191
|
+
this.hideDelay = this.options.hideDelay;
|
|
192
|
+
this.hovered = false;
|
|
193
|
+
this.type = 'dropdown';
|
|
194
|
+
}
|
|
195
|
+
toggle(visible) {
|
|
196
|
+
var _a;
|
|
197
|
+
(_a = this.parentHover) === null || _a === void 0 ? void 0 : _a.toggle(visible);
|
|
198
|
+
this.toggle$.next(visible);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
TuiDropdownHoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownHoverDirective, deps: [{ token: TuiHoveredService }, { token: TUI_DROPDOWN_HOVER_OPTIONS }, { token: TuiDropdownHoverDirective, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
202
|
+
TuiDropdownHoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownHoverDirective, selector: "[tuiDropdownHover]:not(ng-container)", inputs: { showDelay: ["tuiDropdownShowDelay", "showDelay"], hideDelay: ["tuiDropdownHideDelay", "hideDelay"] }, providers: [tuiAsDriver(TuiDropdownHoverDirective), TuiHoveredService], usesInheritance: true, ngImport: i0 });
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownHoverDirective, decorators: [{
|
|
204
|
+
type: Directive,
|
|
205
|
+
args: [{
|
|
206
|
+
selector: '[tuiDropdownHover]:not(ng-container)',
|
|
207
|
+
providers: [tuiAsDriver(TuiDropdownHoverDirective), TuiHoveredService],
|
|
208
|
+
}]
|
|
209
|
+
}], ctorParameters: function () {
|
|
210
|
+
return [{ type: i1.Observable, decorators: [{
|
|
211
|
+
type: Inject,
|
|
212
|
+
args: [TuiHoveredService]
|
|
213
|
+
}] }, { type: undefined, decorators: [{
|
|
214
|
+
type: Inject,
|
|
215
|
+
args: [TUI_DROPDOWN_HOVER_OPTIONS]
|
|
216
|
+
}] }, { type: TuiDropdownHoverDirective, decorators: [{
|
|
217
|
+
type: SkipSelf
|
|
218
|
+
}, {
|
|
219
|
+
type: Optional
|
|
220
|
+
}, {
|
|
221
|
+
type: Inject,
|
|
222
|
+
args: [TuiDropdownHoverDirective]
|
|
223
|
+
}] }];
|
|
224
|
+
}, propDecorators: { showDelay: [{
|
|
225
|
+
type: Input,
|
|
226
|
+
args: ['tuiDropdownShowDelay']
|
|
227
|
+
}], hideDelay: [{
|
|
228
|
+
type: Input,
|
|
229
|
+
args: ['tuiDropdownHideDelay']
|
|
230
|
+
}] } });
|
|
231
|
+
|
|
232
|
+
/** Default values for dropdown options */
|
|
233
|
+
const TUI_DROPDOWN_DEFAULT_OPTIONS = {
|
|
234
|
+
align: 'left',
|
|
235
|
+
direction: null,
|
|
236
|
+
limitWidth: 'auto',
|
|
237
|
+
maxHeight: 400,
|
|
238
|
+
minHeight: 80,
|
|
239
|
+
offset: 4,
|
|
240
|
+
appearance: '',
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Default parameters for dropdown directive
|
|
244
|
+
*/
|
|
245
|
+
const TUI_DROPDOWN_OPTIONS = tuiCreateToken(TUI_DROPDOWN_DEFAULT_OPTIONS);
|
|
246
|
+
const tuiDropdownOptionsProvider = (override) => ({
|
|
247
|
+
provide: TUI_DROPDOWN_OPTIONS,
|
|
248
|
+
deps: [
|
|
249
|
+
[new Optional(), TuiDropdownOptionsDirective],
|
|
250
|
+
[new Optional(), new SkipSelf(), TUI_DROPDOWN_OPTIONS],
|
|
251
|
+
],
|
|
252
|
+
useFactory: tuiOverrideOptions(override, TUI_DROPDOWN_DEFAULT_OPTIONS),
|
|
253
|
+
});
|
|
254
|
+
class TuiDropdownOptionsDirective {
|
|
255
|
+
constructor(options) {
|
|
256
|
+
this.options = options;
|
|
257
|
+
this.align = this.options.align;
|
|
258
|
+
this.appearance = this.options.appearance;
|
|
259
|
+
this.direction = this.options.direction;
|
|
260
|
+
this.limitWidth = this.options.limitWidth;
|
|
261
|
+
this.minHeight = this.options.minHeight;
|
|
262
|
+
this.maxHeight = this.options.maxHeight;
|
|
263
|
+
this.offset = this.options.offset;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
TuiDropdownOptionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownOptionsDirective, deps: [{ token: TUI_DROPDOWN_OPTIONS, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
267
|
+
TuiDropdownOptionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: { align: ["tuiDropdownAlign", "align"], appearance: ["tuiDropdownAppearance", "appearance"], direction: ["tuiDropdownDirection", "direction"], limitWidth: ["tuiDropdownLimitWidth", "limitWidth"], minHeight: ["tuiDropdownMinHeight", "minHeight"], maxHeight: ["tuiDropdownMaxHeight", "maxHeight"], offset: ["tuiDropdownOffset", "offset"] }, providers: [
|
|
268
|
+
{
|
|
269
|
+
provide: TUI_DROPDOWN_OPTIONS,
|
|
270
|
+
useExisting: forwardRef(() => TuiDropdownOptionsDirective),
|
|
271
|
+
},
|
|
272
|
+
], ngImport: i0 });
|
|
273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownOptionsDirective, decorators: [{
|
|
274
|
+
type: Directive,
|
|
275
|
+
args: [{
|
|
276
|
+
selector: '[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]',
|
|
277
|
+
providers: [
|
|
278
|
+
{
|
|
279
|
+
provide: TUI_DROPDOWN_OPTIONS,
|
|
280
|
+
useExisting: forwardRef(() => TuiDropdownOptionsDirective),
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
}]
|
|
284
|
+
}], ctorParameters: function () {
|
|
285
|
+
return [{ type: undefined, decorators: [{
|
|
286
|
+
type: SkipSelf
|
|
287
|
+
}, {
|
|
288
|
+
type: Inject,
|
|
289
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
290
|
+
}] }];
|
|
291
|
+
}, propDecorators: { align: [{
|
|
292
|
+
type: Input,
|
|
293
|
+
args: ['tuiDropdownAlign']
|
|
294
|
+
}], appearance: [{
|
|
295
|
+
type: Input,
|
|
296
|
+
args: ['tuiDropdownAppearance']
|
|
297
|
+
}], direction: [{
|
|
298
|
+
type: Input,
|
|
299
|
+
args: ['tuiDropdownDirection']
|
|
300
|
+
}], limitWidth: [{
|
|
301
|
+
type: Input,
|
|
302
|
+
args: ['tuiDropdownLimitWidth']
|
|
303
|
+
}], minHeight: [{
|
|
304
|
+
type: Input,
|
|
305
|
+
args: ['tuiDropdownMinHeight']
|
|
306
|
+
}], maxHeight: [{
|
|
307
|
+
type: Input,
|
|
308
|
+
args: ['tuiDropdownMaxHeight']
|
|
309
|
+
}], offset: [{
|
|
310
|
+
type: Input,
|
|
311
|
+
args: ['tuiDropdownOffset']
|
|
312
|
+
}] } });
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @description:
|
|
316
|
+
* This component is used to show template in a portal
|
|
317
|
+
* using default style of white rounded box with a shadow
|
|
318
|
+
*/
|
|
319
|
+
class TuiDropdownComponent {
|
|
320
|
+
constructor(visualViewportService, position$, destroy$, directive, animation, el, accessor, win, mode$, options, hoverDirective) {
|
|
321
|
+
this.directive = directive;
|
|
322
|
+
this.animation = animation;
|
|
323
|
+
this.el = el;
|
|
324
|
+
this.accessor = accessor;
|
|
325
|
+
this.win = win;
|
|
326
|
+
this.mode$ = mode$;
|
|
327
|
+
this.options = options;
|
|
328
|
+
this.hoverDirective = hoverDirective;
|
|
329
|
+
position$
|
|
330
|
+
.pipe(map(point => this.directive.position === 'fixed'
|
|
331
|
+
? visualViewportService.correct(point)
|
|
332
|
+
: point), takeUntil(destroy$))
|
|
333
|
+
.subscribe(([top, left]) => {
|
|
334
|
+
this.update(top, left);
|
|
335
|
+
});
|
|
336
|
+
this.updateWidth(this.accessor.getClientRect().width);
|
|
337
|
+
}
|
|
338
|
+
onHoveredChange(hovered) {
|
|
339
|
+
var _a;
|
|
340
|
+
(_a = this.hoverDirective) === null || _a === void 0 ? void 0 : _a.toggle(hovered);
|
|
341
|
+
}
|
|
342
|
+
onTopFocus() {
|
|
343
|
+
this.moveFocusOutside(true);
|
|
344
|
+
}
|
|
345
|
+
onBottomFocus() {
|
|
346
|
+
this.moveFocusOutside(false);
|
|
347
|
+
}
|
|
348
|
+
update(top, left) {
|
|
349
|
+
var _a;
|
|
350
|
+
const { style } = this.el.nativeElement;
|
|
351
|
+
const { right } = this.el.nativeElement.getBoundingClientRect();
|
|
352
|
+
const { maxHeight, offset } = this.options;
|
|
353
|
+
const { innerHeight } = this.win;
|
|
354
|
+
const clientRect = (_a = this.el.nativeElement.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
355
|
+
const { position } = this.directive;
|
|
356
|
+
const rect = this.accessor.getClientRect();
|
|
357
|
+
const offsetX = position === 'fixed' ? 0 : -((clientRect === null || clientRect === void 0 ? void 0 : clientRect.left) || 0);
|
|
358
|
+
const offsetY = position === 'fixed' ? 0 : -((clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0);
|
|
359
|
+
top += offsetY;
|
|
360
|
+
left += offsetX;
|
|
361
|
+
const isIntersecting = left < rect.right && right > rect.left && top < offsetY + 2 * offset;
|
|
362
|
+
const available = isIntersecting
|
|
363
|
+
? rect.top - 2 * offset
|
|
364
|
+
: offsetY + innerHeight - top - offset;
|
|
365
|
+
style.position = position;
|
|
366
|
+
style.top = tuiPx(Math.max(top, offsetY + offset));
|
|
367
|
+
style.left = tuiPx(left);
|
|
368
|
+
style.maxHeight = tuiPx(Math.min(maxHeight, available));
|
|
369
|
+
style.width = '';
|
|
370
|
+
style.minWidth = '';
|
|
371
|
+
this.updateWidth(rect.width);
|
|
372
|
+
}
|
|
373
|
+
updateWidth(width) {
|
|
374
|
+
const { style } = this.el.nativeElement;
|
|
375
|
+
switch (this.options.limitWidth) {
|
|
376
|
+
case 'min':
|
|
377
|
+
style.minWidth = tuiPx(width);
|
|
378
|
+
break;
|
|
379
|
+
case 'fixed':
|
|
380
|
+
style.width = tuiPx(width);
|
|
381
|
+
break;
|
|
382
|
+
case 'auto':
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
moveFocusOutside(previous) {
|
|
387
|
+
const { nativeElement } = this.directive.el;
|
|
388
|
+
const { ownerDocument } = nativeElement;
|
|
389
|
+
const root = ownerDocument ? ownerDocument.body : nativeElement;
|
|
390
|
+
let focusable = tuiGetClosestFocusable({ initial: nativeElement, root, previous });
|
|
391
|
+
while (focusable !== null && nativeElement.contains(focusable)) {
|
|
392
|
+
focusable = tuiGetClosestFocusable({ initial: focusable, root, previous });
|
|
393
|
+
}
|
|
394
|
+
focusable === null || focusable === void 0 ? void 0 : focusable.focus();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
TuiDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownComponent, deps: [{ token: TuiVisualViewportService }, { token: TuiPositionService }, { token: TuiDestroyService, self: true }, { token: TuiDropdownDirective }, { token: TUI_ANIMATION_OPTIONS }, { token: ElementRef }, { token: TuiRectAccessor }, { token: WINDOW }, { token: TUI_MODE }, { token: TUI_DROPDOWN_OPTIONS }, { token: TuiDropdownHoverDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
398
|
+
TuiDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownComponent, selector: "tui-dropdown", host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "@tuiDropdownAnimation": "animation", "attr.data-appearance": "options.appearance" } }, providers: [
|
|
399
|
+
TuiDestroyService,
|
|
400
|
+
TuiPositionService,
|
|
401
|
+
tuiPositionAccessorFor('dropdown'),
|
|
402
|
+
tuiRectAccessorFor('dropdown', TuiDropdownDirective),
|
|
403
|
+
MODE_PROVIDER,
|
|
404
|
+
], ngImport: i0, template: "<tui-scrollbar\n #activeZone=\"tuiActiveZone\"\n tuiActiveZone\n tuiOverscroll=\"all\"\n class=\"t-scroll\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n>\n <div\n tabindex=\"0\"\n (focus)=\"onTopFocus()\"\n ></div>\n <div\n *polymorpheusOutlet=\"directive.content as text; context: {$implicit: activeZone}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n <div\n tabindex=\"0\"\n (focus)=\"onBottomFocus()\"\n ></div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}:host.ng-animating{pointer-events:none}:host:not([style*=\"top\"]){visibility:hidden}:host[data-mode=onDark]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll{flex-grow:1;max-width:100%}.t-primitive{padding:1rem}\n"], dependencies: [{ kind: "directive", type: i1$1.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i2.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { kind: "directive", type: i2.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }, { kind: "component", type: i3.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }, { kind: "directive", type: i2.TuiHoveredDirective, selector: "[tuiHoveredChange]", outputs: ["tuiHoveredChange"] }], animations: [tuiDropdownAnimation], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownComponent, decorators: [{
|
|
406
|
+
type: Component,
|
|
407
|
+
args: [{ selector: 'tui-dropdown', changeDetection: ChangeDetectionStrategy.Default, providers: [
|
|
408
|
+
TuiDestroyService,
|
|
409
|
+
TuiPositionService,
|
|
410
|
+
tuiPositionAccessorFor('dropdown'),
|
|
411
|
+
tuiRectAccessorFor('dropdown', TuiDropdownDirective),
|
|
412
|
+
MODE_PROVIDER,
|
|
413
|
+
], host: {
|
|
414
|
+
'[@tuiDropdownAnimation]': 'animation',
|
|
415
|
+
'[attr.data-appearance]': 'options.appearance',
|
|
416
|
+
'($.data-mode.attr)': 'mode$',
|
|
417
|
+
}, animations: [tuiDropdownAnimation], template: "<tui-scrollbar\n #activeZone=\"tuiActiveZone\"\n tuiActiveZone\n tuiOverscroll=\"all\"\n class=\"t-scroll\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n>\n <div\n tabindex=\"0\"\n (focus)=\"onTopFocus()\"\n ></div>\n <div\n *polymorpheusOutlet=\"directive.content as text; context: {$implicit: activeZone}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n <div\n tabindex=\"0\"\n (focus)=\"onBottomFocus()\"\n ></div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}:host.ng-animating{pointer-events:none}:host:not([style*=\"top\"]){visibility:hidden}:host[data-mode=onDark]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll{flex-grow:1;max-width:100%}.t-primitive{padding:1rem}\n"] }]
|
|
418
|
+
}], ctorParameters: function () {
|
|
419
|
+
return [{ type: i4.TuiVisualViewportService, decorators: [{
|
|
420
|
+
type: Inject,
|
|
421
|
+
args: [TuiVisualViewportService]
|
|
422
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
423
|
+
type: Inject,
|
|
424
|
+
args: [TuiPositionService]
|
|
425
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
426
|
+
type: Self
|
|
427
|
+
}, {
|
|
428
|
+
type: Inject,
|
|
429
|
+
args: [TuiDestroyService]
|
|
430
|
+
}] }, { type: TuiDropdownDirective, decorators: [{
|
|
431
|
+
type: Inject,
|
|
432
|
+
args: [TuiDropdownDirective]
|
|
433
|
+
}] }, { type: undefined, decorators: [{
|
|
434
|
+
type: Inject,
|
|
435
|
+
args: [TUI_ANIMATION_OPTIONS]
|
|
436
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
437
|
+
type: Inject,
|
|
438
|
+
args: [ElementRef]
|
|
439
|
+
}] }, { type: i1$2.TuiRectAccessor, decorators: [{
|
|
440
|
+
type: Inject,
|
|
441
|
+
args: [TuiRectAccessor]
|
|
442
|
+
}] }, { type: Window, decorators: [{
|
|
443
|
+
type: Inject,
|
|
444
|
+
args: [WINDOW]
|
|
445
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
446
|
+
type: Inject,
|
|
447
|
+
args: [TUI_MODE]
|
|
448
|
+
}] }, { type: undefined, decorators: [{
|
|
449
|
+
type: Inject,
|
|
450
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
451
|
+
}] }, { type: TuiDropdownHoverDirective, decorators: [{
|
|
452
|
+
type: Optional
|
|
453
|
+
}, {
|
|
454
|
+
type: Inject,
|
|
455
|
+
args: [TuiDropdownHoverDirective]
|
|
456
|
+
}] }];
|
|
457
|
+
} });
|
|
458
|
+
|
|
459
|
+
function activeZoneFilter(target) {
|
|
460
|
+
return !this.activeZone.contains(target);
|
|
461
|
+
}
|
|
462
|
+
class TuiDropdownContextDirective extends TuiDriver {
|
|
463
|
+
constructor(activeZone) {
|
|
464
|
+
super(subscriber => this.stream$.subscribe(subscriber));
|
|
465
|
+
this.activeZone = activeZone;
|
|
466
|
+
this.stream$ = new Subject();
|
|
467
|
+
this.currentRect = EMPTY_CLIENT_RECT;
|
|
468
|
+
this.type = 'dropdown';
|
|
469
|
+
}
|
|
470
|
+
onContextMenu(x, y) {
|
|
471
|
+
this.currentRect = tuiPointToClientRect(x, y);
|
|
472
|
+
this.stream$.next(true);
|
|
473
|
+
}
|
|
474
|
+
closeDropdown() {
|
|
475
|
+
this.stream$.next(false);
|
|
476
|
+
}
|
|
477
|
+
getClientRect() {
|
|
478
|
+
return this.currentRect;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
TuiDropdownContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownContextDirective, deps: [{ token: TuiActiveZoneDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
482
|
+
TuiDropdownContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownContextDirective, selector: "[tuiDropdown][tuiDropdownContext]", host: { listeners: { "contextmenu.prevent.stop": "onContextMenu($event.clientX,$event.clientY)", "document:click.silent": "closeDropdown($event.target)", "document:contextmenu.capture.silent": "closeDropdown($event.target)", "document:keydown.esc": "closeDropdown($event.currentTarget)" } }, providers: [
|
|
483
|
+
TuiActiveZoneDirective,
|
|
484
|
+
tuiAsDriver(TuiDropdownContextDirective),
|
|
485
|
+
tuiAsRectAccessor(TuiDropdownContextDirective),
|
|
486
|
+
], usesInheritance: true, ngImport: i0 });
|
|
487
|
+
__decorate([
|
|
488
|
+
shouldCall(activeZoneFilter)
|
|
489
|
+
], TuiDropdownContextDirective.prototype, "closeDropdown", null);
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownContextDirective, decorators: [{
|
|
491
|
+
type: Directive,
|
|
492
|
+
args: [{
|
|
493
|
+
selector: '[tuiDropdown][tuiDropdownContext]',
|
|
494
|
+
providers: [
|
|
495
|
+
TuiActiveZoneDirective,
|
|
496
|
+
tuiAsDriver(TuiDropdownContextDirective),
|
|
497
|
+
tuiAsRectAccessor(TuiDropdownContextDirective),
|
|
498
|
+
],
|
|
499
|
+
}]
|
|
500
|
+
}], ctorParameters: function () {
|
|
501
|
+
return [{ type: i2.TuiActiveZoneDirective, decorators: [{
|
|
502
|
+
type: Inject,
|
|
503
|
+
args: [TuiActiveZoneDirective]
|
|
504
|
+
}] }];
|
|
505
|
+
}, propDecorators: { onContextMenu: [{
|
|
506
|
+
type: HostListener,
|
|
507
|
+
args: ['contextmenu.prevent.stop', ['$event.clientX', '$event.clientY']]
|
|
508
|
+
}], closeDropdown: [{
|
|
509
|
+
type: HostListener,
|
|
510
|
+
args: ['document:click.silent', ['$event.target']]
|
|
511
|
+
}, {
|
|
512
|
+
type: HostListener,
|
|
513
|
+
args: ['document:contextmenu.capture.silent', ['$event.target']]
|
|
514
|
+
}, {
|
|
515
|
+
type: HostListener,
|
|
516
|
+
args: ['document:keydown.esc', ['$event.currentTarget']]
|
|
517
|
+
}] } });
|
|
518
|
+
|
|
519
|
+
class TuiDropdownDriverDirective extends AbstractTuiDriverDirective {
|
|
520
|
+
// TODO: Figure out why this is necessary under nx test runner
|
|
521
|
+
constructor(destroy$, drivers, vehicles) {
|
|
522
|
+
super(destroy$, drivers, vehicles);
|
|
523
|
+
this.type = 'dropdown';
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
TuiDropdownDriverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownDriverDirective, deps: [{ token: TuiDestroyService, self: true }, { token: TuiDriver }, { token: TuiVehicle }], target: i0.ɵɵFactoryTarget.Directive });
|
|
527
|
+
TuiDropdownDriverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownDriverDirective, selector: "[tuiDropdown]", providers: [TuiDestroyService], usesInheritance: true, ngImport: i0 });
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownDriverDirective, decorators: [{
|
|
529
|
+
type: Directive,
|
|
530
|
+
args: [{
|
|
531
|
+
selector: '[tuiDropdown]',
|
|
532
|
+
providers: [TuiDestroyService],
|
|
533
|
+
}]
|
|
534
|
+
}], ctorParameters: function () {
|
|
535
|
+
return [{ type: i1.Observable, decorators: [{
|
|
536
|
+
type: Self
|
|
537
|
+
}, {
|
|
538
|
+
type: Inject,
|
|
539
|
+
args: [TuiDestroyService]
|
|
540
|
+
}] }, { type: undefined, decorators: [{
|
|
541
|
+
type: Inject,
|
|
542
|
+
args: [TuiDriver]
|
|
543
|
+
}] }, { type: undefined, decorators: [{
|
|
544
|
+
type: Inject,
|
|
545
|
+
args: [TuiVehicle]
|
|
546
|
+
}] }];
|
|
547
|
+
} });
|
|
548
|
+
|
|
549
|
+
class TuiDropdownHostDirective extends TuiRectAccessor {
|
|
550
|
+
constructor() {
|
|
551
|
+
super(...arguments);
|
|
552
|
+
this.type = 'dropdown';
|
|
553
|
+
}
|
|
554
|
+
getClientRect() {
|
|
555
|
+
var _a;
|
|
556
|
+
return ((_a = this.tuiDropdownHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || EMPTY_CLIENT_RECT;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
TuiDropdownHostDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownHostDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
560
|
+
TuiDropdownHostDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownHostDirective, selector: "[tuiDropdown][tuiDropdownHost]", inputs: { tuiDropdownHost: "tuiDropdownHost" }, providers: [tuiAsRectAccessor(TuiDropdownHostDirective)], usesInheritance: true, ngImport: i0 });
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownHostDirective, decorators: [{
|
|
562
|
+
type: Directive,
|
|
563
|
+
args: [{
|
|
564
|
+
selector: '[tuiDropdown][tuiDropdownHost]',
|
|
565
|
+
providers: [tuiAsRectAccessor(TuiDropdownHostDirective)],
|
|
566
|
+
}]
|
|
567
|
+
}], propDecorators: { tuiDropdownHost: [{
|
|
568
|
+
type: Input
|
|
569
|
+
}] } });
|
|
570
|
+
|
|
571
|
+
class TuiDropdownManualDirective extends TuiDriver {
|
|
572
|
+
constructor() {
|
|
573
|
+
super(subscriber => this.stream$.subscribe(subscriber));
|
|
574
|
+
this.stream$ = new BehaviorSubject(false);
|
|
575
|
+
this.tuiDropdownManual = false;
|
|
576
|
+
this.type = 'dropdown';
|
|
577
|
+
}
|
|
578
|
+
ngOnChanges() {
|
|
579
|
+
this.stream$.next(this.tuiDropdownManual);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
TuiDropdownManualDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownManualDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
583
|
+
TuiDropdownManualDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: { tuiDropdownManual: "tuiDropdownManual" }, providers: [tuiAsDriver(TuiDropdownManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownManualDirective, decorators: [{
|
|
585
|
+
type: Directive,
|
|
586
|
+
args: [{
|
|
587
|
+
selector: '[tuiDropdown][tuiDropdownManual]',
|
|
588
|
+
providers: [tuiAsDriver(TuiDropdownManualDirective)],
|
|
589
|
+
}]
|
|
590
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tuiDropdownManual: [{
|
|
591
|
+
type: Input
|
|
592
|
+
}] } });
|
|
593
|
+
|
|
594
|
+
class TuiDropdownPositionDirective extends TuiPositionAccessor {
|
|
595
|
+
constructor(options, viewport, accessors, directive) {
|
|
596
|
+
super();
|
|
597
|
+
this.options = options;
|
|
598
|
+
this.viewport = viewport;
|
|
599
|
+
this.accessors = accessors;
|
|
600
|
+
this.directive = directive;
|
|
601
|
+
this.type = 'dropdown';
|
|
602
|
+
}
|
|
603
|
+
getPosition({ width, height }) {
|
|
604
|
+
var _a, _b;
|
|
605
|
+
if (!width && !height) {
|
|
606
|
+
this.previous = undefined;
|
|
607
|
+
}
|
|
608
|
+
const hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : EMPTY_CLIENT_RECT;
|
|
609
|
+
const viewportRect = this.viewport.getClientRect();
|
|
610
|
+
const { minHeight, align, direction, offset } = this.options;
|
|
611
|
+
const viewport = {
|
|
612
|
+
top: viewportRect.top - offset,
|
|
613
|
+
bottom: viewportRect.bottom + offset,
|
|
614
|
+
right: viewportRect.right - offset,
|
|
615
|
+
left: viewportRect.left + offset,
|
|
616
|
+
};
|
|
617
|
+
const previous = this.previous || direction || 'bottom';
|
|
618
|
+
const available = {
|
|
619
|
+
top: hostRect.top - 2 * offset - viewport.top,
|
|
620
|
+
bottom: viewport.bottom - hostRect.bottom - 2 * offset,
|
|
621
|
+
};
|
|
622
|
+
const right = Math.max(hostRect.right - width, offset);
|
|
623
|
+
const left = hostRect.left + width < viewport.right ? hostRect.left : right;
|
|
624
|
+
const position = {
|
|
625
|
+
top: hostRect.top - offset - height,
|
|
626
|
+
bottom: hostRect.bottom + offset,
|
|
627
|
+
right: Math.max(viewport.left, right),
|
|
628
|
+
center: hostRect.left + hostRect.width / 2 + width / 2 < viewport.right
|
|
629
|
+
? hostRect.left + hostRect.width / 2 - width / 2
|
|
630
|
+
: right,
|
|
631
|
+
left: Math.max(viewport.left, left),
|
|
632
|
+
};
|
|
633
|
+
const better = available.top > available.bottom ? 'top' : 'bottom';
|
|
634
|
+
if ((available[previous] > minHeight && direction) ||
|
|
635
|
+
available[previous] > height) {
|
|
636
|
+
return [position[previous], position[align]];
|
|
637
|
+
}
|
|
638
|
+
this.previous = better;
|
|
639
|
+
return [position[better], position[align]];
|
|
640
|
+
}
|
|
641
|
+
get accessor() {
|
|
642
|
+
return tuiFallbackRectAccessor('dropdown')(this.accessors, this.directive);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
TuiDropdownPositionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownPositionDirective, deps: [{ token: TUI_DROPDOWN_OPTIONS }, { token: TUI_VIEWPORT }, { token: TuiRectAccessor }, { token: TuiDropdownDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
646
|
+
TuiDropdownPositionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])", providers: [tuiAsPositionAccessor(TuiDropdownPositionDirective)], usesInheritance: true, ngImport: i0 });
|
|
647
|
+
__decorate([
|
|
648
|
+
tuiPure
|
|
649
|
+
], TuiDropdownPositionDirective.prototype, "accessor", null);
|
|
650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownPositionDirective, decorators: [{
|
|
651
|
+
type: Directive,
|
|
652
|
+
args: [{
|
|
653
|
+
selector: '[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])',
|
|
654
|
+
providers: [tuiAsPositionAccessor(TuiDropdownPositionDirective)],
|
|
655
|
+
}]
|
|
656
|
+
}], ctorParameters: function () {
|
|
657
|
+
return [{ type: undefined, decorators: [{
|
|
658
|
+
type: Inject,
|
|
659
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
660
|
+
}] }, { type: i1$2.TuiRectAccessor, decorators: [{
|
|
661
|
+
type: Inject,
|
|
662
|
+
args: [TUI_VIEWPORT]
|
|
663
|
+
}] }, { type: undefined, decorators: [{
|
|
664
|
+
type: Inject,
|
|
665
|
+
args: [TuiRectAccessor]
|
|
666
|
+
}] }, { type: TuiDropdownDirective, decorators: [{
|
|
667
|
+
type: Inject,
|
|
668
|
+
args: [TuiDropdownDirective]
|
|
669
|
+
}] }];
|
|
670
|
+
}, propDecorators: { accessor: [] } });
|
|
671
|
+
|
|
672
|
+
class TuiDropdownPositionSidedDirective extends TuiPositionAccessor {
|
|
673
|
+
constructor(options, viewport, vertical) {
|
|
674
|
+
super();
|
|
675
|
+
this.options = options;
|
|
676
|
+
this.viewport = viewport;
|
|
677
|
+
this.vertical = vertical;
|
|
678
|
+
this.previous = this.options.direction || 'bottom';
|
|
679
|
+
this.tuiDropdownSided = '';
|
|
680
|
+
this.tuiDropdownSidedOffset = 4;
|
|
681
|
+
this.type = 'dropdown';
|
|
682
|
+
}
|
|
683
|
+
getPosition(rect) {
|
|
684
|
+
var _a, _b;
|
|
685
|
+
if (this.tuiDropdownSided === false) {
|
|
686
|
+
return this.vertical.getPosition(rect);
|
|
687
|
+
}
|
|
688
|
+
const { height, width } = rect;
|
|
689
|
+
const hostRect = (_b = (_a = this.vertical.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : EMPTY_CLIENT_RECT;
|
|
690
|
+
const viewport = this.viewport.getClientRect();
|
|
691
|
+
const { direction, minHeight, offset } = this.options;
|
|
692
|
+
const align = this.options.align === 'center' ? 'left' : this.options.align;
|
|
693
|
+
const available = {
|
|
694
|
+
top: hostRect.bottom - viewport.top,
|
|
695
|
+
left: hostRect.left - offset - viewport.left,
|
|
696
|
+
right: viewport.right - hostRect.right - offset,
|
|
697
|
+
bottom: viewport.bottom - hostRect.top,
|
|
698
|
+
};
|
|
699
|
+
const position = {
|
|
700
|
+
top: hostRect.bottom - height + this.tuiDropdownSidedOffset + 1,
|
|
701
|
+
left: hostRect.left - width - offset,
|
|
702
|
+
right: hostRect.right + offset,
|
|
703
|
+
bottom: hostRect.top - this.tuiDropdownSidedOffset - 1, // 1 for border
|
|
704
|
+
};
|
|
705
|
+
const better = available.top > available.bottom ? 'top' : 'bottom';
|
|
706
|
+
const maxLeft = available.left > available.right ? position.left : position.right;
|
|
707
|
+
const left = available[align] > width ? position[align] : maxLeft;
|
|
708
|
+
if ((available[this.previous] > minHeight && direction) ||
|
|
709
|
+
this.previous === better) {
|
|
710
|
+
return [position[this.previous], left];
|
|
711
|
+
}
|
|
712
|
+
this.previous = better;
|
|
713
|
+
return [position[better], left];
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
TuiDropdownPositionSidedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownPositionSidedDirective, deps: [{ token: TUI_DROPDOWN_OPTIONS }, { token: TUI_VIEWPORT }, { token: TuiDropdownPositionDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
717
|
+
TuiDropdownPositionSidedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownPositionSidedDirective, selector: "[tuiDropdownSided]", inputs: { tuiDropdownSided: "tuiDropdownSided", tuiDropdownSidedOffset: "tuiDropdownSidedOffset" }, providers: [
|
|
718
|
+
TuiDropdownPositionDirective,
|
|
719
|
+
tuiAsPositionAccessor(TuiDropdownPositionSidedDirective),
|
|
720
|
+
], usesInheritance: true, ngImport: i0 });
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownPositionSidedDirective, decorators: [{
|
|
722
|
+
type: Directive,
|
|
723
|
+
args: [{
|
|
724
|
+
selector: '[tuiDropdownSided]',
|
|
725
|
+
providers: [
|
|
726
|
+
TuiDropdownPositionDirective,
|
|
727
|
+
tuiAsPositionAccessor(TuiDropdownPositionSidedDirective),
|
|
728
|
+
],
|
|
729
|
+
}]
|
|
730
|
+
}], ctorParameters: function () {
|
|
731
|
+
return [{ type: undefined, decorators: [{
|
|
732
|
+
type: Inject,
|
|
733
|
+
args: [TUI_DROPDOWN_OPTIONS]
|
|
734
|
+
}] }, { type: i1$2.TuiRectAccessor, decorators: [{
|
|
735
|
+
type: Inject,
|
|
736
|
+
args: [TUI_VIEWPORT]
|
|
737
|
+
}] }, { type: TuiDropdownPositionDirective, decorators: [{
|
|
738
|
+
type: Inject,
|
|
739
|
+
args: [TuiDropdownPositionDirective]
|
|
740
|
+
}] }];
|
|
741
|
+
}, propDecorators: { tuiDropdownSided: [{
|
|
742
|
+
type: Input
|
|
743
|
+
}], tuiDropdownSidedOffset: [{
|
|
744
|
+
type: Input
|
|
745
|
+
}] } });
|
|
746
|
+
|
|
747
|
+
class TuiDropdownSelectionDirective extends TuiDriver {
|
|
748
|
+
set tuiDropdownSelection(visible) {
|
|
749
|
+
if (!tuiIsString(visible)) {
|
|
750
|
+
this.handler$.next(visible);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
constructor(range, doc, selection$, el, vcr, dropdown) {
|
|
754
|
+
super(subscriber => this.stream$.subscribe(subscriber));
|
|
755
|
+
this.range = range;
|
|
756
|
+
this.doc = doc;
|
|
757
|
+
this.selection$ = selection$;
|
|
758
|
+
this.el = el;
|
|
759
|
+
this.vcr = vcr;
|
|
760
|
+
this.dropdown = dropdown;
|
|
761
|
+
this.handler$ = new BehaviorSubject(ALWAYS_TRUE_HANDLER);
|
|
762
|
+
this.stream$ = combineLatest([
|
|
763
|
+
this.handler$,
|
|
764
|
+
this.selection$.pipe(map(() => this.getRange()), distinctUntilChanged((x, y) => x.startOffset === y.startOffset && x.endOffset === y.endOffset)),
|
|
765
|
+
]).pipe(map(([handler, range]) => {
|
|
766
|
+
const contained = this.el.nativeElement.contains(range.commonAncestorContainer);
|
|
767
|
+
this.range =
|
|
768
|
+
contained && tuiIsTextNode(range.commonAncestorContainer)
|
|
769
|
+
? range
|
|
770
|
+
: this.range;
|
|
771
|
+
return (contained && handler(this.range)) || this.inDropdown(range);
|
|
772
|
+
}));
|
|
773
|
+
this.position = 'selection';
|
|
774
|
+
this.type = 'dropdown';
|
|
775
|
+
}
|
|
776
|
+
getClientRect() {
|
|
777
|
+
switch (this.position) {
|
|
778
|
+
case 'tag': {
|
|
779
|
+
const { commonAncestorContainer } = this.range;
|
|
780
|
+
const element = tuiIsElement(commonAncestorContainer)
|
|
781
|
+
? commonAncestorContainer
|
|
782
|
+
: commonAncestorContainer.parentNode;
|
|
783
|
+
return element && tuiIsElement(element)
|
|
784
|
+
? element.getBoundingClientRect()
|
|
785
|
+
: EMPTY_CLIENT_RECT;
|
|
786
|
+
}
|
|
787
|
+
case 'word':
|
|
788
|
+
return tuiGetWordRange(this.range).getBoundingClientRect();
|
|
789
|
+
default:
|
|
790
|
+
return this.range.getBoundingClientRect();
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
ngOnDestroy() {
|
|
794
|
+
if (this.ghost) {
|
|
795
|
+
this.vcr.element.nativeElement.removeChild(this.ghost);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
getRange() {
|
|
799
|
+
const active = tuiGetNativeFocused(this.doc);
|
|
800
|
+
const selection = this.doc.getSelection();
|
|
801
|
+
const range = active && tuiIsTextfield(active) && this.el.nativeElement.contains(active)
|
|
802
|
+
? this.veryVerySadInputFix(active)
|
|
803
|
+
: ((selection === null || selection === void 0 ? void 0 : selection.rangeCount) && selection.getRangeAt(0)) || this.range;
|
|
804
|
+
return range.cloneRange();
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Check if Node is inside dropdown
|
|
808
|
+
*/
|
|
809
|
+
boxContains(node) {
|
|
810
|
+
var _a;
|
|
811
|
+
return !!((_a = this.dropdown.dropdownBoxRef) === null || _a === void 0 ? void 0 : _a.location.nativeElement.contains(node));
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Check if given range is at least partially inside dropdown
|
|
815
|
+
*/
|
|
816
|
+
inDropdown(range) {
|
|
817
|
+
const { startContainer, endContainer } = range;
|
|
818
|
+
const { nativeElement } = this.el;
|
|
819
|
+
const inDropdown = this.boxContains(range.commonAncestorContainer);
|
|
820
|
+
const hostToDropdown = this.boxContains(endContainer) && nativeElement.contains(startContainer);
|
|
821
|
+
const dropdownToHost = this.boxContains(startContainer) && nativeElement.contains(endContainer);
|
|
822
|
+
return inDropdown || hostToDropdown || dropdownToHost;
|
|
823
|
+
}
|
|
824
|
+
veryVerySadInputFix(element) {
|
|
825
|
+
const { ghost = this.initGhost(element) } = this;
|
|
826
|
+
const { top, left, width, height } = element.getBoundingClientRect();
|
|
827
|
+
const { selectionStart, selectionEnd, value } = element;
|
|
828
|
+
const range = this.doc.createRange();
|
|
829
|
+
const hostRect = this.el.nativeElement.getBoundingClientRect();
|
|
830
|
+
ghost.style.top = tuiPx(top - hostRect.top);
|
|
831
|
+
ghost.style.left = tuiPx(left - hostRect.left);
|
|
832
|
+
ghost.style.width = tuiPx(width);
|
|
833
|
+
ghost.style.height = tuiPx(height);
|
|
834
|
+
ghost.textContent = CHAR_ZERO_WIDTH_SPACE + value + CHAR_NO_BREAK_SPACE;
|
|
835
|
+
range.setStart(ghost.firstChild, selectionStart || 0);
|
|
836
|
+
range.setEnd(ghost.firstChild, selectionEnd || 0);
|
|
837
|
+
return range;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Create an invisible DIV styled exactly like input/textarea element inside directive
|
|
841
|
+
*/
|
|
842
|
+
initGhost(element) {
|
|
843
|
+
const ghost = this.doc.createElement('div');
|
|
844
|
+
const { font, letterSpacing, textTransform, padding } = getComputedStyle(element);
|
|
845
|
+
ghost.style.position = 'absolute';
|
|
846
|
+
ghost.style.pointerEvents = 'none';
|
|
847
|
+
ghost.style.opacity = '0';
|
|
848
|
+
ghost.style.whiteSpace = 'pre-wrap';
|
|
849
|
+
ghost.style.font = font;
|
|
850
|
+
ghost.style.letterSpacing = letterSpacing;
|
|
851
|
+
ghost.style.textTransform = textTransform;
|
|
852
|
+
ghost.style.padding = padding;
|
|
853
|
+
this.vcr.element.nativeElement.appendChild(ghost);
|
|
854
|
+
this.ghost = ghost;
|
|
855
|
+
return ghost;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
TuiDropdownSelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownSelectionDirective, deps: [{ token: TUI_RANGE }, { token: DOCUMENT }, { token: TUI_SELECTION_STREAM }, { token: ElementRef }, { token: ViewContainerRef }, { token: TuiDropdownDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
859
|
+
TuiDropdownSelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiDropdownSelectionDirective, selector: "[tuiDropdown][tuiDropdownSelection]", inputs: { position: ["tuiDropdownSelectionPosition", "position"], tuiDropdownSelection: "tuiDropdownSelection" }, providers: [
|
|
860
|
+
tuiAsDriver(TuiDropdownSelectionDirective),
|
|
861
|
+
tuiAsRectAccessor(TuiDropdownSelectionDirective),
|
|
862
|
+
], usesInheritance: true, ngImport: i0 });
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownSelectionDirective, decorators: [{
|
|
864
|
+
type: Directive,
|
|
865
|
+
args: [{
|
|
866
|
+
selector: '[tuiDropdown][tuiDropdownSelection]',
|
|
867
|
+
providers: [
|
|
868
|
+
tuiAsDriver(TuiDropdownSelectionDirective),
|
|
869
|
+
tuiAsRectAccessor(TuiDropdownSelectionDirective),
|
|
870
|
+
],
|
|
871
|
+
}]
|
|
872
|
+
}], ctorParameters: function () {
|
|
873
|
+
return [{ type: Range, decorators: [{
|
|
874
|
+
type: Inject,
|
|
875
|
+
args: [TUI_RANGE]
|
|
876
|
+
}] }, { type: Document, decorators: [{
|
|
877
|
+
type: Inject,
|
|
878
|
+
args: [DOCUMENT]
|
|
879
|
+
}] }, { type: i1.Observable, decorators: [{
|
|
880
|
+
type: Inject,
|
|
881
|
+
args: [TUI_SELECTION_STREAM]
|
|
882
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
883
|
+
type: Inject,
|
|
884
|
+
args: [ElementRef]
|
|
885
|
+
}] }, { type: i0.ViewContainerRef, decorators: [{
|
|
886
|
+
type: Inject,
|
|
887
|
+
args: [ViewContainerRef]
|
|
888
|
+
}] }, { type: TuiDropdownDirective, decorators: [{
|
|
889
|
+
type: Inject,
|
|
890
|
+
args: [TuiDropdownDirective]
|
|
891
|
+
}] }];
|
|
892
|
+
}, propDecorators: { position: [{
|
|
893
|
+
type: Input,
|
|
894
|
+
args: ['tuiDropdownSelectionPosition']
|
|
895
|
+
}], tuiDropdownSelection: [{
|
|
896
|
+
type: Input
|
|
897
|
+
}] } });
|
|
898
|
+
|
|
899
|
+
class TuiDropdownModule {
|
|
900
|
+
}
|
|
901
|
+
TuiDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
902
|
+
TuiDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownModule, declarations: [TuiDropdownDirective,
|
|
903
|
+
TuiDropdownComponent,
|
|
904
|
+
TuiDropdownOpenDirective,
|
|
905
|
+
TuiDropdownOptionsDirective,
|
|
906
|
+
TuiDropdownHostDirective,
|
|
907
|
+
TuiDropdownDriverDirective,
|
|
908
|
+
TuiDropdownManualDirective,
|
|
909
|
+
TuiDropdownHoverDirective,
|
|
910
|
+
TuiDropdownContextDirective,
|
|
911
|
+
TuiDropdownPositionDirective,
|
|
912
|
+
TuiDropdownPositionSidedDirective,
|
|
913
|
+
TuiDropdownSelectionDirective], imports: [PolymorpheusModule,
|
|
914
|
+
TuiActiveZoneModule,
|
|
915
|
+
TuiOverscrollModule,
|
|
916
|
+
TuiScrollbarModule,
|
|
917
|
+
TuiHoveredModule], exports: [TuiDropdownDirective,
|
|
918
|
+
TuiDropdownComponent,
|
|
919
|
+
TuiDropdownOpenDirective,
|
|
920
|
+
TuiDropdownOptionsDirective,
|
|
921
|
+
TuiDropdownHostDirective,
|
|
922
|
+
TuiDropdownDriverDirective,
|
|
923
|
+
TuiDropdownManualDirective,
|
|
924
|
+
TuiDropdownHoverDirective,
|
|
925
|
+
TuiDropdownContextDirective,
|
|
926
|
+
TuiDropdownPositionDirective,
|
|
927
|
+
TuiDropdownPositionSidedDirective,
|
|
928
|
+
TuiDropdownSelectionDirective] });
|
|
929
|
+
TuiDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownModule, imports: [PolymorpheusModule,
|
|
930
|
+
TuiActiveZoneModule,
|
|
931
|
+
TuiOverscrollModule,
|
|
932
|
+
TuiScrollbarModule,
|
|
933
|
+
TuiHoveredModule] });
|
|
934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiDropdownModule, decorators: [{
|
|
935
|
+
type: NgModule,
|
|
936
|
+
args: [{
|
|
937
|
+
imports: [
|
|
938
|
+
PolymorpheusModule,
|
|
939
|
+
TuiActiveZoneModule,
|
|
940
|
+
TuiOverscrollModule,
|
|
941
|
+
TuiScrollbarModule,
|
|
942
|
+
TuiHoveredModule,
|
|
943
|
+
],
|
|
944
|
+
declarations: [
|
|
945
|
+
TuiDropdownDirective,
|
|
946
|
+
TuiDropdownComponent,
|
|
947
|
+
TuiDropdownOpenDirective,
|
|
948
|
+
TuiDropdownOptionsDirective,
|
|
949
|
+
TuiDropdownHostDirective,
|
|
950
|
+
TuiDropdownDriverDirective,
|
|
951
|
+
TuiDropdownManualDirective,
|
|
952
|
+
TuiDropdownHoverDirective,
|
|
953
|
+
TuiDropdownContextDirective,
|
|
954
|
+
TuiDropdownPositionDirective,
|
|
955
|
+
TuiDropdownPositionSidedDirective,
|
|
956
|
+
TuiDropdownSelectionDirective,
|
|
957
|
+
],
|
|
958
|
+
exports: [
|
|
959
|
+
TuiDropdownDirective,
|
|
960
|
+
TuiDropdownComponent,
|
|
961
|
+
TuiDropdownOpenDirective,
|
|
962
|
+
TuiDropdownOptionsDirective,
|
|
963
|
+
TuiDropdownHostDirective,
|
|
964
|
+
TuiDropdownDriverDirective,
|
|
965
|
+
TuiDropdownManualDirective,
|
|
966
|
+
TuiDropdownHoverDirective,
|
|
967
|
+
TuiDropdownContextDirective,
|
|
968
|
+
TuiDropdownPositionDirective,
|
|
969
|
+
TuiDropdownPositionSidedDirective,
|
|
970
|
+
TuiDropdownSelectionDirective,
|
|
971
|
+
],
|
|
972
|
+
}]
|
|
973
|
+
}] });
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Generated bundle index. Do not edit.
|
|
977
|
+
*/
|
|
978
|
+
|
|
979
|
+
export { TUI_DROPDOWN_COMPONENT, TUI_DROPDOWN_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_OPTIONS, TUI_DROPDOWN_OPTIONS, TuiDropdownComponent, TuiDropdownContextDirective, TuiDropdownDirective, TuiDropdownDriverDirective, TuiDropdownHostDirective, TuiDropdownHoverDirective, TuiDropdownManualDirective, TuiDropdownModule, TuiDropdownOpenDirective, TuiDropdownOptionsDirective, TuiDropdownPositionDirective, TuiDropdownPositionSidedDirective, TuiDropdownSelectionDirective, tuiDropdownHoverOptionsProvider, tuiDropdownOptionsProvider };
|
|
980
|
+
//# sourceMappingURL=taiga-ui-core-directives-dropdown.mjs.map
|