@aeris-ui/core 22.0.0-alpha.4 → 22.0.0-alpha.6

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 (197) hide show
  1. package/README.md +2 -2
  2. package/fesm2022/aeris-ui-core-accordion.mjs +12 -12
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +59 -54
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +9 -9
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +10 -10
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +3 -3
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +12 -12
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +3 -3
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +8 -8
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +12 -12
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +40 -39
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +3 -3
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +5 -5
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +9 -9
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-color-picker.mjs +10 -20
  37. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-compare.mjs +12 -12
  39. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +19 -19
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-popup.mjs +19 -19
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-context-menu.mjs +15 -8
  45. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-date-picker.mjs +306 -302
  47. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dialog.mjs +30 -24
  49. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  51. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-drawer.mjs +30 -24
  53. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +7 -7
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-editor.mjs +3 -3
  57. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-file-upload.mjs +24 -24
  59. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  61. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-fluid.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-form-field.mjs +181 -0
  67. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  68. package/fesm2022/aeris-ui-core-galleria.mjs +27 -27
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  71. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  73. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-inplace.mjs +9 -9
  75. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-group.mjs +15 -15
  77. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-mask.mjs +5 -5
  79. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-number.mjs +77 -22
  81. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  83. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-text.mjs +6 -6
  85. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  87. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +15 -7
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +38 -18
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +135 -15
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +9 -9
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +15 -15
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +34 -44
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-order-list.mjs +9 -9
  101. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs +9 -9
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-paginator.mjs +9 -5
  105. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-panel.mjs +15 -15
  107. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-password.mjs +21 -17
  109. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-pick-list.mjs +9 -9
  111. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-popover.mjs +30 -19
  113. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs +9 -9
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs +6 -6
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-radio-button.mjs +5 -5
  119. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-rating.mjs +3 -3
  121. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select.mjs +78 -66
  127. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  129. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  131. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs +3 -3
  133. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-split-button.mjs +9 -5
  135. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-splitter.mjs +6 -6
  137. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-stepper.mjs +12 -12
  139. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  141. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-table.mjs +19 -19
  143. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tabs.mjs +76 -25
  145. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-textarea.mjs +6 -6
  147. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-theming.mjs +3 -3
  150. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-tiered-menu.mjs +29 -10
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-timeline.mjs +15 -15
  154. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-toast.mjs +47 -36
  156. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-toggle-switch.mjs +5 -5
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-toolbar.mjs +18 -18
  160. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  161. package/fesm2022/aeris-ui-core-tooltip.mjs +29 -30
  162. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tree-select.mjs +92 -66
  164. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-tree-table.mjs +16 -16
  166. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-tree.mjs +12 -12
  168. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core.mjs +305 -56
  170. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  171. package/package.json +6 -2
  172. package/styles/aeris.css +63 -0
  173. package/styles/controls.css +9 -2
  174. package/types/aeris-ui-core-auto-complete.d.ts +4 -2
  175. package/types/aeris-ui-core-cascade-select.d.ts +4 -2
  176. package/types/aeris-ui-core-color-picker.d.ts +3 -2
  177. package/types/aeris-ui-core-context-menu.d.ts +3 -1
  178. package/types/aeris-ui-core-date-picker.d.ts +5 -2
  179. package/types/aeris-ui-core-dialog.d.ts +5 -3
  180. package/types/aeris-ui-core-drawer.d.ts +5 -3
  181. package/types/aeris-ui-core-form-field.d.ts +65 -0
  182. package/types/aeris-ui-core-input-number.d.ts +2 -0
  183. package/types/aeris-ui-core-mega-menu.d.ts +4 -2
  184. package/types/aeris-ui-core-menu.d.ts +3 -2
  185. package/types/aeris-ui-core-menubar.d.ts +27 -3
  186. package/types/aeris-ui-core-multi-select.d.ts +4 -2
  187. package/types/aeris-ui-core-paginator.d.ts +3 -2
  188. package/types/aeris-ui-core-password.d.ts +3 -2
  189. package/types/aeris-ui-core-popover.d.ts +2 -2
  190. package/types/aeris-ui-core-select.d.ts +6 -2
  191. package/types/aeris-ui-core-split-button.d.ts +3 -2
  192. package/types/aeris-ui-core-tabs.d.ts +23 -5
  193. package/types/aeris-ui-core-tiered-menu.d.ts +5 -3
  194. package/types/aeris-ui-core-toast.d.ts +3 -2
  195. package/types/aeris-ui-core-tooltip.d.ts +2 -4
  196. package/types/aeris-ui-core-tree-select.d.ts +4 -2
  197. package/types/aeris-ui-core.d.ts +44 -26
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-filter-service.mjs","sources":["../../../projects/aeris-ui/filter-service/aeris-filter-service.ts","../../../projects/aeris-ui/filter-service/aeris-ui-core-filter-service.ts"],"sourcesContent":["import { Service, signal } from '@angular/core';\n\nexport const AERIS_FILTER_MODES = [\n 'starts-with',\n 'contains',\n 'not-contains',\n 'ends-with',\n 'equals',\n 'not-equals',\n 'is',\n 'is-not',\n 'one-of',\n 'less-than',\n 'less-than-or-equal',\n 'greater-than',\n 'greater-than-or-equal',\n 'before',\n 'after',\n] as const;\n\nexport type AerisBuiltInFilterMode = (typeof AERIS_FILTER_MODES)[number];\nexport type AerisFilterMode = AerisBuiltInFilterMode | string;\nexport type AerisFilterLocale = string | readonly string[];\nexport type AerisFilterField<T> = string | ((item: T) => unknown);\nexport type AerisFilterFieldOperator = 'or' | 'and';\n\nexport interface AerisFilterContext {\n readonly mode: string;\n readonly locale?: AerisFilterLocale;\n}\n\nexport type AerisFilterConstraint = (\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n) => boolean;\n\nexport interface AerisFilterOptions<T> {\n readonly query: unknown;\n readonly fields?: readonly AerisFilterField<T>[];\n readonly mode?: AerisFilterMode;\n readonly locale?: AerisFilterLocale;\n readonly fieldOperator?: AerisFilterFieldOperator;\n}\n\nconst BLOCKED_PATH_SEGMENTS = new Set(['__proto__', 'prototype', 'constructor']);\n\n@Service()\nexport class AerisFilterService {\n private readonly builtIns = new Map<string, AerisFilterConstraint>([\n ['starts-with', (value, filter, context) => this.textMatch(value, filter, context, 'start')],\n ['contains', (value, filter, context) => this.textMatch(value, filter, context, 'anywhere')],\n [\n 'not-contains',\n (value, filter, context) =>\n this.isEmptyFilter(filter) ||\n (value !== null &&\n value !== undefined &&\n !this.textMatch(value, filter, context, 'anywhere')),\n ],\n ['ends-with', (value, filter, context) => this.textMatch(value, filter, context, 'end')],\n ['equals', (value, filter, context) => this.equals(value, filter, context)],\n ['not-equals', (value, filter, context) => this.notEquals(value, filter, context)],\n ['is', (value, filter, context) => this.equals(value, filter, context)],\n ['is-not', (value, filter, context) => this.notEquals(value, filter, context)],\n ['one-of', (value, filter, context) => this.oneOf(value, filter, context)],\n ['less-than', (value, filter, context) => this.comparison(value, filter, context, 'lt')],\n [\n 'less-than-or-equal',\n (value, filter, context) => this.comparison(value, filter, context, 'lte'),\n ],\n ['greater-than', (value, filter, context) => this.comparison(value, filter, context, 'gt')],\n [\n 'greater-than-or-equal',\n (value, filter, context) => this.comparison(value, filter, context, 'gte'),\n ],\n ['before', (value, filter) => this.dateComparison(value, filter, 'before')],\n ['after', (value, filter) => this.dateComparison(value, filter, 'after')],\n ]);\n private readonly registry = signal<ReadonlyMap<string, AerisFilterConstraint>>(\n new Map(this.builtIns),\n );\n private readonly customRegistrations = new Map<\n string,\n { readonly token: symbol; readonly constraint: AerisFilterConstraint }[]\n >();\n\n readonly constraints = this.registry.asReadonly();\n\n filter<T>(values: readonly T[], options: AerisFilterOptions<T>): T[] {\n if (this.isEmptyFilter(options.query)) return [...values];\n\n const mode = this.normalizeName(options.mode ?? 'contains');\n const constraint = this.registry().get(mode);\n if (!constraint) return [];\n\n const context = { mode, locale: options.locale } satisfies AerisFilterContext;\n const fields = options.fields?.filter((field) =>\n typeof field === 'function' ? true : field.trim().length > 0,\n );\n const operator = options.fieldOperator ?? 'or';\n\n return values.filter((item) => {\n if (!fields?.length) return this.applyConstraint(constraint, item, options.query, context);\n\n const results = fields.map((field) =>\n this.applyConstraint(constraint, this.resolveField(item, field), options.query, context),\n );\n return operator === 'and' ? results.every(Boolean) : results.some(Boolean);\n });\n }\n\n matches(\n value: unknown,\n filter: unknown,\n mode: AerisFilterMode = 'contains',\n locale?: AerisFilterLocale,\n ): boolean {\n const normalizedMode = this.normalizeName(mode);\n const constraint = this.registry().get(normalizedMode);\n if (!constraint) return false;\n return this.applyConstraint(constraint, value, filter, {\n mode: normalizedMode,\n locale,\n });\n }\n\n register(name: string, constraint: AerisFilterConstraint): () => void {\n const normalizedName = this.normalizeName(name);\n if (!normalizedName) throw new TypeError('Filter constraint names must not be empty.');\n\n const token = Symbol(normalizedName);\n const registrations = this.customRegistrations.get(normalizedName) ?? [];\n registrations.push({ token, constraint });\n this.customRegistrations.set(normalizedName, registrations);\n this.syncConstraint(normalizedName);\n let registered = true;\n\n return () => {\n if (!registered) return;\n registered = false;\n const current = this.customRegistrations.get(normalizedName);\n if (!current) return;\n const next = current.filter((registration) => registration.token !== token);\n if (next.length) this.customRegistrations.set(normalizedName, next);\n else this.customRegistrations.delete(normalizedName);\n this.syncConstraint(normalizedName);\n };\n }\n\n unregister(name: string): boolean {\n const normalizedName = this.normalizeName(name);\n if (!this.customRegistrations.has(normalizedName)) return false;\n this.customRegistrations.delete(normalizedName);\n this.syncConstraint(normalizedName);\n return true;\n }\n\n has(name: string): boolean {\n return this.registry().has(this.normalizeName(name));\n }\n\n constraintNames(): readonly string[] {\n return [...this.registry().keys()].sort((left, right) => left.localeCompare(right));\n }\n\n private textMatch(\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n position: 'start' | 'anywhere' | 'end',\n ): boolean {\n if (this.isEmptyFilter(filter)) return true;\n if (value === null || value === undefined) return false;\n\n const candidate = this.normalizeText(value, context.locale);\n const query = this.normalizeText(filter, context.locale);\n if (candidate === null || query === null) return false;\n if (position === 'start') return candidate.startsWith(query);\n if (position === 'end') return candidate.endsWith(query);\n return candidate.includes(query);\n }\n\n private equals(value: unknown, filter: unknown, context: AerisFilterContext): boolean {\n if (this.isEmptyFilter(filter)) return true;\n return this.equalValues(value, filter, context.locale);\n }\n\n private notEquals(value: unknown, filter: unknown, context: AerisFilterContext): boolean {\n if (this.isEmptyFilter(filter)) return true;\n return !this.equalValues(value, filter, context.locale);\n }\n\n private oneOf(value: unknown, filter: unknown, context: AerisFilterContext): boolean {\n if (!Array.isArray(filter)) return false;\n if (filter.length === 0) return true;\n return filter.some((candidate) => this.equalValues(value, candidate, context.locale));\n }\n\n private equalValues(value: unknown, filter: unknown, locale?: AerisFilterLocale): boolean {\n if (value instanceof Date || filter instanceof Date) {\n const valueTime = this.dateValue(value);\n const filterTime = this.dateValue(filter);\n return valueTime !== null && filterTime !== null && valueTime === filterTime;\n }\n if (typeof value === 'string' && typeof filter === 'string') {\n return this.normalizeText(value, locale) === this.normalizeText(filter, locale);\n }\n return Object.is(value, filter);\n }\n\n private comparison(\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n operator: 'lt' | 'lte' | 'gt' | 'gte',\n ): boolean {\n if (this.isEmptyFilter(filter)) return true;\n const comparison = this.compareValues(value, filter, context.locale);\n if (comparison === null) return false;\n if (operator === 'lt') return comparison < 0;\n if (operator === 'lte') return comparison <= 0;\n if (operator === 'gt') return comparison > 0;\n return comparison >= 0;\n }\n\n private compareValues(\n value: unknown,\n filter: unknown,\n locale?: AerisFilterLocale,\n ): number | null {\n if (value instanceof Date || filter instanceof Date) {\n const left = this.dateValue(value);\n const right = this.dateValue(filter);\n return left === null || right === null ? null : Math.sign(left - right);\n }\n if (typeof value === 'number' && typeof filter === 'number') {\n return Number.isFinite(value) && Number.isFinite(filter) ? Math.sign(value - filter) : null;\n }\n if (typeof value === 'bigint' && typeof filter === 'bigint') {\n return value === filter ? 0 : value < filter ? -1 : 1;\n }\n if (typeof value === 'string' && typeof filter === 'string') {\n try {\n return new Intl.Collator(this.localeArgument(locale), {\n numeric: true,\n sensitivity: 'base',\n }).compare(value, filter);\n } catch {\n return value.localeCompare(filter);\n }\n }\n return null;\n }\n\n private dateComparison(value: unknown, filter: unknown, operator: 'before' | 'after'): boolean {\n if (this.isEmptyFilter(filter)) return true;\n const valueTime = this.dateValue(value);\n const filterTime = this.dateValue(filter);\n if (valueTime === null || filterTime === null) return false;\n return operator === 'before' ? valueTime < filterTime : valueTime > filterTime;\n }\n\n private dateValue(value: unknown): number | null {\n if (!(value instanceof Date) && typeof value !== 'string' && typeof value !== 'number') {\n return null;\n }\n const time = value instanceof Date ? value.getTime() : new Date(value).getTime();\n return Number.isFinite(time) ? time : null;\n }\n\n private normalizeText(value: unknown, locale?: AerisFilterLocale): string | null {\n try {\n const text = String(value).normalize('NFKD').replace(/\\p{M}/gu, '');\n try {\n return text.toLocaleLowerCase(this.localeArgument(locale));\n } catch {\n return text.toLowerCase();\n }\n } catch {\n return null;\n }\n }\n\n private localeArgument(locale?: AerisFilterLocale): string | string[] | undefined {\n return Array.isArray(locale) ? [...locale] : (locale as string | undefined);\n }\n\n private resolveField<T>(item: T, field: AerisFilterField<T>): unknown {\n if (typeof field === 'function') {\n try {\n return field(item);\n } catch {\n return undefined;\n }\n }\n\n let current: unknown = item;\n for (const segment of field.split('.')) {\n if (!segment || BLOCKED_PATH_SEGMENTS.has(segment)) return undefined;\n if ((typeof current !== 'object' && typeof current !== 'function') || current === null) {\n return undefined;\n }\n if (!Object.prototype.hasOwnProperty.call(current, segment)) return undefined;\n try {\n current = (current as Record<string, unknown>)[segment];\n } catch {\n return undefined;\n }\n }\n return current;\n }\n\n private applyConstraint(\n constraint: AerisFilterConstraint,\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n ): boolean {\n try {\n return Boolean(constraint(value, filter, context));\n } catch {\n return false;\n }\n }\n\n private updateRegistry(\n update: (registry: Map<string, AerisFilterConstraint>) => Map<string, AerisFilterConstraint>,\n ): void {\n this.registry.update((current) => new Map(update(new Map(current))));\n }\n\n private syncConstraint(name: string): void {\n const registrations = this.customRegistrations.get(name);\n const constraint = registrations?.at(-1)?.constraint ?? this.builtIns.get(name);\n this.updateRegistry((registry) => {\n if (constraint) registry.set(name, constraint);\n else registry.delete(name);\n return registry;\n });\n }\n\n private isEmptyFilter(value: unknown): boolean {\n return value === null || value === undefined || (typeof value === 'string' && !value.trim());\n }\n\n private normalizeName(value: string): string {\n return value.trim().toLocaleLowerCase();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEO,MAAM,kBAAkB,GAAG;IAChC,aAAa;IACb,UAAU;IACV,cAAc;IACd,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,oBAAoB;IACpB,cAAc;IACd,uBAAuB;IACvB,QAAQ;IACR,OAAO;;AA4BT,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;MAGnE,kBAAkB,CAAA;IACZ,QAAQ,GAAG,IAAI,GAAG,CAAgC;QACjE,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5F,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,KAAK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AC,GAAG,CAAC,IAAI,CAAC;QACxD,MAAM,UAAU,GAAG,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AAC/E,QAAA,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,KAAI;AAC/B,YAAA,IAAI,UAAU;AAAE,gBAAA,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC;;AACzC,gBAAA,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;AAC1B,YAAA,OAAO,QAAQ;AACjB,QAAA,CAAC,CAAC;IACJ;AAEQ,IAAA,aAAa,CAAC,KAAc,EAAA;QAClC,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAC9F;AAEQ,IAAA,aAAa,CAAC,KAAa,EAAA;AACjC,QAAA,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,iBAAiB,EAAE;IACzC;uGA5SW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,OAAA,EAAA,CAAA;wGAAlB,kBAAkB,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;;AC/CD;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-filter-service.mjs","sources":["../../../projects/aeris-ui/filter-service/aeris-filter-service.ts","../../../projects/aeris-ui/filter-service/aeris-ui-core-filter-service.ts"],"sourcesContent":["import { Service, signal } from '@angular/core';\n\nexport const AERIS_FILTER_MODES = [\n 'starts-with',\n 'contains',\n 'not-contains',\n 'ends-with',\n 'equals',\n 'not-equals',\n 'is',\n 'is-not',\n 'one-of',\n 'less-than',\n 'less-than-or-equal',\n 'greater-than',\n 'greater-than-or-equal',\n 'before',\n 'after',\n] as const;\n\nexport type AerisBuiltInFilterMode = (typeof AERIS_FILTER_MODES)[number];\nexport type AerisFilterMode = AerisBuiltInFilterMode | string;\nexport type AerisFilterLocale = string | readonly string[];\nexport type AerisFilterField<T> = string | ((item: T) => unknown);\nexport type AerisFilterFieldOperator = 'or' | 'and';\n\nexport interface AerisFilterContext {\n readonly mode: string;\n readonly locale?: AerisFilterLocale;\n}\n\nexport type AerisFilterConstraint = (\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n) => boolean;\n\nexport interface AerisFilterOptions<T> {\n readonly query: unknown;\n readonly fields?: readonly AerisFilterField<T>[];\n readonly mode?: AerisFilterMode;\n readonly locale?: AerisFilterLocale;\n readonly fieldOperator?: AerisFilterFieldOperator;\n}\n\nconst BLOCKED_PATH_SEGMENTS = new Set(['__proto__', 'prototype', 'constructor']);\n\n@Service()\nexport class AerisFilterService {\n private readonly builtIns = new Map<string, AerisFilterConstraint>([\n ['starts-with', (value, filter, context) => this.textMatch(value, filter, context, 'start')],\n ['contains', (value, filter, context) => this.textMatch(value, filter, context, 'anywhere')],\n [\n 'not-contains',\n (value, filter, context) =>\n this.isEmptyFilter(filter) ||\n (value !== null &&\n value !== undefined &&\n !this.textMatch(value, filter, context, 'anywhere')),\n ],\n ['ends-with', (value, filter, context) => this.textMatch(value, filter, context, 'end')],\n ['equals', (value, filter, context) => this.equals(value, filter, context)],\n ['not-equals', (value, filter, context) => this.notEquals(value, filter, context)],\n ['is', (value, filter, context) => this.equals(value, filter, context)],\n ['is-not', (value, filter, context) => this.notEquals(value, filter, context)],\n ['one-of', (value, filter, context) => this.oneOf(value, filter, context)],\n ['less-than', (value, filter, context) => this.comparison(value, filter, context, 'lt')],\n [\n 'less-than-or-equal',\n (value, filter, context) => this.comparison(value, filter, context, 'lte'),\n ],\n ['greater-than', (value, filter, context) => this.comparison(value, filter, context, 'gt')],\n [\n 'greater-than-or-equal',\n (value, filter, context) => this.comparison(value, filter, context, 'gte'),\n ],\n ['before', (value, filter) => this.dateComparison(value, filter, 'before')],\n ['after', (value, filter) => this.dateComparison(value, filter, 'after')],\n ]);\n private readonly registry = signal<ReadonlyMap<string, AerisFilterConstraint>>(\n new Map(this.builtIns),\n );\n private readonly customRegistrations = new Map<\n string,\n { readonly token: symbol; readonly constraint: AerisFilterConstraint }[]\n >();\n\n readonly constraints = this.registry.asReadonly();\n\n filter<T>(values: readonly T[], options: AerisFilterOptions<T>): T[] {\n if (this.isEmptyFilter(options.query)) return [...values];\n\n const mode = this.normalizeName(options.mode ?? 'contains');\n const constraint = this.registry().get(mode);\n if (!constraint) return [];\n\n const context = { mode, locale: options.locale } satisfies AerisFilterContext;\n const fields = options.fields?.filter((field) =>\n typeof field === 'function' ? true : field.trim().length > 0,\n );\n const operator = options.fieldOperator ?? 'or';\n\n return values.filter((item) => {\n if (!fields?.length) return this.applyConstraint(constraint, item, options.query, context);\n\n const results = fields.map((field) =>\n this.applyConstraint(constraint, this.resolveField(item, field), options.query, context),\n );\n return operator === 'and' ? results.every(Boolean) : results.some(Boolean);\n });\n }\n\n matches(\n value: unknown,\n filter: unknown,\n mode: AerisFilterMode = 'contains',\n locale?: AerisFilterLocale,\n ): boolean {\n const normalizedMode = this.normalizeName(mode);\n const constraint = this.registry().get(normalizedMode);\n if (!constraint) return false;\n return this.applyConstraint(constraint, value, filter, {\n mode: normalizedMode,\n locale,\n });\n }\n\n register(name: string, constraint: AerisFilterConstraint): () => void {\n const normalizedName = this.normalizeName(name);\n if (!normalizedName) throw new TypeError('Filter constraint names must not be empty.');\n\n const token = Symbol(normalizedName);\n const registrations = this.customRegistrations.get(normalizedName) ?? [];\n registrations.push({ token, constraint });\n this.customRegistrations.set(normalizedName, registrations);\n this.syncConstraint(normalizedName);\n let registered = true;\n\n return () => {\n if (!registered) return;\n registered = false;\n const current = this.customRegistrations.get(normalizedName);\n if (!current) return;\n const next = current.filter((registration) => registration.token !== token);\n if (next.length) this.customRegistrations.set(normalizedName, next);\n else this.customRegistrations.delete(normalizedName);\n this.syncConstraint(normalizedName);\n };\n }\n\n unregister(name: string): boolean {\n const normalizedName = this.normalizeName(name);\n if (!this.customRegistrations.has(normalizedName)) return false;\n this.customRegistrations.delete(normalizedName);\n this.syncConstraint(normalizedName);\n return true;\n }\n\n has(name: string): boolean {\n return this.registry().has(this.normalizeName(name));\n }\n\n constraintNames(): readonly string[] {\n return [...this.registry().keys()].sort((left, right) => left.localeCompare(right));\n }\n\n private textMatch(\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n position: 'start' | 'anywhere' | 'end',\n ): boolean {\n if (this.isEmptyFilter(filter)) return true;\n if (value === null || value === undefined) return false;\n\n const candidate = this.normalizeText(value, context.locale);\n const query = this.normalizeText(filter, context.locale);\n if (candidate === null || query === null) return false;\n if (position === 'start') return candidate.startsWith(query);\n if (position === 'end') return candidate.endsWith(query);\n return candidate.includes(query);\n }\n\n private equals(value: unknown, filter: unknown, context: AerisFilterContext): boolean {\n if (this.isEmptyFilter(filter)) return true;\n return this.equalValues(value, filter, context.locale);\n }\n\n private notEquals(value: unknown, filter: unknown, context: AerisFilterContext): boolean {\n if (this.isEmptyFilter(filter)) return true;\n return !this.equalValues(value, filter, context.locale);\n }\n\n private oneOf(value: unknown, filter: unknown, context: AerisFilterContext): boolean {\n if (!Array.isArray(filter)) return false;\n if (filter.length === 0) return true;\n return filter.some((candidate) => this.equalValues(value, candidate, context.locale));\n }\n\n private equalValues(value: unknown, filter: unknown, locale?: AerisFilterLocale): boolean {\n if (value instanceof Date || filter instanceof Date) {\n const valueTime = this.dateValue(value);\n const filterTime = this.dateValue(filter);\n return valueTime !== null && filterTime !== null && valueTime === filterTime;\n }\n if (typeof value === 'string' && typeof filter === 'string') {\n return this.normalizeText(value, locale) === this.normalizeText(filter, locale);\n }\n return Object.is(value, filter);\n }\n\n private comparison(\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n operator: 'lt' | 'lte' | 'gt' | 'gte',\n ): boolean {\n if (this.isEmptyFilter(filter)) return true;\n const comparison = this.compareValues(value, filter, context.locale);\n if (comparison === null) return false;\n if (operator === 'lt') return comparison < 0;\n if (operator === 'lte') return comparison <= 0;\n if (operator === 'gt') return comparison > 0;\n return comparison >= 0;\n }\n\n private compareValues(\n value: unknown,\n filter: unknown,\n locale?: AerisFilterLocale,\n ): number | null {\n if (value instanceof Date || filter instanceof Date) {\n const left = this.dateValue(value);\n const right = this.dateValue(filter);\n return left === null || right === null ? null : Math.sign(left - right);\n }\n if (typeof value === 'number' && typeof filter === 'number') {\n return Number.isFinite(value) && Number.isFinite(filter) ? Math.sign(value - filter) : null;\n }\n if (typeof value === 'bigint' && typeof filter === 'bigint') {\n return value === filter ? 0 : value < filter ? -1 : 1;\n }\n if (typeof value === 'string' && typeof filter === 'string') {\n try {\n return new Intl.Collator(this.localeArgument(locale), {\n numeric: true,\n sensitivity: 'base',\n }).compare(value, filter);\n } catch {\n return value.localeCompare(filter);\n }\n }\n return null;\n }\n\n private dateComparison(value: unknown, filter: unknown, operator: 'before' | 'after'): boolean {\n if (this.isEmptyFilter(filter)) return true;\n const valueTime = this.dateValue(value);\n const filterTime = this.dateValue(filter);\n if (valueTime === null || filterTime === null) return false;\n return operator === 'before' ? valueTime < filterTime : valueTime > filterTime;\n }\n\n private dateValue(value: unknown): number | null {\n if (!(value instanceof Date) && typeof value !== 'string' && typeof value !== 'number') {\n return null;\n }\n const time = value instanceof Date ? value.getTime() : new Date(value).getTime();\n return Number.isFinite(time) ? time : null;\n }\n\n private normalizeText(value: unknown, locale?: AerisFilterLocale): string | null {\n try {\n const text = String(value).normalize('NFKD').replace(/\\p{M}/gu, '');\n try {\n return text.toLocaleLowerCase(this.localeArgument(locale));\n } catch {\n return text.toLowerCase();\n }\n } catch {\n return null;\n }\n }\n\n private localeArgument(locale?: AerisFilterLocale): string | string[] | undefined {\n return Array.isArray(locale) ? [...locale] : (locale as string | undefined);\n }\n\n private resolveField<T>(item: T, field: AerisFilterField<T>): unknown {\n if (typeof field === 'function') {\n try {\n return field(item);\n } catch {\n return undefined;\n }\n }\n\n let current: unknown = item;\n for (const segment of field.split('.')) {\n if (!segment || BLOCKED_PATH_SEGMENTS.has(segment)) return undefined;\n if ((typeof current !== 'object' && typeof current !== 'function') || current === null) {\n return undefined;\n }\n if (!Object.prototype.hasOwnProperty.call(current, segment)) return undefined;\n try {\n current = (current as Record<string, unknown>)[segment];\n } catch {\n return undefined;\n }\n }\n return current;\n }\n\n private applyConstraint(\n constraint: AerisFilterConstraint,\n value: unknown,\n filter: unknown,\n context: AerisFilterContext,\n ): boolean {\n try {\n return Boolean(constraint(value, filter, context));\n } catch {\n return false;\n }\n }\n\n private updateRegistry(\n update: (registry: Map<string, AerisFilterConstraint>) => Map<string, AerisFilterConstraint>,\n ): void {\n this.registry.update((current) => new Map(update(new Map(current))));\n }\n\n private syncConstraint(name: string): void {\n const registrations = this.customRegistrations.get(name);\n const constraint = registrations?.at(-1)?.constraint ?? this.builtIns.get(name);\n this.updateRegistry((registry) => {\n if (constraint) registry.set(name, constraint);\n else registry.delete(name);\n return registry;\n });\n }\n\n private isEmptyFilter(value: unknown): boolean {\n return value === null || value === undefined || (typeof value === 'string' && !value.trim());\n }\n\n private normalizeName(value: string): string {\n return value.trim().toLocaleLowerCase();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEO,MAAM,kBAAkB,GAAG;IAChC,aAAa;IACb,UAAU;IACV,cAAc;IACd,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,oBAAoB;IACpB,cAAc;IACd,uBAAuB;IACvB,QAAQ;IACR,OAAO;;AA4BT,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;MAGnE,kBAAkB,CAAA;IACZ,QAAQ,GAAG,IAAI,GAAG,CAAgC;QACjE,CAAC,aAAa,EAAE,CAAC,KAAK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,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACtE;AAEQ,IAAA,cAAc,CAAC,IAAY,EAAA;QACjC,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC;QACxD,MAAM,UAAU,GAAG,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;AAC/E,QAAA,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,KAAI;AAC/B,YAAA,IAAI,UAAU;AAAE,gBAAA,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC;;AACzC,gBAAA,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;AAC1B,YAAA,OAAO,QAAQ;AACjB,QAAA,CAAC,CAAC;IACJ;AAEQ,IAAA,aAAa,CAAC,KAAc,EAAA;QAClC,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAC9F;AAEQ,IAAA,aAAa,CAAC,KAAa,EAAA;AACjC,QAAA,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,iBAAiB,EAAE;IACzC;uGA5SW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,OAAA,EAAA,CAAA;wGAAlB,kBAAkB,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;;AC/CD;;AAEG;;"}
@@ -3,10 +3,10 @@ import { input, booleanAttribute, ViewEncapsulation, Component } from '@angular/
3
3
 
4
4
  class AerisFluid {
5
5
  enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisFluid, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.1", type: AerisFluid, isStandalone: true, selector: "aeris-fluid", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-enabled": "enabled()" }, classAttribute: "aeris-fluid" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["aeris-fluid.aeris-fluid{min-inline-size:var(--aeris-fluid-min-inline-size, 0);inline-size:var(--aeris-fluid-inline-size, 100%);display:block}aeris-fluid.aeris-fluid[data-enabled=true] :where(aeris-auto-complete,aeris-button,aeris-button-group,aeris-cascade-select,aeris-color-picker,aeris-date-picker,aeris-editor,aeris-icon-field,aeris-input-group,aeris-input-mask,aeris-input-number,aeris-input-otp,aeris-input-text,aeris-multi-select,aeris-password,aeris-select,aeris-slider,aeris-split-button,aeris-textarea,aeris-tree-select,button[aerisButton],a[aerisButton],input[aerisInputText],textarea[aerisTextarea]){min-inline-size:var(--aeris-fluid-min-inline-size, 0);max-inline-size:100%;inline-size:var(--aeris-fluid-inline-size, 100%)}\n"], encapsulation: i0.ViewEncapsulation.None });
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFluid, deps: [], target: i0.ɵɵFactoryTarget.Component });
7
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: AerisFluid, isStandalone: true, selector: "aeris-fluid", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-enabled": "enabled()" }, classAttribute: "aeris-fluid" }, ngImport: i0, template: `<ng-content />`, isInline: true, styles: ["aeris-fluid.aeris-fluid{min-inline-size:var(--aeris-fluid-min-inline-size, 0);inline-size:var(--aeris-fluid-inline-size, 100%);display:block}aeris-fluid.aeris-fluid[data-enabled=true] :where(aeris-auto-complete,aeris-button,aeris-button-group,aeris-cascade-select,aeris-color-picker,aeris-date-picker,aeris-editor,aeris-icon-field,aeris-input-group,aeris-input-mask,aeris-input-number,aeris-input-otp,aeris-input-text,aeris-multi-select,aeris-password,aeris-select,aeris-slider,aeris-split-button,aeris-textarea,aeris-tree-select,button[aerisButton],a[aerisButton],input[aerisInputText],textarea[aerisTextarea]){min-inline-size:var(--aeris-fluid-min-inline-size, 0);max-inline-size:100%;inline-size:var(--aeris-fluid-inline-size, 100%)}\n"], encapsulation: i0.ViewEncapsulation.None });
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisFluid, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFluid, decorators: [{
10
10
  type: Component,
11
11
  args: [{ selector: 'aeris-fluid', template: `<ng-content />`, encapsulation: ViewEncapsulation.None, host: {
12
12
  class: 'aeris-fluid',
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-fluid.mjs","sources":["../../../projects/aeris-ui/fluid/aeris-fluid.ts","../../../projects/aeris-ui/fluid/aeris-ui-core-fluid.ts"],"sourcesContent":["import { Component, ViewEncapsulation, booleanAttribute, input } from '@angular/core';\n\n@Component({\n selector: 'aeris-fluid',\n template: `<ng-content />`,\n styleUrl: './aeris-fluid.scss',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'aeris-fluid',\n '[attr.data-enabled]': 'enabled()',\n },\n})\nexport class AerisFluid {\n readonly enabled = input(true, { transform: booleanAttribute });\n}\n\nexport const AerisFluidModule = [AerisFluid] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAYa,UAAU,CAAA;IACZ,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;uGADpD,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAV,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAU,4SARX,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ouBAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAQf,UAAU,EAAA,UAAA,EAAA,CAAA;kBAVtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,YACb,CAAA,cAAA,CAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,KAAK,EAAE,aAAa;AACpB,wBAAA,qBAAqB,EAAE,WAAW;AACnC,qBAAA,EAAA,MAAA,EAAA,CAAA,ouBAAA,CAAA,EAAA;;AAMI,MAAM,gBAAgB,GAAG,CAAC,UAAU;;AChB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-fluid.mjs","sources":["../../../projects/aeris-ui/fluid/aeris-fluid.ts","../../../projects/aeris-ui/fluid/aeris-ui-core-fluid.ts"],"sourcesContent":["import { Component, ViewEncapsulation, booleanAttribute, input } from '@angular/core';\n\n@Component({\n selector: 'aeris-fluid',\n template: `<ng-content />`,\n styleUrl: './aeris-fluid.scss',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'aeris-fluid',\n '[attr.data-enabled]': 'enabled()',\n },\n})\nexport class AerisFluid {\n readonly enabled = input(true, { transform: booleanAttribute });\n}\n\nexport const AerisFluidModule = [AerisFluid] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAYa,UAAU,CAAA;IACZ,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;uGADpD,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAV,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAU,4SARX,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ouBAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAQf,UAAU,EAAA,UAAA,EAAA,CAAA;kBAVtB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,YACb,CAAA,cAAA,CAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,KAAK,EAAE,aAAa;AACpB,wBAAA,qBAAqB,EAAE,WAAW;AACnC,qBAAA,EAAA,MAAA,EAAA,CAAA,ouBAAA,CAAA,EAAA;;AAMI,MAAM,gBAAgB,GAAG,CAAC,UAAU;;AChB3C;;AAEG;;"}
@@ -161,10 +161,10 @@ class AerisFocusTrapDirective {
161
161
  activeElement() {
162
162
  return this.document.activeElement;
163
163
  }
164
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisFocusTrapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
165
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: AerisFocusTrapDirective, isStandalone: true, selector: "[aerisFocusTrap]", inputs: { enabled: { classPropertyName: "enabled", publicName: "aerisFocusTrap", isSignal: true, isRequired: false, transformFunction: null }, preventScroll: { classPropertyName: "preventScroll", publicName: "aerisFocusTrapPreventScroll", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "handleKeydown($event)" }, properties: { "attr.data-aeris-focus-trap": "enabled() ? \"true\" : null" } }, exportAs: ["aerisFocusTrap"], ngImport: i0 });
164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFocusTrapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
165
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AerisFocusTrapDirective, isStandalone: true, selector: "[aerisFocusTrap]", inputs: { enabled: { classPropertyName: "enabled", publicName: "aerisFocusTrap", isSignal: true, isRequired: false, transformFunction: null }, preventScroll: { classPropertyName: "preventScroll", publicName: "aerisFocusTrapPreventScroll", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "handleKeydown($event)" }, properties: { "attr.data-aeris-focus-trap": "enabled() ? \"true\" : null" } }, exportAs: ["aerisFocusTrap"], ngImport: i0 });
166
166
  }
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AerisFocusTrapDirective, decorators: [{
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFocusTrapDirective, decorators: [{
168
168
  type: Directive,
169
169
  args: [{
170
170
  selector: '[aerisFocusTrap]',
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-focus-trap.mjs","sources":["../../../projects/aeris-ui/focus-trap/aeris-focus-trap.ts","../../../projects/aeris-ui/focus-trap/aeris-ui-core-focus-trap.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n PLATFORM_ID,\n Renderer2,\n booleanAttribute,\n effect,\n inject,\n input,\n} from '@angular/core';\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'area[href]',\n 'button',\n 'input',\n 'select',\n 'textarea',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n 'summary',\n '[contenteditable]:not([contenteditable=\"false\"])',\n '[tabindex]',\n].join(',');\n\n@Directive({\n selector: '[aerisFocusTrap]',\n exportAs: 'aerisFocusTrap',\n host: {\n '[attr.data-aeris-focus-trap]': 'enabled() ? \"true\" : null',\n '(keydown)': 'handleKeydown($event)',\n },\n})\nexport class AerisFocusTrapDirective {\n readonly enabled = input<boolean, boolean | string | null>(true, {\n alias: 'aerisFocusTrap',\n transform: booleanAttribute,\n });\n readonly preventScroll = input<boolean, boolean | string | null>(true, {\n alias: 'aerisFocusTrapPreventScroll',\n transform: booleanAttribute,\n });\n\n private readonly document = inject(DOCUMENT);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly destroyRef = inject(DestroyRef);\n private ownsHostTabIndex = false;\n\n constructor() {\n effect(() => {\n if (!this.enabled()) this.releaseHostTabIndex();\n });\n this.destroyRef.onDestroy(() => this.releaseHostTabIndex());\n }\n\n focusFirst(options?: FocusOptions): boolean {\n return this.focusBoundary('first', options);\n }\n\n focusLast(options?: FocusOptions): boolean {\n return this.focusBoundary('last', options);\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n if (\n !this.enabled() ||\n !this.isBrowser ||\n event.defaultPrevented ||\n event.key !== 'Tab' ||\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n !this.isNearestActiveTrap(event.target)\n ) {\n return;\n }\n\n const focusable = this.focusableElements();\n if (focusable.length === 0) {\n event.preventDefault();\n this.focusHost();\n return;\n }\n\n this.releaseHostTabIndex();\n const active = this.activeElement();\n if (!this.shouldWrap(active, focusable, event.shiftKey)) return;\n\n event.preventDefault();\n const target = event.shiftKey ? focusable.at(-1) : focusable[0];\n if (target) this.focusElement(target);\n }\n\n private focusBoundary(boundary: 'first' | 'last', options?: FocusOptions): boolean {\n if (!this.isBrowser) return false;\n const focusable = this.focusableElements();\n const target = boundary === 'first' ? focusable[0] : focusable.at(-1);\n if (target) {\n this.releaseHostTabIndex();\n return this.focusElement(target, options);\n }\n return this.focusHost(options);\n }\n\n private focusableElements(): readonly HTMLElement[] {\n return [...this.element.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)]\n .filter((element) => this.isFocusable(element))\n .sort((left, right) => {\n const leftOrder = left.tabIndex > 0 ? left.tabIndex : Number.MAX_SAFE_INTEGER;\n const rightOrder = right.tabIndex > 0 ? right.tabIndex : Number.MAX_SAFE_INTEGER;\n return leftOrder - rightOrder;\n });\n }\n\n private isFocusable(element: HTMLElement): boolean {\n if (!this.isAvailable(element)) return false;\n return !(element instanceof HTMLInputElement) || this.isRadioTabStop(element);\n }\n\n private isAvailable(element: HTMLElement): boolean {\n if (element.tabIndex < 0 || element.matches(':disabled') || element.hidden || element.inert) {\n return false;\n }\n if (element instanceof HTMLInputElement && element.type === 'hidden') return false;\n if (element.closest('[hidden], [inert], [aria-hidden=\"true\"]')) return false;\n\n const closedDetails = element.closest('details:not([open])');\n if (closedDetails && closedDetails.querySelector('summary') !== element) return false;\n\n const view = this.document.defaultView;\n for (let current: HTMLElement | null = element; current; current = current.parentElement) {\n const style = view?.getComputedStyle(current);\n if (\n style?.display === 'none' ||\n style?.visibility === 'hidden' ||\n style?.visibility === 'collapse'\n ) {\n return false;\n }\n if (current === this.element) break;\n }\n return true;\n }\n\n private isRadioTabStop(element: HTMLInputElement): boolean {\n if (element.type !== 'radio' || !element.name) return true;\n\n const group = [\n ...this.element.querySelectorAll<HTMLInputElement>('input[type=\"radio\"]'),\n ].filter(\n (radio) =>\n radio.name === element.name && radio.form === element.form && this.isAvailable(radio),\n );\n const checked = group.find((radio) => radio.checked);\n return checked ? checked === element : group[0] === element;\n }\n\n private shouldWrap(\n active: Element | null,\n focusable: readonly HTMLElement[],\n reverse: boolean,\n ): boolean {\n if (!active || active === this.element || !this.element.contains(active)) return true;\n\n const boundary = reverse ? focusable[0] : focusable.at(-1);\n if (active === boundary) return true;\n if (focusable.includes(active as HTMLElement)) return false;\n\n const direction = reverse ? 2 : 4;\n return !focusable.some((candidate) => active.compareDocumentPosition(candidate) & direction);\n }\n\n private isNearestActiveTrap(target: EventTarget | null): boolean {\n const targetElement = target instanceof Element ? target : this.element;\n return targetElement.closest('[data-aeris-focus-trap=\"true\"]') === this.element;\n }\n\n private focusElement(element: HTMLElement, options?: FocusOptions): boolean {\n element.focus(options ?? { preventScroll: this.preventScroll() });\n return this.activeElement() === element;\n }\n\n private focusHost(options?: FocusOptions): boolean {\n if (!this.element.hasAttribute('tabindex')) {\n this.renderer.setAttribute(this.element, 'tabindex', '-1');\n this.ownsHostTabIndex = true;\n }\n return this.focusElement(this.element, options);\n }\n\n private releaseHostTabIndex(): void {\n if (!this.ownsHostTabIndex) return;\n this.renderer.removeAttribute(this.element, 'tabindex');\n this.ownsHostTabIndex = false;\n }\n\n private activeElement(): Element | null {\n return this.document.activeElement;\n }\n}\n\nexport const AerisFocusTrapModule = [AerisFocusTrapDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAaA,MAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,iBAAiB;IACjB,iBAAiB;IACjB,SAAS;IACT,kDAAkD;IAClD,YAAY;AACb,CAAA,CAAC,IAAI,CAAC,GAAG,CAAC;MAUE,uBAAuB,CAAA;AACzB,IAAA,OAAO,GAAG,KAAK,CAAmC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,SAAA,EAAA,8BAAA,EAAA,CAAA,EAC7D,KAAK,EAAE,gBAAgB;QACvB,SAAS,EAA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,qBAAA;AACF,iBAAA;;AA2KM,MAAM,oBAAoB,GAAG,CAAC,uBAAuB;;AChN5D;;AAEG;;;;"}
1
+ {"version":3,"file":"aeris-ui-core-focus-trap.mjs","sources":["../../../projects/aeris-ui/focus-trap/aeris-focus-trap.ts","../../../projects/aeris-ui/focus-trap/aeris-ui-core-focus-trap.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n PLATFORM_ID,\n Renderer2,\n booleanAttribute,\n effect,\n inject,\n input,\n} from '@angular/core';\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'area[href]',\n 'button',\n 'input',\n 'select',\n 'textarea',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n 'summary',\n '[contenteditable]:not([contenteditable=\"false\"])',\n '[tabindex]',\n].join(',');\n\n@Directive({\n selector: '[aerisFocusTrap]',\n exportAs: 'aerisFocusTrap',\n host: {\n '[attr.data-aeris-focus-trap]': 'enabled() ? \"true\" : null',\n '(keydown)': 'handleKeydown($event)',\n },\n})\nexport class AerisFocusTrapDirective {\n readonly enabled = input<boolean, boolean | string | null>(true, {\n alias: 'aerisFocusTrap',\n transform: booleanAttribute,\n });\n readonly preventScroll = input<boolean, boolean | string | null>(true, {\n alias: 'aerisFocusTrapPreventScroll',\n transform: booleanAttribute,\n });\n\n private readonly document = inject(DOCUMENT);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly destroyRef = inject(DestroyRef);\n private ownsHostTabIndex = false;\n\n constructor() {\n effect(() => {\n if (!this.enabled()) this.releaseHostTabIndex();\n });\n this.destroyRef.onDestroy(() => this.releaseHostTabIndex());\n }\n\n focusFirst(options?: FocusOptions): boolean {\n return this.focusBoundary('first', options);\n }\n\n focusLast(options?: FocusOptions): boolean {\n return this.focusBoundary('last', options);\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n if (\n !this.enabled() ||\n !this.isBrowser ||\n event.defaultPrevented ||\n event.key !== 'Tab' ||\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n !this.isNearestActiveTrap(event.target)\n ) {\n return;\n }\n\n const focusable = this.focusableElements();\n if (focusable.length === 0) {\n event.preventDefault();\n this.focusHost();\n return;\n }\n\n this.releaseHostTabIndex();\n const active = this.activeElement();\n if (!this.shouldWrap(active, focusable, event.shiftKey)) return;\n\n event.preventDefault();\n const target = event.shiftKey ? focusable.at(-1) : focusable[0];\n if (target) this.focusElement(target);\n }\n\n private focusBoundary(boundary: 'first' | 'last', options?: FocusOptions): boolean {\n if (!this.isBrowser) return false;\n const focusable = this.focusableElements();\n const target = boundary === 'first' ? focusable[0] : focusable.at(-1);\n if (target) {\n this.releaseHostTabIndex();\n return this.focusElement(target, options);\n }\n return this.focusHost(options);\n }\n\n private focusableElements(): readonly HTMLElement[] {\n return [...this.element.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)]\n .filter((element) => this.isFocusable(element))\n .sort((left, right) => {\n const leftOrder = left.tabIndex > 0 ? left.tabIndex : Number.MAX_SAFE_INTEGER;\n const rightOrder = right.tabIndex > 0 ? right.tabIndex : Number.MAX_SAFE_INTEGER;\n return leftOrder - rightOrder;\n });\n }\n\n private isFocusable(element: HTMLElement): boolean {\n if (!this.isAvailable(element)) return false;\n return !(element instanceof HTMLInputElement) || this.isRadioTabStop(element);\n }\n\n private isAvailable(element: HTMLElement): boolean {\n if (element.tabIndex < 0 || element.matches(':disabled') || element.hidden || element.inert) {\n return false;\n }\n if (element instanceof HTMLInputElement && element.type === 'hidden') return false;\n if (element.closest('[hidden], [inert], [aria-hidden=\"true\"]')) return false;\n\n const closedDetails = element.closest('details:not([open])');\n if (closedDetails && closedDetails.querySelector('summary') !== element) return false;\n\n const view = this.document.defaultView;\n for (let current: HTMLElement | null = element; current; current = current.parentElement) {\n const style = view?.getComputedStyle(current);\n if (\n style?.display === 'none' ||\n style?.visibility === 'hidden' ||\n style?.visibility === 'collapse'\n ) {\n return false;\n }\n if (current === this.element) break;\n }\n return true;\n }\n\n private isRadioTabStop(element: HTMLInputElement): boolean {\n if (element.type !== 'radio' || !element.name) return true;\n\n const group = [\n ...this.element.querySelectorAll<HTMLInputElement>('input[type=\"radio\"]'),\n ].filter(\n (radio) =>\n radio.name === element.name && radio.form === element.form && this.isAvailable(radio),\n );\n const checked = group.find((radio) => radio.checked);\n return checked ? checked === element : group[0] === element;\n }\n\n private shouldWrap(\n active: Element | null,\n focusable: readonly HTMLElement[],\n reverse: boolean,\n ): boolean {\n if (!active || active === this.element || !this.element.contains(active)) return true;\n\n const boundary = reverse ? focusable[0] : focusable.at(-1);\n if (active === boundary) return true;\n if (focusable.includes(active as HTMLElement)) return false;\n\n const direction = reverse ? 2 : 4;\n return !focusable.some((candidate) => active.compareDocumentPosition(candidate) & direction);\n }\n\n private isNearestActiveTrap(target: EventTarget | null): boolean {\n const targetElement = target instanceof Element ? target : this.element;\n return targetElement.closest('[data-aeris-focus-trap=\"true\"]') === this.element;\n }\n\n private focusElement(element: HTMLElement, options?: FocusOptions): boolean {\n element.focus(options ?? { preventScroll: this.preventScroll() });\n return this.activeElement() === element;\n }\n\n private focusHost(options?: FocusOptions): boolean {\n if (!this.element.hasAttribute('tabindex')) {\n this.renderer.setAttribute(this.element, 'tabindex', '-1');\n this.ownsHostTabIndex = true;\n }\n return this.focusElement(this.element, options);\n }\n\n private releaseHostTabIndex(): void {\n if (!this.ownsHostTabIndex) return;\n this.renderer.removeAttribute(this.element, 'tabindex');\n this.ownsHostTabIndex = false;\n }\n\n private activeElement(): Element | null {\n return this.document.activeElement;\n }\n}\n\nexport const AerisFocusTrapModule = [AerisFocusTrapDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAaA,MAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,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AAA,EAAA,EAAA,4BAAA,EAAA,6BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE;AACJ,wBAAA,8BAA8B,EAAE,2BAA2B;AAC3D,wBAAA,WAAW,EAAE,uBAAuB;AACrC,qBAAA;AACF,iBAAA;;AA2KM,MAAM,oBAAoB,GAAG,CAAC,uBAAuB;;AChN5D;;AAEG;;"}
@@ -0,0 +1,181 @@
1
+ import * as i0 from '@angular/core';
2
+ import { contentChild, input, booleanAttribute, computed, ViewEncapsulation, Component, inject, Directive } from '@angular/core';
3
+
4
+ let nextFormFieldId = 0;
5
+ class AerisFormFieldComponent {
6
+ generatedControlId = `aeris-form-field-${++nextFormFieldId}-control`;
7
+ label = contentChild(AerisFormLabelDirective, /* @ts-ignore */
8
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
9
+ hint = contentChild(AerisFormHintDirective, /* @ts-ignore */
10
+ ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
11
+ error = contentChild(AerisFormErrorDirective, /* @ts-ignore */
12
+ ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
13
+ controlId = input(this.generatedControlId, /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []));
15
+ invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
16
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
17
+ required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
18
+ optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
19
+ optionalText = input('Optional', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "optionalText" }] : /* istanbul ignore next */ []));
21
+ fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
22
+ reserveMessageSpace = input(false, { ...(ngDevMode ? { debugName: "reserveMessageSpace" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
23
+ ariaDescribedby = input('', /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
25
+ errorLive = input('polite', /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "errorLive" }] : /* istanbul ignore next */ []));
27
+ labelId = computed(() => `${this.controlId()}-label`, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []));
29
+ hintId = computed(() => `${this.controlId()}-hint`, /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
31
+ errorId = computed(() => `${this.controlId()}-error`, /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
33
+ showOptionalIndicator = computed(() => this.optional() && !this.required(), /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "showOptionalIndicator" }] : /* istanbul ignore next */ []));
35
+ describedBy = computed(() => uniqueIds([
36
+ this.ariaDescribedby(),
37
+ this.hint()?.resolvedId() ?? '',
38
+ this.invalid() ? (this.error()?.resolvedId() ?? '') : '',
39
+ ]), /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
42
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.4", type: AerisFormFieldComponent, isStandalone: true, selector: "aeris-form-field", inputs: { controlId: { classPropertyName: "controlId", publicName: "controlId", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, optionalText: { classPropertyName: "optionalText", publicName: "optionalText", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, reserveMessageSpace: { classPropertyName: "reserveMessageSpace", publicName: "reserveMessageSpace", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, errorLive: { classPropertyName: "errorLive", publicName: "errorLive", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-invalid": "invalid() || null", "attr.data-disabled": "disabled() || null", "attr.data-required": "required() || null", "attr.data-optional": "showOptionalIndicator() || null", "attr.data-fluid": "fluid() || null", "attr.data-reserve-message-space": "reserveMessageSpace() || null" }, classAttribute: "aeris-form-field" }, queries: [{ propertyName: "label", first: true, predicate: AerisFormLabelDirective, descendants: true, isSignal: true }, { propertyName: "hint", first: true, predicate: AerisFormHintDirective, descendants: true, isSignal: true }, { propertyName: "error", first: true, predicate: AerisFormErrorDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
43
+ <ng-content select="[aerisFormLabel]" />
44
+ <div class="aeris-form-field__control"><ng-content /></div>
45
+ <div class="aeris-form-field__support">
46
+ <ng-content select="[aerisFormHint], [aerisFormError]" />
47
+ </div>
48
+ `, isInline: true, styles: [".aeris-form-field{min-inline-size:0;display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-gap, .45rem);color:var(--aeris-form-field-color, var(--aeris-text, #222222))}.aeris-form-field[data-fluid]{inline-size:100%}.aeris-form-field__label{inline-size:max-content;max-inline-size:100%;display:inline-flex;align-items:baseline;gap:var(--aeris-form-field-indicator-gap, .25rem);color:var(--aeris-form-field-label-color, var(--aeris-text, #222222));font-size:var(--aeris-form-field-label-font-size, .875rem);font-weight:var(--aeris-form-field-label-font-weight, 700);line-height:1.35}.aeris-form-field__label[data-required]:after{color:var(--aeris-form-field-required-color, var(--aeris-danger, #c81e2a));content:\"*\"}.aeris-form-field__label[data-optional]:after{color:var(--aeris-form-field-optional-color, var(--aeris-text-2, #555555));content:\"(\" attr(data-optional-text) \")\";font-size:.75rem;font-weight:600}.aeris-form-field__control,.aeris-form-field__support{min-inline-size:0}.aeris-form-field__control{display:block}.aeris-form-field__native-control[data-fluid]{inline-size:100%}.aeris-form-field__support{display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-message-gap, .25rem)}.aeris-form-field__support:empty{display:none}.aeris-form-field[data-reserve-message-space] .aeris-form-field__support{min-block-size:var(--aeris-form-field-message-space, 1.2rem)}.aeris-form-field__hint,.aeris-form-field__error{margin:0;font-size:var(--aeris-form-field-message-font-size, .8125rem);line-height:1.45}.aeris-form-field__hint{color:var(--aeris-form-field-hint-color, var(--aeris-text-2, #555555))}.aeris-form-field__error{color:var(--aeris-form-field-error-color, var(--aeris-danger-text, #a31722));font-weight:650}.aeris-form-field__error[hidden]{display:none}.aeris-form-field[data-disabled] :is(.aeris-form-field__label,.aeris-form-field__hint){opacity:var(--aeris-form-field-disabled-opacity, .52)}\n"], encapsulation: i0.ViewEncapsulation.None });
49
+ }
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormFieldComponent, decorators: [{
51
+ type: Component,
52
+ args: [{ selector: 'aeris-form-field', template: `
53
+ <ng-content select="[aerisFormLabel]" />
54
+ <div class="aeris-form-field__control"><ng-content /></div>
55
+ <div class="aeris-form-field__support">
56
+ <ng-content select="[aerisFormHint], [aerisFormError]" />
57
+ </div>
58
+ `, encapsulation: ViewEncapsulation.None, host: {
59
+ class: 'aeris-form-field',
60
+ '[attr.data-invalid]': 'invalid() || null',
61
+ '[attr.data-disabled]': 'disabled() || null',
62
+ '[attr.data-required]': 'required() || null',
63
+ '[attr.data-optional]': 'showOptionalIndicator() || null',
64
+ '[attr.data-fluid]': 'fluid() || null',
65
+ '[attr.data-reserve-message-space]': 'reserveMessageSpace() || null',
66
+ }, styles: [".aeris-form-field{min-inline-size:0;display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-gap, .45rem);color:var(--aeris-form-field-color, var(--aeris-text, #222222))}.aeris-form-field[data-fluid]{inline-size:100%}.aeris-form-field__label{inline-size:max-content;max-inline-size:100%;display:inline-flex;align-items:baseline;gap:var(--aeris-form-field-indicator-gap, .25rem);color:var(--aeris-form-field-label-color, var(--aeris-text, #222222));font-size:var(--aeris-form-field-label-font-size, .875rem);font-weight:var(--aeris-form-field-label-font-weight, 700);line-height:1.35}.aeris-form-field__label[data-required]:after{color:var(--aeris-form-field-required-color, var(--aeris-danger, #c81e2a));content:\"*\"}.aeris-form-field__label[data-optional]:after{color:var(--aeris-form-field-optional-color, var(--aeris-text-2, #555555));content:\"(\" attr(data-optional-text) \")\";font-size:.75rem;font-weight:600}.aeris-form-field__control,.aeris-form-field__support{min-inline-size:0}.aeris-form-field__control{display:block}.aeris-form-field__native-control[data-fluid]{inline-size:100%}.aeris-form-field__support{display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-message-gap, .25rem)}.aeris-form-field__support:empty{display:none}.aeris-form-field[data-reserve-message-space] .aeris-form-field__support{min-block-size:var(--aeris-form-field-message-space, 1.2rem)}.aeris-form-field__hint,.aeris-form-field__error{margin:0;font-size:var(--aeris-form-field-message-font-size, .8125rem);line-height:1.45}.aeris-form-field__hint{color:var(--aeris-form-field-hint-color, var(--aeris-text-2, #555555))}.aeris-form-field__error{color:var(--aeris-form-field-error-color, var(--aeris-danger-text, #a31722));font-weight:650}.aeris-form-field__error[hidden]{display:none}.aeris-form-field[data-disabled] :is(.aeris-form-field__label,.aeris-form-field__hint){opacity:var(--aeris-form-field-disabled-opacity, .52)}\n"] }]
67
+ }], propDecorators: { label: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisFormLabelDirective), { isSignal: true }] }], hint: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisFormHintDirective), { isSignal: true }] }], error: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisFormErrorDirective), { isSignal: true }] }], controlId: [{ type: i0.Input, args: [{ isSignal: true, alias: "controlId", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], optionalText: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionalText", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], reserveMessageSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "reserveMessageSpace", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], errorLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorLive", required: false }] }] } });
68
+ class AerisFormLabelDirective {
69
+ field = inject(AerisFormFieldComponent, { host: true });
70
+ id = input('', { ...(ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {}), alias: 'id' });
71
+ forId = input('', { ...(ngDevMode ? { debugName: "forId" } : /* istanbul ignore next */ {}), alias: 'for' });
72
+ resolvedId = computed(() => this.id() || this.field.labelId(), /* @ts-ignore */
73
+ ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
74
+ resolvedFor = computed(() => this.forId() || this.field.controlId(), /* @ts-ignore */
75
+ ...(ngDevMode ? [{ debugName: "resolvedFor" }] : /* istanbul ignore next */ []));
76
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
77
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AerisFormLabelDirective, isStandalone: true, selector: "[aerisFormLabel]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, forId: { classPropertyName: "forId", publicName: "for", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.id": "resolvedId()", "attr.for": "resolvedFor()", "attr.data-required": "field.required() || null", "attr.data-optional": "field.showOptionalIndicator() || null", "attr.data-optional-text": "field.showOptionalIndicator() ? field.optionalText() : null" }, classAttribute: "aeris-form-field__label" }, ngImport: i0 });
78
+ }
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormLabelDirective, decorators: [{
80
+ type: Directive,
81
+ args: [{
82
+ selector: '[aerisFormLabel]',
83
+ host: {
84
+ class: 'aeris-form-field__label',
85
+ '[attr.id]': 'resolvedId()',
86
+ '[attr.for]': 'resolvedFor()',
87
+ '[attr.data-required]': 'field.required() || null',
88
+ '[attr.data-optional]': 'field.showOptionalIndicator() || null',
89
+ '[attr.data-optional-text]': 'field.showOptionalIndicator() ? field.optionalText() : null',
90
+ },
91
+ }]
92
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], forId: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }] } });
93
+ class AerisFormControlDirective {
94
+ field = inject(AerisFormFieldComponent, { host: true });
95
+ id = input('', { ...(ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {}), alias: 'id' });
96
+ ariaDescribedby = input('', { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
97
+ resolvedId = computed(() => this.id() || this.field.controlId(), /* @ts-ignore */
98
+ ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
99
+ resolvedDescribedBy = computed(() => uniqueIds([this.ariaDescribedby(), this.field.describedBy()]), /* @ts-ignore */
100
+ ...(ngDevMode ? [{ debugName: "resolvedDescribedBy" }] : /* istanbul ignore next */ []));
101
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormControlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
102
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AerisFormControlDirective, isStandalone: true, selector: "[aerisFormControl]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.id": "resolvedId()", "attr.aria-describedby": "resolvedDescribedBy() || null", "attr.aria-invalid": "field.invalid() || null", "attr.aria-required": "field.required() || null", "attr.data-fluid": "field.fluid() || null" }, classAttribute: "aeris-form-field__native-control" }, ngImport: i0 });
103
+ }
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormControlDirective, decorators: [{
105
+ type: Directive,
106
+ args: [{
107
+ selector: '[aerisFormControl]',
108
+ host: {
109
+ class: 'aeris-form-field__native-control',
110
+ '[attr.id]': 'resolvedId()',
111
+ '[attr.aria-describedby]': 'resolvedDescribedBy() || null',
112
+ '[attr.aria-invalid]': 'field.invalid() || null',
113
+ '[attr.aria-required]': 'field.required() || null',
114
+ '[attr.data-fluid]': 'field.fluid() || null',
115
+ },
116
+ }]
117
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }] } });
118
+ class AerisFormHintDirective {
119
+ field = inject(AerisFormFieldComponent, { host: true });
120
+ id = input('', { ...(ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {}), alias: 'id' });
121
+ resolvedId = computed(() => this.id() || this.field.hintId(), /* @ts-ignore */
122
+ ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
123
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
124
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AerisFormHintDirective, isStandalone: true, selector: "[aerisFormHint]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.id": "resolvedId()" }, classAttribute: "aeris-form-field__hint" }, ngImport: i0 });
125
+ }
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormHintDirective, decorators: [{
127
+ type: Directive,
128
+ args: [{
129
+ selector: '[aerisFormHint]',
130
+ host: {
131
+ class: 'aeris-form-field__hint',
132
+ '[attr.id]': 'resolvedId()',
133
+ },
134
+ }]
135
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
136
+ class AerisFormErrorDirective {
137
+ field = inject(AerisFormFieldComponent, { host: true });
138
+ id = input('', { ...(ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {}), alias: 'id' });
139
+ hideWhenValid = input(true, { ...(ngDevMode ? { debugName: "hideWhenValid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
140
+ live = input(undefined, /* @ts-ignore */
141
+ ...(ngDevMode ? [{ debugName: "live" }] : /* istanbul ignore next */ []));
142
+ resolvedId = computed(() => this.id() || this.field.errorId(), /* @ts-ignore */
143
+ ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
144
+ resolvedLive = computed(() => {
145
+ const live = this.live() ?? this.field.errorLive();
146
+ return live === 'off' ? null : live;
147
+ }, /* @ts-ignore */
148
+ ...(ngDevMode ? [{ debugName: "resolvedLive" }] : /* istanbul ignore next */ []));
149
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormErrorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
150
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AerisFormErrorDirective, isStandalone: true, selector: "[aerisFormError]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, hideWhenValid: { classPropertyName: "hideWhenValid", publicName: "hideWhenValid", isSignal: true, isRequired: false, transformFunction: null }, live: { classPropertyName: "live", publicName: "live", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.id": "resolvedId()", "hidden": "hideWhenValid() && !field.invalid()", "attr.aria-live": "resolvedLive()", "attr.aria-atomic": "resolvedLive() ? \"true\" : null" }, classAttribute: "aeris-form-field__error" }, ngImport: i0 });
151
+ }
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AerisFormErrorDirective, decorators: [{
153
+ type: Directive,
154
+ args: [{
155
+ selector: '[aerisFormError]',
156
+ host: {
157
+ class: 'aeris-form-field__error',
158
+ '[attr.id]': 'resolvedId()',
159
+ '[hidden]': 'hideWhenValid() && !field.invalid()',
160
+ '[attr.aria-live]': 'resolvedLive()',
161
+ '[attr.aria-atomic]': 'resolvedLive() ? "true" : null',
162
+ },
163
+ }]
164
+ }], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], hideWhenValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideWhenValid", required: false }] }], live: [{ type: i0.Input, args: [{ isSignal: true, alias: "live", required: false }] }] } });
165
+ const AerisFormField = [
166
+ AerisFormFieldComponent,
167
+ AerisFormLabelDirective,
168
+ AerisFormControlDirective,
169
+ AerisFormHintDirective,
170
+ AerisFormErrorDirective,
171
+ ];
172
+ function uniqueIds(values) {
173
+ return [...new Set(values.flatMap((value) => value.trim().split(/\s+/)).filter(Boolean))].join(' ');
174
+ }
175
+
176
+ /**
177
+ * Generated bundle index. Do not edit.
178
+ */
179
+
180
+ export { AerisFormControlDirective, AerisFormErrorDirective, AerisFormField, AerisFormFieldComponent, AerisFormHintDirective, AerisFormLabelDirective };
181
+ //# sourceMappingURL=aeris-ui-core-form-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aeris-ui-core-form-field.mjs","sources":["../../../projects/aeris-ui/form-field/aeris-form-field.ts","../../../projects/aeris-ui/form-field/aeris-ui-core-form-field.ts"],"sourcesContent":["import {\n Component,\n Directive,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n} from '@angular/core';\n\nexport type AerisFormErrorLive = 'off' | 'polite' | 'assertive';\n\nlet nextFormFieldId = 0;\n\n@Component({\n selector: 'aeris-form-field',\n template: `\n <ng-content select=\"[aerisFormLabel]\" />\n <div class=\"aeris-form-field__control\"><ng-content /></div>\n <div class=\"aeris-form-field__support\">\n <ng-content select=\"[aerisFormHint], [aerisFormError]\" />\n </div>\n `,\n styleUrl: './aeris-form-field.scss',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'aeris-form-field',\n '[attr.data-invalid]': 'invalid() || null',\n '[attr.data-disabled]': 'disabled() || null',\n '[attr.data-required]': 'required() || null',\n '[attr.data-optional]': 'showOptionalIndicator() || null',\n '[attr.data-fluid]': 'fluid() || null',\n '[attr.data-reserve-message-space]': 'reserveMessageSpace() || null',\n },\n})\nexport class AerisFormFieldComponent {\n private readonly generatedControlId = `aeris-form-field-${++nextFormFieldId}-control`;\n private readonly label = contentChild(AerisFormLabelDirective);\n private readonly hint = contentChild(AerisFormHintDirective);\n private readonly error = contentChild(AerisFormErrorDirective);\n\n readonly controlId = input(this.generatedControlId);\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly optional = input(false, { transform: booleanAttribute });\n readonly optionalText = input('Optional');\n readonly fluid = input(false, { transform: booleanAttribute });\n readonly reserveMessageSpace = input(false, { transform: booleanAttribute });\n readonly ariaDescribedby = input('');\n readonly errorLive = input<AerisFormErrorLive>('polite');\n\n readonly labelId = computed(() => `${this.controlId()}-label`);\n readonly hintId = computed(() => `${this.controlId()}-hint`);\n readonly errorId = computed(() => `${this.controlId()}-error`);\n readonly showOptionalIndicator = computed(() => this.optional() && !this.required());\n readonly describedBy = computed(() =>\n uniqueIds([\n this.ariaDescribedby(),\n this.hint()?.resolvedId() ?? '',\n this.invalid() ? (this.error()?.resolvedId() ?? '') : '',\n ]),\n );\n}\n\n@Directive({\n selector: '[aerisFormLabel]',\n host: {\n class: 'aeris-form-field__label',\n '[attr.id]': 'resolvedId()',\n '[attr.for]': 'resolvedFor()',\n '[attr.data-required]': 'field.required() || null',\n '[attr.data-optional]': 'field.showOptionalIndicator() || null',\n '[attr.data-optional-text]': 'field.showOptionalIndicator() ? field.optionalText() : null',\n },\n})\nexport class AerisFormLabelDirective {\n protected readonly field = inject(AerisFormFieldComponent, { host: true });\n\n readonly id = input('', { alias: 'id' });\n readonly forId = input('', { alias: 'for' });\n\n readonly resolvedId = computed(() => this.id() || this.field.labelId());\n readonly resolvedFor = computed(() => this.forId() || this.field.controlId());\n}\n\n@Directive({\n selector: '[aerisFormControl]',\n host: {\n class: 'aeris-form-field__native-control',\n '[attr.id]': 'resolvedId()',\n '[attr.aria-describedby]': 'resolvedDescribedBy() || null',\n '[attr.aria-invalid]': 'field.invalid() || null',\n '[attr.aria-required]': 'field.required() || null',\n '[attr.data-fluid]': 'field.fluid() || null',\n },\n})\nexport class AerisFormControlDirective {\n protected readonly field = inject(AerisFormFieldComponent, { host: true });\n\n readonly id = input('', { alias: 'id' });\n readonly ariaDescribedby = input('', { alias: 'aria-describedby' });\n\n readonly resolvedId = computed(() => this.id() || this.field.controlId());\n readonly resolvedDescribedBy = computed(() =>\n uniqueIds([this.ariaDescribedby(), this.field.describedBy()]),\n );\n}\n\n@Directive({\n selector: '[aerisFormHint]',\n host: {\n class: 'aeris-form-field__hint',\n '[attr.id]': 'resolvedId()',\n },\n})\nexport class AerisFormHintDirective {\n private readonly field = inject(AerisFormFieldComponent, { host: true });\n\n readonly id = input('', { alias: 'id' });\n readonly resolvedId = computed(() => this.id() || this.field.hintId());\n}\n\n@Directive({\n selector: '[aerisFormError]',\n host: {\n class: 'aeris-form-field__error',\n '[attr.id]': 'resolvedId()',\n '[hidden]': 'hideWhenValid() && !field.invalid()',\n '[attr.aria-live]': 'resolvedLive()',\n '[attr.aria-atomic]': 'resolvedLive() ? \"true\" : null',\n },\n})\nexport class AerisFormErrorDirective {\n protected readonly field = inject(AerisFormFieldComponent, { host: true });\n\n readonly id = input('', { alias: 'id' });\n readonly hideWhenValid = input(true, { transform: booleanAttribute });\n readonly live = input<AerisFormErrorLive | undefined>(undefined);\n\n readonly resolvedId = computed(() => this.id() || this.field.errorId());\n readonly resolvedLive = computed(() => {\n const live = this.live() ?? this.field.errorLive();\n return live === 'off' ? null : live;\n });\n}\n\nexport const AerisFormField = [\n AerisFormFieldComponent,\n AerisFormLabelDirective,\n AerisFormControlDirective,\n AerisFormHintDirective,\n AerisFormErrorDirective,\n] as const;\n\nfunction uniqueIds(values: readonly string[]): string {\n return [...new Set(values.flatMap((value) => value.trim().split(/\\s+/)).filter(Boolean))].join(\n ' ',\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"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