@taiga-ui/legacy 4.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +22 -0
- package/classes/abstract-native-select.d.ts +17 -0
- package/classes/abstract-textfield-host.d.ts +19 -0
- package/classes/control.d.ts +58 -0
- package/classes/index.d.ts +8 -0
- package/classes/interactive.d.ts +35 -0
- package/classes/multiple-control.d.ts +8 -0
- package/classes/named-day.d.ts +8 -0
- package/classes/nullable-control.d.ts +7 -0
- package/classes/stringifiable-item.d.ts +10 -0
- package/components/arrow/arrow.component.d.ts +16 -0
- package/components/arrow/arrow.options.d.ts +13 -0
- package/components/arrow/arrow.providers.d.ts +14 -0
- package/components/arrow/index.d.ts +3 -0
- package/components/combo-box/combo-box-strict.directive.d.ts +8 -0
- package/components/combo-box/combo-box.component.d.ts +47 -0
- package/components/combo-box/combo-box.directive.d.ts +9 -0
- package/components/combo-box/combo-box.module.d.ts +16 -0
- package/components/combo-box/index.d.ts +4 -0
- package/components/index.d.ts +31 -0
- package/components/input/index.d.ts +3 -0
- package/components/input/input.component.d.ts +27 -0
- package/components/input/input.directive.d.ts +8 -0
- package/components/input/input.module.d.ts +11 -0
- package/components/input-copy/index.d.ts +4 -0
- package/components/input-copy/input-copy.component.d.ts +30 -0
- package/components/input-copy/input-copy.directive.d.ts +8 -0
- package/components/input-copy/input-copy.module.d.ts +15 -0
- package/components/input-copy/input-copy.options.d.ts +14 -0
- package/components/input-date/index.d.ts +3 -0
- package/components/input-date/input-date.component.d.ts +61 -0
- package/components/input-date/input-date.directive.d.ts +15 -0
- package/components/input-date/input-date.module.d.ts +20 -0
- package/components/input-date/native-date/native-date.component.d.ts +11 -0
- package/components/input-date-multi/index.d.ts +2 -0
- package/components/input-date-multi/input-date-multi.component.d.ts +66 -0
- package/components/input-date-multi/input-date-multi.module.d.ts +20 -0
- package/components/input-date-range/index.d.ts +3 -0
- package/components/input-date-range/input-date-range.component.d.ts +63 -0
- package/components/input-date-range/input-date-range.directive.d.ts +12 -0
- package/components/input-date-range/input-date-range.module.d.ts +18 -0
- package/components/input-date-time/index.d.ts +3 -0
- package/components/input-date-time/input-date-time.component.d.ts +77 -0
- package/components/input-date-time/input-date-time.directive.d.ts +13 -0
- package/components/input-date-time/input-date-time.module.d.ts +19 -0
- package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +9 -0
- package/components/input-month/index.d.ts +3 -0
- package/components/input-month/input-month.component.d.ts +41 -0
- package/components/input-month/input-month.directive.d.ts +15 -0
- package/components/input-month/input-month.module.d.ts +15 -0
- package/components/input-month-range/index.d.ts +3 -0
- package/components/input-month-range/input-month-range.component.d.ts +35 -0
- package/components/input-month-range/input-month-range.directive.d.ts +15 -0
- package/components/input-month-range/input-month-range.module.d.ts +14 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/input-number.component.d.ts +56 -0
- package/components/input-number/input-number.directive.d.ts +12 -0
- package/components/input-number/input-number.module.d.ts +14 -0
- package/components/input-number/input-number.options.d.ts +17 -0
- package/components/input-password/index.d.ts +4 -0
- package/components/input-password/input-password.component.d.ts +30 -0
- package/components/input-password/input-password.directive.d.ts +12 -0
- package/components/input-password/input-password.module.d.ts +16 -0
- package/components/input-password/input-password.options.d.ts +13 -0
- package/components/input-phone/index.d.ts +4 -0
- package/components/input-phone/input-phone.component.d.ts +48 -0
- package/components/input-phone/input-phone.directive.d.ts +13 -0
- package/components/input-phone/input-phone.module.d.ts +12 -0
- package/components/input-phone/input-phone.options.d.ts +12 -0
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +9 -0
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +7 -0
- package/components/input-phone/utils/index.d.ts +2 -0
- package/components/input-phone-international/index.d.ts +3 -0
- package/components/input-phone-international/input-phone-international.component.d.ts +38 -0
- package/components/input-phone-international/input-phone-international.options.d.ts +12 -0
- package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
- package/components/input-range/index.d.ts +2 -0
- package/components/input-range/input-range.component.d.ts +52 -0
- package/components/input-range/input-range.module.d.ts +15 -0
- package/components/input-slider/index.d.ts +2 -0
- package/components/input-slider/input-slider.component.d.ts +38 -0
- package/components/input-slider/input-slider.module.d.ts +14 -0
- package/components/input-tag/index.d.ts +3 -0
- package/components/input-tag/input-tag.component.d.ts +94 -0
- package/components/input-tag/input-tag.module.d.ts +18 -0
- package/components/input-tag/input-tag.options.d.ts +13 -0
- package/components/input-time/index.d.ts +4 -0
- package/components/input-time/input-time.component.d.ts +60 -0
- package/components/input-time/input-time.directive.d.ts +13 -0
- package/components/input-time/input-time.module.d.ts +19 -0
- package/components/input-time/input-time.options.d.ts +20 -0
- package/components/input-time/native-time/native-time.component.d.ts +12 -0
- package/components/input-year/index.d.ts +3 -0
- package/components/input-year/input-year.component.d.ts +32 -0
- package/components/input-year/input-year.directive.d.ts +10 -0
- package/components/input-year/input-year.module.d.ts +14 -0
- package/components/island/index.d.ts +1 -0
- package/components/island/island.directive.d.ts +16 -0
- package/components/multi-select/hide-selected.pipe.d.ts +11 -0
- package/components/multi-select/index.d.ts +10 -0
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +23 -0
- package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +8 -0
- package/components/multi-select/multi-select.component.d.ts +65 -0
- package/components/multi-select/multi-select.directive.d.ts +14 -0
- package/components/multi-select/multi-select.module.d.ts +27 -0
- package/components/multi-select/multi-select.options.d.ts +13 -0
- package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +9 -0
- package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +8 -0
- package/components/multi-select/native-multi-select/native-multi-select.d.ts +11 -0
- package/components/multi-select-option/index.d.ts +2 -0
- package/components/multi-select-option/multi-select-option.component.d.ts +9 -0
- package/components/multi-select-option/multi-select-option.module.d.ts +9 -0
- package/components/primitive-textfield/index.d.ts +7 -0
- package/components/primitive-textfield/primitive-textfield-options.d.ts +22 -0
- package/components/primitive-textfield/primitive-textfield-types.d.ts +11 -0
- package/components/primitive-textfield/primitive-textfield.component.d.ts +68 -0
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +10 -0
- package/components/primitive-textfield/primitive-textfield.module.d.ts +17 -0
- package/components/primitive-textfield/textfield/textfield.component.d.ts +13 -0
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +22 -0
- package/components/select/index.d.ts +6 -0
- package/components/select/native-select/native-select-group.component.d.ts +13 -0
- package/components/select/native-select/native-select.component.d.ts +12 -0
- package/components/select/select.component.d.ts +40 -0
- package/components/select/select.directive.d.ts +12 -0
- package/components/select/select.module.d.ts +20 -0
- package/components/select/select.options.d.ts +12 -0
- package/components/select-option/index.d.ts +2 -0
- package/components/select-option/select-option.component.d.ts +27 -0
- package/components/select-option/select-option.module.d.ts +10 -0
- package/components/sheet/components/sheet/sheet.component.d.ts +31 -0
- package/components/sheet/components/sheet/sheet.providers.d.ts +2 -0
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +10 -0
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +14 -0
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +15 -0
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +14 -0
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +6 -0
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +14 -0
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +17 -0
- package/components/sheet/index.d.ts +14 -0
- package/components/sheet/sheet-options.d.ts +24 -0
- package/components/sheet/sheet-tokens.d.ts +15 -0
- package/components/sheet/sheet.d.ts +19 -0
- package/components/sheet/sheet.directive.d.ts +16 -0
- package/components/sheet/sheet.module.d.ts +23 -0
- package/components/sheet/sheet.service.d.ts +16 -0
- package/components/svg/content-processor.d.ts +16 -0
- package/components/svg/deprecated-icons.d.ts +1 -0
- package/components/svg/index.d.ts +5 -0
- package/components/svg/svg-options.d.ts +22 -0
- package/components/svg/svg.component.d.ts +43 -0
- package/components/svg/svg.service.d.ts +21 -0
- package/components/table-bar/index.d.ts +5 -0
- package/components/table-bar/table-bar.component.d.ts +13 -0
- package/components/table-bar/table-bar.directive.d.ts +7 -0
- package/components/table-bar/table-bar.options.d.ts +14 -0
- package/components/table-bar/table-bars-host.component.d.ts +6 -0
- package/components/table-bar/table-bars.service.d.ts +10 -0
- package/components/tag/index.d.ts +3 -0
- package/components/tag/tag.component.d.ts +40 -0
- package/components/tag/tag.module.d.ts +12 -0
- package/components/tag/tag.options.d.ts +15 -0
- package/components/textarea/index.d.ts +3 -0
- package/components/textarea/textarea.component.d.ts +50 -0
- package/components/textarea/textarea.directive.d.ts +8 -0
- package/components/textarea/textarea.module.d.ts +17 -0
- package/components/tooltip/index.d.ts +2 -0
- package/components/tooltip/tooltip.component.d.ts +12 -0
- package/components/tooltip/tooltip.module.d.ts +12 -0
- package/directives/index.d.ts +5 -0
- package/directives/legacy-dropdown-open-monitor/index.d.ts +1 -0
- package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +9 -0
- package/directives/textfield-controller/index.d.ts +14 -0
- package/directives/textfield-controller/textfield-appearance.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-controller.module.d.ts +17 -0
- package/directives/textfield-controller/textfield-controller.provider.d.ts +5 -0
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +9 -0
- package/directives/textfield-controller/textfield-filler.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +11 -0
- package/directives/textfield-controller/textfield-icon.directive.d.ts +11 -0
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-size.directive.d.ts +9 -0
- package/directives/textfield-controller/textfield.controller.d.ts +41 -0
- package/directives/textfield-controller/textfield.options.d.ts +15 -0
- package/directives/unfinished-validator/index.d.ts +2 -0
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +8 -0
- package/directives/unfinished-validator/unfinished.validator.d.ts +4 -0
- package/directives/value-accessor/index.d.ts +3 -0
- package/directives/value-accessor/value-accessor.directive.d.ts +5 -0
- package/directives/value-accessor/value-accessor.module.d.ts +7 -0
- package/directives/value-accessor/value-accessor.provider.d.ts +2 -0
- package/directives/wrapper/README.md +19 -0
- package/directives/wrapper/index.d.ts +2 -0
- package/directives/wrapper/wrapper.directive.d.ts +21 -0
- package/directives/wrapper/wrapper.module.d.ts +10 -0
- package/esm2022/classes/abstract-native-select.mjs +37 -0
- package/esm2022/classes/abstract-textfield-host.mjs +37 -0
- package/esm2022/classes/control.mjs +175 -0
- package/esm2022/classes/index.mjs +9 -0
- package/esm2022/classes/interactive.mjs +85 -0
- package/esm2022/classes/multiple-control.mjs +18 -0
- package/esm2022/classes/named-day.mjs +11 -0
- package/esm2022/classes/nullable-control.mjs +15 -0
- package/esm2022/classes/stringifiable-item.mjs +13 -0
- package/esm2022/classes/taiga-ui-legacy-classes.mjs +5 -0
- package/esm2022/components/arrow/arrow.component.mjs +42 -0
- package/esm2022/components/arrow/arrow.options.mjs +14 -0
- package/esm2022/components/arrow/arrow.providers.mjs +14 -0
- package/esm2022/components/arrow/index.mjs +4 -0
- package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +5 -0
- package/esm2022/components/combo-box/combo-box-strict.directive.mjs +29 -0
- package/esm2022/components/combo-box/combo-box.component.mjs +176 -0
- package/esm2022/components/combo-box/combo-box.directive.mjs +23 -0
- package/esm2022/components/combo-box/combo-box.module.mjs +67 -0
- package/esm2022/components/combo-box/index.mjs +5 -0
- package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +5 -0
- package/esm2022/components/index.mjs +32 -0
- package/esm2022/components/input/index.mjs +4 -0
- package/esm2022/components/input/input.component.mjs +89 -0
- package/esm2022/components/input/input.directive.mjs +20 -0
- package/esm2022/components/input/input.module.mjs +30 -0
- package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +5 -0
- package/esm2022/components/input-copy/index.mjs +5 -0
- package/esm2022/components/input-copy/input-copy.component.mjs +103 -0
- package/esm2022/components/input-copy/input-copy.directive.mjs +20 -0
- package/esm2022/components/input-copy/input-copy.module.mjs +52 -0
- package/esm2022/components/input-copy/input-copy.options.mjs +12 -0
- package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +5 -0
- package/esm2022/components/input-date/index.mjs +4 -0
- package/esm2022/components/input-date/input-date.component.mjs +217 -0
- package/esm2022/components/input-date/input-date.directive.mjs +38 -0
- package/esm2022/components/input-date/input-date.module.mjs +71 -0
- package/esm2022/components/input-date/native-date/native-date.component.mjs +48 -0
- package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +5 -0
- package/esm2022/components/input-date-multi/index.mjs +3 -0
- package/esm2022/components/input-date-multi/input-date-multi.component.mjs +212 -0
- package/esm2022/components/input-date-multi/input-date-multi.module.mjs +67 -0
- package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +5 -0
- package/esm2022/components/input-date-range/index.mjs +4 -0
- package/esm2022/components/input-date-range/input-date-range.component.mjs +243 -0
- package/esm2022/components/input-date-range/input-date-range.directive.mjs +31 -0
- package/esm2022/components/input-date-range/input-date-range.module.mjs +67 -0
- package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +5 -0
- package/esm2022/components/input-date-time/index.mjs +4 -0
- package/esm2022/components/input-date-time/input-date-time.component.mjs +302 -0
- package/esm2022/components/input-date-time/input-date-time.directive.mjs +32 -0
- package/esm2022/components/input-date-time/input-date-time.module.mjs +74 -0
- package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +44 -0
- package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +5 -0
- package/esm2022/components/input-month/index.mjs +4 -0
- package/esm2022/components/input-month/input-month.component.mjs +132 -0
- package/esm2022/components/input-month/input-month.directive.mjs +41 -0
- package/esm2022/components/input-month/input-month.module.mjs +53 -0
- package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +5 -0
- package/esm2022/components/input-month-range/index.mjs +4 -0
- package/esm2022/components/input-month-range/input-month-range.component.mjs +120 -0
- package/esm2022/components/input-month-range/input-month-range.directive.mjs +47 -0
- package/esm2022/components/input-month-range/input-month-range.module.mjs +49 -0
- package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +5 -0
- package/esm2022/components/input-number/index.mjs +5 -0
- package/esm2022/components/input-number/input-number.component.mjs +257 -0
- package/esm2022/components/input-number/input-number.directive.mjs +33 -0
- package/esm2022/components/input-number/input-number.module.mjs +44 -0
- package/esm2022/components/input-number/input-number.options.mjs +19 -0
- package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +5 -0
- package/esm2022/components/input-password/index.mjs +5 -0
- package/esm2022/components/input-password/input-password.component.mjs +78 -0
- package/esm2022/components/input-password/input-password.directive.mjs +30 -0
- package/esm2022/components/input-password/input-password.module.mjs +56 -0
- package/esm2022/components/input-password/input-password.options.mjs +12 -0
- package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +5 -0
- package/esm2022/components/input-phone/index.mjs +5 -0
- package/esm2022/components/input-phone/input-phone.component.mjs +217 -0
- package/esm2022/components/input-phone/input-phone.directive.mjs +33 -0
- package/esm2022/components/input-phone/input-phone.module.mjs +44 -0
- package/esm2022/components/input-phone/input-phone.options.mjs +14 -0
- package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +5 -0
- package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +41 -0
- package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +17 -0
- package/esm2022/components/input-phone/utils/index.mjs +3 -0
- package/esm2022/components/input-phone-international/index.mjs +4 -0
- package/esm2022/components/input-phone-international/input-phone-international.component.mjs +181 -0
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +13 -0
- package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +5 -0
- package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +7 -0
- package/esm2022/components/input-range/index.mjs +3 -0
- package/esm2022/components/input-range/input-range.component.mjs +203 -0
- package/esm2022/components/input-range/input-range.module.mjs +51 -0
- package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +5 -0
- package/esm2022/components/input-slider/index.mjs +3 -0
- package/esm2022/components/input-slider/input-slider.component.mjs +150 -0
- package/esm2022/components/input-slider/input-slider.module.mjs +44 -0
- package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +5 -0
- package/esm2022/components/input-tag/index.mjs +4 -0
- package/esm2022/components/input-tag/input-tag.component.mjs +415 -0
- package/esm2022/components/input-tag/input-tag.module.mjs +63 -0
- package/esm2022/components/input-tag/input-tag.options.mjs +14 -0
- package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +5 -0
- package/esm2022/components/input-time/index.mjs +5 -0
- package/esm2022/components/input-time/input-time.component.mjs +275 -0
- package/esm2022/components/input-time/input-time.directive.mjs +35 -0
- package/esm2022/components/input-time/input-time.module.mjs +67 -0
- package/esm2022/components/input-time/input-time.options.mjs +22 -0
- package/esm2022/components/input-time/native-time/native-time.component.mjs +67 -0
- package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +5 -0
- package/esm2022/components/input-year/index.mjs +4 -0
- package/esm2022/components/input-year/input-year.component.mjs +107 -0
- package/esm2022/components/input-year/input-year.directive.mjs +27 -0
- package/esm2022/components/input-year/input-year.module.mjs +49 -0
- package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +5 -0
- package/esm2022/components/island/index.mjs +2 -0
- package/esm2022/components/island/island.directive.mjs +74 -0
- package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +5 -0
- package/esm2022/components/multi-select/hide-selected.pipe.mjs +43 -0
- package/esm2022/components/multi-select/index.mjs +11 -0
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +99 -0
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +65 -0
- package/esm2022/components/multi-select/multi-select.component.mjs +204 -0
- package/esm2022/components/multi-select/multi-select.directive.mjs +31 -0
- package/esm2022/components/multi-select/multi-select.module.mjs +111 -0
- package/esm2022/components/multi-select/multi-select.options.mjs +13 -0
- package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +60 -0
- package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +56 -0
- package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +19 -0
- package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +5 -0
- package/esm2022/components/multi-select-option/index.mjs +3 -0
- package/esm2022/components/multi-select-option/multi-select-option.component.mjs +25 -0
- package/esm2022/components/multi-select-option/multi-select-option.module.mjs +20 -0
- package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +5 -0
- package/esm2022/components/primitive-textfield/index.mjs +8 -0
- package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +17 -0
- package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +2 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +247 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +28 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +62 -0
- package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +5 -0
- package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +39 -0
- package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +71 -0
- package/esm2022/components/select/index.mjs +7 -0
- package/esm2022/components/select/native-select/native-select-group.component.mjs +60 -0
- package/esm2022/components/select/native-select/native-select.component.mjs +56 -0
- package/esm2022/components/select/select.component.mjs +116 -0
- package/esm2022/components/select/select.directive.mjs +29 -0
- package/esm2022/components/select/select.module.mjs +83 -0
- package/esm2022/components/select/select.options.mjs +12 -0
- package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +5 -0
- package/esm2022/components/select-option/index.mjs +3 -0
- package/esm2022/components/select-option/select-option.component.mjs +65 -0
- package/esm2022/components/select-option/select-option.module.mjs +21 -0
- package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +5 -0
- package/esm2022/components/sheet/components/sheet/sheet.component.mjs +118 -0
- package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +42 -0
- package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +27 -0
- package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +31 -0
- package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +46 -0
- package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +38 -0
- package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +37 -0
- package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +51 -0
- package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +76 -0
- package/esm2022/components/sheet/index.mjs +15 -0
- package/esm2022/components/sheet/sheet-options.mjs +21 -0
- package/esm2022/components/sheet/sheet-tokens.mjs +14 -0
- package/esm2022/components/sheet/sheet.directive.mjs +38 -0
- package/esm2022/components/sheet/sheet.mjs +2 -0
- package/esm2022/components/sheet/sheet.module.mjs +74 -0
- package/esm2022/components/sheet/sheet.service.mjs +51 -0
- package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +5 -0
- package/esm2022/components/svg/content-processor.mjs +38 -0
- package/esm2022/components/svg/deprecated-icons.mjs +59 -0
- package/esm2022/components/svg/index.mjs +6 -0
- package/esm2022/components/svg/svg-options.mjs +60 -0
- package/esm2022/components/svg/svg.component.mjs +147 -0
- package/esm2022/components/svg/svg.service.mjs +64 -0
- package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +5 -0
- package/esm2022/components/table-bar/index.mjs +6 -0
- package/esm2022/components/table-bar/table-bar.component.mjs +33 -0
- package/esm2022/components/table-bar/table-bar.directive.mjs +21 -0
- package/esm2022/components/table-bar/table-bar.options.mjs +16 -0
- package/esm2022/components/table-bar/table-bars-host.component.mjs +35 -0
- package/esm2022/components/table-bar/table-bars.service.mjs +21 -0
- package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +5 -0
- package/esm2022/components/tag/index.mjs +4 -0
- package/esm2022/components/tag/tag.component.mjs +171 -0
- package/esm2022/components/tag/tag.module.mjs +38 -0
- package/esm2022/components/tag/tag.options.mjs +15 -0
- package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +5 -0
- package/esm2022/components/taiga-ui-legacy-components.mjs +5 -0
- package/esm2022/components/textarea/index.mjs +4 -0
- package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +5 -0
- package/esm2022/components/textarea/textarea.component.mjs +189 -0
- package/esm2022/components/textarea/textarea.directive.mjs +20 -0
- package/esm2022/components/textarea/textarea.module.mjs +64 -0
- package/esm2022/components/tooltip/index.mjs +3 -0
- package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +5 -0
- package/esm2022/components/tooltip/tooltip.component.mjs +47 -0
- package/esm2022/components/tooltip/tooltip.module.mjs +24 -0
- package/esm2022/directives/index.mjs +6 -0
- package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +2 -0
- package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +40 -0
- package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +5 -0
- package/esm2022/directives/taiga-ui-legacy-directives.mjs +5 -0
- package/esm2022/directives/textfield-controller/index.mjs +15 -0
- package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +5 -0
- package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +32 -0
- package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +72 -0
- package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +44 -0
- package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +21 -0
- package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +21 -0
- package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +29 -0
- package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield.controller.mjs +48 -0
- package/esm2022/directives/textfield-controller/textfield.options.mjs +14 -0
- package/esm2022/directives/unfinished-validator/index.mjs +3 -0
- package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -0
- package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +25 -0
- package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +15 -0
- package/esm2022/directives/value-accessor/index.mjs +4 -0
- package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +5 -0
- package/esm2022/directives/value-accessor/value-accessor.directive.mjs +16 -0
- package/esm2022/directives/value-accessor/value-accessor.module.mjs +17 -0
- package/esm2022/directives/value-accessor/value-accessor.provider.mjs +10 -0
- package/esm2022/directives/wrapper/index.mjs +3 -0
- package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +5 -0
- package/esm2022/directives/wrapper/wrapper.directive.mjs +85 -0
- package/esm2022/directives/wrapper/wrapper.module.mjs +20 -0
- package/esm2022/index.mjs +7 -0
- package/esm2022/pipes/format-phone/format-phone.pipe.mjs +50 -0
- package/esm2022/pipes/format-phone/index.mjs +2 -0
- package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +5 -0
- package/esm2022/pipes/index.mjs +4 -0
- package/esm2022/pipes/iso-to-country-code/index.mjs +2 -0
- package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +43 -0
- package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +5 -0
- package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +5 -0
- package/esm2022/pipes/to-country-code/index.mjs +2 -0
- package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +5 -0
- package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +73 -0
- package/esm2022/taiga-ui-legacy.mjs +5 -0
- package/esm2022/tokens/countries-masks.mjs +254 -0
- package/esm2022/tokens/focusable-item-accessor.mjs +14 -0
- package/esm2022/tokens/fonts-ready.mjs +7 -0
- package/esm2022/tokens/icons.mjs +7 -0
- package/esm2022/tokens/index.mjs +15 -0
- package/esm2022/tokens/is-apple.mjs +9 -0
- package/esm2022/tokens/is-chromium.mjs +8 -0
- package/esm2022/tokens/is-firefox.mjs +9 -0
- package/esm2022/tokens/is-stackblitz.mjs +5 -0
- package/esm2022/tokens/month-formatter.mjs +17 -0
- package/esm2022/tokens/sanitizer.mjs +6 -0
- package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +5 -0
- package/esm2022/tokens/textfield-appearance.mjs +7 -0
- package/esm2022/tokens/textfield-host.mjs +10 -0
- package/esm2022/tokens/touch-supported.mjs +5 -0
- package/esm2022/tokens/value-accessor.mjs +7 -0
- package/esm2022/utils/date-mode-maskito-adapter.mjs +6 -0
- package/esm2022/utils/format-phone.mjs +59 -0
- package/esm2022/utils/get-border.mjs +20 -0
- package/esm2022/utils/get-max-allowed-phone-length.mjs +25 -0
- package/esm2022/utils/get-safe-area-size.mjs +17 -0
- package/esm2022/utils/icons-path-factory.mjs +14 -0
- package/esm2022/utils/index.mjs +14 -0
- package/esm2022/utils/is-apple.mjs +6 -0
- package/esm2022/utils/is-presumed-html-string.mjs +6 -0
- package/esm2022/utils/iso-to-country-code.mjs +15 -0
- package/esm2022/utils/not-kz-region.mjs +23 -0
- package/esm2022/utils/process-icon.mjs +32 -0
- package/esm2022/utils/specific-dropdown-controllers.mjs +6 -0
- package/esm2022/utils/status.mjs +2 -0
- package/esm2022/utils/taiga-ui-legacy-utils.mjs +5 -0
- package/fesm2022/taiga-ui-legacy-classes.mjs +377 -0
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +73 -0
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +280 -0
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +177 -0
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +277 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +334 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +438 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs +358 -0
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +209 -0
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs +219 -0
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +344 -0
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs +167 -0
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +204 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +355 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +253 -0
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +192 -0
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +488 -0
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs +447 -0
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs +176 -0
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input.mjs +132 -0
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-island.mjs +80 -0
- package/fesm2022/taiga-ui-legacy-components-island.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +47 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +628 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +443 -0
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +88 -0
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-select.mjs +323 -0
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs +561 -0
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-svg.mjs +356 -0
- package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +115 -0
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +225 -0
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +267 -0
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +71 -0
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components.mjs +36 -0
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +46 -0
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +365 -0
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +44 -0
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +43 -0
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +107 -0
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives.mjs +10 -0
- package/fesm2022/taiga-ui-legacy-directives.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +56 -0
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +49 -0
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +79 -0
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes.mjs +8 -0
- package/fesm2022/taiga-ui-legacy-pipes.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-tokens.mjs +348 -0
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-utils.mjs +235 -0
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy.mjs +11 -0
- package/fesm2022/taiga-ui-legacy.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/package.json +303 -0
- package/pipes/format-phone/format-phone.pipe.d.ts +34 -0
- package/pipes/format-phone/index.d.ts +1 -0
- package/pipes/index.d.ts +3 -0
- package/pipes/iso-to-country-code/index.d.ts +1 -0
- package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +29 -0
- package/pipes/to-country-code/index.d.ts +1 -0
- package/pipes/to-country-code/to-country-code.pipe.d.ts +37 -0
- package/styles/mixins/mixins.less +252 -0
- package/styles/mixins/mixins.scss +230 -0
- package/styles/mixins/textfield.less +315 -0
- package/styles/mixins/textfield.scss +306 -0
- package/styles/mixins/wrapper.less +65 -0
- package/styles/mixins/wrapper.scss +59 -0
- package/styles/taiga-ui-local.less +4 -0
- package/styles/taiga-ui-local.scss +4 -0
- package/styles/taiga-ui-theme.less +15 -0
- package/styles/wrapper/accent.less +28 -0
- package/styles/wrapper/base.less +44 -0
- package/styles/wrapper/floating.less +19 -0
- package/styles/wrapper/glass.less +31 -0
- package/styles/wrapper/icon.less +53 -0
- package/styles/wrapper/mono.less +23 -0
- package/styles/wrapper/none.less +5 -0
- package/styles/wrapper/opposite.less +33 -0
- package/styles/wrapper/outline.less +52 -0
- package/styles/wrapper/primary.less +32 -0
- package/styles/wrapper/secondary-destructive.less +16 -0
- package/styles/wrapper/secondary.less +47 -0
- package/styles/wrapper/table.less +82 -0
- package/styles/wrapper/textfield.less +80 -0
- package/styles/wrapper/whiteblock.less +47 -0
- package/tokens/countries-masks.d.ts +7 -0
- package/tokens/focusable-item-accessor.d.ts +22 -0
- package/tokens/fonts-ready.d.ts +3 -0
- package/tokens/icons.d.ts +5 -0
- package/tokens/index.d.ts +14 -0
- package/tokens/is-apple.d.ts +4 -0
- package/tokens/is-chromium.d.ts +4 -0
- package/tokens/is-firefox.d.ts +4 -0
- package/tokens/is-stackblitz.d.ts +1 -0
- package/tokens/month-formatter.d.ts +10 -0
- package/tokens/sanitizer.d.ts +6 -0
- package/tokens/textfield-appearance.d.ts +5 -0
- package/tokens/textfield-host.d.ts +17 -0
- package/tokens/touch-supported.d.ts +1 -0
- package/tokens/value-accessor.d.ts +7 -0
- package/utils/date-mode-maskito-adapter.d.ts +3 -0
- package/utils/format-phone.d.ts +29 -0
- package/utils/get-border.d.ts +2 -0
- package/utils/get-max-allowed-phone-length.d.ts +23 -0
- package/utils/get-safe-area-size.d.ts +6 -0
- package/utils/icons-path-factory.d.ts +4 -0
- package/utils/index.d.ts +13 -0
- package/utils/is-apple.d.ts +1 -0
- package/utils/is-presumed-html-string.d.ts +1 -0
- package/utils/iso-to-country-code.d.ts +12 -0
- package/utils/not-kz-region.d.ts +19 -0
- package/utils/process-icon.d.ts +1 -0
- package/utils/specific-dropdown-controllers.d.ts +1 -0
- package/utils/status.d.ts +1 -0
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, Component, ChangeDetectionStrategy, ElementRef, NgZone, forwardRef, Directive, Input, DestroyRef, ViewChild, ViewChildren, HostListener, Injectable, ContentChild, Output, ChangeDetectorRef, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
4
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
+
import { TUI_TRUE_HANDLER, TUI_FALSE_HANDLER, EMPTY_QUERY } from '@taiga-ui/cdk/constants';
|
|
6
|
+
import { tuiTypedFromEvent, tuiZonefree, tuiZonefull, tuiIfMap } from '@taiga-ui/cdk/observables';
|
|
7
|
+
import { TUI_IS_IOS, TUI_WINDOW_SIZE } from '@taiga-ui/cdk/tokens';
|
|
8
|
+
import { tuiInjectElement, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';
|
|
9
|
+
import { tuiProvide, tuiPure, tuiCreateToken, tuiIsFalsy } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
10
|
+
import { tuiSlideInTop, tuiFadeIn } from '@taiga-ui/core/animations';
|
|
11
|
+
import { TUI_MORE_WORD } from '@taiga-ui/kit/tokens';
|
|
12
|
+
import { merge, map, share, delay, switchMap, concat, zip, takeUntil, take, distinctUntilChanged, withLatestFrom, filter, throttleTime, timer, BehaviorSubject, Observable, EMPTY, race, debounceTime, startWith, Subject, ignoreElements, endWith } from 'rxjs';
|
|
13
|
+
import { TuiIdService } from '@taiga-ui/cdk/services';
|
|
14
|
+
import { TUI_CLOSE_WORD, TUI_COMMON_ICONS, TUI_SCROLL_REF, TUI_ANIMATIONS_SPEED } from '@taiga-ui/core/tokens';
|
|
15
|
+
import * as i1 from '@taiga-ui/core/components/button';
|
|
16
|
+
import { TuiButton } from '@taiga-ui/core/components/button';
|
|
17
|
+
import * as i1$1 from '@angular/common';
|
|
18
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
19
|
+
import * as i2$1 from '@taiga-ui/polymorpheus';
|
|
20
|
+
import { PolymorpheusTemplate, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
21
|
+
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
|
22
|
+
import * as i2 from '@taiga-ui/cdk/directives/let';
|
|
23
|
+
import { TuiLet } from '@taiga-ui/cdk/directives/let';
|
|
24
|
+
import { WINDOW } from '@ng-web-apis/common';
|
|
25
|
+
import { tuiToAnimationOptions } from '@taiga-ui/core/utils/miscellaneous';
|
|
26
|
+
import { tuiGetNativeFocused } from '@taiga-ui/cdk/utils/focus';
|
|
27
|
+
import { TuiScrollbar } from '@taiga-ui/core/components/scrollbar';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Sheet main component
|
|
31
|
+
*/
|
|
32
|
+
const TUI_SHEET = new InjectionToken('[TUI_SHEET]');
|
|
33
|
+
/**
|
|
34
|
+
* Current scrollTop of a sheet
|
|
35
|
+
*/
|
|
36
|
+
const TUI_SHEET_SCROLL = new InjectionToken('[TUI_SHEET_SCROLL]');
|
|
37
|
+
/**
|
|
38
|
+
* The sheet is being dragged
|
|
39
|
+
*/
|
|
40
|
+
const TUI_SHEET_DRAGGED = new InjectionToken('[TUI_SHEET_DRAGGED]');
|
|
41
|
+
|
|
42
|
+
const TUI_SHEET_CLOSE = 'tui-sheet-close';
|
|
43
|
+
const TUI_SHEET_ID = 'tui-sheet-id';
|
|
44
|
+
class TuiSheetHeadingComponent {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.el = tuiInjectElement();
|
|
47
|
+
this.closeWord$ = inject(TUI_CLOSE_WORD);
|
|
48
|
+
this.icons = inject(TUI_COMMON_ICONS);
|
|
49
|
+
this.id = inject(TuiIdService).generate();
|
|
50
|
+
}
|
|
51
|
+
ngAfterViewInit() {
|
|
52
|
+
this.el.dispatchEvent(new CustomEvent(TUI_SHEET_ID, { bubbles: true, detail: this.id }));
|
|
53
|
+
}
|
|
54
|
+
onClick() {
|
|
55
|
+
this.el.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
|
|
56
|
+
}
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
58
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]", ngImport: i0, template: "<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconLeft]=\"icons.close\"\n (click)=\"onClick()\"\n>\n {{ closeWord$ | async }}\n</button>\n<span [id]=\"id\">\n <ng-content />\n</span>\n", styles: [":host{position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-background-elevation-1);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}:host:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-border-normal);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}\n"], dependencies: [{ kind: "directive", type: i1.TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
59
|
+
}
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetHeadingComponent, decorators: [{
|
|
61
|
+
type: Component,
|
|
62
|
+
args: [{ selector: '[tuiSheetHeading]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconLeft]=\"icons.close\"\n (click)=\"onClick()\"\n>\n {{ closeWord$ | async }}\n</button>\n<span [id]=\"id\">\n <ng-content />\n</span>\n", styles: [":host{position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-background-elevation-1);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}:host:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-border-normal);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}\n"] }]
|
|
63
|
+
}] });
|
|
64
|
+
|
|
65
|
+
const TUI_SHEET_PROVIDERS = [
|
|
66
|
+
{
|
|
67
|
+
provide: TUI_SHEET_DRAGGED,
|
|
68
|
+
deps: [ElementRef],
|
|
69
|
+
useFactory: ({ nativeElement }) => merge(tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(map(TUI_TRUE_HANDLER)), tuiTypedFromEvent(nativeElement, 'touchend').pipe(map(TUI_FALSE_HANDLER))),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
provide: TUI_SHEET_SCROLL,
|
|
73
|
+
deps: [ElementRef, NgZone, DOCUMENT, TUI_IS_IOS],
|
|
74
|
+
useFactory: ({ nativeElement }, zone, doc, isIos) => isIos
|
|
75
|
+
? iosScrollFactory(nativeElement, doc, zone)
|
|
76
|
+
: merge(tuiTypedFromEvent(nativeElement, 'scroll'), tuiTypedFromEvent(nativeElement, 'load', { capture: true })).pipe(map(() => nativeElement.scrollTop), tuiZonefree(zone), share()),
|
|
77
|
+
},
|
|
78
|
+
tuiProvide(TUI_SCROLL_REF, ElementRef),
|
|
79
|
+
tuiProvide(TUI_SHEET, forwardRef(() => TuiSheetComponent)),
|
|
80
|
+
];
|
|
81
|
+
function iosScrollFactory(element, doc, zone) {
|
|
82
|
+
const load$ = tuiTypedFromEvent(element, 'load', { capture: true });
|
|
83
|
+
const touchstart$ = tuiTypedFromEvent(element, 'touchstart', { passive: true });
|
|
84
|
+
const touchmove$ = tuiTypedFromEvent(doc, 'touchmove', { passive: true });
|
|
85
|
+
const touchend$ = tuiTypedFromEvent(doc, 'touchend');
|
|
86
|
+
const scroll$ = tuiTypedFromEvent(element, 'scroll').pipe(map(() => element.scrollTop));
|
|
87
|
+
const result$ = merge(load$.pipe(delay(0), map(() => element.scrollTop)), touchstart$.pipe(switchMap(({ touches }) => {
|
|
88
|
+
const { screenY } = touches[0];
|
|
89
|
+
const { scrollTop } = element;
|
|
90
|
+
return concat(
|
|
91
|
+
// Sometimes touch is triggered without scroll in iOS, filter that
|
|
92
|
+
zip(touchmove$, scroll$).pipe(map(([{ touches }]) => scrollTop + screenY - touches[0].screenY), takeUntil(touchend$)), scroll$);
|
|
93
|
+
})));
|
|
94
|
+
return concat(scroll$.pipe(take(1)), result$).pipe(tuiZonefree(zone), share());
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
class TuiSheetBarComponent {
|
|
98
|
+
constructor() {
|
|
99
|
+
this.sheet = inject(TUI_SHEET);
|
|
100
|
+
this.scroll$ = inject(TUI_SHEET_SCROLL);
|
|
101
|
+
this.zone = inject(NgZone);
|
|
102
|
+
this.rotate$ = this.scroll$.pipe(map(y => tuiClamp(10 - (y - this.stop) / 5, 0, 10)), distinctUntilChanged(), tuiZonefull(this.zone));
|
|
103
|
+
}
|
|
104
|
+
get stop() {
|
|
105
|
+
return this.sheet.stops[0] || 0;
|
|
106
|
+
}
|
|
107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
108
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetBarComponent, selector: "tui-sheet-bar", ngImport: i0, template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(-' + deg + 'deg)'}\"\n ></div>\n <ng-content *ngIf=\"deg\" />\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:\"\";height:.25rem;width:1rem;background:var(--tui-text-primary);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
109
|
+
}
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetBarComponent, decorators: [{
|
|
111
|
+
type: Component,
|
|
112
|
+
args: [{ selector: 'tui-sheet-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(-' + deg + 'deg)'}\"\n ></div>\n <ng-content *ngIf=\"deg\" />\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:\"\";height:.25rem;width:1rem;background:var(--tui-text-primary);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}\n"] }]
|
|
113
|
+
}] });
|
|
114
|
+
|
|
115
|
+
// So that borders get rounded when image is visible for at least 10px
|
|
116
|
+
const OFFSET$1 = 10;
|
|
117
|
+
class TuiSheetTopDirective {
|
|
118
|
+
constructor() {
|
|
119
|
+
this.scroll$ = inject(TUI_SHEET_SCROLL);
|
|
120
|
+
this.component = inject(TUI_SHEET);
|
|
121
|
+
this.win = inject(WINDOW);
|
|
122
|
+
this.el = tuiInjectElement();
|
|
123
|
+
this.rounded$ = this.scroll$
|
|
124
|
+
.pipe(map(y => y < this.stop + OFFSET$1))
|
|
125
|
+
.pipe(takeUntilDestroyed())
|
|
126
|
+
.subscribe(add => add
|
|
127
|
+
? this.el.classList.add('_rounded')
|
|
128
|
+
: this.el.classList.remove('_rounded'));
|
|
129
|
+
this.transform$ = this.scroll$
|
|
130
|
+
.pipe(map(y => `translateY(${this.getY(y)}%) scaleX(-1)`), takeUntilDestroyed())
|
|
131
|
+
.subscribe(transform => this.el.style.setProperty('transform', transform));
|
|
132
|
+
this.clickthrough$ = this.scroll$
|
|
133
|
+
.pipe(map(y => !!Math.round(this.getY(y))), takeUntilDestroyed())
|
|
134
|
+
.subscribe(add => add
|
|
135
|
+
? this.el.classList.add('_clickthrough')
|
|
136
|
+
: this.el.classList.remove('_clickthrough'));
|
|
137
|
+
this.stop = 0;
|
|
138
|
+
}
|
|
139
|
+
getY(scrollTop) {
|
|
140
|
+
const value = scrollTop - this.stop;
|
|
141
|
+
const total = this.win.innerHeight - this.component.item.offset - this.stop;
|
|
142
|
+
return this.stop && tuiClamp(100 - (value / total) * 100, 0, 100);
|
|
143
|
+
}
|
|
144
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetTopDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
145
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: { stop: ["tuiSheetTop", "stop"] }, ngImport: i0 }); }
|
|
146
|
+
}
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetTopDirective, decorators: [{
|
|
148
|
+
type: Directive,
|
|
149
|
+
args: [{
|
|
150
|
+
selector: '[tuiSheetTop]',
|
|
151
|
+
}]
|
|
152
|
+
}], propDecorators: { stop: [{
|
|
153
|
+
type: Input,
|
|
154
|
+
args: ['tuiSheetTop']
|
|
155
|
+
}] } });
|
|
156
|
+
|
|
157
|
+
class TuiSheetStopDirective {
|
|
158
|
+
constructor() {
|
|
159
|
+
const scrollRef = inject(TUI_SCROLL_REF).nativeElement;
|
|
160
|
+
const destroyRef = inject(DestroyRef);
|
|
161
|
+
const el = tuiInjectElement();
|
|
162
|
+
inject(TUI_SHEET_SCROLL)
|
|
163
|
+
.pipe(map(y => Math.floor(y) > el.offsetTop), distinctUntilChanged(), withLatestFrom(inject(TUI_SHEET_DRAGGED)), map(([above, dragged]) => !above && !dragged), filter(Boolean), throttleTime(100), takeUntilDestroyed(destroyRef))
|
|
164
|
+
.subscribe(() => {
|
|
165
|
+
scrollRef.style.overflow = 'hidden';
|
|
166
|
+
scrollRef.classList.remove('_stuck'); // iOS
|
|
167
|
+
scrollRef.scrollTop = el.offsetTop;
|
|
168
|
+
timer(100)
|
|
169
|
+
.pipe(takeUntilDestroyed(destroyRef))
|
|
170
|
+
// eslint-disable-next-line rxjs/no-nested-subscribe
|
|
171
|
+
.subscribe(() => {
|
|
172
|
+
scrollRef.style.overflow = '';
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetStopDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
177
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", ngImport: i0 }); }
|
|
178
|
+
}
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetStopDirective, decorators: [{
|
|
180
|
+
type: Directive,
|
|
181
|
+
args: [{
|
|
182
|
+
selector: '[tuiSheetStop]',
|
|
183
|
+
}]
|
|
184
|
+
}], ctorParameters: function () { return []; } });
|
|
185
|
+
|
|
186
|
+
class TuiSheetComponent {
|
|
187
|
+
constructor() {
|
|
188
|
+
this.stopsRefs = EMPTY_QUERY;
|
|
189
|
+
this.destroyRef = inject(DestroyRef);
|
|
190
|
+
this.scroll$ = inject(TUI_SHEET_SCROLL);
|
|
191
|
+
this.el = tuiInjectElement();
|
|
192
|
+
this.zone = inject(NgZone);
|
|
193
|
+
this.id = '';
|
|
194
|
+
this.isIos = inject(TUI_IS_IOS);
|
|
195
|
+
this.moreWord$ = inject(TUI_MORE_WORD);
|
|
196
|
+
this.stuck$ = this.scroll$.pipe(map(y => Math.floor(y) > this.contentTop));
|
|
197
|
+
this.stuck$$ = this.stuck$
|
|
198
|
+
.pipe(takeUntilDestroyed())
|
|
199
|
+
.subscribe(add => add ? this.el.classList.add('_stuck') : this.el.classList.remove('_stuck'));
|
|
200
|
+
}
|
|
201
|
+
get context() {
|
|
202
|
+
return {
|
|
203
|
+
...this.item,
|
|
204
|
+
scroll$: this.scroll$.pipe(tuiZonefull(this.zone)),
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
get stops() {
|
|
208
|
+
return this.getStops(this.stopsRefs);
|
|
209
|
+
}
|
|
210
|
+
get imageStop() {
|
|
211
|
+
return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
|
|
212
|
+
}
|
|
213
|
+
get imageHeight() {
|
|
214
|
+
return this.contentTop - this.sheetTop;
|
|
215
|
+
}
|
|
216
|
+
ngAfterViewInit() {
|
|
217
|
+
this.el.scrollTop = [...this.stops, this.sheetTop, this.contentTop][this.item.initial];
|
|
218
|
+
}
|
|
219
|
+
onId(id) {
|
|
220
|
+
this.id = id;
|
|
221
|
+
}
|
|
222
|
+
scrollTo(top = this.sheetTop) {
|
|
223
|
+
if (this.isIos) {
|
|
224
|
+
const offset = top - this.el.scrollTop - 16;
|
|
225
|
+
this.el.style.transition = 'none';
|
|
226
|
+
this.el.style.transform = `scaleX(-1) translate3d(0, ${offset}px, 0)`;
|
|
227
|
+
timer(0)
|
|
228
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
229
|
+
.subscribe(() => {
|
|
230
|
+
this.el.style.transition = '';
|
|
231
|
+
this.el.style.transform = '';
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
this.el.scrollTo({ top, behavior: 'smooth' });
|
|
235
|
+
}
|
|
236
|
+
close() {
|
|
237
|
+
if (this.context.closeable) {
|
|
238
|
+
this.context.$implicit.complete();
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
get contentTop() {
|
|
242
|
+
return this.content?.nativeElement.offsetTop ?? Infinity;
|
|
243
|
+
}
|
|
244
|
+
get sheetTop() {
|
|
245
|
+
return this.sheet?.nativeElement.offsetTop ?? Infinity;
|
|
246
|
+
}
|
|
247
|
+
getStops(stops) {
|
|
248
|
+
return stops.map(({ nativeElement }) => nativeElement.offsetTop + nativeElement.clientHeight);
|
|
249
|
+
}
|
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetComponent, selector: "tui-sheet", inputs: { item: "item" }, host: { attributes: { "role": "dialog" }, listeners: { "tui-sheet-id": "onId($event.detail)" }, properties: { "attr.aria-labelledby": "id", "class._ios": "isIos" } }, providers: TUI_SHEET_PROVIDERS, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "stopsRefs", predicate: ["stops"], descendants: true }], ngImport: i0, template: "<div\n class=\"t-bumpers\"\n (click)=\"close()\"\n>\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-wrapper\"\n [class.t-wrapper_shadow]=\"!item.image\"\n>\n <header\n *ngIf=\"item.image\"\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n >\n <img\n *polymorpheusOutlet=\"item.image as src; context: context\"\n alt=\"\"\n class=\"t-image\"\n [src]=\"src\"\n />\n </header>\n <section\n #content\n tuiSheetStop\n class=\"t-sheet\"\n >\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n type=\"button\"\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div class=\"t-content\">\n <h2\n *polymorpheusOutlet=\"item.content as text; context: context\"\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ text }}\n </h2>\n </div>\n </section>\n</div>\n", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-background-elevation-1);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);overscroll-behavior:none}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host._stuck{scroll-snap-type:none}@supports (-moz-appearance: none){:host{scroll-snap-type:none}}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:var(--tui-shadow)}.t-top{position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-background-elevation-1);box-shadow:inset 0 1px #ffffff40}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-background-elevation-1)}.t-heading{padding-bottom:.5rem;background:var(--tui-background-elevation-1)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiSheetBarComponent, selector: "tui-sheet-bar" }, { kind: "component", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]" }, { kind: "directive", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: ["tuiSheetTop"] }, { kind: "directive", type: TuiSheetStopDirective, selector: "[tuiSheetStop]" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], animations: [tuiSlideInTop], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
252
|
+
}
|
|
253
|
+
__decorate([
|
|
254
|
+
tuiPure
|
|
255
|
+
], TuiSheetComponent.prototype, "context", null);
|
|
256
|
+
__decorate([
|
|
257
|
+
tuiPure
|
|
258
|
+
], TuiSheetComponent.prototype, "getStops", null);
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetComponent, decorators: [{
|
|
260
|
+
type: Component,
|
|
261
|
+
args: [{ selector: 'tui-sheet', changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_SHEET_PROVIDERS, animations: [tuiSlideInTop], host: {
|
|
262
|
+
role: 'dialog',
|
|
263
|
+
'[attr.aria-labelledby]': 'id',
|
|
264
|
+
'[class._ios]': 'isIos',
|
|
265
|
+
}, template: "<div\n class=\"t-bumpers\"\n (click)=\"close()\"\n>\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-wrapper\"\n [class.t-wrapper_shadow]=\"!item.image\"\n>\n <header\n *ngIf=\"item.image\"\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n >\n <img\n *polymorpheusOutlet=\"item.image as src; context: context\"\n alt=\"\"\n class=\"t-image\"\n [src]=\"src\"\n />\n </header>\n <section\n #content\n tuiSheetStop\n class=\"t-sheet\"\n >\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n type=\"button\"\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div class=\"t-content\">\n <h2\n *polymorpheusOutlet=\"item.content as text; context: context\"\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ text }}\n </h2>\n </div>\n </section>\n</div>\n", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-background-elevation-1);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);overscroll-behavior:none}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host._stuck{scroll-snap-type:none}@supports (-moz-appearance: none){:host{scroll-snap-type:none}}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:var(--tui-shadow)}.t-top{position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-background-elevation-1);box-shadow:inset 0 1px #ffffff40}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-background-elevation-1)}.t-heading{padding-bottom:.5rem;background:var(--tui-background-elevation-1)}\n"] }]
|
|
266
|
+
}], propDecorators: { sheet: [{
|
|
267
|
+
type: ViewChild,
|
|
268
|
+
args: ['sheet']
|
|
269
|
+
}], content: [{
|
|
270
|
+
type: ViewChild,
|
|
271
|
+
args: ['content']
|
|
272
|
+
}], stopsRefs: [{
|
|
273
|
+
type: ViewChildren,
|
|
274
|
+
args: ['stops']
|
|
275
|
+
}], item: [{
|
|
276
|
+
type: Input
|
|
277
|
+
}], context: [], onId: [{
|
|
278
|
+
type: HostListener,
|
|
279
|
+
args: [TUI_SHEET_ID, ['$event.detail']]
|
|
280
|
+
}], getStops: [] } });
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @deprecated
|
|
284
|
+
*/
|
|
285
|
+
const TUI_SHEET_DEFAULT_OPTIONS = {
|
|
286
|
+
image: '',
|
|
287
|
+
imageSlide: true,
|
|
288
|
+
stops: [],
|
|
289
|
+
initial: 0,
|
|
290
|
+
offset: 16,
|
|
291
|
+
closeable: true,
|
|
292
|
+
overlay: false,
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* @deprecated
|
|
296
|
+
* Default parameters for sheet component
|
|
297
|
+
*/
|
|
298
|
+
const TUI_SHEET_OPTIONS = tuiCreateToken({
|
|
299
|
+
...TUI_SHEET_DEFAULT_OPTIONS,
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @deprecated: use {@link TuiSheetDialogService}
|
|
304
|
+
*/
|
|
305
|
+
class TuiSheetService {
|
|
306
|
+
constructor() {
|
|
307
|
+
this.doc = inject(DOCUMENT);
|
|
308
|
+
this.options = inject(TUI_SHEET_OPTIONS);
|
|
309
|
+
this.sheets$ = new BehaviorSubject([]);
|
|
310
|
+
}
|
|
311
|
+
open(content, options = {}) {
|
|
312
|
+
return new Observable($implicit => {
|
|
313
|
+
const completeWith = (result) => {
|
|
314
|
+
$implicit.next(result);
|
|
315
|
+
$implicit.complete();
|
|
316
|
+
};
|
|
317
|
+
const sheet = {
|
|
318
|
+
...this.options,
|
|
319
|
+
...options,
|
|
320
|
+
content,
|
|
321
|
+
completeWith,
|
|
322
|
+
$implicit,
|
|
323
|
+
scroll$: EMPTY,
|
|
324
|
+
};
|
|
325
|
+
const focused = tuiGetNativeFocused(this.doc);
|
|
326
|
+
if (tuiIsHTMLElement(focused) && sheet.overlay) {
|
|
327
|
+
focused.blur();
|
|
328
|
+
}
|
|
329
|
+
this.sheets$.next([...this.sheets$.value, sheet]);
|
|
330
|
+
return () => {
|
|
331
|
+
this.sheets$.next(this.sheets$.value.filter(item => item !== sheet));
|
|
332
|
+
};
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
336
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetService, providedIn: 'root' }); }
|
|
337
|
+
}
|
|
338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetService, decorators: [{
|
|
339
|
+
type: Injectable,
|
|
340
|
+
args: [{
|
|
341
|
+
providedIn: 'root',
|
|
342
|
+
}]
|
|
343
|
+
}] });
|
|
344
|
+
|
|
345
|
+
// Safety offset for shadow
|
|
346
|
+
const OFFSET = 16;
|
|
347
|
+
function processDragged(dragged$, scroll$) {
|
|
348
|
+
const touchstart$ = dragged$.pipe(filter(Boolean));
|
|
349
|
+
const touchend$ = dragged$.pipe(filter(tuiIsFalsy));
|
|
350
|
+
const race$ = race(scroll$, timer(100)).pipe(debounceTime(200), take(1), map(TUI_FALSE_HANDLER));
|
|
351
|
+
return touchstart$.pipe(switchMap(() => touchend$.pipe(switchMap(() => race$), startWith(true))), startWith(false));
|
|
352
|
+
}
|
|
353
|
+
class TuiSheetWrapperDirective {
|
|
354
|
+
constructor() {
|
|
355
|
+
this.zone = inject(NgZone);
|
|
356
|
+
this.win = inject(WINDOW);
|
|
357
|
+
this.tuiSheetWrapper = 16;
|
|
358
|
+
}
|
|
359
|
+
get overlay$() {
|
|
360
|
+
return this.scroll$.pipe(map(y => y + 16 > this.win.innerHeight - this.tuiSheetWrapper), distinctUntilChanged(), tuiZonefull(this.zone));
|
|
361
|
+
}
|
|
362
|
+
get visible$() {
|
|
363
|
+
return processDragged(this.dragged$, this.scroll$).pipe(distinctUntilChanged(), tuiZonefull(this.zone));
|
|
364
|
+
}
|
|
365
|
+
get height$() {
|
|
366
|
+
return this.scroll$.pipe(map(this.getHeight.bind(this)));
|
|
367
|
+
}
|
|
368
|
+
getHeight(value) {
|
|
369
|
+
return this.sheet?.context.overlay
|
|
370
|
+
? null
|
|
371
|
+
: tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.win.innerHeight);
|
|
372
|
+
}
|
|
373
|
+
withImage(value) {
|
|
374
|
+
return !this.sheet?.imageStop || Math.floor(value) > this.sheet.imageStop
|
|
375
|
+
? value
|
|
376
|
+
: value - this.sheet.imageHeight;
|
|
377
|
+
}
|
|
378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
379
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: { tuiSheetWrapper: "tuiSheetWrapper" }, queries: [{ propertyName: "sheet", first: true, predicate: TuiSheetComponent, descendants: true }, { propertyName: "dragged$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_DRAGGED, static: true }, { propertyName: "scroll$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_SCROLL, static: true }], exportAs: ["tuiSheetWrapper"], ngImport: i0 }); }
|
|
380
|
+
}
|
|
381
|
+
__decorate([
|
|
382
|
+
tuiPure
|
|
383
|
+
], TuiSheetWrapperDirective.prototype, "overlay$", null);
|
|
384
|
+
__decorate([
|
|
385
|
+
tuiPure
|
|
386
|
+
], TuiSheetWrapperDirective.prototype, "visible$", null);
|
|
387
|
+
__decorate([
|
|
388
|
+
tuiPure
|
|
389
|
+
], TuiSheetWrapperDirective.prototype, "height$", null);
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetWrapperDirective, decorators: [{
|
|
391
|
+
type: Directive,
|
|
392
|
+
args: [{
|
|
393
|
+
selector: '[tuiSheetWrapper]',
|
|
394
|
+
exportAs: 'tuiSheetWrapper',
|
|
395
|
+
}]
|
|
396
|
+
}], propDecorators: { sheet: [{
|
|
397
|
+
type: ContentChild,
|
|
398
|
+
args: [TuiSheetComponent]
|
|
399
|
+
}], dragged$: [{
|
|
400
|
+
type: ContentChild,
|
|
401
|
+
args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED, static: true }]
|
|
402
|
+
}], scroll$: [{
|
|
403
|
+
type: ContentChild,
|
|
404
|
+
args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL, static: true }]
|
|
405
|
+
}], tuiSheetWrapper: [{
|
|
406
|
+
type: Input
|
|
407
|
+
}], overlay$: [], visible$: [], height$: [] } });
|
|
408
|
+
|
|
409
|
+
class TuiSheetCloseDirective {
|
|
410
|
+
constructor() {
|
|
411
|
+
this.zone = inject(NgZone);
|
|
412
|
+
this.dragged$ = inject(TUI_SHEET_DRAGGED);
|
|
413
|
+
this.scroll$ = inject(TUI_SHEET_SCROLL);
|
|
414
|
+
this.win = inject(WINDOW);
|
|
415
|
+
this.el = tuiInjectElement();
|
|
416
|
+
this.sheet = inject(TuiSheetComponent);
|
|
417
|
+
this.close = merge(tuiTypedFromEvent(this.el, TUI_SHEET_CLOSE), this.dragged$.pipe(tuiIfMap(() => this.scroll$.pipe(startWith(this.el.scrollTop)), tuiIsFalsy), filter(y => this.sheet.item?.closeable && this.shouldClose(y)), distinctUntilChanged(), tuiZonefull(this.zone)));
|
|
418
|
+
}
|
|
419
|
+
shouldClose(scrollTop) {
|
|
420
|
+
const height = Math.min(this.win.innerHeight, this.el.scrollHeight - this.win.innerHeight);
|
|
421
|
+
const min = Math.min(height, this.sheet.stops[0] || Infinity);
|
|
422
|
+
return scrollTop < min / 2;
|
|
423
|
+
}
|
|
424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
425
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: { close: "close" }, ngImport: i0 }); }
|
|
426
|
+
}
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetCloseDirective, decorators: [{
|
|
428
|
+
type: Directive,
|
|
429
|
+
args: [{
|
|
430
|
+
selector: 'tui-sheet[close]',
|
|
431
|
+
}]
|
|
432
|
+
}], propDecorators: { close: [{
|
|
433
|
+
type: Output
|
|
434
|
+
}] } });
|
|
435
|
+
|
|
436
|
+
class TuiSheetsHostComponent {
|
|
437
|
+
constructor() {
|
|
438
|
+
this.service = inject(TuiSheetService);
|
|
439
|
+
this.destroyRef = inject(DestroyRef);
|
|
440
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
441
|
+
this.height$ = inject(TUI_WINDOW_SIZE).pipe(map(({ height }) => height));
|
|
442
|
+
this.sheets = [];
|
|
443
|
+
this.options = tuiToAnimationOptions(inject(TUI_ANIMATIONS_SPEED));
|
|
444
|
+
}
|
|
445
|
+
ngOnInit() {
|
|
446
|
+
// Due to this view being parallel to app content, `markForCheck` from `async` pipe
|
|
447
|
+
// can happen after view was checked, so calling `detectChanges` instead
|
|
448
|
+
this.service.sheets$
|
|
449
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
450
|
+
.subscribe(sheets => {
|
|
451
|
+
this.sheets = sheets;
|
|
452
|
+
this.cdr.detectChanges();
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
close({ closeable, $implicit }) {
|
|
456
|
+
if (closeable) {
|
|
457
|
+
$implicit.complete();
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetsHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
461
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetsHostComponent, selector: "tui-sheets-host", ngImport: i0, template: "<div\n *ngFor=\"let item of sheets\"\n #wrapper=\"tuiSheetWrapper\"\n class=\"t-wrapper\"\n [@tuiFadeIn]=\"options\"\n [@tuiSlideInTop]=\"options\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n [class.t-wrapper_overlay]=\"item.overlay || (wrapper.overlay$ | async)\"\n [class.t-wrapper_visible]=\"wrapper.visible$ | async\"\n [style.height.px]=\"wrapper.height$ | async\"\n [tuiSheetWrapper]=\"item.offset\"\n (click.self)=\"close(item)\"\n>\n <tui-sheet\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n />\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n", styles: [":host{position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper_visible{overflow:visible}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: TuiSheetComponent, selector: "tui-sheet", inputs: ["item"] }, { kind: "directive", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: ["tuiSheetWrapper"], exportAs: ["tuiSheetWrapper"] }, { kind: "directive", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: ["close"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], animations: [tuiSlideInTop, tuiFadeIn], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
462
|
+
}
|
|
463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetsHostComponent, decorators: [{
|
|
464
|
+
type: Component,
|
|
465
|
+
args: [{ selector: 'tui-sheets-host', changeDetection: ChangeDetectionStrategy.OnPush, animations: [tuiSlideInTop, tuiFadeIn], template: "<div\n *ngFor=\"let item of sheets\"\n #wrapper=\"tuiSheetWrapper\"\n class=\"t-wrapper\"\n [@tuiFadeIn]=\"options\"\n [@tuiSlideInTop]=\"options\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n [class.t-wrapper_overlay]=\"item.overlay || (wrapper.overlay$ | async)\"\n [class.t-wrapper_visible]=\"wrapper.visible$ | async\"\n [style.height.px]=\"wrapper.height$ | async\"\n [tuiSheetWrapper]=\"item.offset\"\n (click.self)=\"close(item)\"\n>\n <tui-sheet\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n />\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n", styles: [":host{position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper_visible{overflow:visible}\n"] }]
|
|
466
|
+
}] });
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @deprecated: use {@link TuiSheetDialogDirective}
|
|
470
|
+
*/
|
|
471
|
+
class TuiSheetDirective extends PolymorpheusTemplate {
|
|
472
|
+
constructor() {
|
|
473
|
+
super(...arguments);
|
|
474
|
+
this.service = inject(TuiSheetService);
|
|
475
|
+
this.open$ = new Subject();
|
|
476
|
+
this.options = {};
|
|
477
|
+
this.tuiSheetChange = this.open$.pipe(tuiIfMap(() => this.service.open(this, this.options).pipe(ignoreElements(), endWith(false))), share());
|
|
478
|
+
}
|
|
479
|
+
set tuiSheet(open) {
|
|
480
|
+
this.open$.next(open);
|
|
481
|
+
}
|
|
482
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
483
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSheetDirective, selector: "ng-template[tuiSheet]", inputs: { options: ["tuiSheetOptions", "options"], tuiSheet: "tuiSheet" }, outputs: { tuiSheetChange: "tuiSheetChange" }, usesInheritance: true, ngImport: i0 }); }
|
|
484
|
+
}
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetDirective, decorators: [{
|
|
486
|
+
type: Directive,
|
|
487
|
+
args: [{
|
|
488
|
+
selector: 'ng-template[tuiSheet]',
|
|
489
|
+
}]
|
|
490
|
+
}], propDecorators: { options: [{
|
|
491
|
+
type: Input,
|
|
492
|
+
args: ['tuiSheetOptions']
|
|
493
|
+
}], tuiSheetChange: [{
|
|
494
|
+
type: Output
|
|
495
|
+
}], tuiSheet: [{
|
|
496
|
+
type: Input
|
|
497
|
+
}] } });
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* @deprecated: use {@link TuiSheetDialogModule}
|
|
501
|
+
*/
|
|
502
|
+
class TuiSheetModule {
|
|
503
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
504
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
|
|
505
|
+
TuiSheetComponent,
|
|
506
|
+
TuiSheetBarComponent,
|
|
507
|
+
TuiSheetHeadingComponent,
|
|
508
|
+
TuiSheetTopDirective,
|
|
509
|
+
TuiSheetDirective,
|
|
510
|
+
TuiSheetWrapperDirective,
|
|
511
|
+
TuiSheetCloseDirective,
|
|
512
|
+
TuiSheetStopDirective], imports: [CommonModule,
|
|
513
|
+
PolymorpheusOutlet,
|
|
514
|
+
PolymorpheusTemplate,
|
|
515
|
+
TuiLet,
|
|
516
|
+
TuiButton,
|
|
517
|
+
TuiScrollbar], exports: [TuiSheetsHostComponent,
|
|
518
|
+
TuiSheetComponent,
|
|
519
|
+
TuiSheetHeadingComponent,
|
|
520
|
+
TuiSheetDirective] }); }
|
|
521
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetModule, imports: [CommonModule,
|
|
522
|
+
TuiScrollbar] }); }
|
|
523
|
+
}
|
|
524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSheetModule, decorators: [{
|
|
525
|
+
type: NgModule,
|
|
526
|
+
args: [{
|
|
527
|
+
imports: [
|
|
528
|
+
CommonModule,
|
|
529
|
+
PolymorpheusOutlet,
|
|
530
|
+
PolymorpheusTemplate,
|
|
531
|
+
TuiLet,
|
|
532
|
+
TuiButton,
|
|
533
|
+
TuiScrollbar,
|
|
534
|
+
],
|
|
535
|
+
declarations: [
|
|
536
|
+
TuiSheetsHostComponent,
|
|
537
|
+
TuiSheetComponent,
|
|
538
|
+
TuiSheetBarComponent,
|
|
539
|
+
TuiSheetHeadingComponent,
|
|
540
|
+
TuiSheetTopDirective,
|
|
541
|
+
TuiSheetDirective,
|
|
542
|
+
TuiSheetWrapperDirective,
|
|
543
|
+
TuiSheetCloseDirective,
|
|
544
|
+
TuiSheetStopDirective,
|
|
545
|
+
],
|
|
546
|
+
exports: [
|
|
547
|
+
TuiSheetsHostComponent,
|
|
548
|
+
TuiSheetComponent,
|
|
549
|
+
TuiSheetHeadingComponent,
|
|
550
|
+
TuiSheetDirective,
|
|
551
|
+
],
|
|
552
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
553
|
+
}]
|
|
554
|
+
}] });
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Generated bundle index. Do not edit.
|
|
558
|
+
*/
|
|
559
|
+
|
|
560
|
+
export { TUI_SHEET_CLOSE, TUI_SHEET_DEFAULT_OPTIONS, TUI_SHEET_ID, TUI_SHEET_OPTIONS, TUI_SHEET_PROVIDERS, TuiSheetBarComponent, TuiSheetCloseDirective, TuiSheetComponent, TuiSheetDirective, TuiSheetHeadingComponent, TuiSheetModule, TuiSheetService, TuiSheetStopDirective, TuiSheetTopDirective, TuiSheetWrapperDirective, TuiSheetsHostComponent };
|
|
561
|
+
//# sourceMappingURL=taiga-ui-legacy-components-sheet.mjs.map
|