@taiga-ui/kit 5.24.0 → 5.25.0-canary.3fb67e2
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/components/input-date-time/input-date-time.directive.d.ts +5 -2
- package/components/input-time/index.d.ts +1 -0
- package/components/input-time/input-time.directive.d.ts +3 -1
- package/components/input-time/time-filler.d.ts +3 -0
- package/components/routable-dialog/generate-dialogable-route.d.ts +6 -1
- package/components/textarea/textarea.component.d.ts +2 -2
- package/directives/index.d.ts +1 -0
- package/directives/present/present.directive.d.ts +3 -1
- package/directives/time-format/index.d.ts +1 -0
- package/directives/time-format/time-format.directive.d.ts +7 -0
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +9 -9
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-block.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-chip.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-comment.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-compass.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-copy.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-drawer.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +6 -6
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-color.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +33 -16
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-number.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-time.mjs +38 -13
- package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-like.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-message.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-meter.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-meter.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pager.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pin.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pincode.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-pincode.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-progress.mjs +6 -6
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pulse.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-push.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-rating.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +7 -2
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-status.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-switch.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-textarea.mjs +6 -8
- package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tiles.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-toast.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-connected.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-present.mjs +12 -6
- package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-time-format.mjs +43 -0
- package/fesm2022/taiga-ui-kit-directives-time-format.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives.mjs +1 -0
- package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs +40 -2
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
- package/package.json +25 -21
- package/tokens/index.d.ts +1 -0
- package/tokens/time-format.d.ts +29 -0
|
@@ -12,6 +12,7 @@ export * from '@taiga-ui/kit/directives/present';
|
|
|
12
12
|
export * from '@taiga-ui/kit/directives/sensitive';
|
|
13
13
|
export * from '@taiga-ui/kit/directives/shimmer';
|
|
14
14
|
export * from '@taiga-ui/kit/directives/skeleton';
|
|
15
|
+
export * from '@taiga-ui/kit/directives/time-format';
|
|
15
16
|
export * from '@taiga-ui/kit/directives/tooltip';
|
|
16
17
|
export * from '@taiga-ui/kit/directives/unfinished-validator';
|
|
17
18
|
export * from '@taiga-ui/kit/directives/unmask-handler';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives.mjs","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives.mjs","sources":["../../../projects/kit/directives/taiga-ui-kit-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
1
|
+
import { InjectionToken, signal, inject, computed } from '@angular/core';
|
|
2
2
|
import { tuiExtractI18n } from '@taiga-ui/i18n/utils';
|
|
3
3
|
|
|
4
4
|
const TUI_CONFIRM_WORDS = new InjectionToken(ngDevMode ? 'TUI_CONFIRM_WORDS' : '', { factory: tuiExtractI18n('confirm') });
|
|
@@ -41,9 +41,47 @@ const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PREVIEW_ZOOM_
|
|
|
41
41
|
const TUI_INTERNATIONAL_SEARCH = new InjectionToken(ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '', { factory: tuiExtractI18n('phoneSearch') });
|
|
42
42
|
const TUI_DAY_RANGE_PERIODS = new InjectionToken(ngDevMode ? 'TUI_DAY_RANGE_PERIODS' : '', { factory: tuiExtractI18n('dayRangePeriods') });
|
|
43
43
|
|
|
44
|
+
const TUI_DEFAULT_TIME_FORMAT = {
|
|
45
|
+
dayPeriod: ['', ''],
|
|
46
|
+
separators: [],
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* TODO(v6): refactor to
|
|
50
|
+
* ```ts
|
|
51
|
+
* import {maskitoWithTimeDefaults} from '@maskito/kit';
|
|
52
|
+
* import {LOCALE_ID} from '@angular/core';
|
|
53
|
+
*
|
|
54
|
+
* export const TUI_TIME_FORMAT = new InjectionToken<Signal<TuiTimeFormatSettings>>(
|
|
55
|
+
* ngDevMode ? 'TUI_TIME_FORMAT' : '',
|
|
56
|
+
* {
|
|
57
|
+
* factory: () =>
|
|
58
|
+
* signal(
|
|
59
|
+
* maskitoWithTimeDefaults({
|
|
60
|
+
* locale: inject(LOCALE_ID),
|
|
61
|
+
* mode: 'HH:MM',
|
|
62
|
+
* }),
|
|
63
|
+
* ),
|
|
64
|
+
* },
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
const TUI_TIME_FORMAT = new InjectionToken(ngDevMode ? 'TUI_TIME_FORMAT' : '', { factory: () => signal(TUI_DEFAULT_TIME_FORMAT) });
|
|
69
|
+
function tuiTimeFormatProvider(options) {
|
|
70
|
+
return {
|
|
71
|
+
provide: TUI_TIME_FORMAT,
|
|
72
|
+
useFactory: () => {
|
|
73
|
+
const parent = inject(TUI_TIME_FORMAT, { optional: true, skipSelf: true });
|
|
74
|
+
return computed(() => ({
|
|
75
|
+
...(parent?.() || TUI_DEFAULT_TIME_FORMAT),
|
|
76
|
+
...options,
|
|
77
|
+
}));
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
44
82
|
/**
|
|
45
83
|
* Generated bundle index. Do not edit.
|
|
46
84
|
*/
|
|
47
85
|
|
|
48
|
-
export { TUI_CALENDAR_MONTHS, TUI_CANCEL_WORD, TUI_CHOOSE_DAY_OR_RANGE_TEXTS, TUI_CONFIRM_WORDS, TUI_COPY_TEXTS, TUI_COUNTRIES, TUI_DATE_TEXTS, TUI_DAY_RANGE_PERIODS, TUI_DIGITAL_INFORMATION_UNITS, TUI_DONE_WORD, TUI_FILE_TEXTS, TUI_FROM_TO_TEXTS, TUI_HIDE_TEXT, TUI_INPUT_FILE_TEXTS, TUI_INTERNATIONAL_SEARCH, TUI_MORE_WORD, TUI_MULTI_SELECT_TEXTS, TUI_OTHER_DATE_TEXT, TUI_PAGINATION_TEXTS, TUI_PASSWORD_TEXTS, TUI_PLUS_MINUS_TEXTS, TUI_PREVIEW_TEXTS, TUI_PREVIEW_ZOOM_TEXTS, TUI_SHOW_ALL_TEXT, TUI_TIME_TEXTS };
|
|
86
|
+
export { TUI_CALENDAR_MONTHS, TUI_CANCEL_WORD, TUI_CHOOSE_DAY_OR_RANGE_TEXTS, TUI_CONFIRM_WORDS, TUI_COPY_TEXTS, TUI_COUNTRIES, TUI_DATE_TEXTS, TUI_DAY_RANGE_PERIODS, TUI_DIGITAL_INFORMATION_UNITS, TUI_DONE_WORD, TUI_FILE_TEXTS, TUI_FROM_TO_TEXTS, TUI_HIDE_TEXT, TUI_INPUT_FILE_TEXTS, TUI_INTERNATIONAL_SEARCH, TUI_MORE_WORD, TUI_MULTI_SELECT_TEXTS, TUI_OTHER_DATE_TEXT, TUI_PAGINATION_TEXTS, TUI_PASSWORD_TEXTS, TUI_PLUS_MINUS_TEXTS, TUI_PREVIEW_TEXTS, TUI_PREVIEW_ZOOM_TEXTS, TUI_SHOW_ALL_TEXT, TUI_TIME_FORMAT, TUI_TIME_TEXTS, tuiTimeFormatProvider };
|
|
49
87
|
//# sourceMappingURL=taiga-ui-kit-tokens.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-tokens.mjs","sources":["../../../projects/kit/tokens/i18n.ts","../../../projects/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken, type Signal} from '@angular/core';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\nexport const TUI_CONFIRM_WORDS = new InjectionToken(\n ngDevMode ? 'TUI_CONFIRM_WORDS' : '',\n {factory: tuiExtractI18n('confirm')},\n);\n\nexport const TUI_CANCEL_WORD = new InjectionToken(ngDevMode ? 'TUI_CANCEL_WORD' : '', {\n factory: tuiExtractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(ngDevMode ? 'TUI_DONE_WORD' : '', {\n factory: tuiExtractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(ngDevMode ? 'TUI_MORE_WORD' : '', {\n factory: tuiExtractI18n('more'),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(ngDevMode ? 'TUI_HIDE_TEXT' : '', {\n factory: tuiExtractI18n('hide'),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '',\n {factory: tuiExtractI18n('showAll')},\n);\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_OTHER_DATE_TEXT' : '',\n {factory: tuiExtractI18n('otherDate')},\n);\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '',\n {factory: tuiExtractI18n('mobileCalendarTexts')},\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_FROM_TO_TEXTS' : '',\n {factory: tuiExtractI18n('range')},\n);\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '',\n {factory: tuiExtractI18n('countTexts')},\n);\n\nexport const TUI_TIME_TEXTS = new InjectionToken(ngDevMode ? 'TUI_TIME_TEXTS' : '', {\n factory: tuiExtractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Signal<Record<TuiDateMode, string>>>(\n ngDevMode ? 'TUI_DATE_TEXTS' : '',\n {factory: tuiExtractI18n('dateTexts')},\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '',\n {factory: tuiExtractI18n('digitalInformationUnits')},\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(ngDevMode ? 'TUI_COPY_TEXTS' : '', {\n factory: tuiExtractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PASSWORD_TEXTS' : '',\n {factory: tuiExtractI18n('passwordTexts')},\n);\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(\n ngDevMode ? 'TUI_CALENDAR_MONTHS' : '',\n {factory: tuiExtractI18n('shortCalendarMonths')},\n);\n\nexport const TUI_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FILE_TEXTS' : '', {\n factory: tuiExtractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PAGINATION_TEXTS' : '',\n {factory: tuiExtractI18n('pagination')},\n);\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_FILE_TEXTS' : '',\n {factory: tuiExtractI18n('inputFileTexts')},\n);\n\nexport const TUI_MULTI_SELECT_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_MULTI_SELECT_TEXTS' : '',\n {factory: tuiExtractI18n('multiSelectTexts')},\n);\n\nexport const TUI_COUNTRIES = new InjectionToken<\n Signal<Record<TuiCountryIsoCode, string>>\n>(ngDevMode ? 'TUI_COUNTRIES' : '', {factory: tuiExtractI18n('countries')});\n\nexport const TUI_PREVIEW_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_TEXTS' : '',\n {factory: tuiExtractI18n('previewTexts')},\n);\n\nexport const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '',\n {factory: tuiExtractI18n('zoomTexts')},\n);\n\nexport const TUI_INTERNATIONAL_SEARCH = new InjectionToken(\n ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '',\n {factory: tuiExtractI18n('phoneSearch')},\n);\n\nexport const TUI_DAY_RANGE_PERIODS = new InjectionToken(\n ngDevMode ? 'TUI_DAY_RANGE_PERIODS' : '',\n {factory: tuiExtractI18n('dayRangePeriods')},\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAKO,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC,EAAC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,EAAC;AAGjC,MAAM,eAAe,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,iBAAiB,GAAG,EAAE,EAAE;AAClF,IAAA,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC;AACpC,CAAA;AAEM,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,eAAe,GAAG,EAAE,EAAE;AAC9E,IAAA,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC;AAClC,CAAA;AAEM,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,eAAe,GAAG,EAAE,EAAE;AAC9E,IAAA,OAAO,EAAE,cAAc,CA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AM,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC,EAAC,OAAO,EAAE,cAAc,CAAC,WAAW,CAAC,EAAC;AAGnC,MAAM,wBAAwB,GAAG,IAAI,cAAc,CACtD,SAAS,GAAG,0BAA0B,GAAG,EAAE,EAC3C,EAAC,OAAO,EAAE,cAAc,CAAC,aAAa,CAAC,EAAC;AAGrC,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACnD,SAAS,GAAG,uBAAuB,GAAG,EAAE,EACxC,EAAC,OAAO,EAAE,cAAc,CAAC,iBAAiB,CAAC,EAAC;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-tokens.mjs","sources":["../../../projects/kit/tokens/i18n.ts","../../../projects/kit/tokens/time-format.ts","../../../projects/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken, type Signal} from '@angular/core';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\nexport const TUI_CONFIRM_WORDS = new InjectionToken(\n ngDevMode ? 'TUI_CONFIRM_WORDS' : '',\n {factory: tuiExtractI18n('confirm')},\n);\n\nexport const TUI_CANCEL_WORD = new InjectionToken(ngDevMode ? 'TUI_CANCEL_WORD' : '', {\n factory: tuiExtractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(ngDevMode ? 'TUI_DONE_WORD' : '', {\n factory: tuiExtractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(ngDevMode ? 'TUI_MORE_WORD' : '', {\n factory: tuiExtractI18n('more'),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(ngDevMode ? 'TUI_HIDE_TEXT' : '', {\n factory: tuiExtractI18n('hide'),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '',\n {factory: tuiExtractI18n('showAll')},\n);\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_OTHER_DATE_TEXT' : '',\n {factory: tuiExtractI18n('otherDate')},\n);\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '',\n {factory: tuiExtractI18n('mobileCalendarTexts')},\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_FROM_TO_TEXTS' : '',\n {factory: tuiExtractI18n('range')},\n);\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '',\n {factory: tuiExtractI18n('countTexts')},\n);\n\nexport const TUI_TIME_TEXTS = new InjectionToken(ngDevMode ? 'TUI_TIME_TEXTS' : '', {\n factory: tuiExtractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Signal<Record<TuiDateMode, string>>>(\n ngDevMode ? 'TUI_DATE_TEXTS' : '',\n {factory: tuiExtractI18n('dateTexts')},\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '',\n {factory: tuiExtractI18n('digitalInformationUnits')},\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(ngDevMode ? 'TUI_COPY_TEXTS' : '', {\n factory: tuiExtractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PASSWORD_TEXTS' : '',\n {factory: tuiExtractI18n('passwordTexts')},\n);\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(\n ngDevMode ? 'TUI_CALENDAR_MONTHS' : '',\n {factory: tuiExtractI18n('shortCalendarMonths')},\n);\n\nexport const TUI_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FILE_TEXTS' : '', {\n factory: tuiExtractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PAGINATION_TEXTS' : '',\n {factory: tuiExtractI18n('pagination')},\n);\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_FILE_TEXTS' : '',\n {factory: tuiExtractI18n('inputFileTexts')},\n);\n\nexport const TUI_MULTI_SELECT_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_MULTI_SELECT_TEXTS' : '',\n {factory: tuiExtractI18n('multiSelectTexts')},\n);\n\nexport const TUI_COUNTRIES = new InjectionToken<\n Signal<Record<TuiCountryIsoCode, string>>\n>(ngDevMode ? 'TUI_COUNTRIES' : '', {factory: tuiExtractI18n('countries')});\n\nexport const TUI_PREVIEW_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_TEXTS' : '',\n {factory: tuiExtractI18n('previewTexts')},\n);\n\nexport const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '',\n {factory: tuiExtractI18n('zoomTexts')},\n);\n\nexport const TUI_INTERNATIONAL_SEARCH = new InjectionToken(\n ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '',\n {factory: tuiExtractI18n('phoneSearch')},\n);\n\nexport const TUI_DAY_RANGE_PERIODS = new InjectionToken(\n ngDevMode ? 'TUI_DAY_RANGE_PERIODS' : '',\n {factory: tuiExtractI18n('dayRangePeriods')},\n);\n","import {\n computed,\n inject,\n InjectionToken,\n type Provider,\n type Signal,\n signal,\n} from '@angular/core';\nimport {type MaskitoTimeParams} from '@maskito/kit';\n\n/**\n * TODO(v6): move `mode`, `timeSegmentMinValues` and `timeSegmentMaxValues`\n * from `TUI_INPUT_TIME_OPTIONS` / `TUI_INPUT_DATE_TIME_OPTIONS` here\n */\nexport type TuiTimeFormatSettings = Pick<\n Required<MaskitoTimeParams>,\n 'dayPeriod' | 'separators'\n>;\n\nconst TUI_DEFAULT_TIME_FORMAT: TuiTimeFormatSettings = {\n dayPeriod: ['', ''],\n separators: [],\n};\n\n/**\n * TODO(v6): refactor to\n * ```ts\n * import {maskitoWithTimeDefaults} from '@maskito/kit';\n * import {LOCALE_ID} from '@angular/core';\n *\n * export const TUI_TIME_FORMAT = new InjectionToken<Signal<TuiTimeFormatSettings>>(\n * ngDevMode ? 'TUI_TIME_FORMAT' : '',\n * {\n * factory: () =>\n * signal(\n * maskitoWithTimeDefaults({\n * locale: inject(LOCALE_ID),\n * mode: 'HH:MM',\n * }),\n * ),\n * },\n * );\n * ```\n */\nexport const TUI_TIME_FORMAT = new InjectionToken<Signal<TuiTimeFormatSettings>>(\n ngDevMode ? 'TUI_TIME_FORMAT' : '',\n {factory: () => signal(TUI_DEFAULT_TIME_FORMAT)},\n);\n\nexport function tuiTimeFormatProvider(options: Partial<TuiTimeFormatSettings>): Provider {\n return {\n provide: TUI_TIME_FORMAT,\n useFactory: (): Signal<TuiTimeFormatSettings> => {\n const parent = inject(TUI_TIME_FORMAT, {optional: true, skipSelf: true});\n\n return computed(() => ({\n ...(parent?.() || TUI_DEFAULT_TIME_FORMAT),\n ...options,\n }));\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAKO,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC,EAAC,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,EAAC;AAGjC,MAAM,eAAe,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,iBAAiB,GAAG,EAAE,EAAE;AAClF,IAAA,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC;AACpC,CAAA;AAEM,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,eAAe,GAAG,EAAE,EAAE;AAC9E,IAAA,OAAO,EAAE,cAAc,CAAC,MAA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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.25.0-canary.3fb67e2",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"@angular/core": ">=19.0.0",
|
|
35
35
|
"@angular/forms": ">=19.0.0",
|
|
36
36
|
"@angular/router": ">=19.0.0",
|
|
37
|
-
"@maskito/angular": "^5.
|
|
38
|
-
"@maskito/core": "^5.
|
|
39
|
-
"@maskito/kit": "^5.
|
|
40
|
-
"@maskito/phone": "^5.
|
|
37
|
+
"@maskito/angular": "^5.5.0",
|
|
38
|
+
"@maskito/core": "^5.5.0",
|
|
39
|
+
"@maskito/kit": "^5.5.0",
|
|
40
|
+
"@maskito/phone": "^5.5.0",
|
|
41
41
|
"@ng-web-apis/common": "^5.3.0",
|
|
42
42
|
"@ng-web-apis/intersection-observer": "^5.3.0",
|
|
43
43
|
"@ng-web-apis/mutation-observer": "^5.3.0",
|
|
44
44
|
"@ng-web-apis/platform": "^5.3.0",
|
|
45
45
|
"@ng-web-apis/resize-observer": "^5.3.0",
|
|
46
|
-
"@taiga-ui/cdk": "5.
|
|
47
|
-
"@taiga-ui/core": "5.
|
|
48
|
-
"@taiga-ui/i18n": "5.
|
|
46
|
+
"@taiga-ui/cdk": "5.25.0",
|
|
47
|
+
"@taiga-ui/core": "5.25.0",
|
|
48
|
+
"@taiga-ui/i18n": "5.25.0",
|
|
49
49
|
"@taiga-ui/polymorpheus": "^5.0.1",
|
|
50
|
-
"@taiga-ui/styles": "5.
|
|
50
|
+
"@taiga-ui/styles": "5.25.0",
|
|
51
51
|
"rxjs": ">=7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"module": "fesm2022/taiga-ui-kit.mjs",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"types": "./utils/index.d.ts",
|
|
81
81
|
"default": "./fesm2022/taiga-ui-kit-utils.mjs"
|
|
82
82
|
},
|
|
83
|
-
"./components/action-bar": {
|
|
84
|
-
"types": "./components/action-bar/index.d.ts",
|
|
85
|
-
"default": "./fesm2022/taiga-ui-kit-components-action-bar.mjs"
|
|
86
|
-
},
|
|
87
83
|
"./components/accordion": {
|
|
88
84
|
"types": "./components/accordion/index.d.ts",
|
|
89
85
|
"default": "./fesm2022/taiga-ui-kit-components-accordion.mjs"
|
|
90
86
|
},
|
|
87
|
+
"./components/action-bar": {
|
|
88
|
+
"types": "./components/action-bar/index.d.ts",
|
|
89
|
+
"default": "./fesm2022/taiga-ui-kit-components-action-bar.mjs"
|
|
90
|
+
},
|
|
91
91
|
"./components/avatar": {
|
|
92
92
|
"types": "./components/avatar/index.d.ts",
|
|
93
93
|
"default": "./fesm2022/taiga-ui-kit-components-avatar.mjs"
|
|
@@ -280,14 +280,14 @@
|
|
|
280
280
|
"types": "./components/pin/index.d.ts",
|
|
281
281
|
"default": "./fesm2022/taiga-ui-kit-components-pin.mjs"
|
|
282
282
|
},
|
|
283
|
-
"./components/preview": {
|
|
284
|
-
"types": "./components/preview/index.d.ts",
|
|
285
|
-
"default": "./fesm2022/taiga-ui-kit-components-preview.mjs"
|
|
286
|
-
},
|
|
287
283
|
"./components/pincode": {
|
|
288
284
|
"types": "./components/pincode/index.d.ts",
|
|
289
285
|
"default": "./fesm2022/taiga-ui-kit-components-pincode.mjs"
|
|
290
286
|
},
|
|
287
|
+
"./components/preview": {
|
|
288
|
+
"types": "./components/preview/index.d.ts",
|
|
289
|
+
"default": "./fesm2022/taiga-ui-kit-components-preview.mjs"
|
|
290
|
+
},
|
|
291
291
|
"./components/progress": {
|
|
292
292
|
"types": "./components/progress/index.d.ts",
|
|
293
293
|
"default": "./fesm2022/taiga-ui-kit-components-progress.mjs"
|
|
@@ -420,6 +420,10 @@
|
|
|
420
420
|
"types": "./directives/skeleton/index.d.ts",
|
|
421
421
|
"default": "./fesm2022/taiga-ui-kit-directives-skeleton.mjs"
|
|
422
422
|
},
|
|
423
|
+
"./directives/time-format": {
|
|
424
|
+
"types": "./directives/time-format/index.d.ts",
|
|
425
|
+
"default": "./fesm2022/taiga-ui-kit-directives-time-format.mjs"
|
|
426
|
+
},
|
|
423
427
|
"./directives/tooltip": {
|
|
424
428
|
"types": "./directives/tooltip/index.d.ts",
|
|
425
429
|
"default": "./fesm2022/taiga-ui-kit-directives-tooltip.mjs"
|
|
@@ -436,14 +440,14 @@
|
|
|
436
440
|
"types": "./pipes/auto-color/index.d.ts",
|
|
437
441
|
"default": "./fesm2022/taiga-ui-kit-pipes-auto-color.mjs"
|
|
438
442
|
},
|
|
439
|
-
"./pipes/flag": {
|
|
440
|
-
"types": "./pipes/flag/index.d.ts",
|
|
441
|
-
"default": "./fesm2022/taiga-ui-kit-pipes-flag.mjs"
|
|
442
|
-
},
|
|
443
443
|
"./pipes/emails": {
|
|
444
444
|
"types": "./pipes/emails/index.d.ts",
|
|
445
445
|
"default": "./fesm2022/taiga-ui-kit-pipes-emails.mjs"
|
|
446
446
|
},
|
|
447
|
+
"./pipes/flag": {
|
|
448
|
+
"types": "./pipes/flag/index.d.ts",
|
|
449
|
+
"default": "./fesm2022/taiga-ui-kit-pipes-flag.mjs"
|
|
450
|
+
},
|
|
447
451
|
"./pipes/format-number": {
|
|
448
452
|
"types": "./pipes/format-number/index.d.ts",
|
|
449
453
|
"default": "./fesm2022/taiga-ui-kit-pipes-format-number.mjs"
|
package/tokens/index.d.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { InjectionToken, type Provider, type Signal } from '@angular/core';
|
|
2
|
+
import { type MaskitoTimeParams } from '@maskito/kit';
|
|
3
|
+
/**
|
|
4
|
+
* TODO(v6): move `mode`, `timeSegmentMinValues` and `timeSegmentMaxValues`
|
|
5
|
+
* from `TUI_INPUT_TIME_OPTIONS` / `TUI_INPUT_DATE_TIME_OPTIONS` here
|
|
6
|
+
*/
|
|
7
|
+
export type TuiTimeFormatSettings = Pick<Required<MaskitoTimeParams>, 'dayPeriod' | 'separators'>;
|
|
8
|
+
/**
|
|
9
|
+
* TODO(v6): refactor to
|
|
10
|
+
* ```ts
|
|
11
|
+
* import {maskitoWithTimeDefaults} from '@maskito/kit';
|
|
12
|
+
* import {LOCALE_ID} from '@angular/core';
|
|
13
|
+
*
|
|
14
|
+
* export const TUI_TIME_FORMAT = new InjectionToken<Signal<TuiTimeFormatSettings>>(
|
|
15
|
+
* ngDevMode ? 'TUI_TIME_FORMAT' : '',
|
|
16
|
+
* {
|
|
17
|
+
* factory: () =>
|
|
18
|
+
* signal(
|
|
19
|
+
* maskitoWithTimeDefaults({
|
|
20
|
+
* locale: inject(LOCALE_ID),
|
|
21
|
+
* mode: 'HH:MM',
|
|
22
|
+
* }),
|
|
23
|
+
* ),
|
|
24
|
+
* },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const TUI_TIME_FORMAT: InjectionToken<Signal<TuiTimeFormatSettings>>;
|
|
29
|
+
export declare function tuiTimeFormatProvider(options: Partial<TuiTimeFormatSettings>): Provider;
|