@4sh/ui-kit 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +2 -2
  2. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  3. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +26 -2
  4. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +8 -2
  6. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +2 -2
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +18 -4
  10. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
  12. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2 -2
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +11 -4
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +4 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +2 -2
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  34. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +2 -2
  36. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
  38. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
  40. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
  42. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
  44. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
  46. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
  48. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +2 -2
  50. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +2 -2
  52. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +2 -2
  54. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
  56. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
  58. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
  60. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +6 -0
  62. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
  64. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
  66. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +2 -2
  68. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
  70. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +2 -2
  72. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
  74. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
  76. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +4 -4
  78. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
  80. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
  82. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
  84. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +103 -12
  86. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -6
  88. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -2
  90. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
  92. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  93. package/mcp/data/component-api.json +11710 -0
  94. package/mcp/data/text-search-docs.json +92 -72
  95. package/mcp/data/ui-config.json +6772 -26
  96. package/mcp/index.js +24 -2
  97. package/mcp/package.json +1 -1
  98. package/package.json +1 -1
  99. package/styles/base/_motion.scss +16 -16
  100. package/styles/component-vars.scss +7 -5
  101. package/styles/generated/_tokens-motion.scss +54 -0
  102. package/styles/generated/_tokens-transitions.scss +4 -4
  103. package/styles/generated/_tokens.scss +1 -0
  104. package/styles/settings/_ui-config.scss +23 -6
  105. package/styles/utils/_mixins.scss +28 -5
  106. package/styles/utils/_motion.scss +3 -3
  107. package/styles.css +1 -1
  108. package/types/4sh-ui-kit-actions-ui-button.d.ts +24 -0
  109. package/types/4sh-ui-kit-actions-ui-link.d.ts +6 -0
  110. package/types/4sh-ui-kit-base-ui-image.d.ts +14 -0
  111. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +7 -0
  112. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +2 -0
  113. package/types/4sh-ui-kit-informative-ui-badge.d.ts +6 -0
  114. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +42 -3
  115. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -0
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-toggle-block.mjs","sources":["../../../projects/ui-kit/forms/ui-toggle-block/src/lib/ui-toggle-block.ts","../../../projects/ui-kit/forms/ui-toggle-block/src/lib/ui-toggle-block.html","../../../projects/ui-kit/forms/ui-toggle-block/src/public-api.ts","../../../projects/ui-kit/forms/ui-toggle-block/src/4sh-ui-kit-forms-ui-toggle-block.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl, warnMissingAccessibleName } from '@4sh/ui-kit/forms';\nimport { UiCheckbox } from '@4sh/ui-kit/forms/ui-checkbox';\nimport { UiRadio } from '@4sh/ui-kit/forms/ui-radio';\nimport { UiToggle } from '@4sh/ui-kit/forms/ui-toggle';\n\n/** Selection control embedded in the block. */\nexport type ToggleBlockIndicator = 'checkbox' | 'radio' | 'toggle';\nexport type ToggleBlockSize = 'default' | 'small' | 'large';\nexport type ToggleBlockIndicatorPosition = 'start' | 'end';\n/** Vertical alignment of the indicator against the block content. */\nexport type ToggleBlockAlign = 'center' | 'start';\n\n/** @ignore Surface the three indicator components share. */\ninterface IndicatorControl<T> {\n writeValue(value: T): void;\n focus(options?: FocusOptions): void;\n}\n\n/**\n * ui-toggle-block: selectable block wrapping a checkbox, a radio or a switch.\n *\n * The block is the clickable surface; the selection control is an instance of\n * `ui-checkbox` / `ui-radio` / `ui-toggle`, so the indicator keeps the exact\n * appearance and behaviour it has on its own. A stretched `<label for>` covers\n * the block, which makes the whole surface activate the native input without a\n * click handler; the content region is the control's accessible name\n * (`aria-labelledby`), so any markup can be projected without wrapping it in a\n * `<label>`.\n *\n * `label` / `description` cover the common case; `<ng-content>` composes with\n * them for a fully custom body.\n *\n * Works standalone, with `[(ngModel)]`, reactive forms or Signal Forms\n * (ControlValueAccessor). Blocks form a group the native way: same `name`, same\n * bound model.\n */\n@Component({\n selector: 'ui-toggle-block',\n imports: [UiCheckbox, UiRadio, UiToggle],\n templateUrl: './ui-toggle-block.html',\n styleUrl: './ui-toggle-block.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggleBlock), multi: true },\n ],\n host: {\n '[class._fluid]': 'fluid()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiToggleBlock<T = boolean> extends BaseFieldControl<T> {\n /** Selection control embedded in the block. */\n indicator = input<ToggleBlockIndicator>('checkbox');\n /** Side of the block the indicator sits on. */\n indicatorPosition = input<ToggleBlockIndicatorPosition>('start');\n /** Vertical alignment of the indicator against the content. */\n align = input<ToggleBlockAlign>('center');\n /** Keeps the control operable but removes the indicator from view (selection card). */\n hideIndicator = input(false, { transform: booleanAttribute });\n /** Size. */\n size = input<ToggleBlockSize>('default');\n /** Main line of the block. */\n label = input<string>();\n /** Secondary line under the label. */\n description = input<string>();\n /** Span the full width of the parent (a flex/grid parent otherwise sizes the block to its content). */\n fluid = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Value carried by this block in `radio` mode (the model takes it when selected). */\n value = input<T>();\n /** Model value emitted when selected, in `checkbox` / `toggle` mode. */\n trueValue = input<T>(true as T);\n /** Model value emitted when cleared, in `checkbox` / `toggle` mode. */\n falseValue = input<T>(false as T);\n\n /** Emitted on user selection with the new model value (never when disabled/readonly). */\n blockChange = output<T>();\n /** Emitted when the embedded control receives focus. */\n blockFocus = output<FocusEvent>();\n /** Emitted when the embedded control loses focus. */\n blockBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly checkboxRef = viewChild<UiCheckbox<T>>(UiCheckbox);\n /** @ignore */\n private readonly radioRef = viewChild<UiRadio<T>>(UiRadio);\n /** @ignore */\n private readonly toggleRef = viewChild<UiToggle<T>>(UiToggle);\n /** @ignore */\n private readonly bodyEl = viewChild.required<ElementRef<HTMLElement>>('bodyEl');\n\n /** @ignore Keyboard focus only: a pointer press must not ring the block. */\n private readonly focusVisible = signal(false);\n\n constructor() {\n super();\n // The embedded control owns its own state: push the model into it.\n effect(() => this.control()?.writeValue(this.modelValue() as T));\n\n afterNextRender(() => {\n if (this.indicator() === 'radio' && this.value() === undefined) {\n warnMissingAccessibleName(\n 'ui-toggle-block',\n 'indicator=\"radio\" requires a `value`: without it every block of the group shares the same identity.',\n );\n }\n if (!this.hasAccessibleName()) {\n warnMissingAccessibleName(\n 'ui-toggle-block',\n 'no accessible name: provide `label`, projected content, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n\n /** @ignore The embedded control, whichever indicator is rendered. */\n private readonly control = computed<IndicatorControl<T> | undefined>(\n () => this.checkboxRef() ?? this.radioRef() ?? this.toggleRef(),\n );\n\n /** @ignore Value this block selects (radio carries its own, the others the `trueValue`). */\n protected readonly selectedValue = computed(() =>\n this.indicator() === 'radio' ? (this.value() as T) : this.trueValue(),\n );\n\n /** @ignore */\n protected readonly checked = computed(() => this.modelValue() === this.selectedValue());\n\n /** @ignore Id of the region naming the control. */\n protected readonly bodyId = computed(() => `${this.resolvedId()}-body`);\n /**\n * @ignore The block content names the control, unless an explicit name is given\n * (`aria-labelledby` outranks `aria-label`, so the two are mutually exclusive).\n */\n protected readonly controlLabelledBy = computed(() =>\n this.ariaLabelledBy() ? this.ariaLabelledBy() : this.ariaLabel() ? undefined : this.bodyId(),\n );\n\n /** @ignore The switch follows the block density; the box controls keep the form-wide size. */\n protected readonly toggleSize = computed(() => (this.size() === 'small' ? 'small' : 'default'));\n\n /**\n * @ignore The wave is carried by the block, not by a native control, so the\n * engine's own `disabled` guard never sees it: fold the inert states in here.\n */\n protected readonly rippleEnabled = computed(\n () => this.ripple() && !this.isDisabled() && !this.readonly(),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toggle-block'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.indicatorPosition() === 'end') c.push('_indicator-end');\n if (this.align() === 'start') c.push('_align-start');\n if (this.hideIndicator()) c.push('_hide-indicator');\n if (this.checked()) c.push('_checked');\n if (this.isDisabled()) c.push('_disabled');\n if (this.readonly()) c.push('_readonly');\n if (this.isInvalid()) c.push('_invalid');\n if (this.focusVisible()) c.push('_focus-visible');\n return c.join(' ');\n });\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-toggle-block';\n }\n\n /** Focus the embedded control programmatically. */\n focus(options?: FocusOptions): void {\n this.control()?.focus(options);\n }\n\n /** @ignore A name reaches assistive tech (explicit, or rendered in the body). */\n private hasAccessibleName(): boolean {\n if (this.ariaLabel() || this.ariaLabelledBy() || this.label()) return true;\n return !!this.bodyEl().nativeElement.textContent?.trim();\n }\n\n /** @ignore User selection, relayed by whichever indicator is rendered. */\n protected onControlChange(value: T): void {\n if (this.readonly()) {\n this.control()?.writeValue(this.modelValue() as T);\n return;\n }\n this.modelValue.set(value);\n this.emitChange(value);\n this.blockChange.emit(value);\n }\n\n /** @ignore */\n protected onControlFocus(event: FocusEvent): void {\n this.focusVisible.set((event.target as HTMLElement).matches(':focus-visible'));\n this.blockFocus.emit(event);\n }\n\n /** @ignore */\n protected onControlBlur(event: FocusEvent): void {\n this.focusVisible.set(false);\n this.emitTouch();\n this.blockBlur.emit(event);\n }\n\n /**\n * @ignore Read-only blocks stay focusable but must not change value. Pointer\n * activation is already cut off in CSS; this covers the keyboard.\n */\n protected onKeydown(event: KeyboardEvent): void {\n if (!this.readonly()) return;\n if (event.key === ' ' || event.key.startsWith('Arrow')) event.preventDefault();\n }\n}\n","<div [class]=\"classes()\" [attr.data-ripple]=\"rippleEnabled() ? 'on' : 'off'\">\n <label class=\"ui-toggle-block-hit\" [attr.for]=\"readonly() ? null : resolvedId()\"></label>\n\n <span class=\"ui-toggle-block-control\">\n @switch (indicator()) {\n @case ('radio') {\n <ui-radio\n [value]=\"selectedValue()\"\n [inputId]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [invalid]=\"isInvalid()\"\n [tabindex]=\"tabindex()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"controlLabelledBy()\"\n (radioChange)=\"onControlChange($event)\"\n (radioFocus)=\"onControlFocus($event)\"\n (radioBlur)=\"onControlBlur($event)\"\n />\n }\n @case ('toggle') {\n <ui-toggle\n [trueValue]=\"trueValue()\"\n [falseValue]=\"falseValue()\"\n [size]=\"toggleSize()\"\n [inputId]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [invalid]=\"isInvalid()\"\n [tabindex]=\"tabindex()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"controlLabelledBy()\"\n (toggleChange)=\"onControlChange($event)\"\n (toggleFocus)=\"onControlFocus($event)\"\n (toggleBlur)=\"onControlBlur($event)\"\n />\n }\n @default {\n <ui-checkbox\n [trueValue]=\"trueValue()\"\n [falseValue]=\"falseValue()\"\n [inputId]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [invalid]=\"isInvalid()\"\n [tabindex]=\"tabindex()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"controlLabelledBy()\"\n (checkboxChange)=\"onControlChange($event)\"\n (checkboxFocus)=\"onControlFocus($event)\"\n (checkboxBlur)=\"onControlBlur($event)\"\n />\n }\n }\n </span>\n\n <div #bodyEl class=\"ui-toggle-block-body\" [id]=\"bodyId()\">\n @if (label()) {\n <span class=\"ui-toggle-block-label\">\n {{ label() }}\n @if (required()) {\n <span class=\"ui-toggle-block-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n @if (description()) {\n <span class=\"ui-toggle-block-description\">{{ description() }}</span>\n }\n <ng-content />\n </div>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toggle-block\n */\n\nexport * from './lib/ui-toggle-block';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAgCA;;;;;;;;;;;;;;;;;AAiBG;AAcG,MAAO,aAA2B,SAAQ,gBAAmB,CAAA;AA6CjE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QA5CT,IAAA,CAAA,SAAS,GAAG,KAAK,CAAuB,UAAU;sFAAC;;QAEnD,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAA+B,OAAO;8FAAC;;QAEhE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAmB,QAAQ;kFAAC;;QAEzC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,KAAK,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE7D,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkB,SAAS;iFAAC;;AAExC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAE7B,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK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le-block.html","../../../projects/ui-kit/forms/ui-toggle-block/src/public-api.ts","../../../projects/ui-kit/forms/ui-toggle-block/src/4sh-ui-kit-forms-ui-toggle-block.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl, warnMissingAccessibleName } from '@4sh/ui-kit/forms';\nimport { UiCheckbox } from '@4sh/ui-kit/forms/ui-checkbox';\nimport { UiRadio } from '@4sh/ui-kit/forms/ui-radio';\nimport { UiToggle } from '@4sh/ui-kit/forms/ui-toggle';\n\n/** Selection control embedded in the block. */\nexport type ToggleBlockIndicator = 'checkbox' | 'radio' | 'toggle';\nexport type ToggleBlockSize = 'default' | 'small' | 'large';\nexport type ToggleBlockIndicatorPosition = 'start' | 'end';\n/** Vertical alignment of the indicator against the block content. */\nexport type ToggleBlockAlign = 'center' | 'start';\n\n/** @ignore Surface the three indicator components share. */\ninterface IndicatorControl<T> {\n writeValue(value: T): void;\n focus(options?: FocusOptions): void;\n}\n\n/**\n * ui-toggle-block: selectable block wrapping a checkbox, a radio or a switch.\n *\n * The block is the clickable surface; the selection control is an instance of\n * `ui-checkbox` / `ui-radio` / `ui-toggle`, so the indicator keeps the exact\n * appearance and behaviour it has on its own. A stretched `<label for>` covers\n * the block, which makes the whole surface activate the native input without a\n * click handler; the content region is the control's accessible name\n * (`aria-labelledby`), so any markup can be projected without wrapping it in a\n * `<label>`.\n *\n * `label` / `description` cover the common case; `<ng-content>` composes with\n * them for a fully custom body.\n *\n * Works standalone, with `[(ngModel)]`, reactive forms or Signal Forms\n * (ControlValueAccessor). Blocks form a group the native way: same `name`, same\n * bound model.\n */\n@Component({\n selector: 'ui-toggle-block',\n imports: [UiCheckbox, UiRadio, UiToggle],\n templateUrl: './ui-toggle-block.html',\n styleUrl: './ui-toggle-block.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggleBlock), multi: true },\n ],\n host: {\n '[class._fluid]': 'fluid()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiToggleBlock<T = boolean> extends BaseFieldControl<T> {\n /** Selection control embedded in the block. */\n indicator = input<ToggleBlockIndicator>('checkbox');\n /** Side of the block the indicator sits on. */\n indicatorPosition = input<ToggleBlockIndicatorPosition>('start');\n /** Vertical alignment of the indicator against the content. */\n align = input<ToggleBlockAlign>('center');\n /** Keeps the control operable but removes the indicator from view (selection card). */\n hideIndicator = input(false, { transform: booleanAttribute });\n /** Size. */\n size = input<ToggleBlockSize>('default');\n /** Main line of the block. */\n label = input<string>();\n /** Secondary line under the label. */\n description = input<string>();\n /** Span the full width of the parent (a flex/grid parent otherwise sizes the block to its content). */\n fluid = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Value carried by this block in `radio` mode (the model takes it when selected). */\n value = input<T>();\n /** Model value emitted when selected, in `checkbox` / `toggle` mode. */\n trueValue = input<T>(true as T);\n /** Model value emitted when cleared, in `checkbox` / `toggle` mode. */\n falseValue = input<T>(false as T);\n\n /** Emitted on user selection with the new model value (never when disabled/readonly). */\n blockChange = output<T>();\n /** Emitted when the embedded control receives focus. */\n blockFocus = output<FocusEvent>();\n /** Emitted when the embedded control loses focus. */\n blockBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly checkboxRef = viewChild<UiCheckbox<T>>(UiCheckbox);\n /** @ignore */\n private readonly radioRef = viewChild<UiRadio<T>>(UiRadio);\n /** @ignore */\n private readonly toggleRef = viewChild<UiToggle<T>>(UiToggle);\n /** @ignore */\n private readonly bodyEl = viewChild.required<ElementRef<HTMLElement>>('bodyEl');\n\n /** @ignore Keyboard focus only: a pointer press must not ring the block. */\n private readonly focusVisible = signal(false);\n\n constructor() {\n super();\n // The embedded control owns its own state: push the model into it.\n effect(() => this.control()?.writeValue(this.modelValue() as T));\n\n afterNextRender(() => {\n if (this.indicator() === 'radio' && this.value() === undefined) {\n warnMissingAccessibleName(\n 'ui-toggle-block',\n 'indicator=\"radio\" requires a `value`: without it every block of the group shares the same identity.',\n );\n }\n if (!this.hasAccessibleName()) {\n warnMissingAccessibleName(\n 'ui-toggle-block',\n 'no accessible name: provide `label`, projected content, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n\n /** @ignore The embedded control, whichever indicator is rendered. */\n private readonly control = computed<IndicatorControl<T> | undefined>(\n () => this.checkboxRef() ?? this.radioRef() ?? this.toggleRef(),\n );\n\n /** @ignore Value this block selects (radio carries its own, the others the `trueValue`). */\n protected readonly selectedValue = computed(() =>\n this.indicator() === 'radio' ? (this.value() as T) : this.trueValue(),\n );\n\n /** @ignore */\n protected readonly checked = computed(() => this.modelValue() === this.selectedValue());\n\n /** @ignore Id of the region naming the control. */\n protected readonly bodyId = computed(() => `${this.resolvedId()}-body`);\n /**\n * @ignore The block content names the control, unless an explicit name is given\n * (`aria-labelledby` outranks `aria-label`, so the two are mutually exclusive).\n */\n protected readonly controlLabelledBy = computed(() =>\n this.ariaLabelledBy() ? this.ariaLabelledBy() : this.ariaLabel() ? undefined : this.bodyId(),\n );\n\n /** @ignore The switch follows the block density; the box controls keep the form-wide size. */\n protected readonly toggleSize = computed(() => (this.size() === 'small' ? 'small' : 'default'));\n\n /**\n * @ignore The wave is carried by the block, not by a native control, so the\n * engine's own `disabled` guard never sees it: fold the inert states in here.\n */\n protected readonly rippleEnabled = computed(\n () => this.ripple() && !this.isDisabled() && !this.readonly(),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toggle-block'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.indicatorPosition() === 'end') c.push('_indicator-end');\n if (this.align() === 'start') c.push('_align-start');\n if (this.hideIndicator()) c.push('_hide-indicator');\n if (this.checked()) c.push('_checked');\n if (this.isDisabled()) c.push('_disabled');\n if (this.readonly()) c.push('_readonly');\n if (this.isInvalid()) c.push('_invalid');\n if (this.focusVisible()) c.push('_focus-visible');\n return c.join(' ');\n });\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-toggle-block';\n }\n\n /** Focus the embedded control programmatically. */\n focus(options?: FocusOptions): void {\n this.control()?.focus(options);\n }\n\n /** @ignore A name reaches assistive tech (explicit, or rendered in the body). */\n private hasAccessibleName(): boolean {\n if (this.ariaLabel() || this.ariaLabelledBy() || this.label()) return true;\n return !!this.bodyEl().nativeElement.textContent?.trim();\n }\n\n /** @ignore User selection, relayed by whichever indicator is rendered. */\n protected onControlChange(value: T): void {\n if (this.readonly()) {\n this.control()?.writeValue(this.modelValue() as T);\n return;\n }\n this.modelValue.set(value);\n this.emitChange(value);\n this.blockChange.emit(value);\n }\n\n /** @ignore */\n protected onControlFocus(event: FocusEvent): void {\n this.focusVisible.set((event.target as HTMLElement).matches(':focus-visible'));\n this.blockFocus.emit(event);\n }\n\n /** @ignore */\n protected onControlBlur(event: FocusEvent): void {\n this.focusVisible.set(false);\n this.emitTouch();\n this.blockBlur.emit(event);\n }\n\n /**\n * @ignore Read-only blocks stay focusable but must not change value. Pointer\n * activation is already cut off in CSS; this covers the keyboard.\n */\n protected onKeydown(event: KeyboardEvent): void {\n if (!this.readonly()) return;\n if (event.key === ' ' || event.key.startsWith('Arrow')) event.preventDefault();\n }\n}\n","<div [class]=\"classes()\" [attr.data-ripple]=\"rippleEnabled() ? 'on' : 'off'\">\n <label class=\"ui-toggle-block-hit\" [attr.for]=\"readonly() ? null : resolvedId()\"></label>\n\n <span class=\"ui-toggle-block-control\">\n @switch (indicator()) {\n @case ('radio') {\n <ui-radio\n [value]=\"selectedValue()\"\n [inputId]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [invalid]=\"isInvalid()\"\n [tabindex]=\"tabindex()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"controlLabelledBy()\"\n (radioChange)=\"onControlChange($event)\"\n (radioFocus)=\"onControlFocus($event)\"\n (radioBlur)=\"onControlBlur($event)\"\n />\n }\n @case ('toggle') {\n <ui-toggle\n [trueValue]=\"trueValue()\"\n [falseValue]=\"falseValue()\"\n [size]=\"toggleSize()\"\n [inputId]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [invalid]=\"isInvalid()\"\n [tabindex]=\"tabindex()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"controlLabelledBy()\"\n (toggleChange)=\"onControlChange($event)\"\n (toggleFocus)=\"onControlFocus($event)\"\n (toggleBlur)=\"onControlBlur($event)\"\n />\n }\n @default {\n <ui-checkbox\n [trueValue]=\"trueValue()\"\n [falseValue]=\"falseValue()\"\n [inputId]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [required]=\"required()\"\n [invalid]=\"isInvalid()\"\n [tabindex]=\"tabindex()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"controlLabelledBy()\"\n (checkboxChange)=\"onControlChange($event)\"\n (checkboxFocus)=\"onControlFocus($event)\"\n (checkboxBlur)=\"onControlBlur($event)\"\n />\n }\n }\n </span>\n\n <div #bodyEl class=\"ui-toggle-block-body\" [id]=\"bodyId()\">\n @if (label()) {\n <span class=\"ui-toggle-block-label\">\n {{ label() }}\n @if (required()) {\n <span class=\"ui-toggle-block-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n @if (description()) {\n <span class=\"ui-toggle-block-description\">{{ description() }}</span>\n }\n <ng-content />\n </div>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toggle-block\n */\n\nexport * from './lib/ui-toggle-block';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAgCA;;;;;;;;;;;;;;;;;AAiBG;AAcG,M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AA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAEhB,OAAO,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAEL,QAAQ,iEAEU,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvGhF;;AAEG;;ACFH;;AAEG;;"}
@@ -348,7 +348,7 @@ class UiToggleButton extends BaseFieldControl {
348
348
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiToggleButton, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
349
349
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiToggleButton, isStandalone: true, selector: "ui-toggle-button", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, onLabel: { classPropertyName: "onLabel", publicName: "onLabel", isSignal: true, isRequired: false, transformFunction: null }, offLabel: { classPropertyName: "offLabel", publicName: "offLabel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, onIcon: { classPropertyName: "onIcon", publicName: "onIcon", isSignal: true, isRequired: false, transformFunction: null }, offIcon: { classPropertyName: "offIcon", publicName: "offIcon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: true, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, optionIcon: { classPropertyName: "optionIcon", publicName: "optionIcon", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, iconTemplate: { classPropertyName: "iconTemplate", publicName: "iconTemplate", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggleChange: "toggleChange", optionClick: "optionClick", toggleFocus: "toggleFocus", toggleBlur: "toggleBlur" }, host: { properties: { "class": "hostClasses()", "attr.role": "isGroup() ? 'group' : null", "attr.aria-label": "groupAriaLabel()", "attr.aria-labelledby": "groupAriaLabelledBy()" } }, providers: [
350
350
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggleButton), multi: true },
351
- ], viewQueries: [{ propertyName: "buttons", predicate: ["itemEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (isGroup()) {\n @for (item of normalizedOptions(); track item.key) {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"item.selected\"\n [class._icon-only]=\"item.iconOnly\"\n [disabled]=\"item.disabled\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"item.selected\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggleOption(item, $event)\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"itemContext(item)\" />\n } @else {\n @if (iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-toggle-button-label\">{{ item.label }}</span>\n }\n @if (!iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n }\n </button>\n }\n} @else {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"checked()\"\n [class._icon-only]=\"isIconOnly()\"\n [id]=\"resolvedId()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"checked()\"\n [attr.aria-label]=\"buttonAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggle()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (contentTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n @if (currentLabel()) {\n <span class=\"ui-toggle-button-label\">{{ currentLabel() }}</span>\n }\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n }\n </button>\n}\n\n<ng-template #singleIcon>\n @if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else if (currentIcon(); as iconName) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"iconName\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [":host{display:inline-flex;gap:var(--ui-toggle-button-group-gap, var(--units-sm));font-family:var(--ui-toggle-button-font-family, var(--fontfamily-base));vertical-align:middle}:host .ui-toggle-button-item{height:var(--ui-toggle-button-height, var(--size-components-default));padding:0 var(--ui-toggle-button-padding-x, var(--units-default));font-size:var(--ui-toggle-button-font-size, var(--size-typography-text-default))}:host .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height, var(--size-components-default));padding:0}:host._small .ui-toggle-button-item{height:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0 var(--ui-toggle-button-padding-x-small, var(--units-md));font-size:var(--ui-toggle-button-font-size-small, var(--size-typography-text-md))}:host._small .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0}:host._large .ui-toggle-button-item{height:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0 var(--ui-toggle-button-padding-x-large, var(--units-lg));font-size:var(--ui-toggle-button-font-size-large, var(--size-typography-text-lg))}:host._large .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0}.ui-toggle-button-item{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-toggle-button-gap, var(--units-sm));box-sizing:border-box;border:var(--ui-toggle-button-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_invalid-stroke, var(--_stroke));border-radius:var(--ui-toggle-button-radius, var(--radius-sm));background-color:var(--_surface);color:var(--_content);font-family:inherit;font-weight:var(--ui-toggle-button-weight, var(--weight-bold));line-height:1.2;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle-button-item:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-toggle-button-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_invalid-stroke, var(--_ring))}.ui-toggle-button-item:disabled{cursor:not-allowed}.ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowoutlined-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowoutlined-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowoutlined-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowoutlined-stroke-focused))}.ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowoutlined-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowoutlined-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowoutlined-stroke-hover))}.ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowoutlined-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowoutlined-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowoutlined-stroke-pressed))}.ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowoutlined-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowoutlined-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowoutlined-stroke-disabled))}.ui-toggle-button-icon{line-height:0}.ui-toggle-button-label{display:inline-block}:host._filled .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._filled .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._filled .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._filled .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._ghost .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowghost-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowghost-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowghost-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowghost-stroke-focused))}:host._ghost .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowghost-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowghost-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowghost-stroke-hover))}:host._ghost .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowghost-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowghost-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowghost-stroke-pressed))}:host._ghost .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowghost-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowghost-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowghost-stroke-disabled))}:host._high .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-high-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-high-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-high-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-high-stroke-focused))}:host._high .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-high-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-high-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-high-stroke-hover))}:host._high .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-high-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-high-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-high-stroke-pressed))}:host._high .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-high-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-high-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-high-stroke-disabled))}:host._low .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._low .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._low .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._low .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._success .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-success-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-success-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-success-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-success-stroke-focused))}:host._success .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-success-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-success-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-success-stroke-hover))}:host._success .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-success-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-success-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-success-stroke-pressed))}:host._success .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-success-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-success-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-success-stroke-disabled))}:host._warning .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-warning-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-warning-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-warning-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-warning-stroke-focused))}:host._warning .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-warning-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-warning-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-warning-stroke-hover))}:host._warning .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-warning-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-warning-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-warning-stroke-pressed))}:host._warning .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-warning-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-warning-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-warning-stroke-disabled))}:host._error .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-error-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-error-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-error-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-error-stroke-focused))}:host._error .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-error-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-error-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-error-stroke-hover))}:host._error .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-error-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-error-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-error-stroke-pressed))}:host._error .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-error-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-error-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-error-stroke-disabled))}:host._rounded .ui-toggle-button-item{border-radius:var(--ui-toggle-button-radius-rounded, var(--radius-full))}:host._fluid{display:flex;width:100%}:host._fluid .ui-toggle-button-item{flex:1 1 0;min-width:0}:host._vertical{flex-direction:column;align-items:stretch}:host._readonly .ui-toggle-button-item{cursor:default}:host._invalid{--_invalid-stroke: var(--ui-toggle-button-stroke-invalid, var(--form-error-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
351
+ ], viewQueries: [{ propertyName: "buttons", predicate: ["itemEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (isGroup()) {\n @for (item of normalizedOptions(); track item.key) {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"item.selected\"\n [class._icon-only]=\"item.iconOnly\"\n [disabled]=\"item.disabled\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"item.selected\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggleOption(item, $event)\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"itemContext(item)\" />\n } @else {\n @if (iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-toggle-button-label\">{{ item.label }}</span>\n }\n @if (!iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n }\n </button>\n }\n} @else {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"checked()\"\n [class._icon-only]=\"isIconOnly()\"\n [id]=\"resolvedId()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"checked()\"\n [attr.aria-label]=\"buttonAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggle()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (contentTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n @if (currentLabel()) {\n <span class=\"ui-toggle-button-label\">{{ currentLabel() }}</span>\n }\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n }\n </button>\n}\n\n<ng-template #singleIcon>\n @if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else if (currentIcon(); as iconName) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"iconName\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [":host{display:inline-flex;gap:var(--ui-toggle-button-group-gap, var(--units-sm));font-family:var(--ui-toggle-button-font-family, var(--fontfamily-base));vertical-align:middle}:host .ui-toggle-button-item{height:var(--ui-toggle-button-height, var(--size-components-default));padding:0 var(--ui-toggle-button-padding-x, var(--units-default));font-size:var(--ui-toggle-button-font-size, var(--size-typography-text-default))}:host .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height, var(--size-components-default));padding:0}:host._small .ui-toggle-button-item{height:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0 var(--ui-toggle-button-padding-x-small, var(--units-md));font-size:var(--ui-toggle-button-font-size-small, var(--size-typography-text-md))}:host._small .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0}:host._large .ui-toggle-button-item{height:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0 var(--ui-toggle-button-padding-x-large, var(--units-lg));font-size:var(--ui-toggle-button-font-size-large, var(--size-typography-text-lg))}:host._large .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0}.ui-toggle-button-item{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-toggle-button-gap, var(--units-sm));box-sizing:border-box;border:var(--ui-toggle-button-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_invalid-stroke, var(--_stroke));border-radius:var(--ui-toggle-button-radius, var(--radius-sm));background-color:var(--_surface);color:var(--_content);font-family:inherit;font-weight:var(--ui-toggle-button-weight, var(--weight-bold));line-height:1.2;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),border-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle-button-item:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-toggle-button-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_invalid-stroke, var(--_ring))}.ui-toggle-button-item:disabled{cursor:not-allowed}.ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowoutlined-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowoutlined-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowoutlined-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowoutlined-stroke-focused))}.ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowoutlined-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowoutlined-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowoutlined-stroke-hover))}.ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowoutlined-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowoutlined-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowoutlined-stroke-pressed))}.ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowoutlined-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowoutlined-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowoutlined-stroke-disabled))}.ui-toggle-button-icon{line-height:0}.ui-toggle-button-label{display:inline-block}:host._filled .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._filled .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._filled .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._filled .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._ghost .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowghost-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowghost-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowghost-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowghost-stroke-focused))}:host._ghost .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowghost-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowghost-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowghost-stroke-hover))}:host._ghost .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowghost-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowghost-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowghost-stroke-pressed))}:host._ghost .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowghost-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowghost-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowghost-stroke-disabled))}:host._high .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-high-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-high-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-high-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-high-stroke-focused))}:host._high .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-high-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-high-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-high-stroke-hover))}:host._high .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-high-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-high-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-high-stroke-pressed))}:host._high .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-high-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-high-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-high-stroke-disabled))}:host._low .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._low .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._low .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._low .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._success .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-success-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-success-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-success-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-success-stroke-focused))}:host._success .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-success-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-success-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-success-stroke-hover))}:host._success .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-success-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-success-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-success-stroke-pressed))}:host._success .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-success-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-success-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-success-stroke-disabled))}:host._warning .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-warning-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-warning-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-warning-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-warning-stroke-focused))}:host._warning .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-warning-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-warning-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-warning-stroke-hover))}:host._warning .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-warning-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-warning-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-warning-stroke-pressed))}:host._warning .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-warning-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-warning-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-warning-stroke-disabled))}:host._error .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-error-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-error-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-error-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-error-stroke-focused))}:host._error .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-error-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-error-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-error-stroke-hover))}:host._error .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-error-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-error-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-error-stroke-pressed))}:host._error .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-error-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-error-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-error-stroke-disabled))}:host._rounded .ui-toggle-button-item{border-radius:var(--ui-toggle-button-radius-rounded, var(--radius-full))}:host._fluid{display:flex;width:100%}:host._fluid .ui-toggle-button-item{flex:1 1 0;min-width:0}:host._vertical{flex-direction:column;align-items:stretch}:host._readonly .ui-toggle-button-item{cursor:default}:host._invalid{--_invalid-stroke: var(--ui-toggle-button-stroke-invalid, var(--form-error-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
352
352
  }
353
353
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiToggleButton, decorators: [{
354
354
  type: Component,
@@ -359,7 +359,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
359
359
  '[attr.role]': "isGroup() ? 'group' : null",
360
360
  '[attr.aria-label]': 'groupAriaLabel()',
361
361
  '[attr.aria-labelledby]': 'groupAriaLabelledBy()',
362
- }, template: "@if (isGroup()) {\n @for (item of normalizedOptions(); track item.key) {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"item.selected\"\n [class._icon-only]=\"item.iconOnly\"\n [disabled]=\"item.disabled\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"item.selected\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggleOption(item, $event)\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"itemContext(item)\" />\n } @else {\n @if (iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-toggle-button-label\">{{ item.label }}</span>\n }\n @if (!iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n }\n </button>\n }\n} @else {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"checked()\"\n [class._icon-only]=\"isIconOnly()\"\n [id]=\"resolvedId()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"checked()\"\n [attr.aria-label]=\"buttonAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggle()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (contentTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n @if (currentLabel()) {\n <span class=\"ui-toggle-button-label\">{{ currentLabel() }}</span>\n }\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n }\n </button>\n}\n\n<ng-template #singleIcon>\n @if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else if (currentIcon(); as iconName) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"iconName\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [":host{display:inline-flex;gap:var(--ui-toggle-button-group-gap, var(--units-sm));font-family:var(--ui-toggle-button-font-family, var(--fontfamily-base));vertical-align:middle}:host .ui-toggle-button-item{height:var(--ui-toggle-button-height, var(--size-components-default));padding:0 var(--ui-toggle-button-padding-x, var(--units-default));font-size:var(--ui-toggle-button-font-size, var(--size-typography-text-default))}:host .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height, var(--size-components-default));padding:0}:host._small .ui-toggle-button-item{height:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0 var(--ui-toggle-button-padding-x-small, var(--units-md));font-size:var(--ui-toggle-button-font-size-small, var(--size-typography-text-md))}:host._small .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0}:host._large .ui-toggle-button-item{height:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0 var(--ui-toggle-button-padding-x-large, var(--units-lg));font-size:var(--ui-toggle-button-font-size-large, var(--size-typography-text-lg))}:host._large .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0}.ui-toggle-button-item{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-toggle-button-gap, var(--units-sm));box-sizing:border-box;border:var(--ui-toggle-button-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_invalid-stroke, var(--_stroke));border-radius:var(--ui-toggle-button-radius, var(--radius-sm));background-color:var(--_surface);color:var(--_content);font-family:inherit;font-weight:var(--ui-toggle-button-weight, var(--weight-bold));line-height:1.2;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle-button-item:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-toggle-button-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_invalid-stroke, var(--_ring))}.ui-toggle-button-item:disabled{cursor:not-allowed}.ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowoutlined-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowoutlined-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowoutlined-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowoutlined-stroke-focused))}.ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowoutlined-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowoutlined-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowoutlined-stroke-hover))}.ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowoutlined-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowoutlined-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowoutlined-stroke-pressed))}.ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowoutlined-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowoutlined-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowoutlined-stroke-disabled))}.ui-toggle-button-icon{line-height:0}.ui-toggle-button-label{display:inline-block}:host._filled .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._filled .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._filled .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._filled .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._ghost .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowghost-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowghost-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowghost-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowghost-stroke-focused))}:host._ghost .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowghost-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowghost-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowghost-stroke-hover))}:host._ghost .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowghost-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowghost-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowghost-stroke-pressed))}:host._ghost .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowghost-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowghost-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowghost-stroke-disabled))}:host._high .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-high-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-high-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-high-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-high-stroke-focused))}:host._high .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-high-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-high-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-high-stroke-hover))}:host._high .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-high-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-high-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-high-stroke-pressed))}:host._high .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-high-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-high-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-high-stroke-disabled))}:host._low .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._low .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._low .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._low .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._success .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-success-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-success-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-success-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-success-stroke-focused))}:host._success .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-success-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-success-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-success-stroke-hover))}:host._success .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-success-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-success-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-success-stroke-pressed))}:host._success .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-success-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-success-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-success-stroke-disabled))}:host._warning .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-warning-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-warning-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-warning-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-warning-stroke-focused))}:host._warning .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-warning-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-warning-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-warning-stroke-hover))}:host._warning .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-warning-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-warning-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-warning-stroke-pressed))}:host._warning .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-warning-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-warning-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-warning-stroke-disabled))}:host._error .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-error-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-error-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-error-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-error-stroke-focused))}:host._error .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-error-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-error-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-error-stroke-hover))}:host._error .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-error-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-error-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-error-stroke-pressed))}:host._error .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-error-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-error-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-error-stroke-disabled))}:host._rounded .ui-toggle-button-item{border-radius:var(--ui-toggle-button-radius-rounded, var(--radius-full))}:host._fluid{display:flex;width:100%}:host._fluid .ui-toggle-button-item{flex:1 1 0;min-width:0}:host._vertical{flex-direction:column;align-items:stretch}:host._readonly .ui-toggle-button-item{cursor:default}:host._invalid{--_invalid-stroke: var(--ui-toggle-button-stroke-invalid, var(--form-error-stroke-default))}\n"] }]
362
+ }, template: "@if (isGroup()) {\n @for (item of normalizedOptions(); track item.key) {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"item.selected\"\n [class._icon-only]=\"item.iconOnly\"\n [disabled]=\"item.disabled\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"item.selected\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggleOption(item, $event)\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"itemContext(item)\" />\n } @else {\n @if (iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-toggle-button-label\">{{ item.label }}</span>\n }\n @if (!iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n }\n </button>\n }\n} @else {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"checked()\"\n [class._icon-only]=\"isIconOnly()\"\n [id]=\"resolvedId()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"checked()\"\n [attr.aria-label]=\"buttonAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggle()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (contentTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n @if (currentLabel()) {\n <span class=\"ui-toggle-button-label\">{{ currentLabel() }}</span>\n }\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n }\n </button>\n}\n\n<ng-template #singleIcon>\n @if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else if (currentIcon(); as iconName) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"iconName\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [":host{display:inline-flex;gap:var(--ui-toggle-button-group-gap, var(--units-sm));font-family:var(--ui-toggle-button-font-family, var(--fontfamily-base));vertical-align:middle}:host .ui-toggle-button-item{height:var(--ui-toggle-button-height, var(--size-components-default));padding:0 var(--ui-toggle-button-padding-x, var(--units-default));font-size:var(--ui-toggle-button-font-size, var(--size-typography-text-default))}:host .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height, var(--size-components-default));padding:0}:host._small .ui-toggle-button-item{height:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0 var(--ui-toggle-button-padding-x-small, var(--units-md));font-size:var(--ui-toggle-button-font-size-small, var(--size-typography-text-md))}:host._small .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-small, var(--size-components-sm));padding:0}:host._large .ui-toggle-button-item{height:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0 var(--ui-toggle-button-padding-x-large, var(--units-lg));font-size:var(--ui-toggle-button-font-size-large, var(--size-typography-text-lg))}:host._large .ui-toggle-button-item._icon-only{width:var(--ui-toggle-button-height-large, var(--size-components-lg));padding:0}.ui-toggle-button-item{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-toggle-button-gap, var(--units-sm));box-sizing:border-box;border:var(--ui-toggle-button-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_invalid-stroke, var(--_stroke));border-radius:var(--ui-toggle-button-radius, var(--radius-sm));background-color:var(--_surface);color:var(--_content);font-family:inherit;font-weight:var(--ui-toggle-button-weight, var(--weight-bold));line-height:1.2;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),border-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle-button-item:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-toggle-button-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_invalid-stroke, var(--_ring))}.ui-toggle-button-item:disabled{cursor:not-allowed}.ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowoutlined-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowoutlined-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowoutlined-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowoutlined-stroke-focused))}.ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowoutlined-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowoutlined-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowoutlined-stroke-hover))}.ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowoutlined-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowoutlined-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowoutlined-stroke-pressed))}.ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowoutlined-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowoutlined-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowoutlined-stroke-disabled))}.ui-toggle-button-icon{line-height:0}.ui-toggle-button-label{display:inline-block}:host._filled .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._filled .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._filled .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._filled .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._ghost .ui-toggle-button-item:not(._selected){--_surface: var(--ui-toggle-button-surface, var(--actions-lowghost-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-lowghost-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-lowghost-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-lowghost-stroke-focused))}:host._ghost .ui-toggle-button-item:not(._selected):hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-lowghost-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-lowghost-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-lowghost-stroke-hover))}:host._ghost .ui-toggle-button-item:not(._selected):active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-lowghost-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-lowghost-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-lowghost-stroke-pressed))}:host._ghost .ui-toggle-button-item:not(._selected):disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-lowghost-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-lowghost-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-lowghost-stroke-disabled))}:host._high .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-high-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-high-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-high-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-high-stroke-focused))}:host._high .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-high-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-high-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-high-stroke-hover))}:host._high .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-high-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-high-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-high-stroke-pressed))}:host._high .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-high-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-high-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-high-stroke-disabled))}:host._low .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-low-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-low-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-low-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-low-stroke-focused))}:host._low .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-low-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-low-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-low-stroke-hover))}:host._low .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-low-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-low-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-low-stroke-pressed))}:host._low .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-low-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-low-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-low-stroke-disabled))}:host._success .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-success-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-success-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-success-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-success-stroke-focused))}:host._success .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-success-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-success-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-success-stroke-hover))}:host._success .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-success-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-success-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-success-stroke-pressed))}:host._success .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-success-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-success-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-success-stroke-disabled))}:host._warning .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-warning-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-warning-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-warning-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-warning-stroke-focused))}:host._warning .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-warning-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-warning-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-warning-stroke-hover))}:host._warning .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-warning-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-warning-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-warning-stroke-pressed))}:host._warning .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-warning-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-warning-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-warning-stroke-disabled))}:host._error .ui-toggle-button-item._selected{--_surface: var(--ui-toggle-button-surface, var(--actions-error-surface-default));--_content: var(--ui-toggle-button-color, var(--actions-error-content-default));--_stroke: var(--ui-toggle-button-stroke, var(--actions-error-stroke-default));--_ring: var(--ui-toggle-button-focus-ring-color, var(--actions-error-stroke-focused))}:host._error .ui-toggle-button-item._selected:hover:not(:disabled){--_surface: var(--ui-toggle-button-surface-hover, var(--actions-error-surface-hover));--_content: var(--ui-toggle-button-color-hover, var(--actions-error-content-hover));--_stroke: var(--ui-toggle-button-stroke-hover, var(--actions-error-stroke-hover))}:host._error .ui-toggle-button-item._selected:active:not(:disabled){--_surface: var(--ui-toggle-button-surface-pressed, var(--actions-error-surface-pressed));--_content: var(--ui-toggle-button-color-pressed, var(--actions-error-content-pressed));--_stroke: var(--ui-toggle-button-stroke-pressed, var(--actions-error-stroke-pressed))}:host._error .ui-toggle-button-item._selected:disabled{--_surface: var(--ui-toggle-button-surface-disabled, var(--actions-error-surface-disabled));--_content: var(--ui-toggle-button-color-disabled, var(--actions-error-content-disabled));--_stroke: var(--ui-toggle-button-stroke-disabled, var(--actions-error-stroke-disabled))}:host._rounded .ui-toggle-button-item{border-radius:var(--ui-toggle-button-radius-rounded, var(--radius-full))}:host._fluid{display:flex;width:100%}:host._fluid .ui-toggle-button-item{flex:1 1 0;min-width:0}:host._vertical{flex-direction:column;align-items:stretch}:host._readonly .ui-toggle-button-item{cursor:default}:host._invalid{--_invalid-stroke: var(--ui-toggle-button-stroke-invalid, var(--form-error-stroke-default))}\n"] }]
363
363
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], onLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "onLabel", required: false }] }], offLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "offLabel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], onIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "onIcon", required: false }] }], offIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "offIcon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], trueValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "trueValue", required: false }] }], falseValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "falseValue", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], optionIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionIcon", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], iconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTemplate", required: false }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], toggleChange: [{ type: i0.Output, args: ["toggleChange"] }], optionClick: [{ type: i0.Output, args: ["optionClick"] }], toggleFocus: [{ type: i0.Output, args: ["toggleFocus"] }], toggleBlur: [{ type: i0.Output, args: ["toggleBlur"] }], buttons: [{ type: i0.ViewChildren, args: ['itemEl', { isSignal: true }] }] } });
364
364
 
365
365
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-toggle-button.mjs","sources":["../../../projects/ui-kit/forms/ui-toggle-button/src/lib/ui-toggle-button.ts","../../../projects/ui-kit/forms/ui-toggle-button/src/lib/ui-toggle-button.html","../../../projects/ui-kit/forms/ui-toggle-button/src/public-api.ts","../../../projects/ui-kit/forms/ui-toggle-button/src/4sh-ui-kit-forms-ui-toggle-button.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n isDevMode,\n output,\n TemplateRef,\n viewChildren,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n BaseFieldControl,\n createOptionResolver,\n warnMissingAccessibleName,\n} from '@4sh/ui-kit/forms';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiLevel } from '@4sh/ui-kit/types';\n\nexport type ToggleButtonSize = 'default' | 'small' | 'large';\n/** Habillage de l'état **non** sélectionné (l'état sélectionné est toujours plein). */\nexport type ToggleButtonVariant = 'outlined' | 'filled' | 'ghost';\nexport type ToggleButtonIconPos = 'left' | 'right';\nexport type ToggleButtonOrientation = 'horizontal' | 'vertical';\n\n/** Model value: one of the `trueValue`/`falseValue` pair (single), or the array of pressed option values (group). */\nexport type ToggleButtonValue<T> = T | T[] | null;\n\n/**\n * Rich option shape for the group mode. Options may also be primitives\n * (`string`/`number`) or any object, in which case `optionLabel` /\n * `optionValue` / `optionDisabled` / `optionIcon` tell the control how to read\n * them.\n */\nexport interface ToggleButtonOption<T = unknown> {\n /** Text shown inside the button. */\n label?: string;\n /** Value carried into the model when the button is pressed. */\n value: T;\n /** Icon name (design-system icon). */\n icon?: string;\n /** Icon substituted while the button is pressed. */\n selectedIcon?: string;\n /** Disables just this button. */\n disabled?: boolean;\n /** Accessible name (required for an icon-only button). */\n ariaLabel?: string;\n}\n\n/** Context handed to the `icon` / `content` templates (single mode). */\nexport interface ToggleButtonStateContext {\n /** Whether the button is currently pressed (default `$implicit`). */\n $implicit: boolean;\n /** Same as `$implicit`, named for readability. */\n checked: boolean;\n}\n\n/** Context handed to the `item` template (group mode). */\nexport interface ToggleButtonItemContext<T = unknown> {\n /** The original option (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n option: T;\n /** Whether this button is currently pressed. */\n selected: boolean;\n /** Index of the option in the list. */\n index: number;\n}\n\n/** Payload emitted when a group button is clicked. */\nexport interface ToggleButtonOptionClickEvent<T = unknown> {\n /** The original option (as passed in `options`). */\n option: T;\n /** The resolved value of that option. */\n value: T;\n /** Index of the option in the list. */\n index: number;\n /** Pressed state after the click. */\n selected: boolean;\n /** Originating DOM event. */\n originalEvent: Event;\n}\n\n/** @ignore Internal, normalized view of a group option. */\ninterface NormalizedToggle {\n key: string;\n index: number;\n value: unknown;\n label: string | null;\n icon: string | null;\n ariaLabel: string | null;\n disabled: boolean;\n selected: boolean;\n iconOnly: boolean;\n original: unknown;\n}\n\n/** @ignore */\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * ui-toggle-button — a button that holds a pressed state.\n *\n * Two modes, one component:\n * - **single** (default): one native `<button aria-pressed>` backing a boolean\n * (or the `trueValue`/`falseValue` pair). Labels and icons may differ per\n * state (`onLabel`/`offLabel`, `onIcon`/`offIcon`).\n * - **group** (`options` set): one button per option, `role=\"group\"` on the\n * host, model = the array of pressed values. Deliberately always\n * multi-select: an exclusive choice is `ui-segment-control`'s job, which says\n * it with `radiogroup` semantics instead of `aria-pressed`.\n *\n * `level` colours the pressed state, `variant` draws the released one, both\n * from the `actions.*` token sets. Interactive states (hover/focus/pressed/\n * disabled) are pure CSS.\n *\n * Works standalone, with `[(ngModel)]`, reactive forms, or signal forms\n * (`[formField]`) — it is a `ControlValueAccessor`.\n *\n * @example\n * ```html\n * <ui-toggle-button [(ngModel)]=\"bold\" label=\"Gras\" icon=\"bold\" />\n * <ui-toggle-button [(ngModel)]=\"days\" [options]=\"dayOptions\" ariaLabel=\"Jours ouvrés\" />\n * ```\n */\n@Component({\n selector: 'ui-toggle-button',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-toggle-button.html',\n styleUrl: './ui-toggle-button.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggleButton), multi: true },\n ],\n host: {\n '[class]': 'hostClasses()',\n '[attr.role]': \"isGroup() ? 'group' : null\",\n '[attr.aria-label]': 'groupAriaLabel()',\n '[attr.aria-labelledby]': 'groupAriaLabelledBy()',\n },\n})\nexport class UiToggleButton<T = boolean> extends BaseFieldControl<ToggleButtonValue<T>> {\n // --- Single mode ------------------------------------------------------\n /** Label shown in both states (fallback of `onLabel` / `offLabel`). */\n label = input<string>();\n /** Label shown while pressed. */\n onLabel = input<string>();\n /** Label shown while released. */\n offLabel = input<string>();\n /** Icon shown in both states (fallback of `onIcon` / `offIcon`). */\n icon = input<string>();\n /** Icon shown while pressed. */\n onIcon = input<string>();\n /** Icon shown while released. */\n offIcon = input<string>();\n /** Side of the label the icon sits on. */\n iconPos = input<ToggleButtonIconPos>('left');\n /** Model value emitted when pressed. */\n trueValue = input<T>(true as T);\n /** Model value emitted when released. */\n falseValue = input<T>(false as T);\n\n // --- Group mode -------------------------------------------------------\n /** Options to display, one button each. Presence switches the host to group mode. */\n options = input<readonly (T | ToggleButtonOption<T>)[]>();\n /** Field name to read a label from, when options are objects. */\n optionLabel = input<string>();\n /** Field name to read the value from, when options are objects. */\n optionValue = input<string>();\n /** Field name to read the disabled flag from, when options are objects. */\n optionDisabled = input<string>();\n /** Field name to read an icon name from, when options are objects. */\n optionIcon = input<string>();\n /** Property used to compare object values for equality (selection matching). */\n dataKey = input<string>();\n /** Layout axis of the group. */\n orientation = input<ToggleButtonOrientation>('horizontal');\n\n // --- Shared -----------------------------------------------------------\n /** Colour family of the pressed state. */\n level = input<UiLevel>('high');\n /** How the released state is drawn. */\n variant = input<ToggleButtonVariant>('outlined');\n /** Size. */\n size = input<ToggleButtonSize>('default');\n /** Span the full width of the parent (group buttons share the width evenly). */\n fluid = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Pill shape. */\n rounded = input(false, { transform: booleanAttribute });\n /** Whether the last pressed button can be released (single), or the group emptied. */\n allowEmpty = input(true, { transform: booleanAttribute });\n\n // --- Templates --------------------------------------------------------\n /** Replaces the icon, single mode (receives `{ $implicit, checked }`). */\n iconTemplate = input<TemplateRef<ToggleButtonStateContext>>();\n /** Replaces the whole button content, single mode (receives `{ $implicit, checked }`). */\n contentTemplate = input<TemplateRef<ToggleButtonStateContext>>();\n /** Replaces a group button's content (receives `{ $implicit, option, selected, index }`). */\n itemTemplate = input<TemplateRef<ToggleButtonItemContext<T>>>();\n\n /** Emitted on user interaction with the new model value. */\n toggleChange = output<ToggleButtonValue<T>>();\n /** Emitted when a group button is clicked (even if it does not change the value). */\n optionClick = output<ToggleButtonOptionClickEvent<T>>();\n /** Emitted when a button receives focus. */\n toggleFocus = output<FocusEvent>();\n /** Emitted when a button loses focus. */\n toggleBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('itemEl');\n\n /** @ignore */\n private readonly resolver = createOptionResolver({\n optionValue: this.optionValue,\n optionLabel: this.optionLabel,\n optionDisabled: this.optionDisabled,\n dataKey: this.dataKey,\n });\n\n constructor() {\n super();\n\n if (isDevMode()) {\n effect(() => {\n if (this.isGroup()) {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n 'Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n if (this.normalizedOptions().some((o) => o.iconOnly && !o.ariaLabel)) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n 'Icon-only option has no accessible name: add `ariaLabel` on the option.',\n );\n }\n return;\n }\n if (this.isIconOnly() && !this.ariaLabel()) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n 'Icon-only button has no accessible name: provide `ariaLabel`.',\n );\n }\n // A name that changes with the state is re-announced on focus, so the\n // control sounds like a different button depending on its value.\n if (this.hasStateLabels() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n '`onLabel`/`offLabel` differ: provide a state-independent `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Group mode: an `options` list was provided. */\n protected readonly isGroup = computed(() => !!this.options());\n\n /** @ignore */\n protected readonly iconSize = computed<UiIconSize>(() => {\n const size = this.size();\n if (size === 'small') return 'sm';\n return size === 'large' ? 'lg' : 'default';\n });\n\n /** @ignore */\n protected readonly hostClasses = computed(() => {\n const c = ['ui-toggle-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'outlined') c.push(`_${this.variant()}`);\n if (this.rounded()) c.push('_rounded');\n if (this.fluid()) c.push('_fluid');\n if (this.isGroup()) {\n c.push('_group');\n if (this.orientation() === 'vertical') c.push('_vertical');\n }\n if (this.readonly()) c.push('_readonly');\n if (this.isDisabled()) c.push('_disabled');\n if (this.isInvalid()) c.push('_invalid');\n return c.join(' ');\n });\n\n /** @ignore Only the group carries the group-level ARIA naming. */\n protected readonly groupAriaLabel = computed(() =>\n this.isGroup() ? this.ariaLabel() || null : null,\n );\n /** @ignore */\n protected readonly groupAriaLabelledBy = computed(() =>\n this.isGroup() ? this.ariaLabelledBy() || null : null,\n );\n\n // --- Single mode ------------------------------------------------------\n\n /** @ignore */\n protected readonly checked = computed(() => this.modelValue() === this.trueValue());\n /** @ignore */\n protected readonly hasStateLabels = computed(\n () => !!this.onLabel() && !!this.offLabel() && this.onLabel() !== this.offLabel(),\n );\n /** @ignore Label of the current state, falling back to the shared one. */\n protected readonly currentLabel = computed(\n () => (this.checked() ? this.onLabel() : this.offLabel()) ?? this.label() ?? null,\n );\n /** @ignore Icon of the current state, falling back to the shared one. */\n protected readonly currentIcon = computed(\n () => (this.checked() ? this.onIcon() : this.offIcon()) ?? this.icon() ?? null,\n );\n /** @ignore Square button: an icon, no text. */\n protected readonly isIconOnly = computed(\n () => !this.contentTemplate() && !this.currentLabel() && !!this.currentIcon(),\n );\n /** @ignore */\n protected readonly iconBefore = computed(() => this.iconPos() === 'left');\n /** @ignore */\n protected readonly stateContext = computed<ToggleButtonStateContext>(() => ({\n $implicit: this.checked(),\n checked: this.checked(),\n }));\n /** @ignore Accessible name of the single button (never empty-stringed). */\n protected readonly buttonAriaLabel = computed(\n () => this.ariaLabel() || (this.isIconOnly() ? this.currentLabel() : null),\n );\n\n // --- Group mode -------------------------------------------------------\n\n /** @ignore Options resolved to a flat, render-ready shape. */\n protected readonly normalizedOptions = computed<NormalizedToggle[]>(() => {\n const raw = this.options() ?? [];\n const model = this.modelValue();\n const groupDisabled = this.isDisabled();\n return raw.map((option, index) => {\n const value = this.resolveValue(option);\n const selected = this.isPressed(value, model);\n const label = this.resolveLabel(option);\n const icon = this.resolveIcon(option, selected);\n return {\n key: `${this.uid}-${index}`,\n index,\n value,\n label,\n icon,\n ariaLabel: isRecord(option) ? this.resolver.asText(option['ariaLabel']) : null,\n disabled: groupDisabled || this.resolver.resolveDisabled(option),\n selected,\n iconOnly: !label && !!icon,\n original: option,\n };\n });\n });\n\n /** @ignore */\n protected itemContext(item: NormalizedToggle): ToggleButtonItemContext<T> {\n return {\n $implicit: item.original as T,\n option: item.original as T,\n selected: item.selected,\n index: item.index,\n };\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-toggle-button';\n }\n\n /** Focus the button (the first enabled one in group mode). */\n focus(options?: FocusOptions): void {\n const target = this.buttons().find((ref) => !ref.nativeElement.disabled);\n target?.nativeElement.focus(options);\n }\n\n /** @ignore Single mode: flip the boolean pair. */\n protected toggle(): void {\n if (this.isDisabled() || this.readonly()) return;\n if (this.checked() && !this.allowEmpty()) return;\n\n const next = this.checked() ? this.falseValue() : this.trueValue();\n this.modelValue.set(next);\n this.emitChange(next);\n this.toggleChange.emit(next);\n }\n\n /** @ignore Group mode: press / release one option. */\n protected toggleOption(item: NormalizedToggle, event: Event): void {\n if (item.disabled || this.readonly()) return;\n const value = item.value as T;\n const model = this.modelValue();\n const next = Array.isArray(model) ? [...(model as T[])] : [];\n const at = next.findIndex((v) => this.resolver.equals(v, value));\n let selected: boolean;\n\n if (at !== -1) {\n if (!this.allowEmpty() && next.length === 1) return;\n next.splice(at, 1);\n selected = false;\n } else {\n next.push(value);\n selected = true;\n }\n\n this.modelValue.set(next);\n this.emitChange(next);\n this.toggleChange.emit(next);\n this.optionClick.emit({\n option: item.original as T,\n value,\n index: item.index,\n selected,\n originalEvent: event,\n });\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.toggleBlur.emit(event);\n }\n\n /** @ignore Rich option shape (`{ value }`) resolves without a field mapping. */\n private resolveValue(option: unknown): unknown {\n if (!this.optionValue() && isRecord(option) && 'value' in option) return option['value'];\n return this.resolver.resolveValue(option);\n }\n\n /** @ignore An option object with no label key stays label-less (icon-only button). */\n private resolveLabel(option: unknown): string | null {\n if (!this.optionLabel() && isRecord(option) && !('label' in option)) return null;\n return this.resolver.resolveLabel(option);\n }\n\n /** @ignore */\n private resolveIcon(option: unknown, selected: boolean): string | null {\n if (selected && isRecord(option)) {\n const swapped = this.resolver.asText(option['selectedIcon']);\n if (swapped) return swapped;\n }\n const field = this.optionIcon();\n if (field) return this.resolver.asText(this.resolver.getField(option, field));\n if (isRecord(option)) return this.resolver.asText(option['icon']);\n return null;\n }\n\n /** @ignore A group's model is the array of pressed values. */\n private isPressed(value: unknown, model: ToggleButtonValue<T> | undefined): boolean {\n return Array.isArray(model) && model.some((v) => this.resolver.equals(v, value));\n }\n}\n","@if (isGroup()) {\n @for (item of normalizedOptions(); track item.key) {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"item.selected\"\n [class._icon-only]=\"item.iconOnly\"\n [disabled]=\"item.disabled\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"item.selected\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggleOption(item, $event)\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"itemContext(item)\" />\n } @else {\n @if (iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-toggle-button-label\">{{ item.label }}</span>\n }\n @if (!iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n }\n </button>\n }\n} @else {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"checked()\"\n [class._icon-only]=\"isIconOnly()\"\n [id]=\"resolvedId()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"checked()\"\n [attr.aria-label]=\"buttonAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggle()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (contentTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n @if (currentLabel()) {\n <span class=\"ui-toggle-button-label\">{{ currentLabel() }}</span>\n }\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n }\n </button>\n}\n\n<ng-template #singleIcon>\n @if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else if (currentIcon(); as iconName) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"iconName\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-toggle-button\n */\n\nexport * from './lib/ui-toggle-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAqGA;AACA,SAAS,QAAQ,CAAC,KAAc,EAAA;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;AACpD;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAgBG,MAAO,cAA4B,SAAQ,gBAAsC,CAAA;AAiFrF,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;;AA/ET,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;+FAAU;;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;+FAAU;;QAEzB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAsB,MAAM;oFAAC;;QAE5C,IAAA,CAAA,SAAS,GAAG,KAAK,CAAI,IAAS;sFAAC;;QAE/B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAI,KAAU;uFAAC;;;AAIjC,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;+FAA0C;;AAEzD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;m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ui-kit/forms/ui-toggle-button/src/lib/ui-toggle-button.html","../../../projects/ui-kit/forms/ui-toggle-button/src/public-api.ts","../../../projects/ui-kit/forms/ui-toggle-button/src/4sh-ui-kit-forms-ui-toggle-button.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n input,\n isDevMode,\n output,\n TemplateRef,\n viewChildren,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n BaseFieldControl,\n createOptionResolver,\n warnMissingAccessibleName,\n} from '@4sh/ui-kit/forms';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiLevel } from '@4sh/ui-kit/types';\n\nexport type ToggleButtonSize = 'default' | 'small' | 'large';\n/** Habillage de l'état **non** sélectionné (l'état sélectionné est toujours plein). */\nexport type ToggleButtonVariant = 'outlined' | 'filled' | 'ghost';\nexport type ToggleButtonIconPos = 'left' | 'right';\nexport type ToggleButtonOrientation = 'horizontal' | 'vertical';\n\n/** Model value: one of the `trueValue`/`falseValue` pair (single), or the array of pressed option values (group). */\nexport type ToggleButtonValue<T> = T | T[] | null;\n\n/**\n * Rich option shape for the group mode. Options may also be primitives\n * (`string`/`number`) or any object, in which case `optionLabel` /\n * `optionValue` / `optionDisabled` / `optionIcon` tell the control how to read\n * them.\n */\nexport interface ToggleButtonOption<T = unknown> {\n /** Text shown inside the button. */\n label?: string;\n /** Value carried into the model when the button is pressed. */\n value: T;\n /** Icon name (design-system icon). */\n icon?: string;\n /** Icon substituted while the button is pressed. */\n selectedIcon?: string;\n /** Disables just this button. */\n disabled?: boolean;\n /** Accessible name (required for an icon-only button). */\n ariaLabel?: string;\n}\n\n/** Context handed to the `icon` / `content` templates (single mode). */\nexport interface ToggleButtonStateContext {\n /** Whether the button is currently pressed (default `$implicit`). */\n $implicit: boolean;\n /** Same as `$implicit`, named for readability. */\n checked: boolean;\n}\n\n/** Context handed to the `item` template (group mode). */\nexport interface ToggleButtonItemContext<T = unknown> {\n /** The original option (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n option: T;\n /** Whether this button is currently pressed. */\n selected: boolean;\n /** Index of the option in the list. */\n index: number;\n}\n\n/** Payload emitted when a group button is clicked. */\nexport interface ToggleButtonOptionClickEvent<T = unknown> {\n /** The original option (as passed in `options`). */\n option: T;\n /** The resolved value of that option. */\n value: T;\n /** Index of the option in the list. */\n index: number;\n /** Pressed state after the click. */\n selected: boolean;\n /** Originating DOM event. */\n originalEvent: Event;\n}\n\n/** @ignore Internal, normalized view of a group option. */\ninterface NormalizedToggle {\n key: string;\n index: number;\n value: unknown;\n label: string | null;\n icon: string | null;\n ariaLabel: string | null;\n disabled: boolean;\n selected: boolean;\n iconOnly: boolean;\n original: unknown;\n}\n\n/** @ignore */\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\n/**\n * ui-toggle-button — a button that holds a pressed state.\n *\n * Two modes, one component:\n * - **single** (default): one native `<button aria-pressed>` backing a boolean\n * (or the `trueValue`/`falseValue` pair). Labels and icons may differ per\n * state (`onLabel`/`offLabel`, `onIcon`/`offIcon`).\n * - **group** (`options` set): one button per option, `role=\"group\"` on the\n * host, model = the array of pressed values. Deliberately always\n * multi-select: an exclusive choice is `ui-segment-control`'s job, which says\n * it with `radiogroup` semantics instead of `aria-pressed`.\n *\n * `level` colours the pressed state, `variant` draws the released one, both\n * from the `actions.*` token sets. Interactive states (hover/focus/pressed/\n * disabled) are pure CSS.\n *\n * Works standalone, with `[(ngModel)]`, reactive forms, or signal forms\n * (`[formField]`) — it is a `ControlValueAccessor`.\n *\n * @example\n * ```html\n * <ui-toggle-button [(ngModel)]=\"bold\" label=\"Gras\" icon=\"bold\" />\n * <ui-toggle-button [(ngModel)]=\"days\" [options]=\"dayOptions\" ariaLabel=\"Jours ouvrés\" />\n * ```\n */\n@Component({\n selector: 'ui-toggle-button',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-toggle-button.html',\n styleUrl: './ui-toggle-button.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggleButton), multi: true },\n ],\n host: {\n '[class]': 'hostClasses()',\n '[attr.role]': \"isGroup() ? 'group' : null\",\n '[attr.aria-label]': 'groupAriaLabel()',\n '[attr.aria-labelledby]': 'groupAriaLabelledBy()',\n },\n})\nexport class UiToggleButton<T = boolean> extends BaseFieldControl<ToggleButtonValue<T>> {\n // --- Single mode ------------------------------------------------------\n /** Label shown in both states (fallback of `onLabel` / `offLabel`). */\n label = input<string>();\n /** Label shown while pressed. */\n onLabel = input<string>();\n /** Label shown while released. */\n offLabel = input<string>();\n /** Icon shown in both states (fallback of `onIcon` / `offIcon`). */\n icon = input<string>();\n /** Icon shown while pressed. */\n onIcon = input<string>();\n /** Icon shown while released. */\n offIcon = input<string>();\n /** Side of the label the icon sits on. */\n iconPos = input<ToggleButtonIconPos>('left');\n /** Model value emitted when pressed. */\n trueValue = input<T>(true as T);\n /** Model value emitted when released. */\n falseValue = input<T>(false as T);\n\n // --- Group mode -------------------------------------------------------\n /** Options to display, one button each. Presence switches the host to group mode. */\n options = input<readonly (T | ToggleButtonOption<T>)[]>();\n /** Field name to read a label from, when options are objects. */\n optionLabel = input<string>();\n /** Field name to read the value from, when options are objects. */\n optionValue = input<string>();\n /** Field name to read the disabled flag from, when options are objects. */\n optionDisabled = input<string>();\n /** Field name to read an icon name from, when options are objects. */\n optionIcon = input<string>();\n /** Property used to compare object values for equality (selection matching). */\n dataKey = input<string>();\n /** Layout axis of the group. */\n orientation = input<ToggleButtonOrientation>('horizontal');\n\n // --- Shared -----------------------------------------------------------\n /** Colour family of the pressed state. */\n level = input<UiLevel>('high');\n /** How the released state is drawn. */\n variant = input<ToggleButtonVariant>('outlined');\n /** Size. */\n size = input<ToggleButtonSize>('default');\n /** Span the full width of the parent (group buttons share the width evenly). */\n fluid = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Pill shape. */\n rounded = input(false, { transform: booleanAttribute });\n /** Whether the last pressed button can be released (single), or the group emptied. */\n allowEmpty = input(true, { transform: booleanAttribute });\n\n // --- Templates --------------------------------------------------------\n /** Replaces the icon, single mode (receives `{ $implicit, checked }`). */\n iconTemplate = input<TemplateRef<ToggleButtonStateContext>>();\n /** Replaces the whole button content, single mode (receives `{ $implicit, checked }`). */\n contentTemplate = input<TemplateRef<ToggleButtonStateContext>>();\n /** Replaces a group button's content (receives `{ $implicit, option, selected, index }`). */\n itemTemplate = input<TemplateRef<ToggleButtonItemContext<T>>>();\n\n /** Emitted on user interaction with the new model value. */\n toggleChange = output<ToggleButtonValue<T>>();\n /** Emitted when a group button is clicked (even if it does not change the value). */\n optionClick = output<ToggleButtonOptionClickEvent<T>>();\n /** Emitted when a button receives focus. */\n toggleFocus = output<FocusEvent>();\n /** Emitted when a button loses focus. */\n toggleBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly buttons = viewChildren<ElementRef<HTMLButtonElement>>('itemEl');\n\n /** @ignore */\n private readonly resolver = createOptionResolver({\n optionValue: this.optionValue,\n optionLabel: this.optionLabel,\n optionDisabled: this.optionDisabled,\n dataKey: this.dataKey,\n });\n\n constructor() {\n super();\n\n if (isDevMode()) {\n effect(() => {\n if (this.isGroup()) {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n 'Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n if (this.normalizedOptions().some((o) => o.iconOnly && !o.ariaLabel)) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n 'Icon-only option has no accessible name: add `ariaLabel` on the option.',\n );\n }\n return;\n }\n if (this.isIconOnly() && !this.ariaLabel()) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n 'Icon-only button has no accessible name: provide `ariaLabel`.',\n );\n }\n // A name that changes with the state is re-announced on focus, so the\n // control sounds like a different button depending on its value.\n if (this.hasStateLabels() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-toggle-button',\n '`onLabel`/`offLabel` differ: provide a state-independent `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Group mode: an `options` list was provided. */\n protected readonly isGroup = computed(() => !!this.options());\n\n /** @ignore */\n protected readonly iconSize = computed<UiIconSize>(() => {\n const size = this.size();\n if (size === 'small') return 'sm';\n return size === 'large' ? 'lg' : 'default';\n });\n\n /** @ignore */\n protected readonly hostClasses = computed(() => {\n const c = ['ui-toggle-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'outlined') c.push(`_${this.variant()}`);\n if (this.rounded()) c.push('_rounded');\n if (this.fluid()) c.push('_fluid');\n if (this.isGroup()) {\n c.push('_group');\n if (this.orientation() === 'vertical') c.push('_vertical');\n }\n if (this.readonly()) c.push('_readonly');\n if (this.isDisabled()) c.push('_disabled');\n if (this.isInvalid()) c.push('_invalid');\n return c.join(' ');\n });\n\n /** @ignore Only the group carries the group-level ARIA naming. */\n protected readonly groupAriaLabel = computed(() =>\n this.isGroup() ? this.ariaLabel() || null : null,\n );\n /** @ignore */\n protected readonly groupAriaLabelledBy = computed(() =>\n this.isGroup() ? this.ariaLabelledBy() || null : null,\n );\n\n // --- Single mode ------------------------------------------------------\n\n /** @ignore */\n protected readonly checked = computed(() => this.modelValue() === this.trueValue());\n /** @ignore */\n protected readonly hasStateLabels = computed(\n () => !!this.onLabel() && !!this.offLabel() && this.onLabel() !== this.offLabel(),\n );\n /** @ignore Label of the current state, falling back to the shared one. */\n protected readonly currentLabel = computed(\n () => (this.checked() ? this.onLabel() : this.offLabel()) ?? this.label() ?? null,\n );\n /** @ignore Icon of the current state, falling back to the shared one. */\n protected readonly currentIcon = computed(\n () => (this.checked() ? this.onIcon() : this.offIcon()) ?? this.icon() ?? null,\n );\n /** @ignore Square button: an icon, no text. */\n protected readonly isIconOnly = computed(\n () => !this.contentTemplate() && !this.currentLabel() && !!this.currentIcon(),\n );\n /** @ignore */\n protected readonly iconBefore = computed(() => this.iconPos() === 'left');\n /** @ignore */\n protected readonly stateContext = computed<ToggleButtonStateContext>(() => ({\n $implicit: this.checked(),\n checked: this.checked(),\n }));\n /** @ignore Accessible name of the single button (never empty-stringed). */\n protected readonly buttonAriaLabel = computed(\n () => this.ariaLabel() || (this.isIconOnly() ? this.currentLabel() : null),\n );\n\n // --- Group mode -------------------------------------------------------\n\n /** @ignore Options resolved to a flat, render-ready shape. */\n protected readonly normalizedOptions = computed<NormalizedToggle[]>(() => {\n const raw = this.options() ?? [];\n const model = this.modelValue();\n const groupDisabled = this.isDisabled();\n return raw.map((option, index) => {\n const value = this.resolveValue(option);\n const selected = this.isPressed(value, model);\n const label = this.resolveLabel(option);\n const icon = this.resolveIcon(option, selected);\n return {\n key: `${this.uid}-${index}`,\n index,\n value,\n label,\n icon,\n ariaLabel: isRecord(option) ? this.resolver.asText(option['ariaLabel']) : null,\n disabled: groupDisabled || this.resolver.resolveDisabled(option),\n selected,\n iconOnly: !label && !!icon,\n original: option,\n };\n });\n });\n\n /** @ignore */\n protected itemContext(item: NormalizedToggle): ToggleButtonItemContext<T> {\n return {\n $implicit: item.original as T,\n option: item.original as T,\n selected: item.selected,\n index: item.index,\n };\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-toggle-button';\n }\n\n /** Focus the button (the first enabled one in group mode). */\n focus(options?: FocusOptions): void {\n const target = this.buttons().find((ref) => !ref.nativeElement.disabled);\n target?.nativeElement.focus(options);\n }\n\n /** @ignore Single mode: flip the boolean pair. */\n protected toggle(): void {\n if (this.isDisabled() || this.readonly()) return;\n if (this.checked() && !this.allowEmpty()) return;\n\n const next = this.checked() ? this.falseValue() : this.trueValue();\n this.modelValue.set(next);\n this.emitChange(next);\n this.toggleChange.emit(next);\n }\n\n /** @ignore Group mode: press / release one option. */\n protected toggleOption(item: NormalizedToggle, event: Event): void {\n if (item.disabled || this.readonly()) return;\n const value = item.value as T;\n const model = this.modelValue();\n const next = Array.isArray(model) ? [...(model as T[])] : [];\n const at = next.findIndex((v) => this.resolver.equals(v, value));\n let selected: boolean;\n\n if (at !== -1) {\n if (!this.allowEmpty() && next.length === 1) return;\n next.splice(at, 1);\n selected = false;\n } else {\n next.push(value);\n selected = true;\n }\n\n this.modelValue.set(next);\n this.emitChange(next);\n this.toggleChange.emit(next);\n this.optionClick.emit({\n option: item.original as T,\n value,\n index: item.index,\n selected,\n originalEvent: event,\n });\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.toggleBlur.emit(event);\n }\n\n /** @ignore Rich option shape (`{ value }`) resolves without a field mapping. */\n private resolveValue(option: unknown): unknown {\n if (!this.optionValue() && isRecord(option) && 'value' in option) return option['value'];\n return this.resolver.resolveValue(option);\n }\n\n /** @ignore An option object with no label key stays label-less (icon-only button). */\n private resolveLabel(option: unknown): string | null {\n if (!this.optionLabel() && isRecord(option) && !('label' in option)) return null;\n return this.resolver.resolveLabel(option);\n }\n\n /** @ignore */\n private resolveIcon(option: unknown, selected: boolean): string | null {\n if (selected && isRecord(option)) {\n const swapped = this.resolver.asText(option['selectedIcon']);\n if (swapped) return swapped;\n }\n const field = this.optionIcon();\n if (field) return this.resolver.asText(this.resolver.getField(option, field));\n if (isRecord(option)) return this.resolver.asText(option['icon']);\n return null;\n }\n\n /** @ignore A group's model is the array of pressed values. */\n private isPressed(value: unknown, model: ToggleButtonValue<T> | undefined): boolean {\n return Array.isArray(model) && model.some((v) => this.resolver.equals(v, value));\n }\n}\n","@if (isGroup()) {\n @for (item of normalizedOptions(); track item.key) {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"item.selected\"\n [class._icon-only]=\"item.iconOnly\"\n [disabled]=\"item.disabled\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"item.selected\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggleOption(item, $event)\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"itemContext(item)\" />\n } @else {\n @if (iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-toggle-button-label\">{{ item.label }}</span>\n }\n @if (!iconBefore() && item.icon) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n }\n </button>\n }\n} @else {\n <button\n #itemEl\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-toggle-button-item\"\n [class._selected]=\"checked()\"\n [class._icon-only]=\"isIconOnly()\"\n [id]=\"resolvedId()\"\n [disabled]=\"isDisabled()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-pressed]=\"checked()\"\n [attr.aria-label]=\"buttonAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (click)=\"toggle()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n >\n @if (contentTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else {\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n @if (currentLabel()) {\n <span class=\"ui-toggle-button-label\">{{ currentLabel() }}</span>\n }\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"singleIcon\" />\n }\n }\n </button>\n}\n\n<ng-template #singleIcon>\n @if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"stateContext()\" />\n } @else if (currentIcon(); as iconName) {\n <ui-icon class=\"ui-toggle-button-icon\" [name]=\"iconName\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-toggle-button\n */\n\nexport * from './lib/ui-toggle-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAqGA;AACA,SAAS,QAAQ,CAAC,KAAc,EAAA;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;AACpD;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAgBG,MAAO,cAA4B,SAAQ,gBAAsC,CAAA;AAiFrF,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;;AA/ET,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;+FAAU;;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;+FAAU;;QAEzB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAsB,MAAM;oFAAC;;QAE5C,IAAA,CAAA,SAAS,GAAG,KAAK,CAAI,IAAS;sFAAC;;QAE/B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAI,KAAU;uFAAC;;;AAIjC,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK;+FAA0C;;AAEzD,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;AAE7B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;AAE7B,QAA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AA,CAAA,mlcAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDyDY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAavB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAf1B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WACnB,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAA,SAAA,EAGxB;AACT,wBAAA,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;qBAC3F,EAAA,IAAA,EACK;AACJ,wBAAA,SAAS,EAAE,eAAe;AAC1B,wBAAA,aAAa,EAAE,4BAA4B;AAC3C,wBAAA,mBAAmB,EAAE,kBAAkB;AACvC,wBAAA,wBAAwB,EAAE,uBAAuB;AAClD,qBAAA,EAAA,QAAA,EAAA,qpFAAA,EAAA,MAAA,EAAA,CAAA,mlcAAA,CAAA,EAAA;gyFAyEsE,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzNjF;;AAEG;;ACFH;;AAEG;;"}
@@ -103,11 +103,11 @@ class UiToggle extends BaseFieldControl {
103
103
  this.toggleBlur.emit(event);
104
104
  }
105
105
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiToggle, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
106
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiToggle, isStandalone: true, selector: "ui-toggle", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: true, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: true, isRequired: false, transformFunction: null }, handle: { classPropertyName: "handle", publicName: "handle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggleChange: "toggleChange", toggleFocus: "toggleFocus", toggleBlur: "toggleBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggle), multi: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label [class]=\"classes()\">\n @if (hasLabel() && labelPosition() === 'before') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n\n <span class=\"ui-toggle-control\">\n <input\n #inputEl\n type=\"checkbox\"\n role=\"switch\"\n class=\"ui-toggle-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-toggle-track\" aria-hidden=\"true\">\n <span class=\"ui-toggle-thumb\">\n @if (handle(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"handleContext()\" />\n }\n </span>\n </span>\n </span>\n\n @if (hasLabel() && labelPosition() === 'after') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n</label>\n\n<ng-template #labelTpl>\n <span class=\"ui-toggle-label\">\n <span class=\"ui-toggle-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-toggle-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n</ng-template>\n", styles: [".ui-toggle{display:inline-flex;align-items:center;gap:var(--ui-toggle-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer}.ui-toggle-control{position:relative;display:inline-flex;flex-shrink:0}.ui-toggle-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-toggle-track{display:flex;align-items:center;box-sizing:border-box;border:var(--ui-toggle-track-stroke-width, var(--stroke-sm)) solid var(--ui-toggle-track-stroke, transparent);border-radius:var(--ui-toggle-track-radius, var(--radius-full));background-color:var(--ui-toggle-track-surface, var(--form-low-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle-thumb{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;border-radius:var(--ui-toggle-thumb-radius, var(--radius-full));background-color:var(--ui-toggle-thumb-surface, var(--form-high-surface-default));color:var(--ui-toggle-thumb-color, var(--form-low-content-default));line-height:0;overflow:hidden;transition:transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle .ui-toggle-track{width:var(--ui-toggle-track-width, 2.75rem);height:var(--ui-toggle-track-height, 1.5rem);padding:var(--ui-toggle-track-padding, .0625rem)}.ui-toggle .ui-toggle-thumb{width:var(--ui-toggle-thumb-size, 1.25rem);height:var(--ui-toggle-thumb-size, 1.25rem)}.ui-toggle._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset, 1.25rem))}.ui-toggle._small .ui-toggle-track{width:var(--ui-toggle-track-width-small, 2.25rem);height:var(--ui-toggle-track-height-small, 1.25rem);padding:var(--ui-toggle-track-padding-small, .0625rem)}.ui-toggle._small .ui-toggle-thumb{width:var(--ui-toggle-thumb-size-small, 1rem);height:var(--ui-toggle-thumb-size-small, 1rem)}.ui-toggle._small._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset-small, 1rem))}.ui-toggle:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked, var(--form-high-content-checked))}.ui-toggle:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-toggle._invalid .ui-toggle-track{border-color:var(--ui-toggle-track-stroke-invalid, var(--form-error-stroke-default))}.ui-toggle._invalid:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color-invalid, var(--form-error-stroke-focused)) r g b/50%)}.ui-toggle-label{display:inline-flex;align-items:center;gap:var(--ui-toggle-label-gap, var(--units-2xs));font-family:var(--ui-toggle-font-family, var(--fontfamily-base));font-size:var(--ui-toggle-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle._small .ui-toggle-label{font-size:var(--ui-toggle-font-size-small, var(--size-typography-text-md))}.ui-toggle-required{color:var(--ui-toggle-required-color, var(--informative-errorlow-content-default))}.ui-toggle._disabled{cursor:not-allowed}.ui-toggle._disabled .ui-toggle-track{background-color:var(--ui-toggle-track-surface-disabled, var(--form-low-content-disabled))}.ui-toggle._disabled .ui-toggle-thumb{background-color:var(--ui-toggle-thumb-surface-disabled, var(--form-high-surface-disabled))}.ui-toggle._disabled .ui-toggle-label{color:var(--ui-label-color-disabled, var(--form-high-content-disabled))}.ui-toggle._disabled._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked-disabled, var(--form-high-content-disabled))}.ui-toggle._readonly{cursor:default}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
106
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiToggle, isStandalone: true, selector: "ui-toggle", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, trueValue: { classPropertyName: "trueValue", publicName: "trueValue", isSignal: true, isRequired: false, transformFunction: null }, falseValue: { classPropertyName: "falseValue", publicName: "falseValue", isSignal: true, isRequired: false, transformFunction: null }, handle: { classPropertyName: "handle", publicName: "handle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggleChange: "toggleChange", toggleFocus: "toggleFocus", toggleBlur: "toggleBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggle), multi: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label [class]=\"classes()\">\n @if (hasLabel() && labelPosition() === 'before') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n\n <span class=\"ui-toggle-control\">\n <input\n #inputEl\n type=\"checkbox\"\n role=\"switch\"\n class=\"ui-toggle-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-toggle-track\" aria-hidden=\"true\">\n <span class=\"ui-toggle-thumb\">\n @if (handle(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"handleContext()\" />\n }\n </span>\n </span>\n </span>\n\n @if (hasLabel() && labelPosition() === 'after') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n</label>\n\n<ng-template #labelTpl>\n <span class=\"ui-toggle-label\">\n <span class=\"ui-toggle-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-toggle-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n</ng-template>\n", styles: [".ui-toggle{display:inline-flex;align-items:center;gap:var(--ui-toggle-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer}.ui-toggle-control{position:relative;display:inline-flex;flex-shrink:0}.ui-toggle-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-toggle-track{display:flex;align-items:center;box-sizing:border-box;border:var(--ui-toggle-track-stroke-width, var(--stroke-sm)) solid var(--ui-toggle-track-stroke, transparent);border-radius:var(--ui-toggle-track-radius, var(--radius-full));background-color:var(--ui-toggle-track-surface, var(--form-low-content-default));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),border-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle-thumb{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;border-radius:var(--ui-toggle-thumb-radius, var(--radius-full));background-color:var(--ui-toggle-thumb-surface, var(--form-high-surface-default));color:var(--ui-toggle-thumb-color, var(--form-low-content-default));line-height:0;overflow:hidden;transition:transform var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle .ui-toggle-track{width:var(--ui-toggle-track-width, 2.75rem);height:var(--ui-toggle-track-height, 1.5rem);padding:var(--ui-toggle-track-padding, .0625rem)}.ui-toggle .ui-toggle-thumb{width:var(--ui-toggle-thumb-size, 1.25rem);height:var(--ui-toggle-thumb-size, 1.25rem)}.ui-toggle._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset, 1.25rem))}.ui-toggle._small .ui-toggle-track{width:var(--ui-toggle-track-width-small, 2.25rem);height:var(--ui-toggle-track-height-small, 1.25rem);padding:var(--ui-toggle-track-padding-small, .0625rem)}.ui-toggle._small .ui-toggle-thumb{width:var(--ui-toggle-thumb-size-small, 1rem);height:var(--ui-toggle-thumb-size-small, 1rem)}.ui-toggle._small._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset-small, 1rem))}.ui-toggle:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked, var(--form-high-content-checked))}.ui-toggle:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-toggle._invalid .ui-toggle-track{border-color:var(--ui-toggle-track-stroke-invalid, var(--form-error-stroke-default))}.ui-toggle._invalid:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color-invalid, var(--form-error-stroke-focused)) r g b/50%)}.ui-toggle-label{display:inline-flex;align-items:center;gap:var(--ui-toggle-label-gap, var(--units-2xs));font-family:var(--ui-toggle-font-family, var(--fontfamily-base));font-size:var(--ui-toggle-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle._small .ui-toggle-label{font-size:var(--ui-toggle-font-size-small, var(--size-typography-text-md))}.ui-toggle-required{color:var(--ui-toggle-required-color, var(--informative-errorlow-content-default))}.ui-toggle._disabled{cursor:not-allowed}.ui-toggle._disabled .ui-toggle-track{background-color:var(--ui-toggle-track-surface-disabled, var(--form-low-content-disabled))}.ui-toggle._disabled .ui-toggle-thumb{background-color:var(--ui-toggle-thumb-surface-disabled, var(--form-high-surface-disabled))}.ui-toggle._disabled .ui-toggle-label{color:var(--ui-label-color-disabled, var(--form-high-content-disabled))}.ui-toggle._disabled._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked-disabled, var(--form-high-content-disabled))}.ui-toggle._readonly{cursor:default}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
107
107
  }
108
108
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiToggle, decorators: [{
109
109
  type: Component,
110
- args: [{ selector: 'ui-toggle', imports: [NgTemplateOutlet], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggle), multi: true }], template: "<label [class]=\"classes()\">\n @if (hasLabel() && labelPosition() === 'before') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n\n <span class=\"ui-toggle-control\">\n <input\n #inputEl\n type=\"checkbox\"\n role=\"switch\"\n class=\"ui-toggle-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-toggle-track\" aria-hidden=\"true\">\n <span class=\"ui-toggle-thumb\">\n @if (handle(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"handleContext()\" />\n }\n </span>\n </span>\n </span>\n\n @if (hasLabel() && labelPosition() === 'after') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n</label>\n\n<ng-template #labelTpl>\n <span class=\"ui-toggle-label\">\n <span class=\"ui-toggle-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-toggle-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n</ng-template>\n", styles: [".ui-toggle{display:inline-flex;align-items:center;gap:var(--ui-toggle-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer}.ui-toggle-control{position:relative;display:inline-flex;flex-shrink:0}.ui-toggle-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-toggle-track{display:flex;align-items:center;box-sizing:border-box;border:var(--ui-toggle-track-stroke-width, var(--stroke-sm)) solid var(--ui-toggle-track-stroke, transparent);border-radius:var(--ui-toggle-track-radius, var(--radius-full));background-color:var(--ui-toggle-track-surface, var(--form-low-content-default));transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle-thumb{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;border-radius:var(--ui-toggle-thumb-radius, var(--radius-full));background-color:var(--ui-toggle-thumb-surface, var(--form-high-surface-default));color:var(--ui-toggle-thumb-color, var(--form-low-content-default));line-height:0;overflow:hidden;transition:transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle .ui-toggle-track{width:var(--ui-toggle-track-width, 2.75rem);height:var(--ui-toggle-track-height, 1.5rem);padding:var(--ui-toggle-track-padding, .0625rem)}.ui-toggle .ui-toggle-thumb{width:var(--ui-toggle-thumb-size, 1.25rem);height:var(--ui-toggle-thumb-size, 1.25rem)}.ui-toggle._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset, 1.25rem))}.ui-toggle._small .ui-toggle-track{width:var(--ui-toggle-track-width-small, 2.25rem);height:var(--ui-toggle-track-height-small, 1.25rem);padding:var(--ui-toggle-track-padding-small, .0625rem)}.ui-toggle._small .ui-toggle-thumb{width:var(--ui-toggle-thumb-size-small, 1rem);height:var(--ui-toggle-thumb-size-small, 1rem)}.ui-toggle._small._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset-small, 1rem))}.ui-toggle:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked, var(--form-high-content-checked))}.ui-toggle:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-toggle._invalid .ui-toggle-track{border-color:var(--ui-toggle-track-stroke-invalid, var(--form-error-stroke-default))}.ui-toggle._invalid:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color-invalid, var(--form-error-stroke-focused)) r g b/50%)}.ui-toggle-label{display:inline-flex;align-items:center;gap:var(--ui-toggle-label-gap, var(--units-2xs));font-family:var(--ui-toggle-font-family, var(--fontfamily-base));font-size:var(--ui-toggle-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-toggle._small .ui-toggle-label{font-size:var(--ui-toggle-font-size-small, var(--size-typography-text-md))}.ui-toggle-required{color:var(--ui-toggle-required-color, var(--informative-errorlow-content-default))}.ui-toggle._disabled{cursor:not-allowed}.ui-toggle._disabled .ui-toggle-track{background-color:var(--ui-toggle-track-surface-disabled, var(--form-low-content-disabled))}.ui-toggle._disabled .ui-toggle-thumb{background-color:var(--ui-toggle-thumb-surface-disabled, var(--form-high-surface-disabled))}.ui-toggle._disabled .ui-toggle-label{color:var(--ui-label-color-disabled, var(--form-high-content-disabled))}.ui-toggle._disabled._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked-disabled, var(--form-high-content-disabled))}.ui-toggle._readonly{cursor:default}\n"] }]
110
+ args: [{ selector: 'ui-toggle', imports: [NgTemplateOutlet], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiToggle), multi: true }], template: "<label [class]=\"classes()\">\n @if (hasLabel() && labelPosition() === 'before') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n\n <span class=\"ui-toggle-control\">\n <input\n #inputEl\n type=\"checkbox\"\n role=\"switch\"\n class=\"ui-toggle-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"toggleFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-toggle-track\" aria-hidden=\"true\">\n <span class=\"ui-toggle-thumb\">\n @if (handle(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"handleContext()\" />\n }\n </span>\n </span>\n </span>\n\n @if (hasLabel() && labelPosition() === 'after') {\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n }\n</label>\n\n<ng-template #labelTpl>\n <span class=\"ui-toggle-label\">\n <span class=\"ui-toggle-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-toggle-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n</ng-template>\n", styles: [".ui-toggle{display:inline-flex;align-items:center;gap:var(--ui-toggle-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer}.ui-toggle-control{position:relative;display:inline-flex;flex-shrink:0}.ui-toggle-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-toggle-track{display:flex;align-items:center;box-sizing:border-box;border:var(--ui-toggle-track-stroke-width, var(--stroke-sm)) solid var(--ui-toggle-track-stroke, transparent);border-radius:var(--ui-toggle-track-radius, var(--radius-full));background-color:var(--ui-toggle-track-surface, var(--form-low-content-default));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),border-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle-thumb{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;border-radius:var(--ui-toggle-thumb-radius, var(--radius-full));background-color:var(--ui-toggle-thumb-surface, var(--form-high-surface-default));color:var(--ui-toggle-thumb-color, var(--form-low-content-default));line-height:0;overflow:hidden;transition:transform var(--ui-control-transition-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-toggle-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle .ui-toggle-track{width:var(--ui-toggle-track-width, 2.75rem);height:var(--ui-toggle-track-height, 1.5rem);padding:var(--ui-toggle-track-padding, .0625rem)}.ui-toggle .ui-toggle-thumb{width:var(--ui-toggle-thumb-size, 1.25rem);height:var(--ui-toggle-thumb-size, 1.25rem)}.ui-toggle._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset, 1.25rem))}.ui-toggle._small .ui-toggle-track{width:var(--ui-toggle-track-width-small, 2.25rem);height:var(--ui-toggle-track-height-small, 1.25rem);padding:var(--ui-toggle-track-padding-small, .0625rem)}.ui-toggle._small .ui-toggle-thumb{width:var(--ui-toggle-thumb-size-small, 1rem);height:var(--ui-toggle-thumb-size-small, 1rem)}.ui-toggle._small._checked .ui-toggle-thumb{transform:translate(var(--ui-toggle-thumb-offset-small, 1rem))}.ui-toggle:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked:hover:not(._disabled):not(._readonly) .ui-toggle-track{background-color:var(--ui-toggle-track-surface-hover, var(--form-high-content-hover))}.ui-toggle._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked, var(--form-high-content-checked))}.ui-toggle:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-toggle._invalid .ui-toggle-track{border-color:var(--ui-toggle-track-stroke-invalid, var(--form-error-stroke-default))}.ui-toggle._invalid:has(.ui-toggle-input:focus-visible) .ui-toggle-track{box-shadow:0 0 0 var(--ui-toggle-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-toggle-focus-ring-color-invalid, var(--form-error-stroke-focused)) r g b/50%)}.ui-toggle-label{display:inline-flex;align-items:center;gap:var(--ui-toggle-label-gap, var(--units-2xs));font-family:var(--ui-toggle-font-family, var(--fontfamily-base));font-size:var(--ui-toggle-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-toggle._small .ui-toggle-label{font-size:var(--ui-toggle-font-size-small, var(--size-typography-text-md))}.ui-toggle-required{color:var(--ui-toggle-required-color, var(--informative-errorlow-content-default))}.ui-toggle._disabled{cursor:not-allowed}.ui-toggle._disabled .ui-toggle-track{background-color:var(--ui-toggle-track-surface-disabled, var(--form-low-content-disabled))}.ui-toggle._disabled .ui-toggle-thumb{background-color:var(--ui-toggle-thumb-surface-disabled, var(--form-high-surface-disabled))}.ui-toggle._disabled .ui-toggle-label{color:var(--ui-label-color-disabled, var(--form-high-content-disabled))}.ui-toggle._disabled._checked .ui-toggle-track{background-color:var(--ui-toggle-track-surface-checked-disabled, var(--form-high-content-disabled))}.ui-toggle._readonly{cursor:default}\n"] }]
111
111
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], trueValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "trueValue", required: false }] }], falseValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "falseValue", required: false }] }], handle: [{ type: i0.Input, args: [{ isSignal: true, alias: "handle", required: false }] }], toggleChange: [{ type: i0.Output, args: ["toggleChange"] }], toggleFocus: [{ type: i0.Output, args: ["toggleFocus"] }], toggleBlur: [{ type: i0.Output, args: ["toggleBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
112
112
 
113
113
  /*