@taiga-ui/kit 5.24.0 → 5.25.0-canary.2b025e7

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.
Files changed (123) hide show
  1. package/components/input-date-time/input-date-time.directive.d.ts +5 -2
  2. package/components/input-time/index.d.ts +1 -0
  3. package/components/input-time/input-time.directive.d.ts +3 -1
  4. package/components/input-time/time-filler.d.ts +3 -0
  5. package/components/routable-dialog/generate-dialogable-route.d.ts +6 -1
  6. package/components/textarea/textarea.component.d.ts +2 -2
  7. package/directives/index.d.ts +1 -0
  8. package/directives/present/present.directive.d.ts +3 -1
  9. package/directives/time-format/index.d.ts +1 -0
  10. package/directives/time-format/time-format.directive.d.ts +7 -0
  11. package/fesm2022/taiga-ui-kit-components-accordion.mjs +2 -2
  12. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  13. package/fesm2022/taiga-ui-kit-components-avatar.mjs +9 -9
  14. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
  16. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-kit-components-block.mjs +2 -2
  18. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-kit-components-chip.mjs +2 -2
  20. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-kit-components-comment.mjs +3 -3
  22. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-kit-components-compass.mjs +2 -2
  24. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-kit-components-copy.mjs +2 -2
  26. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-kit-components-drawer.mjs +2 -2
  28. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-kit-components-files.mjs +6 -6
  30. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +2 -2
  32. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-kit-components-input-color.mjs +2 -2
  34. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +33 -16
  36. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-kit-components-input-date.mjs +4 -4
  38. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -2
  40. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -4
  42. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-kit-components-input-number.mjs +3 -3
  44. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +2 -2
  46. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +3 -3
  48. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +2 -2
  50. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-kit-components-input-time.mjs +38 -13
  52. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-kit-components-like.mjs +2 -2
  54. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-kit-components-message.mjs +2 -2
  56. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-kit-components-meter.mjs +3 -3
  58. package/fesm2022/taiga-ui-kit-components-meter.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-kit-components-pager.mjs +2 -2
  60. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-kit-components-pin.mjs +3 -3
  62. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-kit-components-pincode.mjs +2 -2
  64. package/fesm2022/taiga-ui-kit-components-pincode.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-kit-components-preview.mjs +3 -3
  66. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-kit-components-progress.mjs +6 -6
  68. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-kit-components-pulse.mjs +2 -2
  70. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-kit-components-push.mjs +2 -2
  72. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +2 -2
  74. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-kit-components-rating.mjs +2 -2
  76. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +7 -2
  78. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-segmented.mjs +3 -3
  80. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs +2 -2
  82. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-status.mjs +3 -3
  84. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-stepper.mjs +2 -2
  86. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-switch.mjs +2 -2
  88. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-kit-components-tabs.mjs +3 -3
  90. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-textarea.mjs +6 -8
  92. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-tiles.mjs +4 -4
  94. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-toast.mjs +2 -2
  96. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +3 -3
  98. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -2
  100. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-kit-directives-connected.mjs +3 -3
  102. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-directives-fade.mjs +3 -3
  104. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-directives-present.mjs +12 -6
  106. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +3 -3
  108. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +2 -2
  110. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +3 -3
  112. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-kit-directives-time-format.mjs +43 -0
  114. package/fesm2022/taiga-ui-kit-directives-time-format.mjs.map +1 -0
  115. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +2 -2
  116. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-directives.mjs +1 -0
  118. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-tokens.mjs +40 -2
  120. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  121. package/package.json +41 -37
  122. package/tokens/index.d.ts +1 -0
  123. 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":";;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
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,CAAC,MAAM,CAAC;AAClC,CAAA;AAEM,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,eAAe,GAAG,EAAE,EAAE;AAC9E,IAAA,OAAO,E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nC,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;;ACvHhD;;AAEG;;;;"}
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,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": "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.3.1",
38
- "@maskito/core": "^5.3.1",
39
- "@maskito/kit": "^5.3.1",
40
- "@maskito/phone": "^5.3.1",
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.24.0",
47
- "@taiga-ui/core": "5.24.0",
48
- "@taiga-ui/i18n": "5.24.0",
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.24.0",
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"
@@ -332,10 +332,6 @@
332
332
  "types": "./components/status/index.d.ts",
333
333
  "default": "./fesm2022/taiga-ui-kit-components-status.mjs"
334
334
  },
335
- "./components/stepper": {
336
- "types": "./components/stepper/index.d.ts",
337
- "default": "./fesm2022/taiga-ui-kit-components-stepper.mjs"
338
- },
339
335
  "./components/switch": {
340
336
  "types": "./components/switch/index.d.ts",
341
337
  "default": "./fesm2022/taiga-ui-kit-components-switch.mjs"
@@ -344,6 +340,10 @@
344
340
  "types": "./components/tabs/index.d.ts",
345
341
  "default": "./fesm2022/taiga-ui-kit-components-tabs.mjs"
346
342
  },
343
+ "./components/stepper": {
344
+ "types": "./components/stepper/index.d.ts",
345
+ "default": "./fesm2022/taiga-ui-kit-components-stepper.mjs"
346
+ },
347
347
  "./components/textarea": {
348
348
  "types": "./components/textarea/index.d.ts",
349
349
  "default": "./fesm2022/taiga-ui-kit-components-textarea.mjs"
@@ -376,10 +376,6 @@
376
376
  "types": "./directives/button-select/index.d.ts",
377
377
  "default": "./fesm2022/taiga-ui-kit-directives-button-select.mjs"
378
378
  },
379
- "./directives/chevron": {
380
- "types": "./directives/chevron/index.d.ts",
381
- "default": "./fesm2022/taiga-ui-kit-directives-chevron.mjs"
382
- },
383
379
  "./directives/connected": {
384
380
  "types": "./directives/connected/index.d.ts",
385
381
  "default": "./fesm2022/taiga-ui-kit-directives-connected.mjs"
@@ -396,6 +392,10 @@
396
392
  "types": "./directives/fluid-typography/index.d.ts",
397
393
  "default": "./fesm2022/taiga-ui-kit-directives-fluid-typography.mjs"
398
394
  },
395
+ "./directives/chevron": {
396
+ "types": "./directives/chevron/index.d.ts",
397
+ "default": "./fesm2022/taiga-ui-kit-directives-chevron.mjs"
398
+ },
399
399
  "./directives/highlight": {
400
400
  "types": "./directives/highlight/index.d.ts",
401
401
  "default": "./fesm2022/taiga-ui-kit-directives-highlight.mjs"
@@ -404,14 +404,14 @@
404
404
  "types": "./directives/password/index.d.ts",
405
405
  "default": "./fesm2022/taiga-ui-kit-directives-password.mjs"
406
406
  },
407
- "./directives/present": {
408
- "types": "./directives/present/index.d.ts",
409
- "default": "./fesm2022/taiga-ui-kit-directives-present.mjs"
410
- },
411
407
  "./directives/sensitive": {
412
408
  "types": "./directives/sensitive/index.d.ts",
413
409
  "default": "./fesm2022/taiga-ui-kit-directives-sensitive.mjs"
414
410
  },
411
+ "./directives/present": {
412
+ "types": "./directives/present/index.d.ts",
413
+ "default": "./fesm2022/taiga-ui-kit-directives-present.mjs"
414
+ },
415
415
  "./directives/shimmer": {
416
416
  "types": "./directives/shimmer/index.d.ts",
417
417
  "default": "./fesm2022/taiga-ui-kit-directives-shimmer.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"
@@ -456,10 +460,6 @@
456
460
  "types": "./pipes/initials/index.d.ts",
457
461
  "default": "./fesm2022/taiga-ui-kit-pipes-initials.mjs"
458
462
  },
459
- "./pipes/sort-countries": {
460
- "types": "./pipes/sort-countries/index.d.ts",
461
- "default": "./fesm2022/taiga-ui-kit-pipes-sort-countries.mjs"
462
- },
463
463
  "./pipes/stringify": {
464
464
  "types": "./pipes/stringify/index.d.ts",
465
465
  "default": "./fesm2022/taiga-ui-kit-pipes-stringify.mjs"
@@ -467,6 +467,10 @@
467
467
  "./pipes/stringify-content": {
468
468
  "types": "./pipes/stringify-content/index.d.ts",
469
469
  "default": "./fesm2022/taiga-ui-kit-pipes-stringify-content.mjs"
470
+ },
471
+ "./pipes/sort-countries": {
472
+ "types": "./pipes/sort-countries/index.d.ts",
473
+ "default": "./fesm2022/taiga-ui-kit-pipes-sort-countries.mjs"
470
474
  }
471
475
  },
472
476
  "sideEffects": false,
package/tokens/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './i18n';
2
+ export * from './time-format';
@@ -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;