@taiga-ui/core 2.54.0 → 3.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/abstract-dropdown.d.ts +7 -4
- package/abstract/abstract-hint-options.d.ts +2 -2
- package/abstract/abstract-hint.d.ts +3 -0
- package/abstract/abstract-textfield-host.d.ts +3 -0
- package/abstract/package.json +2 -5
- package/abstract/taiga-ui-core-abstract.d.ts +1 -0
- package/animations/package.json +2 -5
- package/animations/taiga-ui-core-animations.d.ts +1 -0
- package/bundles/taiga-ui-core-abstract.umd.js +453 -335
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-animations.umd.js +145 -141
- package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.js +448 -347
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +499 -371
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +471 -339
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +629 -472
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +487 -350
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dropdown-box.umd.js +497 -365
- package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-error.umd.js +401 -284
- package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +435 -315
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-group.umd.js +443 -339
- package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +515 -382
- package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +491 -354
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-label.umd.js +404 -288
- package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.js +459 -326
- package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +428 -309
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +416 -296
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +457 -326
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +429 -306
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +438 -310
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +796 -638
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +439 -314
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +446 -305
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +533 -392
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +457 -325
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +454 -332
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +373 -264
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +439 -314
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components.umd.js +55 -107
- package/bundles/taiga-ui-core-components.umd.js.map +1 -1
- package/bundles/taiga-ui-core-constants.umd.js +27 -34
- package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-described-by.umd.js +399 -287
- package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +425 -304
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +411 -290
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint-controller.umd.js +423 -304
- package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +451 -323
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-manual-hint.umd.js +404 -285
- package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +58 -269
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mode.umd.js +375 -266
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +414 -298
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +392 -282
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +753 -470
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.js +101 -325
- package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives.umd.js +29 -69
- package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-core-enums.umd.js +11 -104
- package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-core-interfaces.umd.js +2 -2
- package/bundles/taiga-ui-core-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +423 -298
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +69 -279
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal.umd.js +7 -11
- package/bundles/taiga-ui-core-internal.umd.js.map +1 -1
- package/bundles/taiga-ui-core-mask.umd.js +2 -2
- package/bundles/taiga-ui-core-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-core-observables.umd.js +12 -10
- package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +50 -267
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.js +46 -263
- package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js +43 -261
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-month.umd.js +49 -265
- package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes.umd.js +13 -29
- package/bundles/taiga-ui-core-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-core-providers.umd.js +10 -12
- package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +432 -308
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +382 -302
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-types.umd.js +2 -2
- package/bundles/taiga-ui-core-types.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +24 -32
- package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-format.umd.js +350 -311
- package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +368 -286
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +12 -26
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mobile.umd.js +7 -3
- package/bundles/taiga-ui-core-utils-mobile.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-polyfills.umd.js +11 -7
- package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils.umd.js +15 -27
- package/bundles/taiga-ui-core-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-core.umd.js +49 -57
- package/bundles/taiga-ui-core.umd.js.map +1 -1
- package/components/alert/alert.component.d.ts +3 -0
- package/components/alert/alert.module.d.ts +8 -3
- package/components/alert/alert.service.d.ts +7 -13
- package/components/alert/package.json +2 -5
- package/components/alert/taiga-ui-core-components-alert.d.ts +1 -0
- package/components/button/button.component.d.ts +6 -5
- package/components/button/button.module.d.ts +10 -0
- package/components/button/package.json +2 -5
- package/components/button/taiga-ui-core-components-button.d.ts +1 -0
- package/components/calendar/calendar.component.d.ts +3 -0
- package/components/calendar/calendar.module.d.ts +11 -0
- package/components/calendar/package.json +2 -5
- package/components/calendar/taiga-ui-core-components-calendar.d.ts +1 -0
- package/components/data-list/data-list-dropdown-manager.directive.d.ts +3 -0
- package/components/data-list/data-list.component.d.ts +4 -1
- package/components/data-list/data-list.directive.d.ts +3 -0
- package/components/data-list/data-list.module.d.ts +12 -0
- package/components/data-list/opt-group.directive.d.ts +3 -0
- package/components/data-list/option/option.component.d.ts +3 -0
- package/components/data-list/package.json +2 -5
- package/components/data-list/taiga-ui-core-components-data-list.d.ts +1 -0
- package/components/dialog/dialog.component.d.ts +3 -0
- package/components/dialog/dialog.directive.d.ts +3 -0
- package/components/dialog/dialog.module.d.ts +10 -0
- package/components/dialog/dialog.service.d.ts +4 -1
- package/components/dialog/package.json +2 -5
- package/components/dialog/taiga-ui-core-components-dialog.d.ts +1 -0
- package/components/dropdown-box/dropdown-box.component.d.ts +5 -2
- package/components/dropdown-box/dropdown-box.module.d.ts +9 -0
- package/components/dropdown-box/package.json +2 -5
- package/components/dropdown-box/taiga-ui-core-components-dropdown-box.d.ts +1 -0
- package/components/error/error.component.d.ts +3 -0
- package/components/error/error.module.d.ts +7 -0
- package/components/error/package.json +2 -5
- package/components/error/taiga-ui-core-components-error.d.ts +1 -0
- package/components/expand/expand-content.directive.d.ts +3 -0
- package/components/expand/expand.component.d.ts +3 -0
- package/components/expand/expand.module.d.ts +8 -0
- package/components/expand/package.json +2 -5
- package/components/expand/taiga-ui-core-components-expand.d.ts +1 -0
- package/components/group/group-styles.component.d.ts +3 -0
- package/components/group/group.directive.d.ts +5 -2
- package/components/group/group.module.d.ts +7 -0
- package/components/group/index.d.ts +0 -1
- package/components/group/package.json +2 -5
- package/components/group/taiga-ui-core-components-group.d.ts +1 -0
- package/components/hints-host/hint-box/hint-box.component.d.ts +5 -2
- package/components/hints-host/hint-box/hint-box.module.d.ts +8 -0
- package/components/hints-host/hints-host.component.d.ts +4 -1
- package/components/hints-host/hints-host.module.d.ts +9 -0
- package/components/hints-host/package.json +2 -5
- package/components/hints-host/taiga-ui-core-components-hints-host.d.ts +1 -0
- package/components/hosted-dropdown/hosted-dropdown-connector.directive.d.ts +3 -0
- package/components/hosted-dropdown/hosted-dropdown.component.d.ts +3 -0
- package/components/hosted-dropdown/hosted-dropdown.module.d.ts +10 -0
- package/components/hosted-dropdown/package.json +2 -5
- package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.d.ts +1 -0
- package/components/label/label.component.d.ts +4 -1
- package/components/label/label.module.d.ts +6 -0
- package/components/label/package.json +2 -5
- package/components/label/taiga-ui-core-components-label.d.ts +1 -0
- package/components/link/link.component.d.ts +3 -0
- package/components/link/link.module.d.ts +7 -0
- package/components/link/package.json +2 -5
- package/components/link/taiga-ui-core-components-link.d.ts +1 -0
- package/components/loader/loader.component.d.ts +4 -1
- package/components/loader/loader.module.d.ts +7 -0
- package/components/loader/package.json +2 -5
- package/components/loader/taiga-ui-core-components-loader.d.ts +1 -0
- package/components/notification/notification.component.d.ts +3 -0
- package/components/notification/notification.module.d.ts +8 -0
- package/components/notification/package.json +2 -5
- package/components/notification/taiga-ui-core-components-notification.d.ts +1 -0
- package/components/package.json +2 -5
- package/components/primitive-calendar/package.json +2 -5
- package/components/primitive-calendar/primitive-calendar.component.d.ts +4 -1
- package/components/primitive-calendar/primitive-calendar.module.d.ts +8 -0
- package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.d.ts +1 -0
- package/components/primitive-checkbox/checkbox-options.d.ts +0 -5
- package/components/primitive-checkbox/package.json +2 -5
- package/components/primitive-checkbox/primitive-checkbox.component.d.ts +5 -2
- package/components/primitive-checkbox/primitive-checkbox.module.d.ts +8 -0
- package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.d.ts +1 -0
- package/components/primitive-spin-button/package.json +2 -5
- package/components/primitive-spin-button/primitive-spin-button.component.d.ts +3 -0
- package/components/primitive-spin-button/primitive-spin-button.module.d.ts +8 -0
- package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.d.ts +1 -0
- package/components/primitive-textfield/package.json +2 -5
- package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -3
- package/components/primitive-textfield/primitive-textfield-types.d.ts +10 -0
- package/components/primitive-textfield/primitive-textfield.component.d.ts +8 -12
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +3 -0
- package/components/primitive-textfield/primitive-textfield.module.d.ts +17 -0
- package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.d.ts +1 -0
- package/components/primitive-textfield/textfield/textfield.component.d.ts +3 -0
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +5 -2
- package/components/primitive-year-picker/package.json +2 -5
- package/components/primitive-year-picker/primitive-year-picker.component.d.ts +3 -0
- package/components/primitive-year-picker/primitive-year-picker.module.d.ts +7 -0
- package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.d.ts +1 -0
- package/components/root/package.json +2 -5
- package/components/root/root.component.d.ts +3 -0
- package/components/root/root.module.d.ts +11 -0
- package/components/root/taiga-ui-core-components-root.d.ts +1 -0
- package/components/scroll-controls/package.json +2 -5
- package/components/scroll-controls/scroll-controls.component.d.ts +3 -0
- package/components/scroll-controls/scroll-controls.module.d.ts +9 -0
- package/components/scroll-controls/scrollbar-wrapper.directive.d.ts +3 -0
- package/components/scroll-controls/scrollbar.directive.d.ts +5 -2
- package/components/scroll-controls/taiga-ui-core-components-scroll-controls.d.ts +1 -1
- package/components/scrollbar/package.json +2 -5
- package/components/scrollbar/scroll-ref.directive.d.ts +3 -0
- package/components/scrollbar/scrollable.directive.d.ts +3 -0
- package/components/scrollbar/scrollbar.component.d.ts +3 -0
- package/components/scrollbar/scrollbar.module.d.ts +9 -0
- package/components/scrollbar/taiga-ui-core-components-scrollbar.d.ts +1 -0
- package/components/svg/package.json +2 -5
- package/components/svg/svg.component.d.ts +3 -0
- package/components/svg/svg.module.d.ts +7 -0
- package/components/svg/taiga-ui-core-components-svg.d.ts +1 -0
- package/components/taiga-ui-core-components.d.ts +1 -0
- package/components/theme-night/package.json +2 -5
- package/components/theme-night/taiga-ui-core-components-theme-night.d.ts +1 -0
- package/components/theme-night/theme-night.component.d.ts +3 -0
- package/components/theme-night/theme-night.module.d.ts +5 -0
- package/components/tooltip/package.json +2 -5
- package/components/tooltip/taiga-ui-core-components-tooltip.d.ts +1 -0
- package/components/tooltip/tooltip.component.d.ts +5 -2
- package/components/tooltip/tooltip.module.d.ts +9 -0
- package/constants/described-by.d.ts +1 -0
- package/constants/index.d.ts +1 -1
- package/constants/package.json +2 -5
- package/constants/taiga-ui-core-constants.d.ts +1 -0
- package/constants/version.d.ts +1 -1
- package/directives/described-by/described-by.directive.d.ts +3 -1
- package/directives/described-by/described-by.module.d.ts +5 -0
- package/directives/described-by/package.json +2 -5
- package/directives/described-by/taiga-ui-core-directives-described-by.d.ts +1 -0
- package/directives/dropdown/dropdown.directive.d.ts +5 -2
- package/directives/dropdown/dropdown.module.d.ts +6 -0
- package/directives/dropdown/package.json +2 -5
- package/directives/dropdown/taiga-ui-core-directives-dropdown.d.ts +1 -0
- package/directives/dropdown-controller/dropdown-controller.directive.d.ts +7 -4
- package/directives/dropdown-controller/dropdown-controller.module.d.ts +5 -0
- package/directives/dropdown-controller/dropdown-controller.provider.d.ts +0 -2
- package/directives/dropdown-controller/package.json +2 -5
- package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.d.ts +1 -0
- package/directives/hint/hint-options.d.ts +0 -1
- package/directives/hint/hint.directive.d.ts +4 -1
- package/directives/hint/hint.module.d.ts +5 -0
- package/directives/hint/package.json +2 -5
- package/directives/hint/taiga-ui-core-directives-hint.d.ts +1 -0
- package/directives/hint-controller/hint-controller.directive.d.ts +6 -3
- package/directives/hint-controller/hint-controller.module.d.ts +5 -0
- package/directives/hint-controller/hint-controller.provider.d.ts +0 -2
- package/directives/hint-controller/package.json +2 -5
- package/directives/hint-controller/taiga-ui-core-directives-hint-controller.d.ts +1 -0
- package/directives/index.d.ts +0 -2
- package/directives/manual-hint/manual-hint.directive.d.ts +3 -0
- package/directives/manual-hint/manual-hint.module.d.ts +5 -0
- package/directives/manual-hint/package.json +2 -5
- package/directives/manual-hint/taiga-ui-core-directives-manual-hint.d.ts +1 -0
- package/directives/mask-accessor/mask-accessor.directive.d.ts +3 -0
- package/directives/mask-accessor/mask-accessor.module.d.ts +5 -0
- package/directives/mask-accessor/package.json +2 -5
- package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.d.ts +1 -0
- package/directives/mode/mode.directive.d.ts +5 -2
- package/directives/mode/mode.module.d.ts +5 -0
- package/directives/mode/package.json +2 -5
- package/directives/mode/taiga-ui-core-directives-mode.d.ts +1 -0
- package/directives/package.json +2 -5
- package/directives/pointer-hint/package.json +2 -5
- package/directives/pointer-hint/pointer-hint.directive.d.ts +4 -1
- package/directives/pointer-hint/pointer-hint.module.d.ts +5 -0
- package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.d.ts +1 -0
- package/directives/scroll-into-view/package.json +2 -5
- package/directives/scroll-into-view/scroll-into-view.directive.d.ts +4 -2
- package/directives/scroll-into-view/scroll-into-view.module.d.ts +5 -0
- package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.d.ts +1 -0
- package/directives/taiga-ui-core-directives.d.ts +1 -0
- package/directives/textfield-controller/index.d.ts +2 -0
- package/directives/textfield-controller/package.json +2 -5
- package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.d.ts +1 -0
- package/directives/textfield-controller/textfield-autocomplete.directive.d.ts +5 -2
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +5 -2
- package/directives/textfield-controller/textfield-controller.module.d.ts +15 -0
- package/directives/textfield-controller/textfield-controller.provider.d.ts +15 -1
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +6 -3
- package/directives/textfield-controller/textfield-example-text.directive.d.ts +5 -2
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +12 -0
- package/directives/textfield-controller/textfield-icon.directive.d.ts +12 -0
- package/directives/textfield-controller/textfield-input-mode.directive.d.ts +6 -3
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +5 -2
- package/directives/textfield-controller/textfield-max-length.directive.d.ts +5 -2
- package/directives/textfield-controller/textfield-size.directive.d.ts +5 -2
- package/directives/textfield-controller/textfield-type.directive.d.ts +6 -3
- package/directives/textfield-controller/textfield.controller.d.ts +10 -4
- package/directives/wrapper/package.json +2 -5
- package/directives/wrapper/taiga-ui-core-directives-wrapper.d.ts +1 -0
- package/directives/wrapper/wrapper.directive.d.ts +6 -3
- package/directives/wrapper/wrapper.module.d.ts +5 -0
- package/enums/index.d.ts +0 -8
- package/enums/interactive-state.d.ts +2 -2
- package/enums/package.json +2 -5
- package/enums/taiga-ui-core-enums.d.ts +1 -0
- package/esm2015/abstract/abstract-dropdown.js +39 -27
- package/esm2015/abstract/abstract-hint-options.js +2 -2
- package/esm2015/abstract/abstract-hint.js +20 -19
- package/esm2015/abstract/abstract-textfield-host.js +12 -12
- package/esm2015/abstract/index.js +1 -1
- package/esm2015/abstract/taiga-ui-core-abstract.js +1 -1
- package/esm2015/animations/animations.js +140 -140
- package/esm2015/animations/index.js +1 -1
- package/esm2015/animations/taiga-ui-core-animations.js +1 -1
- package/esm2015/components/alert/alert.component.js +53 -39
- package/esm2015/components/alert/alert.module.js +29 -27
- package/esm2015/components/alert/alert.service.js +16 -36
- package/esm2015/components/alert/index.js +1 -1
- package/esm2015/components/alert/taiga-ui-core-components-alert.js +1 -1
- package/esm2015/components/button/button-options.js +3 -3
- package/esm2015/components/button/button.component.js +93 -84
- package/esm2015/components/button/button.module.js +26 -13
- package/esm2015/components/button/index.js +1 -1
- package/esm2015/components/button/taiga-ui-core-components-button.js +1 -1
- package/esm2015/components/calendar/calendar.component.js +49 -33
- package/esm2015/components/calendar/calendar.module.js +28 -13
- package/esm2015/components/calendar/index.js +1 -1
- package/esm2015/components/calendar/taiga-ui-core-components-calendar.js +1 -1
- package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +25 -22
- package/esm2015/components/data-list/data-list.component.js +74 -57
- package/esm2015/components/data-list/data-list.directive.js +12 -10
- package/esm2015/components/data-list/data-list.module.js +35 -24
- package/esm2015/components/data-list/index.js +1 -1
- package/esm2015/components/data-list/opt-group.directive.js +21 -15
- package/esm2015/components/data-list/option/option.component.js +81 -56
- package/esm2015/components/data-list/taiga-ui-core-components-data-list.js +1 -1
- package/esm2015/components/dialog/dialog.component.js +55 -44
- package/esm2015/components/dialog/dialog.directive.js +25 -18
- package/esm2015/components/dialog/dialog.module.js +29 -20
- package/esm2015/components/dialog/dialog.providers.js +7 -7
- package/esm2015/components/dialog/dialog.service.js +14 -15
- package/esm2015/components/dialog/index.js +1 -1
- package/esm2015/components/dialog/taiga-ui-core-components-dialog.js +1 -1
- package/esm2015/components/dropdown-box/dropdown-box.component.js +107 -93
- package/esm2015/components/dropdown-box/dropdown-box.module.js +27 -14
- package/esm2015/components/dropdown-box/index.js +1 -1
- package/esm2015/components/dropdown-box/taiga-ui-core-components-dropdown-box.js +1 -1
- package/esm2015/components/error/error.component.js +36 -28
- package/esm2015/components/error/error.module.js +15 -12
- package/esm2015/components/error/index.js +1 -1
- package/esm2015/components/error/taiga-ui-core-components-error.js +1 -1
- package/esm2015/components/expand/expand-content.directive.js +12 -10
- package/esm2015/components/expand/expand.component.js +55 -46
- package/esm2015/components/expand/expand.module.js +15 -12
- package/esm2015/components/expand/index.js +1 -1
- package/esm2015/components/expand/taiga-ui-core-components-expand.js +1 -1
- package/esm2015/components/group/group-styles.component.js +14 -12
- package/esm2015/components/group/group.directive.js +54 -40
- package/esm2015/components/group/group.module.js +16 -14
- package/esm2015/components/group/index.js +1 -2
- package/esm2015/components/group/taiga-ui-core-components-group.js +1 -1
- package/esm2015/components/hints-host/hint-box/hint-box.component.js +111 -95
- package/esm2015/components/hints-host/hint-box/hint-box.module.js +16 -13
- package/esm2015/components/hints-host/hints-host.component.js +29 -24
- package/esm2015/components/hints-host/hints-host.module.js +15 -12
- package/esm2015/components/hints-host/index.js +1 -1
- package/esm2015/components/hints-host/taiga-ui-core-components-hints-host.js +1 -1
- package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +12 -10
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +86 -69
- package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +26 -13
- package/esm2015/components/hosted-dropdown/index.js +1 -1
- package/esm2015/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.js +1 -1
- package/esm2015/components/index.js +1 -1
- package/esm2015/components/label/index.js +1 -1
- package/esm2015/components/label/label.component.js +36 -29
- package/esm2015/components/label/label.module.js +15 -12
- package/esm2015/components/label/taiga-ui-core-components-label.js +1 -1
- package/esm2015/components/link/index.js +1 -1
- package/esm2015/components/link/link.component.js +79 -53
- package/esm2015/components/link/link.module.js +15 -12
- package/esm2015/components/link/taiga-ui-core-components-link.js +1 -1
- package/esm2015/components/loader/index.js +1 -1
- package/esm2015/components/loader/loader-options.js +3 -3
- package/esm2015/components/loader/loader.component.js +46 -35
- package/esm2015/components/loader/loader.module.js +15 -12
- package/esm2015/components/loader/taiga-ui-core-components-loader.js +1 -1
- package/esm2015/components/notification/index.js +1 -1
- package/esm2015/components/notification/notification.component.js +45 -34
- package/esm2015/components/notification/notification.module.js +15 -12
- package/esm2015/components/notification/taiga-ui-core-components-notification.js +1 -1
- package/esm2015/components/primitive-calendar/index.js +1 -1
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +46 -37
- package/esm2015/components/primitive-calendar/primitive-calendar.module.js +30 -15
- package/esm2015/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.js +1 -1
- package/esm2015/components/primitive-checkbox/checkbox-options.js +5 -5
- package/esm2015/components/primitive-checkbox/index.js +1 -1
- package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +40 -25
- package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +15 -12
- package/esm2015/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.js +1 -1
- package/esm2015/components/primitive-spin-button/index.js +1 -1
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +40 -33
- package/esm2015/components/primitive-spin-button/primitive-spin-button.module.js +28 -13
- package/esm2015/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.js +1 -1
- package/esm2015/components/primitive-textfield/index.js +1 -1
- package/esm2015/components/primitive-textfield/primitive-textfield-options.js +3 -6
- package/esm2015/components/primitive-textfield/primitive-textfield-types.js +2 -0
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +131 -123
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +27 -21
- package/esm2015/components/primitive-textfield/primitive-textfield.module.js +53 -24
- package/esm2015/components/primitive-textfield/primitive-textfield.providers.js +1 -1
- package/esm2015/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.js +1 -1
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +59 -48
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +41 -38
- package/esm2015/components/primitive-year-picker/index.js +1 -1
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +36 -27
- package/esm2015/components/primitive-year-picker/primitive-year-picker.module.js +26 -13
- package/esm2015/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.js +1 -1
- package/esm2015/components/root/index.js +1 -1
- package/esm2015/components/root/root.component.js +53 -39
- package/esm2015/components/root/root.module.js +34 -13
- package/esm2015/components/root/taiga-ui-core-components-root.js +1 -1
- package/esm2015/components/scroll-controls/index.js +1 -1
- package/esm2015/components/scroll-controls/scroll-controls.component.js +47 -36
- package/esm2015/components/scroll-controls/scroll-controls.module.js +21 -16
- package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +23 -16
- package/esm2015/components/scroll-controls/scrollbar.directive.js +71 -59
- package/esm2015/components/scroll-controls/taiga-ui-core-components-scroll-controls.js +1 -2
- package/esm2015/components/scrollbar/index.js +1 -1
- package/esm2015/components/scrollbar/scroll-ref.directive.js +24 -17
- package/esm2015/components/scrollbar/scrollable.directive.js +16 -15
- package/esm2015/components/scrollbar/scrollbar.component.js +56 -43
- package/esm2015/components/scrollbar/scrollbar.module.js +15 -12
- package/esm2015/components/scrollbar/taiga-ui-core-components-scrollbar.js +1 -1
- package/esm2015/components/svg/index.js +1 -1
- package/esm2015/components/svg/svg.component.js +78 -60
- package/esm2015/components/svg/svg.module.js +15 -12
- package/esm2015/components/svg/taiga-ui-core-components-svg.js +1 -1
- package/esm2015/components/taiga-ui-core-components.js +1 -1
- package/esm2015/components/theme-night/index.js +1 -1
- package/esm2015/components/theme-night/taiga-ui-core-components-theme-night.js +1 -1
- package/esm2015/components/theme-night/theme-night.component.js +15 -13
- package/esm2015/components/theme-night/theme-night.module.js +14 -11
- package/esm2015/components/tooltip/index.js +1 -1
- package/esm2015/components/tooltip/taiga-ui-core-components-tooltip.js +1 -1
- package/esm2015/components/tooltip/tooltip.component.js +57 -41
- package/esm2015/components/tooltip/tooltip.module.js +15 -12
- package/esm2015/constants/absolute-box-sizes.js +1 -1
- package/esm2015/constants/decimal-symbols.js +2 -2
- package/esm2015/constants/default-icons-path.js +2 -2
- package/esm2015/constants/default-marker-handler.js +1 -1
- package/esm2015/constants/described-by.js +2 -0
- package/esm2015/constants/editing-keys.js +10 -10
- package/esm2015/constants/events.js +5 -5
- package/esm2015/constants/index.js +2 -2
- package/esm2015/constants/mask-caret-trap.js +2 -2
- package/esm2015/constants/regexp.js +1 -1
- package/esm2015/constants/taiga-ui-core-constants.js +1 -1
- package/esm2015/constants/version.js +2 -2
- package/esm2015/directives/described-by/described-by.directive.js +29 -24
- package/esm2015/directives/described-by/described-by.module.js +14 -11
- package/esm2015/directives/described-by/described-by.providers.js +3 -3
- package/esm2015/directives/described-by/index.js +1 -1
- package/esm2015/directives/described-by/taiga-ui-core-directives-described-by.js +1 -1
- package/esm2015/directives/dropdown/dropdown.directive.js +51 -38
- package/esm2015/directives/dropdown/dropdown.module.js +15 -12
- package/esm2015/directives/dropdown/index.js +1 -1
- package/esm2015/directives/dropdown/taiga-ui-core-directives-dropdown.js +1 -1
- package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +44 -25
- package/esm2015/directives/dropdown-controller/dropdown-controller.module.js +14 -11
- package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +4 -6
- package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +2 -2
- package/esm2015/directives/dropdown-controller/index.js +1 -1
- package/esm2015/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.js +1 -1
- package/esm2015/directives/hint/hint-options.js +3 -5
- package/esm2015/directives/hint/hint.directive.js +71 -46
- package/esm2015/directives/hint/hint.module.js +14 -11
- package/esm2015/directives/hint/index.js +1 -1
- package/esm2015/directives/hint/taiga-ui-core-directives-hint.js +1 -1
- package/esm2015/directives/hint-controller/hint-controller.directive.js +44 -29
- package/esm2015/directives/hint-controller/hint-controller.module.js +14 -11
- package/esm2015/directives/hint-controller/hint-controller.provider.js +4 -6
- package/esm2015/directives/hint-controller/hint-controller.token.js +2 -2
- package/esm2015/directives/hint-controller/index.js +1 -1
- package/esm2015/directives/hint-controller/taiga-ui-core-directives-hint-controller.js +1 -1
- package/esm2015/directives/index.js +1 -3
- package/esm2015/directives/manual-hint/index.js +1 -1
- package/esm2015/directives/manual-hint/manual-hint-options.js +2 -2
- package/esm2015/directives/manual-hint/manual-hint.directive.js +35 -24
- package/esm2015/directives/manual-hint/manual-hint.module.js +14 -11
- package/esm2015/directives/manual-hint/taiga-ui-core-directives-manual-hint.js +1 -1
- package/esm2015/directives/mask-accessor/index.js +1 -1
- package/esm2015/directives/mask-accessor/mask-accessor.directive.js +27 -18
- package/esm2015/directives/mask-accessor/mask-accessor.module.js +14 -11
- package/esm2015/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.js +1 -1
- package/esm2015/directives/mode/index.js +1 -1
- package/esm2015/directives/mode/mode.directive.js +16 -14
- package/esm2015/directives/mode/mode.module.js +14 -11
- package/esm2015/directives/mode/taiga-ui-core-directives-mode.js +1 -1
- package/esm2015/directives/pointer-hint/index.js +1 -1
- package/esm2015/directives/pointer-hint/pointer-hint-options.js +2 -2
- package/esm2015/directives/pointer-hint/pointer-hint.directive.js +41 -31
- package/esm2015/directives/pointer-hint/pointer-hint.module.js +14 -11
- package/esm2015/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.js +1 -1
- package/esm2015/directives/scroll-into-view/index.js +1 -1
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +28 -27
- package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +14 -11
- package/esm2015/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.js +1 -1
- package/esm2015/directives/taiga-ui-core-directives.js +1 -1
- package/esm2015/directives/textfield-controller/index.js +3 -1
- package/esm2015/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.js +1 -1
- package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +29 -23
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +28 -22
- package/esm2015/directives/textfield-controller/textfield-controller.module.js +60 -31
- package/esm2015/directives/textfield-controller/textfield-controller.provider.js +6 -2
- package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +29 -24
- package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +29 -23
- package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +38 -0
- package/esm2015/directives/textfield-controller/textfield-icon.directive.js +38 -0
- package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +29 -23
- package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +28 -22
- package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +28 -22
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +29 -23
- package/esm2015/directives/textfield-controller/textfield-type.directive.js +29 -23
- package/esm2015/directives/textfield-controller/textfield.controller.js +11 -3
- package/esm2015/directives/wrapper/index.js +1 -1
- package/esm2015/directives/wrapper/taiga-ui-core-directives-wrapper.js +1 -1
- package/esm2015/directives/wrapper/wrapper.directive.js +63 -70
- package/esm2015/directives/wrapper/wrapper.module.js +14 -11
- package/esm2015/enums/appearance.js +1 -1
- package/esm2015/enums/dropdown-animation.js +1 -1
- package/esm2015/enums/index.js +1 -9
- package/esm2015/enums/interactive-state.js +3 -5
- package/esm2015/enums/notification.js +1 -1
- package/esm2015/enums/range-state.js +1 -1
- package/esm2015/enums/taiga-ui-core-enums.js +1 -1
- package/esm2015/index.js +4 -1
- package/esm2015/interfaces/alert-options.js +2 -1
- package/esm2015/interfaces/animation-options.js +2 -1
- package/esm2015/interfaces/data-list-accessor.js +2 -1
- package/esm2015/interfaces/data-list-host.js +2 -1
- package/esm2015/interfaces/dialog-context.js +2 -1
- package/esm2015/interfaces/dialog-options.js +2 -1
- package/esm2015/interfaces/dropdown-directive.js +2 -1
- package/esm2015/interfaces/hint.js +2 -1
- package/esm2015/interfaces/icon-error.js +2 -1
- package/esm2015/interfaces/index.js +15 -1
- package/esm2015/interfaces/media.js +2 -1
- package/esm2015/interfaces/number-format-settings.js +2 -1
- package/esm2015/interfaces/taiga-ui-core-interfaces.js +2 -1
- package/esm2015/interfaces/textfield-host.js +2 -1
- package/esm2015/interfaces/value-content-context.js +2 -1
- package/esm2015/interfaces/with-optional-min-max.js +2 -1
- package/esm2015/internal/index.js +1 -1
- package/esm2015/internal/primitive-year-month-pagination/index.js +1 -1
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +29 -20
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +26 -13
- package/esm2015/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
- package/esm2015/internal/svg-defs-host/index.js +1 -1
- package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +35 -27
- package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +15 -12
- package/esm2015/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.js +1 -1
- package/esm2015/internal/taiga-ui-core-internal.js +1 -1
- package/esm2015/mask/index.js +9 -1
- package/esm2015/mask/number-mask-options.js +2 -1
- package/esm2015/mask/taiga-ui-core-mask.js +2 -1
- package/esm2015/mask/text-mask-config.js +2 -1
- package/esm2015/mask/text-mask-correction-handler.js +2 -1
- package/esm2015/mask/text-mask-list-handler.js +2 -1
- package/esm2015/mask/text-mask-list.js +2 -1
- package/esm2015/mask/text-mask-options.js +2 -1
- package/esm2015/mask/text-mask-pipe-handler.js +2 -1
- package/esm2015/mask/text-mask-pipe-result.js +2 -1
- package/esm2015/observables/index.js +1 -1
- package/esm2015/observables/smart-search.js +3 -3
- package/esm2015/observables/taiga-ui-core-observables.js +1 -1
- package/esm2015/observables/zoneful-map.js +1 -1
- package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +14 -11
- package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +15 -14
- package/esm2015/pipes/calendar-sheet/index.js +1 -1
- package/esm2015/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.js +1 -1
- package/esm2015/pipes/calendar-sheet/utils.js +4 -4
- package/esm2015/pipes/format-number/format-number.module.js +14 -11
- package/esm2015/pipes/format-number/format-number.pipe.js +13 -12
- package/esm2015/pipes/format-number/index.js +1 -1
- package/esm2015/pipes/format-number/taiga-ui-core-pipes-format-number.js +1 -1
- package/esm2015/pipes/format-phone/format-phone.module.js +14 -11
- package/esm2015/pipes/format-phone/format-phone.pipe.js +12 -10
- package/esm2015/pipes/format-phone/index.js +1 -1
- package/esm2015/pipes/format-phone/taiga-ui-core-pipes-format-phone.js +1 -1
- package/esm2015/pipes/index.js +1 -2
- package/esm2015/pipes/month/index.js +1 -1
- package/esm2015/pipes/month/month.module.js +14 -11
- package/esm2015/pipes/month/month.pipe.js +14 -13
- package/esm2015/pipes/month/taiga-ui-core-pipes-month.js +1 -1
- package/esm2015/pipes/taiga-ui-core-pipes.js +1 -1
- package/esm2015/providers/index.js +1 -1
- package/esm2015/providers/is-mobile-resolution.provider.js +2 -2
- package/esm2015/providers/mode.provider.js +2 -2
- package/esm2015/providers/taiga-ui-core-providers.js +1 -1
- package/esm2015/providers/watched-controller-provider-factory.js +2 -7
- package/esm2015/services/hint.service.js +11 -11
- package/esm2015/services/index.js +1 -1
- package/esm2015/services/night-theme.service.js +16 -18
- package/esm2015/services/router-link-active.service.js +26 -19
- package/esm2015/services/svg.service.js +27 -26
- package/esm2015/services/taiga-ui-core-services.js +1 -1
- package/esm2015/taiga-ui-core.js +1 -1
- package/esm2015/tokens/animation-options.js +2 -2
- package/esm2015/tokens/animations-duration.js +2 -2
- package/esm2015/tokens/assert-enabled.js +2 -2
- package/esm2015/tokens/data-list-accessor.js +2 -2
- package/esm2015/tokens/data-list-host.js +2 -2
- package/esm2015/tokens/document-or-shadow-root.js +2 -2
- package/esm2015/tokens/dropdown-directive.js +2 -2
- package/esm2015/tokens/element-ref.js +2 -2
- package/esm2015/tokens/first-day-of-week.js +2 -2
- package/esm2015/tokens/i18n.js +11 -11
- package/esm2015/tokens/icon-place.js +3 -3
- package/esm2015/tokens/icons-path.js +2 -2
- package/esm2015/tokens/icons.js +2 -2
- package/esm2015/tokens/index.js +1 -1
- package/esm2015/tokens/is-mobile-resolution.js +3 -3
- package/esm2015/tokens/media.js +2 -2
- package/esm2015/tokens/mode.js +2 -2
- package/esm2015/tokens/notification-options.js +3 -3
- package/esm2015/tokens/number-format.js +3 -3
- package/esm2015/tokens/option-content.js +2 -2
- package/esm2015/tokens/ordered-short-week-days.js +2 -2
- package/esm2015/tokens/sanitizer.js +1 -1
- package/esm2015/tokens/scroll-ref.js +2 -2
- package/esm2015/tokens/svg-content-processor.js +3 -3
- package/esm2015/tokens/svg-src-processor.js +2 -2
- package/esm2015/tokens/taiga-ui-core-tokens.js +1 -1
- package/esm2015/tokens/textfield-appearance.js +2 -2
- package/esm2015/tokens/textfield-host.js +2 -2
- package/esm2015/tokens/theme.js +3 -3
- package/esm2015/tokens/value-accessor.js +2 -2
- package/esm2015/types/brightness.js +2 -1
- package/esm2015/types/data-list-role.js +2 -1
- package/esm2015/types/decimal-symbol.js +2 -1
- package/esm2015/types/decimal.js +2 -1
- package/esm2015/types/dialog-size.js +2 -1
- package/esm2015/types/direction.js +2 -1
- package/esm2015/types/dropdown-width.js +2 -1
- package/esm2015/types/hint-mode.js +2 -1
- package/esm2015/types/index.js +14 -1
- package/esm2015/types/marker-handler.js +2 -1
- package/esm2015/types/option-role.js +2 -1
- package/esm2015/types/orientation.js +2 -1
- package/esm2015/types/point.js +2 -1
- package/esm2015/types/size.js +2 -1
- package/esm2015/types/taiga-ui-core-types.js +2 -1
- package/esm2015/utils/dom/check-fixed-position.js +3 -3
- package/esm2015/utils/dom/get-safe-area-size.js +4 -4
- package/esm2015/utils/dom/get-screen-width.js +1 -1
- package/esm2015/utils/dom/get-viewport-height.js +1 -1
- package/esm2015/utils/dom/get-viewport-width.js +1 -1
- package/esm2015/utils/dom/index.js +1 -2
- package/esm2015/utils/dom/process-icon.js +11 -11
- package/esm2015/utils/dom/taiga-ui-core-utils-dom.js +1 -1
- package/esm2015/utils/format/capitalize-first-letter.js +1 -1
- package/esm2015/utils/format/capitalize.js +1 -1
- package/esm2015/utils/format/format-number.js +7 -7
- package/esm2015/utils/format/format-phone.js +9 -9
- package/esm2015/utils/format/get-fractional-part-padded.js +6 -8
- package/esm2015/utils/format/index.js +1 -3
- package/esm2015/utils/format/number-to-string-without-exp.js +3 -3
- package/esm2015/utils/format/other-decimal-symbol.js +2 -2
- package/esm2015/utils/format/taiga-ui-core-utils-format.js +1 -1
- package/esm2015/utils/index.js +1 -1
- package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +14 -14
- package/esm2015/utils/mask/create-correction-mask.js +3 -3
- package/esm2015/utils/mask/create-number-mask.js +13 -13
- package/esm2015/utils/mask/enable-auto-correct-decimal-symbol.js +1 -1
- package/esm2015/utils/mask/index.js +1 -1
- package/esm2015/utils/mask/masked-money-value-is-empty.js +3 -3
- package/esm2015/utils/mask/masked-number-string-to-number.js +2 -2
- package/esm2015/utils/mask/taiga-ui-core-utils-mask.js +1 -1
- package/esm2015/utils/miscellaneous/get-border.js +1 -1
- package/esm2015/utils/miscellaneous/icons-path-factory.js +3 -3
- package/esm2015/utils/miscellaneous/index.js +1 -2
- package/esm2015/utils/miscellaneous/is-editing-key.js +1 -1
- package/esm2015/utils/miscellaneous/is-presumed-html-string.js +2 -2
- package/esm2015/utils/miscellaneous/size-bigger.js +3 -3
- package/esm2015/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.js +1 -1
- package/esm2015/utils/mobile/index.js +1 -1
- package/esm2015/utils/mobile/is-mobile.js +1 -1
- package/esm2015/utils/mobile/taiga-ui-core-utils-mobile.js +1 -1
- package/esm2015/utils/polyfills/index.js +1 -1
- package/esm2015/utils/polyfills/inner-html.js +5 -5
- package/esm2015/utils/polyfills/taiga-ui-core-utils-polyfills.js +1 -1
- package/esm2015/utils/taiga-ui-core-utils.js +1 -1
- package/fesm2015/taiga-ui-core-abstract.js +65 -51
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-animations.js +138 -138
- package/fesm2015/taiga-ui-core-animations.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-alert.js +94 -92
- package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +120 -96
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-calendar.js +78 -45
- package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-data-list.js +232 -167
- package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +125 -93
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dropdown-box.js +131 -102
- package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-error.js +49 -36
- package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +78 -61
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-group.js +81 -74
- package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js +160 -133
- package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +121 -86
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-label.js +49 -37
- package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-link.js +93 -62
- package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +61 -45
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-notification.js +60 -44
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +74 -48
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +57 -37
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +67 -43
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +344 -289
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +60 -36
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +86 -49
- package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +173 -137
- package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js +105 -77
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +89 -66
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +26 -19
- package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +71 -50
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-components.js.map +1 -1
- package/fesm2015/taiga-ui-core-constants.js +20 -29
- package/fesm2015/taiga-ui-core-constants.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-described-by.js +45 -34
- package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +61 -39
- package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +63 -45
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint-controller.js +61 -43
- package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +86 -58
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-manual-hint.js +48 -32
- package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js +39 -25
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mode.js +28 -21
- package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-pointer-hint.js +54 -39
- package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +40 -34
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +374 -204
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-wrapper.js +75 -77
- package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives.js +0 -2
- package/fesm2015/taiga-ui-core-directives.js.map +1 -1
- package/fesm2015/taiga-ui-core-enums.js +3 -101
- package/fesm2015/taiga-ui-core-enums.js.map +1 -1
- package/fesm2015/taiga-ui-core-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +55 -31
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +47 -34
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal.js.map +1 -1
- package/fesm2015/taiga-ui-core-mask.js.map +1 -1
- package/fesm2015/taiga-ui-core-observables.js +2 -2
- package/fesm2015/taiga-ui-core-observables.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +30 -24
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-number.js +25 -19
- package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-phone.js +24 -17
- package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-month.js +26 -20
- package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes.js +0 -1
- package/fesm2015/taiga-ui-core-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-core-providers.js +4 -9
- package/fesm2015/taiga-ui-core-providers.js.map +1 -1
- package/fesm2015/taiga-ui-core-services.js +76 -60
- package/fesm2015/taiga-ui-core-services.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +42 -43
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-core-types.js +11 -0
- package/fesm2015/taiga-ui-core-types.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +16 -28
- package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-format.js +21 -60
- package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mask.js +30 -30
- package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js +6 -23
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mobile.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-polyfills.js +4 -4
- package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils.js.map +1 -1
- package/fesm2015/taiga-ui-core.js +3 -0
- package/fesm2015/taiga-ui-core.js.map +1 -1
- package/interfaces/dropdown-directive.d.ts +2 -2
- package/interfaces/hint.d.ts +2 -1
- package/interfaces/index.d.ts +0 -1
- package/interfaces/package.json +2 -5
- package/interfaces/taiga-ui-core-interfaces.d.ts +1 -0
- package/internal/package.json +2 -5
- package/internal/primitive-year-month-pagination/package.json +2 -5
- package/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.d.ts +3 -0
- package/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.d.ts +10 -0
- package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.d.ts +1 -0
- package/internal/svg-defs-host/package.json +2 -5
- package/internal/svg-defs-host/svg-defs-host.component.d.ts +3 -0
- package/internal/svg-defs-host/svg-defs-host.module.d.ts +7 -0
- package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.d.ts +1 -0
- package/internal/taiga-ui-core-internal.d.ts +1 -0
- package/mask/package.json +2 -5
- package/mask/taiga-ui-core-mask.d.ts +1 -0
- package/observables/package.json +2 -5
- package/observables/taiga-ui-core-observables.d.ts +1 -0
- package/package.json +11 -14
- package/pipes/calendar-sheet/calendar-sheet.module.d.ts +5 -0
- package/pipes/calendar-sheet/calendar-sheet.pipe.d.ts +3 -0
- package/pipes/calendar-sheet/package.json +2 -5
- package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.d.ts +1 -0
- package/pipes/format-number/format-number.module.d.ts +5 -0
- package/pipes/format-number/format-number.pipe.d.ts +3 -0
- package/pipes/format-number/package.json +2 -5
- package/pipes/format-number/taiga-ui-core-pipes-format-number.d.ts +1 -0
- package/pipes/format-phone/format-phone.module.d.ts +5 -0
- package/pipes/format-phone/format-phone.pipe.d.ts +3 -0
- package/pipes/format-phone/package.json +2 -5
- package/pipes/format-phone/taiga-ui-core-pipes-format-phone.d.ts +1 -0
- package/pipes/index.d.ts +0 -1
- package/pipes/month/month.module.d.ts +5 -0
- package/pipes/month/month.pipe.d.ts +4 -1
- package/pipes/month/package.json +2 -5
- package/pipes/month/taiga-ui-core-pipes-month.d.ts +1 -0
- package/pipes/package.json +2 -5
- package/pipes/taiga-ui-core-pipes.d.ts +1 -0
- package/providers/package.json +2 -5
- package/providers/taiga-ui-core-providers.d.ts +1 -0
- package/providers/watched-controller-provider-factory.d.ts +2 -6
- package/services/hint.service.d.ts +3 -0
- package/services/night-theme.service.d.ts +3 -0
- package/services/package.json +2 -5
- package/services/router-link-active.service.d.ts +3 -0
- package/services/svg.service.d.ts +3 -0
- package/services/taiga-ui-core-services.d.ts +1 -0
- package/styles/mixins/picker.less +6 -6
- package/styles/mixins/picker.scss +6 -6
- package/styles/mixins/wrapper.less +3 -3
- package/styles/mixins/wrapper.scss +3 -3
- package/styles/taiga-ui-fonts.less +1 -0
- package/styles/taiga-ui-theme.less +0 -1
- package/styles/theme/variables.less +5 -0
- package/styles/theme/wrapper/accent.less +0 -1
- package/styles/theme/wrapper/base.less +0 -1
- package/styles/theme/wrapper/icon.less +0 -1
- package/styles/theme/wrapper/none.less +0 -1
- package/styles/theme/wrapper/outline.less +0 -1
- package/styles/theme/wrapper/primary.less +0 -1
- package/styles/theme/wrapper/secondary.less +0 -3
- package/styles/theme/wrapper/table.less +0 -1
- package/styles/theme/wrapper/textfield.less +0 -3
- package/styles/theme/wrapper/whiteblock.less +0 -3
- package/taiga-ui-core.d.ts +1 -0
- package/tokens/notification-options.d.ts +0 -4
- package/tokens/package.json +2 -5
- package/tokens/taiga-ui-core-tokens.d.ts +1 -0
- package/types/decimal.d.ts +1 -1
- package/types/dropdown-width.d.ts +1 -1
- package/types/hint-mode.d.ts +1 -1
- package/types/index.d.ts +0 -2
- package/types/marker-handler.d.ts +1 -2
- package/types/orientation.d.ts +1 -1
- package/types/package.json +2 -5
- package/types/taiga-ui-core-types.d.ts +1 -0
- package/utils/dom/index.d.ts +0 -1
- package/utils/dom/package.json +2 -5
- package/utils/dom/taiga-ui-core-utils-dom.d.ts +1 -0
- package/utils/format/get-fractional-part-padded.d.ts +1 -3
- package/utils/format/index.d.ts +0 -2
- package/utils/format/package.json +2 -5
- package/utils/format/taiga-ui-core-utils-format.d.ts +1 -0
- package/utils/mask/package.json +2 -5
- package/utils/mask/taiga-ui-core-utils-mask.d.ts +1 -0
- package/utils/miscellaneous/index.d.ts +0 -1
- package/utils/miscellaneous/package.json +2 -5
- package/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.d.ts +1 -0
- package/utils/mobile/package.json +2 -5
- package/utils/mobile/taiga-ui-core-utils-mobile.d.ts +1 -0
- package/utils/package.json +2 -5
- package/utils/polyfills/package.json +2 -5
- package/utils/polyfills/taiga-ui-core-utils-polyfills.d.ts +1 -0
- package/utils/taiga-ui-core-utils.d.ts +1 -0
- package/abstract/taiga-ui-core-abstract.metadata.json +0 -1
- package/animations/taiga-ui-core-animations.metadata.json +0 -1
- package/bundles/taiga-ui-core-abstract.umd.min.js +0 -2
- package/bundles/taiga-ui-core-abstract.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-animations.umd.min.js +0 -2
- package/bundles/taiga-ui-core-animations.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-alert.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-alert.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-button.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-button.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-calendar.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-data-list.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-dialog.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-error.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-error.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-expand.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-expand.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-group.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-group.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-label.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-label.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-link.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-link.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-loader.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-loader.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-notification.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-notification.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-root.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-root.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-svg.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-svg.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-components.umd.min.js +0 -2
- package/bundles/taiga-ui-core-components.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-constants.umd.min.js +0 -2
- package/bundles/taiga-ui-core-constants.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-color.umd.js +0 -314
- package/bundles/taiga-ui-core-directives-color.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-color.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-color.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-described-by.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-hint.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-mode.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-table-mode.umd.js +0 -295
- package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-table-mode.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-directives.umd.min.js +0 -2
- package/bundles/taiga-ui-core-directives.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-enums.umd.min.js +0 -2
- package/bundles/taiga-ui-core-enums.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-interfaces.umd.min.js +0 -2
- package/bundles/taiga-ui-core-interfaces.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js +0 -2
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js +0 -2
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-internal.umd.min.js +0 -2
- package/bundles/taiga-ui-core-internal.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-mask.umd.min.js +0 -2
- package/bundles/taiga-ui-core-mask.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-observables.umd.min.js +0 -2
- package/bundles/taiga-ui-core-observables.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js +0 -2
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.min.js +0 -2
- package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js +0 -2
- package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-month.umd.min.js +0 -2
- package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-pluralize.umd.js +0 -296
- package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +0 -1
- package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js +0 -2
- package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-pipes.umd.min.js +0 -2
- package/bundles/taiga-ui-core-pipes.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-providers.umd.min.js +0 -2
- package/bundles/taiga-ui-core-providers.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-services.umd.min.js +0 -2
- package/bundles/taiga-ui-core-services.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-tokens.umd.min.js +0 -2
- package/bundles/taiga-ui-core-tokens.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-types.umd.min.js +0 -2
- package/bundles/taiga-ui-core-types.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils-dom.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils-format.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils-format.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils-mask.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils-mobile.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils-mobile.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils-polyfills.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core-utils.umd.min.js +0 -2
- package/bundles/taiga-ui-core-utils.umd.min.js.map +0 -1
- package/bundles/taiga-ui-core.umd.min.js +0 -2
- package/bundles/taiga-ui-core.umd.min.js.map +0 -1
- package/components/alert/taiga-ui-core-components-alert.metadata.json +0 -1
- package/components/button/taiga-ui-core-components-button.metadata.json +0 -1
- package/components/calendar/taiga-ui-core-components-calendar.metadata.json +0 -1
- package/components/data-list/taiga-ui-core-components-data-list.metadata.json +0 -1
- package/components/dialog/taiga-ui-core-components-dialog.metadata.json +0 -1
- package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +0 -1
- package/components/error/taiga-ui-core-components-error.metadata.json +0 -1
- package/components/expand/taiga-ui-core-components-expand.metadata.json +0 -1
- package/components/group/group.component.d.ts +0 -4
- package/components/group/taiga-ui-core-components-group.metadata.json +0 -1
- package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +0 -1
- package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +0 -1
- package/components/label/taiga-ui-core-components-label.metadata.json +0 -1
- package/components/link/taiga-ui-core-components-link.metadata.json +0 -1
- package/components/loader/taiga-ui-core-components-loader.metadata.json +0 -1
- package/components/notification/taiga-ui-core-components-notification.metadata.json +0 -1
- package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +0 -1
- package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +0 -1
- package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +0 -1
- package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +0 -1
- package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +0 -1
- package/components/root/taiga-ui-core-components-root.metadata.json +0 -1
- package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +0 -1
- package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +0 -1
- package/components/svg/taiga-ui-core-components-svg.metadata.json +0 -1
- package/components/taiga-ui-core-components.metadata.json +0 -1
- package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +0 -1
- package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +0 -1
- package/constants/media.d.ts +0 -10
- package/constants/taiga-ui-core-constants.metadata.json +0 -1
- package/directives/color/color.const.d.ts +0 -4
- package/directives/color/color.directive.d.ts +0 -10
- package/directives/color/color.module.d.ts +0 -5
- package/directives/color/index.d.ts +0 -3
- package/directives/color/package.json +0 -13
- package/directives/color/taiga-ui-core-directives-color.d.ts +0 -4
- package/directives/color/taiga-ui-core-directives-color.metadata.json +0 -1
- package/directives/described-by/taiga-ui-core-directives-described-by.metadata.json +0 -1
- package/directives/dropdown/taiga-ui-core-directives-dropdown.metadata.json +0 -1
- package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +0 -1
- package/directives/hint/taiga-ui-core-directives-hint.metadata.json +0 -1
- package/directives/hint-controller/taiga-ui-core-directives-hint-controller.metadata.json +0 -1
- package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +0 -1
- package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.metadata.json +0 -1
- package/directives/mode/taiga-ui-core-directives-mode.metadata.json +0 -1
- package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.metadata.json +0 -1
- package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.metadata.json +0 -1
- package/directives/table-mode/index.d.ts +0 -2
- package/directives/table-mode/package.json +0 -13
- package/directives/table-mode/table-mode.directive.d.ts +0 -5
- package/directives/table-mode/table-mode.module.d.ts +0 -3
- package/directives/table-mode/taiga-ui-core-directives-table-mode.d.ts +0 -4
- package/directives/table-mode/taiga-ui-core-directives-table-mode.metadata.json +0 -1
- package/directives/taiga-ui-core-directives.metadata.json +0 -1
- package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +0 -1
- package/directives/wrapper/taiga-ui-core-directives-wrapper.metadata.json +0 -1
- package/enums/base-color.d.ts +0 -9
- package/enums/button-shape.d.ts +0 -7
- package/enums/decimal.d.ts +0 -8
- package/enums/dropdown-width.d.ts +0 -8
- package/enums/hint-mode.d.ts +0 -8
- package/enums/link-mode.d.ts +0 -7
- package/enums/orientation.d.ts +0 -7
- package/enums/support-color.d.ts +0 -26
- package/enums/taiga-ui-core-enums.metadata.json +0 -1
- package/esm2015/components/group/group.component.js +0 -19
- package/esm2015/constants/media.js +0 -11
- package/esm2015/directives/color/color.const.js +0 -318
- package/esm2015/directives/color/color.directive.js +0 -35
- package/esm2015/directives/color/color.module.js +0 -16
- package/esm2015/directives/color/index.js +0 -4
- package/esm2015/directives/color/taiga-ui-core-directives-color.js +0 -5
- package/esm2015/directives/table-mode/index.js +0 -3
- package/esm2015/directives/table-mode/table-mode.directive.js +0 -21
- package/esm2015/directives/table-mode/table-mode.module.js +0 -14
- package/esm2015/directives/table-mode/taiga-ui-core-directives-table-mode.js +0 -5
- package/esm2015/enums/base-color.js +0 -11
- package/esm2015/enums/button-shape.js +0 -9
- package/esm2015/enums/decimal.js +0 -10
- package/esm2015/enums/dropdown-width.js +0 -10
- package/esm2015/enums/hint-mode.js +0 -10
- package/esm2015/enums/link-mode.js +0 -9
- package/esm2015/enums/orientation.js +0 -9
- package/esm2015/enums/support-color.js +0 -28
- package/esm2015/interfaces/notification-options.js +0 -1
- package/esm2015/pipes/pluralize/index.js +0 -3
- package/esm2015/pipes/pluralize/pluralize.module.js +0 -14
- package/esm2015/pipes/pluralize/pluralize.pipe.js +0 -22
- package/esm2015/pipes/pluralize/taiga-ui-core-pipes-pluralize.js +0 -5
- package/esm2015/types/color.js +0 -1
- package/esm2015/types/pluralize.js +0 -1
- package/esm2015/utils/dom/are-css-vars-supported.js +0 -11
- package/esm2015/utils/format/pluralize-to-icu.js +0 -13
- package/esm2015/utils/format/pluralize.js +0 -23
- package/esm2015/utils/miscellaneous/color-fallback.js +0 -17
- package/esm5/abstract/abstract-dropdown.js +0 -130
- package/esm5/abstract/abstract-hint-options.js +0 -6
- package/esm5/abstract/abstract-hint.js +0 -44
- package/esm5/abstract/abstract-textfield-host.js +0 -55
- package/esm5/abstract/index.js +0 -5
- package/esm5/abstract/taiga-ui-core-abstract.js +0 -5
- package/esm5/animations/animations.js +0 -251
- package/esm5/animations/index.js +0 -2
- package/esm5/animations/taiga-ui-core-animations.js +0 -5
- package/esm5/components/alert/alert.component.js +0 -98
- package/esm5/components/alert/alert.module.js +0 -40
- package/esm5/components/alert/alert.service.js +0 -52
- package/esm5/components/alert/index.js +0 -4
- package/esm5/components/alert/taiga-ui-core-components-alert.js +0 -5
- package/esm5/components/button/button-options.js +0 -15
- package/esm5/components/button/button.component.js +0 -156
- package/esm5/components/button/button.module.js +0 -28
- package/esm5/components/button/index.js +0 -4
- package/esm5/components/button/taiga-ui-core-components-button.js +0 -5
- package/esm5/components/calendar/calendar.component.js +0 -135
- package/esm5/components/calendar/calendar.module.js +0 -30
- package/esm5/components/calendar/index.js +0 -3
- package/esm5/components/calendar/taiga-ui-core-components-calendar.js +0 -5
- package/esm5/components/data-list/data-list-dropdown-manager.directive.js +0 -142
- package/esm5/components/data-list/data-list.component.js +0 -128
- package/esm5/components/data-list/data-list.directive.js +0 -14
- package/esm5/components/data-list/data-list.module.js +0 -36
- package/esm5/components/data-list/index.js +0 -7
- package/esm5/components/data-list/opt-group.directive.js +0 -24
- package/esm5/components/data-list/option/option.component.js +0 -107
- package/esm5/components/data-list/taiga-ui-core-components-data-list.js +0 -5
- package/esm5/components/dialog/dialog.component.js +0 -102
- package/esm5/components/dialog/dialog.directive.js +0 -26
- package/esm5/components/dialog/dialog.module.js +0 -31
- package/esm5/components/dialog/dialog.providers.js +0 -59
- package/esm5/components/dialog/dialog.service.js +0 -34
- package/esm5/components/dialog/index.js +0 -6
- package/esm5/components/dialog/taiga-ui-core-components-dialog.js +0 -5
- package/esm5/components/dropdown-box/dropdown-box.component.js +0 -313
- package/esm5/components/dropdown-box/dropdown-box.module.js +0 -28
- package/esm5/components/dropdown-box/index.js +0 -3
- package/esm5/components/dropdown-box/taiga-ui-core-components-dropdown-box.js +0 -5
- package/esm5/components/error/error.component.js +0 -48
- package/esm5/components/error/error.module.js +0 -19
- package/esm5/components/error/index.js +0 -3
- package/esm5/components/error/taiga-ui-core-components-error.js +0 -5
- package/esm5/components/expand/expand-content.directive.js +0 -15
- package/esm5/components/expand/expand.component.js +0 -153
- package/esm5/components/expand/expand.module.js +0 -20
- package/esm5/components/expand/index.js +0 -4
- package/esm5/components/expand/taiga-ui-core-components-expand.js +0 -5
- package/esm5/components/group/group-styles.component.js +0 -16
- package/esm5/components/group/group.component.js +0 -24
- package/esm5/components/group/group.directive.js +0 -83
- package/esm5/components/group/group.module.js +0 -21
- package/esm5/components/group/index.js +0 -5
- package/esm5/components/group/taiga-ui-core-components-group.js +0 -5
- package/esm5/components/hints-host/hint-box/hint-box.component.js +0 -279
- package/esm5/components/hints-host/hint-box/hint-box.module.js +0 -21
- package/esm5/components/hints-host/hints-host.component.js +0 -42
- package/esm5/components/hints-host/hints-host.module.js +0 -21
- package/esm5/components/hints-host/index.js +0 -5
- package/esm5/components/hints-host/taiga-ui-core-components-hints-host.js +0 -5
- package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +0 -14
- package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +0 -230
- package/esm5/components/hosted-dropdown/hosted-dropdown.module.js +0 -28
- package/esm5/components/hosted-dropdown/index.js +0 -4
- package/esm5/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.js +0 -5
- package/esm5/components/index.js +0 -27
- package/esm5/components/label/index.js +0 -3
- package/esm5/components/label/label.component.js +0 -48
- package/esm5/components/label/label.module.js +0 -18
- package/esm5/components/label/taiga-ui-core-components-label.js +0 -5
- package/esm5/components/link/index.js +0 -3
- package/esm5/components/link/link.component.js +0 -121
- package/esm5/components/link/link.module.js +0 -19
- package/esm5/components/link/taiga-ui-core-components-link.js +0 -5
- package/esm5/components/loader/index.js +0 -4
- package/esm5/components/loader/loader-options.js +0 -16
- package/esm5/components/loader/loader.component.js +0 -105
- package/esm5/components/loader/loader.module.js +0 -19
- package/esm5/components/loader/taiga-ui-core-components-loader.js +0 -5
- package/esm5/components/notification/index.js +0 -3
- package/esm5/components/notification/notification.component.js +0 -68
- package/esm5/components/notification/notification.module.js +0 -20
- package/esm5/components/notification/taiga-ui-core-components-notification.js +0 -5
- package/esm5/components/primitive-calendar/index.js +0 -3
- package/esm5/components/primitive-calendar/primitive-calendar.component.js +0 -165
- package/esm5/components/primitive-calendar/primitive-calendar.module.js +0 -30
- package/esm5/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.js +0 -5
- package/esm5/components/primitive-checkbox/checkbox-options.js +0 -29
- package/esm5/components/primitive-checkbox/index.js +0 -4
- package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +0 -99
- package/esm5/components/primitive-checkbox/primitive-checkbox.module.js +0 -20
- package/esm5/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.js +0 -5
- package/esm5/components/primitive-spin-button/index.js +0 -3
- package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +0 -97
- package/esm5/components/primitive-spin-button/primitive-spin-button.module.js +0 -27
- package/esm5/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.js +0 -5
- package/esm5/components/primitive-textfield/index.js +0 -8
- package/esm5/components/primitive-textfield/primitive-textfield-options.js +0 -17
- package/esm5/components/primitive-textfield/primitive-textfield.component.js +0 -370
- package/esm5/components/primitive-textfield/primitive-textfield.directive.js +0 -49
- package/esm5/components/primitive-textfield/primitive-textfield.module.js +0 -51
- package/esm5/components/primitive-textfield/primitive-textfield.providers.js +0 -16
- package/esm5/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.js +0 -5
- package/esm5/components/primitive-textfield/textfield/textfield.component.js +0 -77
- package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +0 -123
- package/esm5/components/primitive-year-picker/index.js +0 -3
- package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +0 -174
- package/esm5/components/primitive-year-picker/primitive-year-picker.module.js +0 -25
- package/esm5/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.js +0 -5
- package/esm5/components/root/index.js +0 -3
- package/esm5/components/root/root.component.js +0 -63
- package/esm5/components/root/root.module.js +0 -33
- package/esm5/components/root/taiga-ui-core-components-root.js +0 -5
- package/esm5/components/scroll-controls/index.js +0 -4
- package/esm5/components/scroll-controls/scroll-controls.component.js +0 -68
- package/esm5/components/scroll-controls/scroll-controls.module.js +0 -25
- package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +0 -21
- package/esm5/components/scroll-controls/scrollbar.directive.js +0 -171
- package/esm5/components/scroll-controls/taiga-ui-core-components-scroll-controls.js +0 -6
- package/esm5/components/scrollbar/index.js +0 -5
- package/esm5/components/scrollbar/scroll-ref.directive.js +0 -22
- package/esm5/components/scrollbar/scrollable.directive.js +0 -26
- package/esm5/components/scrollbar/scrollbar.component.js +0 -97
- package/esm5/components/scrollbar/scrollbar.module.js +0 -21
- package/esm5/components/scrollbar/taiga-ui-core-components-scrollbar.js +0 -5
- package/esm5/components/svg/index.js +0 -3
- package/esm5/components/svg/svg.component.js +0 -207
- package/esm5/components/svg/svg.module.js +0 -19
- package/esm5/components/svg/taiga-ui-core-components-svg.js +0 -5
- package/esm5/components/taiga-ui-core-components.js +0 -5
- package/esm5/components/theme-night/index.js +0 -3
- package/esm5/components/theme-night/taiga-ui-core-components-theme-night.js +0 -5
- package/esm5/components/theme-night/theme-night.component.js +0 -21
- package/esm5/components/theme-night/theme-night.module.js +0 -16
- package/esm5/components/tooltip/index.js +0 -3
- package/esm5/components/tooltip/taiga-ui-core-components-tooltip.js +0 -5
- package/esm5/components/tooltip/tooltip.component.js +0 -99
- package/esm5/components/tooltip/tooltip.module.js +0 -21
- package/esm5/constants/absolute-box-sizes.js +0 -5
- package/esm5/constants/decimal-symbols.js +0 -2
- package/esm5/constants/default-icons-path.js +0 -4
- package/esm5/constants/default-marker-handler.js +0 -3
- package/esm5/constants/editing-keys.js +0 -12
- package/esm5/constants/events.js +0 -19
- package/esm5/constants/index.js +0 -11
- package/esm5/constants/mask-caret-trap.js +0 -2
- package/esm5/constants/media.js +0 -11
- package/esm5/constants/regexp.js +0 -9
- package/esm5/constants/taiga-ui-core-constants.js +0 -5
- package/esm5/constants/version.js +0 -2
- package/esm5/directives/color/color.const.js +0 -5
- package/esm5/directives/color/color.directive.js +0 -36
- package/esm5/directives/color/color.module.js +0 -19
- package/esm5/directives/color/index.js +0 -4
- package/esm5/directives/color/taiga-ui-core-directives-color.js +0 -5
- package/esm5/directives/described-by/described-by.directive.js +0 -56
- package/esm5/directives/described-by/described-by.module.js +0 -16
- package/esm5/directives/described-by/described-by.providers.js +0 -26
- package/esm5/directives/described-by/index.js +0 -4
- package/esm5/directives/described-by/taiga-ui-core-directives-described-by.js +0 -5
- package/esm5/directives/dropdown/dropdown.directive.js +0 -55
- package/esm5/directives/dropdown/dropdown.module.js +0 -18
- package/esm5/directives/dropdown/index.js +0 -3
- package/esm5/directives/dropdown/taiga-ui-core-directives-dropdown.js +0 -5
- package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +0 -58
- package/esm5/directives/dropdown-controller/dropdown-controller.module.js +0 -16
- package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +0 -16
- package/esm5/directives/dropdown-controller/dropdown-controller.token.js +0 -6
- package/esm5/directives/dropdown-controller/index.js +0 -5
- package/esm5/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.js +0 -5
- package/esm5/directives/hint/hint-options.js +0 -15
- package/esm5/directives/hint/hint.directive.js +0 -145
- package/esm5/directives/hint/hint.module.js +0 -16
- package/esm5/directives/hint/index.js +0 -4
- package/esm5/directives/hint/taiga-ui-core-directives-hint.js +0 -5
- package/esm5/directives/hint-controller/hint-controller.directive.js +0 -60
- package/esm5/directives/hint-controller/hint-controller.module.js +0 -16
- package/esm5/directives/hint-controller/hint-controller.provider.js +0 -16
- package/esm5/directives/hint-controller/hint-controller.token.js +0 -7
- package/esm5/directives/hint-controller/index.js +0 -5
- package/esm5/directives/hint-controller/taiga-ui-core-directives-hint-controller.js +0 -5
- package/esm5/directives/index.js +0 -15
- package/esm5/directives/manual-hint/index.js +0 -4
- package/esm5/directives/manual-hint/manual-hint-options.js +0 -13
- package/esm5/directives/manual-hint/manual-hint.directive.js +0 -57
- package/esm5/directives/manual-hint/manual-hint.module.js +0 -16
- package/esm5/directives/manual-hint/taiga-ui-core-directives-manual-hint.js +0 -5
- package/esm5/directives/mask-accessor/index.js +0 -3
- package/esm5/directives/mask-accessor/mask-accessor.directive.js +0 -28
- package/esm5/directives/mask-accessor/mask-accessor.module.js +0 -19
- package/esm5/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.js +0 -5
- package/esm5/directives/mode/index.js +0 -3
- package/esm5/directives/mode/mode.directive.js +0 -22
- package/esm5/directives/mode/mode.module.js +0 -16
- package/esm5/directives/mode/taiga-ui-core-directives-mode.js +0 -5
- package/esm5/directives/pointer-hint/index.js +0 -4
- package/esm5/directives/pointer-hint/pointer-hint-options.js +0 -13
- package/esm5/directives/pointer-hint/pointer-hint.directive.js +0 -109
- package/esm5/directives/pointer-hint/pointer-hint.module.js +0 -16
- package/esm5/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.js +0 -5
- package/esm5/directives/scroll-into-view/index.js +0 -3
- package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +0 -59
- package/esm5/directives/scroll-into-view/scroll-into-view.module.js +0 -16
- package/esm5/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.js +0 -5
- package/esm5/directives/table-mode/index.js +0 -3
- package/esm5/directives/table-mode/table-mode.directive.js +0 -24
- package/esm5/directives/table-mode/table-mode.module.js +0 -17
- package/esm5/directives/table-mode/taiga-ui-core-directives-table-mode.js +0 -5
- package/esm5/directives/taiga-ui-core-directives.js +0 -5
- package/esm5/directives/textfield-controller/index.js +0 -13
- package/esm5/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.js +0 -5
- package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-controller.module.js +0 -44
- package/esm5/directives/textfield-controller/textfield-controller.provider.js +0 -54
- package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +0 -38
- package/esm5/directives/textfield-controller/textfield-example-text.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-max-length.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-size.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield-type.directive.js +0 -37
- package/esm5/directives/textfield-controller/textfield.controller.js +0 -80
- package/esm5/directives/wrapper/index.js +0 -3
- package/esm5/directives/wrapper/taiga-ui-core-directives-wrapper.js +0 -5
- package/esm5/directives/wrapper/wrapper.directive.js +0 -120
- package/esm5/directives/wrapper/wrapper.module.js +0 -16
- package/esm5/enums/appearance.js +0 -14
- package/esm5/enums/base-color.js +0 -11
- package/esm5/enums/button-shape.js +0 -9
- package/esm5/enums/decimal.js +0 -10
- package/esm5/enums/dropdown-animation.js +0 -6
- package/esm5/enums/dropdown-width.js +0 -10
- package/esm5/enums/hint-mode.js +0 -10
- package/esm5/enums/index.js +0 -14
- package/esm5/enums/interactive-state.js +0 -13
- package/esm5/enums/link-mode.js +0 -9
- package/esm5/enums/notification.js +0 -8
- package/esm5/enums/orientation.js +0 -9
- package/esm5/enums/range-state.js +0 -10
- package/esm5/enums/support-color.js +0 -28
- package/esm5/enums/taiga-ui-core-enums.js +0 -5
- package/esm5/index.js +0 -14
- package/esm5/interfaces/alert-options.js +0 -1
- package/esm5/interfaces/animation-options.js +0 -1
- package/esm5/interfaces/data-list-accessor.js +0 -1
- package/esm5/interfaces/data-list-host.js +0 -1
- package/esm5/interfaces/dialog-context.js +0 -1
- package/esm5/interfaces/dialog-options.js +0 -1
- package/esm5/interfaces/dropdown-directive.js +0 -1
- package/esm5/interfaces/hint.js +0 -1
- package/esm5/interfaces/icon-error.js +0 -1
- package/esm5/interfaces/index.js +0 -1
- package/esm5/interfaces/media.js +0 -1
- package/esm5/interfaces/notification-options.js +0 -1
- package/esm5/interfaces/number-format-settings.js +0 -1
- package/esm5/interfaces/taiga-ui-core-interfaces.js +0 -4
- package/esm5/interfaces/textfield-host.js +0 -1
- package/esm5/interfaces/value-content-context.js +0 -1
- package/esm5/interfaces/with-optional-min-max.js +0 -1
- package/esm5/internal/index.js +0 -3
- package/esm5/internal/primitive-year-month-pagination/index.js +0 -3
- package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +0 -89
- package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +0 -28
- package/esm5/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.js +0 -5
- package/esm5/internal/svg-defs-host/index.js +0 -3
- package/esm5/internal/svg-defs-host/svg-defs-host.component.js +0 -50
- package/esm5/internal/svg-defs-host/svg-defs-host.module.js +0 -19
- package/esm5/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.js +0 -5
- package/esm5/internal/taiga-ui-core-internal.js +0 -5
- package/esm5/mask/index.js +0 -1
- package/esm5/mask/number-mask-options.js +0 -1
- package/esm5/mask/taiga-ui-core-mask.js +0 -4
- package/esm5/mask/text-mask-config.js +0 -1
- package/esm5/mask/text-mask-correction-handler.js +0 -1
- package/esm5/mask/text-mask-list-handler.js +0 -1
- package/esm5/mask/text-mask-list.js +0 -1
- package/esm5/mask/text-mask-options.js +0 -1
- package/esm5/mask/text-mask-pipe-handler.js +0 -1
- package/esm5/mask/text-mask-pipe-result.js +0 -1
- package/esm5/observables/index.js +0 -3
- package/esm5/observables/smart-search.js +0 -18
- package/esm5/observables/taiga-ui-core-observables.js +0 -5
- package/esm5/observables/zoneful-map.js +0 -14
- package/esm5/pipes/calendar-sheet/calendar-sheet.module.js +0 -16
- package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +0 -63
- package/esm5/pipes/calendar-sheet/index.js +0 -3
- package/esm5/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.js +0 -5
- package/esm5/pipes/calendar-sheet/utils.js +0 -44
- package/esm5/pipes/format-number/format-number.module.js +0 -16
- package/esm5/pipes/format-number/format-number.pipe.js +0 -35
- package/esm5/pipes/format-number/index.js +0 -3
- package/esm5/pipes/format-number/taiga-ui-core-pipes-format-number.js +0 -5
- package/esm5/pipes/format-phone/format-phone.module.js +0 -16
- package/esm5/pipes/format-phone/format-phone.pipe.js +0 -27
- package/esm5/pipes/format-phone/index.js +0 -3
- package/esm5/pipes/format-phone/taiga-ui-core-pipes-format-phone.js +0 -5
- package/esm5/pipes/index.js +0 -6
- package/esm5/pipes/month/index.js +0 -3
- package/esm5/pipes/month/month.module.js +0 -16
- package/esm5/pipes/month/month.pipe.js +0 -25
- package/esm5/pipes/month/taiga-ui-core-pipes-month.js +0 -5
- package/esm5/pipes/pluralize/index.js +0 -3
- package/esm5/pipes/pluralize/pluralize.module.js +0 -17
- package/esm5/pipes/pluralize/pluralize.pipe.js +0 -25
- package/esm5/pipes/pluralize/taiga-ui-core-pipes-pluralize.js +0 -5
- package/esm5/pipes/taiga-ui-core-pipes.js +0 -5
- package/esm5/providers/index.js +0 -4
- package/esm5/providers/is-mobile-resolution.provider.js +0 -18
- package/esm5/providers/mode.provider.js +0 -24
- package/esm5/providers/taiga-ui-core-providers.js +0 -5
- package/esm5/providers/watched-controller-provider-factory.js +0 -12
- package/esm5/services/hint.service.js +0 -60
- package/esm5/services/index.js +0 -5
- package/esm5/services/night-theme.service.js +0 -31
- package/esm5/services/router-link-active.service.js +0 -35
- package/esm5/services/svg.service.js +0 -73
- package/esm5/services/taiga-ui-core-services.js +0 -5
- package/esm5/taiga-ui-core.js +0 -5
- package/esm5/tokens/animation-options.js +0 -10
- package/esm5/tokens/animations-duration.js +0 -5
- package/esm5/tokens/assert-enabled.js +0 -5
- package/esm5/tokens/data-list-accessor.js +0 -3
- package/esm5/tokens/data-list-host.js +0 -3
- package/esm5/tokens/document-or-shadow-root.js +0 -3
- package/esm5/tokens/dropdown-directive.js +0 -3
- package/esm5/tokens/element-ref.js +0 -3
- package/esm5/tokens/first-day-of-week.js +0 -5
- package/esm5/tokens/i18n.js +0 -21
- package/esm5/tokens/icon-place.js +0 -5
- package/esm5/tokens/icons-path.js +0 -5
- package/esm5/tokens/icons.js +0 -5
- package/esm5/tokens/index.js +0 -29
- package/esm5/tokens/is-mobile-resolution.js +0 -14
- package/esm5/tokens/media.js +0 -9
- package/esm5/tokens/mode.js +0 -3
- package/esm5/tokens/notification-options.js +0 -21
- package/esm5/tokens/number-format.js +0 -10
- package/esm5/tokens/option-content.js +0 -3
- package/esm5/tokens/ordered-short-week-days.js +0 -20
- package/esm5/tokens/sanitizer.js +0 -3
- package/esm5/tokens/scroll-ref.js +0 -3
- package/esm5/tokens/svg-content-processor.js +0 -4
- package/esm5/tokens/svg-src-processor.js +0 -6
- package/esm5/tokens/taiga-ui-core-tokens.js +0 -5
- package/esm5/tokens/textfield-appearance.js +0 -5
- package/esm5/tokens/textfield-host.js +0 -3
- package/esm5/tokens/theme.js +0 -5
- package/esm5/tokens/value-accessor.js +0 -3
- package/esm5/types/brightness.js +0 -1
- package/esm5/types/color.js +0 -1
- package/esm5/types/data-list-role.js +0 -1
- package/esm5/types/decimal-symbol.js +0 -1
- package/esm5/types/decimal.js +0 -1
- package/esm5/types/dialog-size.js +0 -1
- package/esm5/types/direction.js +0 -1
- package/esm5/types/dropdown-width.js +0 -1
- package/esm5/types/hint-mode.js +0 -1
- package/esm5/types/index.js +0 -1
- package/esm5/types/marker-handler.js +0 -1
- package/esm5/types/option-role.js +0 -1
- package/esm5/types/orientation.js +0 -1
- package/esm5/types/pluralize.js +0 -1
- package/esm5/types/point.js +0 -1
- package/esm5/types/size.js +0 -11
- package/esm5/types/taiga-ui-core-types.js +0 -4
- package/esm5/utils/dom/are-css-vars-supported.js +0 -11
- package/esm5/utils/dom/check-fixed-position.js +0 -14
- package/esm5/utils/dom/get-safe-area-size.js +0 -20
- package/esm5/utils/dom/get-screen-width.js +0 -9
- package/esm5/utils/dom/get-viewport-height.js +0 -22
- package/esm5/utils/dom/get-viewport-width.js +0 -22
- package/esm5/utils/dom/index.js +0 -8
- package/esm5/utils/dom/process-icon.js +0 -38
- package/esm5/utils/dom/taiga-ui-core-utils-dom.js +0 -5
- package/esm5/utils/format/capitalize-first-letter.js +0 -9
- package/esm5/utils/format/capitalize.js +0 -14
- package/esm5/utils/format/format-number.js +0 -46
- package/esm5/utils/format/format-phone.js +0 -43
- package/esm5/utils/format/get-fractional-part-padded.js +0 -19
- package/esm5/utils/format/index.js +0 -10
- package/esm5/utils/format/number-to-string-without-exp.js +0 -22
- package/esm5/utils/format/other-decimal-symbol.js +0 -9
- package/esm5/utils/format/pluralize-to-icu.js +0 -13
- package/esm5/utils/format/pluralize.js +0 -25
- package/esm5/utils/format/taiga-ui-core-utils-format.js +0 -5
- package/esm5/utils/index.js +0 -7
- package/esm5/utils/mask/create-auto-corrected-money-pipe.js +0 -99
- package/esm5/utils/mask/create-correction-mask.js +0 -27
- package/esm5/utils/mask/create-number-mask.js +0 -125
- package/esm5/utils/mask/enable-auto-correct-decimal-symbol.js +0 -6
- package/esm5/utils/mask/index.js +0 -7
- package/esm5/utils/mask/masked-money-value-is-empty.js +0 -18
- package/esm5/utils/mask/masked-number-string-to-number.js +0 -9
- package/esm5/utils/mask/taiga-ui-core-utils-mask.js +0 -5
- package/esm5/utils/miscellaneous/color-fallback.js +0 -17
- package/esm5/utils/miscellaneous/get-border.js +0 -27
- package/esm5/utils/miscellaneous/icons-path-factory.js +0 -16
- package/esm5/utils/miscellaneous/index.js +0 -7
- package/esm5/utils/miscellaneous/is-editing-key.js +0 -11
- package/esm5/utils/miscellaneous/is-presumed-html-string.js +0 -10
- package/esm5/utils/miscellaneous/size-bigger.js +0 -15
- package/esm5/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.js +0 -5
- package/esm5/utils/mobile/index.js +0 -2
- package/esm5/utils/mobile/is-mobile.js +0 -6
- package/esm5/utils/mobile/taiga-ui-core-utils-mobile.js +0 -5
- package/esm5/utils/polyfills/index.js +0 -2
- package/esm5/utils/polyfills/inner-html.js +0 -40
- package/esm5/utils/polyfills/taiga-ui-core-utils-polyfills.js +0 -5
- package/esm5/utils/taiga-ui-core-utils.js +0 -5
- package/fesm2015/taiga-ui-core-directives-color.js +0 -370
- package/fesm2015/taiga-ui-core-directives-color.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-table-mode.js +0 -37
- package/fesm2015/taiga-ui-core-directives-table-mode.js.map +0 -1
- package/fesm2015/taiga-ui-core-pipes-pluralize.js +0 -38
- package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +0 -1
- package/fesm5/taiga-ui-core-abstract.js +0 -233
- package/fesm5/taiga-ui-core-abstract.js.map +0 -1
- package/fesm5/taiga-ui-core-animations.js +0 -258
- package/fesm5/taiga-ui-core-animations.js.map +0 -1
- package/fesm5/taiga-ui-core-components-alert.js +0 -178
- package/fesm5/taiga-ui-core-components-alert.js.map +0 -1
- package/fesm5/taiga-ui-core-components-button.js +0 -198
- package/fesm5/taiga-ui-core-components-button.js.map +0 -1
- package/fesm5/taiga-ui-core-components-calendar.js +0 -166
- package/fesm5/taiga-ui-core-components-calendar.js.map +0 -1
- package/fesm5/taiga-ui-core-components-data-list.js +0 -428
- package/fesm5/taiga-ui-core-components-data-list.js.map +0 -1
- package/fesm5/taiga-ui-core-components-dialog.js +0 -232
- package/fesm5/taiga-ui-core-components-dialog.js.map +0 -1
- package/fesm5/taiga-ui-core-components-dropdown-box.js +0 -342
- package/fesm5/taiga-ui-core-components-dropdown-box.js.map +0 -1
- package/fesm5/taiga-ui-core-components-error.js +0 -69
- package/fesm5/taiga-ui-core-components-error.js.map +0 -1
- package/fesm5/taiga-ui-core-components-expand.js +0 -185
- package/fesm5/taiga-ui-core-components-expand.js.map +0 -1
- package/fesm5/taiga-ui-core-components-group.js +0 -136
- package/fesm5/taiga-ui-core-components-group.js.map +0 -1
- package/fesm5/taiga-ui-core-components-hints-host.js +0 -347
- package/fesm5/taiga-ui-core-components-hints-host.js.map +0 -1
- package/fesm5/taiga-ui-core-components-hosted-dropdown.js +0 -267
- package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +0 -1
- package/fesm5/taiga-ui-core-components-label.js +0 -68
- package/fesm5/taiga-ui-core-components-label.js.map +0 -1
- package/fesm5/taiga-ui-core-components-link.js +0 -142
- package/fesm5/taiga-ui-core-components-link.js.map +0 -1
- package/fesm5/taiga-ui-core-components-loader.js +0 -138
- package/fesm5/taiga-ui-core-components-loader.js.map +0 -1
- package/fesm5/taiga-ui-core-components-notification.js +0 -90
- package/fesm5/taiga-ui-core-components-notification.js.map +0 -1
- package/fesm5/taiga-ui-core-components-primitive-calendar.js +0 -196
- package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +0 -1
- package/fesm5/taiga-ui-core-components-primitive-checkbox.js +0 -147
- package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +0 -1
- package/fesm5/taiga-ui-core-components-primitive-spin-button.js +0 -125
- package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +0 -1
- package/fesm5/taiga-ui-core-components-primitive-textfield.js +0 -674
- package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +0 -1
- package/fesm5/taiga-ui-core-components-primitive-year-picker.js +0 -200
- package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +0 -1
- package/fesm5/taiga-ui-core-components-root.js +0 -96
- package/fesm5/taiga-ui-core-components-root.js.map +0 -1
- package/fesm5/taiga-ui-core-components-scroll-controls.js +0 -270
- package/fesm5/taiga-ui-core-components-scroll-controls.js.map +0 -1
- package/fesm5/taiga-ui-core-components-scrollbar.js +0 -158
- package/fesm5/taiga-ui-core-components-scrollbar.js.map +0 -1
- package/fesm5/taiga-ui-core-components-svg.js +0 -226
- package/fesm5/taiga-ui-core-components-svg.js.map +0 -1
- package/fesm5/taiga-ui-core-components-theme-night.js +0 -39
- package/fesm5/taiga-ui-core-components-theme-night.js.map +0 -1
- package/fesm5/taiga-ui-core-components-tooltip.js +0 -122
- package/fesm5/taiga-ui-core-components-tooltip.js.map +0 -1
- package/fesm5/taiga-ui-core-components.js +0 -31
- package/fesm5/taiga-ui-core-components.js.map +0 -1
- package/fesm5/taiga-ui-core-constants.js +0 -76
- package/fesm5/taiga-ui-core-constants.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-color.js +0 -61
- package/fesm5/taiga-ui-core-directives-color.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-described-by.js +0 -96
- package/fesm5/taiga-ui-core-directives-described-by.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-dropdown-controller.js +0 -92
- package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-dropdown.js +0 -75
- package/fesm5/taiga-ui-core-directives-dropdown.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-hint-controller.js +0 -94
- package/fesm5/taiga-ui-core-directives-hint-controller.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-hint.js +0 -174
- package/fesm5/taiga-ui-core-directives-hint.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-manual-hint.js +0 -84
- package/fesm5/taiga-ui-core-directives-manual-hint.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-mask-accessor.js +0 -49
- package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-mode.js +0 -40
- package/fesm5/taiga-ui-core-directives-mode.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-pointer-hint.js +0 -136
- package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-scroll-into-view.js +0 -77
- package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-table-mode.js +0 -43
- package/fesm5/taiga-ui-core-directives-table-mode.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-textfield-controller.js +0 -460
- package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +0 -1
- package/fesm5/taiga-ui-core-directives-wrapper.js +0 -138
- package/fesm5/taiga-ui-core-directives-wrapper.js.map +0 -1
- package/fesm5/taiga-ui-core-directives.js +0 -19
- package/fesm5/taiga-ui-core-directives.js.map +0 -1
- package/fesm5/taiga-ui-core-enums.js +0 -153
- package/fesm5/taiga-ui-core-enums.js.map +0 -1
- package/fesm5/taiga-ui-core-interfaces.js +0 -4
- package/fesm5/taiga-ui-core-interfaces.js.map +0 -1
- package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +0 -118
- package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +0 -1
- package/fesm5/taiga-ui-core-internal-svg-defs-host.js +0 -69
- package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +0 -1
- package/fesm5/taiga-ui-core-internal.js +0 -7
- package/fesm5/taiga-ui-core-internal.js.map +0 -1
- package/fesm5/taiga-ui-core-mask.js +0 -4
- package/fesm5/taiga-ui-core-mask.js.map +0 -1
- package/fesm5/taiga-ui-core-observables.js +0 -37
- package/fesm5/taiga-ui-core-observables.js.map +0 -1
- package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +0 -123
- package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +0 -1
- package/fesm5/taiga-ui-core-pipes-format-number.js +0 -53
- package/fesm5/taiga-ui-core-pipes-format-number.js.map +0 -1
- package/fesm5/taiga-ui-core-pipes-format-phone.js +0 -45
- package/fesm5/taiga-ui-core-pipes-format-phone.js.map +0 -1
- package/fesm5/taiga-ui-core-pipes-month.js +0 -43
- package/fesm5/taiga-ui-core-pipes-month.js.map +0 -1
- package/fesm5/taiga-ui-core-pipes-pluralize.js +0 -44
- package/fesm5/taiga-ui-core-pipes-pluralize.js.map +0 -1
- package/fesm5/taiga-ui-core-pipes.js +0 -10
- package/fesm5/taiga-ui-core-pipes.js.map +0 -1
- package/fesm5/taiga-ui-core-providers.js +0 -58
- package/fesm5/taiga-ui-core-providers.js.map +0 -1
- package/fesm5/taiga-ui-core-services.js +0 -184
- package/fesm5/taiga-ui-core-services.js.map +0 -1
- package/fesm5/taiga-ui-core-tokens.js +0 -160
- package/fesm5/taiga-ui-core-tokens.js.map +0 -1
- package/fesm5/taiga-ui-core-types.js +0 -4
- package/fesm5/taiga-ui-core-types.js.map +0 -1
- package/fesm5/taiga-ui-core-utils-dom.js +0 -143
- package/fesm5/taiga-ui-core-utils-dom.js.map +0 -1
- package/fesm5/taiga-ui-core-utils-format.js +0 -202
- package/fesm5/taiga-ui-core-utils-format.js.map +0 -1
- package/fesm5/taiga-ui-core-utils-mask.js +0 -285
- package/fesm5/taiga-ui-core-utils-mask.js.map +0 -1
- package/fesm5/taiga-ui-core-utils-miscellaneous.js +0 -102
- package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +0 -1
- package/fesm5/taiga-ui-core-utils-mobile.js +0 -13
- package/fesm5/taiga-ui-core-utils-mobile.js.map +0 -1
- package/fesm5/taiga-ui-core-utils-polyfills.js +0 -47
- package/fesm5/taiga-ui-core-utils-polyfills.js.map +0 -1
- package/fesm5/taiga-ui-core-utils.js +0 -11
- package/fesm5/taiga-ui-core-utils.js.map +0 -1
- package/fesm5/taiga-ui-core.js +0 -18
- package/fesm5/taiga-ui-core.js.map +0 -1
- package/interfaces/notification-options.d.ts +0 -17
- package/interfaces/taiga-ui-core-interfaces.metadata.json +0 -1
- package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +0 -1
- package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +0 -1
- package/internal/taiga-ui-core-internal.metadata.json +0 -1
- package/mask/taiga-ui-core-mask.metadata.json +0 -1
- package/observables/taiga-ui-core-observables.metadata.json +0 -1
- package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.metadata.json +0 -1
- package/pipes/format-number/taiga-ui-core-pipes-format-number.metadata.json +0 -1
- package/pipes/format-phone/taiga-ui-core-pipes-format-phone.metadata.json +0 -1
- package/pipes/month/taiga-ui-core-pipes-month.metadata.json +0 -1
- package/pipes/pluralize/index.d.ts +0 -2
- package/pipes/pluralize/package.json +0 -13
- package/pipes/pluralize/pluralize.module.d.ts +0 -3
- package/pipes/pluralize/pluralize.pipe.d.ts +0 -14
- package/pipes/pluralize/taiga-ui-core-pipes-pluralize.d.ts +0 -4
- package/pipes/pluralize/taiga-ui-core-pipes-pluralize.metadata.json +0 -1
- package/pipes/taiga-ui-core-pipes.metadata.json +0 -1
- package/providers/taiga-ui-core-providers.metadata.json +0 -1
- package/services/taiga-ui-core-services.metadata.json +0 -1
- package/taiga-ui-core.metadata.json +0 -1
- package/tokens/taiga-ui-core-tokens.metadata.json +0 -1
- package/types/color.d.ts +0 -3
- package/types/pluralize.d.ts +0 -4
- package/types/taiga-ui-core-types.metadata.json +0 -1
- package/utils/dom/are-css-vars-supported.d.ts +0 -6
- package/utils/dom/taiga-ui-core-utils-dom.metadata.json +0 -1
- package/utils/format/pluralize-to-icu.d.ts +0 -5
- package/utils/format/pluralize.d.ts +0 -10
- package/utils/format/taiga-ui-core-utils-format.metadata.json +0 -1
- package/utils/mask/taiga-ui-core-utils-mask.metadata.json +0 -1
- package/utils/miscellaneous/color-fallback.d.ts +0 -4
- package/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.metadata.json +0 -1
- package/utils/mobile/taiga-ui-core-utils-mobile.metadata.json +0 -1
- package/utils/polyfills/taiga-ui-core-utils-polyfills.metadata.json +0 -1
- package/utils/taiga-ui-core-utils.metadata.json +0 -1
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { NgZone, ElementRef, Component, ChangeDetectionStrategy, Inject, HostBinding, ViewChild, NgModule } from '@angular/core';
|
|
3
4
|
import { WINDOW, ANIMATION_FRAME } from '@ng-web-apis/common';
|
|
4
|
-
import
|
|
5
|
+
import * as i2 from '@taiga-ui/cdk';
|
|
6
|
+
import { POLLING_TIME, tuiZonefree, tuiInRange, tuiPx, tuiAssertIsElement, tuiGetClosestFocusable, TuiDestroyService, AbstractTuiPortalHostComponent, tuiPure, TuiActiveZoneModule, TuiOverscrollModule } from '@taiga-ui/cdk';
|
|
5
7
|
import { tuiDropdownAnimation } from '@taiga-ui/core/animations';
|
|
6
8
|
import { DEFAULT_MARGIN, DEFAULT_MAX_WIDTH } from '@taiga-ui/core/constants';
|
|
7
9
|
import { TUI_DROPDOWN_DIRECTIVE, TUI_ANIMATION_OPTIONS } from '@taiga-ui/core/tokens';
|
|
8
10
|
import { getScreenWidth, tuiGetViewportWidth } from '@taiga-ui/core/utils/dom';
|
|
9
|
-
import
|
|
11
|
+
import * as i5 from 'rxjs';
|
|
12
|
+
import { merge, fromEvent } from 'rxjs';
|
|
10
13
|
import { throttleTime, takeUntil } from 'rxjs/operators';
|
|
14
|
+
import * as i1 from '@taiga-ui/core/components/scrollbar';
|
|
11
15
|
import { TuiScrollbarModule } from '@taiga-ui/core/components/scrollbar';
|
|
16
|
+
import * as i3 from '@taiga-ui/core/directives/mode';
|
|
12
17
|
import { TuiModeModule } from '@taiga-ui/core/directives/mode';
|
|
18
|
+
import * as i4 from '@tinkoff/ng-polymorpheus';
|
|
13
19
|
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
14
20
|
|
|
15
21
|
/**
|
|
@@ -18,7 +24,7 @@ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
|
18
24
|
// @bad TODO: OnPush
|
|
19
25
|
// Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395
|
|
20
26
|
// @dynamic
|
|
21
|
-
|
|
27
|
+
class TuiDropdownBoxComponent {
|
|
22
28
|
constructor(destroy$, ngZone, directive, windowRef, elementRef, portalHost, options, animationFrame$) {
|
|
23
29
|
this.directive = directive;
|
|
24
30
|
this.windowRef = windowRef;
|
|
@@ -31,14 +37,14 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
31
37
|
* Is previous position on top (to prevent jumping up and down on scroll)
|
|
32
38
|
*/
|
|
33
39
|
this.prevDirectionIsTop = false;
|
|
34
|
-
merge(animationFrame$.pipe(throttleTime(POLLING_TIME)), this.directive.refresh$, fromEvent(this.windowRef,
|
|
40
|
+
merge(animationFrame$.pipe(throttleTime(POLLING_TIME)), this.directive.refresh$, fromEvent(this.windowRef, `resize`))
|
|
35
41
|
.pipe(tuiZonefree(ngZone), takeUntil(destroy$))
|
|
36
42
|
.subscribe(() => {
|
|
37
43
|
this.calculatePositionAndSize();
|
|
38
44
|
});
|
|
39
45
|
}
|
|
40
46
|
get overscroll() {
|
|
41
|
-
return this.inModal ?
|
|
47
|
+
return this.inModal ? `all` : `scroll`;
|
|
42
48
|
}
|
|
43
49
|
getContext(context, activeZone) {
|
|
44
50
|
return Object.assign(Object.assign({}, context), { activeZone });
|
|
@@ -54,11 +60,11 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
54
60
|
}
|
|
55
61
|
get inModal() {
|
|
56
62
|
// @awful TODO: get rid of component tag name dependency
|
|
57
|
-
return !!this.directive.host.closest(
|
|
63
|
+
return !!this.directive.host.closest(`tui-dialog-host`);
|
|
58
64
|
}
|
|
59
65
|
get inOption() {
|
|
60
66
|
// @awful TODO: get rid of component tag name dependency
|
|
61
|
-
return !!this.directive.host.closest(
|
|
67
|
+
return !!this.directive.host.closest(`[tuiOption]`);
|
|
62
68
|
}
|
|
63
69
|
calculatePositionAndSize() {
|
|
64
70
|
const { clientRect } = this.directive;
|
|
@@ -66,7 +72,7 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
66
72
|
const hostRect = this.directive.fixed
|
|
67
73
|
? this.portalHost.fixedPositionOffset()
|
|
68
74
|
: this.portalHost.clientRect;
|
|
69
|
-
style.position = this.directive.fixed ?
|
|
75
|
+
style.position = this.directive.fixed ? `fixed` : `absolute`;
|
|
70
76
|
this.calculateVerticalPosition(style, clientRect, hostRect);
|
|
71
77
|
this.calculateHorizontalPosition(style, clientRect, hostRect);
|
|
72
78
|
this.calculateWidth(style, clientRect);
|
|
@@ -80,23 +86,23 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
80
86
|
const isDropdownSizeActuallyFitsViewport = dropdownRect.right <= screenWidth && dropdownRect.left >= 0;
|
|
81
87
|
let finalAlign = this.directive.align;
|
|
82
88
|
switch (this.directive.align) {
|
|
83
|
-
case
|
|
89
|
+
case `left`:
|
|
84
90
|
if (isDropdownSizeHypotheticallyFitsViewport &&
|
|
85
91
|
dropdownRect.right > screenWidth) {
|
|
86
|
-
finalAlign =
|
|
92
|
+
finalAlign = `right`;
|
|
87
93
|
}
|
|
88
94
|
break;
|
|
89
|
-
case
|
|
95
|
+
case `right`:
|
|
90
96
|
if (isDropdownSizeHypotheticallyFitsViewport && dropdownRect.left < 0) {
|
|
91
|
-
finalAlign =
|
|
97
|
+
finalAlign = `left`;
|
|
92
98
|
}
|
|
93
99
|
break;
|
|
94
100
|
}
|
|
95
|
-
if (style.right ===
|
|
96
|
-
finalAlign =
|
|
101
|
+
if (style.right === `auto` && isDropdownSizeActuallyFitsViewport) {
|
|
102
|
+
finalAlign = `left`;
|
|
97
103
|
}
|
|
98
|
-
if (style.left ===
|
|
99
|
-
finalAlign =
|
|
104
|
+
if (style.left === `auto` && isDropdownSizeActuallyFitsViewport) {
|
|
105
|
+
finalAlign = `right`;
|
|
100
106
|
}
|
|
101
107
|
return finalAlign;
|
|
102
108
|
}
|
|
@@ -115,26 +121,26 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
115
121
|
const right = Math.floor(hostRect.right - directiveRect.right - offset);
|
|
116
122
|
const viewportWidth = tuiGetViewportWidth(this.windowRef);
|
|
117
123
|
switch (this.getFinalAlign(style, directiveRect)) {
|
|
118
|
-
case
|
|
124
|
+
case `left`:
|
|
119
125
|
if (right + DEFAULT_MARGIN > viewportWidth ||
|
|
120
|
-
|
|
121
|
-
style.left =
|
|
122
|
-
style.right =
|
|
126
|
+
tuiInRange(left + DEFAULT_MARGIN, 0, viewportWidth)) {
|
|
127
|
+
style.left = tuiPx(left);
|
|
128
|
+
style.right = `auto`;
|
|
123
129
|
}
|
|
124
130
|
else {
|
|
125
|
-
style.left =
|
|
126
|
-
style.right =
|
|
131
|
+
style.left = `auto`;
|
|
132
|
+
style.right = tuiPx(right);
|
|
127
133
|
}
|
|
128
134
|
break;
|
|
129
|
-
case
|
|
130
|
-
if (
|
|
135
|
+
case `right`:
|
|
136
|
+
if (tuiInRange(right + DEFAULT_MARGIN, 0, viewportWidth) ||
|
|
131
137
|
left + DEFAULT_MARGIN > viewportWidth) {
|
|
132
|
-
style.left =
|
|
133
|
-
style.right =
|
|
138
|
+
style.left = `auto`;
|
|
139
|
+
style.right = tuiPx(right);
|
|
134
140
|
}
|
|
135
141
|
else {
|
|
136
|
-
style.left =
|
|
137
|
-
style.right =
|
|
142
|
+
style.left = tuiPx(left);
|
|
143
|
+
style.right = `auto`;
|
|
138
144
|
}
|
|
139
145
|
break;
|
|
140
146
|
}
|
|
@@ -157,12 +163,12 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
157
163
|
const bottomAvailableHeight = windowHeight - directiveRect.bottom - offset;
|
|
158
164
|
const finalDirection = this.getFinalDirection(directiveRect);
|
|
159
165
|
const optionOffset = this.inOption ? DEFAULT_MARGIN * 2 : 0;
|
|
160
|
-
this.prevDirectionIsTop = finalDirection ===
|
|
161
|
-
if (finalDirection ===
|
|
166
|
+
this.prevDirectionIsTop = finalDirection === `top`;
|
|
167
|
+
if (finalDirection === `top`) {
|
|
162
168
|
this.dropdownAnimation = this.animationBottom;
|
|
163
|
-
style.maxHeight =
|
|
164
|
-
style.top =
|
|
165
|
-
style.bottom =
|
|
169
|
+
style.maxHeight = tuiPx(Math.min(boxHeightLimit, topAvailableHeight));
|
|
170
|
+
style.top = `auto`;
|
|
171
|
+
style.bottom = tuiPx(hostRect.bottom -
|
|
166
172
|
directiveRect.top -
|
|
167
173
|
DEFAULT_MARGIN +
|
|
168
174
|
offset -
|
|
@@ -170,13 +176,13 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
170
176
|
}
|
|
171
177
|
else {
|
|
172
178
|
this.dropdownAnimation = this.animationTop;
|
|
173
|
-
style.maxHeight =
|
|
174
|
-
style.top =
|
|
179
|
+
style.maxHeight = tuiPx(Math.min(boxHeightLimit, bottomAvailableHeight));
|
|
180
|
+
style.top = tuiPx(directiveRect.bottom -
|
|
175
181
|
hostRect.top -
|
|
176
182
|
DEFAULT_MARGIN +
|
|
177
183
|
offset -
|
|
178
184
|
optionOffset);
|
|
179
|
-
style.bottom =
|
|
185
|
+
style.bottom = `auto`;
|
|
180
186
|
}
|
|
181
187
|
}
|
|
182
188
|
getFinalDirection(directiveRect) {
|
|
@@ -190,14 +196,14 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
190
196
|
let finalDirection = null;
|
|
191
197
|
// Given direction is applied if we can fit the box in the limits that way
|
|
192
198
|
switch (this.directive.direction) {
|
|
193
|
-
case
|
|
199
|
+
case `top`:
|
|
194
200
|
if (topAvailableHeight >= this.directive.minHeight) {
|
|
195
|
-
finalDirection =
|
|
201
|
+
finalDirection = `top`;
|
|
196
202
|
}
|
|
197
203
|
break;
|
|
198
|
-
case
|
|
204
|
+
case `bottom`:
|
|
199
205
|
if (bottomAvailableHeight >= this.directive.minHeight) {
|
|
200
|
-
finalDirection =
|
|
206
|
+
finalDirection = `bottom`;
|
|
201
207
|
}
|
|
202
208
|
break;
|
|
203
209
|
}
|
|
@@ -212,15 +218,15 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
212
218
|
// If there is enough space to fit below without scroll,
|
|
213
219
|
// choose 'bottom', unless it was previously on the top
|
|
214
220
|
if (this.prevDirectionIsTop && topAvailableHeight >= visualHeight) {
|
|
215
|
-
finalDirection =
|
|
221
|
+
finalDirection = `top`;
|
|
216
222
|
}
|
|
217
223
|
else if (bottomAvailableHeight >= visualHeight) {
|
|
218
|
-
finalDirection =
|
|
224
|
+
finalDirection = `bottom`;
|
|
219
225
|
}
|
|
220
226
|
else {
|
|
221
227
|
// Corner case — select direction with more space
|
|
222
228
|
finalDirection =
|
|
223
|
-
bottomAvailableHeight >= topAvailableHeight ?
|
|
229
|
+
bottomAvailableHeight >= topAvailableHeight ? `bottom` : `top`;
|
|
224
230
|
}
|
|
225
231
|
}
|
|
226
232
|
return finalDirection;
|
|
@@ -233,45 +239,31 @@ let TuiDropdownBoxComponent = class TuiDropdownBoxComponent {
|
|
|
233
239
|
*/
|
|
234
240
|
calculateWidth(style, directiveRect) {
|
|
235
241
|
style.width =
|
|
236
|
-
this.directive.limitMinWidth ===
|
|
237
|
-
?
|
|
238
|
-
:
|
|
239
|
-
if (this.directive.limitMinWidth ===
|
|
240
|
-
style.minWidth =
|
|
241
|
-
style.maxWidth =
|
|
242
|
+
this.directive.limitMinWidth === `fixed` && !this.directive.sided
|
|
243
|
+
? tuiPx(directiveRect.width)
|
|
244
|
+
: ``;
|
|
245
|
+
if (this.directive.limitMinWidth === `min` && !this.directive.sided) {
|
|
246
|
+
style.minWidth = tuiPx(directiveRect.width);
|
|
247
|
+
style.maxWidth = tuiPx(DEFAULT_MAX_WIDTH);
|
|
242
248
|
return;
|
|
243
249
|
}
|
|
244
|
-
style.minWidth =
|
|
245
|
-
style.maxWidth =
|
|
250
|
+
style.minWidth = ``;
|
|
251
|
+
style.maxWidth = ``;
|
|
246
252
|
}
|
|
247
253
|
moveFocusOutside(previous) {
|
|
248
254
|
const { host } = this.directive;
|
|
249
255
|
const { ownerDocument } = host;
|
|
250
256
|
const root = ownerDocument ? ownerDocument.body : host;
|
|
251
|
-
|
|
252
|
-
let focusable =
|
|
257
|
+
tuiAssertIsElement(host);
|
|
258
|
+
let focusable = tuiGetClosestFocusable(host, previous, root);
|
|
253
259
|
while (focusable !== null && host.contains(focusable)) {
|
|
254
|
-
focusable =
|
|
260
|
+
focusable = tuiGetClosestFocusable(focusable, previous, root);
|
|
255
261
|
}
|
|
256
262
|
focusable === null || focusable === void 0 ? void 0 : focusable.focus();
|
|
257
263
|
}
|
|
258
|
-
}
|
|
259
|
-
TuiDropdownBoxComponent
|
|
260
|
-
|
|
261
|
-
{ type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
|
|
262
|
-
{ type: undefined, decorators: [{ type: Inject, args: [TUI_DROPDOWN_DIRECTIVE,] }] },
|
|
263
|
-
{ type: Window, decorators: [{ type: Inject, args: [WINDOW,] }] },
|
|
264
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
265
|
-
{ type: TuiDropdownHostComponent, decorators: [{ type: Inject, args: [AbstractTuiPortalHostComponent,] }] },
|
|
266
|
-
{ type: undefined, decorators: [{ type: Inject, args: [TUI_ANIMATION_OPTIONS,] }] },
|
|
267
|
-
{ type: Observable, decorators: [{ type: Inject, args: [ANIMATION_FRAME,] }] }
|
|
268
|
-
];
|
|
269
|
-
__decorate([
|
|
270
|
-
HostBinding('@tuiDropdownAnimation')
|
|
271
|
-
], TuiDropdownBoxComponent.prototype, "dropdownAnimation", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
ViewChild('content', { read: ElementRef })
|
|
274
|
-
], TuiDropdownBoxComponent.prototype, "contentElementRef", void 0);
|
|
264
|
+
}
|
|
265
|
+
TuiDropdownBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDropdownBoxComponent, deps: [{ token: TuiDestroyService }, { token: NgZone }, { token: TUI_DROPDOWN_DIRECTIVE }, { token: WINDOW }, { token: ElementRef }, { token: AbstractTuiPortalHostComponent }, { token: TUI_ANIMATION_OPTIONS }, { token: ANIMATION_FRAME }], target: i0.ɵɵFactoryTarget.Component });
|
|
266
|
+
TuiDropdownBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiDropdownBoxComponent, selector: "tui-dropdown-box", host: { properties: { "@tuiDropdownAnimation": "this.dropdownAnimation" } }, providers: [TuiDestroyService], viewQueries: [{ propertyName: "contentElementRef", first: true, predicate: ["content"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n #activeZone=\"tuiActiveZone\"\n class=\"wrapper\"\n [tuiOverscroll]=\"overscroll\"\n [tuiMode]=\"null\"\n [tuiActiveZoneParent]=\"directive.activeZone || null\"\n>\n <tui-scrollbar class=\"scroll\">\n <div\n tabindex=\"0\"\n (focus)=\"onTopFocus()\"\n ></div>\n <div\n #content\n class=\"content\"\n >\n <ng-container\n *polymorpheusOutlet=\"directive.content as text; context: getContext(directive.context, activeZone)\"\n >\n {{ text }}\n </ng-container>\n </div>\n <div\n tabindex=\"0\"\n (focus)=\"onBottomFocus()\"\n ></div>\n </tui-scrollbar>\n</div>\n", styles: [":host{position:relative;z-index:0;box-shadow:0 .5rem 1rem rgba(0,0,0,.16);position:absolute;top:0;left:0;display:flex;background-color:#fff;background-color:var(--tui-elevation-01);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-03);box-sizing:border-box}:host.ng-animating{pointer-events:none}.content{display:flex;flex-direction:column;max-height:100%}.wrapper{flex-grow:1;max-width:100%;max-height:inherit;overflow:visible}.scroll{height:100%}\n"], components: [{ type: i1.TuiScrollbarComponent, selector: "tui-scrollbar", inputs: ["hidden"] }], directives: [{ type: i2.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }, { type: i3.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }, { type: i2.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i4.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [tuiDropdownAnimation], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
275
267
|
__decorate([
|
|
276
268
|
tuiPure
|
|
277
269
|
], TuiDropdownBoxComponent.prototype, "getContext", null);
|
|
@@ -281,41 +273,78 @@ __decorate([
|
|
|
281
273
|
__decorate([
|
|
282
274
|
tuiPure
|
|
283
275
|
], TuiDropdownBoxComponent.prototype, "inOption", null);
|
|
284
|
-
TuiDropdownBoxComponent
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDropdownBoxComponent, decorators: [{
|
|
277
|
+
type: Component,
|
|
278
|
+
args: [{
|
|
279
|
+
selector: `tui-dropdown-box`,
|
|
280
|
+
templateUrl: `./dropdown-box.template.html`,
|
|
281
|
+
styleUrls: [`./dropdown-box.style.less`],
|
|
282
|
+
changeDetection: ChangeDetectionStrategy.Default,
|
|
283
|
+
providers: [TuiDestroyService],
|
|
284
|
+
animations: [tuiDropdownAnimation],
|
|
285
|
+
}]
|
|
286
|
+
}], ctorParameters: function () { return [{ type: i2.TuiDestroyService, decorators: [{
|
|
287
|
+
type: Inject,
|
|
288
|
+
args: [TuiDestroyService]
|
|
289
|
+
}] }, { type: i0.NgZone, decorators: [{
|
|
290
|
+
type: Inject,
|
|
291
|
+
args: [NgZone]
|
|
292
|
+
}] }, { type: undefined, decorators: [{
|
|
293
|
+
type: Inject,
|
|
294
|
+
args: [TUI_DROPDOWN_DIRECTIVE]
|
|
295
|
+
}] }, { type: Window, decorators: [{
|
|
296
|
+
type: Inject,
|
|
297
|
+
args: [WINDOW]
|
|
298
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
299
|
+
type: Inject,
|
|
300
|
+
args: [ElementRef]
|
|
301
|
+
}] }, { type: i2.TuiDropdownHostComponent, decorators: [{
|
|
302
|
+
type: Inject,
|
|
303
|
+
args: [AbstractTuiPortalHostComponent]
|
|
304
|
+
}] }, { type: undefined, decorators: [{
|
|
305
|
+
type: Inject,
|
|
306
|
+
args: [TUI_ANIMATION_OPTIONS]
|
|
307
|
+
}] }, { type: i5.Observable, decorators: [{
|
|
308
|
+
type: Inject,
|
|
309
|
+
args: [ANIMATION_FRAME]
|
|
310
|
+
}] }]; }, propDecorators: { dropdownAnimation: [{
|
|
311
|
+
type: HostBinding,
|
|
312
|
+
args: [`@tuiDropdownAnimation`]
|
|
313
|
+
}], contentElementRef: [{
|
|
314
|
+
type: ViewChild,
|
|
315
|
+
args: [`content`, { read: ElementRef }]
|
|
316
|
+
}], getContext: [], inModal: [], inOption: [] } });
|
|
302
317
|
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
TuiDropdownBoxModule =
|
|
306
|
-
|
|
307
|
-
|
|
318
|
+
class TuiDropdownBoxModule {
|
|
319
|
+
}
|
|
320
|
+
TuiDropdownBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDropdownBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
321
|
+
TuiDropdownBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDropdownBoxModule, declarations: [TuiDropdownBoxComponent], imports: [TuiActiveZoneModule,
|
|
322
|
+
PolymorpheusModule,
|
|
323
|
+
TuiOverscrollModule,
|
|
324
|
+
TuiScrollbarModule,
|
|
325
|
+
TuiModeModule], exports: [TuiDropdownBoxComponent] });
|
|
326
|
+
TuiDropdownBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDropdownBoxModule, imports: [[
|
|
308
327
|
TuiActiveZoneModule,
|
|
309
328
|
PolymorpheusModule,
|
|
310
329
|
TuiOverscrollModule,
|
|
311
330
|
TuiScrollbarModule,
|
|
312
331
|
TuiModeModule,
|
|
313
|
-
]
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
332
|
+
]] });
|
|
333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDropdownBoxModule, decorators: [{
|
|
334
|
+
type: NgModule,
|
|
335
|
+
args: [{
|
|
336
|
+
imports: [
|
|
337
|
+
TuiActiveZoneModule,
|
|
338
|
+
PolymorpheusModule,
|
|
339
|
+
TuiOverscrollModule,
|
|
340
|
+
TuiScrollbarModule,
|
|
341
|
+
TuiModeModule,
|
|
342
|
+
],
|
|
343
|
+
entryComponents: [TuiDropdownBoxComponent],
|
|
344
|
+
declarations: [TuiDropdownBoxComponent],
|
|
345
|
+
exports: [TuiDropdownBoxComponent],
|
|
346
|
+
}]
|
|
347
|
+
}] });
|
|
319
348
|
|
|
320
349
|
/**
|
|
321
350
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-components-dropdown-box.js","sources":["ng://@taiga-ui/core/components/dropdown-box/dropdown-box.component.ts","ng://@taiga-ui/core/components/dropdown-box/dropdown-box.module.ts","ng://@taiga-ui/core/components/dropdown-box/taiga-ui-core-components-dropdown-box.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n NgZone,\n ViewChild,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {\n AbstractTuiPortalHostComponent,\n getClosestFocusable,\n inRange,\n POLLING_TIME,\n px,\n TuiActiveZoneDirective,\n tuiAssertIsHTMLElement,\n TuiDestroyService,\n TuiDropdownHostComponent,\n TuiOverscrollModeT,\n tuiPure,\n tuiZonefree,\n} from '@taiga-ui/cdk';\nimport {tuiDropdownAnimation} from '@taiga-ui/core/animations';\nimport {DEFAULT_MARGIN, DEFAULT_MAX_WIDTH} from '@taiga-ui/core/constants';\nimport {TuiDropdownAnimation} from '@taiga-ui/core/enums';\nimport {TuiAnimationOptions, TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {TUI_ANIMATION_OPTIONS, TUI_DROPDOWN_DIRECTIVE} from '@taiga-ui/core/tokens';\nimport {TuiHorizontalDirection, TuiVerticalDirection} from '@taiga-ui/core/types';\nimport {getScreenWidth, tuiGetViewportWidth} from '@taiga-ui/core/utils/dom';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {takeUntil, throttleTime} from 'rxjs/operators';\n\n/**\n * This component is used to show template in a portal using default style of white rounded box with a shadow\n */\n// @bad TODO: OnPush\n// Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395\n// @dynamic\n@Component({\n selector: 'tui-dropdown-box',\n templateUrl: './dropdown-box.template.html',\n styleUrls: ['./dropdown-box.style.less'],\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDestroyService],\n animations: [tuiDropdownAnimation],\n})\nexport class TuiDropdownBoxComponent implements AfterViewChecked {\n private readonly animationTop = {\n value: TuiDropdownAnimation.FadeInTop,\n ...this.options,\n };\n\n private readonly animationBottom = {\n value: TuiDropdownAnimation.FadeInBottom,\n ...this.options,\n };\n\n /**\n * Is previous position on top (to prevent jumping up and down on scroll)\n */\n private prevDirectionIsTop = false;\n\n @HostBinding('@tuiDropdownAnimation')\n dropdownAnimation!: TuiAnimationOptions;\n\n @ViewChild('content', {read: ElementRef})\n readonly contentElementRef?: ElementRef<HTMLElement>;\n\n constructor(\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TUI_DROPDOWN_DIRECTIVE) readonly directive: TuiDropdown,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(AbstractTuiPortalHostComponent)\n private readonly portalHost: TuiDropdownHostComponent,\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n ) {\n merge(\n animationFrame$.pipe(throttleTime(POLLING_TIME)),\n this.directive.refresh$,\n fromEvent(this.windowRef, 'resize'),\n )\n .pipe(tuiZonefree(ngZone), takeUntil(destroy$))\n .subscribe(() => {\n this.calculatePositionAndSize();\n });\n }\n\n get overscroll(): TuiOverscrollModeT {\n return this.inModal ? 'all' : 'scroll';\n }\n\n @tuiPure\n getContext<T extends object>(\n context?: T,\n activeZone?: TuiActiveZoneDirective,\n ):\n | (T & {activeZone?: TuiActiveZoneDirective})\n | {activeZone?: TuiActiveZoneDirective} {\n return {...context, activeZone};\n }\n\n ngAfterViewChecked(): void {\n this.calculatePositionAndSize();\n }\n\n onTopFocus(): void {\n this.moveFocusOutside(true);\n }\n\n onBottomFocus(): void {\n this.moveFocusOutside(false);\n }\n\n @tuiPure\n private get inModal(): boolean {\n // @awful TODO: get rid of component tag name dependency\n return !!this.directive.host.closest('tui-dialog-host');\n }\n\n @tuiPure\n private get inOption(): boolean {\n // @awful TODO: get rid of component tag name dependency\n return !!this.directive.host.closest('[tuiOption]');\n }\n\n private calculatePositionAndSize(): void {\n const {clientRect} = this.directive;\n const {style} = this.elementRef.nativeElement;\n const hostRect = this.directive.fixed\n ? this.portalHost.fixedPositionOffset()\n : this.portalHost.clientRect;\n\n style.position = this.directive.fixed ? 'fixed' : 'absolute';\n\n this.calculateVerticalPosition(style, clientRect, hostRect);\n this.calculateHorizontalPosition(style, clientRect, hostRect);\n this.calculateWidth(style, clientRect);\n }\n\n private getFinalAlign(\n style: CSSStyleDeclaration,\n directiveRect: ClientRect,\n ): TuiHorizontalDirection {\n const dropdownRect = this.elementRef.nativeElement.getBoundingClientRect();\n const dropdownWidth = this.elementRef.nativeElement.offsetWidth;\n const screenWidth = getScreenWidth(this.windowRef.document);\n const isDropdownSizeHypotheticallyFitsViewport =\n directiveRect.left + dropdownWidth < screenWidth ||\n directiveRect.right - dropdownWidth > 0;\n const isDropdownSizeActuallyFitsViewport =\n dropdownRect.right <= screenWidth && dropdownRect.left >= 0;\n let finalAlign: TuiHorizontalDirection = this.directive.align;\n\n switch (this.directive.align) {\n case 'left':\n if (\n isDropdownSizeHypotheticallyFitsViewport &&\n dropdownRect.right > screenWidth\n ) {\n finalAlign = 'right';\n }\n\n break;\n case 'right':\n if (isDropdownSizeHypotheticallyFitsViewport && dropdownRect.left < 0) {\n finalAlign = 'left';\n }\n\n break;\n }\n\n if (style.right === 'auto' && isDropdownSizeActuallyFitsViewport) {\n finalAlign = 'left';\n }\n\n if (style.left === 'auto' && isDropdownSizeActuallyFitsViewport) {\n finalAlign = 'right';\n }\n\n return finalAlign;\n }\n\n /**\n * Calculates horizontal position\n *\n * @param style dropdownBox elementRef styles object\n * @param directiveRect ClientRect of hosting directive\n * @param hostRect ClientRect of portal host\n */\n private calculateHorizontalPosition(\n style: CSSStyleDeclaration,\n directiveRect: ClientRect,\n hostRect: ClientRect,\n ): void {\n const offset = this.directive.sided\n ? this.elementRef.nativeElement.getBoundingClientRect().width + DEFAULT_MARGIN\n : 0;\n const left = Math.ceil(directiveRect.left - hostRect.left - offset);\n const right = Math.floor(hostRect.right - directiveRect.right - offset);\n const viewportWidth = tuiGetViewportWidth(this.windowRef);\n\n switch (this.getFinalAlign(style, directiveRect)) {\n case 'left':\n if (\n right + DEFAULT_MARGIN > viewportWidth ||\n inRange(left + DEFAULT_MARGIN, 0, viewportWidth)\n ) {\n style.left = px(left);\n style.right = 'auto';\n } else {\n style.left = 'auto';\n style.right = px(right);\n }\n\n break;\n case 'right':\n if (\n inRange(right + DEFAULT_MARGIN, 0, viewportWidth) ||\n left + DEFAULT_MARGIN > viewportWidth\n ) {\n style.left = 'auto';\n style.right = px(right);\n } else {\n style.left = px(left);\n style.right = 'auto';\n }\n\n break;\n }\n }\n\n /**\n * Calculates vertical position and height\n *\n * @param style dropdownBox elementRef styles object\n * @param directiveRect ClientRect of hosting directive\n * @param hostRect ClientRect of portal host\n */\n private calculateVerticalPosition(\n style: CSSStyleDeclaration,\n directiveRect: ClientRect,\n hostRect: ClientRect,\n ): void {\n const windowHeight = this.windowRef.innerHeight;\n // Maximum height of the box\n const boxHeightLimit = Math.min(\n this.directive.maxHeight,\n windowHeight - DEFAULT_MARGIN * 2,\n );\n const offset = this.directive.sided\n ? DEFAULT_MARGIN - directiveRect.height\n : DEFAULT_MARGIN * 2;\n const topAvailableHeight = directiveRect.top - offset;\n const bottomAvailableHeight = windowHeight - directiveRect.bottom - offset;\n const finalDirection = this.getFinalDirection(directiveRect);\n const optionOffset = this.inOption ? DEFAULT_MARGIN * 2 : 0;\n\n this.prevDirectionIsTop = finalDirection === 'top';\n\n if (finalDirection === 'top') {\n this.dropdownAnimation = this.animationBottom;\n\n style.maxHeight = px(Math.min(boxHeightLimit, topAvailableHeight));\n style.top = 'auto';\n style.bottom = px(\n hostRect.bottom -\n directiveRect.top -\n DEFAULT_MARGIN +\n offset -\n optionOffset,\n );\n } else {\n this.dropdownAnimation = this.animationTop;\n\n style.maxHeight = px(Math.min(boxHeightLimit, bottomAvailableHeight));\n style.top = px(\n directiveRect.bottom -\n hostRect.top -\n DEFAULT_MARGIN +\n offset -\n optionOffset,\n );\n style.bottom = 'auto';\n }\n }\n\n private getFinalDirection(directiveRect: ClientRect): TuiVerticalDirection | null {\n const windowHeight = this.windowRef.innerHeight;\n const offset = this.directive.sided\n ? DEFAULT_MARGIN - directiveRect.height\n : DEFAULT_MARGIN * 2;\n\n // Maximum space available on top and on the bottom in the viewport\n const topAvailableHeight = directiveRect.top - offset;\n const bottomAvailableHeight = windowHeight - directiveRect.bottom - offset;\n\n let finalDirection: TuiVerticalDirection | null = null;\n\n // Given direction is applied if we can fit the box in the limits that way\n switch (this.directive.direction) {\n case 'top':\n if (topAvailableHeight >= this.directive.minHeight) {\n finalDirection = 'top';\n }\n\n break;\n case 'bottom':\n if (bottomAvailableHeight >= this.directive.minHeight) {\n finalDirection = 'bottom';\n }\n\n break;\n }\n\n // Maximum height of the box\n const boxHeightLimit = Math.min(\n this.directive.maxHeight,\n windowHeight - DEFAULT_MARGIN * 2,\n );\n\n // Choose direction if given direction did not fit\n if (finalDirection === null && this.contentElementRef) {\n // Box height if it fits without scroll\n const visualHeight = Math.min(\n this.contentElementRef.nativeElement.getBoundingClientRect().height +\n (this.elementRef.nativeElement.offsetHeight -\n this.elementRef.nativeElement.clientHeight),\n boxHeightLimit,\n );\n\n // If there is enough space to fit below without scroll,\n // choose 'bottom', unless it was previously on the top\n if (this.prevDirectionIsTop && topAvailableHeight >= visualHeight) {\n finalDirection = 'top';\n } else if (bottomAvailableHeight >= visualHeight) {\n finalDirection = 'bottom';\n } else {\n // Corner case — select direction with more space\n finalDirection =\n bottomAvailableHeight >= topAvailableHeight ? 'bottom' : 'top';\n }\n }\n\n return finalDirection;\n }\n\n /**\n * Calculates width\n *\n * @param style dropdownBox elementRef styles object\n * @param directiveRect ClientRect of hosting directive\n */\n private calculateWidth(style: CSSStyleDeclaration, directiveRect: ClientRect): void {\n style.width =\n this.directive.limitMinWidth === 'fixed' && !this.directive.sided\n ? px(directiveRect.width)\n : '';\n\n if (this.directive.limitMinWidth === 'min' && !this.directive.sided) {\n style.minWidth = px(directiveRect.width);\n style.maxWidth = px(DEFAULT_MAX_WIDTH);\n\n return;\n }\n\n style.minWidth = '';\n style.maxWidth = '';\n }\n\n private moveFocusOutside(previous: boolean): void {\n const {host} = this.directive;\n const {ownerDocument} = host;\n const root = ownerDocument ? ownerDocument.body : host;\n\n tuiAssertIsHTMLElement(host);\n\n let focusable = getClosestFocusable(host, previous, root);\n\n while (focusable !== null && host.contains(focusable)) {\n focusable = getClosestFocusable(focusable, previous, root);\n }\n\n focusable?.focus();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule, TuiOverscrollModule} from '@taiga-ui/cdk';\nimport {TuiScrollbarModule} from '@taiga-ui/core/components/scrollbar';\nimport {TuiModeModule} from '@taiga-ui/core/directives/mode';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDropdownBoxComponent} from './dropdown-box.component';\n\n@NgModule({\n imports: [\n TuiActiveZoneModule,\n PolymorpheusModule,\n TuiOverscrollModule,\n TuiScrollbarModule,\n TuiModeModule,\n ],\n entryComponents: [TuiDropdownBoxComponent],\n declarations: [TuiDropdownBoxComponent],\n exports: [TuiDropdownBoxComponent],\n})\nexport class TuiDropdownBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAoCA;;;AAGA;AACA;AACA;IASa,uBAAuB,GAApC,MAAa,uBAAuB;IAsBhC,YAEI,QAA2B,EACX,MAAc,EACW,SAAsB,EAC9B,SAAiB,EACb,UAAmC,EAEvD,UAAoC,EACL,OAAyB,EAChD,eAAmC;QANnB,cAAS,GAAT,SAAS,CAAa;QAC9B,cAAS,GAAT,SAAS,CAAQ;QACb,eAAU,GAAV,UAAU,CAAyB;QAEvD,eAAU,GAAV,UAAU,CAA0B;QACL,YAAO,GAAP,OAAO,CAAkB;QA9B5D,iBAAY,mBACzB,KAAK,iCACF,IAAI,CAAC,OAAO,EACjB;QAEe,oBAAe,mBAC5B,KAAK,uCACF,IAAI,CAAC,OAAO,EACjB;;;;QAKM,uBAAkB,GAAG,KAAK,CAAC;QAoB/B,KAAK,CACD,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,EAChD,IAAI,CAAC,SAAS,CAAC,QAAQ,EACvB,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CACtC;aACI,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC9C,SAAS,CAAC;YACP,IAAI,CAAC,wBAAwB,EAAE,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,CAAA;IAClB,WAAA,MAAM,CAAC,8BAA8B,CAAC,CAAA;IAEtC,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;GAhCnB,uBAAuB,CAsVnC;;ICpXY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAZhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,mBAAmB;YACnB,kBAAkB;YAClB,mBAAmB;YACnB,kBAAkB;YAClB,aAAa;SAChB;QACD,eAAe,EAAE,CAAC,uBAAuB,CAAC;QAC1C,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACpBpC;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-components-dropdown-box.js","sources":["../../../projects/core/components/dropdown-box/dropdown-box.component.ts","../../../projects/core/components/dropdown-box/dropdown-box.template.html","../../../projects/core/components/dropdown-box/dropdown-box.module.ts","../../../projects/core/components/dropdown-box/taiga-ui-core-components-dropdown-box.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n NgZone,\n ViewChild,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {\n AbstractTuiPortalHostComponent,\n POLLING_TIME,\n TuiActiveZoneDirective,\n tuiAssertIsElement,\n TuiDestroyService,\n TuiDropdownHostComponent,\n tuiGetClosestFocusable,\n tuiInRange,\n TuiOverscrollMode,\n tuiPure,\n tuiPx,\n tuiZonefree,\n} from '@taiga-ui/cdk';\nimport {tuiDropdownAnimation} from '@taiga-ui/core/animations';\nimport {DEFAULT_MARGIN, DEFAULT_MAX_WIDTH} from '@taiga-ui/core/constants';\nimport {TuiDropdownAnimation} from '@taiga-ui/core/enums';\nimport {TuiAnimationOptions, TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {TUI_ANIMATION_OPTIONS, TUI_DROPDOWN_DIRECTIVE} from '@taiga-ui/core/tokens';\nimport {TuiHorizontalDirection, TuiVerticalDirection} from '@taiga-ui/core/types';\nimport {getScreenWidth, tuiGetViewportWidth} from '@taiga-ui/core/utils/dom';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {takeUntil, throttleTime} from 'rxjs/operators';\n\n/**\n * This component is used to show template in a portal using default style of white rounded box with a shadow\n */\n// @bad TODO: OnPush\n// Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395\n// @dynamic\n@Component({\n selector: `tui-dropdown-box`,\n templateUrl: `./dropdown-box.template.html`,\n styleUrls: [`./dropdown-box.style.less`],\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDestroyService],\n animations: [tuiDropdownAnimation],\n})\nexport class TuiDropdownBoxComponent implements AfterViewChecked {\n private readonly animationTop = {\n value: TuiDropdownAnimation.FadeInTop,\n ...this.options,\n };\n\n private readonly animationBottom = {\n value: TuiDropdownAnimation.FadeInBottom,\n ...this.options,\n };\n\n /**\n * Is previous position on top (to prevent jumping up and down on scroll)\n */\n private prevDirectionIsTop = false;\n\n @HostBinding(`@tuiDropdownAnimation`)\n dropdownAnimation!: TuiAnimationOptions;\n\n @ViewChild(`content`, {read: ElementRef})\n readonly contentElementRef?: ElementRef<HTMLElement>;\n\n constructor(\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(TUI_DROPDOWN_DIRECTIVE) readonly directive: TuiDropdown,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(AbstractTuiPortalHostComponent)\n private readonly portalHost: TuiDropdownHostComponent,\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n ) {\n merge(\n animationFrame$.pipe(throttleTime(POLLING_TIME)),\n this.directive.refresh$,\n fromEvent(this.windowRef, `resize`),\n )\n .pipe(tuiZonefree(ngZone), takeUntil(destroy$))\n .subscribe(() => {\n this.calculatePositionAndSize();\n });\n }\n\n get overscroll(): TuiOverscrollMode {\n return this.inModal ? `all` : `scroll`;\n }\n\n @tuiPure\n getContext<T extends object>(\n context?: T,\n activeZone?: TuiActiveZoneDirective,\n ):\n | (T & {activeZone?: TuiActiveZoneDirective})\n | {activeZone?: TuiActiveZoneDirective} {\n return {...context, activeZone};\n }\n\n ngAfterViewChecked(): void {\n this.calculatePositionAndSize();\n }\n\n onTopFocus(): void {\n this.moveFocusOutside(true);\n }\n\n onBottomFocus(): void {\n this.moveFocusOutside(false);\n }\n\n @tuiPure\n private get inModal(): boolean {\n // @awful TODO: get rid of component tag name dependency\n return !!this.directive.host.closest(`tui-dialog-host`);\n }\n\n @tuiPure\n private get inOption(): boolean {\n // @awful TODO: get rid of component tag name dependency\n return !!this.directive.host.closest(`[tuiOption]`);\n }\n\n private calculatePositionAndSize(): void {\n const {clientRect} = this.directive;\n const {style} = this.elementRef.nativeElement;\n const hostRect = this.directive.fixed\n ? this.portalHost.fixedPositionOffset()\n : this.portalHost.clientRect;\n\n style.position = this.directive.fixed ? `fixed` : `absolute`;\n\n this.calculateVerticalPosition(style, clientRect, hostRect);\n this.calculateHorizontalPosition(style, clientRect, hostRect);\n this.calculateWidth(style, clientRect);\n }\n\n private getFinalAlign(\n style: CSSStyleDeclaration,\n directiveRect: ClientRect,\n ): TuiHorizontalDirection {\n const dropdownRect = this.elementRef.nativeElement.getBoundingClientRect();\n const dropdownWidth = this.elementRef.nativeElement.offsetWidth;\n const screenWidth = getScreenWidth(this.windowRef.document);\n const isDropdownSizeHypotheticallyFitsViewport =\n directiveRect.left + dropdownWidth < screenWidth ||\n directiveRect.right - dropdownWidth > 0;\n const isDropdownSizeActuallyFitsViewport =\n dropdownRect.right <= screenWidth && dropdownRect.left >= 0;\n let finalAlign: TuiHorizontalDirection = this.directive.align;\n\n switch (this.directive.align) {\n case `left`:\n if (\n isDropdownSizeHypotheticallyFitsViewport &&\n dropdownRect.right > screenWidth\n ) {\n finalAlign = `right`;\n }\n\n break;\n case `right`:\n if (isDropdownSizeHypotheticallyFitsViewport && dropdownRect.left < 0) {\n finalAlign = `left`;\n }\n\n break;\n }\n\n if (style.right === `auto` && isDropdownSizeActuallyFitsViewport) {\n finalAlign = `left`;\n }\n\n if (style.left === `auto` && isDropdownSizeActuallyFitsViewport) {\n finalAlign = `right`;\n }\n\n return finalAlign;\n }\n\n /**\n * Calculates horizontal position\n *\n * @param style dropdownBox elementRef styles object\n * @param directiveRect ClientRect of hosting directive\n * @param hostRect ClientRect of portal host\n */\n private calculateHorizontalPosition(\n style: CSSStyleDeclaration,\n directiveRect: ClientRect,\n hostRect: ClientRect,\n ): void {\n const offset = this.directive.sided\n ? this.elementRef.nativeElement.getBoundingClientRect().width + DEFAULT_MARGIN\n : 0;\n const left = Math.ceil(directiveRect.left - hostRect.left - offset);\n const right = Math.floor(hostRect.right - directiveRect.right - offset);\n const viewportWidth = tuiGetViewportWidth(this.windowRef);\n\n switch (this.getFinalAlign(style, directiveRect)) {\n case `left`:\n if (\n right + DEFAULT_MARGIN > viewportWidth ||\n tuiInRange(left + DEFAULT_MARGIN, 0, viewportWidth)\n ) {\n style.left = tuiPx(left);\n style.right = `auto`;\n } else {\n style.left = `auto`;\n style.right = tuiPx(right);\n }\n\n break;\n case `right`:\n if (\n tuiInRange(right + DEFAULT_MARGIN, 0, viewportWidth) ||\n left + DEFAULT_MARGIN > viewportWidth\n ) {\n style.left = `auto`;\n style.right = tuiPx(right);\n } else {\n style.left = tuiPx(left);\n style.right = `auto`;\n }\n\n break;\n }\n }\n\n /**\n * Calculates vertical position and height\n *\n * @param style dropdownBox elementRef styles object\n * @param directiveRect ClientRect of hosting directive\n * @param hostRect ClientRect of portal host\n */\n private calculateVerticalPosition(\n style: CSSStyleDeclaration,\n directiveRect: ClientRect,\n hostRect: ClientRect,\n ): void {\n const windowHeight = this.windowRef.innerHeight;\n // Maximum height of the box\n const boxHeightLimit = Math.min(\n this.directive.maxHeight,\n windowHeight - DEFAULT_MARGIN * 2,\n );\n const offset = this.directive.sided\n ? DEFAULT_MARGIN - directiveRect.height\n : DEFAULT_MARGIN * 2;\n const topAvailableHeight = directiveRect.top - offset;\n const bottomAvailableHeight = windowHeight - directiveRect.bottom - offset;\n const finalDirection = this.getFinalDirection(directiveRect);\n const optionOffset = this.inOption ? DEFAULT_MARGIN * 2 : 0;\n\n this.prevDirectionIsTop = finalDirection === `top`;\n\n if (finalDirection === `top`) {\n this.dropdownAnimation = this.animationBottom;\n\n style.maxHeight = tuiPx(Math.min(boxHeightLimit, topAvailableHeight));\n style.top = `auto`;\n style.bottom = tuiPx(\n hostRect.bottom -\n directiveRect.top -\n DEFAULT_MARGIN +\n offset -\n optionOffset,\n );\n } else {\n this.dropdownAnimation = this.animationTop;\n\n style.maxHeight = tuiPx(Math.min(boxHeightLimit, bottomAvailableHeight));\n style.top = tuiPx(\n directiveRect.bottom -\n hostRect.top -\n DEFAULT_MARGIN +\n offset -\n optionOffset,\n );\n style.bottom = `auto`;\n }\n }\n\n private getFinalDirection(directiveRect: ClientRect): TuiVerticalDirection | null {\n const windowHeight = this.windowRef.innerHeight;\n const offset = this.directive.sided\n ? DEFAULT_MARGIN - directiveRect.height\n : DEFAULT_MARGIN * 2;\n\n // Maximum space available on top and on the bottom in the viewport\n const topAvailableHeight = directiveRect.top - offset;\n const bottomAvailableHeight = windowHeight - directiveRect.bottom - offset;\n\n let finalDirection: TuiVerticalDirection | null = null;\n\n // Given direction is applied if we can fit the box in the limits that way\n switch (this.directive.direction) {\n case `top`:\n if (topAvailableHeight >= this.directive.minHeight) {\n finalDirection = `top`;\n }\n\n break;\n case `bottom`:\n if (bottomAvailableHeight >= this.directive.minHeight) {\n finalDirection = `bottom`;\n }\n\n break;\n }\n\n // Maximum height of the box\n const boxHeightLimit = Math.min(\n this.directive.maxHeight,\n windowHeight - DEFAULT_MARGIN * 2,\n );\n\n // Choose direction if given direction did not fit\n if (finalDirection === null && this.contentElementRef) {\n // Box height if it fits without scroll\n const visualHeight = Math.min(\n this.contentElementRef.nativeElement.getBoundingClientRect().height +\n (this.elementRef.nativeElement.offsetHeight -\n this.elementRef.nativeElement.clientHeight),\n boxHeightLimit,\n );\n\n // If there is enough space to fit below without scroll,\n // choose 'bottom', unless it was previously on the top\n if (this.prevDirectionIsTop && topAvailableHeight >= visualHeight) {\n finalDirection = `top`;\n } else if (bottomAvailableHeight >= visualHeight) {\n finalDirection = `bottom`;\n } else {\n // Corner case — select direction with more space\n finalDirection =\n bottomAvailableHeight >= topAvailableHeight ? `bottom` : `top`;\n }\n }\n\n return finalDirection;\n }\n\n /**\n * Calculates width\n *\n * @param style dropdownBox elementRef styles object\n * @param directiveRect ClientRect of hosting directive\n */\n private calculateWidth(style: CSSStyleDeclaration, directiveRect: ClientRect): void {\n style.width =\n this.directive.limitMinWidth === `fixed` && !this.directive.sided\n ? tuiPx(directiveRect.width)\n : ``;\n\n if (this.directive.limitMinWidth === `min` && !this.directive.sided) {\n style.minWidth = tuiPx(directiveRect.width);\n style.maxWidth = tuiPx(DEFAULT_MAX_WIDTH);\n\n return;\n }\n\n style.minWidth = ``;\n style.maxWidth = ``;\n }\n\n private moveFocusOutside(previous: boolean): void {\n const {host} = this.directive;\n const {ownerDocument} = host;\n const root = ownerDocument ? ownerDocument.body : host;\n\n tuiAssertIsElement(host);\n\n let focusable = tuiGetClosestFocusable(host, previous, root);\n\n while (focusable !== null && host.contains(focusable)) {\n focusable = tuiGetClosestFocusable(focusable, previous, root);\n }\n\n focusable?.focus();\n }\n}\n","<div\n #activeZone=\"tuiActiveZone\"\n class=\"wrapper\"\n [tuiOverscroll]=\"overscroll\"\n [tuiMode]=\"null\"\n [tuiActiveZoneParent]=\"directive.activeZone || null\"\n>\n <tui-scrollbar class=\"scroll\">\n <div\n tabindex=\"0\"\n (focus)=\"onTopFocus()\"\n ></div>\n <div\n #content\n class=\"content\"\n >\n <ng-container\n *polymorpheusOutlet=\"directive.content as text; context: getContext(directive.context, activeZone)\"\n >\n {{ text }}\n </ng-container>\n </div>\n <div\n tabindex=\"0\"\n (focus)=\"onBottomFocus()\"\n ></div>\n </tui-scrollbar>\n</div>\n","import {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule, TuiOverscrollModule} from '@taiga-ui/cdk';\nimport {TuiScrollbarModule} from '@taiga-ui/core/components/scrollbar';\nimport {TuiModeModule} from '@taiga-ui/core/directives/mode';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDropdownBoxComponent} from './dropdown-box.component';\n\n@NgModule({\n imports: [\n TuiActiveZoneModule,\n PolymorpheusModule,\n TuiOverscrollModule,\n TuiScrollbarModule,\n TuiModeModule,\n ],\n entryComponents: [TuiDropdownBoxComponent],\n declarations: [TuiDropdownBoxComponent],\n exports: [TuiDropdownBoxComponent],\n})\nexport class TuiDropdownBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAoCA;;AAEG;AACH;AACA;AACA;MASa,uBAAuB,CAAA;AAsBhC,IAAA,WAAA,CAEI,QAA2B,EACX,MAAc,EACW,SAAsB,EAC9B,SAAiB,EACb,UAAmC,EAEvD,UAAoC,EACL,OAAyB,EAChD,eAAmC,EAAA;QANnB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAa;QAC9B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAQ;QACb,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAEvD,IAAU,CAAA,UAAA,GAAV,UAAU,CAA0B;QACL,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;AA9B5D,QAAA,IAAA,CAAA,YAAY,mBACzB,KAAK,EAAA,WAAA,kBAAA,EACF,IAAI,CAAC,OAAO,CACjB,CAAA;AA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EAAC,CAAA;gBA+BxC,UAAU,EAAA,EAAA,EAsBE,OAAO,EAAA,EAAA,EAMP,QAAQ,EAAA,EAAA,EAAA,EAAA,CAAA;;ME5GX,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAApB,oBAAoB,EAAA,YAAA,EAAA,CAHd,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAPlC,mBAAmB;QACnB,kBAAkB;QAClB,mBAAmB;QACnB,kBAAkB;AAClB,QAAA,aAAa,aAIP,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAExB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAXpB,OAAA,EAAA,CAAA;YACL,mBAAmB;YACnB,kBAAkB;YAClB,mBAAmB;YACnB,kBAAkB;YAClB,aAAa;AAChB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAKQ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,mBAAmB;wBACnB,kBAAkB;wBAClB,mBAAmB;wBACnB,kBAAkB;wBAClB,aAAa;AAChB,qBAAA;oBACD,eAAe,EAAE,CAAC,uBAAuB,CAAC;oBAC1C,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -1,57 +1,70 @@
|
|
|
1
|
-
import { __decorate
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Inject, Input, NgModule } from '@angular/core';
|
|
4
|
+
import { tuiIsString, TuiValidationError, tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
5
|
import { tuiHeightCollapse, tuiFadeIn } from '@taiga-ui/core/animations';
|
|
5
6
|
import { MODE_PROVIDER } from '@taiga-ui/core/providers';
|
|
6
7
|
import { TUI_ANIMATION_OPTIONS, TUI_MODE, TUI_DEFAULT_ERROR_MESSAGE } from '@taiga-ui/core/tokens';
|
|
7
|
-
import
|
|
8
|
+
import * as i1 from '@angular/common';
|
|
8
9
|
import { CommonModule } from '@angular/common';
|
|
10
|
+
import * as i2 from '@tinkoff/ng-polymorpheus';
|
|
9
11
|
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
12
|
+
import * as i3 from 'rxjs';
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
class TuiErrorComponent {
|
|
12
15
|
constructor(options, mode$, defaultErrorMessage$) {
|
|
13
16
|
this.options = options;
|
|
14
17
|
this.mode$ = mode$;
|
|
15
18
|
this.defaultErrorMessage$ = defaultErrorMessage$;
|
|
16
19
|
this.error = null;
|
|
17
|
-
this.animation = Object.assign({ value:
|
|
20
|
+
this.animation = Object.assign({ value: `` }, this.options);
|
|
18
21
|
}
|
|
19
22
|
set errorSetter(error) {
|
|
20
|
-
this.error =
|
|
23
|
+
this.error = tuiIsString(error) ? new TuiValidationError(error) : error;
|
|
21
24
|
}
|
|
22
|
-
}
|
|
23
|
-
TuiErrorComponent
|
|
24
|
-
{ type:
|
|
25
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_MODE,] }] },
|
|
26
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_DEFAULT_ERROR_MESSAGE,] }] }
|
|
27
|
-
];
|
|
25
|
+
}
|
|
26
|
+
TuiErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiErrorComponent, deps: [{ token: TUI_ANIMATION_OPTIONS }, { token: TUI_MODE }, { token: TUI_DEFAULT_ERROR_MESSAGE }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
TuiErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiErrorComponent, selector: "tui-error", inputs: { errorSetter: ["error", "errorSetter"] }, providers: [MODE_PROVIDER], ngImport: i0, template: "<div\n *ngIf=\"error\"\n automation-id=\"tui-error__text\"\n class=\"message-text\"\n [@tuiHeightCollapse]=\"animation\"\n [@tuiFadeIn]=\"animation\"\n [class.message-text_light]=\"(mode$ | async) === 'onDark'\"\n>\n <ng-container\n *polymorpheusOutlet=\"error.message || (defaultErrorMessage$ | async) as text; context: error.context || {}\"\n >\n {{ text }}\n </ng-container>\n</div>\n", styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);display:block;color:var(--tui-negative);word-wrap:break-word}.message-text{margin-top:.25rem;white-space:pre-wrap}.message-text_light{color:var(--tui-negative-night)}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i1.AsyncPipe }, animations: [tuiHeightCollapse, tuiFadeIn], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
28
|
__decorate([
|
|
29
|
-
Input('error'),
|
|
30
29
|
tuiDefaultProp()
|
|
31
30
|
], TuiErrorComponent.prototype, "errorSetter", null);
|
|
32
|
-
TuiErrorComponent
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiErrorComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: `tui-error`,
|
|
35
|
+
templateUrl: `./error.template.html`,
|
|
36
|
+
styleUrls: [`./error.style.less`],
|
|
37
|
+
providers: [MODE_PROVIDER],
|
|
38
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
|
+
animations: [tuiHeightCollapse, tuiFadeIn],
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
+
type: Inject,
|
|
43
|
+
args: [TUI_ANIMATION_OPTIONS]
|
|
44
|
+
}] }, { type: i3.Observable, decorators: [{
|
|
45
|
+
type: Inject,
|
|
46
|
+
args: [TUI_MODE]
|
|
47
|
+
}] }, { type: i3.Observable, decorators: [{
|
|
48
|
+
type: Inject,
|
|
49
|
+
args: [TUI_DEFAULT_ERROR_MESSAGE]
|
|
50
|
+
}] }]; }, propDecorators: { errorSetter: [{
|
|
51
|
+
type: Input,
|
|
52
|
+
args: [`error`]
|
|
53
|
+
}] } });
|
|
45
54
|
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
TuiErrorModule =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
],
|
|
55
|
+
class TuiErrorModule {
|
|
56
|
+
}
|
|
57
|
+
TuiErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
58
|
+
TuiErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiErrorModule, declarations: [TuiErrorComponent], imports: [CommonModule, PolymorpheusModule], exports: [TuiErrorComponent] });
|
|
59
|
+
TuiErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiErrorModule, imports: [[CommonModule, PolymorpheusModule]] });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiErrorModule, decorators: [{
|
|
61
|
+
type: NgModule,
|
|
62
|
+
args: [{
|
|
63
|
+
imports: [CommonModule, PolymorpheusModule],
|
|
64
|
+
declarations: [TuiErrorComponent],
|
|
65
|
+
exports: [TuiErrorComponent],
|
|
66
|
+
}]
|
|
67
|
+
}] });
|
|
55
68
|
|
|
56
69
|
/**
|
|
57
70
|
* Generated bundle index. Do not edit.
|