@radix-ng/primitives 0.50.0 → 1.0.0-beta.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.
Files changed (207) hide show
  1. package/collection/README.md +1 -0
  2. package/fesm2022/radix-ng-primitives-accordion.mjs +134 -66
  3. package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
  4. package/fesm2022/radix-ng-primitives-alert-dialog.mjs +224 -132
  5. package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
  6. package/fesm2022/radix-ng-primitives-arrow.mjs +26 -10
  7. package/fesm2022/radix-ng-primitives-arrow.mjs.map +1 -1
  8. package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +6 -6
  9. package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
  10. package/fesm2022/radix-ng-primitives-avatar.mjs +68 -75
  11. package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
  12. package/fesm2022/radix-ng-primitives-button.mjs +123 -0
  13. package/fesm2022/radix-ng-primitives-button.mjs.map +1 -0
  14. package/fesm2022/radix-ng-primitives-calendar.mjs +104 -103
  15. package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
  16. package/fesm2022/radix-ng-primitives-checkbox.mjs +414 -80
  17. package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
  18. package/fesm2022/radix-ng-primitives-collapsible.mjs +193 -92
  19. package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
  20. package/fesm2022/radix-ng-primitives-collection.mjs +72 -0
  21. package/fesm2022/radix-ng-primitives-collection.mjs.map +1 -0
  22. package/fesm2022/radix-ng-primitives-config.mjs +5 -5
  23. package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
  24. package/fesm2022/radix-ng-primitives-context-menu.mjs +143 -427
  25. package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
  26. package/fesm2022/radix-ng-primitives-core.mjs +757 -757
  27. package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
  28. package/fesm2022/radix-ng-primitives-cropper.mjs +55 -53
  29. package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
  30. package/fesm2022/radix-ng-primitives-date-field.mjs +93 -86
  31. package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
  32. package/fesm2022/radix-ng-primitives-dialog.mjs +658 -330
  33. package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
  34. package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +98 -76
  35. package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
  36. package/fesm2022/radix-ng-primitives-drawer.mjs +1059 -0
  37. package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -0
  38. package/fesm2022/radix-ng-primitives-editable.mjs +20 -20
  39. package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
  40. package/fesm2022/radix-ng-primitives-field.mjs +363 -0
  41. package/fesm2022/radix-ng-primitives-field.mjs.map +1 -0
  42. package/fesm2022/radix-ng-primitives-fieldset.mjs +79 -0
  43. package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -0
  44. package/fesm2022/radix-ng-primitives-focus-guards.mjs +3 -3
  45. package/fesm2022/radix-ng-primitives-focus-guards.mjs.map +1 -1
  46. package/fesm2022/radix-ng-primitives-focus-scope.mjs +29 -14
  47. package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
  48. package/fesm2022/radix-ng-primitives-input.mjs +172 -0
  49. package/fesm2022/radix-ng-primitives-input.mjs.map +1 -0
  50. package/fesm2022/radix-ng-primitives-label.mjs +11 -11
  51. package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
  52. package/fesm2022/radix-ng-primitives-menu.mjs +1484 -353
  53. package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
  54. package/fesm2022/radix-ng-primitives-menubar.mjs +290 -162
  55. package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
  56. package/fesm2022/radix-ng-primitives-meter.mjs +271 -0
  57. package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -0
  58. package/fesm2022/radix-ng-primitives-navigation-menu.mjs +1060 -1553
  59. package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
  60. package/fesm2022/radix-ng-primitives-number-field.mjs +1102 -366
  61. package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
  62. package/fesm2022/radix-ng-primitives-pagination.mjs +51 -51
  63. package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
  64. package/fesm2022/radix-ng-primitives-popover.mjs +980 -995
  65. package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
  66. package/fesm2022/radix-ng-primitives-popper.mjs +137 -82
  67. package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
  68. package/fesm2022/radix-ng-primitives-portal.mjs +40 -16
  69. package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
  70. package/fesm2022/radix-ng-primitives-presence.mjs +134 -246
  71. package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
  72. package/fesm2022/radix-ng-primitives-preview-card.mjs +997 -0
  73. package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -0
  74. package/fesm2022/radix-ng-primitives-progress.mjs +231 -92
  75. package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
  76. package/fesm2022/radix-ng-primitives-radio.mjs +211 -70
  77. package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
  78. package/fesm2022/radix-ng-primitives-roving-focus.mjs +127 -77
  79. package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
  80. package/fesm2022/radix-ng-primitives-select.mjs +791 -511
  81. package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
  82. package/fesm2022/radix-ng-primitives-separator.mjs +16 -45
  83. package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
  84. package/fesm2022/radix-ng-primitives-slider.mjs +976 -720
  85. package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
  86. package/fesm2022/radix-ng-primitives-stepper.mjs +69 -71
  87. package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
  88. package/fesm2022/radix-ng-primitives-switch.mjs +128 -124
  89. package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
  90. package/fesm2022/radix-ng-primitives-tabs.mjs +388 -115
  91. package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
  92. package/fesm2022/radix-ng-primitives-time-field.mjs +111 -117
  93. package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
  94. package/fesm2022/radix-ng-primitives-toggle-group.mjs +122 -248
  95. package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
  96. package/fesm2022/radix-ng-primitives-toggle.mjs +99 -62
  97. package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
  98. package/fesm2022/radix-ng-primitives-toolbar.mjs +307 -94
  99. package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
  100. package/fesm2022/radix-ng-primitives-tooltip.mjs +690 -1079
  101. package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
  102. package/fesm2022/radix-ng-primitives-visually-hidden.mjs +46 -87
  103. package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
  104. package/fesm2022/radix-ng-primitives.mjs.map +1 -1
  105. package/meter/README.md +3 -0
  106. package/navigation-menu/README.md +2 -1
  107. package/package.json +85 -63
  108. package/portal/README.md +2 -0
  109. package/preview-card/README.md +3 -0
  110. package/schematics/collection.json +1 -0
  111. package/schematics/ng-add/index.d.ts +3 -2
  112. package/schematics/ng-add/index.js +62 -31
  113. package/schematics/ng-add/index.js.map +1 -1
  114. package/schematics/ng-add/package-config.d.ts +4 -2
  115. package/schematics/ng-add/package-config.js +10 -2
  116. package/schematics/ng-add/package-config.js.map +1 -1
  117. package/schematics/ng-add/schema.d.ts +3 -0
  118. package/schematics/ng-add/schema.js +3 -0
  119. package/schematics/ng-add/schema.js.map +1 -0
  120. package/schematics/ng-add/schema.json +14 -0
  121. package/select/README.md +2 -0
  122. package/{accordion/index.d.ts → types/radix-ng-primitives-accordion.d.ts} +102 -67
  123. package/types/radix-ng-primitives-alert-dialog.d.ts +114 -0
  124. package/{arrow/index.d.ts → types/radix-ng-primitives-arrow.d.ts} +1 -1
  125. package/{aspect-ratio/index.d.ts → types/radix-ng-primitives-aspect-ratio.d.ts} +1 -1
  126. package/{avatar/index.d.ts → types/radix-ng-primitives-avatar.d.ts} +7 -11
  127. package/types/radix-ng-primitives-button.d.ts +73 -0
  128. package/{calendar/index.d.ts → types/radix-ng-primitives-calendar.d.ts} +2 -3
  129. package/types/radix-ng-primitives-checkbox.d.ts +337 -0
  130. package/types/radix-ng-primitives-collapsible.d.ts +159 -0
  131. package/types/radix-ng-primitives-collection.d.ts +44 -0
  132. package/{config/index.d.ts → types/radix-ng-primitives-config.d.ts} +1 -1
  133. package/types/radix-ng-primitives-context-menu.d.ts +73 -0
  134. package/{core/index.d.ts → types/radix-ng-primitives-core.d.ts} +311 -236
  135. package/{cropper/index.d.ts → types/radix-ng-primitives-cropper.d.ts} +6 -5
  136. package/{date-field/index.d.ts → types/radix-ng-primitives-date-field.d.ts} +42 -27
  137. package/types/radix-ng-primitives-dialog.d.ts +323 -0
  138. package/{dismissable-layer/index.d.ts → types/radix-ng-primitives-dismissable-layer.d.ts} +15 -7
  139. package/types/radix-ng-primitives-drawer.d.ts +448 -0
  140. package/{editable/index.d.ts → types/radix-ng-primitives-editable.d.ts} +1 -1
  141. package/types/radix-ng-primitives-field.d.ts +373 -0
  142. package/types/radix-ng-primitives-fieldset.d.ts +48 -0
  143. package/{focus-scope/index.d.ts → types/radix-ng-primitives-focus-scope.d.ts} +13 -5
  144. package/types/radix-ng-primitives-input.d.ts +87 -0
  145. package/{label/index.d.ts → types/radix-ng-primitives-label.d.ts} +0 -1
  146. package/types/radix-ng-primitives-menu.d.ts +612 -0
  147. package/types/radix-ng-primitives-menubar.d.ts +66 -0
  148. package/types/radix-ng-primitives-meter.d.ts +193 -0
  149. package/types/radix-ng-primitives-navigation-menu.d.ts +488 -0
  150. package/types/radix-ng-primitives-number-field.d.ts +464 -0
  151. package/{pagination/index.d.ts → types/radix-ng-primitives-pagination.d.ts} +2 -2
  152. package/types/radix-ng-primitives-popover.d.ts +416 -0
  153. package/{popper/index.d.ts → types/radix-ng-primitives-popper.d.ts} +50 -9
  154. package/types/radix-ng-primitives-portal.d.ts +30 -0
  155. package/types/radix-ng-primitives-presence.d.ts +55 -0
  156. package/types/radix-ng-primitives-preview-card.d.ts +359 -0
  157. package/types/radix-ng-primitives-progress.d.ts +206 -0
  158. package/{radio/index.d.ts → types/radix-ng-primitives-radio.d.ts} +56 -26
  159. package/{roving-focus/index.d.ts → types/radix-ng-primitives-roving-focus.d.ts} +38 -27
  160. package/types/radix-ng-primitives-select.d.ts +512 -0
  161. package/types/radix-ng-primitives-separator.d.ts +38 -0
  162. package/types/radix-ng-primitives-slider.d.ts +377 -0
  163. package/{stepper/index.d.ts → types/radix-ng-primitives-stepper.d.ts} +21 -22
  164. package/types/radix-ng-primitives-switch.d.ts +121 -0
  165. package/types/radix-ng-primitives-tabs.d.ts +247 -0
  166. package/{time-field/index.d.ts → types/radix-ng-primitives-time-field.d.ts} +46 -31
  167. package/types/radix-ng-primitives-toggle-group.d.ts +116 -0
  168. package/types/radix-ng-primitives-toggle.d.ts +65 -0
  169. package/types/radix-ng-primitives-toolbar.d.ts +180 -0
  170. package/types/radix-ng-primitives-tooltip.d.ts +395 -0
  171. package/{visually-hidden/index.d.ts → types/radix-ng-primitives-visually-hidden.d.ts} +19 -19
  172. package/alert-dialog/index.d.ts +0 -57
  173. package/checkbox/index.d.ts +0 -164
  174. package/collapsible/index.d.ts +0 -85
  175. package/context-menu/index.d.ts +0 -129
  176. package/dialog/index.d.ts +0 -205
  177. package/dropdown-menu/README.md +0 -1
  178. package/dropdown-menu/index.d.ts +0 -171
  179. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +0 -583
  180. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +0 -1
  181. package/fesm2022/radix-ng-primitives-hover-card.mjs +0 -1246
  182. package/fesm2022/radix-ng-primitives-hover-card.mjs.map +0 -1
  183. package/fesm2022/radix-ng-primitives-tooltip2.mjs +0 -740
  184. package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +0 -1
  185. package/hover-card/README.md +0 -3
  186. package/hover-card/index.d.ts +0 -472
  187. package/menu/index.d.ts +0 -139
  188. package/menubar/index.d.ts +0 -56
  189. package/navigation-menu/index.d.ts +0 -405
  190. package/number-field/index.d.ts +0 -203
  191. package/popover/index.d.ts +0 -403
  192. package/portal/index.d.ts +0 -22
  193. package/presence/index.d.ts +0 -103
  194. package/progress/index.d.ts +0 -79
  195. package/select/index.d.ts +0 -214
  196. package/separator/index.d.ts +0 -63
  197. package/slider/index.d.ts +0 -263
  198. package/switch/index.d.ts +0 -105
  199. package/tabs/index.d.ts +0 -112
  200. package/toggle/index.d.ts +0 -75
  201. package/toggle-group/index.d.ts +0 -194
  202. package/toolbar/index.d.ts +0 -55
  203. package/tooltip/index.d.ts +0 -433
  204. package/tooltip2/README.md +0 -3
  205. package/tooltip2/index.d.ts +0 -325
  206. /package/{focus-guards/index.d.ts → types/radix-ng-primitives-focus-guards.d.ts} +0 -0
  207. /package/{index.d.ts → types/radix-ng-primitives.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ElementRef, input, computed, signal, effect, Directive, model, booleanAttribute, linkedSignal, NgModule } from '@angular/core';
3
- import { useDateField, normalizeDateStep, getDefaultTime, isNullish, isBefore, createContent, watch, createFormatter, normalizeHourCycle, initializeSegmentValues, syncSegmentValues, getSegmentElements, isSegmentNavigationKey, ARROW_LEFT, ARROW_RIGHT, provideToken } from '@radix-ng/primitives/core';
4
- import { today, toCalendarDateTime, getLocalTimeZone, isEqualDay } from '@internationalized/date';
2
+ import { InjectionToken, inject, ElementRef, input, computed, signal, effect, Directive, model, booleanAttribute, contentChildren, linkedSignal, NgModule } from '@angular/core';
3
+ import { useDateField, normalizeDateStep, createFormatter, normalizeHourCycle, getDefaultTime, isNullish, syncSegmentValues, initializeSegmentValues, isBefore, createContent, watch, isSegmentNavigationKey, ARROW_LEFT, ARROW_RIGHT, provideToken } from '@radix-ng/primitives/core';
4
+ import { toCalendarDateTime, today, getLocalTimeZone, isEqualDay } from '@internationalized/date';
5
5
 
6
6
  const TIME_FIELDS_ROOT_CONTEXT = new InjectionToken('TIME_FIELDS_ROOT_CONTEXT');
7
7
  function injectTimeFieldsRootContext() {
@@ -11,32 +11,38 @@ function injectTimeFieldsRootContext() {
11
11
  class RdxTimeFieldInputDirective {
12
12
  constructor() {
13
13
  this.el = inject(ElementRef);
14
+ /**
15
+ * The host element of this segment. Consumed by the root to collect focusable
16
+ * segments in DOM order.
17
+ * @ignore
18
+ */
19
+ this.element = this.el.nativeElement;
14
20
  this.rootContext = injectTimeFieldsRootContext();
15
21
  /**
16
22
  * The part of the date to render
17
23
  * `'hour' | 'minute' | 'second' | 'dayPeriod' | 'literal' | 'timeZoneName'`
18
24
  */
19
- this.part = input(...(ngDevMode ? [undefined, { debugName: "part" }] : []));
25
+ this.part = input(...(ngDevMode ? [undefined, { debugName: "part" }] : /* istanbul ignore next */ []));
20
26
  /**
21
27
  * @ignore
22
28
  */
23
- this.disabled = computed(() => this.rootContext.disabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
29
+ this.disabled = computed(() => this.rootContext.disabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
24
30
  /**
25
31
  * @ignore
26
32
  */
27
- this.readonly = computed(() => this.rootContext.readonly(), ...(ngDevMode ? [{ debugName: "readonly" }] : []));
33
+ this.readonly = computed(() => this.rootContext.readonly(), ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
28
34
  /**
29
35
  * @ignore
30
36
  */
31
- this.isInvalid = computed(() => this.rootContext.isInvalid(), ...(ngDevMode ? [{ debugName: "isInvalid" }] : []));
37
+ this.isInvalid = computed(() => this.rootContext.isInvalid(), ...(ngDevMode ? [{ debugName: "isInvalid" }] : /* istanbul ignore next */ []));
32
38
  /**
33
39
  * @ignore
34
40
  */
35
- this.hasLeftFocus = signal(true, ...(ngDevMode ? [{ debugName: "hasLeftFocus" }] : []));
41
+ this.hasLeftFocus = signal(true, ...(ngDevMode ? [{ debugName: "hasLeftFocus" }] : /* istanbul ignore next */ []));
36
42
  /**
37
43
  * @ignore
38
44
  */
39
- this.lastKeyZero = signal(false, ...(ngDevMode ? [{ debugName: "lastKeyZero" }] : []));
45
+ this.lastKeyZero = signal(false, ...(ngDevMode ? [{ debugName: "lastKeyZero" }] : /* istanbul ignore next */ []));
40
46
  this.fieldData = computed(() => {
41
47
  return useDateField({
42
48
  hasLeftFocus: this.hasLeftFocus,
@@ -44,7 +50,7 @@ class RdxTimeFieldInputDirective {
44
50
  placeholder: this.rootContext.convertedPlaceholder,
45
51
  hourCycle: this.rootContext.hourCycle(),
46
52
  segmentValues: this.rootContext.segmentValues,
47
- formatter: this.rootContext.formatter,
53
+ formatter: this.rootContext.formatter(),
48
54
  part: this.part(),
49
55
  disabled: this.rootContext.disabled,
50
56
  readonly: this.rootContext.readonly,
@@ -52,8 +58,8 @@ class RdxTimeFieldInputDirective {
52
58
  focusNext: this.rootContext.focusNext,
53
59
  step: this.rootContext.step$
54
60
  });
55
- }, ...(ngDevMode ? [{ debugName: "fieldData" }] : []));
56
- this.attributes = computed(() => this.fieldData().attributes(), ...(ngDevMode ? [{ debugName: "attributes" }] : []));
61
+ }, ...(ngDevMode ? [{ debugName: "fieldData" }] : /* istanbul ignore next */ []));
62
+ this.attributes = computed(() => this.fieldData().attributes(), ...(ngDevMode ? [{ debugName: "attributes" }] : /* istanbul ignore next */ []));
57
63
  effect(() => {
58
64
  const { handleSegmentClick, handleSegmentKeydown } = this.fieldData();
59
65
  this.handleSegmentKeydown = handleSegmentKeydown;
@@ -78,10 +84,10 @@ class RdxTimeFieldInputDirective {
78
84
  onFocusOut() {
79
85
  this.hasLeftFocus.set(true);
80
86
  }
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
82
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.3", type: RdxTimeFieldInputDirective, isStandalone: true, selector: "[rdxTimeFieldInput]", inputs: { part: { classPropertyName: "part", publicName: "part", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mousedown": "part() !== \"literal\" && handleSegmentClick($event)", "keydown": "part() !== \"literal\" && handleSegmentKeydown($event)", "focus": "part() !== \"literal\" && onFocus($event)", "focusout": "part() !== \"literal\" && onFocusOut()" }, properties: { "attr.contenteditable": "disabled() || readonly() ? false : part() !== \"literal\"", "attr.data-rdx-date-field-segment": "part()", "attr.aria-disabled": "disabled() ? \"\" : undefined", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-invalid": "isInvalid() ? \"\" : undefined", "attr.aria-invalid": "isInvalid() ? true : undefined" } }, ngImport: i0 }); }
87
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
88
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RdxTimeFieldInputDirective, isStandalone: true, selector: "[rdxTimeFieldInput]", inputs: { part: { classPropertyName: "part", publicName: "part", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mousedown": "part() !== \"literal\" && handleSegmentClick($event)", "keydown": "part() !== \"literal\" && handleSegmentKeydown($event)", "focus": "part() !== \"literal\" && onFocus($event)", "focusout": "part() !== \"literal\" && onFocusOut()" }, properties: { "attr.contenteditable": "disabled() || readonly() ? false : part() !== \"literal\"", "attr.data-rdx-date-field-segment": "part()", "attr.aria-disabled": "disabled() ? \"\" : undefined", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-invalid": "isInvalid() ? \"\" : undefined", "attr.aria-invalid": "isInvalid() ? true : undefined" } }, ngImport: i0 }); }
83
89
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldInputDirective, decorators: [{
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldInputDirective, decorators: [{
85
91
  type: Directive,
86
92
  args: [{
87
93
  selector: '[rdxTimeFieldInput]',
@@ -98,7 +104,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
98
104
  '(focusout)': 'part() !== "literal" && onFocusOut()'
99
105
  }
100
106
  }]
101
- }], ctorParameters: () => [] });
107
+ }], ctorParameters: () => [], propDecorators: { part: [{ type: i0.Input, args: [{ isSignal: true, alias: "part", required: false }] }] } });
102
108
 
103
109
  function convertValue(value, date = today(getLocalTimeZone())) {
104
110
  if (value && 'day' in value) {
@@ -108,116 +114,119 @@ function convertValue(value, date = today(getLocalTimeZone())) {
108
114
  }
109
115
  class RdxTimeFieldRootDirective {
110
116
  constructor() {
111
- this.elementRef = inject((ElementRef));
112
117
  /**
113
118
  * The controlled checked state of the calendar.
114
119
  */
115
- this.value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
120
+ this.value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
116
121
  /**
117
122
  * The hour cycle to use for formatting times. Defaults to the locale preference
118
123
  */
119
- this.hourCycle = input(...(ngDevMode ? [undefined, { debugName: "hourCycle" }] : []));
124
+ this.hourCycle = input(...(ngDevMode ? [undefined, { debugName: "hourCycle" }] : /* istanbul ignore next */ []));
120
125
  /**
121
126
  * The granularity to use for formatting the field. Defaults to 'day' if a CalendarDate is provided, otherwise defaults to 'minute'.
122
127
  * The field will render segments for each part of the date up to and including the specified granularity.
123
128
  */
124
- this.granularity = input(...(ngDevMode ? [undefined, { debugName: "granularity" }] : []));
129
+ this.granularity = input(...(ngDevMode ? [undefined, { debugName: "granularity" }] : /* istanbul ignore next */ []));
125
130
  /**
126
131
  * The locale to use for formatting dates.
127
132
  */
128
- this.locale = input('en', ...(ngDevMode ? [{ debugName: "locale" }] : []));
129
- this.dir = input('ltr', ...(ngDevMode ? [{ debugName: "dir" }] : []));
133
+ this.locale = input('en', ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
134
+ this.dir = input('ltr', ...(ngDevMode ? [{ debugName: "dir" }] : /* istanbul ignore next */ []));
130
135
  /**
131
136
  * The minimum valid date that can be entered.
132
137
  */
133
- this.minValue = input(...(ngDevMode ? [undefined, { debugName: "minValue" }] : []));
138
+ this.minValue = input(...(ngDevMode ? [undefined, { debugName: "minValue" }] : /* istanbul ignore next */ []));
134
139
  /**
135
140
  * The maximum valid date that can be entered.
136
141
  */
137
- this.maxValue = input(...(ngDevMode ? [undefined, { debugName: "maxValue" }] : []));
142
+ this.maxValue = input(...(ngDevMode ? [undefined, { debugName: "maxValue" }] : /* istanbul ignore next */ []));
138
143
  /**
139
144
  * Whether or not to hide the time zone segment of the field.
140
145
  */
141
- this.hideTimeZone = input(false, ...(ngDevMode ? [{ debugName: "hideTimeZone", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
142
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
146
+ this.hideTimeZone = input(false, { ...(ngDevMode ? { debugName: "hideTimeZone" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
147
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
143
148
  /**
144
149
  * Whether or not the field is readonly.
145
150
  */
146
- this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
151
+ this.readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
147
152
  /**
148
153
  * The stepping interval for the time fields. Defaults to 1
149
154
  */
150
- this.step = input(...(ngDevMode ? [undefined, { debugName: "step" }] : []));
151
- this.step$ = computed(() => normalizeDateStep(this.step()), ...(ngDevMode ? [{ debugName: "step$" }] : []));
155
+ this.step = input(...(ngDevMode ? [undefined, { debugName: "step" }] : /* istanbul ignore next */ []));
156
+ this.step$ = computed(() => normalizeDateStep(this.step()), ...(ngDevMode ? [{ debugName: "step$" }] : /* istanbul ignore next */ []));
157
+ /**
158
+ * Locale- and hour-cycle-aware formatter. Recomputed whenever `locale` or
159
+ * `hourCycle` change so segments always render with the current settings.
160
+ * @ignore
161
+ */
162
+ this.formatter = computed(() => createFormatter(this.locale(), {
163
+ hourCycle: normalizeHourCycle(this.hourCycle())
164
+ }), ...(ngDevMode ? [{ debugName: "formatter" }] : /* istanbul ignore next */ []));
152
165
  /**
153
166
  * @ignore
154
167
  */
155
168
  this.defaultDate = computed(() => getDefaultTime({
156
169
  defaultPlaceholder: undefined,
157
170
  defaultValue: this.value()
158
- }), ...(ngDevMode ? [{ debugName: "defaultDate" }] : []));
171
+ }), ...(ngDevMode ? [{ debugName: "defaultDate" }] : /* istanbul ignore next */ []));
159
172
  /**
160
173
  * The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view
161
174
  */
162
- this.placeholder = model(this.defaultDate().copy(), ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
175
+ this.placeholder = model(this.defaultDate().copy(), ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
163
176
  // Internal state
164
177
  /**
178
+ * Segment input parts, collected from the projected content in DOM order. This
179
+ * stays in sync with `segmentContents()` (granularity / locale / value changes
180
+ * add or remove segments) instead of being captured once after view init.
165
181
  * @ignore
166
182
  */
167
- this.segmentElements = signal(new Set(), ...(ngDevMode ? [{ debugName: "segmentElements" }] : []));
183
+ this.segmentInputs = contentChildren(RdxTimeFieldInputDirective, ...(ngDevMode ? [{ debugName: "segmentInputs" }] : /* istanbul ignore next */ []));
168
184
  /**
185
+ * The focusable (non-literal) segment elements, in DOM order.
169
186
  * @ignore
170
187
  */
171
- this.currentFocusedElement = signal(null, ...(ngDevMode ? [{ debugName: "currentFocusedElement" }] : []));
188
+ this.segmentElements = computed(() => this.segmentInputs()
189
+ .filter((seg) => seg.part() !== 'literal')
190
+ .map((seg) => seg.element), ...(ngDevMode ? [{ debugName: "segmentElements" }] : /* istanbul ignore next */ []));
172
191
  /**
173
192
  * @ignore
174
193
  */
175
- this.segmentValues = signal({
176
- hour: null,
177
- minute: null,
178
- second: null,
179
- dayPeriod: null
180
- }, ...(ngDevMode ? [{ debugName: "segmentValues" }] : []));
194
+ this.currentFocusedElement = signal(null, ...(ngDevMode ? [{ debugName: "currentFocusedElement" }] : /* istanbul ignore next */ []));
181
195
  /**
182
196
  * @ignore
183
197
  */
184
- this.inferredGranularity = computed(() => {
185
- if (this.granularity())
186
- return this.granularity();
187
- return 'minute';
188
- }, ...(ngDevMode ? [{ debugName: "inferredGranularity" }] : []));
189
- this.convertedMinValue = computed(() => (this.minValue() ? convertValue(this.minValue()) : undefined), ...(ngDevMode ? [{ debugName: "convertedMinValue" }] : []));
190
- this.convertedMaxValue = computed(() => (this.maxValue() ? convertValue(this.maxValue()) : undefined), ...(ngDevMode ? [{ debugName: "convertedMaxValue" }] : []));
191
- this.convertedModelValue = linkedSignal(...(ngDevMode ? [{ debugName: "convertedModelValue", source: () => {
192
- if (isNullish(this.value()))
193
- return this.value();
194
- return convertValue(this.value());
195
- },
196
- computation: (value) => {
197
- return value;
198
- } }] : [{
199
- source: () => {
200
- if (isNullish(this.value()))
201
- return this.value();
202
- return convertValue(this.value());
203
- },
204
- computation: (value) => {
205
- return value;
206
- }
207
- }]));
208
- this.convertedPlaceholder = linkedSignal(...(ngDevMode ? [{ debugName: "convertedPlaceholder", source: () => {
209
- return convertValue(this.placeholder());
210
- },
211
- computation: (value) => {
212
- return value;
213
- } }] : [{
214
- source: () => {
215
- return convertValue(this.placeholder());
216
- },
217
- computation: (value) => {
218
- return value;
219
- }
220
- }]));
198
+ this.inferredGranularity = computed(() => this.granularity() ?? 'minute', ...(ngDevMode ? [{ debugName: "inferredGranularity" }] : /* istanbul ignore next */ []));
199
+ this.convertedMinValue = computed(() => (this.minValue() ? convertValue(this.minValue()) : undefined), ...(ngDevMode ? [{ debugName: "convertedMinValue" }] : /* istanbul ignore next */ []));
200
+ this.convertedMaxValue = computed(() => (this.maxValue() ? convertValue(this.maxValue()) : undefined), ...(ngDevMode ? [{ debugName: "convertedMaxValue" }] : /* istanbul ignore next */ []));
201
+ this.convertedModelValue = linkedSignal({ ...(ngDevMode ? { debugName: "convertedModelValue" } : /* istanbul ignore next */ {}), source: () => {
202
+ if (isNullish(this.value()))
203
+ return this.value();
204
+ return convertValue(this.value());
205
+ },
206
+ computation: (value) => {
207
+ return value;
208
+ } });
209
+ this.convertedPlaceholder = linkedSignal({ ...(ngDevMode ? { debugName: "convertedPlaceholder" } : /* istanbul ignore next */ {}), source: () => {
210
+ return convertValue(this.placeholder());
211
+ },
212
+ computation: (value) => {
213
+ return value;
214
+ } });
215
+ /**
216
+ * The per-segment values. Writable so segment editing (via `useDateField`) can
217
+ * update individual parts, but re-synced from the model whenever the value,
218
+ * granularity or formatter change — so a controlled `value` set after init is
219
+ * reflected, and an empty field re-initializes when granularity changes.
220
+ * @ignore
221
+ */
222
+ this.segmentValues = linkedSignal({ ...(ngDevMode ? { debugName: "segmentValues" } : /* istanbul ignore next */ {}), source: () => ({
223
+ value: this.convertedModelValue(),
224
+ granularity: this.inferredGranularity(),
225
+ formatter: this.formatter()
226
+ }),
227
+ computation: ({ value, granularity, formatter }) => value
228
+ ? { ...syncSegmentValues({ value: value, formatter }) }
229
+ : { ...initializeSegmentValues(granularity) } });
221
230
  /**
222
231
  * @ignore
223
232
  */
@@ -231,51 +240,52 @@ class RdxTimeFieldRootDirective {
231
240
  isBefore(this.convertedMaxValue(), this.convertedModelValue()))
232
241
  return true;
233
242
  return false;
234
- }, ...(ngDevMode ? [{ debugName: "isInvalid" }] : []));
243
+ }, ...(ngDevMode ? [{ debugName: "isInvalid" }] : /* istanbul ignore next */ []));
235
244
  /**
236
245
  * @ignore
237
246
  */
238
247
  this.allSegmentContent = computed(() => createContent({
239
248
  granularity: this.inferredGranularity(),
240
249
  dateRef: this.convertedPlaceholder(),
241
- formatter: this.formatter,
250
+ formatter: this.formatter(),
242
251
  hideTimeZone: this.hideTimeZone(),
243
252
  hourCycle: this.hourCycle(),
244
253
  segmentValues: this.segmentValues(),
245
254
  locale: this.locale,
246
255
  isTimeValue: true
247
- }), ...(ngDevMode ? [{ debugName: "allSegmentContent" }] : []));
256
+ }), ...(ngDevMode ? [{ debugName: "allSegmentContent" }] : /* istanbul ignore next */ []));
248
257
  /**
249
258
  * An array of segments that should be readonly, which prevent user input on them.
250
259
  */
251
- this.segmentContents = computed(() => this.allSegmentContent().arr, ...(ngDevMode ? [{ debugName: "segmentContents" }] : []));
260
+ this.segmentContents = computed(() => this.allSegmentContent().arr, ...(ngDevMode ? [{ debugName: "segmentContents" }] : /* istanbul ignore next */ []));
252
261
  /**
253
262
  * @ignore
254
263
  */
255
- this.currentSegmentIndex = computed(() => Array.from(this.segmentElements()).findIndex((el) => el.getAttribute('data-rdx-date-field-segment') ===
256
- this.currentFocusedElement()?.getAttribute('data-rdx-date-field-segment')), ...(ngDevMode ? [{ debugName: "currentSegmentIndex" }] : []));
264
+ this.currentSegmentIndex = computed(() => this.segmentElements().findIndex((el) => el === this.currentFocusedElement()), ...(ngDevMode ? [{ debugName: "currentSegmentIndex" }] : /* istanbul ignore next */ []));
257
265
  /**
258
266
  * @ignore
259
267
  */
260
268
  this.prevFocusableSegment = computed(() => {
261
269
  const sign = this.dir() === 'rtl' ? -1 : 1;
262
- const prevCondition = sign > 0 ? this.currentSegmentIndex() < 0 : this.currentSegmentIndex() > this.segmentElements().size - 1;
270
+ const elements = this.segmentElements();
271
+ const index = this.currentSegmentIndex();
272
+ const prevCondition = sign > 0 ? index < 0 : index > elements.length - 1;
263
273
  if (prevCondition)
264
274
  return null;
265
- const segmentToFocus = Array.from(this.segmentElements())[this.currentSegmentIndex() - sign];
266
- return segmentToFocus;
267
- }, ...(ngDevMode ? [{ debugName: "prevFocusableSegment" }] : []));
275
+ return elements[index - sign];
276
+ }, ...(ngDevMode ? [{ debugName: "prevFocusableSegment" }] : /* istanbul ignore next */ []));
268
277
  /**
269
278
  * @ignore
270
279
  */
271
280
  this.nextFocusableSegment = computed(() => {
272
281
  const sign = this.dir() === 'rtl' ? -1 : 1;
273
- const nextCondition = sign < 0 ? this.currentSegmentIndex() < 0 : this.currentSegmentIndex() > this.segmentElements().size - 1;
282
+ const elements = this.segmentElements();
283
+ const index = this.currentSegmentIndex();
284
+ const nextCondition = sign < 0 ? index < 0 : index > elements.length - 1;
274
285
  if (nextCondition)
275
286
  return null;
276
- const segmentToFocus = Array.from(this.segmentElements())[this.currentSegmentIndex() + sign];
277
- return segmentToFocus;
278
- }, ...(ngDevMode ? [{ debugName: "nextFocusableSegment" }] : []));
287
+ return elements[index + sign];
288
+ }, ...(ngDevMode ? [{ debugName: "nextFocusableSegment" }] : /* istanbul ignore next */ []));
279
289
  /**
280
290
  * @ignore
281
291
  */
@@ -291,30 +301,14 @@ class RdxTimeFieldRootDirective {
291
301
  this.placeholder.set(value.copy());
292
302
  });
293
303
  }
294
- ngOnInit() {
295
- const defDate = getDefaultTime({
296
- defaultPlaceholder: undefined,
297
- defaultValue: this.value()
298
- });
299
- this.placeholder.set(defDate.copy());
300
- this.formatter = createFormatter(this.locale(), {
301
- hourCycle: normalizeHourCycle(this.hourCycle())
302
- });
303
- const initialSegments = initializeSegmentValues(this.inferredGranularity());
304
- this.segmentValues.set(this.value()
305
- ? { ...syncSegmentValues({ value: this.value(), formatter: this.formatter }) }
306
- : { ...initialSegments });
307
- }
308
- ngAfterViewInit() {
309
- getSegmentElements(this.elementRef.nativeElement).forEach((item) => this.segmentElements().add(item));
310
- }
311
304
  /**
312
305
  * @ignore
313
306
  */
314
307
  onKeydown(event) {
315
- if (!isSegmentNavigationKey(event.key))
308
+ const keyEvent = event;
309
+ if (!isSegmentNavigationKey(keyEvent.key))
316
310
  return;
317
- const code = event.code;
311
+ const code = keyEvent.code;
318
312
  if (code === ARROW_LEFT) {
319
313
  this.prevFocusableSegment()?.focus();
320
314
  }
@@ -328,10 +322,10 @@ class RdxTimeFieldRootDirective {
328
322
  setFocusedElement(el) {
329
323
  this.currentFocusedElement.set(el);
330
324
  }
331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
332
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.3", type: RdxTimeFieldRootDirective, isStandalone: true, selector: "[rdxTimeFieldRoot]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, granularity: { classPropertyName: "granularity", publicName: "granularity", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, hideTimeZone: { classPropertyName: "hideTimeZone", publicName: "hideTimeZone", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", placeholder: "placeholderChange" }, host: { attributes: { "role": "group" }, listeners: { "keydown": "onKeydown($event)" }, properties: { "attr.aria-disabled": "disabled() ? \"\" : undefined", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-readonly": "readonly() ? \"\" : undefined", "attr.data-invalid": "isInvalid() ? \"\" : undefined", "attr.dir": "dir()" } }, providers: [provideToken(TIME_FIELDS_ROOT_CONTEXT, RdxTimeFieldRootDirective)], exportAs: ["rdxTimeFieldRoot"], ngImport: i0 }); }
325
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
326
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.9", type: RdxTimeFieldRootDirective, isStandalone: true, selector: "[rdxTimeFieldRoot]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, granularity: { classPropertyName: "granularity", publicName: "granularity", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, hideTimeZone: { classPropertyName: "hideTimeZone", publicName: "hideTimeZone", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", placeholder: "placeholderChange" }, host: { attributes: { "role": "group" }, listeners: { "keydown": "onKeydown($event)" }, properties: { "attr.aria-disabled": "disabled() ? \"\" : undefined", "attr.data-disabled": "disabled() ? \"\" : undefined", "attr.data-readonly": "readonly() ? \"\" : undefined", "attr.data-invalid": "isInvalid() ? \"\" : undefined", "attr.dir": "dir()" } }, providers: [provideToken(TIME_FIELDS_ROOT_CONTEXT, RdxTimeFieldRootDirective)], queries: [{ propertyName: "segmentInputs", predicate: RdxTimeFieldInputDirective, isSignal: true }], exportAs: ["rdxTimeFieldRoot"], ngImport: i0 }); }
333
327
  }
334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldRootDirective, decorators: [{
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldRootDirective, decorators: [{
335
329
  type: Directive,
336
330
  args: [{
337
331
  selector: '[rdxTimeFieldRoot]',
@@ -347,15 +341,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
347
341
  '(keydown)': 'onKeydown($event)'
348
342
  }
349
343
  }]
350
- }], ctorParameters: () => [] });
344
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], hourCycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourCycle", required: false }] }], granularity: [{ type: i0.Input, args: [{ isSignal: true, alias: "granularity", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], minValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "minValue", required: false }] }], maxValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxValue", required: false }] }], hideTimeZone: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideTimeZone", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }, { type: i0.Output, args: ["placeholderChange"] }], segmentInputs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => RdxTimeFieldInputDirective), { isSignal: true }] }] } });
351
345
 
352
346
  const _imports = [RdxTimeFieldRootDirective, RdxTimeFieldInputDirective];
353
347
  class RdxTimeFieldModule {
354
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
355
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldModule, imports: [RdxTimeFieldRootDirective, RdxTimeFieldInputDirective], exports: [RdxTimeFieldRootDirective, RdxTimeFieldInputDirective] }); }
356
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldModule }); }
348
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
349
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldModule, imports: [RdxTimeFieldRootDirective, RdxTimeFieldInputDirective], exports: [RdxTimeFieldRootDirective, RdxTimeFieldInputDirective] }); }
350
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldModule }); }
357
351
  }
358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: RdxTimeFieldModule, decorators: [{
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RdxTimeFieldModule, decorators: [{
359
353
  type: NgModule,
360
354
  args: [{
361
355
  imports: [..._imports],