@folkehelseinstituttet/designsystem 0.46.0 → 0.47.1

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 (154) hide show
  1. package/custom-elements.json +1 -1
  2. package/{decorate-DFXIek-k.js → decorate-Cy1UktZk.js} +117 -102
  3. package/{decorate-DFXIek-k.js.map → decorate-Cy1UktZk.js.map} +1 -1
  4. package/fhi-body.js +3 -3
  5. package/fhi-button.js +1 -1
  6. package/fhi-callout.js +1 -1
  7. package/fhi-checkbox.js +11 -10
  8. package/fhi-checkbox.js.map +1 -1
  9. package/fhi-data-table-cell.js +1 -1
  10. package/fhi-data-table-row.js +1 -1
  11. package/fhi-data-table.js +1 -1
  12. package/{fhi-date-input.component-C1cwkp36.js → fhi-date-input.component-BQpZ41Nw.js} +3 -3
  13. package/{fhi-date-input.component-C1cwkp36.js.map → fhi-date-input.component-BQpZ41Nw.js.map} +1 -1
  14. package/fhi-date-input.js +1 -1
  15. package/fhi-display.js +3 -3
  16. package/fhi-flex.js +1 -1
  17. package/fhi-grid.js +1 -1
  18. package/fhi-headline.js +3 -3
  19. package/fhi-icon-arrow-down-left.js +1 -1
  20. package/fhi-icon-arrow-down-right.js +1 -1
  21. package/fhi-icon-arrow-down.js +1 -1
  22. package/fhi-icon-arrow-left.js +1 -1
  23. package/fhi-icon-arrow-right-left.js +1 -1
  24. package/fhi-icon-arrow-right.js +1 -1
  25. package/fhi-icon-arrow-up-down.js +1 -1
  26. package/fhi-icon-arrow-up-left.js +1 -1
  27. package/fhi-icon-arrow-up-right.js +1 -1
  28. package/fhi-icon-arrow-up.js +1 -1
  29. package/fhi-icon-bell.js +1 -1
  30. package/fhi-icon-calendar-clock.js +1 -1
  31. package/fhi-icon-calendar.js +1 -1
  32. package/fhi-icon-chart-bar-stacked.js +1 -1
  33. package/fhi-icon-chart-bar.js +1 -1
  34. package/fhi-icon-chart-column-stacked.js +1 -1
  35. package/fhi-icon-chart-column.js +1 -1
  36. package/fhi-icon-chart-line.js +1 -1
  37. package/fhi-icon-chart-no-axes-combined.js +1 -1
  38. package/fhi-icon-chart-pie.js +1 -1
  39. package/fhi-icon-check.js +1 -1
  40. package/fhi-icon-chevron-down.js +1 -1
  41. package/fhi-icon-chevron-left.js +1 -1
  42. package/fhi-icon-chevron-right.js +1 -1
  43. package/fhi-icon-chevron-up.js +1 -1
  44. package/fhi-icon-chevrons-down.js +1 -1
  45. package/fhi-icon-chevrons-left.js +1 -1
  46. package/fhi-icon-chevrons-right.js +1 -1
  47. package/fhi-icon-chevrons-up.js +1 -1
  48. package/fhi-icon-circle-arrow-down.js +1 -1
  49. package/fhi-icon-circle-arrow-left.js +1 -1
  50. package/fhi-icon-circle-arrow-right.js +1 -1
  51. package/fhi-icon-circle-arrow-up.js +1 -1
  52. package/fhi-icon-circle-check-big.js +1 -1
  53. package/fhi-icon-circle-check.js +1 -1
  54. package/fhi-icon-circle-chevron-down.js +1 -1
  55. package/fhi-icon-circle-chevron-left.js +1 -1
  56. package/fhi-icon-circle-chevron-right.js +1 -1
  57. package/fhi-icon-circle-chevron-up.js +1 -1
  58. package/fhi-icon-circle-exclamation.js +1 -1
  59. package/fhi-icon-circle-info.js +1 -1
  60. package/fhi-icon-circle-minus.js +1 -1
  61. package/fhi-icon-circle-plus.js +1 -1
  62. package/fhi-icon-circle-question.js +1 -1
  63. package/fhi-icon-circle-x.js +1 -1
  64. package/fhi-icon-circle.js +1 -1
  65. package/fhi-icon-clock.js +1 -1
  66. package/fhi-icon-copy.js +1 -1
  67. package/fhi-icon-download.js +1 -1
  68. package/fhi-icon-ellipsis-vertical.js +1 -1
  69. package/fhi-icon-ellipsis.js +1 -1
  70. package/fhi-icon-exclamation.js +1 -1
  71. package/fhi-icon-expand.js +1 -1
  72. package/fhi-icon-external-link.js +1 -1
  73. package/fhi-icon-eye-off.js +1 -1
  74. package/fhi-icon-eye.js +1 -1
  75. package/fhi-icon-file-text.js +1 -1
  76. package/fhi-icon-file.js +1 -1
  77. package/fhi-icon-filter.js +1 -1
  78. package/fhi-icon-folder.js +1 -1
  79. package/fhi-icon-gear.js +1 -1
  80. package/fhi-icon-grid-9-dots.js +1 -1
  81. package/fhi-icon-grip-horizontal.js +1 -1
  82. package/fhi-icon-grip-vertical.js +1 -1
  83. package/fhi-icon-history.js +1 -1
  84. package/fhi-icon-info.js +1 -1
  85. package/fhi-icon-link-2-off.js +1 -1
  86. package/fhi-icon-link-2.js +1 -1
  87. package/fhi-icon-link.js +1 -1
  88. package/fhi-icon-lock-open.js +1 -1
  89. package/fhi-icon-lock.js +1 -1
  90. package/fhi-icon-log-in.js +1 -1
  91. package/fhi-icon-log-out.js +1 -1
  92. package/fhi-icon-mail.js +1 -1
  93. package/fhi-icon-map-pin.js +1 -1
  94. package/fhi-icon-menu.js +1 -1
  95. package/fhi-icon-message.js +1 -1
  96. package/fhi-icon-minus.js +1 -1
  97. package/fhi-icon-octagon-alert.js +1 -1
  98. package/fhi-icon-paperclip.js +1 -1
  99. package/fhi-icon-pencil.js +1 -1
  100. package/fhi-icon-phone.js +1 -1
  101. package/fhi-icon-pin-off.js +1 -1
  102. package/fhi-icon-pin.js +1 -1
  103. package/fhi-icon-plus.js +1 -1
  104. package/fhi-icon-printer.js +1 -1
  105. package/fhi-icon-question.js +1 -1
  106. package/fhi-icon-refresh.js +1 -1
  107. package/fhi-icon-rotate-left.js +1 -1
  108. package/fhi-icon-rotate-right.js +1 -1
  109. package/fhi-icon-search.js +1 -1
  110. package/fhi-icon-send.js +1 -1
  111. package/fhi-icon-share.js +1 -1
  112. package/fhi-icon-sheet.js +1 -1
  113. package/fhi-icon-square-check-big.js +1 -1
  114. package/fhi-icon-square-check.js +1 -1
  115. package/fhi-icon-square-pen.js +1 -1
  116. package/fhi-icon-square-x.js +1 -1
  117. package/fhi-icon-square.js +1 -1
  118. package/fhi-icon-trash.js +1 -1
  119. package/fhi-icon-triangle-alert.js +1 -1
  120. package/fhi-icon-upload.js +1 -1
  121. package/fhi-icon-user.js +1 -1
  122. package/fhi-icon-x.js +1 -1
  123. package/fhi-label.js +2 -2
  124. package/fhi-link.js +2 -2
  125. package/fhi-modal-dialog.js +1 -1
  126. package/fhi-radio.js +23 -15
  127. package/fhi-radio.js.map +1 -1
  128. package/fhi-radio.manifest.json +1 -1
  129. package/fhi-segmented-control-item.d.ts +1 -0
  130. package/fhi-segmented-control-item.js +114 -0
  131. package/fhi-segmented-control-item.js.map +1 -0
  132. package/fhi-segmented-control-item.manifest.json +1 -0
  133. package/fhi-segmented-control.d.ts +1 -0
  134. package/fhi-segmented-control.js +119 -0
  135. package/fhi-segmented-control.js.map +1 -0
  136. package/fhi-segmented-control.manifest.json +1 -0
  137. package/fhi-select-item.js +1 -1
  138. package/fhi-select.js +1 -1
  139. package/fhi-tag.js +1 -1
  140. package/fhi-text-area.js +2 -2
  141. package/fhi-text-input.js +2 -2
  142. package/fhi-title.js +3 -3
  143. package/{fhi-tooltip.component-O9cZeuTN.js → fhi-tooltip.component-CyNQ5alT.js} +2 -2
  144. package/{fhi-tooltip.component-O9cZeuTN.js.map → fhi-tooltip.component-CyNQ5alT.js.map} +1 -1
  145. package/fhi-tooltip.js +1 -1
  146. package/{if-defined-Dl-W5B5_.js → if-defined-Bwi1u9Ry.js} +2 -2
  147. package/{if-defined-Dl-W5B5_.js.map → if-defined-Bwi1u9Ry.js.map} +1 -1
  148. package/index.js +8 -6
  149. package/live-CT8jbeEb.js +26 -0
  150. package/live-CT8jbeEb.js.map +1 -0
  151. package/package.json +1 -1
  152. package/{unsafe-html-CBTN3162.js → unsafe-html-Bl-zY61x.js} +3 -3
  153. package/{unsafe-html-CBTN3162.js.map → unsafe-html-Bl-zY61x.js.map} +1 -1
  154. package/web-types.json +104 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhi-segmented-control.js","names":[],"sources":["../../src/components/segmented-control/fhi-segmented-control/fhi-segmented-control.component.ts"],"sourcesContent":["import { html, css, LitElement, PropertyValues } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport {\n FhiSegmentedControlItemSelector,\n type FhiSegmentedControlItem,\n} from '../fhi-segmented-control-item/fhi-segmented-control-item.component';\n\nexport const FhiSegmentedControlSelector = 'fhi-segmented-control';\n\n/**\n * ## FHI Segmented Control\n *\n * {@link https://designsystem.fhi.no/?path=/docs/komponenter-segmented-control--docs}\n *\n * The <fhi-segmented-control> component lets the user select one option from a group of related choices. Each choice is defined with a <fhi-segmented-control-item> element.\n *\n * The choice should affect the content within the same context.\n *\n * Example usage:\n * ```html\n * <fhi-segmented-control value=\"item2\">\n * <fhi-segmented-control-item value=\"item1\">Item 1</fhi-segmented-control-item>\n * <fhi-segmented-control-item value=\"item2\">Item 2</fhi-segmented-control-item>\n * <fhi-segmented-control-item value=\"item3\">Item 3</fhi-segmented-control-item>\n * </fhi-segmented-control>\n * ```\n *\n * @tag fhi-segmented-control\n * @element fhi-segmented-control\n *\n * @slot - The default slot. Used for placing <fhi-segmented-control-item> elements.\n */\n@customElement(FhiSegmentedControlSelector)\nexport class FhiSegmentedControl extends LitElement {\n /**\n * The visual style of the segmented control. This will be applied to all segmented control items within the group.\n *\n * @reflect\n * @type {'strong' | 'subtle'}\n */\n @property({ type: String, reflect: true }) variant: 'strong' | 'subtle' =\n 'strong';\n\n /**\n * The currently selected value of the segmented control.\n *\n * @reflect\n * @type {string}\n */\n @property({ type: String, reflect: true }) value?: string;\n\n private _selectedItem: FhiSegmentedControlItem | null = null;\n\n private readonly _mutationObserver = new MutationObserver(mutations => {\n const hasItemChanges = mutations.some(\n mutation => mutation.type !== 'attributes' || mutation.target !== this,\n );\n\n if (!hasItemChanges) {\n return;\n }\n\n if (mutations.some(mutation => mutation.type === 'childList')) {\n this._syncVariant();\n }\n\n this._syncSelectionFromItems();\n });\n\n public connectedCallback() {\n super.connectedCallback();\n\n this.setAttribute('role', 'radiogroup');\n\n this._mutationObserver.observe(this, {\n attributes: true,\n attributeFilter: ['selected', 'value'],\n childList: true,\n characterData: true,\n subtree: true,\n });\n\n if (this.hasUpdated) {\n this._syncAfterReconnect();\n }\n }\n\n public disconnectedCallback() {\n super.disconnectedCallback();\n this._mutationObserver.disconnect();\n }\n\n protected update(changedProperties: PropertyValues): void {\n if (changedProperties.has('variant') && !this.variant) {\n this.variant = 'strong';\n }\n\n super.update(changedProperties);\n }\n\n public updated(changedProperties: PropertyValues) {\n if (changedProperties.has('variant')) {\n this._syncVariant();\n }\n\n if (changedProperties.has('value')) {\n this._syncSelectionFromValue();\n }\n }\n\n private async _syncAfterReconnect(): Promise<void> {\n await this.updateComplete;\n\n if (!this.isConnected) {\n return;\n }\n\n this._syncVariant();\n this._syncSelectionFromItems();\n }\n\n private _syncSelectionFromValue() {\n const items = this._getItems();\n const selectedItem = this._getSelectedItem(items);\n\n if (selectedItem && this._getItemValue(selectedItem) === this.value) {\n this._setSelectedItem(selectedItem);\n return;\n }\n\n const valueMatchingItem = items.find(\n item => this._getItemValue(item) === this.value,\n );\n\n this._setSelectedItem(valueMatchingItem ?? selectedItem);\n }\n\n private _syncSelectionFromItems() {\n // wait until all pending updates are completed before syncing.\n if (this.isUpdatePending) {\n void this.updateComplete.then(() => {\n if (this.isConnected) {\n this._syncSelectionFromItems();\n }\n });\n\n return;\n }\n\n const items = this._getItems();\n this._setSelectedItem(this._getSelectedItem(items));\n }\n\n private _getSelectedItem(\n items: FhiSegmentedControlItem[],\n ): FhiSegmentedControlItem | null {\n const newlySelectedItem = items.find(\n item => item.selected && item !== this._selectedItem,\n );\n\n const selectedItem = items.find(item => item.selected);\n\n return newlySelectedItem ?? selectedItem ?? items[0] ?? null;\n }\n\n private _getItems(): FhiSegmentedControlItem[] {\n return Array.from(\n this.querySelectorAll<FhiSegmentedControlItem>(\n FhiSegmentedControlItemSelector,\n ),\n );\n }\n\n private _dispatchChangeEvent() {\n /**\n * @type {Event} - Standard DOM event with the type `change`.\n * This event is dispatched when the selected item of the segmented control changes.\n */\n this.dispatchEvent(new Event('change', { bubbles: true, composed: true }));\n }\n\n private _getItemValue(item: FhiSegmentedControlItem | null): string {\n return item?.value ?? item?.textContent?.trim() ?? '';\n }\n\n private _setSelectedItem(item: FhiSegmentedControlItem | null) {\n const selectionChanged = this._selectedItem !== item;\n\n this._getItems().forEach(groupItem => {\n groupItem.selected = groupItem === item;\n });\n\n this._selectedItem = item;\n this.value = this._getItemValue(item);\n\n if (selectionChanged) {\n this._dispatchChangeEvent();\n }\n }\n\n private _syncVariant() {\n this._getItems().forEach(item => {\n item.variant = this.variant;\n });\n }\n\n private _handleSlotChange = () => {\n this._syncSelectionFromItems();\n };\n\n private _handleKeyDown(event: KeyboardEvent) {\n if (\n event.key !== 'ArrowRight' &&\n event.key !== 'ArrowUp' &&\n event.key !== 'ArrowLeft' &&\n event.key !== 'ArrowDown'\n ) {\n return;\n }\n\n const items = this._getItems();\n const eventTravelPath = event.composedPath();\n const currentIndex = items.findIndex(item =>\n eventTravelPath.includes(item),\n );\n\n const nextIndex =\n event.key === 'ArrowRight' || event.key === 'ArrowDown'\n ? (currentIndex + 1) % items.length\n : (currentIndex - 1 + items.length) % items.length;\n\n const nextItem = items[nextIndex];\n\n nextItem.shadowRoot?.querySelector('button')?.focus();\n\n event.preventDefault();\n }\n\n render() {\n return html`<slot\n @slotchange=${this._handleSlotChange}\n @keydown=${this._handleKeyDown}\n ></slot>`;\n }\n\n static styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n width: fit-content;\n border-radius: var(--fhi-border-radius-full);\n border: 1px solid var(--fhi-color-neutral-border-subtle);\n padding: calc(var(--fhi-spacing-050) - var(--fhi-dimension-border-width));\n gap: var(--fhi-spacing-050);\n }\n\n :host([variant='subtle']) {\n background-color: var(--fhi-color-neutral-surface-default);\n border-color: var(--fhi-color-neutral-surface-default);\n }\n `;\n}\n"],"mappings":";;;AAOA,IAAa,IAA8B,yBA0BpC,IAAA,cAAkC,EAAW;;8BAQhD,+BAUsD,+BAEnB,IAAI,kBAAiB,MAAa;GAC9C,EAAU,MAC/B,MAAY,EAAS,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,SAAS;EACP,OAAO,CAAI;oBACK,KAAK,kBAAkB;iBAC1B,KAAK,eAAe;;CAEnC;;gBAEgB,CAAG;;;;;;;;;;;;;;;;;AAgBrB;GA7NG,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,WAAA,KAAA,CAAA,MASxC,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,SAAA,KAAA,CAAA,UAjB1C,EAAc,CAA2B,CAAA,GAAA,CAAA"}
@@ -0,0 +1 @@
1
+ {"kind":"javascript-module","path":"src/components/segmented-control/fhi-segmented-control/fhi-segmented-control.component.ts","declarations":[{"kind":"class","description":"## FHI Segmented Control\n\nhttps://designsystem.fhi.no/?path=/docs/komponenter-segmented-control--docs\n\nThe <fhi-segmented-control> component lets the user select one option from a group of related choices. Each choice is defined with a <fhi-segmented-control-item> element.\n\nThe choice should affect the content within the same context.\n\nExample usage:\n```html\n<fhi-segmented-control value=\"item2\">\n <fhi-segmented-control-item value=\"item1\">Item 1</fhi-segmented-control-item>\n <fhi-segmented-control-item value=\"item2\">Item 2</fhi-segmented-control-item>\n <fhi-segmented-control-item value=\"item3\">Item 3</fhi-segmented-control-item>\n</fhi-segmented-control>\n```","name":"FhiSegmentedControl","slots":[{"description":"The default slot. Used for placing <fhi-segmented-control-item> elements.","name":""}],"members":[{"kind":"method","name":"_dispatchChangeEvent","privacy":"private"},{"kind":"method","name":"_getItems","privacy":"private","return":{"type":{"text":"FhiSegmentedControlItem[]"}}},{"kind":"method","name":"_getItemValue","privacy":"private","return":{"type":{"text":"string"}},"parameters":[{"name":"item","type":{"text":"FhiSegmentedControlItem | null"}}]},{"kind":"method","name":"_getSelectedItem","privacy":"private","return":{"type":{"text":"FhiSegmentedControlItem | null"}},"parameters":[{"name":"items","type":{"text":"FhiSegmentedControlItem[]"}}]},{"kind":"method","name":"_handleKeyDown","privacy":"private","parameters":[{"name":"event","type":{"text":"KeyboardEvent"}}]},{"kind":"field","name":"_handleSlotChange","privacy":"private"},{"kind":"field","name":"_mutationObserver","privacy":"private","readonly":true,"default":"new MutationObserver(mutations => { const hasItemChanges = mutations.some( mutation => mutation.type !== 'attributes' || mutation.target !== this, ); if (!hasItemChanges) { return; } if (mutations.some(mutation => mutation.type === 'childList')) { this._syncVariant(); } this._syncSelectionFromItems(); })"},{"kind":"field","name":"_selectedItem","type":{"text":"FhiSegmentedControlItem | null"},"privacy":"private","default":"null"},{"kind":"method","name":"_setSelectedItem","privacy":"private","parameters":[{"name":"item","type":{"text":"FhiSegmentedControlItem | null"}}]},{"kind":"method","name":"_syncAfterReconnect","privacy":"private","return":{"type":{"text":"Promise<void>"}}},{"kind":"method","name":"_syncSelectionFromItems","privacy":"private"},{"kind":"method","name":"_syncSelectionFromValue","privacy":"private"},{"kind":"method","name":"_syncVariant","privacy":"private"},{"kind":"field","name":"value","type":{"text":"string"},"description":"The currently selected value of the segmented control.","reflects":true,"attribute":"value"},{"kind":"field","name":"variant","type":{"text":"'strong' | 'subtle'"},"default":"'strong'","description":"The visual style of the segmented control. This will be applied to all segmented control items within the group.","reflects":true,"attribute":"variant"}],"events":[{"name":"change","type":{"text":"Event"},"description":"Standard DOM event with the type `change`.\nThis event is dispatched when the selected item of the segmented control changes."}],"attributes":[{"name":"value","type":{"text":"string"},"description":"The currently selected value of the segmented control.","fieldName":"value"},{"name":"variant","type":{"text":"'strong' | 'subtle'"},"default":"'strong'","description":"The visual style of the segmented control. This will be applied to all segmented control items within the group.","fieldName":"variant"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"fhi-segmented-control","customElement":true},{"kind":"variable","name":"FhiSegmentedControlSelector","type":{"text":"string"},"default":"'fhi-segmented-control'"}]}
@@ -1,4 +1,4 @@
1
- import { a as e, o as t, s as n, t as r } from "./decorate-DFXIek-k.js";
1
+ import { a as e, o as t, s as n, t as r } from "./decorate-Cy1UktZk.js";
2
2
  //#region src/components/select/fhi-select-item/fhi-select-item.component.ts
3
3
  var i = "fhi-select-item", a = class extends n {
4
4
  constructor(...e) {
package/fhi-select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, d as t, n, o as r, r as i, s as a, t as o, u as s } from "./decorate-DFXIek-k.js";
1
+ import { a as e, f as t, n, o as r, r as i, s as a, t as o, u as s } from "./decorate-Cy1UktZk.js";
2
2
  import "./fhi-body.js";
3
3
  import "./fhi-label.js";
4
4
  import "./fhi-icon-chevron-down.js";
package/fhi-tag.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
1
+ import { a as e, f as t, o as n, s as r, t as i, u as a } from "./decorate-Cy1UktZk.js";
2
2
  import "./fhi-body.js";
3
3
  //#region src/components/fhi-tag/fhi-tag.component.ts
4
4
  var o = "fhi-tag", s = class extends r {
package/fhi-text-area.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as e, d as t, o as n, r, s as i, t as a, u as o } from "./decorate-DFXIek-k.js";
2
- import { t as s } from "./if-defined-Dl-W5B5_.js";
1
+ import { a as e, f as t, o as n, r, s as i, t as a, u as o } from "./decorate-Cy1UktZk.js";
2
+ import { t as s } from "./if-defined-Bwi1u9Ry.js";
3
3
  import "./fhi-body.js";
4
4
  import "./fhi-label.js";
5
5
  //#region src/components/fhi-text-area/fhi-text-area.component.ts
package/fhi-text-input.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as e, d as t, o as n, r, s as i, t as a, u as o } from "./decorate-DFXIek-k.js";
2
- import { t as s } from "./if-defined-Dl-W5B5_.js";
1
+ import { a as e, f as t, o as n, r, s as i, t as a, u as o } from "./decorate-Cy1UktZk.js";
2
+ import { t as s } from "./if-defined-Bwi1u9Ry.js";
3
3
  //#region src/components/fhi-text-input/fhi-text-input.component.ts
4
4
  var c = "fhi-text-input", l = class extends i {
5
5
  static {
package/fhi-title.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as e, d as t, o as n, s as r, t as i, u as a } from "./decorate-DFXIek-k.js";
2
- import { t as o } from "./if-defined-Dl-W5B5_.js";
3
- import { t as s } from "./unsafe-html-CBTN3162.js";
1
+ import { a as e, f as t, o as n, s as r, t as i, u as a } from "./decorate-Cy1UktZk.js";
2
+ import { t as o } from "./if-defined-Bwi1u9Ry.js";
3
+ import { t as s } from "./unsafe-html-Bl-zY61x.js";
4
4
  //#region src/components/typography/fhi-title/fhi-title.component.ts
5
5
  var c = "fhi-title", l = class extends r {
6
6
  constructor(...e) {
@@ -1,4 +1,4 @@
1
- import { a as e, d as t, i as n, o as r, r as i, s as a, t as o, u as s } from "./decorate-DFXIek-k.js";
1
+ import { a as e, f as t, i as n, o as r, r as i, s as a, t as o, u as s } from "./decorate-Cy1UktZk.js";
2
2
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
3
3
  var c = Math.min, l = Math.max, u = Math.round, d = Math.floor, f = (e) => ({
4
4
  x: e,
@@ -878,4 +878,4 @@ o([e({ type: String })], $.prototype, "message", void 0), o([e({ type: String })
878
878
  //#endregion
879
879
  export { Ye as n, $ as t };
880
880
 
881
- //# sourceMappingURL=fhi-tooltip.component-O9cZeuTN.js.map
881
+ //# sourceMappingURL=fhi-tooltip.component-CyNQ5alT.js.map