@4sh/ui-kit 0.11.0 → 0.12.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 (84) hide show
  1. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
  2. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +3 -3
  3. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +3 -3
  4. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
  5. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
  6. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +6 -6
  7. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +3 -3
  8. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +3 -3
  9. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +3 -3
  10. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +118 -15
  11. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  12. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +3 -3
  13. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +24 -11
  14. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +3 -3
  16. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +6 -6
  17. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +3 -3
  18. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +3 -3
  19. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +3 -3
  20. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +3 -3
  21. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +3 -3
  22. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +3 -3
  23. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +3 -3
  24. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +3 -3
  25. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +3 -3
  26. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +3 -3
  27. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +3 -3
  28. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +3 -3
  29. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +3 -3
  30. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +3 -3
  31. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +3 -3
  32. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +3 -3
  33. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +3 -3
  34. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +3 -3
  35. package/fesm2022/4sh-ui-kit-forms.mjs +6 -6
  36. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +12 -12
  37. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +3 -3
  38. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  39. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +3 -3
  40. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +3 -3
  41. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +3 -3
  42. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +9 -9
  43. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +3 -3
  44. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  45. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +3 -3
  47. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +3 -3
  48. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  49. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +3 -3
  50. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +3 -3
  51. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +17 -17
  52. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +6 -6
  54. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +12 -12
  55. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +15 -15
  56. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +3 -3
  57. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +3 -3
  58. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +3 -3
  59. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  60. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +9 -9
  61. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +3 -3
  62. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
  63. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -5
  64. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +9 -9
  66. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +18 -18
  67. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -15
  68. package/fesm2022/4sh-ui-kit-ripple.mjs +9 -9
  69. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +3 -3
  70. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +33 -33
  71. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  72. package/mcp/data/text-search-docs.json +6 -6
  73. package/mcp/data/ui-config.json +6 -6
  74. package/mcp/package.json +1 -1
  75. package/package.json +1 -1
  76. package/styles/component-vars.scss +2 -2
  77. package/styles/generated/_tokens-responsive.scss +27 -3
  78. package/styles.css +1 -1
  79. package/types/4sh-ui-kit-forms-ui-editor.d.ts +5 -1
  80. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +2 -1
  81. package/types/4sh-ui-kit-informative-ui-toast.d.ts +1 -1
  82. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +1 -1
  83. package/types/4sh-ui-kit-ripple.d.ts +1 -1
  84. package/types/4sh-ui-kit-theming.d.ts +2 -2
@@ -2021,12 +2021,12 @@ class UiDatepicker extends BaseFormField {
2021
2021
  capitalize(s) {
2022
2022
  return s.charAt(0).toUpperCase() + s.slice(1);
2023
2023
  }
2024
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiDatepicker, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2025
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiDatepicker, isStandalone: true, selector: "ui-datepicker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, valueType: { classPropertyName: "valueType", publicName: "valueType", isSignal: true, isRequired: true, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, allowInput: { classPropertyName: "allowInput", publicName: "allowInput", isSignal: true, isRequired: false, transformFunction: null }, parseDate: { classPropertyName: "parseDate", publicName: "parseDate", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: true, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null }, editableTime: { classPropertyName: "editableTime", publicName: "editableTime", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, formatHintLabel: { classPropertyName: "formatHintLabel", publicName: "formatHintLabel", isSignal: true, isRequired: false, transformFunction: null }, panelAriaLabel: { classPropertyName: "panelAriaLabel", publicName: "panelAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, prevAriaLabel: { classPropertyName: "prevAriaLabel", publicName: "prevAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextAriaLabel: { classPropertyName: "nextAriaLabel", publicName: "nextAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, hoursAriaLabel: { classPropertyName: "hoursAriaLabel", publicName: "hoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, minutesAriaLabel: { classPropertyName: "minutesAriaLabel", publicName: "minutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, meridiemAriaLabel: { classPropertyName: "meridiemAriaLabel", publicName: "meridiemAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, incrementHoursAriaLabel: { classPropertyName: "incrementHoursAriaLabel", publicName: "incrementHoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementHoursAriaLabel: { classPropertyName: "decrementHoursAriaLabel", publicName: "decrementHoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, incrementMinutesAriaLabel: { classPropertyName: "incrementMinutesAriaLabel", publicName: "incrementMinutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementMinutesAriaLabel: { classPropertyName: "decrementMinutesAriaLabel", publicName: "decrementMinutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, toggleMeridiemAriaLabel: { classPropertyName: "toggleMeridiemAriaLabel", publicName: "toggleMeridiemAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", dateSelect: "dateSelect", monthChange: "monthChange", opened: "opened", closed: "closed", cleared: "cleared", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
2024
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiDatepicker, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2025
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiDatepicker, isStandalone: true, selector: "ui-datepicker", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, valueType: { classPropertyName: "valueType", publicName: "valueType", isSignal: true, isRequired: true, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, allowInput: { classPropertyName: "allowInput", publicName: "allowInput", isSignal: true, isRequired: false, transformFunction: null }, parseDate: { classPropertyName: "parseDate", publicName: "parseDate", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: true, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null }, editableTime: { classPropertyName: "editableTime", publicName: "editableTime", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, ripple: { classPropertyName: "ripple", publicName: "ripple", isSignal: true, isRequired: false, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, formatHintLabel: { classPropertyName: "formatHintLabel", publicName: "formatHintLabel", isSignal: true, isRequired: false, transformFunction: null }, panelAriaLabel: { classPropertyName: "panelAriaLabel", publicName: "panelAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, prevAriaLabel: { classPropertyName: "prevAriaLabel", publicName: "prevAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextAriaLabel: { classPropertyName: "nextAriaLabel", publicName: "nextAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, hoursAriaLabel: { classPropertyName: "hoursAriaLabel", publicName: "hoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, minutesAriaLabel: { classPropertyName: "minutesAriaLabel", publicName: "minutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, meridiemAriaLabel: { classPropertyName: "meridiemAriaLabel", publicName: "meridiemAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, incrementHoursAriaLabel: { classPropertyName: "incrementHoursAriaLabel", publicName: "incrementHoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementHoursAriaLabel: { classPropertyName: "decrementHoursAriaLabel", publicName: "decrementHoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, incrementMinutesAriaLabel: { classPropertyName: "incrementMinutesAriaLabel", publicName: "incrementMinutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, decrementMinutesAriaLabel: { classPropertyName: "decrementMinutesAriaLabel", publicName: "decrementMinutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, toggleMeridiemAriaLabel: { classPropertyName: "toggleMeridiemAriaLabel", publicName: "toggleMeridiemAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", dateSelect: "dateSelect", monthChange: "monthChange", opened: "opened", closed: "closed", cleared: "cleared", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [
2026
2026
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiDatepicker), multi: true },
2027
2027
  ], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"], descendants: true, isSignal: true }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "triggerInput", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "triggerWrapperEl", first: true, predicate: ["triggerWrapper"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- Calendar panel: shared between inline render and the CDK overlay. -->\n<ng-template #calendarTpl>\n <div\n #panel\n class=\"ui-datepicker-panel\"\n [class]=\"panelStyleClass()\"\n [class._inline]=\"inline()\"\n [class._range-complete]=\"rangeComplete()\"\n [attr.id]=\"panelId\"\n role=\"dialog\"\n [attr.aria-modal]=\"inline() || nonModal() ? null : 'true'\"\n [cdkTrapFocus]=\"!inline() && !nonModal()\"\n [attr.aria-label]=\"label() || ariaLabel() || panelAriaLabel()\"\n (focusout)=\"onPanelFocusOut($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n @if (showCalendar()) {\n <!-- Shared header (single-month): prev / title (drill-up) / next.\n Multi-month puts the arrows + titles in each panel's own header. -->\n @if (singleMonth()) {\n <div class=\"ui-datepicker-header\">\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"prevAriaLabel()\"\n (click)=\"onPrev()\"\n >\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n class=\"ui-datepicker-title _button\"\n aria-live=\"polite\"\n [disabled]=\"currentView() === 'year'\"\n (click)=\"onHeaderClick()\"\n >\n {{ headerLabel() }}\n </button>\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"nextAriaLabel()\"\n (click)=\"onNext()\"\n >\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n </button>\n </div>\n }\n\n <!-- YEAR view -->\n @if (currentView() === 'year') {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-picker _year\" role=\"grid\" (keydown)=\"onYearGridKeydown($event)\">\n @for (row of yearRows(); track $index) {\n <div class=\"ui-datepicker-picker-row\" role=\"row\">\n @for (y of row; track y.year) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-cell\"\n [class._selected]=\"y.selected\"\n [class._focusable]=\"isFocusableYear(y)\"\n [disabled]=\"y.disabled\"\n [attr.tabindex]=\"isFocusableYear(y) ? 0 : -1\"\n [attr.aria-selected]=\"y.selected\"\n (click)=\"selectYear(y)\"\n >\n {{ y.year }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- MONTH view -->\n @else if (currentView() === 'month') {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-picker _month\" role=\"grid\" (keydown)=\"onMonthGridKeydown($event)\">\n @for (row of monthRows(); track $index) {\n <div class=\"ui-datepicker-picker-row\" role=\"row\">\n @for (m of row; track m.index) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-cell\"\n [class._selected]=\"m.selected\"\n [class._focusable]=\"isFocusableMonth(m)\"\n [disabled]=\"m.disabled\"\n [attr.tabindex]=\"isFocusableMonth(m) ? 0 : -1\"\n [attr.aria-selected]=\"m.selected\"\n (click)=\"selectMonth(m)\"\n >\n {{ m.label }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- DATE view (one or several month panels) -->\n @else {\n <!-- Calendar grid: keyboard delegated to the container, focus lives on\n the gridcell buttons (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-months\" (keydown)=\"onGridKeydown($event)\">\n @for (mp of monthPanels(); track mp.monthDate.getTime()) {\n <div class=\"ui-datepicker-month\">\n @if (!singleMonth()) {\n <!-- Per-panel header: prev on the first panel, next on the last, title centered. -->\n <div class=\"ui-datepicker-subheader\">\n @if (mp.showPrev) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"prevAriaLabel()\"\n (click)=\"onPrev()\"\n >\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n </button>\n } @else {\n <span class=\"ui-datepicker-nav-spacer\" aria-hidden=\"true\"></span>\n }\n <span class=\"ui-datepicker-title\" aria-live=\"polite\">{{ mp.label }}</span>\n @if (mp.showNext) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"nextAriaLabel()\"\n (click)=\"onNext()\"\n >\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n </button>\n } @else {\n <span class=\"ui-datepicker-nav-spacer\" aria-hidden=\"true\"></span>\n }\n </div>\n }\n\n <div class=\"ui-datepicker-grid\" role=\"grid\">\n <div class=\"ui-datepicker-weekdays\" role=\"row\">\n @for (wd of weekDayNames(); track $index) {\n <span\n class=\"ui-datepicker-weekday\"\n role=\"columnheader\"\n [attr.aria-label]=\"wd.full\"\n >{{ wd.short }}</span\n >\n }\n </div>\n @for (week of mp.weeks; track $index) {\n <div class=\"ui-datepicker-week\" role=\"row\">\n @for (cell of week; track cell.ts) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-day\"\n [class._selected]=\"cell.selected\"\n [class._today]=\"cell.today && !cell.selected\"\n [class._other-month]=\"cell.otherMonth\"\n [class._range-start]=\"cell.rangeStart\"\n [class._range-end]=\"cell.rangeEnd\"\n [class._in-range]=\"cell.inRange\"\n [class._focusable]=\"isFocusableDay(cell)\"\n [disabled]=\"cell.disabled\"\n [attr.tabindex]=\"isFocusableDay(cell) ? 0 : -1\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.aria-current]=\"cell.today ? 'date' : null\"\n [attr.aria-label]=\"cell.ariaLabel\"\n (click)=\"selectDay(cell)\"\n >\n @if (dateTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: cell, selected: cell.selected }\"\n />\n } @else {\n {{ cell.day }}\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n }\n\n <!-- Time selection \u2014 vertical steppers (ARIA spinbutton pattern) -->\n @if (showTime()) {\n <div class=\"ui-datepicker-time\">\n <!-- Hours -->\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"incrementHoursAriaLabel()\"\n (click)=\"stepHours(1)\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <input\n class=\"ui-datepicker-time-value\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n maxlength=\"2\"\n role=\"spinbutton\"\n [attr.aria-label]=\"hoursAriaLabel()\"\n [attr.aria-valuenow]=\"hourFormat() === '12' ? displayHours() : hours()\"\n [attr.aria-valuemin]=\"hourBounds().min\"\n [attr.aria-valuemax]=\"hourBounds().max\"\n [attr.aria-valuetext]=\"hoursLabel()\"\n [value]=\"hoursValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"!timeEditable()\"\n (input)=\"onHoursInput($event)\"\n (focus)=\"onTimeFocus($event)\"\n (blur)=\"onHoursBlur()\"\n (keydown)=\"onHourKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"decrementHoursAriaLabel()\"\n (click)=\"stepHours(-1)\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n\n <span class=\"ui-datepicker-time-colon\" aria-hidden=\"true\">:</span>\n\n <!-- Minutes -->\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"incrementMinutesAriaLabel()\"\n (click)=\"stepMinutes(1)\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <input\n class=\"ui-datepicker-time-value\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n maxlength=\"2\"\n role=\"spinbutton\"\n [attr.aria-label]=\"minutesAriaLabel()\"\n [attr.aria-valuenow]=\"minutes()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"59\"\n [attr.aria-valuetext]=\"minutesLabel()\"\n [value]=\"minutesValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"!timeEditable()\"\n (input)=\"onMinutesInput($event)\"\n (focus)=\"onTimeFocus($event)\"\n (blur)=\"onMinutesBlur()\"\n (keydown)=\"onMinuteKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"decrementMinutesAriaLabel()\"\n (click)=\"stepMinutes(-1)\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n\n <!-- Meridiem (12h) -->\n @if (hourFormat() === '12') {\n <span class=\"ui-datepicker-time-colon\" aria-hidden=\"true\">:</span>\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"toggleMeridiemAriaLabel()\"\n (click)=\"toggleMeridiem()\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <span\n class=\"ui-datepicker-time-value\"\n role=\"spinbutton\"\n [attr.tabindex]=\"timeControlsEnabled() ? 0 : -1\"\n [attr.aria-label]=\"meridiemAriaLabel()\"\n [attr.aria-valuetext]=\"meridiem()\"\n [attr.aria-disabled]=\"!timeControlsEnabled() || null\"\n (keydown)=\"onMeridiemKeydown($event)\"\n (click)=\"toggleMeridiem()\"\n >\n {{ meridiem() }}\n </span>\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"toggleMeridiemAriaLabel()\"\n (click)=\"toggleMeridiem()\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n }\n </div>\n }\n\n <!-- Button bar (custom template or default) -->\n @if (showButtonBar() || buttonBarTemplate()) {\n <div class=\"ui-datepicker-buttonbar\">\n @if (buttonBarTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: todayCallback,\n todayCallback: todayCallback,\n clearCallback: clearCallback,\n }\"\n />\n } @else {\n <ui-button\n size=\"small\"\n level=\"low\"\n [label]=\"todayLabel()\"\n (buttonClick)=\"selectToday()\"\n />\n <ui-button size=\"small\" level=\"low\" [label]=\"clearLabel()\" (buttonClick)=\"clear()\" />\n }\n </div>\n }\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"calendarTpl\" />\n} @else {\n <!-- Trigger: composed field. The icon opens the panel; a click on the field itself only does\n so when the field isn't typeable (see `onTriggerClick`). -->\n <!-- Convenience wrapper: focus and keyboard are carried by the inner ui-input. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #triggerWrapper\n class=\"ui-datepicker-trigger\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (focusout)=\"onTriggerFocusOut($event)\"\n >\n <ui-input\n #trigger\n [label]=\"label()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"triggerReadonly()\"\n [invalid]=\"isInvalid()\"\n [name]=\"name() ?? ''\"\n [inputId]=\"resolvedId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaDescribedBy]=\"resolvedFormatHint() ? formatHintId() : undefined\"\n [tabindex]=\"tabindex()\"\n [value]=\"displayValue()\"\n [autocomplete]=\"autocomplete()\"\n [iconRight]=\"triggerIcon()\"\n [iconRightTemplate]=\"triggerIconTemplate()\"\n [iconRightAriaLabel]=\"triggerIconAriaLabel()\"\n ariaHasPopup=\"dialog\"\n [ariaExpanded]=\"panelOpen()\"\n [ariaControls]=\"panelOpen() ? panelId : undefined\"\n (iconRightClick)=\"onIconClick($event)\"\n (valueChange)=\"onTriggerInput($event)\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"onTriggerBlur($event)\"\n />\n @if (resolvedFormatHint(); as hint) {\n <span [id]=\"formatHintId()\" class=\"ui-datepicker-format-hint\">{{ hint }}</span>\n }\n </div>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayViewportMargin]=\"overlayViewportMargin\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayHasBackdrop]=\"!nonModal()\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"calendarTpl\" />\n </ng-template>\n}\n", styles: [".ui-datepicker-trigger{display:block;cursor:pointer}.ui-datepicker-format-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.ui-datepicker-panel{display:flex;flex-direction:column;gap:var(--ui-datepicker-panel-gap, var(--units-sm));box-sizing:border-box;width:max-content;max-width:var(--ui-datepicker-panel-max-width, calc(100vw - var(--units-lg)));padding:var(--ui-datepicker-panel-padding, var(--ui-overlay-panel-padding, var(--units-sm)));border:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-datepicker-panel-stroke, var(--form-high-stroke-default));border-radius:var(--ui-datepicker-panel-radius, var(--ui-overlay-panel-radius, var(--radius-default)));background-color:var(--ui-datepicker-panel-surface, var(--form-high-surface-default));box-shadow:var(--ui-datepicker-panel-shadow, var(--ui-overlay-panel-shadow, var(--shadow-default-md)));font-family:var(--ui-datepicker-font-family, var(--fontfamily-base));overflow:auto}.ui-datepicker-panel:not(._inline){max-height:var(--ui-datepicker-panel-max-height, calc(100dvh - var(--units-3xl)));overscroll-behavior:contain}.ui-datepicker-panel._inline{box-shadow:none;max-width:min(100%,var(--ui-datepicker-panel-max-width, calc(100vw - var(--units-lg))))}.ui-datepicker-header{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-datepicker-header-gap, var(--units-sm))}.ui-datepicker-nav{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--ui-datepicker-nav-size, var(--size-components-default));height:var(--ui-datepicker-nav-size, var(--size-components-default));padding:0;border:none;border-radius:var(--ui-datepicker-day-radius, var(--radius-full));background:none;color:var(--ui-datepicker-nav-color, var(--informative-defaultlow-content-default));cursor:pointer;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))}.ui-datepicker-nav:hover{background-color:var(--ui-datepicker-nav-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-datepicker-nav-color-hover, var(--informative-defaultlow-content-hover))}.ui-datepicker-nav:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-datepicker-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-datepicker-nav-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-datepicker-title{flex:1 1 auto;min-width:0;text-align:center;font-size:var(--ui-datepicker-title-font-size, var(--size-typography-title-md));font-weight:var(--ui-datepicker-weight, var(--weight-bold));color:var(--ui-datepicker-title-color, var(--form-high-content-default))}.ui-datepicker-title._button{padding:var(--ui-datepicker-title-padding-y, var(--units-2xs)) var(--ui-datepicker-title-padding-x, var(--units-sm));border:none;border-radius:var(--ui-datepicker-title-radius, var(--radius-sm));background:none;font-family:var(--ui-datepicker-font-family, var(--fontfamily-base));cursor:pointer;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))}.ui-datepicker-title._button:hover:not(:disabled){background-color:var(--ui-datepicker-title-surface-hover, var(--informative-highlightlow-surface-hover))}.ui-datepicker-title._button:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-datepicker-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-datepicker-title-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-datepicker-title._button:disabled{cursor:default}.ui-datepicker-months{display:flex;gap:var(--ui-datepicker-months-gap, var(--units-lg))}.ui-datepicker-month{display:flex;flex-direction:column;gap:var(--ui-datepicker-month-gap, var(--units-sm));flex:0 1 auto;width:var(--ui-datepicker-panel-width, 22.5rem);min-width:0;max-width:100%}.ui-datepicker-month:not(:first-child){border-left:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-datepicker-month-stroke, var(--form-high-stroke-default));padding-left:var(--ui-datepicker-month-divider-padding-left, var(--units-lg))}@media(width<37.5rem){.ui-datepicker-months{flex-direction:column}.ui-datepicker-month:not(:first-child){border-left:none;padding-left:0;border-top:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-datepicker-month-stroke, var(--form-high-stroke-default));padding-top:var(--ui-datepicker-month-divider-padding-left, var(--units-lg))}}.ui-datepicker-subheader{display:flex;align-items:center;gap:var(--ui-datepicker-subheader-gap, var(--units-sm))}.ui-datepicker-nav-spacer{flex-shrink:0;width:var(--ui-datepicker-nav-size, var(--size-components-default));height:var(--ui-datepicker-nav-size, var(--size-components-default))}.ui-datepicker-picker{display:grid;gap:var(--ui-datepicker-picker-gap, var(--units-xs));width:var(--ui-datepicker-panel-width, 22.5rem);max-width:100%}.ui-datepicker-picker-row{display:contents}.ui-datepicker-picker._month{grid-template-columns:repeat(3,1fr)}.ui-datepicker-picker._year{grid-template-columns:repeat(2,1fr)}.ui-datepicker-cell{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:var(--ui-datepicker-cell-min-height, var(--size-components-sm));padding:var(--ui-datepicker-cell-padding-y, var(--units-sm)) var(--ui-datepicker-cell-padding-x, var(--units-md));border:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid transparent;border-radius:var(--ui-datepicker-cell-radius, var(--radius-sm));background-color:var(--ui-datepicker-cell-surface, var(--actions-low-surface-default));font-family:var(--ui-datepicker-font-family, var(--fontfamily-base));font-size:var(--ui-datepicker-cell-font-size, var(--size-typography-text-default));color:var(--ui-datepicker-cell-color, var(--form-high-content-default));cursor:pointer;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)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-datepicker-cell:hover:not(:disabled){background-color:var(--ui-datepicker-cell-surface-hover, var(--actions-low-surface-hover))}.ui-datepicker-cell:active:not(:disabled){background-color:var(--ui-datepicker-cell-surface-pressed, var(--actions-low-surface-pressed))}.ui-datepicker-cell:focus-visible{outline:none;background-color:var(--ui-datepicker-cell-surface-focus, var(--actions-low-surface-focused));box-shadow:0 0 0 var(--ui-datepicker-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-datepicker-cell-focus-ring-color, var(--actions-high-stroke-focused)) r g b/50%)}.ui-datepicker-cell._selected{background-color:var(--ui-datepicker-cell-surface-selected, var(--actions-high-surface-default));color:var(--ui-datepicker-cell-color-selected, var(--actions-high-content-default))}.ui-datepicker-cell._selected:hover:not(:disabled){background-color:var(--ui-datepicker-cell-surface-selected-hover, var(--actions-high-surface-hover))}.ui-datepicker-cell:disabled{color:var(--ui-datepicker-cell-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}.ui-datepicker-weekdays,.ui-datepicker-week{display:grid;grid-template-columns:repeat(7,1fr);justify-items:center;align-items:center}.ui-datepicker-weekday{padding:var(--ui-datepicker-weekday-padding-y, var(--units-xs)) 0;font-size:var(--ui-datepicker-weekday-font-size, var(--size-typography-text-md));font-weight:var(--ui-datepicker-weight, var(--weight-bold));color:var(--ui-datepicker-weekday-color, var(--form-low-content-default));-webkit-user-select:none;user-select:none}.ui-datepicker-grid{display:flex;flex-direction:column;gap:var(--ui-datepicker-grid-gap, var(--units-xs))}.ui-datepicker-day{position:relative;z-index:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;aspect-ratio:1;max-height:var(--ui-datepicker-day-size, var(--size-components-default));padding:0;border:none;background:transparent;font-family:var(--ui-datepicker-font-family, var(--fontfamily-base));font-size:var(--ui-datepicker-day-font-size, var(--size-typography-text-default));color:var(--ui-datepicker-day-color, var(--form-high-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-datepicker-day:before{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(100%,var(--ui-datepicker-day-size, var(--size-components-default)));height:100%;border:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid transparent;border-radius:var(--ui-datepicker-day-radius, var(--radius-full));z-index:-1;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-datepicker-day:hover:not(:disabled):before{background-color:var(--ui-datepicker-day-surface-hover, var(--actions-low-surface-hover))}.ui-datepicker-day:active:not(:disabled):before{background-color:var(--ui-datepicker-day-surface-pressed, var(--actions-low-surface-pressed))}.ui-datepicker-day:focus-visible{outline:none}.ui-datepicker-day:focus-visible:before{background-color:var(--ui-datepicker-day-surface-focus, var(--actions-low-surface-focused));box-shadow:0 0 0 var(--ui-datepicker-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-datepicker-day-focus-ring-color, var(--actions-high-stroke-focused)) r g b/50%)}.ui-datepicker-day._other-month{color:var(--ui-datepicker-day-color-outside, var(--global-text-default));opacity:var(--ui-datepicker-day-opacity-outside, .6)}.ui-datepicker-day._today:before{border-color:var(--ui-datepicker-day-stroke-today, var(--actions-high-stroke-default))}.ui-datepicker-day._today:hover:not(:disabled):before{border-color:var(--ui-datepicker-day-stroke-today-hover, var(--actions-high-stroke-hover))}.ui-datepicker-day._today:focus-visible:before{border-color:var(--ui-datepicker-day-stroke-today-focus, var(--actions-high-stroke-focused))}.ui-datepicker-day._selected{color:var(--ui-datepicker-day-color-selected, var(--actions-high-content-default))}.ui-datepicker-day._selected:before{background-color:var(--ui-datepicker-day-surface-selected, var(--actions-high-surface-default))}.ui-datepicker-day._selected:hover:not(:disabled){color:var(--ui-datepicker-day-color-selected-hover, var(--actions-high-content-hover))}.ui-datepicker-day._selected:hover:not(:disabled):before{background-color:var(--ui-datepicker-day-surface-selected-hover, var(--actions-high-surface-hover))}.ui-datepicker-day._selected:focus-visible{color:var(--ui-datepicker-day-color-selected-focus, var(--actions-high-content-focused))}.ui-datepicker-day._selected:focus-visible:before{background-color:var(--ui-datepicker-day-surface-selected-focus, var(--actions-high-surface-focused))}.ui-datepicker-day._in-range:after,.ui-datepicker-day._range-start:after,.ui-datepicker-day._range-end:after{content:\"\";position:absolute;top:50%;inset-inline:0;height:100%;transform:translateY(-50%);background-color:var(--ui-datepicker-range-background, var(--informative-highlightlow-surface-hover));z-index:-2}.ui-datepicker-day._range-start:after{inset-inline-start:50%}.ui-datepicker-day._range-end:after{inset-inline-end:50%}.ui-datepicker-day._range-start._range-end:after{content:none}.ui-datepicker-panel:not(._range-complete) .ui-datepicker-day._range-start:after{content:none}.ui-datepicker-day:first-child:after{inset-inline-start:max(0px,(100% - var(--ui-datepicker-day-size, var(--size-components-default))) / 2);border-start-start-radius:var(--ui-datepicker-day-radius, var(--radius-full));border-end-start-radius:var(--ui-datepicker-day-radius, var(--radius-full))}.ui-datepicker-day:last-child:after{inset-inline-end:max(0px,(100% - var(--ui-datepicker-day-size, var(--size-components-default))) / 2);border-start-end-radius:var(--ui-datepicker-day-radius, var(--radius-full));border-end-end-radius:var(--ui-datepicker-day-radius, var(--radius-full))}.ui-datepicker-day._in-range{color:var(--ui-datepicker-range-color, var(--informative-highlightlow-content-default))}.ui-datepicker-day._in-range:disabled{color:var(--ui-datepicker-range-color, var(--informative-highlightlow-content-default))}.ui-datepicker-day._in-range:hover:not(:disabled),.ui-datepicker-day._in-range:focus-visible{color:var(--ui-datepicker-range-color-hover, var(--informative-highlighthigh-content-default))}.ui-datepicker-day._in-range:hover:not(:disabled):before,.ui-datepicker-day._in-range:focus-visible:before{background-color:var(--ui-datepicker-range-background-hover, var(--informative-highlighthigh-surface-default))}.ui-datepicker-day:disabled{color:var(--ui-datepicker-day-color-disabled, var(--form-high-content-disabled));opacity:var(--ui-datepicker-day-opacity-disabled, .45);cursor:not-allowed}.ui-datepicker-time{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--ui-datepicker-time-gap, var(--units-sm));padding-top:var(--ui-datepicker-time-padding-top, var(--units-sm));border-top:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-datepicker-time-stroke, var(--form-high-stroke-default))}.ui-datepicker-time:first-child{padding-top:0;border-top:none}.ui-datepicker-time-unit{display:flex;flex-direction:column;align-items:center;gap:var(--ui-datepicker-time-unit-gap, var(--units-2xs))}.ui-datepicker-time-value{box-sizing:border-box;display:inline-block;width:var(--ui-datepicker-time-field-width, 3rem);padding:var(--ui-datepicker-time-value-padding-y, var(--units-2xs)) var(--ui-datepicker-time-value-padding-x, var(--units-sm));border:none;border-radius:var(--ui-datepicker-time-value-radius, var(--radius-sm));background:none;font-family:var(--ui-datepicker-font-family, var(--fontfamily-base));font-size:var(--ui-datepicker-time-font-size, var(--size-typography-title-md));font-weight:var(--ui-datepicker-weight, var(--weight-bold));font-variant-numeric:tabular-nums;color:var(--ui-datepicker-time-value-color, var(--form-high-content-default));text-align:center;cursor:text;appearance:none;transition:background-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-datepicker-time-value:read-only{cursor:pointer}.ui-datepicker-time-value:hover:not(:disabled):not([aria-disabled=true]){background-color:var(--ui-datepicker-time-value-surface-hover, var(--informative-highlightlow-surface-hover))}.ui-datepicker-time-value:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-datepicker-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) rgb(from var(--ui-datepicker-time-value-focus-ring-color, var(--form-high-stroke-focused)) r g b/50%)}.ui-datepicker-time-value:disabled,.ui-datepicker-time-value[aria-disabled=true]{color:var(--ui-datepicker-time-value-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}.ui-datepicker-time-btn{display:flex;align-items:center;justify-content:center;width:var(--ui-datepicker-time-btn-width, var(--size-components-xs));height:var(--ui-datepicker-time-btn-height, var(--size-components-2xs));padding:0;border:none;border-radius:var(--ui-datepicker-time-btn-radius, var(--radius-sm));background:none;color:var(--ui-datepicker-time-btn-color, var(--form-low-content-default));cursor:pointer;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))}.ui-datepicker-time-btn:hover:not(:disabled){background-color:var(--ui-datepicker-time-btn-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-datepicker-time-btn-color-hover, var(--form-high-content-hover))}.ui-datepicker-time-btn:disabled{color:var(--ui-datepicker-time-btn-color-disabled, var(--form-high-content-disabled));cursor:not-allowed}.ui-datepicker-time-colon{font-size:var(--ui-datepicker-time-font-size, var(--size-typography-title-md));font-weight:var(--ui-datepicker-weight, var(--weight-bold));color:var(--ui-datepicker-time-colon-color, var(--form-high-content-default))}.ui-datepicker-buttonbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-datepicker-buttonbar-gap, var(--units-sm));padding-top:var(--ui-datepicker-buttonbar-padding-top, var(--units-sm));border-top:var(--ui-datepicker-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-datepicker-buttonbar-stroke, var(--form-high-stroke-default))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: UiInput, selector: "ui-input", inputs: ["type", "value", "ariaHasPopup", "ariaExpanded", "ariaControls", "placeholder", "ariaDescribedBy", "unit", "iconLeft", "iconRight", "iconRightAriaLabel", "autocomplete", "maxlength", "iconLeftTemplate", "iconRightTemplate"], outputs: ["valueChange", "iconRightClick", "inputFocus", "inputBlur"] }, { kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
2028
2028
  }
2029
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiDatepicker, decorators: [{
2029
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiDatepicker, decorators: [{
2030
2030
  type: Component,
2031
2031
  args: [{ selector: 'ui-datepicker', imports: [NgTemplateOutlet, OverlayModule, CdkTrapFocus, UiInput, UiButton, UiIcon], providers: [
2032
2032
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiDatepicker), multi: true },
@@ -187,16 +187,43 @@ function applyFontFamily() {
187
187
  }
188
188
  /** Rewrites the `<font>` elements `fontName` just produced into `<span class>`. */
189
189
  function convertFontMarkers(root, className) {
190
- convertMarkers(root, `font[face="${FONT_MARKER}"]`, className);
190
+ convertMarkers(root, `font[face="${FONT_MARKER}"]`, className, FONT_CLASSES);
191
191
  }
192
192
  /** @internal Replaces the matched legacy `<font>` elements with a classed span. */
193
- function convertMarkers(root, selector, className) {
193
+ function convertMarkers(root, selector, className, family) {
194
+ const spans = [];
194
195
  for (const el of Array.from(root.querySelectorAll(selector))) {
195
196
  const span = document.createElement('span');
196
197
  span.className = className;
197
198
  span.append(...Array.from(el.childNodes));
198
199
  el.replaceWith(span);
200
+ spans.push(span);
199
201
  }
202
+ // A same-family class left inside would win over the new one.
203
+ for (const span of spans) {
204
+ for (const inner of Array.from(span.querySelectorAll('[class]'))) {
205
+ for (const cls of Array.from(inner.classList))
206
+ if (family.has(cls))
207
+ inner.classList.remove(cls);
208
+ if (inner.classList.length > 0)
209
+ continue;
210
+ inner.removeAttribute('class');
211
+ if (inner.tagName === 'SPAN' && inner.attributes.length === 0) {
212
+ inner.replaceWith(...Array.from(inner.childNodes));
213
+ }
214
+ }
215
+ }
216
+ // Replacing the nodes collapsed the selection: put it back.
217
+ const live = spans.filter((span) => span.isConnected);
218
+ const selection = document.getSelection();
219
+ if (!live.length || !selection)
220
+ return;
221
+ const last = live[live.length - 1];
222
+ const range = document.createRange();
223
+ range.setStart(live[0], 0);
224
+ range.setEnd(last, last.childNodes.length);
225
+ selection.removeAllRanges();
226
+ selection.addRange(range);
200
227
  }
201
228
  /**
202
229
  * Type family in force at the caret.
@@ -238,7 +265,7 @@ function applyFontSize() {
238
265
  }
239
266
  /** Rewrites the `<font>` elements `fontSize` just produced into `<span class>`. */
240
267
  function convertSizeMarkers(root, className) {
241
- convertMarkers(root, `font[size="${SIZE_MARKER}"]`, className);
268
+ convertMarkers(root, `font[size="${SIZE_MARKER}"]`, className, SIZE_CLASSES);
242
269
  }
243
270
  /** Text size active at the caret, or `null` when the text uses the default. */
244
271
  function readFontSize(node) {
@@ -284,7 +311,7 @@ function applyTextColor() {
284
311
  }
285
312
  /** Rewrites the `<font>` elements `foreColor` just produced into `<span class>`. */
286
313
  function convertColorMarkers(root, className) {
287
- convertMarkers(root, `font[color="${COLOR_MARKER}"]`, className);
314
+ convertMarkers(root, `font[color="${COLOR_MARKER}"]`, className, COLOR_CLASSES);
288
315
  }
289
316
  /** Text color active at the caret, or `null` when the text uses the default. */
290
317
  function readTextColor(node) {
@@ -311,7 +338,7 @@ function applyHighlightColor() {
311
338
  }
312
339
  /** Rewrites the `<span style>` elements `hiliteColor` just produced into `<span class>`. */
313
340
  function convertHighlightMarkers(root, className) {
314
- convertMarkers(root, `[style*="background-color: ${HILITE_MARKER_RGB}"]`, className);
341
+ convertMarkers(root, `[style*="background-color: ${HILITE_MARKER_RGB}"]`, className, HIGHLIGHT_CLASSES);
315
342
  }
316
343
  /** Highlight color active at the caret, or `null` when the text carries none. */
317
344
  function readHighlightColor(node) {
@@ -396,6 +423,82 @@ function insertHtml(html) {
396
423
  function insertText(text) {
397
424
  document.execCommand('insertText', false, text);
398
425
  }
426
+ // --- Value sanitisation --------------------------------------------------
427
+ const LENGTH = String.raw `(?:0|-?\d+(?:\.\d+)?(?:px|em|rem|%))`;
428
+ const LENGTHS = new RegExp(`^${LENGTH}(?:\\s+${LENGTH}){0,3}$`);
429
+ /** The only `style` a value keeps: alignment and indentation. Same list as the React kit. */
430
+ const STYLE_ALLOWLIST = {
431
+ 'text-align': /^(?:left|right|center|justify|start|end)$/,
432
+ margin: LENGTHS,
433
+ 'margin-left': LENGTHS,
434
+ 'margin-right': LENGTHS,
435
+ 'margin-inline-start': LENGTHS,
436
+ padding: LENGTHS,
437
+ border: /^none$/,
438
+ };
439
+ /** Keeps only the allowed declarations of a `style` attribute. */
440
+ function sanitizeStyle(style) {
441
+ const kept = [];
442
+ for (const declaration of style.split(';')) {
443
+ const colon = declaration.indexOf(':');
444
+ if (colon < 0)
445
+ continue;
446
+ const property = declaration.slice(0, colon).trim().toLowerCase();
447
+ const value = declaration.slice(colon + 1).trim().toLowerCase();
448
+ const pattern = STYLE_ALLOWLIST[property];
449
+ if (pattern?.test(value))
450
+ kept.push(`${property}: ${value};`);
451
+ }
452
+ return kept.join(' ');
453
+ }
454
+ const STYLE_RELAY = 'ui-editor-style-';
455
+ /** Sanitises a value with `sanitize`, relaying the allowed `style` through a class it keeps. */
456
+ function sanitizeEditorHtml(html, sanitize) {
457
+ if (typeof DOMParser === 'undefined' || !/\sstyle\s*=/i.test(html))
458
+ return sanitize(html);
459
+ const styles = [];
460
+ const source = parseInert(html);
461
+ for (const el of Array.from(source.querySelectorAll('*'))) {
462
+ const forged = Array.from(el.classList).filter((cls) => cls.startsWith(STYLE_RELAY));
463
+ if (forged.length) {
464
+ el.classList.remove(...forged);
465
+ if (!el.classList.length)
466
+ el.removeAttribute('class');
467
+ }
468
+ const style = el.getAttribute('style');
469
+ if (style === null)
470
+ continue;
471
+ el.removeAttribute('style');
472
+ const kept = sanitizeStyle(style);
473
+ if (!kept)
474
+ continue;
475
+ el.classList.add(`${STYLE_RELAY}${styles.length}`);
476
+ styles.push(kept);
477
+ }
478
+ const safe = sanitize(source.innerHTML);
479
+ if (!styles.length)
480
+ return safe;
481
+ const out = parseInert(safe);
482
+ for (const el of Array.from(out.querySelectorAll(`[class*="${STYLE_RELAY}"]`))) {
483
+ for (const cls of Array.from(el.classList)) {
484
+ if (!cls.startsWith(STYLE_RELAY))
485
+ continue;
486
+ el.classList.remove(cls);
487
+ const kept = styles[Number(cls.slice(STYLE_RELAY.length))];
488
+ if (kept)
489
+ el.setAttribute('style', kept);
490
+ }
491
+ if (!el.classList.length)
492
+ el.removeAttribute('class');
493
+ }
494
+ return out.innerHTML;
495
+ }
496
+ /** @internal Inert parse; the leading `<remove>` keeps head-only tags in the body. */
497
+ function parseInert(html) {
498
+ const body = new DOMParser().parseFromString(`<body><remove></remove>${html}`, 'text/html').body;
499
+ body.firstChild?.remove();
500
+ return body;
501
+ }
399
502
  // --- Content normalisation ---------------------------------------------
400
503
  /** Inline + block tags the editor is allowed to produce or to accept on paste. */
401
504
  const ALLOWED_TAGS = new Set([
@@ -620,7 +723,7 @@ class UiEditor extends BaseFormField {
620
723
  */
621
724
  this.savedRange = null;
622
725
  /** @ignore Sanitised value — never inject `modelValue` into the DOM raw. */
623
- this.safeValue = computed(() => this.sanitizer.sanitize(SecurityContext.HTML, this.modelValue() ?? '') ?? '', /* @ts-ignore */
726
+ this.safeValue = computed(() => sanitizeEditorHtml(this.modelValue() ?? '', (html) => this.sanitizer.sanitize(SecurityContext.HTML, html) ?? ''), /* @ts-ignore */
624
727
  ...(ngDevMode ? [{ debugName: "safeValue" }] : /* istanbul ignore next */ []));
625
728
  /** @ignore Plain-text length, what `maxlength` and the counter measure. */
626
729
  this.charCount = computed(() => htmlToText(this.safeValue()).length, /* @ts-ignore */
@@ -717,14 +820,14 @@ class UiEditor extends BaseFormField {
717
820
  const el = this.contentEl()?.nativeElement;
718
821
  if (!el)
719
822
  return;
720
- // Already on screen, or the value we just read back from the user's own
721
- // edit: rewriting would collapse the caret mid-keystroke. Comparing the
722
- // live DOM too covers the case where sanitising reshapes the markup.
723
- if (el.innerHTML === value || value === this.lastEmitted)
823
+ // Our own edit read back, or already on screen: rewriting would collapse the
824
+ // caret. Raw value on purpose: sanitising re-encodes it (`é` → `&#233;`).
825
+ if (this.modelValue() === this.lastEmitted || el.innerHTML === value)
724
826
  return;
725
827
  /* eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE :
726
828
  `value` vient de `safeValue()`, donc de
727
- `DomSanitizer.sanitize(SecurityContext.HTML, …)`. L'écriture directe est
829
+ `DomSanitizer.sanitize(SecurityContext.HTML, …)`, plus le seul `style`
830
+ d'alignement et de retrait de `sanitizeStyle()`. L'écriture directe est
728
831
  imposée par le `contenteditable` : une liaison `[innerHTML]` réécrirait
729
832
  la zone à chaque frappe et effondrerait le caret. Registre :
730
833
  docs/SECURITY-PRACTICES.md. */
@@ -1087,10 +1190,10 @@ class UiEditor extends BaseFormField {
1087
1190
  return undefined;
1088
1191
  return { 'aria-pressed': state[tool] ? 'true' : 'false' };
1089
1192
  }
1090
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiEditor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1091
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiEditor, isStandalone: true, selector: "ui-editor", inputs: { tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, toolbarPosition: { classPropertyName: "toolbarPosition", publicName: "toolbarPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", editorFocus: "editorFocus", editorBlur: "editorBlur", selectionChange: "selectionChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiEditor), multi: true }], viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true, isSignal: true }, { propertyName: "toolbarEl", first: true, predicate: ["toolbarEl"], descendants: true, isSignal: true }, { propertyName: "textColorPicker", first: true, predicate: ["textColorPicker"], descendants: true, isSignal: true }, { propertyName: "highlightColorPicker", first: true, predicate: ["highlightColorPicker"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n multiline\n [label]=\"label()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [hasFooter]=\"showCount()\"\n>\n <div class=\"ui-editor\" [class._small]=\"size() === 'small'\" [style.--_rows]=\"minRows()\">\n @if (toolbarPosition() === 'top') {\n <ng-container [ngTemplateOutlet]=\"toolbarTpl\" />\n }\n\n <div class=\"ui-editor-area\">\n <div\n #contentEl\n class=\"ui-editor-content\"\n [class._small]=\"size() === 'small'\"\n [id]=\"resolvedId()\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"isEditable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() || label() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"describedByIds()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (beforeinput)=\"onBeforeInput($any($event))\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onContentKeydown($event)\"\n (keyup)=\"refreshState()\"\n (mouseup)=\"refreshState()\"\n (focus)=\"editorFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n ></div>\n\n @if (showPlaceholder()) {\n <span class=\"ui-editor-placeholder\" aria-hidden=\"true\">{{ placeholder() }}</span>\n }\n </div>\n\n @if (toolbarPosition() === 'bottom') {\n <ng-container [ngTemplateOutlet]=\"toolbarTpl\" />\n }\n </div>\n\n @if (showCount()) {\n <span\n uiFieldFooter\n class=\"ui-editor-count\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n [class._over]=\"overLimit()\"\n [attr.id]=\"countId()\"\n >\n {{ charCount() }}\n @if (maxlength(); as max) {\n &nbsp;/&nbsp;{{ max }}\n }\n </span>\n }\n</ui-field>\n\n<ng-template #toolbarTpl>\n @if (hasToolbar()) {\n <!-- ARIA toolbar pattern: keyboard delegated to the role=\"toolbar\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #toolbarEl\n class=\"ui-editor-toolbar\"\n [class._bottom]=\"toolbarPosition() === 'bottom'\"\n role=\"toolbar\"\n aria-label=\"Mise en forme\"\n aria-orientation=\"horizontal\"\n (mousedown)=\"onToolbarMousedown($event)\"\n (keydown)=\"onToolbarKeydown($event)\"\n >\n @for (entry of toolbar(); track entry.index) {\n @if (entry.isSeparator) {\n <span class=\"ui-editor-toolbar-separator\" aria-hidden=\"true\"></span>\n } @else if (entry.select; as select) {\n <!-- The dropdown takes the focus, so the command restores the caret\n before it runs (see onSelectValueChange). -->\n <ui-select\n class=\"ui-editor-tool ui-editor-select\"\n size=\"small\"\n [options]=\"selectOptions(select)\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [ngModel]=\"selectValue(select)\"\n [ariaLabel]=\"selectLabel(select)\"\n [disabled]=\"!isEditable()\"\n [tabindex]=\"entry.index === tabStop() ? 0 : -1\"\n (valueChange)=\"onSelectValueChange(select, $event, entry.index)\"\n />\n } @else {\n <ui-button\n class=\"ui-editor-tool\"\n [class._colorTool]=\"\n entry.buttonTool === 'textColor' || entry.buttonTool === 'highlightColor'\n \"\n variant=\"ghost\"\n level=\"low\"\n size=\"small\"\n iconOnly\n [icon]=\"entry.meta!.icon\"\n [ariaLabel]=\"entry.meta!.label\"\n [disabled]=\"!isEditable()\"\n [tabindex]=\"entry.index === tabStop() ? 0 : -1\"\n [buttonProps]=\"toolProps(entry.buttonTool!)\"\n [style.--ui-editor-swatch-indicator-color]=\"colorIndicatorVar(entry.buttonTool)\"\n (buttonClick)=\"runTool(entry.buttonTool!, entry.index, $event)\"\n />\n }\n }\n\n <!-- `textColor`/`highlightColor` popups: no trigger of their own (same\n composition contract as `ui-menu`), opened via `runTool` ->\n `onColorToolClick` -> `toggle(event)`. -->\n <ui-swatch-picker\n #textColorPicker\n popup\n size=\"small\"\n [allowClear]=\"true\"\n [value]=\"currentTextColor()\"\n ariaLabel=\"Couleur du texte\"\n (swatchSelect)=\"onTextColorSelect($event)\"\n (opened)=\"textColorPickerOpen.set(true)\"\n (closed)=\"textColorPickerOpen.set(false)\"\n />\n <ui-swatch-picker\n #highlightColorPicker\n popup\n size=\"small\"\n [allowClear]=\"true\"\n [value]=\"currentHighlightColor()\"\n ariaLabel=\"Couleur de surlignage\"\n (swatchSelect)=\"onHighlightColorSelect($event)\"\n (opened)=\"highlightColorPickerOpen.set(true)\"\n (closed)=\"highlightColorPickerOpen.set(false)\"\n />\n </div>\n }\n</ng-template>\n", styles: [".ui-editor{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;border-radius:var(--ui-editor-radius, inherit);overflow:hidden}.ui-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-editor-toolbar-gap, var(--units-2xs));flex-shrink:0;padding:var(--ui-editor-toolbar-padding-y, var(--units-2xs)) var(--ui-editor-toolbar-padding-x, var(--units-xs));background-color:var(--ui-editor-toolbar-surface, var(--global-background-muted));border-block-end:var(--ui-editor-toolbar-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-editor-toolbar-stroke, var(--form-low-stroke-default))}.ui-editor-toolbar._bottom{border-block-end:none;border-block-start:var(--ui-editor-toolbar-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-editor-toolbar-stroke, var(--form-low-stroke-default))}.ui-editor-toolbar-separator{flex-shrink:0;inline-size:var(--ui-editor-separator-width, var(--stroke-sm));block-size:var(--ui-editor-separator-height, var(--size-typography-text-default));background-color:var(--ui-editor-separator-color, var(--form-low-stroke-default))}.ui-editor-select{display:inline-flex;flex-shrink:0;min-inline-size:var(--ui-editor-select-width, 13ch);--ui-field-stroke-width: 0}.ui-editor-select ::ng-deep .ui-select{inline-size:100%}.ui-editor-select ::ng-deep .ui-field-box{background:transparent;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-editor-select ::ng-deep .ui-field-box:hover{background-color:var(--ui-editor-toolbar-select-surface-hover, var(--form-low-surface-hover))}.ui-editor-tool._colorTool{position:relative}.ui-editor-tool._colorTool:after{content:\"\";position:absolute;inset-inline:var(--ui-editor-swatch-indicator-offset-x, var(--units-2xs));inset-block-end:0;block-size:var(--ui-editor-swatch-indicator-height, var(--stroke-lg));border-radius:var(--ui-editor-swatch-indicator-height, var(--stroke-lg));background-color:var(--ui-editor-swatch-indicator-color, transparent)}.ui-editor-area{position:relative;display:flex;flex:1 1 auto;min-height:0}.ui-editor-content{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-editor-content::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-editor-content:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-editor-content{box-sizing:border-box;width:100%;min-height:var(--ui-editor-min-height, calc(var(--_rows, 4) * var(--ui-editor-line-height, 1.5) * 1em));max-height:var(--ui-editor-max-height, none);padding:var(--ui-editor-padding-y, var(--ui-form-textarea-padding-y, var(--units-default))) var(--ui-editor-padding-x, var(--ui-form-field-padding-x, var(--units-md)));overflow-y:auto;line-height:var(--ui-editor-line-height, 1.5);font-size:var(--ui-editor-font-size, var(--size-typography-text-default));overflow-wrap:break-word}.ui-editor-content._small{padding-block:var(--ui-editor-padding-y-small, var(--ui-form-textarea-padding-y-small, var(--units-md)));font-size:var(--ui-editor-font-size-small, var(--size-typography-text-md))}.ui-editor-content:focus,.ui-editor-content:focus-visible{outline:none}.ui-editor-content[contenteditable=false]{cursor:default}.ui-editor-placeholder{position:absolute;inset-block-start:var(--ui-editor-padding-y, var(--ui-form-textarea-padding-y, var(--units-default)));inset-inline-start:var(--ui-editor-padding-x, var(--ui-form-field-padding-x, var(--units-md)));line-height:var(--ui-editor-line-height, 1.5);font-family:var(--ui-editor-placeholder-font-family, var(--fontfamily-base));font-size:var(--ui-editor-font-size, var(--size-typography-text-default));color:var(--ui-editor-placeholder-color, var(--form-low-content-default));pointer-events:none;-webkit-user-select:none;user-select:none}.ui-editor._small .ui-editor-placeholder{inset-block-start:var(--ui-editor-padding-y-small, var(--ui-form-textarea-padding-y-small, var(--units-md)));font-size:var(--ui-editor-font-size-small, var(--size-typography-text-md))}.ui-editor-content ::ng-deep p{margin-block:0 var(--ui-editor-block-gap, var(--units-sm))}.ui-editor-content ::ng-deep p:last-child{margin-block-end:0}.ui-editor-content ::ng-deep ul,.ui-editor-content ::ng-deep ol{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));padding-inline-start:var(--ui-editor-list-padding-inline-start, var(--units-xl))}.ui-editor-content ::ng-deep ul:last-child,.ui-editor-content ::ng-deep ol:last-child{margin-block-end:0}.ui-editor-content ::ng-deep li+li{margin-block-start:var(--ui-editor-list-item-gap, var(--units-2xs))}.ui-editor-content ::ng-deep b,.ui-editor-content ::ng-deep strong{font-weight:var(--ui-editor-bold-weight, var(--weight-bold))}.ui-editor-content ::ng-deep a{color:var(--ui-editor-link-color, var(--global-text-brand));text-decoration:var(--ui-editor-link-text-decoration, underline)}.ui-editor-content ::ng-deep pre{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));padding:var(--ui-editor-code-padding-y, var(--units-sm)) var(--ui-editor-code-padding-x, var(--units-md));border-radius:var(--ui-editor-code-radius, var(--radius-xs));background-color:var(--ui-editor-code-surface, var(--global-background-muted));color:var(--ui-editor-code-color, var(--global-text-default));font-family:var(--ui-editor-code-font-family, var(--fontfamily-monospace));font-size:var(--ui-editor-code-font-size, var(--size-typography-text-md));white-space:pre-wrap;overflow-wrap:break-word}.ui-editor-content ::ng-deep pre:last-child{margin-block-end:0}.ui-editor-content ::ng-deep code{font-family:var(--ui-editor-code-font-family, var(--fontfamily-monospace))}.ui-editor-content ::ng-deep h1,.ui-editor-content ::ng-deep h2,.ui-editor-content ::ng-deep h3{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));font-family:var(--ui-editor-heading-font-family, var(--fontfamily-title));font-weight:var(--ui-editor-heading-weight, var(--weight-bold));line-height:var(--ui-editor-heading-line-height, 1.25)}.ui-editor-content ::ng-deep h1:last-child,.ui-editor-content ::ng-deep h2:last-child,.ui-editor-content ::ng-deep h3:last-child{margin-block-end:0}.ui-editor-content ::ng-deep h1{font-size:var(--ui-editor-heading-1-font-size, var(--size-typography-title-lg))}.ui-editor-content ::ng-deep h2{font-size:var(--ui-editor-heading-2-font-size, var(--size-typography-title-md))}.ui-editor-content ::ng-deep h3{font-size:var(--ui-editor-heading-3-font-size, var(--size-typography-title-sm))}.ui-editor-content ::ng-deep .ui-editor-font-base{font-family:var(--fontfamily-base)}.ui-editor-content ::ng-deep .ui-editor-font-title{font-family:var(--fontfamily-title)}.ui-editor-content ::ng-deep .ui-editor-font-monospace{font-family:var(--fontfamily-monospace)}.ui-editor-content ::ng-deep .ui-editor-size-sm{font-size:var(--ui-editor-size-sm-font-size, var(--size-typography-text-sm))}.ui-editor-content ::ng-deep .ui-editor-size-default{font-size:var(--ui-editor-size-default-font-size, var(--size-typography-text-default))}.ui-editor-content ::ng-deep .ui-editor-size-lg{font-size:var(--ui-editor-size-lg-font-size, var(--size-typography-text-lg))}.ui-editor-content ::ng-deep .ui-editor-size-xl{font-size:var(--ui-editor-size-xl-font-size, var(--size-typography-text-xl))}.ui-editor-content ::ng-deep .ui-editor-color-primary-900{color:var(--primitives-primary-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-900{background-color:var(--primitives-primary-900)}.ui-editor-content ::ng-deep .ui-editor-color-primary-700{color:var(--primitives-primary-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-700{background-color:var(--primitives-primary-700)}.ui-editor-content ::ng-deep .ui-editor-color-primary-500{color:var(--primitives-primary-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-500{background-color:var(--primitives-primary-500)}.ui-editor-content ::ng-deep .ui-editor-color-primary-300{color:var(--primitives-primary-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-300{background-color:var(--primitives-primary-300)}.ui-editor-content ::ng-deep .ui-editor-color-primary-100{color:var(--primitives-primary-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-100{background-color:var(--primitives-primary-100)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-900{color:var(--primitives-secondary-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-900{background-color:var(--primitives-secondary-900)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-700{color:var(--primitives-secondary-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-700{background-color:var(--primitives-secondary-700)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-500{color:var(--primitives-secondary-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-500{background-color:var(--primitives-secondary-500)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-300{color:var(--primitives-secondary-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-300{background-color:var(--primitives-secondary-300)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-100{color:var(--primitives-secondary-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-100{background-color:var(--primitives-secondary-100)}.ui-editor-content ::ng-deep .ui-editor-color-green-900{color:var(--primitives-green-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-900{background-color:var(--primitives-green-900)}.ui-editor-content ::ng-deep .ui-editor-color-green-700{color:var(--primitives-green-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-700{background-color:var(--primitives-green-700)}.ui-editor-content ::ng-deep .ui-editor-color-green-500{color:var(--primitives-green-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-500{background-color:var(--primitives-green-500)}.ui-editor-content ::ng-deep .ui-editor-color-green-300{color:var(--primitives-green-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-300{background-color:var(--primitives-green-300)}.ui-editor-content ::ng-deep .ui-editor-color-green-100{color:var(--primitives-green-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-100{background-color:var(--primitives-green-100)}.ui-editor-content ::ng-deep .ui-editor-color-orange-900{color:var(--primitives-orange-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-900{background-color:var(--primitives-orange-900)}.ui-editor-content ::ng-deep .ui-editor-color-orange-700{color:var(--primitives-orange-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-700{background-color:var(--primitives-orange-700)}.ui-editor-content ::ng-deep .ui-editor-color-orange-500{color:var(--primitives-orange-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-500{background-color:var(--primitives-orange-500)}.ui-editor-content ::ng-deep .ui-editor-color-orange-300{color:var(--primitives-orange-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-300{background-color:var(--primitives-orange-300)}.ui-editor-content ::ng-deep .ui-editor-color-orange-100{color:var(--primitives-orange-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-100{background-color:var(--primitives-orange-100)}.ui-editor-content ::ng-deep .ui-editor-color-red-900{color:var(--primitives-red-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-900{background-color:var(--primitives-red-900)}.ui-editor-content ::ng-deep .ui-editor-color-red-700{color:var(--primitives-red-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-700{background-color:var(--primitives-red-700)}.ui-editor-content ::ng-deep .ui-editor-color-red-500{color:var(--primitives-red-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-500{background-color:var(--primitives-red-500)}.ui-editor-content ::ng-deep .ui-editor-color-red-300{color:var(--primitives-red-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-300{background-color:var(--primitives-red-300)}.ui-editor-content ::ng-deep .ui-editor-color-red-100{color:var(--primitives-red-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-100{background-color:var(--primitives-red-100)}.ui-editor-content ::ng-deep .ui-editor-color-slate-900{color:var(--primitives-slate-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-900{background-color:var(--primitives-slate-900)}.ui-editor-content ::ng-deep .ui-editor-color-slate-700{color:var(--primitives-slate-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-700{background-color:var(--primitives-slate-700)}.ui-editor-content ::ng-deep .ui-editor-color-slate-500{color:var(--primitives-slate-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-500{background-color:var(--primitives-slate-500)}.ui-editor-content ::ng-deep .ui-editor-color-slate-300{color:var(--primitives-slate-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-300{background-color:var(--primitives-slate-300)}.ui-editor-content ::ng-deep .ui-editor-color-slate-100{color:var(--primitives-slate-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-100{background-color:var(--primitives-slate-100)}.ui-editor-content ::ng-deep .ui-editor-color-grey-900{color:var(--primitives-grey-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-900{background-color:var(--primitives-grey-900)}.ui-editor-content ::ng-deep .ui-editor-color-grey-700{color:var(--primitives-grey-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-700{background-color:var(--primitives-grey-700)}.ui-editor-content ::ng-deep .ui-editor-color-grey-500{color:var(--primitives-grey-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-500{background-color:var(--primitives-grey-500)}.ui-editor-content ::ng-deep .ui-editor-color-grey-300{color:var(--primitives-grey-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-300{background-color:var(--primitives-grey-300)}.ui-editor-content ::ng-deep .ui-editor-color-grey-100{color:var(--primitives-grey-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-100{background-color:var(--primitives-grey-100)}.ui-editor-content ::ng-deep .ui-editor-color-black{color:var(--primitives-black-base)}.ui-editor-content ::ng-deep .ui-editor-color-white{color:var(--primitives-white-base)}.ui-editor-content ::ng-deep .ui-editor-highlight-black{background-color:var(--primitives-black-base)}.ui-editor-content ::ng-deep .ui-editor-highlight-white{background-color:var(--primitives-white-base)}.ui-editor-count{margin-left:auto;flex-shrink:0;font-family:var(--ui-editor-count-font-family, var(--fontfamily-base));font-size:var(--ui-editor-count-font-size, var(--size-typography-text-md));color:var(--ui-editor-count-color, var(--form-low-content-default));-webkit-user-select:none;user-select:none}.ui-editor-count._small{font-size:var(--ui-editor-count-font-size-small, var(--size-typography-text-sm))}.ui-editor-count._over{color:var(--ui-editor-count-color-over, var(--form-error-content-default))}.ui-editor-count._disabled{color:var(--ui-editor-count-color-disabled, var(--form-high-content-disabled))}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "component", type: UiSwatchPicker, selector: "ui-swatch-picker", inputs: ["palette", "value", "popup", "size", "allowClear", "ariaLabel"], outputs: ["valueChange", "swatchSelect", "opened", "closed"] }, { kind: "component", type: UiSelect, selector: "ui-select", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "group", "optionGroupLabel", "optionGroupChildren", "dataKey", "multiple", "checkmark", "checkbox", "maxSelectedLabels", "overflowLabel", "placeholder", "showClear", "clearAriaLabel", "icon", "filter", "filterPlaceholder", "filterAriaLabel", "filterBy", "autofocusFilter", "resetFilterOnHide", "ripple", "emptyMessage", "emptyFilterMessage", "editable", "loading", "autoOptionFocus", "selectOnFocus", "focusOnHover", "virtualScroll", "virtualScrollItemSize", "lazy", "scrollHeight", "autoFlip", "panelStyleClass", "panelWidth"], outputs: ["valueChange", "opened", "closed", "cleared", "filterChange", "lazyLoad", "inputFocus", "inputBlur"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
1193
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiEditor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1194
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiEditor, isStandalone: true, selector: "ui-editor", inputs: { tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, toolbarPosition: { classPropertyName: "toolbarPosition", publicName: "toolbarPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", editorFocus: "editorFocus", editorBlur: "editorBlur", selectionChange: "selectionChange" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiEditor), multi: true }], viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true, isSignal: true }, { propertyName: "toolbarEl", first: true, predicate: ["toolbarEl"], descendants: true, isSignal: true }, { propertyName: "textColorPicker", first: true, predicate: ["textColorPicker"], descendants: true, isSignal: true }, { propertyName: "highlightColorPicker", first: true, predicate: ["highlightColorPicker"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n multiline\n [label]=\"label()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [hasFooter]=\"showCount()\"\n>\n <div class=\"ui-editor\" [class._small]=\"size() === 'small'\" [style.--_rows]=\"minRows()\">\n @if (toolbarPosition() === 'top') {\n <ng-container [ngTemplateOutlet]=\"toolbarTpl\" />\n }\n\n <div class=\"ui-editor-area\">\n <div\n #contentEl\n class=\"ui-editor-content\"\n [class._small]=\"size() === 'small'\"\n [id]=\"resolvedId()\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"isEditable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() || label() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"describedByIds()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (beforeinput)=\"onBeforeInput($any($event))\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onContentKeydown($event)\"\n (keyup)=\"refreshState()\"\n (mouseup)=\"refreshState()\"\n (focus)=\"editorFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n ></div>\n\n @if (showPlaceholder()) {\n <span class=\"ui-editor-placeholder\" aria-hidden=\"true\">{{ placeholder() }}</span>\n }\n </div>\n\n @if (toolbarPosition() === 'bottom') {\n <ng-container [ngTemplateOutlet]=\"toolbarTpl\" />\n }\n </div>\n\n @if (showCount()) {\n <span\n uiFieldFooter\n class=\"ui-editor-count\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n [class._over]=\"overLimit()\"\n [attr.id]=\"countId()\"\n >\n {{ charCount() }}\n @if (maxlength(); as max) {\n &nbsp;/&nbsp;{{ max }}\n }\n </span>\n }\n</ui-field>\n\n<ng-template #toolbarTpl>\n @if (hasToolbar()) {\n <!-- ARIA toolbar pattern: keyboard delegated to the role=\"toolbar\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #toolbarEl\n class=\"ui-editor-toolbar\"\n [class._bottom]=\"toolbarPosition() === 'bottom'\"\n role=\"toolbar\"\n aria-label=\"Mise en forme\"\n aria-orientation=\"horizontal\"\n (mousedown)=\"onToolbarMousedown($event)\"\n (keydown)=\"onToolbarKeydown($event)\"\n >\n @for (entry of toolbar(); track entry.index) {\n @if (entry.isSeparator) {\n <span class=\"ui-editor-toolbar-separator\" aria-hidden=\"true\"></span>\n } @else if (entry.select; as select) {\n <!-- The dropdown takes the focus, so the command restores the caret\n before it runs (see onSelectValueChange). -->\n <ui-select\n class=\"ui-editor-tool ui-editor-select\"\n size=\"small\"\n [options]=\"selectOptions(select)\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [ngModel]=\"selectValue(select)\"\n [ariaLabel]=\"selectLabel(select)\"\n [disabled]=\"!isEditable()\"\n [tabindex]=\"entry.index === tabStop() ? 0 : -1\"\n (valueChange)=\"onSelectValueChange(select, $event, entry.index)\"\n />\n } @else {\n <ui-button\n class=\"ui-editor-tool\"\n [class._colorTool]=\"\n entry.buttonTool === 'textColor' || entry.buttonTool === 'highlightColor'\n \"\n variant=\"ghost\"\n level=\"low\"\n size=\"small\"\n iconOnly\n [icon]=\"entry.meta!.icon\"\n [ariaLabel]=\"entry.meta!.label\"\n [disabled]=\"!isEditable()\"\n [tabindex]=\"entry.index === tabStop() ? 0 : -1\"\n [buttonProps]=\"toolProps(entry.buttonTool!)\"\n [style.--ui-editor-swatch-indicator-color]=\"colorIndicatorVar(entry.buttonTool)\"\n (buttonClick)=\"runTool(entry.buttonTool!, entry.index, $event)\"\n />\n }\n }\n\n <!-- `textColor`/`highlightColor` popups: no trigger of their own (same\n composition contract as `ui-menu`), opened via `runTool` ->\n `onColorToolClick` -> `toggle(event)`. -->\n <ui-swatch-picker\n #textColorPicker\n popup\n size=\"small\"\n [allowClear]=\"true\"\n [value]=\"currentTextColor()\"\n ariaLabel=\"Couleur du texte\"\n (swatchSelect)=\"onTextColorSelect($event)\"\n (opened)=\"textColorPickerOpen.set(true)\"\n (closed)=\"textColorPickerOpen.set(false)\"\n />\n <ui-swatch-picker\n #highlightColorPicker\n popup\n size=\"small\"\n [allowClear]=\"true\"\n [value]=\"currentHighlightColor()\"\n ariaLabel=\"Couleur de surlignage\"\n (swatchSelect)=\"onHighlightColorSelect($event)\"\n (opened)=\"highlightColorPickerOpen.set(true)\"\n (closed)=\"highlightColorPickerOpen.set(false)\"\n />\n </div>\n }\n</ng-template>\n", styles: [".ui-editor{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;border-radius:var(--ui-editor-radius, inherit);overflow:hidden}.ui-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-editor-toolbar-gap, var(--units-2xs));flex-shrink:0;padding:var(--ui-editor-toolbar-padding-y, var(--units-2xs)) var(--ui-editor-toolbar-padding-x, var(--units-xs));background-color:var(--ui-editor-toolbar-surface, var(--global-background-muted));border-block-end:var(--ui-editor-toolbar-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-editor-toolbar-stroke, var(--form-low-stroke-default))}.ui-editor-toolbar._bottom{border-block-end:none;border-block-start:var(--ui-editor-toolbar-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-editor-toolbar-stroke, var(--form-low-stroke-default))}.ui-editor-toolbar-separator{flex-shrink:0;inline-size:var(--ui-editor-separator-width, var(--stroke-sm));block-size:var(--ui-editor-separator-height, var(--size-typography-text-default));background-color:var(--ui-editor-separator-color, var(--form-low-stroke-default))}.ui-editor-select{display:inline-flex;flex-shrink:0;min-inline-size:var(--ui-editor-select-width, 13ch);--ui-field-stroke-width: 0}.ui-editor-select ::ng-deep .ui-select{inline-size:100%}.ui-editor-select ::ng-deep .ui-field-box{background:transparent;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-editor-select ::ng-deep .ui-field-box:hover{background-color:var(--ui-editor-toolbar-select-surface-hover, var(--form-low-surface-hover))}.ui-editor-tool._colorTool{position:relative}.ui-editor-tool._colorTool:after{content:\"\";position:absolute;inset-inline:var(--ui-editor-swatch-indicator-offset-x, var(--units-2xs));inset-block-end:0;block-size:var(--ui-editor-swatch-indicator-height, var(--stroke-lg));border-radius:var(--ui-editor-swatch-indicator-height, var(--stroke-lg));background-color:var(--ui-editor-swatch-indicator-color, transparent)}.ui-editor-area{position:relative;display:flex;flex:1 1 auto;min-height:0}.ui-editor-content{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-editor-content::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-editor-content:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-editor-content{box-sizing:border-box;width:100%;min-height:var(--ui-editor-min-height, calc(var(--_rows, 4) * var(--ui-editor-line-height, 1.5) * 1em));max-height:var(--ui-editor-max-height, none);padding:var(--ui-editor-padding-y, var(--ui-form-textarea-padding-y, var(--units-default))) var(--ui-editor-padding-x, var(--ui-form-field-padding-x, var(--units-md)));overflow-y:auto;line-height:var(--ui-editor-line-height, 1.5);font-size:var(--ui-editor-font-size, var(--size-typography-text-default));overflow-wrap:break-word}.ui-editor-content._small{padding-block:var(--ui-editor-padding-y-small, var(--ui-form-textarea-padding-y-small, var(--units-md)));font-size:var(--ui-editor-font-size-small, var(--size-typography-text-md))}.ui-editor-content:focus,.ui-editor-content:focus-visible{outline:none}.ui-editor-content[contenteditable=false]{cursor:default}.ui-editor-placeholder{position:absolute;inset-block-start:var(--ui-editor-padding-y, var(--ui-form-textarea-padding-y, var(--units-default)));inset-inline-start:var(--ui-editor-padding-x, var(--ui-form-field-padding-x, var(--units-md)));line-height:var(--ui-editor-line-height, 1.5);font-family:var(--ui-editor-placeholder-font-family, var(--fontfamily-base));font-size:var(--ui-editor-font-size, var(--size-typography-text-default));color:var(--ui-editor-placeholder-color, var(--form-low-content-default));pointer-events:none;-webkit-user-select:none;user-select:none}.ui-editor._small .ui-editor-placeholder{inset-block-start:var(--ui-editor-padding-y-small, var(--ui-form-textarea-padding-y-small, var(--units-md)));font-size:var(--ui-editor-font-size-small, var(--size-typography-text-md))}.ui-editor-content ::ng-deep p{margin-block:0 var(--ui-editor-block-gap, var(--units-sm))}.ui-editor-content ::ng-deep p:last-child{margin-block-end:0}.ui-editor-content ::ng-deep ul,.ui-editor-content ::ng-deep ol{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));padding-inline-start:var(--ui-editor-list-padding-inline-start, var(--units-xl))}.ui-editor-content ::ng-deep ul:last-child,.ui-editor-content ::ng-deep ol:last-child{margin-block-end:0}.ui-editor-content ::ng-deep li+li{margin-block-start:var(--ui-editor-list-item-gap, var(--units-2xs))}.ui-editor-content ::ng-deep b,.ui-editor-content ::ng-deep strong{font-weight:var(--ui-editor-bold-weight, var(--weight-bold))}.ui-editor-content ::ng-deep a{color:var(--ui-editor-link-color, var(--global-text-brand));text-decoration:var(--ui-editor-link-text-decoration, underline)}.ui-editor-content ::ng-deep pre{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));padding:var(--ui-editor-code-padding-y, var(--units-sm)) var(--ui-editor-code-padding-x, var(--units-md));border-radius:var(--ui-editor-code-radius, var(--radius-xs));background-color:var(--ui-editor-code-surface, var(--global-background-muted));color:var(--ui-editor-code-color, var(--global-text-default));font-family:var(--ui-editor-code-font-family, var(--fontfamily-monospace));font-size:var(--ui-editor-code-font-size, var(--size-typography-text-md));white-space:pre-wrap;overflow-wrap:break-word}.ui-editor-content ::ng-deep pre:last-child{margin-block-end:0}.ui-editor-content ::ng-deep code{font-family:var(--ui-editor-code-font-family, var(--fontfamily-monospace))}.ui-editor-content ::ng-deep h1,.ui-editor-content ::ng-deep h2,.ui-editor-content ::ng-deep h3{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));font-family:var(--ui-editor-heading-font-family, var(--fontfamily-title));font-weight:var(--ui-editor-heading-weight, var(--weight-bold));line-height:var(--ui-editor-heading-line-height, 1.25)}.ui-editor-content ::ng-deep h1:last-child,.ui-editor-content ::ng-deep h2:last-child,.ui-editor-content ::ng-deep h3:last-child{margin-block-end:0}.ui-editor-content ::ng-deep h1{font-size:var(--ui-editor-heading-1-font-size, var(--size-typography-title-lg))}.ui-editor-content ::ng-deep h2{font-size:var(--ui-editor-heading-2-font-size, var(--size-typography-title-md))}.ui-editor-content ::ng-deep h3{font-size:var(--ui-editor-heading-3-font-size, var(--size-typography-title-sm))}.ui-editor-content ::ng-deep .ui-editor-font-base{font-family:var(--fontfamily-base)}.ui-editor-content ::ng-deep .ui-editor-font-title{font-family:var(--fontfamily-title)}.ui-editor-content ::ng-deep .ui-editor-font-monospace{font-family:var(--fontfamily-monospace)}.ui-editor-content ::ng-deep .ui-editor-size-sm{font-size:var(--ui-editor-size-sm-font-size, var(--size-typography-text-sm))}.ui-editor-content ::ng-deep .ui-editor-size-default{font-size:var(--ui-editor-size-default-font-size, var(--size-typography-text-default))}.ui-editor-content ::ng-deep .ui-editor-size-lg{font-size:var(--ui-editor-size-lg-font-size, var(--size-typography-text-lg))}.ui-editor-content ::ng-deep .ui-editor-size-xl{font-size:var(--ui-editor-size-xl-font-size, var(--size-typography-text-xl))}.ui-editor-content ::ng-deep .ui-editor-color-primary-900{color:var(--primitives-primary-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-900{background-color:var(--primitives-primary-900)}.ui-editor-content ::ng-deep .ui-editor-color-primary-700{color:var(--primitives-primary-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-700{background-color:var(--primitives-primary-700)}.ui-editor-content ::ng-deep .ui-editor-color-primary-500{color:var(--primitives-primary-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-500{background-color:var(--primitives-primary-500)}.ui-editor-content ::ng-deep .ui-editor-color-primary-300{color:var(--primitives-primary-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-300{background-color:var(--primitives-primary-300)}.ui-editor-content ::ng-deep .ui-editor-color-primary-100{color:var(--primitives-primary-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-100{background-color:var(--primitives-primary-100)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-900{color:var(--primitives-secondary-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-900{background-color:var(--primitives-secondary-900)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-700{color:var(--primitives-secondary-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-700{background-color:var(--primitives-secondary-700)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-500{color:var(--primitives-secondary-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-500{background-color:var(--primitives-secondary-500)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-300{color:var(--primitives-secondary-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-300{background-color:var(--primitives-secondary-300)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-100{color:var(--primitives-secondary-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-100{background-color:var(--primitives-secondary-100)}.ui-editor-content ::ng-deep .ui-editor-color-green-900{color:var(--primitives-green-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-900{background-color:var(--primitives-green-900)}.ui-editor-content ::ng-deep .ui-editor-color-green-700{color:var(--primitives-green-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-700{background-color:var(--primitives-green-700)}.ui-editor-content ::ng-deep .ui-editor-color-green-500{color:var(--primitives-green-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-500{background-color:var(--primitives-green-500)}.ui-editor-content ::ng-deep .ui-editor-color-green-300{color:var(--primitives-green-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-300{background-color:var(--primitives-green-300)}.ui-editor-content ::ng-deep .ui-editor-color-green-100{color:var(--primitives-green-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-100{background-color:var(--primitives-green-100)}.ui-editor-content ::ng-deep .ui-editor-color-orange-900{color:var(--primitives-orange-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-900{background-color:var(--primitives-orange-900)}.ui-editor-content ::ng-deep .ui-editor-color-orange-700{color:var(--primitives-orange-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-700{background-color:var(--primitives-orange-700)}.ui-editor-content ::ng-deep .ui-editor-color-orange-500{color:var(--primitives-orange-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-500{background-color:var(--primitives-orange-500)}.ui-editor-content ::ng-deep .ui-editor-color-orange-300{color:var(--primitives-orange-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-300{background-color:var(--primitives-orange-300)}.ui-editor-content ::ng-deep .ui-editor-color-orange-100{color:var(--primitives-orange-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-100{background-color:var(--primitives-orange-100)}.ui-editor-content ::ng-deep .ui-editor-color-red-900{color:var(--primitives-red-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-900{background-color:var(--primitives-red-900)}.ui-editor-content ::ng-deep .ui-editor-color-red-700{color:var(--primitives-red-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-700{background-color:var(--primitives-red-700)}.ui-editor-content ::ng-deep .ui-editor-color-red-500{color:var(--primitives-red-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-500{background-color:var(--primitives-red-500)}.ui-editor-content ::ng-deep .ui-editor-color-red-300{color:var(--primitives-red-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-300{background-color:var(--primitives-red-300)}.ui-editor-content ::ng-deep .ui-editor-color-red-100{color:var(--primitives-red-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-100{background-color:var(--primitives-red-100)}.ui-editor-content ::ng-deep .ui-editor-color-slate-900{color:var(--primitives-slate-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-900{background-color:var(--primitives-slate-900)}.ui-editor-content ::ng-deep .ui-editor-color-slate-700{color:var(--primitives-slate-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-700{background-color:var(--primitives-slate-700)}.ui-editor-content ::ng-deep .ui-editor-color-slate-500{color:var(--primitives-slate-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-500{background-color:var(--primitives-slate-500)}.ui-editor-content ::ng-deep .ui-editor-color-slate-300{color:var(--primitives-slate-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-300{background-color:var(--primitives-slate-300)}.ui-editor-content ::ng-deep .ui-editor-color-slate-100{color:var(--primitives-slate-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-100{background-color:var(--primitives-slate-100)}.ui-editor-content ::ng-deep .ui-editor-color-grey-900{color:var(--primitives-grey-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-900{background-color:var(--primitives-grey-900)}.ui-editor-content ::ng-deep .ui-editor-color-grey-700{color:var(--primitives-grey-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-700{background-color:var(--primitives-grey-700)}.ui-editor-content ::ng-deep .ui-editor-color-grey-500{color:var(--primitives-grey-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-500{background-color:var(--primitives-grey-500)}.ui-editor-content ::ng-deep .ui-editor-color-grey-300{color:var(--primitives-grey-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-300{background-color:var(--primitives-grey-300)}.ui-editor-content ::ng-deep .ui-editor-color-grey-100{color:var(--primitives-grey-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-100{background-color:var(--primitives-grey-100)}.ui-editor-content ::ng-deep .ui-editor-color-black{color:var(--primitives-black-base)}.ui-editor-content ::ng-deep .ui-editor-color-white{color:var(--primitives-white-base)}.ui-editor-content ::ng-deep .ui-editor-highlight-black{background-color:var(--primitives-black-base)}.ui-editor-content ::ng-deep .ui-editor-highlight-white{background-color:var(--primitives-white-base)}.ui-editor-count{margin-left:auto;flex-shrink:0;font-family:var(--ui-editor-count-font-family, var(--fontfamily-base));font-size:var(--ui-editor-count-font-size, var(--size-typography-text-md));color:var(--ui-editor-count-color, var(--form-low-content-default));-webkit-user-select:none;user-select:none}.ui-editor-count._small{font-size:var(--ui-editor-count-font-size-small, var(--size-typography-text-sm))}.ui-editor-count._over{color:var(--ui-editor-count-color-over, var(--form-error-content-default))}.ui-editor-count._disabled{color:var(--ui-editor-count-color-disabled, var(--form-high-content-disabled))}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "floatLabel", "filled", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "showMessageIcon", "messageIcon", "hasFooter", "hasPrefix"] }, { kind: "component", type: UiButton, selector: "ui-button", inputs: ["label", "ariaLabel", "type", "level", "variant", "onColor", "size", "icon", "iconPos", "iconOnly", "loading", "loadingIcon", "expanded", "rounded", "disabled", "ripple", "tabindex", "buttonProps", "iconTemplate", "loadingIconTemplate", "href", "routerLink", "target", "rel"], outputs: ["buttonClick", "buttonFocus", "buttonBlur"] }, { kind: "component", type: UiSwatchPicker, selector: "ui-swatch-picker", inputs: ["palette", "value", "popup", "size", "allowClear", "ariaLabel"], outputs: ["valueChange", "swatchSelect", "opened", "closed"] }, { kind: "component", type: UiSelect, selector: "ui-select", inputs: ["options", "optionLabel", "optionValue", "optionDisabled", "group", "optionGroupLabel", "optionGroupChildren", "dataKey", "multiple", "checkmark", "checkbox", "maxSelectedLabels", "overflowLabel", "placeholder", "showClear", "clearAriaLabel", "icon", "filter", "filterPlaceholder", "filterAriaLabel", "filterBy", "autofocusFilter", "resetFilterOnHide", "ripple", "emptyMessage", "emptyFilterMessage", "editable", "loading", "autoOptionFocus", "selectOnFocus", "focusOnHover", "virtualScroll", "virtualScrollItemSize", "lazy", "scrollHeight", "autoFlip", "panelStyleClass", "panelWidth"], outputs: ["valueChange", "opened", "closed", "cleared", "filterChange", "lazyLoad", "inputFocus", "inputBlur"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
1092
1195
  }
1093
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiEditor, decorators: [{
1196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiEditor, decorators: [{
1094
1197
  type: Component,
1095
1198
  args: [{ selector: 'ui-editor', imports: [UiField, UiButton, UiSwatchPicker, UiSelect, NgTemplateOutlet, FormsModule], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiEditor), multi: true }], template: "<ui-field\n multiline\n [label]=\"label()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [filled]=\"isFilled()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [hasFooter]=\"showCount()\"\n>\n <div class=\"ui-editor\" [class._small]=\"size() === 'small'\" [style.--_rows]=\"minRows()\">\n @if (toolbarPosition() === 'top') {\n <ng-container [ngTemplateOutlet]=\"toolbarTpl\" />\n }\n\n <div class=\"ui-editor-area\">\n <div\n #contentEl\n class=\"ui-editor-content\"\n [class._small]=\"size() === 'small'\"\n [id]=\"resolvedId()\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"isEditable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? -1 : (tabindex() ?? 0)\"\n [attr.aria-label]=\"ariaLabel() || label() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"describedByIds()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (beforeinput)=\"onBeforeInput($any($event))\"\n (paste)=\"onPaste($event)\"\n (keydown)=\"onContentKeydown($event)\"\n (keyup)=\"refreshState()\"\n (mouseup)=\"refreshState()\"\n (focus)=\"editorFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n ></div>\n\n @if (showPlaceholder()) {\n <span class=\"ui-editor-placeholder\" aria-hidden=\"true\">{{ placeholder() }}</span>\n }\n </div>\n\n @if (toolbarPosition() === 'bottom') {\n <ng-container [ngTemplateOutlet]=\"toolbarTpl\" />\n }\n </div>\n\n @if (showCount()) {\n <span\n uiFieldFooter\n class=\"ui-editor-count\"\n [class._small]=\"size() === 'small'\"\n [class._disabled]=\"isDisabled()\"\n [class._over]=\"overLimit()\"\n [attr.id]=\"countId()\"\n >\n {{ charCount() }}\n @if (maxlength(); as max) {\n &nbsp;/&nbsp;{{ max }}\n }\n </span>\n }\n</ui-field>\n\n<ng-template #toolbarTpl>\n @if (hasToolbar()) {\n <!-- ARIA toolbar pattern: keyboard delegated to the role=\"toolbar\" container,\n focus lives on the items (roving tabindex), same as ui-menu. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #toolbarEl\n class=\"ui-editor-toolbar\"\n [class._bottom]=\"toolbarPosition() === 'bottom'\"\n role=\"toolbar\"\n aria-label=\"Mise en forme\"\n aria-orientation=\"horizontal\"\n (mousedown)=\"onToolbarMousedown($event)\"\n (keydown)=\"onToolbarKeydown($event)\"\n >\n @for (entry of toolbar(); track entry.index) {\n @if (entry.isSeparator) {\n <span class=\"ui-editor-toolbar-separator\" aria-hidden=\"true\"></span>\n } @else if (entry.select; as select) {\n <!-- The dropdown takes the focus, so the command restores the caret\n before it runs (see onSelectValueChange). -->\n <ui-select\n class=\"ui-editor-tool ui-editor-select\"\n size=\"small\"\n [options]=\"selectOptions(select)\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [ngModel]=\"selectValue(select)\"\n [ariaLabel]=\"selectLabel(select)\"\n [disabled]=\"!isEditable()\"\n [tabindex]=\"entry.index === tabStop() ? 0 : -1\"\n (valueChange)=\"onSelectValueChange(select, $event, entry.index)\"\n />\n } @else {\n <ui-button\n class=\"ui-editor-tool\"\n [class._colorTool]=\"\n entry.buttonTool === 'textColor' || entry.buttonTool === 'highlightColor'\n \"\n variant=\"ghost\"\n level=\"low\"\n size=\"small\"\n iconOnly\n [icon]=\"entry.meta!.icon\"\n [ariaLabel]=\"entry.meta!.label\"\n [disabled]=\"!isEditable()\"\n [tabindex]=\"entry.index === tabStop() ? 0 : -1\"\n [buttonProps]=\"toolProps(entry.buttonTool!)\"\n [style.--ui-editor-swatch-indicator-color]=\"colorIndicatorVar(entry.buttonTool)\"\n (buttonClick)=\"runTool(entry.buttonTool!, entry.index, $event)\"\n />\n }\n }\n\n <!-- `textColor`/`highlightColor` popups: no trigger of their own (same\n composition contract as `ui-menu`), opened via `runTool` ->\n `onColorToolClick` -> `toggle(event)`. -->\n <ui-swatch-picker\n #textColorPicker\n popup\n size=\"small\"\n [allowClear]=\"true\"\n [value]=\"currentTextColor()\"\n ariaLabel=\"Couleur du texte\"\n (swatchSelect)=\"onTextColorSelect($event)\"\n (opened)=\"textColorPickerOpen.set(true)\"\n (closed)=\"textColorPickerOpen.set(false)\"\n />\n <ui-swatch-picker\n #highlightColorPicker\n popup\n size=\"small\"\n [allowClear]=\"true\"\n [value]=\"currentHighlightColor()\"\n ariaLabel=\"Couleur de surlignage\"\n (swatchSelect)=\"onHighlightColorSelect($event)\"\n (opened)=\"highlightColorPickerOpen.set(true)\"\n (closed)=\"highlightColorPickerOpen.set(false)\"\n />\n </div>\n }\n</ng-template>\n", styles: [".ui-editor{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;border-radius:var(--ui-editor-radius, inherit);overflow:hidden}.ui-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-editor-toolbar-gap, var(--units-2xs));flex-shrink:0;padding:var(--ui-editor-toolbar-padding-y, var(--units-2xs)) var(--ui-editor-toolbar-padding-x, var(--units-xs));background-color:var(--ui-editor-toolbar-surface, var(--global-background-muted));border-block-end:var(--ui-editor-toolbar-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-editor-toolbar-stroke, var(--form-low-stroke-default))}.ui-editor-toolbar._bottom{border-block-end:none;border-block-start:var(--ui-editor-toolbar-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--ui-editor-toolbar-stroke, var(--form-low-stroke-default))}.ui-editor-toolbar-separator{flex-shrink:0;inline-size:var(--ui-editor-separator-width, var(--stroke-sm));block-size:var(--ui-editor-separator-height, var(--size-typography-text-default));background-color:var(--ui-editor-separator-color, var(--form-low-stroke-default))}.ui-editor-select{display:inline-flex;flex-shrink:0;min-inline-size:var(--ui-editor-select-width, 13ch);--ui-field-stroke-width: 0}.ui-editor-select ::ng-deep .ui-select{inline-size:100%}.ui-editor-select ::ng-deep .ui-field-box{background:transparent;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-editor-select ::ng-deep .ui-field-box:hover{background-color:var(--ui-editor-toolbar-select-surface-hover, var(--form-low-surface-hover))}.ui-editor-tool._colorTool{position:relative}.ui-editor-tool._colorTool:after{content:\"\";position:absolute;inset-inline:var(--ui-editor-swatch-indicator-offset-x, var(--units-2xs));inset-block-end:0;block-size:var(--ui-editor-swatch-indicator-height, var(--stroke-lg));border-radius:var(--ui-editor-swatch-indicator-height, var(--stroke-lg));background-color:var(--ui-editor-swatch-indicator-color, transparent)}.ui-editor-area{position:relative;display:flex;flex:1 1 auto;min-height:0}.ui-editor-content{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--ui-form-field-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);color:var(--ui-form-field-color, var(--form-high-content-default))}.ui-editor-content::placeholder{color:var(--ui-form-field-placeholder-color, var(--form-low-content-default));opacity:1}.ui-editor-content:disabled{cursor:not-allowed;color:var(--ui-form-field-color-disabled, var(--form-high-content-disabled))}.ui-editor-content{box-sizing:border-box;width:100%;min-height:var(--ui-editor-min-height, calc(var(--_rows, 4) * var(--ui-editor-line-height, 1.5) * 1em));max-height:var(--ui-editor-max-height, none);padding:var(--ui-editor-padding-y, var(--ui-form-textarea-padding-y, var(--units-default))) var(--ui-editor-padding-x, var(--ui-form-field-padding-x, var(--units-md)));overflow-y:auto;line-height:var(--ui-editor-line-height, 1.5);font-size:var(--ui-editor-font-size, var(--size-typography-text-default));overflow-wrap:break-word}.ui-editor-content._small{padding-block:var(--ui-editor-padding-y-small, var(--ui-form-textarea-padding-y-small, var(--units-md)));font-size:var(--ui-editor-font-size-small, var(--size-typography-text-md))}.ui-editor-content:focus,.ui-editor-content:focus-visible{outline:none}.ui-editor-content[contenteditable=false]{cursor:default}.ui-editor-placeholder{position:absolute;inset-block-start:var(--ui-editor-padding-y, var(--ui-form-textarea-padding-y, var(--units-default)));inset-inline-start:var(--ui-editor-padding-x, var(--ui-form-field-padding-x, var(--units-md)));line-height:var(--ui-editor-line-height, 1.5);font-family:var(--ui-editor-placeholder-font-family, var(--fontfamily-base));font-size:var(--ui-editor-font-size, var(--size-typography-text-default));color:var(--ui-editor-placeholder-color, var(--form-low-content-default));pointer-events:none;-webkit-user-select:none;user-select:none}.ui-editor._small .ui-editor-placeholder{inset-block-start:var(--ui-editor-padding-y-small, var(--ui-form-textarea-padding-y-small, var(--units-md)));font-size:var(--ui-editor-font-size-small, var(--size-typography-text-md))}.ui-editor-content ::ng-deep p{margin-block:0 var(--ui-editor-block-gap, var(--units-sm))}.ui-editor-content ::ng-deep p:last-child{margin-block-end:0}.ui-editor-content ::ng-deep ul,.ui-editor-content ::ng-deep ol{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));padding-inline-start:var(--ui-editor-list-padding-inline-start, var(--units-xl))}.ui-editor-content ::ng-deep ul:last-child,.ui-editor-content ::ng-deep ol:last-child{margin-block-end:0}.ui-editor-content ::ng-deep li+li{margin-block-start:var(--ui-editor-list-item-gap, var(--units-2xs))}.ui-editor-content ::ng-deep b,.ui-editor-content ::ng-deep strong{font-weight:var(--ui-editor-bold-weight, var(--weight-bold))}.ui-editor-content ::ng-deep a{color:var(--ui-editor-link-color, var(--global-text-brand));text-decoration:var(--ui-editor-link-text-decoration, underline)}.ui-editor-content ::ng-deep pre{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));padding:var(--ui-editor-code-padding-y, var(--units-sm)) var(--ui-editor-code-padding-x, var(--units-md));border-radius:var(--ui-editor-code-radius, var(--radius-xs));background-color:var(--ui-editor-code-surface, var(--global-background-muted));color:var(--ui-editor-code-color, var(--global-text-default));font-family:var(--ui-editor-code-font-family, var(--fontfamily-monospace));font-size:var(--ui-editor-code-font-size, var(--size-typography-text-md));white-space:pre-wrap;overflow-wrap:break-word}.ui-editor-content ::ng-deep pre:last-child{margin-block-end:0}.ui-editor-content ::ng-deep code{font-family:var(--ui-editor-code-font-family, var(--fontfamily-monospace))}.ui-editor-content ::ng-deep h1,.ui-editor-content ::ng-deep h2,.ui-editor-content ::ng-deep h3{margin-block:0 var(--ui-editor-block-gap, var(--units-sm));font-family:var(--ui-editor-heading-font-family, var(--fontfamily-title));font-weight:var(--ui-editor-heading-weight, var(--weight-bold));line-height:var(--ui-editor-heading-line-height, 1.25)}.ui-editor-content ::ng-deep h1:last-child,.ui-editor-content ::ng-deep h2:last-child,.ui-editor-content ::ng-deep h3:last-child{margin-block-end:0}.ui-editor-content ::ng-deep h1{font-size:var(--ui-editor-heading-1-font-size, var(--size-typography-title-lg))}.ui-editor-content ::ng-deep h2{font-size:var(--ui-editor-heading-2-font-size, var(--size-typography-title-md))}.ui-editor-content ::ng-deep h3{font-size:var(--ui-editor-heading-3-font-size, var(--size-typography-title-sm))}.ui-editor-content ::ng-deep .ui-editor-font-base{font-family:var(--fontfamily-base)}.ui-editor-content ::ng-deep .ui-editor-font-title{font-family:var(--fontfamily-title)}.ui-editor-content ::ng-deep .ui-editor-font-monospace{font-family:var(--fontfamily-monospace)}.ui-editor-content ::ng-deep .ui-editor-size-sm{font-size:var(--ui-editor-size-sm-font-size, var(--size-typography-text-sm))}.ui-editor-content ::ng-deep .ui-editor-size-default{font-size:var(--ui-editor-size-default-font-size, var(--size-typography-text-default))}.ui-editor-content ::ng-deep .ui-editor-size-lg{font-size:var(--ui-editor-size-lg-font-size, var(--size-typography-text-lg))}.ui-editor-content ::ng-deep .ui-editor-size-xl{font-size:var(--ui-editor-size-xl-font-size, var(--size-typography-text-xl))}.ui-editor-content ::ng-deep .ui-editor-color-primary-900{color:var(--primitives-primary-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-900{background-color:var(--primitives-primary-900)}.ui-editor-content ::ng-deep .ui-editor-color-primary-700{color:var(--primitives-primary-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-700{background-color:var(--primitives-primary-700)}.ui-editor-content ::ng-deep .ui-editor-color-primary-500{color:var(--primitives-primary-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-500{background-color:var(--primitives-primary-500)}.ui-editor-content ::ng-deep .ui-editor-color-primary-300{color:var(--primitives-primary-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-300{background-color:var(--primitives-primary-300)}.ui-editor-content ::ng-deep .ui-editor-color-primary-100{color:var(--primitives-primary-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-primary-100{background-color:var(--primitives-primary-100)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-900{color:var(--primitives-secondary-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-900{background-color:var(--primitives-secondary-900)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-700{color:var(--primitives-secondary-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-700{background-color:var(--primitives-secondary-700)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-500{color:var(--primitives-secondary-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-500{background-color:var(--primitives-secondary-500)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-300{color:var(--primitives-secondary-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-300{background-color:var(--primitives-secondary-300)}.ui-editor-content ::ng-deep .ui-editor-color-secondary-100{color:var(--primitives-secondary-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-secondary-100{background-color:var(--primitives-secondary-100)}.ui-editor-content ::ng-deep .ui-editor-color-green-900{color:var(--primitives-green-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-900{background-color:var(--primitives-green-900)}.ui-editor-content ::ng-deep .ui-editor-color-green-700{color:var(--primitives-green-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-700{background-color:var(--primitives-green-700)}.ui-editor-content ::ng-deep .ui-editor-color-green-500{color:var(--primitives-green-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-500{background-color:var(--primitives-green-500)}.ui-editor-content ::ng-deep .ui-editor-color-green-300{color:var(--primitives-green-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-300{background-color:var(--primitives-green-300)}.ui-editor-content ::ng-deep .ui-editor-color-green-100{color:var(--primitives-green-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-green-100{background-color:var(--primitives-green-100)}.ui-editor-content ::ng-deep .ui-editor-color-orange-900{color:var(--primitives-orange-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-900{background-color:var(--primitives-orange-900)}.ui-editor-content ::ng-deep .ui-editor-color-orange-700{color:var(--primitives-orange-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-700{background-color:var(--primitives-orange-700)}.ui-editor-content ::ng-deep .ui-editor-color-orange-500{color:var(--primitives-orange-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-500{background-color:var(--primitives-orange-500)}.ui-editor-content ::ng-deep .ui-editor-color-orange-300{color:var(--primitives-orange-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-300{background-color:var(--primitives-orange-300)}.ui-editor-content ::ng-deep .ui-editor-color-orange-100{color:var(--primitives-orange-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-orange-100{background-color:var(--primitives-orange-100)}.ui-editor-content ::ng-deep .ui-editor-color-red-900{color:var(--primitives-red-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-900{background-color:var(--primitives-red-900)}.ui-editor-content ::ng-deep .ui-editor-color-red-700{color:var(--primitives-red-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-700{background-color:var(--primitives-red-700)}.ui-editor-content ::ng-deep .ui-editor-color-red-500{color:var(--primitives-red-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-500{background-color:var(--primitives-red-500)}.ui-editor-content ::ng-deep .ui-editor-color-red-300{color:var(--primitives-red-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-300{background-color:var(--primitives-red-300)}.ui-editor-content ::ng-deep .ui-editor-color-red-100{color:var(--primitives-red-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-red-100{background-color:var(--primitives-red-100)}.ui-editor-content ::ng-deep .ui-editor-color-slate-900{color:var(--primitives-slate-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-900{background-color:var(--primitives-slate-900)}.ui-editor-content ::ng-deep .ui-editor-color-slate-700{color:var(--primitives-slate-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-700{background-color:var(--primitives-slate-700)}.ui-editor-content ::ng-deep .ui-editor-color-slate-500{color:var(--primitives-slate-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-500{background-color:var(--primitives-slate-500)}.ui-editor-content ::ng-deep .ui-editor-color-slate-300{color:var(--primitives-slate-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-300{background-color:var(--primitives-slate-300)}.ui-editor-content ::ng-deep .ui-editor-color-slate-100{color:var(--primitives-slate-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-slate-100{background-color:var(--primitives-slate-100)}.ui-editor-content ::ng-deep .ui-editor-color-grey-900{color:var(--primitives-grey-900)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-900{background-color:var(--primitives-grey-900)}.ui-editor-content ::ng-deep .ui-editor-color-grey-700{color:var(--primitives-grey-700)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-700{background-color:var(--primitives-grey-700)}.ui-editor-content ::ng-deep .ui-editor-color-grey-500{color:var(--primitives-grey-500)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-500{background-color:var(--primitives-grey-500)}.ui-editor-content ::ng-deep .ui-editor-color-grey-300{color:var(--primitives-grey-300)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-300{background-color:var(--primitives-grey-300)}.ui-editor-content ::ng-deep .ui-editor-color-grey-100{color:var(--primitives-grey-100)}.ui-editor-content ::ng-deep .ui-editor-highlight-grey-100{background-color:var(--primitives-grey-100)}.ui-editor-content ::ng-deep .ui-editor-color-black{color:var(--primitives-black-base)}.ui-editor-content ::ng-deep .ui-editor-color-white{color:var(--primitives-white-base)}.ui-editor-content ::ng-deep .ui-editor-highlight-black{background-color:var(--primitives-black-base)}.ui-editor-content ::ng-deep .ui-editor-highlight-white{background-color:var(--primitives-white-base)}.ui-editor-count{margin-left:auto;flex-shrink:0;font-family:var(--ui-editor-count-font-family, var(--fontfamily-base));font-size:var(--ui-editor-count-font-size, var(--size-typography-text-md));color:var(--ui-editor-count-color, var(--form-low-content-default));-webkit-user-select:none;user-select:none}.ui-editor-count._small{font-size:var(--ui-editor-count-font-size-small, var(--size-typography-text-sm))}.ui-editor-count._over{color:var(--ui-editor-count-color-over, var(--form-error-content-default))}.ui-editor-count._disabled{color:var(--ui-editor-count-color-disabled, var(--form-high-content-disabled))}\n"] }]
1096
1199
  }], ctorParameters: () => [], propDecorators: { tools: [{ type: i0.Input, args: [{ isSignal: true, alias: "tools", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", required: false }] }], toolbarPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "toolbarPosition", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], editorFocus: [{ type: i0.Output, args: ["editorFocus"] }], editorBlur: [{ type: i0.Output, args: ["editorBlur"] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], contentEl: [{ type: i0.ViewChild, args: ['contentEl', { isSignal: true }] }], toolbarEl: [{ type: i0.ViewChild, args: ['toolbarEl', { isSignal: true }] }], textColorPicker: [{ type: i0.ViewChild, args: ['textColorPicker', { isSignal: true }] }], highlightColorPicker: [{ type: i0.ViewChild, args: ['highlightColorPicker', { isSignal: true }] }] } });
@@ -1103,5 +1206,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
1103
1206
  * Generated bundle index. Do not edit.
1104
1207
  */
1105
1208
 
1106
- export { DEFAULT_EDITOR_TOOLS, EDITOR_COLORS, EDITOR_FONTS, EDITOR_HIGHLIGHTS, EDITOR_SELECT_TOOLS, EDITOR_SIZES, EDITOR_TOOL_META, UiEditor, applyCommand, applyFontFamily, applyFontSize, applyHighlightColor, applyLink, applyTextColor, clearFormatMarkers, clearMarkerClass, convertColorMarkers, convertFontMarkers, convertHighlightMarkers, convertSizeMarkers, emptyEditorState, htmlToText, insertHtml, insertText, isEmptyHtml, isInCodeBlock, normalizeHtml, readEditorState, readFontFamily, readFontSize, readHighlightColor, readTextColor, removeLink, resolveFontLabel, scrubInPlace, toggleCodeBlock };
1209
+ export { DEFAULT_EDITOR_TOOLS, EDITOR_COLORS, EDITOR_FONTS, EDITOR_HIGHLIGHTS, EDITOR_SELECT_TOOLS, EDITOR_SIZES, EDITOR_TOOL_META, UiEditor, applyCommand, applyFontFamily, applyFontSize, applyHighlightColor, applyLink, applyTextColor, clearFormatMarkers, clearMarkerClass, convertColorMarkers, convertFontMarkers, convertHighlightMarkers, convertSizeMarkers, emptyEditorState, htmlToText, insertHtml, insertText, isEmptyHtml, isInCodeBlock, normalizeHtml, readEditorState, readFontFamily, readFontSize, readHighlightColor, readTextColor, removeLink, resolveFontLabel, sanitizeEditorHtml, sanitizeStyle, scrubInPlace, toggleCodeBlock };
1107
1210
  //# sourceMappingURL=4sh-ui-kit-forms-ui-editor.mjs.map