@taiga-ui/core 3.60.0 → 3.61.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/bundles/taiga-ui-core-abstract.umd.js +525 -671
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-animations.umd.js +146 -146
- package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.js +9 -155
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +522 -668
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +673 -819
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +15 -161
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +787 -933
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +3 -3
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +459 -605
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1029 -1175
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +459 -605
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +6 -152
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +65 -211
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +374 -520
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +449 -595
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-constants.umd.js +31 -31
- package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +1360 -1506
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +1141 -1287
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mode.umd.js +375 -521
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-number-format.umd.js +397 -543
- package/bundles/taiga-ui-core-directives-number-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -155
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-core-observables.umd.js +2 -2
- package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +1 -1
- package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-flag.umd.js +4 -4
- package/bundles/taiga-ui-core-pipes-flag.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.js +1 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.js +1 -1
- package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js +3 -3
- package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-month.umd.js +1 -1
- package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +384 -530
- package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
- package/bundles/taiga-ui-core-providers.umd.js +2 -2
- package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +634 -780
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +44 -190
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +19 -19
- package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-format.umd.js +21 -167
- package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-mask.umd.js +34 -180
- package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +7 -7
- package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
- package/constants/cache-basting-payload.d.ts +1 -1
- package/esm2015/abstract/abstract-textfield-host.js +3 -3
- package/esm2015/animations/animations.js +148 -148
- package/esm2015/components/alert/alert.providers.js +2 -2
- package/esm2015/components/alert/alert.service.js +3 -3
- package/esm2015/components/button/button.options.js +2 -2
- package/esm2015/components/dialog/dialog-close.service.js +5 -5
- package/esm2015/components/dialog/dialog.service.js +3 -3
- package/esm2015/components/dialog/dialog.tokens.js +4 -4
- package/esm2015/components/hosted-dropdown/hosted-dropdown.token.js +2 -2
- package/esm2015/components/loader/loader.options.js +2 -2
- package/esm2015/components/primitive-checkbox/checkbox.options.js +4 -4
- package/esm2015/components/root/root.component.js +1 -1
- package/esm2015/components/svg/deprecated-icons.js +57 -57
- package/esm2015/components/svg/svg-options.js +4 -4
- package/esm2015/constants/decimal-symbols.js +2 -2
- package/esm2015/constants/default-icons-path.js +2 -2
- package/esm2015/constants/default-number-format.js +4 -4
- package/esm2015/constants/editing-keys.js +10 -10
- package/esm2015/constants/events.js +5 -5
- package/esm2015/constants/hint-directions.js +13 -13
- package/esm2015/constants/mask-caret-trap.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
- package/esm2015/directives/textfield-controller/textfield.controller.js +2 -2
- package/esm2015/directives/textfield-controller/textfield.options.js +2 -2
- package/esm2015/enums/appearance.js +1 -1
- package/esm2015/enums/dropdown-animation.js +1 -1
- package/esm2015/enums/interactive-state.js +1 -1
- package/esm2015/enums/notification.js +1 -1
- package/esm2015/enums/range-state.js +1 -1
- package/esm2015/observables/smart-search.js +3 -3
- package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
- package/esm2015/pipes/flag/flag.pipe.js +5 -5
- package/esm2015/pipes/format-date/format-date.pipe.js +2 -2
- package/esm2015/pipes/format-number/format-number.pipe.js +2 -2
- package/esm2015/pipes/format-phone/format-phone.pipe.js +4 -4
- package/esm2015/pipes/month/month.pipe.js +2 -2
- package/esm2015/pipes/order-week-days/order-week-days.pipe.js +2 -2
- package/esm2015/providers/is-mobile-resolution.provider.js +2 -2
- package/esm2015/providers/mode.provider.js +2 -2
- package/esm2015/services/breakpoint.service.js +3 -3
- package/esm2015/services/format-date.service.js +5 -5
- package/esm2015/services/hint.service.js +3 -3
- package/esm2015/services/night-theme.service.js +5 -5
- package/esm2015/services/svg.service.js +5 -5
- package/esm2015/services/visual-viewport.service.js +3 -3
- package/esm2015/tokens/animation-options.js +2 -2
- package/esm2015/tokens/common-icon.js +5 -5
- package/esm2015/tokens/data-list-accessor.js +2 -2
- package/esm2015/tokens/data-list-host.js +2 -2
- package/esm2015/tokens/day-type-handler.js +2 -2
- package/esm2015/tokens/document-or-shadow-root.js +2 -2
- package/esm2015/tokens/element-ref.js +2 -2
- package/esm2015/tokens/i18n.js +7 -7
- package/esm2015/tokens/icon-place.js +2 -2
- package/esm2015/tokens/is-mobile-resolution.js +2 -2
- package/esm2015/tokens/legacy-mask.js +2 -2
- package/esm2015/tokens/mode.js +2 -2
- package/esm2015/tokens/notification-options.js +9 -9
- package/esm2015/tokens/option-content.js +2 -2
- package/esm2015/tokens/reduced-motion.js +2 -2
- package/esm2015/tokens/sanitizer.js +2 -2
- package/esm2015/tokens/selection-stream.js +2 -2
- package/esm2015/tokens/spin-icons.js +3 -3
- package/esm2015/tokens/textfield-host.js +2 -2
- package/esm2015/tokens/theme.js +2 -2
- package/esm2015/tokens/value-accessor.js +2 -2
- package/esm2015/tokens/viewport.js +2 -2
- 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-word-range.js +5 -5
- package/esm2015/utils/dom/process-icon.js +11 -11
- package/esm2015/utils/format/format-number.js +4 -4
- package/esm2015/utils/format/format-phone.js +9 -9
- package/esm2015/utils/format/get-fractional-part-padded.js +2 -2
- 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/mask/create-auto-corrected-money-pipe.js +11 -11
- package/esm2015/utils/mask/create-correction-mask.js +3 -3
- package/esm2015/utils/mask/create-number-mask.js +13 -13
- 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/miscellaneous/get-border.js +3 -3
- package/esm2015/utils/miscellaneous/icons-path-factory.js +3 -3
- package/esm2015/utils/miscellaneous/is-obscured.js +2 -2
- package/esm2015/utils/miscellaneous/is-presumed-html-string.js +2 -2
- package/esm2015/utils/miscellaneous/size-bigger.js +2 -2
- package/fesm2015/taiga-ui-core-abstract.js +2 -2
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-animations.js +146 -146
- package/fesm2015/taiga-ui-core-animations.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-alert.js +3 -3
- package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +1 -1
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +9 -9
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -3
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +59 -59
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-constants.js +31 -31
- package/fesm2015/taiga-ui-core-constants.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +3 -3
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-enums.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 +1 -1
- package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-flag.js +4 -4
- package/fesm2015/taiga-ui-core-pipes-flag.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-date.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-number.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-phone.js +3 -3
- package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-month.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-order-week-days.js +1 -1
- package/fesm2015/taiga-ui-core-pipes-order-week-days.js.map +1 -1
- package/fesm2015/taiga-ui-core-providers.js +2 -2
- package/fesm2015/taiga-ui-core-providers.js.map +1 -1
- package/fesm2015/taiga-ui-core-services.js +18 -18
- package/fesm2015/taiga-ui-core-services.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +38 -38
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +19 -19
- package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-format.js +15 -15
- package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-mask.js +27 -27
- package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js +7 -7
- package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DEFAULT_ICONS_PATH, TUI_CACHE_BUSTING_PAYLOAD } from '@taiga-ui/core/constants';
|
|
2
2
|
export function tuiIconsPathFactory(staticPath) {
|
|
3
|
-
const base = staticPath.endsWith(
|
|
3
|
+
const base = staticPath.endsWith('/') ? staticPath : `${staticPath}/`;
|
|
4
4
|
return name => {
|
|
5
|
-
if (name.startsWith(
|
|
5
|
+
if (name.startsWith('tuiIcon')) {
|
|
6
6
|
return `${base}${name}.svg${TUI_CACHE_BUSTING_PAYLOAD}#${name}`;
|
|
7
7
|
}
|
|
8
8
|
return DEFAULT_ICONS_PATH(name);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# s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k6IFR1aVN0cmluZ0hhbmRsZXI8c3RyaW5nPiB7XG4gICAgY29uc3QgYmFzZSA9IHN0YXRpY1BhdGguZW5kc1dpdGgoJy8nKSA/IHN0YXRpY1BhdGggOiBgJHtzdGF0aWNQYXRofS9gO1xuXG4gICAgcmV0dXJuIG5hbWUgPT4ge1xuICAgICAgICBpZiAobmFtZS5zdGFydHNXaXRoKCd0dWlJY29uJykpIHtcbiAgICAgICAgICAgIHJldHVybiBgJHtiYXNlfSR7bmFtZX0uc3ZnJHtUVUlfQ0FDSEVfQlVTVElOR19QQVlMT0FEfSMke25hbWV9YDtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBERUZBVUxUX0lDT05TX1BBVEgobmFtZSk7XG4gICAgfTtcbn1cbiJdfQ==
|
|
@@ -2,8 +2,8 @@ import { tuiGetElementObscures } from '@taiga-ui/cdk';
|
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export function tuiIsObscured(el, exceptSelector =
|
|
5
|
+
export function tuiIsObscured(el, exceptSelector = 'tui-hints-host') {
|
|
6
6
|
var _a;
|
|
7
7
|
return !!((_a = tuiGetElementObscures(el)) === null || _a === void 0 ? void 0 : _a.some(el => !el.closest(exceptSelector)));
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtb2JzY3VyZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL21pc2NlbGxhbmVvdXMvaXMtb2JzY3VyZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLHFCQUFxQixFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXBEOztHQUVHO0FBQ0gsTUFBTSxVQUFVLGFBQWEsQ0FDekIsRUFBZSxFQUNmLGNBQWMsR0FBRyxnQkFBZ0I7O0lBRWpDLE9BQU8sQ0FBQyxDQUFDLENBQUEsTUFBQSxxQkFBcUIsQ0FBQyxFQUFFLENBQUMsMENBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsT0FBTyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUEsQ0FBQztBQUNoRixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHt0dWlHZXRFbGVtZW50T2JzY3VyZXN9IGZyb20gJ0B0YWlnYS11aS9jZGsnO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgZnVuY3Rpb24gdHVpSXNPYnNjdXJlZChcbiAgICBlbDogSFRNTEVsZW1lbnQsXG4gICAgZXhjZXB0U2VsZWN0b3IgPSAndHVpLWhpbnRzLWhvc3QnLFxuKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuICEhdHVpR2V0RWxlbWVudE9ic2N1cmVzKGVsKT8uc29tZShlbCA9PiAhZWwuY2xvc2VzdChleGNlcHRTZWxlY3RvcikpO1xufVxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function tuiIsPresumedHTMLString(candidate) {
|
|
2
2
|
const trimmed = candidate.trim();
|
|
3
|
-
return trimmed.startsWith(
|
|
3
|
+
return trimmed.startsWith('<') && trimmed.endsWith('>');
|
|
4
4
|
}
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtcHJlc3VtZWQtaHRtbC1zdHJpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL21pc2NlbGxhbmVvdXMvaXMtcHJlc3VtZWQtaHRtbC1zdHJpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxVQUFVLHVCQUF1QixDQUFDLFNBQWlCO0lBQ3JELE1BQU0sT0FBTyxHQUFHLFNBQVMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUVqQyxPQUFPLE9BQU8sQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUM1RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIHR1aUlzUHJlc3VtZWRIVE1MU3RyaW5nKGNhbmRpZGF0ZTogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgY29uc3QgdHJpbW1lZCA9IGNhbmRpZGF0ZS50cmltKCk7XG5cbiAgICByZXR1cm4gdHJpbW1lZC5zdGFydHNXaXRoKCc8JykgJiYgdHJpbW1lZC5lbmRzV2l0aCgnPicpO1xufVxuIl19
|
|
@@ -13,7 +13,7 @@ const SIZES = {
|
|
|
13
13
|
* @param size size that we need to compare
|
|
14
14
|
* @param biggerThanSize size to compare with, 's' by default
|
|
15
15
|
*/
|
|
16
|
-
export function tuiSizeBigger(size, biggerThanSize =
|
|
16
|
+
export function tuiSizeBigger(size, biggerThanSize = 's') {
|
|
17
17
|
return SIZES[size] > SIZES[biggerThanSize];
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2l6ZS1iaWdnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3V0aWxzL21pc2NlbGxhbmVvdXMvc2l6ZS1iaWdnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxLQUFLLEdBQTRDO0lBQ25ELEdBQUcsRUFBRSx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hYTCB8IFR1aVNpemVYWFMgPSAncycsXG4pOiBib29sZWFuIHtcbiAgICByZXR1cm4gU0laRVNbc2l6ZV0gPiBTSVpFU1tiaWdnZXJUaGFuU2l6ZV07XG59XG4iXX0=
|
|
@@ -76,11 +76,11 @@ class AbstractTuiTextfieldHost {
|
|
|
76
76
|
return this.host.computedFocusable;
|
|
77
77
|
}
|
|
78
78
|
get inputMode() {
|
|
79
|
-
return
|
|
79
|
+
return 'text';
|
|
80
80
|
}
|
|
81
81
|
get value() {
|
|
82
82
|
var _a;
|
|
83
|
-
return ((_a = this.host.value) === null || _a === void 0 ? void 0 : _a.toString()) ||
|
|
83
|
+
return ((_a = this.host.value) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
84
84
|
}
|
|
85
85
|
process(_input) { }
|
|
86
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-abstract.js","sources":["../../../projects/core/abstract/driver.ts","../../../projects/core/abstract/vehicle.ts","../../../projects/core/abstract/abstract-driver.directive.ts","../../../projects/core/abstract/abstract-textfield-host.ts","../../../projects/core/abstract/position-accessor.ts","../../../projects/core/abstract/rect-accessor.ts","../../../projects/core/abstract/taiga-ui-core-abstract.ts"],"sourcesContent":["import {ExistingProvider, Type} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class TuiDriver extends Observable<boolean> {\n abstract readonly type: string;\n}\n\nexport function tuiAsDriver(useExisting: Type<TuiDriver>): ExistingProvider {\n return {\n provide: TuiDriver,\n multi: true,\n useExisting,\n };\n}\n","import {ExistingProvider, Type} from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class TuiVehicle {\n abstract readonly type: string;\n abstract toggle(value: boolean): void;\n}\n\nexport function tuiAsVehicle(useExisting: Type<TuiVehicle>): ExistingProvider {\n return {\n provide: TuiVehicle,\n multi: true,\n useExisting,\n };\n}\n","import {Directive, Inject, OnInit, Self} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, takeUntil} from 'rxjs/operators';\n\nimport {TuiDriver} from './driver';\nimport {TuiVehicle} from './vehicle';\n\n@Directive()\nexport abstract class AbstractTuiDriverDirective implements OnInit {\n abstract type: string;\n\n constructor(\n @Self() @Inject(TuiDestroyService) private readonly destroy$: Observable<unknown>,\n @Inject(TuiDriver) private readonly drivers: TuiDriver[],\n @Inject(TuiVehicle) private readonly vehicles: TuiVehicle[],\n ) {}\n\n ngOnInit(): void {\n const vehicle = this.vehicles.find(({type}) => type === this.type);\n\n merge(...this.drivers.filter(({type}) => type === this.type))\n .pipe(distinctUntilChanged(), takeUntil(this.destroy$))\n .subscribe(value => {\n vehicle?.toggle(value);\n });\n }\n}\n","import {Directive, Inject} from '@angular/core';\nimport {AbstractTuiControl} from '@taiga-ui/cdk';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\n@Directive()\nexport abstract class AbstractTuiTextfieldHost<T extends AbstractTuiControl<any>>\n implements TuiTextfieldHost\n{\n constructor(@Inject(AbstractTuiControl) protected readonly host: T) {}\n\n get readOnly(): boolean {\n return this.host.readOnly;\n }\n\n get disabled(): boolean {\n return this.host.computedDisabled;\n }\n\n get invalid(): boolean {\n return this.host.computedInvalid;\n }\n\n get focusable(): boolean {\n return this.host.computedFocusable;\n }\n\n get inputMode(): TuiTextfieldHost['inputMode'] {\n return
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-abstract.js","sources":["../../../projects/core/abstract/driver.ts","../../../projects/core/abstract/vehicle.ts","../../../projects/core/abstract/abstract-driver.directive.ts","../../../projects/core/abstract/abstract-textfield-host.ts","../../../projects/core/abstract/position-accessor.ts","../../../projects/core/abstract/rect-accessor.ts","../../../projects/core/abstract/taiga-ui-core-abstract.ts"],"sourcesContent":["import {ExistingProvider, Type} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class TuiDriver extends Observable<boolean> {\n abstract readonly type: string;\n}\n\nexport function tuiAsDriver(useExisting: Type<TuiDriver>): ExistingProvider {\n return {\n provide: TuiDriver,\n multi: true,\n useExisting,\n };\n}\n","import {ExistingProvider, Type} from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class TuiVehicle {\n abstract readonly type: string;\n abstract toggle(value: boolean): void;\n}\n\nexport function tuiAsVehicle(useExisting: Type<TuiVehicle>): ExistingProvider {\n return {\n provide: TuiVehicle,\n multi: true,\n useExisting,\n };\n}\n","import {Directive, Inject, OnInit, Self} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {distinctUntilChanged, takeUntil} from 'rxjs/operators';\n\nimport {TuiDriver} from './driver';\nimport {TuiVehicle} from './vehicle';\n\n@Directive()\nexport abstract class AbstractTuiDriverDirective implements OnInit {\n abstract type: string;\n\n constructor(\n @Self() @Inject(TuiDestroyService) private readonly destroy$: Observable<unknown>,\n @Inject(TuiDriver) private readonly drivers: TuiDriver[],\n @Inject(TuiVehicle) private readonly vehicles: TuiVehicle[],\n ) {}\n\n ngOnInit(): void {\n const vehicle = this.vehicles.find(({type}) => type === this.type);\n\n merge(...this.drivers.filter(({type}) => type === this.type))\n .pipe(distinctUntilChanged(), takeUntil(this.destroy$))\n .subscribe(value => {\n vehicle?.toggle(value);\n });\n }\n}\n","import {Directive, Inject} from '@angular/core';\nimport {AbstractTuiControl} from '@taiga-ui/cdk';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\n@Directive()\nexport abstract class AbstractTuiTextfieldHost<T extends AbstractTuiControl<any>>\n implements TuiTextfieldHost\n{\n constructor(@Inject(AbstractTuiControl) protected readonly host: T) {}\n\n get readOnly(): boolean {\n return this.host.readOnly;\n }\n\n get disabled(): boolean {\n return this.host.computedDisabled;\n }\n\n get invalid(): boolean {\n return this.host.computedInvalid;\n }\n\n get focusable(): boolean {\n return this.host.computedFocusable;\n }\n\n get inputMode(): TuiTextfieldHost['inputMode'] {\n return 'text';\n }\n\n get value(): string {\n return this.host.value?.toString() || '';\n }\n\n abstract onValueChange(value: string): void;\n\n process(_input: HTMLInputElement): void {}\n}\n","import {ExistingProvider, FactoryProvider, SkipSelf, Type} from '@angular/core';\nimport {TuiPoint} from '@taiga-ui/core/types';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class TuiPositionAccessor {\n abstract readonly type: string;\n abstract getPosition(rect: ClientRect): TuiPoint;\n}\n\nexport function tuiPositionAccessorFor(type: string): FactoryProvider {\n return {\n provide: TuiPositionAccessor,\n deps: [[new SkipSelf(), TuiPositionAccessor]],\n useFactory: (accessors: readonly TuiPositionAccessor[]) =>\n accessors.find(accessor => accessor.type === type),\n };\n}\n\nexport function tuiAsPositionAccessor(\n useExisting: Type<TuiPositionAccessor>,\n): ExistingProvider {\n return {\n provide: TuiPositionAccessor,\n multi: true,\n useExisting,\n };\n}\n","import {ExistingProvider, FactoryProvider, SkipSelf, Type} from '@angular/core';\n\n// TODO: Rename to getBoundingClientRect to match the DOM API\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class TuiRectAccessor {\n abstract readonly type: string;\n abstract getClientRect(): ClientRect;\n}\n\nexport function tuiRectAccessorFor(\n type: string,\n fallback: Type<TuiRectAccessor>,\n): FactoryProvider {\n return {\n provide: TuiRectAccessor,\n deps: [[new SkipSelf(), TuiRectAccessor], fallback],\n useFactory: tuiFallbackRectAccessor(type),\n };\n}\n\nexport function tuiFallbackRectAccessor(\n type: string,\n): (accessors: readonly TuiRectAccessor[], fallback: TuiRectAccessor) => TuiRectAccessor {\n return (accessors, fallback) =>\n accessors.find(accessor => accessor !== fallback && accessor.type === type) ||\n fallback;\n}\n\nexport function tuiAsRectAccessor(useExisting: Type<TuiRectAccessor>): ExistingProvider {\n return {\n provide: TuiRectAccessor,\n multi: true,\n useExisting,\n };\n}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AAE,QAAQ,CAAC;AACnD,QAAA,UAAU,EAAE,uBAAuB,CAAC,IAAI,CAAC;KAC5C,CAAC;AACN,CAAC;AAEK,SAAU,uBAAuB,CACnC,IAAY,EAAA;IAEZ,OAAO,CAAC,SAAS,EAAE,QAAQ,KACvB,SAAS,CAAC,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI,CAAC;AAC3E,QAAA,QAAQ,CAAC;AACjB,CAAC;AAEK,SAAU,iBAAiB,CAAC,WAAkC,EAAA;IAChE,OAAO;AACH,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,KAAK,EAAE,IAAI;QACX,WAAW;KACd,CAAC;AACN;;AClCA;;AAEG;;;;"}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { trigger, transition, style, animate, query, stagger } from '@angular/animations';
|
|
2
2
|
|
|
3
|
-
const TRANSITION =
|
|
3
|
+
const TRANSITION = '{{duration}}ms ease-in-out';
|
|
4
4
|
const DURATION = { params: { duration: 300 } };
|
|
5
5
|
const STAGGER = 300;
|
|
6
|
-
const tuiHeightCollapse = trigger(
|
|
7
|
-
transition(
|
|
8
|
-
transition(
|
|
6
|
+
const tuiHeightCollapse = trigger('tuiHeightCollapse', [
|
|
7
|
+
transition(':enter', [style({ height: 0 }), animate(TRANSITION, style({ height: '*' }))], DURATION),
|
|
8
|
+
transition(':leave', [style({ height: '*' }), animate(TRANSITION, style({ height: 0 }))], DURATION),
|
|
9
9
|
]);
|
|
10
|
-
const tuiHeightCollapseList = trigger(
|
|
11
|
-
transition(
|
|
12
|
-
query(
|
|
10
|
+
const tuiHeightCollapseList = trigger('tuiHeightCollapseList', [
|
|
11
|
+
transition('* => *', [
|
|
12
|
+
query(':enter', [
|
|
13
13
|
style({ height: 0 }),
|
|
14
|
-
stagger(STAGGER, [animate(TRANSITION, style({ height:
|
|
14
|
+
stagger(STAGGER, [animate(TRANSITION, style({ height: '*' }))]),
|
|
15
15
|
], {
|
|
16
16
|
optional: true,
|
|
17
17
|
}),
|
|
18
|
-
query(
|
|
19
|
-
style({ height:
|
|
18
|
+
query(':leave', [
|
|
19
|
+
style({ height: '*' }),
|
|
20
20
|
stagger(STAGGER, [animate(TRANSITION, style({ height: 0 }))]),
|
|
21
21
|
], {
|
|
22
22
|
optional: true,
|
|
23
23
|
}),
|
|
24
24
|
], DURATION),
|
|
25
25
|
]);
|
|
26
|
-
const tuiWidthCollapse = trigger(
|
|
27
|
-
transition(
|
|
28
|
-
transition(
|
|
26
|
+
const tuiWidthCollapse = trigger('tuiWidthCollapse', [
|
|
27
|
+
transition(':enter', [style({ width: 0 }), animate(TRANSITION, style({ width: '*' }))], DURATION),
|
|
28
|
+
transition(':leave', [style({ width: '*' }), animate(TRANSITION, style({ width: 0 }))], DURATION),
|
|
29
29
|
]);
|
|
30
|
-
const tuiWidthCollapseList = trigger(
|
|
31
|
-
transition(
|
|
32
|
-
query(
|
|
30
|
+
const tuiWidthCollapseList = trigger('tuiWidthCollapseList', [
|
|
31
|
+
transition('* => *', [
|
|
32
|
+
query(':enter', [
|
|
33
33
|
style({ width: 0 }),
|
|
34
|
-
stagger(STAGGER, [animate(TRANSITION, style({ width:
|
|
34
|
+
stagger(STAGGER, [animate(TRANSITION, style({ width: '*' }))]),
|
|
35
35
|
], {
|
|
36
36
|
optional: true,
|
|
37
37
|
}),
|
|
38
|
-
query(
|
|
39
|
-
style({ width:
|
|
38
|
+
query(':leave', [
|
|
39
|
+
style({ width: '*' }),
|
|
40
40
|
stagger(STAGGER, [animate(TRANSITION, style({ width: 0 }))]),
|
|
41
41
|
], {
|
|
42
42
|
optional: true,
|
|
43
43
|
}),
|
|
44
44
|
], DURATION),
|
|
45
45
|
]);
|
|
46
|
-
const tuiFadeIn = trigger(
|
|
47
|
-
transition(
|
|
48
|
-
transition(
|
|
46
|
+
const tuiFadeIn = trigger('tuiFadeIn', [
|
|
47
|
+
transition(':enter', [style({ opacity: 0 }), animate(TRANSITION, style({ opacity: 1 }))], DURATION),
|
|
48
|
+
transition(':leave', [style({ opacity: 1 }), animate(TRANSITION, style({ opacity: 0 }))], DURATION),
|
|
49
49
|
]);
|
|
50
|
-
const tuiFadeInList = trigger(
|
|
51
|
-
transition(
|
|
52
|
-
query(
|
|
50
|
+
const tuiFadeInList = trigger('tuiFadeInList', [
|
|
51
|
+
transition('* => *', [
|
|
52
|
+
query(':enter', [
|
|
53
53
|
style({ opacity: 0 }),
|
|
54
54
|
stagger(STAGGER, [animate(TRANSITION, style({ opacity: 1 }))]),
|
|
55
55
|
], {
|
|
56
56
|
optional: true,
|
|
57
57
|
}),
|
|
58
|
-
query(
|
|
58
|
+
query(':leave', [
|
|
59
59
|
style({ opacity: 1 }),
|
|
60
60
|
stagger(STAGGER, [animate(TRANSITION, style({ opacity: 0 }))]),
|
|
61
61
|
], {
|
|
@@ -63,192 +63,192 @@ const tuiFadeInList = trigger(`tuiFadeInList`, [
|
|
|
63
63
|
}),
|
|
64
64
|
], DURATION),
|
|
65
65
|
]);
|
|
66
|
-
const tuiFadeInTop = trigger(
|
|
67
|
-
transition(
|
|
68
|
-
style({ transform:
|
|
69
|
-
animate(TRANSITION, style({ transform:
|
|
66
|
+
const tuiFadeInTop = trigger('tuiFadeInTop', [
|
|
67
|
+
transition(':enter', [
|
|
68
|
+
style({ transform: 'translateY(-10px)', opacity: 0 }),
|
|
69
|
+
animate(TRANSITION, style({ transform: 'translateY(0)', opacity: 1 })),
|
|
70
70
|
], DURATION),
|
|
71
|
-
transition(
|
|
72
|
-
style({ transform:
|
|
73
|
-
animate(TRANSITION, style({ transform:
|
|
71
|
+
transition(':leave', [
|
|
72
|
+
style({ transform: 'translateY(0)', opacity: 1 }),
|
|
73
|
+
animate(TRANSITION, style({ transform: 'translateY(-10px)', opacity: 0 })),
|
|
74
74
|
], DURATION),
|
|
75
75
|
]);
|
|
76
|
-
const tuiFadeInBottom = trigger(
|
|
77
|
-
transition(
|
|
78
|
-
style({ transform:
|
|
79
|
-
animate(TRANSITION, style({ transform:
|
|
76
|
+
const tuiFadeInBottom = trigger('tuiFadeInBottom', [
|
|
77
|
+
transition(':enter', [
|
|
78
|
+
style({ transform: 'translateY(10px)', opacity: 0 }),
|
|
79
|
+
animate(TRANSITION, style({ transform: 'translateY(0)', opacity: 1 })),
|
|
80
80
|
], DURATION),
|
|
81
|
-
transition(
|
|
82
|
-
style({ transform:
|
|
83
|
-
animate(TRANSITION, style({ transform:
|
|
81
|
+
transition(':leave', [
|
|
82
|
+
style({ transform: 'translateY(0)', opacity: 1 }),
|
|
83
|
+
animate(TRANSITION, style({ transform: 'translateY(10px)', opacity: 0 })),
|
|
84
84
|
], DURATION),
|
|
85
85
|
]);
|
|
86
|
-
const tuiDropdownAnimation = trigger(
|
|
87
|
-
transition(
|
|
88
|
-
style({ transform:
|
|
89
|
-
animate(TRANSITION, style({ transform:
|
|
86
|
+
const tuiDropdownAnimation = trigger('tuiDropdownAnimation', [
|
|
87
|
+
transition(':enter', [
|
|
88
|
+
style({ transform: 'translateY(-10px)', opacity: 0 }),
|
|
89
|
+
animate(TRANSITION, style({ transform: 'translateY(0)', opacity: 1 })),
|
|
90
90
|
], DURATION),
|
|
91
|
-
transition(
|
|
92
|
-
style({ transform:
|
|
93
|
-
animate(TRANSITION, style({ transform:
|
|
91
|
+
transition(':leave', [
|
|
92
|
+
style({ transform: 'translateY(0)', opacity: 1 }),
|
|
93
|
+
animate(TRANSITION, style({ transform: 'translateY(-10px)', opacity: 0 })),
|
|
94
94
|
], DURATION),
|
|
95
95
|
]);
|
|
96
|
-
const tuiScaleIn = trigger(
|
|
97
|
-
transition(
|
|
98
|
-
style({ transform:
|
|
99
|
-
animate(TRANSITION, style({ transform:
|
|
96
|
+
const tuiScaleIn = trigger('tuiScaleIn', [
|
|
97
|
+
transition(':enter', [
|
|
98
|
+
style({ transform: 'scale(0)' }),
|
|
99
|
+
animate(TRANSITION, style({ transform: 'scale(1)' })),
|
|
100
100
|
], DURATION),
|
|
101
|
-
transition(
|
|
102
|
-
style({ transform:
|
|
103
|
-
animate(TRANSITION, style({ transform:
|
|
101
|
+
transition(':leave', [
|
|
102
|
+
style({ transform: 'scale(1)' }),
|
|
103
|
+
animate(TRANSITION, style({ transform: 'scale(0)' })),
|
|
104
104
|
], DURATION),
|
|
105
105
|
]);
|
|
106
|
-
const tuiPop = trigger(
|
|
107
|
-
transition(
|
|
108
|
-
style({ transform:
|
|
109
|
-
animate(TRANSITION, style({ transform:
|
|
110
|
-
animate(TRANSITION, style({ transform:
|
|
106
|
+
const tuiPop = trigger('tuiPop', [
|
|
107
|
+
transition(':enter', [
|
|
108
|
+
style({ transform: 'scale(0)' }),
|
|
109
|
+
animate(TRANSITION, style({ transform: 'scale(1.1)' })),
|
|
110
|
+
animate(TRANSITION, style({ transform: 'scale(1)' })),
|
|
111
111
|
], DURATION),
|
|
112
|
-
transition(
|
|
113
|
-
style({ transform:
|
|
114
|
-
animate(TRANSITION, style({ transform:
|
|
115
|
-
animate(TRANSITION, style({ transform:
|
|
112
|
+
transition(':leave', [
|
|
113
|
+
style({ transform: 'scale(1)' }),
|
|
114
|
+
animate(TRANSITION, style({ transform: 'scale(1.1)' })),
|
|
115
|
+
animate(TRANSITION, style({ transform: 'scale(0)' })),
|
|
116
116
|
], DURATION),
|
|
117
117
|
]);
|
|
118
|
-
const tuiScaleInList = trigger(
|
|
119
|
-
transition(
|
|
120
|
-
query(
|
|
121
|
-
style({ transform:
|
|
118
|
+
const tuiScaleInList = trigger('tuiScaleInList', [
|
|
119
|
+
transition('* => *', [
|
|
120
|
+
query(':enter', [
|
|
121
|
+
style({ transform: 'scale(0)' }),
|
|
122
122
|
stagger(STAGGER, [
|
|
123
|
-
animate(TRANSITION, style({ transform:
|
|
123
|
+
animate(TRANSITION, style({ transform: 'scale(1)' })),
|
|
124
124
|
]),
|
|
125
125
|
], { optional: true }),
|
|
126
|
-
query(
|
|
127
|
-
style({ transform:
|
|
126
|
+
query(':leave', [
|
|
127
|
+
style({ transform: 'scale(1)' }),
|
|
128
128
|
stagger(STAGGER, [
|
|
129
|
-
animate(TRANSITION, style({ transform:
|
|
129
|
+
animate(TRANSITION, style({ transform: 'scale(0)' })),
|
|
130
130
|
]),
|
|
131
131
|
], { optional: true }),
|
|
132
132
|
], DURATION),
|
|
133
133
|
]);
|
|
134
|
-
const tuiSlideIn = trigger(
|
|
135
|
-
transition(
|
|
136
|
-
style({ transform:
|
|
137
|
-
animate(TRANSITION, style({ transform:
|
|
134
|
+
const tuiSlideIn = trigger('tuiSlideIn', [
|
|
135
|
+
transition('* => left', [
|
|
136
|
+
style({ transform: 'translateX(-100%)' }),
|
|
137
|
+
animate(TRANSITION, style({ transform: 'translateX(0)' })),
|
|
138
138
|
], DURATION),
|
|
139
|
-
transition(
|
|
140
|
-
style({ transform:
|
|
141
|
-
animate(TRANSITION, style({ transform:
|
|
139
|
+
transition('left => *', [
|
|
140
|
+
style({ transform: 'translateX(0)' }),
|
|
141
|
+
animate(TRANSITION, style({ transform: 'translateX(-100%)' })),
|
|
142
142
|
], DURATION),
|
|
143
|
-
transition(
|
|
144
|
-
style({ transform:
|
|
145
|
-
animate(TRANSITION, style({ transform:
|
|
143
|
+
transition('* => right', [
|
|
144
|
+
style({ transform: 'translateX(100%)' }),
|
|
145
|
+
animate(TRANSITION, style({ transform: 'translateX(0)' })),
|
|
146
146
|
], DURATION),
|
|
147
|
-
transition(
|
|
148
|
-
style({ transform:
|
|
149
|
-
animate(TRANSITION, style({ transform:
|
|
147
|
+
transition('right => *', [
|
|
148
|
+
style({ transform: 'translateX(0)' }),
|
|
149
|
+
animate(TRANSITION, style({ transform: 'translateX(100%)' })),
|
|
150
150
|
], DURATION),
|
|
151
151
|
]);
|
|
152
|
-
const tuiSlideInLeft = trigger(
|
|
153
|
-
transition(
|
|
154
|
-
style({ transform:
|
|
155
|
-
animate(TRANSITION, style({ transform:
|
|
152
|
+
const tuiSlideInLeft = trigger('tuiSlideInLeft', [
|
|
153
|
+
transition(':enter', [
|
|
154
|
+
style({ transform: 'translateX(-100%)' }),
|
|
155
|
+
animate(TRANSITION, style({ transform: 'translateX(0)' })),
|
|
156
156
|
], DURATION),
|
|
157
|
-
transition(
|
|
158
|
-
style({ transform:
|
|
159
|
-
animate(TRANSITION, style({ transform:
|
|
157
|
+
transition(':leave', [
|
|
158
|
+
style({ transform: 'translateX(0)' }),
|
|
159
|
+
animate(TRANSITION, style({ transform: 'translateX(-100%)' })),
|
|
160
160
|
], DURATION),
|
|
161
161
|
]);
|
|
162
|
-
const tuiSlideInLeftList = trigger(
|
|
163
|
-
transition(
|
|
164
|
-
query(
|
|
165
|
-
style({ transform:
|
|
162
|
+
const tuiSlideInLeftList = trigger('tuiSlideInLeftList', [
|
|
163
|
+
transition('* => *', [
|
|
164
|
+
query(':enter', [
|
|
165
|
+
style({ transform: 'translateX(-100%)' }),
|
|
166
166
|
stagger(STAGGER, [
|
|
167
|
-
animate(TRANSITION, style({ transform:
|
|
167
|
+
animate(TRANSITION, style({ transform: 'translateX(0)' })),
|
|
168
168
|
]),
|
|
169
169
|
], { optional: true }),
|
|
170
|
-
query(
|
|
171
|
-
style({ transform:
|
|
170
|
+
query(':leave', [
|
|
171
|
+
style({ transform: 'translateX(0)' }),
|
|
172
172
|
stagger(STAGGER, [
|
|
173
|
-
animate(TRANSITION, style({ transform:
|
|
173
|
+
animate(TRANSITION, style({ transform: 'translateX(-100%)' })),
|
|
174
174
|
]),
|
|
175
175
|
], { optional: true }),
|
|
176
176
|
], DURATION),
|
|
177
177
|
]);
|
|
178
|
-
const tuiSlideInRight = trigger(
|
|
179
|
-
transition(
|
|
180
|
-
style({ transform:
|
|
181
|
-
animate(TRANSITION, style({ transform:
|
|
178
|
+
const tuiSlideInRight = trigger('tuiSlideInRight', [
|
|
179
|
+
transition(':enter', [
|
|
180
|
+
style({ transform: 'translateX(100%)' }),
|
|
181
|
+
animate(TRANSITION, style({ transform: 'translateX(0)' })),
|
|
182
182
|
], DURATION),
|
|
183
|
-
transition(
|
|
184
|
-
style({ transform:
|
|
185
|
-
animate(TRANSITION, style({ transform:
|
|
183
|
+
transition(':leave', [
|
|
184
|
+
style({ transform: 'translateX(0)' }),
|
|
185
|
+
animate(TRANSITION, style({ transform: 'translateX(100%)' })),
|
|
186
186
|
], DURATION),
|
|
187
187
|
]);
|
|
188
|
-
const tuiSlideInRightList = trigger(
|
|
189
|
-
transition(
|
|
190
|
-
query(
|
|
191
|
-
style({ transform:
|
|
188
|
+
const tuiSlideInRightList = trigger('tuiSlideInRightList', [
|
|
189
|
+
transition('* => *', [
|
|
190
|
+
query(':enter', [
|
|
191
|
+
style({ transform: 'translateX(100%)' }),
|
|
192
192
|
stagger(STAGGER, [
|
|
193
|
-
animate(TRANSITION, style({ transform:
|
|
193
|
+
animate(TRANSITION, style({ transform: 'translateX(0)' })),
|
|
194
194
|
]),
|
|
195
195
|
], { optional: true }),
|
|
196
|
-
query(
|
|
197
|
-
style({ transform:
|
|
196
|
+
query(':leave', [
|
|
197
|
+
style({ transform: 'translateX(0)' }),
|
|
198
198
|
stagger(STAGGER, [
|
|
199
|
-
animate(TRANSITION, style({ transform:
|
|
199
|
+
animate(TRANSITION, style({ transform: 'translateX(100%)' })),
|
|
200
200
|
]),
|
|
201
201
|
], { optional: true }),
|
|
202
202
|
], DURATION),
|
|
203
203
|
]);
|
|
204
|
-
const tuiSlideInTop = trigger(
|
|
205
|
-
transition(
|
|
206
|
-
style({ transform:
|
|
207
|
-
animate(TRANSITION, style({ transform:
|
|
208
|
-
], { params: { end: 0, start:
|
|
209
|
-
transition(
|
|
210
|
-
style({ transform:
|
|
211
|
-
animate(TRANSITION, style({ transform:
|
|
212
|
-
], { params: { end: 0, start:
|
|
204
|
+
const tuiSlideInTop = trigger('tuiSlideInTop', [
|
|
205
|
+
transition(':enter', [
|
|
206
|
+
style({ transform: 'translate3d(0,{{start}},0)' }),
|
|
207
|
+
animate(TRANSITION, style({ transform: 'translate3d(0,{{end}},0)' })),
|
|
208
|
+
], { params: { end: 0, start: '100%', duration: 300 } }),
|
|
209
|
+
transition(':leave', [
|
|
210
|
+
style({ transform: 'translate3d(0,{{end}},0)' }),
|
|
211
|
+
animate(TRANSITION, style({ transform: 'translate3d(0,{{start}},0)' })),
|
|
212
|
+
], { params: { end: 0, start: '100%', duration: 300 } }),
|
|
213
213
|
]);
|
|
214
|
-
const tuiSlideInTopList = trigger(
|
|
215
|
-
transition(
|
|
216
|
-
query(
|
|
217
|
-
style({ transform:
|
|
214
|
+
const tuiSlideInTopList = trigger('tuiSlideInTopList', [
|
|
215
|
+
transition('* => *', [
|
|
216
|
+
query(':enter', [
|
|
217
|
+
style({ transform: 'translateY(100%)' }),
|
|
218
218
|
stagger(STAGGER, [
|
|
219
|
-
animate(TRANSITION, style({ transform:
|
|
219
|
+
animate(TRANSITION, style({ transform: 'translateY(0)' })),
|
|
220
220
|
]),
|
|
221
221
|
], { optional: true }),
|
|
222
|
-
query(
|
|
223
|
-
style({ transform:
|
|
222
|
+
query(':leave', [
|
|
223
|
+
style({ transform: 'translateY(0)' }),
|
|
224
224
|
stagger(STAGGER, [
|
|
225
|
-
animate(TRANSITION, style({ transform:
|
|
225
|
+
animate(TRANSITION, style({ transform: 'translateY(100%)' })),
|
|
226
226
|
]),
|
|
227
227
|
], { optional: true }),
|
|
228
228
|
], DURATION),
|
|
229
229
|
]);
|
|
230
|
-
const tuiSlideInBottom = trigger(
|
|
231
|
-
transition(
|
|
232
|
-
style({ transform:
|
|
233
|
-
animate(TRANSITION, style({ transform:
|
|
230
|
+
const tuiSlideInBottom = trigger('tuiSlideInBottom', [
|
|
231
|
+
transition(':enter', [
|
|
232
|
+
style({ transform: 'translateY(-100%)' }),
|
|
233
|
+
animate(TRANSITION, style({ transform: 'translateY(0)' })),
|
|
234
234
|
], DURATION),
|
|
235
|
-
transition(
|
|
236
|
-
style({ transform:
|
|
237
|
-
animate(TRANSITION, style({ transform:
|
|
235
|
+
transition(':leave', [
|
|
236
|
+
style({ transform: 'translateY(0)' }),
|
|
237
|
+
animate(TRANSITION, style({ transform: 'translateY(-100%)' })),
|
|
238
238
|
], DURATION),
|
|
239
239
|
]);
|
|
240
|
-
const tuiSlideInBottomList = trigger(
|
|
241
|
-
transition(
|
|
242
|
-
query(
|
|
243
|
-
style({ transform:
|
|
240
|
+
const tuiSlideInBottomList = trigger('tuiSlideInBottomList', [
|
|
241
|
+
transition('* => *', [
|
|
242
|
+
query(':enter', [
|
|
243
|
+
style({ transform: 'translateY(-100%)' }),
|
|
244
244
|
stagger(STAGGER, [
|
|
245
|
-
animate(TRANSITION, style({ transform:
|
|
245
|
+
animate(TRANSITION, style({ transform: 'translateY(0)' })),
|
|
246
246
|
]),
|
|
247
247
|
], { optional: true }),
|
|
248
|
-
query(
|
|
249
|
-
style({ transform:
|
|
248
|
+
query(':leave', [
|
|
249
|
+
style({ transform: 'translateY(0)' }),
|
|
250
250
|
stagger(STAGGER, [
|
|
251
|
-
animate(TRANSITION, style({ transform:
|
|
251
|
+
animate(TRANSITION, style({ transform: 'translateY(-100%)' })),
|
|
252
252
|
]),
|
|
253
253
|
], { optional: true }),
|
|
254
254
|
], DURATION),
|