@4sh/ui-kit 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
  2. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  3. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +2 -2
  4. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +2 -2
  6. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
  8. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
  10. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
  12. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2 -2
  14. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
  16. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
  18. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +4 -4
  20. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +2 -2
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +2 -2
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +2 -2
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
  32. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +2 -2
  34. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
  36. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
  38. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
  40. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
  42. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
  44. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
  46. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +2 -2
  48. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +2 -2
  50. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +2 -2
  52. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
  54. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
  56. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
  58. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
  60. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
  62. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +2 -2
  64. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
  66. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +2 -2
  68. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
  70. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
  72. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +4 -4
  74. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
  76. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
  78. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
  80. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +4 -4
  82. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -6
  84. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +2 -2
  86. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
  88. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  89. package/mcp/data/text-search-docs.json +16 -6
  90. package/mcp/data/ui-config.json +317 -23
  91. package/mcp/package.json +1 -1
  92. package/package.json +1 -1
  93. package/styles/base/_motion.scss +16 -16
  94. package/styles/component-vars.scss +2 -5
  95. package/styles/generated/_tokens-motion.scss +54 -0
  96. package/styles/generated/_tokens-transitions.scss +4 -4
  97. package/styles/generated/_tokens.scss +1 -0
  98. package/styles/settings/_ui-config.scss +23 -6
  99. package/styles/utils/_mixins.scss +28 -5
  100. package/styles/utils/_motion.scss +3 -3
  101. package/styles.css +1 -1
@@ -1191,11 +1191,11 @@ class UiEditor extends BaseFormField {
1191
1191
  return { 'aria-pressed': state[tool] ? 'true' : 'false' };
1192
1192
  }
1193
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", "showIcon", "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"] }] }); }
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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-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", "showIcon", "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"] }] }); }
1195
1195
  }
1196
1196
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiEditor, decorators: [{
1197
1197
  type: Component,
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"] }]
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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-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"] }]
1199
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 }] }] } });
1200
1200
 
1201
1201
  /*