@taiga-ui/cdk 3.23.1 → 3.24.0-dev.main-cf04d14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/control.d.ts +3 -3
- package/abstract/dialog.directive.d.ts +1 -1
- package/abstract/index.d.ts +1 -0
- package/abstract/portal-host.d.ts +5 -5
- package/abstract/portal-service.d.ts +1 -1
- package/abstract/theme-switcher.d.ts +2 -2
- package/abstract/value-transformer.d.ts +4 -0
- package/bundles/taiga-ui-cdk-abstract.umd.js +38 -22
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-classes.umd.js +6 -1
- package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js +1 -1
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +9 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-date-time.umd.js +20 -16
- package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-decorators.umd.js +12 -10
- package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +62 -27
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-control.umd.js +82 -0
- package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +8 -8
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +20 -7
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +4 -4
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +9 -9
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +90 -0
- package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-directives.umd.js +16 -4
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +2 -2
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js +71 -0
- package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -0
- package/bundles/taiga-ui-cdk-pipes.umd.js +10 -4
- package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +19 -19
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +12 -13
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-browser.umd.js +7 -8
- package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +8 -8
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-focus.umd.js +6 -6
- package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js +1 -1
- package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-math.umd.js +17 -16
- package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +2 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/classes/assert.d.ts +5 -0
- package/constants/parent-animation.d.ts +7 -0
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/directives/active-zone/active-zone.directive.d.ts +2 -2
- package/directives/auto-focus/autofocus.options.d.ts +1 -1
- package/directives/auto-focus/handlers/abstract.handler.d.ts +3 -3
- package/directives/auto-focus/handlers/default.handler.d.ts +1 -1
- package/directives/auto-focus/handlers/ios.handler.d.ts +22 -2
- package/directives/auto-focus/handlers/sync.handler.d.ts +1 -1
- package/directives/checked/checked.directive.d.ts +2 -2
- package/directives/control/control.directive.d.ts +9 -0
- package/directives/control/control.module.d.ts +7 -0
- package/directives/control/index.d.ts +2 -0
- package/directives/control/package.json +10 -0
- package/directives/control/taiga-ui-cdk-directives-control.d.ts +5 -0
- package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
- package/directives/drag/drag.directive.d.ts +2 -2
- package/directives/focus-trap/focus-trap.directive.d.ts +3 -3
- package/directives/for-async/for-async.directive.d.ts +2 -0
- package/directives/hovered/hovered.service.d.ts +2 -2
- package/directives/index.d.ts +2 -0
- package/directives/media/media.directive.d.ts +2 -2
- package/directives/pressed/pressed.directive.d.ts +2 -2
- package/directives/prevent-default/prevent-default.directive.d.ts +2 -2
- package/directives/value-changes/index.d.ts +2 -0
- package/directives/value-changes/package.json +10 -0
- package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +5 -0
- package/directives/value-changes/value-changes.directive.d.ts +14 -0
- package/directives/value-changes/value-changes.module.d.ts +7 -0
- package/esm2015/abstract/control.js +17 -9
- package/esm2015/abstract/dialog.directive.js +3 -3
- package/esm2015/abstract/index.js +2 -1
- package/esm2015/abstract/portal-host.js +8 -8
- package/esm2015/abstract/portal-service.js +1 -1
- package/esm2015/abstract/theme-switcher.js +7 -7
- package/esm2015/abstract/value-transformer.js +3 -0
- package/esm2015/classes/assert.js +7 -2
- package/esm2015/components/alert-host/alert-host.component.js +2 -2
- package/esm2015/constants/parent-animation.js +8 -1
- package/esm2015/constants/version.js +2 -2
- package/esm2015/date-time/day-range.js +2 -2
- package/esm2015/date-time/day.js +7 -5
- package/esm2015/date-time/month-range.js +2 -2
- package/esm2015/date-time/month.js +3 -3
- package/esm2015/date-time/time.js +6 -4
- package/esm2015/date-time/year.js +6 -6
- package/esm2015/decorators/default-prop.js +10 -9
- package/esm2015/decorators/required-setter.js +4 -3
- package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
- package/esm2015/directives/auto-focus/autofocus.options.js +4 -4
- package/esm2015/directives/auto-focus/handlers/abstract.handler.js +5 -6
- package/esm2015/directives/auto-focus/handlers/default.handler.js +3 -3
- package/esm2015/directives/auto-focus/handlers/ios.handler.js +52 -17
- package/esm2015/directives/auto-focus/handlers/sync.handler.js +3 -3
- package/esm2015/directives/checked/checked.directive.js +4 -4
- package/esm2015/directives/control/control.directive.js +25 -0
- package/esm2015/directives/control/control.module.js +16 -0
- package/esm2015/directives/control/index.js +3 -0
- package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +5 -0
- package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
- package/esm2015/directives/drag/drag.directive.js +4 -4
- package/esm2015/directives/focus-trap/focus-trap.directive.js +9 -9
- package/esm2015/directives/for-async/for-async.directive.js +14 -5
- package/esm2015/directives/hovered/hovered.service.js +5 -5
- package/esm2015/directives/index.js +3 -1
- package/esm2015/directives/media/media.directive.js +10 -10
- package/esm2015/directives/pressed/pressed.directive.js +4 -4
- package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
- package/esm2015/directives/value-changes/index.js +3 -0
- package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +5 -0
- package/esm2015/directives/value-changes/value-changes.directive.js +39 -0
- package/esm2015/directives/value-changes/value-changes.module.js +16 -0
- package/esm2015/interfaces/aria-dialog-context.js +1 -1
- package/esm2015/interfaces/control-value-transformer.js +1 -1
- package/esm2015/interfaces/focusable-element-accessor.js +1 -1
- package/esm2015/observables/watch.js +3 -3
- package/esm2015/pipes/index.js +2 -1
- package/esm2015/pipes/replace/index.js +3 -0
- package/esm2015/pipes/replace/replace.module.js +16 -0
- package/esm2015/pipes/replace/replace.pipe.js +17 -0
- package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +5 -0
- package/esm2015/services/focus-visible.service.js +3 -3
- package/esm2015/services/obscured.service.js +3 -3
- package/esm2015/services/pan.service.js +5 -5
- package/esm2015/services/parents-scroll.service.js +4 -4
- package/esm2015/services/resize.service.js +4 -4
- package/esm2015/services/scroll.service.js +4 -4
- package/esm2015/services/swipe.service.js +3 -3
- package/esm2015/tokens/active-element.js +11 -12
- package/esm2015/tokens/window-height.js +3 -3
- package/esm2015/utils/browser/is-safari.js +8 -9
- package/esm2015/utils/dom/get-element-obscurers.js +6 -6
- package/esm2015/utils/dom/get-element-offset.js +2 -2
- package/esm2015/utils/dom/is-inside-iframe.js +3 -3
- package/esm2015/utils/focus/blur-native-focused.js +3 -3
- package/esm2015/utils/focus/get-native-focused.js +5 -5
- package/esm2015/utils/format/px.js +2 -2
- package/esm2015/utils/math/clamp.js +5 -5
- package/esm2015/utils/math/in-range.js +5 -5
- package/esm2015/utils/math/normalize-to-int-number.js +4 -4
- package/esm2015/utils/math/quantize.js +4 -4
- package/esm2015/utils/math/round.js +4 -3
- package/esm2015/utils/miscellaneous/ease-in-out-quad.js +3 -2
- package/fesm2015/taiga-ui-cdk-abstract.js +34 -24
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-classes.js +6 -1
- package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +9 -2
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-date-time.js +20 -16
- package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-decorators.js +12 -10
- package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +62 -28
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-control.js +45 -0
- package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +8 -8
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +13 -4
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +9 -9
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js +59 -0
- package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-directives.js +2 -0
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +2 -2
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-pipes-replace.js +37 -0
- package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -0
- package/fesm2015/taiga-ui-cdk-pipes.js +1 -0
- package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +19 -19
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +12 -13
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-browser.js +7 -8
- package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +8 -8
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-focus.js +6 -6
- package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js +1 -1
- package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-math.js +17 -16
- package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +2 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/interfaces/aria-dialog-context.d.ts +1 -1
- package/interfaces/control-value-transformer.d.ts +3 -0
- package/interfaces/focusable-element-accessor.d.ts +1 -0
- package/observables/watch.d.ts +1 -1
- package/package.json +2 -2
- package/pipes/index.d.ts +1 -0
- package/pipes/replace/index.d.ts +2 -0
- package/pipes/replace/package.json +10 -0
- package/pipes/replace/replace.module.d.ts +7 -0
- package/pipes/replace/replace.pipe.d.ts +7 -0
- package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +5 -0
- package/schematics/ng-update/v3/constants/deprecated-functions.js +0 -5
- package/schematics/ng-update/v3/index.js +2 -1
- package/schematics/ng-update/v3/steps/replace-functions.js +19 -0
- package/services/focus-visible.service.d.ts +1 -1
- package/services/obscured.service.d.ts +1 -1
- package/services/pan.service.d.ts +1 -1
- package/services/parents-scroll.service.d.ts +1 -1
- package/services/resize.service.d.ts +1 -1
- package/services/swipe.service.d.ts +1 -1
- package/utils/browser/is-safari.d.ts +1 -1
- package/utils/dom/is-inside-iframe.d.ts +1 -1
- package/utils/focus/blur-native-focused.d.ts +1 -1
- package/utils/focus/get-native-focused.d.ts +1 -1
@@ -5,9 +5,14 @@
|
|
5
5
|
})(this, (function (exports, constants) { 'use strict';
|
6
6
|
|
7
7
|
var tuiAssert = {
|
8
|
+
/**
|
9
|
+
* @deprecated:
|
10
|
+
* The current field no longer matters as
|
11
|
+
* it will not be provided in production
|
12
|
+
*/
|
8
13
|
enabled: false,
|
9
14
|
get assert() {
|
10
|
-
return
|
15
|
+
return ngDevMode
|
11
16
|
? Function.prototype.bind.call(console.assert, console)
|
12
17
|
: constants.EMPTY_FUNCTION;
|
13
18
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-classes.umd.js","sources":["../../../projects/cdk/classes/assert.ts","../../../projects/cdk/classes/validation-error.ts","../../../projects/cdk/classes/taiga-ui-cdk-classes.ts"],"sourcesContent":["import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\n\nexport const tuiAssert = {\n enabled: false,\n get assert(): (assertion: boolean, ...args: unknown[]) => void {\n return
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-classes.umd.js","sources":["../../../projects/cdk/classes/assert.ts","../../../projects/cdk/classes/validation-error.ts","../../../projects/cdk/classes/taiga-ui-cdk-classes.ts"],"sourcesContent":["import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\n\nexport const tuiAssert = {\n /**\n * @deprecated:\n * The current field no longer matters as\n * it will not be provided in production\n */\n enabled: false,\n get assert(): (assertion: boolean, ...args: unknown[]) => void {\n return ngDevMode\n ? Function.prototype.bind.call(console.assert, console)\n : EMPTY_FUNCTION;\n },\n};\n","import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport class TuiValidationError<T extends Record<string, any> = Record<string, unknown>> {\n constructor(\n readonly message: PolymorpheusContent<T>,\n readonly context: T = {} as T,\n ) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["EMPTY_FUNCTION"],"mappings":";;;;;;AAEa,QAAA,SAAS,GAAG;IACrB;;;;IAIG;IACH,IAAA,OAAO,EAAE,KAAK;IACd,IAAA,IAAI,MAAM,GAAA;IACN,QAAA,OAAO,SAAS;IACZ,cAAE,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC;kBACrDA,wBAAc,CAAC;SACxB;;;ACXL,QAAA,kBAAA,kBAAA,YAAA;QACI,SACa,kBAAA,CAAA,OAA+B,EAC/B,OAAoB,EAAA;IAApB,QAAA,IAAA,OAAA,KAAA,KAAA,CAAA,EAAA,EAAA,OAAoB,GAAA,EAAA,CAAA,EAAA;IADpB,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAwB;IAC/B,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAa;SAC7B;QACP,OAAA,kBAAA,CAAA;IAAA,CAAA,EAAA;;ICPD;;IAEG;;;;;;;;;;;"}
|
@@ -44,7 +44,7 @@
|
|
44
44
|
return TuiAlertHostComponent;
|
45
45
|
}());
|
46
46
|
TuiAlertHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiAlertHostComponent, deps: [{ token: tokens.TUI_ALERTS }, { token: i0.INJECTOR }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
47
|
-
TuiAlertHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiAlertHostComponent, selector: "tui-alert-host", ngImport: i0__namespace, template: "<div\n *ngFor=\"let alert$ of alerts\"\n class=\"t-
|
47
|
+
TuiAlertHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiAlertHostComponent, selector: "tui-alert-host", ngImport: i0__namespace, template: "<div\n *ngFor=\"let alert$ of alerts\"\n class=\"t-wrapper\"\n @tuiParentAnimation\n>\n <ng-container\n *ngFor=\"let item of alert$ | async\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper : mapper\"\n ></ng-container>\n</div>\n", styles: ["tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\n"], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }], pipes: { "tuiMapper": i2__namespace.TuiMapperPipe, "async": i1__namespace.AsyncPipe }, animations: [constants.TUI_PARENT_ANIMATION], changeDetection: i0__namespace.ChangeDetectionStrategy.Default, encapsulation: i0__namespace.ViewEncapsulation.None });
|
48
48
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiAlertHostComponent, decorators: [{
|
49
49
|
type: i0.Component,
|
50
50
|
args: [{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-components-alert-host.umd.js","sources":["../../../projects/cdk/components/alert-host/alert-host.component.ts","../../../projects/cdk/components/alert-host/alert-host.template.html","../../../projects/cdk/components/alert-host/alert-host.module.ts","../../../projects/cdk/components/alert-host/taiga-ui-cdk-components-alert-host.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n INJECTOR,\n Injector,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_ALERTS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog, TuiMapper} from '@taiga-ui/cdk/types';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-alert-host',\n templateUrl: './alert-host.template.html',\n styleUrls: ['./alert-host.style.less'],\n // So that we do not force OnPush on custom alerts\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n animations: [TUI_PARENT_ANIMATION],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAlertHostComponent<T extends TuiDialog<unknown, unknown>> {\n constructor(\n @Inject(TUI_ALERTS) readonly alerts: Array<Observable<readonly T[]>>,\n @Inject(INJECTOR) private readonly injector: Injector,\n ) {}\n\n readonly mapper: TuiMapper<unknown, Injector> = useValue =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","<div\n *ngFor=\"let alert$ of alerts\"\n class=\"t-
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-components-alert-host.umd.js","sources":["../../../projects/cdk/components/alert-host/alert-host.component.ts","../../../projects/cdk/components/alert-host/alert-host.template.html","../../../projects/cdk/components/alert-host/alert-host.module.ts","../../../projects/cdk/components/alert-host/taiga-ui-cdk-components-alert-host.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n INJECTOR,\n Injector,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PARENT_ANIMATION} from '@taiga-ui/cdk/constants';\nimport {TUI_ALERTS} from '@taiga-ui/cdk/tokens';\nimport {TuiDialog, TuiMapper} from '@taiga-ui/cdk/types';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-alert-host',\n templateUrl: './alert-host.template.html',\n styleUrls: ['./alert-host.style.less'],\n // So that we do not force OnPush on custom alerts\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n animations: [TUI_PARENT_ANIMATION],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiAlertHostComponent<T extends TuiDialog<unknown, unknown>> {\n constructor(\n @Inject(TUI_ALERTS) readonly alerts: Array<Observable<readonly T[]>>,\n @Inject(INJECTOR) private readonly injector: Injector,\n ) {}\n\n readonly mapper: TuiMapper<unknown, Injector> = useValue =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","<div\n *ngFor=\"let alert$ of alerts\"\n class=\"t-wrapper\"\n @tuiParentAnimation\n>\n <ng-container\n *ngFor=\"let item of alert$ | async\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper : mapper\"\n ></ng-container>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk/pipes';\n\nimport {TuiAlertHostComponent} from './alert-host.component';\n\n@NgModule({\n imports: [CommonModule, TuiMapperPipeModule],\n declarations: [TuiAlertHostComponent],\n exports: [TuiAlertHostComponent],\n})\nexport class TuiAlertHostModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Injector","POLYMORPHEUS_CONTEXT","TUI_ALERTS","INJECTOR","i0","i1","i2","TUI_PARENT_ANIMATION","Component","ChangeDetectionStrategy","ViewEncapsulation","Inject","CommonModule","TuiMapperPipeModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,QAAA,qBAAA,kBAAA,YAAA;QACI,SACiC,qBAAA,CAAA,MAAuC,EACjC,QAAkB,EAAA;YAFzD,IAGI,KAAA,GAAA,IAAA,CAAA;IAF6B,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAiC;IACjC,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;YAGhD,IAAM,CAAA,MAAA,GAAiC,UAAA,QAAQ,IACpD,OAAAA,WAAQ,CAAC,MAAM,CAAC;IACZ,YAAA,SAAS,EAAE;IACP,gBAAA;IACI,oBAAA,OAAO,EAAEC,mCAAoB;IAC7B,oBAAA,QAAQ,EAAA,QAAA;IACX,iBAAA;IACJ,aAAA;gBACD,MAAM,EAAE,KAAI,CAAC,QAAQ;aACxB,CAAC,CAAA,EAAA,CAAC;SAXH;;;6IAJK,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAElBC,iBAAU,EAAA,EAAA,EAAA,KAAA,EACVC,WAAQ,EAAA,CAAA,EAAA,MAAA,EAAAC,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAHX,qBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,E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Aa,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAC,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;IAAlB,kBAAA,CAAA,IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,kBAAkB,iBAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAD1BQ,eAAY,EAAEC,sBAAmB,aAEjC,qBAAqB,CAAA,EAAA,CAAA,CAAA;IAEtB,kBAAA,CAAA,IAAA,GAAAT,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,kBAAkB,EAJlB,OAAA,EAAA,CAAA,CAACQ,eAAY,EAAEC,sBAAmB,CAAC,CAAA,EAAA,CAAA,CAAA;sHAInC,kBAAkB,EAAA,UAAA,EAAA,CAAA;sBAL9BC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACN,oBAAA,OAAO,EAAE,CAACF,eAAY,EAAEC,sBAAmB,CAAC;wBAC5C,YAAY,EAAE,CAAC,qBAAqB,CAAC;wBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;qBACnC,CAAA;;;ICVD;;IAEG;;;;;;;;;;;"}
|
@@ -81,12 +81,19 @@
|
|
81
81
|
return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;
|
82
82
|
}
|
83
83
|
|
84
|
+
/**
|
85
|
+
* Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)
|
86
|
+
*/
|
84
87
|
var TUI_PARENT_ANIMATION = animations.trigger("tuiParentAnimation", [
|
85
88
|
animations.transition("* => void", [
|
86
89
|
animations.style({ overflow: "hidden" }),
|
87
90
|
animations.query(":scope > *", [animations.animateChild()], { optional: true }),
|
88
91
|
]),
|
89
92
|
]);
|
93
|
+
/**
|
94
|
+
* Add on parent to stop initial :enter animation for children
|
95
|
+
*/
|
96
|
+
var TUI_PARENT_STOP = animations.trigger("tuiParentStop", [animations.transition(":enter", [])]);
|
90
97
|
|
91
98
|
var POLLING_TIME = 1000 / 15;
|
92
99
|
|
@@ -160,7 +167,7 @@
|
|
160
167
|
*/
|
161
168
|
var CHAR_ZERO_WIDTH_SPACE = "\u200B";
|
162
169
|
|
163
|
-
var TUI_VERSION = "3.
|
170
|
+
var TUI_VERSION = "3.24.0";
|
164
171
|
|
165
172
|
/**
|
166
173
|
* Generated bundle index. Do not edit.
|
@@ -190,6 +197,7 @@
|
|
190
197
|
exports.TUI_DEFAULT_MATCHER = TUI_DEFAULT_MATCHER;
|
191
198
|
exports.TUI_DEFAULT_STRINGIFY = TUI_DEFAULT_STRINGIFY;
|
192
199
|
exports.TUI_PARENT_ANIMATION = TUI_PARENT_ANIMATION;
|
200
|
+
exports.TUI_PARENT_STOP = TUI_PARENT_STOP;
|
193
201
|
exports.TUI_STRICT_MATCHER = TUI_STRICT_MATCHER;
|
194
202
|
exports.TUI_VERSION = TUI_VERSION;
|
195
203
|
exports.svgNodeFilter = svgNodeFilter;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-constants.umd.js","sources":["../../../projects/cdk/constants/always-false-handler.ts","../../../projects/cdk/constants/always-true-handler.ts","../../../projects/cdk/constants/browser.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/stringify.ts","../../../projects/cdk/constants/matcher.ts","../../../projects/cdk/constants/parent-animation.ts","../../../projects/cdk/constants/polling-time.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","/**\n * @deprecated\n * TODO: drop support of legacy Edge (EdgeHTML) in v4.x\n */\nexport const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON() {\n return rect;\n },\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`* => void`, [\n style({overflow: `hidden`}),\n query(`:scope > *`, [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = `\\u00AB`;\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = `\\u00BB`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","export const TUI_VERSION = `3.
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-constants.umd.js","sources":["../../../projects/cdk/constants/always-false-handler.ts","../../../projects/cdk/constants/always-true-handler.ts","../../../projects/cdk/constants/browser.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/stringify.ts","../../../projects/cdk/constants/matcher.ts","../../../projects/cdk/constants/parent-animation.ts","../../../projects/cdk/constants/polling-time.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","/**\n * @deprecated\n * TODO: drop support of legacy Edge (EdgeHTML) in v4.x\n */\nexport const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON() {\n return rect;\n },\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\n/**\n * Add to enable child :leave animation (fixes https://github.com/angular/angular/issues/15753)\n */\nexport const TUI_PARENT_ANIMATION = trigger(`tuiParentAnimation`, [\n transition(`* => void`, [\n style({overflow: `hidden`}),\n query(`:scope > *`, [animateChild()], {optional: true}),\n ]),\n]);\n\n/**\n * Add on parent to stop initial :enter animation for children\n */\nexport const TUI_PARENT_STOP = trigger(`tuiParentStop`, [transition(`:enter`, [])]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n `ownerSVGElement` in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = `\\u00A0`;\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = `\\u2013`;\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = `\\u2014`;\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = `\\u00AB`;\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = `\\u00BB`;\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = `\\u002D`;\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `−`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = `\\u2212`;\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = `\\u002B`;\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = `\\u2022`;\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = `\\u2026`;\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = `\\u00A4`;\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = `\\u200B`;\n","export const TUI_VERSION = `3.24.0`;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["QueryList","trigger","transition","style","query","animateChild"],"mappings":";;;;;;IAAA;;IAEG;IACH;QACa,oBAAoB,GAAG,cAAa,OAAA,KAAK,CAAL;;ICJjD;;IAEG;IACH;QACa,mBAAmB,GAAG,cAAY,OAAA,IAAI,CAAJ;;ICJ/C;;;IAGG;AACI,QAAM,2BAA2B,GAAG;;ICF3C;;;;IAIG;AACU,QAAA,WAAW,GAAG,IAAIA,cAAS,GAAQ;AACzC,QAAM,WAAW,GAAO,GAAG;AACrB,QAAA,cAAc,GAA6B,YAAA,IAAS;IAEjE,IAAM,IAAI,GAAG;IACT,IAAA,MAAM,EAAE,CAAC;IACT,IAAA,MAAM,EAAE,CAAC;IACT,IAAA,IAAI,EAAE,CAAC;IACP,IAAA,KAAK,EAAE,CAAC;IACR,IAAA,GAAG,EAAE,CAAC;IACN,IAAA,KAAK,EAAE,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -376,7 +376,7 @@
|
|
376
376
|
var TuiYear = /** @class */ (function () {
|
377
377
|
function TuiYear(year) {
|
378
378
|
this.year = year;
|
379
|
-
classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
379
|
+
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
380
380
|
}
|
381
381
|
/**
|
382
382
|
* Checks year for validity
|
@@ -388,14 +388,14 @@
|
|
388
388
|
* Check if passed year is a leap year
|
389
389
|
*/
|
390
390
|
TuiYear.isLeapYear = function (year) {
|
391
|
-
classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
391
|
+
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
392
392
|
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
|
393
393
|
};
|
394
394
|
/**
|
395
395
|
* Returns amount of leap years from year 0 to the passed one
|
396
396
|
*/
|
397
397
|
TuiYear.getAbsoluteLeapYears = function (year) {
|
398
|
-
classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
398
|
+
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(year));
|
399
399
|
return Math.ceil(year / 400) + (Math.ceil(year / 4) - Math.ceil(year / 100));
|
400
400
|
};
|
401
401
|
TuiYear.lengthBetween = function (from, to) {
|
@@ -471,9 +471,9 @@
|
|
471
471
|
*/
|
472
472
|
TuiYear.prototype.append = function (_a) {
|
473
473
|
var _b = _a.year, year = _b === void 0 ? 0 : _b;
|
474
|
-
classes.tuiAssert.assert(Number.isInteger(year));
|
474
|
+
ngDevMode && classes.tuiAssert.assert(Number.isInteger(year));
|
475
475
|
var resultYear = this.year + year;
|
476
|
-
classes.tuiAssert.assert(TuiYear.isValidYear(resultYear));
|
476
|
+
ngDevMode && classes.tuiAssert.assert(TuiYear.isValidYear(resultYear));
|
477
477
|
return new TuiYear(resultYear);
|
478
478
|
};
|
479
479
|
TuiYear.prototype.toString = function () {
|
@@ -508,7 +508,7 @@
|
|
508
508
|
function TuiMonth(year, month) {
|
509
509
|
var _this = _super.call(this, year) || this;
|
510
510
|
_this.month = month;
|
511
|
-
classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
511
|
+
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
512
512
|
return _this;
|
513
513
|
}
|
514
514
|
/**
|
@@ -521,7 +521,7 @@
|
|
521
521
|
* Returns number of days in a month
|
522
522
|
*/
|
523
523
|
TuiMonth.getMonthDaysCount = function (month, isLeapYear) {
|
524
|
-
classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
|
524
|
+
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonthPart(month));
|
525
525
|
switch (month) {
|
526
526
|
case 1 /* February */:
|
527
527
|
return isLeapYear ? 29 : 28;
|
@@ -661,7 +661,7 @@
|
|
661
661
|
function TuiDay(year, month, day) {
|
662
662
|
var _this = _super.call(this, year, month) || this;
|
663
663
|
_this.day = day;
|
664
|
-
classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
|
664
|
+
ngDevMode && classes.tuiAssert.assert(TuiDay.isValidDay(year, month, day));
|
665
665
|
return _this;
|
666
666
|
}
|
667
667
|
/**
|
@@ -729,7 +729,8 @@
|
|
729
729
|
};
|
730
730
|
TuiDay.parseRawDateString = function (date, dateMode) {
|
731
731
|
if (dateMode === void 0) { dateMode = "DMY"; }
|
732
|
-
|
732
|
+
ngDevMode &&
|
733
|
+
classes.tuiAssert.assert(date.length === DATE_FILLER_LENGTH, "[parseRawDateString]: wrong date string length");
|
733
734
|
switch (dateMode) {
|
734
735
|
case "YMD":
|
735
736
|
return {
|
@@ -786,7 +787,7 @@
|
|
786
787
|
return new TuiDay(year, month, day);
|
787
788
|
};
|
788
789
|
TuiDay.normalizeDayPart = function (day, month, year) {
|
789
|
-
classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
790
|
+
ngDevMode && classes.tuiAssert.assert(TuiMonth.isValidMonth(year, month));
|
790
791
|
var monthDaysCount = TuiMonth.getMonthDaysCount(month, TuiYear.isLeapYear(year));
|
791
792
|
return math.tuiNormalizeToIntNumber(day, 1, monthDaysCount);
|
792
793
|
};
|
@@ -910,7 +911,8 @@
|
|
910
911
|
* Returns formatted whole date
|
911
912
|
*/
|
912
913
|
TuiDay.prototype.getFormattedDay = function (dateFormat, separator) {
|
913
|
-
|
914
|
+
ngDevMode &&
|
915
|
+
classes.tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
|
914
916
|
var dd = this.formattedDayPart;
|
915
917
|
var mm = this.formattedMonthPart;
|
916
918
|
var yyyy = this.formattedYear;
|
@@ -954,7 +956,7 @@
|
|
954
956
|
function TuiMonthRange(from, to) {
|
955
957
|
this.from = from;
|
956
958
|
this.to = to;
|
957
|
-
classes.tuiAssert.assert(from.monthSameOrBefore(to));
|
959
|
+
ngDevMode && classes.tuiAssert.assert(from.monthSameOrBefore(to));
|
958
960
|
}
|
959
961
|
TuiMonthRange.sort = function (month1, month2) {
|
960
962
|
return month1.monthSameOrBefore(month2)
|
@@ -986,7 +988,7 @@
|
|
986
988
|
var _this = _super.call(this, from, to) || this;
|
987
989
|
_this.from = from;
|
988
990
|
_this.to = to;
|
989
|
-
classes.tuiAssert.assert(from.daySameOrBefore(to));
|
991
|
+
ngDevMode && classes.tuiAssert.assert(from.daySameOrBefore(to));
|
990
992
|
return _this;
|
991
993
|
}
|
992
994
|
/**
|
@@ -1074,7 +1076,8 @@
|
|
1074
1076
|
this.minutes = minutes;
|
1075
1077
|
this.seconds = seconds;
|
1076
1078
|
this.ms = ms;
|
1077
|
-
|
1079
|
+
ngDevMode &&
|
1080
|
+
classes.tuiAssert.assert(TuiTime.isValidTime(hours, minutes, seconds, ms), "Time must be real, but got:", hours, minutes, seconds, ms);
|
1078
1081
|
}
|
1079
1082
|
/**
|
1080
1083
|
* Checks if time is valid
|
@@ -1109,8 +1112,9 @@
|
|
1109
1112
|
* Calculates TuiTime from milliseconds
|
1110
1113
|
*/
|
1111
1114
|
TuiTime.fromAbsoluteMilliseconds = function (milliseconds) {
|
1112
|
-
classes.tuiAssert.assert(Number.isInteger(milliseconds));
|
1113
|
-
|
1115
|
+
ngDevMode && classes.tuiAssert.assert(Number.isInteger(milliseconds));
|
1116
|
+
ngDevMode &&
|
1117
|
+
classes.tuiAssert.assert(math.tuiInRange(milliseconds, 0, MILLISECONDS_IN_DAY), "Milliseconds must be below " + MILLISECONDS_IN_DAY + " (milliseconds in a day).");
|
1114
1118
|
var hours = Math.floor(milliseconds / MILLISECONDS_IN_HOUR);
|
1115
1119
|
var minutes = Math.floor((milliseconds % MILLISECONDS_IN_HOUR) / MILLISECONDS_IN_MINUTE);
|
1116
1120
|
var seconds = Math.floor(((milliseconds % MILLISECONDS_IN_HOUR) % MILLISECONDS_IN_MINUTE) / 1000) || 0;
|