@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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
var TUI_REDUCED_MOTION = cdk.tuiCreateTokenFromFactory(function () {
|
|
8
8
|
var _a, _b, _c;
|
|
9
|
-
return (_c = (_b = (_a = core.inject(common.DOCUMENT).defaultView) === null || _a === void 0 ? void 0 : _a.matchMedia) === null || _b === void 0 ? void 0 : _b.call(_a,
|
|
9
|
+
return (_c = (_b = (_a = core.inject(common.DOCUMENT).defaultView) === null || _a === void 0 ? void 0 : _a.matchMedia) === null || _b === void 0 ? void 0 : _b.call(_a, '(prefers-reduced-motion: reduce)').matches) !== null && _c !== void 0 ? _c : false;
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
var TUI_ANIMATIONS_DEFAULT_DURATION = 300;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* Options for Taiga UI animations
|
|
20
20
|
*/
|
|
21
21
|
var TUI_ANIMATION_OPTIONS = cdk.tuiCreateTokenFromFactory(function () { return ({
|
|
22
|
-
value:
|
|
22
|
+
value: '',
|
|
23
23
|
params: {
|
|
24
24
|
duration: core.inject(TUI_ANIMATIONS_DURATION),
|
|
25
25
|
},
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
var TUI_ASSERT_ENABLED = cdk.tuiCreateTokenFromFactory(function () { return core.isDevMode(); });
|
|
36
36
|
|
|
37
37
|
var COMMON_ICONS = {
|
|
38
|
-
check:
|
|
39
|
-
close:
|
|
40
|
-
error:
|
|
41
|
-
more:
|
|
38
|
+
check: 'tuiIconCheck',
|
|
39
|
+
close: 'tuiIconClose',
|
|
40
|
+
error: 'tuiIconAlertCircle',
|
|
41
|
+
more: 'tuiIconChevronRight',
|
|
42
42
|
};
|
|
43
43
|
var TUI_COMMON_ICONS = cdk.tuiCreateToken(COMMON_ICONS);
|
|
44
44
|
function tuiCommonIconsProvider(icons) {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
/**
|
|
49
49
|
* Accessor for data-list options
|
|
50
50
|
*/
|
|
51
|
-
var TUI_DATA_LIST_ACCESSOR = new core.InjectionToken(
|
|
51
|
+
var TUI_DATA_LIST_ACCESSOR = new core.InjectionToken('[TUI_DATA_LIST_ACCESSOR]');
|
|
52
52
|
function tuiAsDataListAccessor(useExisting) {
|
|
53
53
|
return {
|
|
54
54
|
provide: TUI_DATA_LIST_ACCESSOR,
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
/**
|
|
60
60
|
* DataList controller
|
|
61
61
|
*/
|
|
62
|
-
var TUI_DATA_LIST_HOST = new core.InjectionToken(
|
|
62
|
+
var TUI_DATA_LIST_HOST = new core.InjectionToken('[TUI_DATA_LIST_HOST]');
|
|
63
63
|
function tuiAsDataListHost(useExisting) {
|
|
64
64
|
return {
|
|
65
65
|
provide: TUI_DATA_LIST_HOST,
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
/**
|
|
71
71
|
* Token for adding data-type attribute to calendar cell
|
|
72
72
|
*/
|
|
73
|
-
var TUI_DAY_TYPE_HANDLER = cdk.tuiCreateToken(function (day) { return day.isWeekend ?
|
|
73
|
+
var TUI_DAY_TYPE_HANDLER = cdk.tuiCreateToken(function (day) { return day.isWeekend ? 'weekend' : 'weekday'; });
|
|
74
74
|
|
|
75
|
-
var TUI_DOCUMENT_OR_SHADOW_ROOT = new core.InjectionToken(
|
|
75
|
+
var TUI_DOCUMENT_OR_SHADOW_ROOT = new core.InjectionToken('[TUI_DOCUMENT_OR_SHADOW_ROOT]');
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* ElementRef when you cannot use @Input for single time injection
|
|
79
79
|
*/
|
|
80
|
-
var TUI_ELEMENT_REF = new core.InjectionToken(
|
|
80
|
+
var TUI_ELEMENT_REF = new core.InjectionToken('[TUI_ELEMENT_REF]');
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* The first day of the week index
|
|
@@ -87,29 +87,29 @@
|
|
|
87
87
|
/**
|
|
88
88
|
* Localized months names
|
|
89
89
|
*/
|
|
90
|
-
var TUI_MONTHS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n(
|
|
90
|
+
var TUI_MONTHS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n('months'));
|
|
91
91
|
/**
|
|
92
92
|
* i18n 'close' word
|
|
93
93
|
*/
|
|
94
|
-
var TUI_CLOSE_WORD = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n(
|
|
94
|
+
var TUI_CLOSE_WORD = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n('close'));
|
|
95
95
|
/**
|
|
96
96
|
* i18n 'Nothing found' message
|
|
97
97
|
*/
|
|
98
|
-
var TUI_NOTHING_FOUND_MESSAGE = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n(
|
|
98
|
+
var TUI_NOTHING_FOUND_MESSAGE = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n('nothingFoundMessage'));
|
|
99
99
|
/**
|
|
100
100
|
* i18n of error message
|
|
101
101
|
*/
|
|
102
|
-
var TUI_DEFAULT_ERROR_MESSAGE = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n(
|
|
102
|
+
var TUI_DEFAULT_ERROR_MESSAGE = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n('defaultErrorMessage'));
|
|
103
103
|
/**
|
|
104
104
|
* spin i18n texts
|
|
105
105
|
*/
|
|
106
|
-
var TUI_SPIN_TEXTS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n(
|
|
106
|
+
var TUI_SPIN_TEXTS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n('spinTexts'));
|
|
107
107
|
/**
|
|
108
108
|
* calendars i18n texts
|
|
109
109
|
*/
|
|
110
|
-
var TUI_SHORT_WEEK_DAYS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n(
|
|
110
|
+
var TUI_SHORT_WEEK_DAYS = cdk.tuiCreateTokenFromFactory(i18n.tuiExtractI18n('shortWeekDays'));
|
|
111
111
|
|
|
112
|
-
var TUI_DEFAULT_ICONS_PLACE =
|
|
112
|
+
var TUI_DEFAULT_ICONS_PLACE = 'assets/taiga-ui/icons';
|
|
113
113
|
/**
|
|
114
114
|
* Path to icons
|
|
115
115
|
* @deprecated Use {@link TUI_SVG_OPTIONS} instead
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
var TUI_IS_MOBILE_RES = cdk.tuiCreateTokenFromFactory(function () {
|
|
145
145
|
var win = core.inject(common$1.WINDOW);
|
|
146
146
|
var media = core.inject(TUI_MEDIA);
|
|
147
|
-
return cdk.tuiTypedFromEvent(win,
|
|
147
|
+
return cdk.tuiTypedFromEvent(win, 'resize').pipe(operators.share(), operators.startWith(null), operators.map(function () { return utils.tuiIsMobile(win, media); }), operators.distinctUntilChanged(), cdk.tuiZoneOptimized(core.inject(core.NgZone)));
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
/**
|
|
@@ -152,32 +152,32 @@
|
|
|
152
152
|
* @deprecated
|
|
153
153
|
* Don't use it! Will be removed after changing the mask.
|
|
154
154
|
*/
|
|
155
|
-
var TUI_LEGACY_MASK = new core.InjectionToken(
|
|
155
|
+
var TUI_LEGACY_MASK = new core.InjectionToken('[TUI_LEGACY_MASK]');
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* Mode stream for private providers
|
|
159
159
|
*/
|
|
160
|
-
var TUI_MODE = new core.InjectionToken(
|
|
160
|
+
var TUI_MODE = new core.InjectionToken('[TUI_MODE]');
|
|
161
161
|
|
|
162
162
|
/** @deprecated remove export */
|
|
163
163
|
var STATUS_ICON = {
|
|
164
|
-
info:
|
|
165
|
-
success:
|
|
166
|
-
error:
|
|
167
|
-
warning:
|
|
168
|
-
neutral:
|
|
164
|
+
info: 'tuiIconInfo',
|
|
165
|
+
success: 'tuiIconCheckCircle',
|
|
166
|
+
error: 'tuiIconXCircle',
|
|
167
|
+
warning: 'tuiIconAlertCircle',
|
|
168
|
+
neutral: 'tuiIconInfo',
|
|
169
169
|
};
|
|
170
170
|
/** Default values for the notification options. */
|
|
171
171
|
var TUI_NOTIFICATION_DEFAULT_OPTIONS = {
|
|
172
172
|
autoClose: 3000,
|
|
173
|
-
label:
|
|
174
|
-
status:
|
|
173
|
+
label: '',
|
|
174
|
+
status: 'info',
|
|
175
175
|
hasCloseButton: true,
|
|
176
176
|
icon: function (_a) {
|
|
177
177
|
var $implicit = _a.$implicit;
|
|
178
178
|
return STATUS_ICON[$implicit];
|
|
179
179
|
},
|
|
180
|
-
size:
|
|
180
|
+
size: 'm',
|
|
181
181
|
hasIcon: true,
|
|
182
182
|
defaultAutoCloseTime: 3000,
|
|
183
183
|
};
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
/**
|
|
206
206
|
* Content for tuiOption component
|
|
207
207
|
*/
|
|
208
|
-
var TUI_OPTION_CONTENT = new core.InjectionToken(
|
|
208
|
+
var TUI_OPTION_CONTENT = new core.InjectionToken('[TUI_OPTION_CONTENT]');
|
|
209
209
|
function tuiAsOptionContent(useValue) {
|
|
210
210
|
return {
|
|
211
211
|
provide: TUI_OPTION_CONTENT,
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
|
|
216
|
+
/*! *****************************************************************************
|
|
217
217
|
Copyright (c) Microsoft Corporation.
|
|
218
218
|
|
|
219
219
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
228
228
|
PERFORMANCE OF THIS SOFTWARE.
|
|
229
229
|
***************************************************************************** */
|
|
230
|
-
/* global Reflect, Promise
|
|
230
|
+
/* global Reflect, Promise */
|
|
231
231
|
var extendStatics = function (d, b) {
|
|
232
232
|
extendStatics = Object.setPrototypeOf ||
|
|
233
233
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -280,64 +280,6 @@
|
|
|
280
280
|
function __param(paramIndex, decorator) {
|
|
281
281
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
282
282
|
}
|
|
283
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
284
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
285
|
-
throw new TypeError("Function expected"); return f; }
|
|
286
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
287
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
288
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
289
|
-
var _, done = false;
|
|
290
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
291
|
-
var context = {};
|
|
292
|
-
for (var p in contextIn)
|
|
293
|
-
context[p] = p === "access" ? {} : contextIn[p];
|
|
294
|
-
for (var p in contextIn.access)
|
|
295
|
-
context.access[p] = contextIn.access[p];
|
|
296
|
-
context.addInitializer = function (f) { if (done)
|
|
297
|
-
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
298
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
299
|
-
if (kind === "accessor") {
|
|
300
|
-
if (result === void 0)
|
|
301
|
-
continue;
|
|
302
|
-
if (result === null || typeof result !== "object")
|
|
303
|
-
throw new TypeError("Object expected");
|
|
304
|
-
if (_ = accept(result.get))
|
|
305
|
-
descriptor.get = _;
|
|
306
|
-
if (_ = accept(result.set))
|
|
307
|
-
descriptor.set = _;
|
|
308
|
-
if (_ = accept(result.init))
|
|
309
|
-
initializers.unshift(_);
|
|
310
|
-
}
|
|
311
|
-
else if (_ = accept(result)) {
|
|
312
|
-
if (kind === "field")
|
|
313
|
-
initializers.unshift(_);
|
|
314
|
-
else
|
|
315
|
-
descriptor[key] = _;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
if (target)
|
|
319
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
320
|
-
done = true;
|
|
321
|
-
}
|
|
322
|
-
;
|
|
323
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
324
|
-
var useValue = arguments.length > 2;
|
|
325
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
326
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
327
|
-
}
|
|
328
|
-
return useValue ? value : void 0;
|
|
329
|
-
}
|
|
330
|
-
;
|
|
331
|
-
function __propKey(x) {
|
|
332
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
333
|
-
}
|
|
334
|
-
;
|
|
335
|
-
function __setFunctionName(f, name, prefix) {
|
|
336
|
-
if (typeof name === "symbol")
|
|
337
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
338
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
339
|
-
}
|
|
340
|
-
;
|
|
341
283
|
function __metadata(metadataKey, metadataValue) {
|
|
342
284
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
343
285
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -369,7 +311,7 @@
|
|
|
369
311
|
function step(op) {
|
|
370
312
|
if (f)
|
|
371
313
|
throw new TypeError("Generator is already executing.");
|
|
372
|
-
while (
|
|
314
|
+
while (_)
|
|
373
315
|
try {
|
|
374
316
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
375
317
|
return t;
|
|
@@ -433,11 +375,7 @@
|
|
|
433
375
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
434
376
|
if (k2 === undefined)
|
|
435
377
|
k2 = k;
|
|
436
|
-
|
|
437
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
438
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
439
|
-
}
|
|
440
|
-
Object.defineProperty(o, k2, desc);
|
|
378
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
441
379
|
}) : (function (o, m, k, k2) {
|
|
442
380
|
if (k2 === undefined)
|
|
443
381
|
k2 = k;
|
|
@@ -510,7 +448,7 @@
|
|
|
510
448
|
ar[i] = from[i];
|
|
511
449
|
}
|
|
512
450
|
}
|
|
513
|
-
return to.concat(ar ||
|
|
451
|
+
return to.concat(ar || from);
|
|
514
452
|
}
|
|
515
453
|
function __await(v) {
|
|
516
454
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -537,7 +475,7 @@
|
|
|
537
475
|
function __asyncDelegator(o) {
|
|
538
476
|
var i, p;
|
|
539
477
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
540
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
478
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
541
479
|
}
|
|
542
480
|
function __asyncValues(o) {
|
|
543
481
|
if (!Symbol.asyncIterator)
|
|
@@ -592,90 +530,6 @@
|
|
|
592
530
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
593
531
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
594
532
|
}
|
|
595
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
596
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
597
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
598
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
599
|
-
}
|
|
600
|
-
function __addDisposableResource(env, value, async) {
|
|
601
|
-
if (value !== null && value !== void 0) {
|
|
602
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
603
|
-
throw new TypeError("Object expected.");
|
|
604
|
-
var dispose;
|
|
605
|
-
if (async) {
|
|
606
|
-
if (!Symbol.asyncDispose)
|
|
607
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
608
|
-
dispose = value[Symbol.asyncDispose];
|
|
609
|
-
}
|
|
610
|
-
if (dispose === void 0) {
|
|
611
|
-
if (!Symbol.dispose)
|
|
612
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
|
613
|
-
dispose = value[Symbol.dispose];
|
|
614
|
-
}
|
|
615
|
-
if (typeof dispose !== "function")
|
|
616
|
-
throw new TypeError("Object not disposable.");
|
|
617
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
618
|
-
}
|
|
619
|
-
else if (async) {
|
|
620
|
-
env.stack.push({ async: true });
|
|
621
|
-
}
|
|
622
|
-
return value;
|
|
623
|
-
}
|
|
624
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
625
|
-
var e = new Error(message);
|
|
626
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
627
|
-
};
|
|
628
|
-
function __disposeResources(env) {
|
|
629
|
-
function fail(e) {
|
|
630
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
631
|
-
env.hasError = true;
|
|
632
|
-
}
|
|
633
|
-
function next() {
|
|
634
|
-
while (env.stack.length) {
|
|
635
|
-
var rec = env.stack.pop();
|
|
636
|
-
try {
|
|
637
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
638
|
-
if (rec.async)
|
|
639
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
640
|
-
}
|
|
641
|
-
catch (e) {
|
|
642
|
-
fail(e);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
if (env.hasError)
|
|
646
|
-
throw env.error;
|
|
647
|
-
}
|
|
648
|
-
return next();
|
|
649
|
-
}
|
|
650
|
-
var tslib_es6 = {
|
|
651
|
-
__extends: __extends,
|
|
652
|
-
__assign: __assign,
|
|
653
|
-
__rest: __rest,
|
|
654
|
-
__decorate: __decorate,
|
|
655
|
-
__param: __param,
|
|
656
|
-
__metadata: __metadata,
|
|
657
|
-
__awaiter: __awaiter,
|
|
658
|
-
__generator: __generator,
|
|
659
|
-
__createBinding: __createBinding,
|
|
660
|
-
__exportStar: __exportStar,
|
|
661
|
-
__values: __values,
|
|
662
|
-
__read: __read,
|
|
663
|
-
__spread: __spread,
|
|
664
|
-
__spreadArrays: __spreadArrays,
|
|
665
|
-
__spreadArray: __spreadArray,
|
|
666
|
-
__await: __await,
|
|
667
|
-
__asyncGenerator: __asyncGenerator,
|
|
668
|
-
__asyncDelegator: __asyncDelegator,
|
|
669
|
-
__asyncValues: __asyncValues,
|
|
670
|
-
__makeTemplateObject: __makeTemplateObject,
|
|
671
|
-
__importStar: __importStar,
|
|
672
|
-
__importDefault: __importDefault,
|
|
673
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
674
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
675
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
676
|
-
__addDisposableResource: __addDisposableResource,
|
|
677
|
-
__disposeResources: __disposeResources,
|
|
678
|
-
};
|
|
679
533
|
|
|
680
534
|
var convertToSundayFirstWeekFormat = function (weekDaysNames) {
|
|
681
535
|
var sundayIndex = weekDaysNames.length - 1;
|
|
@@ -695,7 +549,7 @@
|
|
|
695
549
|
/**
|
|
696
550
|
* A custom Sanitizer to sanitize source before inlining
|
|
697
551
|
*/
|
|
698
|
-
var TUI_SANITIZER = new core.InjectionToken(
|
|
552
|
+
var TUI_SANITIZER = new core.InjectionToken('[TUI_SANITIZER]');
|
|
699
553
|
|
|
700
554
|
/**
|
|
701
555
|
* @deprecated import from `@taiga-ui/cdk` instead
|
|
@@ -707,12 +561,12 @@
|
|
|
707
561
|
*/
|
|
708
562
|
var TUI_SELECTION_STREAM = cdk.tuiCreateTokenFromFactory(function () {
|
|
709
563
|
var doc = core.inject(common.DOCUMENT);
|
|
710
|
-
return rxjs.merge(cdk.tuiTypedFromEvent(doc,
|
|
564
|
+
return rxjs.merge(cdk.tuiTypedFromEvent(doc, 'selectionchange'), cdk.tuiTypedFromEvent(doc, 'mouseup'), cdk.tuiTypedFromEvent(doc, 'mousedown').pipe(operators.switchMap(function () { return cdk.tuiTypedFromEvent(doc, 'mousemove').pipe(operators.takeUntil(cdk.tuiTypedFromEvent(doc, 'mouseup'))); })), cdk.tuiTypedFromEvent(doc, 'keydown'), cdk.tuiTypedFromEvent(doc, 'keyup')).pipe(operators.share());
|
|
711
565
|
});
|
|
712
566
|
|
|
713
567
|
var TUI_SPIN_ICONS = cdk.tuiCreateToken({
|
|
714
|
-
decrement:
|
|
715
|
-
increment:
|
|
568
|
+
decrement: 'tuiIconChevronLeft',
|
|
569
|
+
increment: 'tuiIconChevronRight',
|
|
716
570
|
});
|
|
717
571
|
|
|
718
572
|
/**
|
|
@@ -737,7 +591,7 @@
|
|
|
737
591
|
/**
|
|
738
592
|
* An interface to communicate with textfield based controls
|
|
739
593
|
*/
|
|
740
|
-
var TUI_TEXTFIELD_HOST = new core.InjectionToken(
|
|
594
|
+
var TUI_TEXTFIELD_HOST = new core.InjectionToken('[TUI_TEXTFIELD_HOST]');
|
|
741
595
|
function tuiAsTextfieldHost(useExisting) {
|
|
742
596
|
return {
|
|
743
597
|
provide: TUI_TEXTFIELD_HOST,
|
|
@@ -745,12 +599,12 @@
|
|
|
745
599
|
};
|
|
746
600
|
}
|
|
747
601
|
|
|
748
|
-
var TUI_THEME = cdk.tuiCreateToken(
|
|
602
|
+
var TUI_THEME = cdk.tuiCreateToken('Taiga');
|
|
749
603
|
|
|
750
604
|
/**
|
|
751
605
|
* Buffer token to pass NG_VALUE_ACCESSOR to a different Injector
|
|
752
606
|
*/
|
|
753
|
-
var TUI_VALUE_ACCESSOR = new core.InjectionToken(
|
|
607
|
+
var TUI_VALUE_ACCESSOR = new core.InjectionToken('[TUI_VALUE_ACCESSOR]');
|
|
754
608
|
|
|
755
609
|
/**
|
|
756
610
|
* Viewport accessor
|
|
@@ -758,7 +612,7 @@
|
|
|
758
612
|
var TUI_VIEWPORT = cdk.tuiCreateTokenFromFactory(function () {
|
|
759
613
|
var win = core.inject(common$1.WINDOW);
|
|
760
614
|
return {
|
|
761
|
-
type:
|
|
615
|
+
type: 'viewport',
|
|
762
616
|
getClientRect: function () {
|
|
763
617
|
return {
|
|
764
618
|
top: 0,
|