@taiga-ui/kit 5.25.0 → 5.26.0-canary.32752fd
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 +3 -2
- package/components/input-time/index.d.ts +1 -0
- package/components/input-time/input-time.directive.d.ts +1 -1
- package/components/input-time/time-filler.d.ts +3 -0
- package/components/line-clamp/line-clamp-position.directive.d.ts +2 -0
- package/components/push/push.component.d.ts +3 -2
- package/components/routable-dialog/generate-dialogable-route.d.ts +6 -1
- package/components/textarea/textarea.component.d.ts +10 -7
- 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-calendar-range.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-calendar-range.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-files.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-files.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 +18 -21
- 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 +29 -22
- 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-line-clamp.mjs +11 -3
- package/fesm2022/taiga-ui-kit-components-line-clamp.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-pin.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-pin.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-push.mjs +6 -6
- 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-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-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 +15 -12
- 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-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-tooltip.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs +24 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
- package/package.json +32 -32
- package/tokens/time-format.d.ts +21 -1
|
@@ -41,7 +41,30 @@ 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 = {
|
|
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
|
+
*/
|
|
45
68
|
const TUI_TIME_FORMAT = new InjectionToken(ngDevMode ? 'TUI_TIME_FORMAT' : '', { factory: () => signal(TUI_DEFAULT_TIME_FORMAT) });
|
|
46
69
|
function tuiTimeFormatProvider(options) {
|
|
47
70
|
return {
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,MAAM,CAAC;AAClC,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,MAA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
|
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.26.0",
|
|
47
|
+
"@taiga-ui/core": "5.26.0",
|
|
48
|
+
"@taiga-ui/i18n": "5.26.0",
|
|
49
49
|
"@taiga-ui/polymorpheus": "^5.0.1",
|
|
50
|
-
"@taiga-ui/styles": "5.
|
|
50
|
+
"@taiga-ui/styles": "5.26.0",
|
|
51
51
|
"rxjs": ">=7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"module": "fesm2022/taiga-ui-kit.mjs",
|
|
@@ -160,14 +160,14 @@
|
|
|
160
160
|
"types": "./components/drawer/index.d.ts",
|
|
161
161
|
"default": "./fesm2022/taiga-ui-kit-components-drawer.mjs"
|
|
162
162
|
},
|
|
163
|
-
"./components/filter": {
|
|
164
|
-
"types": "./components/filter/index.d.ts",
|
|
165
|
-
"default": "./fesm2022/taiga-ui-kit-components-filter.mjs"
|
|
166
|
-
},
|
|
167
163
|
"./components/files": {
|
|
168
164
|
"types": "./components/files/index.d.ts",
|
|
169
165
|
"default": "./fesm2022/taiga-ui-kit-components-files.mjs"
|
|
170
166
|
},
|
|
167
|
+
"./components/filter": {
|
|
168
|
+
"types": "./components/filter/index.d.ts",
|
|
169
|
+
"default": "./fesm2022/taiga-ui-kit-components-filter.mjs"
|
|
170
|
+
},
|
|
171
171
|
"./components/fullscreen": {
|
|
172
172
|
"types": "./components/fullscreen/index.d.ts",
|
|
173
173
|
"default": "./fesm2022/taiga-ui-kit-components-fullscreen.mjs"
|
|
@@ -248,13 +248,17 @@
|
|
|
248
248
|
"types": "./components/like/index.d.ts",
|
|
249
249
|
"default": "./fesm2022/taiga-ui-kit-components-like.mjs"
|
|
250
250
|
},
|
|
251
|
+
"./components/line-clamp": {
|
|
252
|
+
"types": "./components/line-clamp/index.d.ts",
|
|
253
|
+
"default": "./fesm2022/taiga-ui-kit-components-line-clamp.mjs"
|
|
254
|
+
},
|
|
251
255
|
"./components/message": {
|
|
252
256
|
"types": "./components/message/index.d.ts",
|
|
253
257
|
"default": "./fesm2022/taiga-ui-kit-components-message.mjs"
|
|
254
258
|
},
|
|
255
|
-
"./components/
|
|
256
|
-
"types": "./components/
|
|
257
|
-
"default": "./fesm2022/taiga-ui-kit-components-
|
|
259
|
+
"./components/meter": {
|
|
260
|
+
"types": "./components/meter/index.d.ts",
|
|
261
|
+
"default": "./fesm2022/taiga-ui-kit-components-meter.mjs"
|
|
258
262
|
},
|
|
259
263
|
"./components/multi-select": {
|
|
260
264
|
"types": "./components/multi-select/index.d.ts",
|
|
@@ -292,22 +296,18 @@
|
|
|
292
296
|
"types": "./components/pulse/index.d.ts",
|
|
293
297
|
"default": "./fesm2022/taiga-ui-kit-components-pulse.mjs"
|
|
294
298
|
},
|
|
295
|
-
"./components/meter": {
|
|
296
|
-
"types": "./components/meter/index.d.ts",
|
|
297
|
-
"default": "./fesm2022/taiga-ui-kit-components-meter.mjs"
|
|
298
|
-
},
|
|
299
299
|
"./components/push": {
|
|
300
300
|
"types": "./components/push/index.d.ts",
|
|
301
301
|
"default": "./fesm2022/taiga-ui-kit-components-push.mjs"
|
|
302
302
|
},
|
|
303
|
-
"./components/range": {
|
|
304
|
-
"types": "./components/range/index.d.ts",
|
|
305
|
-
"default": "./fesm2022/taiga-ui-kit-components-range.mjs"
|
|
306
|
-
},
|
|
307
303
|
"./components/radio-list": {
|
|
308
304
|
"types": "./components/radio-list/index.d.ts",
|
|
309
305
|
"default": "./fesm2022/taiga-ui-kit-components-radio-list.mjs"
|
|
310
306
|
},
|
|
307
|
+
"./components/range": {
|
|
308
|
+
"types": "./components/range/index.d.ts",
|
|
309
|
+
"default": "./fesm2022/taiga-ui-kit-components-range.mjs"
|
|
310
|
+
},
|
|
311
311
|
"./components/rating": {
|
|
312
312
|
"types": "./components/rating/index.d.ts",
|
|
313
313
|
"default": "./fesm2022/taiga-ui-kit-components-rating.mjs"
|
|
@@ -368,14 +368,14 @@
|
|
|
368
368
|
"types": "./directives/appearance-proxy/index.d.ts",
|
|
369
369
|
"default": "./fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs"
|
|
370
370
|
},
|
|
371
|
-
"./directives/button-select": {
|
|
372
|
-
"types": "./directives/button-select/index.d.ts",
|
|
373
|
-
"default": "./fesm2022/taiga-ui-kit-directives-button-select.mjs"
|
|
374
|
-
},
|
|
375
371
|
"./directives/button-group": {
|
|
376
372
|
"types": "./directives/button-group/index.d.ts",
|
|
377
373
|
"default": "./fesm2022/taiga-ui-kit-directives-button-group.mjs"
|
|
378
374
|
},
|
|
375
|
+
"./directives/button-select": {
|
|
376
|
+
"types": "./directives/button-select/index.d.ts",
|
|
377
|
+
"default": "./fesm2022/taiga-ui-kit-directives-button-select.mjs"
|
|
378
|
+
},
|
|
379
379
|
"./directives/chevron": {
|
|
380
380
|
"types": "./directives/chevron/index.d.ts",
|
|
381
381
|
"default": "./fesm2022/taiga-ui-kit-directives-chevron.mjs"
|
|
@@ -384,14 +384,14 @@
|
|
|
384
384
|
"types": "./directives/connected/index.d.ts",
|
|
385
385
|
"default": "./fesm2022/taiga-ui-kit-directives-connected.mjs"
|
|
386
386
|
},
|
|
387
|
-
"./directives/fade": {
|
|
388
|
-
"types": "./directives/fade/index.d.ts",
|
|
389
|
-
"default": "./fesm2022/taiga-ui-kit-directives-fade.mjs"
|
|
390
|
-
},
|
|
391
387
|
"./directives/data-list-dropdown-manager": {
|
|
392
388
|
"types": "./directives/data-list-dropdown-manager/index.d.ts",
|
|
393
389
|
"default": "./fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs"
|
|
394
390
|
},
|
|
391
|
+
"./directives/fade": {
|
|
392
|
+
"types": "./directives/fade/index.d.ts",
|
|
393
|
+
"default": "./fesm2022/taiga-ui-kit-directives-fade.mjs"
|
|
394
|
+
},
|
|
395
395
|
"./directives/fluid-typography": {
|
|
396
396
|
"types": "./directives/fluid-typography/index.d.ts",
|
|
397
397
|
"default": "./fesm2022/taiga-ui-kit-directives-fluid-typography.mjs"
|
package/tokens/time-format.d.ts
CHANGED
|
@@ -4,6 +4,26 @@ import { type MaskitoTimeParams } from '@maskito/kit';
|
|
|
4
4
|
* TODO(v6): move `mode`, `timeSegmentMinValues` and `timeSegmentMaxValues`
|
|
5
5
|
* from `TUI_INPUT_TIME_OPTIONS` / `TUI_INPUT_DATE_TIME_OPTIONS` here
|
|
6
6
|
*/
|
|
7
|
-
export type TuiTimeFormatSettings = Pick<Required<MaskitoTimeParams>, 'dayPeriod'>;
|
|
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
|
+
*/
|
|
8
28
|
export declare const TUI_TIME_FORMAT: InjectionToken<Signal<TuiTimeFormatSettings>>;
|
|
9
29
|
export declare function tuiTimeFormatProvider(options: Partial<TuiTimeFormatSettings>): Provider;
|