@vonage/vivid 5.27.0 → 5.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/bundled/calendar-picker.template.cjs +1 -1
  2. package/bundled/calendar-picker.template.js +3 -3
  3. package/bundled/decorate.js +1 -1
  4. package/bundled/definition10.cjs +5 -1
  5. package/bundled/definition10.js +5 -1
  6. package/bundled/definition2.cjs +1 -1
  7. package/bundled/definition2.js +1 -1
  8. package/bundled/definition23.cjs +8 -4
  9. package/bundled/definition23.js +8 -4
  10. package/bundled/definition4.cjs +1 -1
  11. package/bundled/definition4.js +1 -1
  12. package/bundled/definition5.cjs +1 -1
  13. package/bundled/definition5.js +2 -1
  14. package/bundled/definition8.cjs +9 -7
  15. package/bundled/definition8.js +11 -9
  16. package/bundled/definition9.cjs +3 -3
  17. package/bundled/definition9.js +4 -4
  18. package/bundled/feedback-message.cjs +1 -1
  19. package/bundled/feedback-message.js +1 -1
  20. package/bundled/localized.cjs +1 -1
  21. package/bundled/localized.js +12 -0
  22. package/bundled/render-in-light-dom.js +3 -3
  23. package/bundled/text-field.cjs +1 -1
  24. package/bundled/text-field.js +1 -1
  25. package/bundled/vivid-element.cjs +1 -1
  26. package/bundled/vivid-element.js +1 -1
  27. package/custom-elements.json +198 -144
  28. package/data-grid/index.cjs +1 -1
  29. package/data-grid/index.js +1 -1
  30. package/lib/badge/badge.d.ts +1 -0
  31. package/lib/badge/badge.template.d.ts +2 -1
  32. package/lib/icon/icon.d.ts +1 -1
  33. package/lib/popover/popover.d.ts +2 -1
  34. package/lib/progress-ring/progress-ring.d.ts +1 -1
  35. package/lib/rich-text-editor/rich-text-editor.d.ts +427 -0
  36. package/lib/rich-text-editor/rte/__tests__/async-generator.d.ts +1 -0
  37. package/lib/rich-text-editor/rte/features/atom.d.ts +6 -2
  38. package/lib/rich-text-editor/rte/instance.d.ts +2 -1
  39. package/lib/table/locale.d.ts +10 -0
  40. package/lib/table/table-sorting-button.d.ts +425 -0
  41. package/locales/de-DE.cjs +12 -0
  42. package/locales/de-DE.js +12 -0
  43. package/locales/en-GB.cjs +12 -0
  44. package/locales/en-GB.js +12 -0
  45. package/locales/ja-JP.cjs +12 -0
  46. package/locales/ja-JP.js +12 -0
  47. package/locales/zh-CN.cjs +12 -0
  48. package/locales/zh-CN.js +12 -0
  49. package/number-field/index.cjs +1 -1
  50. package/number-field/index.js +1 -1
  51. package/package.json +16 -16
  52. package/popover/index.cjs +2 -2
  53. package/popover/index.js +70 -37
  54. package/rich-text-editor/index.cjs +23 -17
  55. package/rich-text-editor/index.js +1655 -1590
  56. package/shared/localization/Locale.d.ts +2 -0
  57. package/table/index.cjs +17 -17
  58. package/table/index.js +50 -40
  59. package/unbundled/decorate.cjs +1 -1
  60. package/unbundled/decorate.js +1 -1
  61. package/unbundled/definition.cjs +1 -1
  62. package/unbundled/definition.js +1 -1
  63. package/unbundled/definition14.cjs +1 -1
  64. package/unbundled/definition14.js +1 -1
  65. package/unbundled/definition15.cjs +8 -3
  66. package/unbundled/definition15.js +8 -3
  67. package/unbundled/definition2.cjs +1 -1
  68. package/unbundled/definition2.js +1 -1
  69. package/unbundled/definition24.cjs +4 -4
  70. package/unbundled/definition24.js +4 -4
  71. package/unbundled/definition25.cjs +5 -1
  72. package/unbundled/definition25.js +5 -1
  73. package/unbundled/definition27.cjs +8 -5
  74. package/unbundled/definition27.js +8 -5
  75. package/unbundled/definition35.cjs +1 -1
  76. package/unbundled/definition35.js +1 -1
  77. package/unbundled/definition5.cjs +1 -1
  78. package/unbundled/definition5.js +1 -1
  79. package/unbundled/definition55.cjs +1 -1
  80. package/unbundled/definition55.js +1 -1
  81. package/unbundled/definition58.cjs +69 -4
  82. package/unbundled/definition58.js +69 -4
  83. package/unbundled/definition6.cjs +2 -1
  84. package/unbundled/definition6.js +2 -1
  85. package/unbundled/definition63.cjs +82 -22
  86. package/unbundled/definition63.js +82 -22
  87. package/unbundled/definition75.cjs +19 -6
  88. package/unbundled/definition75.js +20 -7
  89. package/unbundled/definition8.cjs +2 -2
  90. package/unbundled/definition8.js +2 -2
  91. package/unbundled/definition83.cjs +1 -1
  92. package/unbundled/definition83.js +1 -1
  93. package/unbundled/en-US.cjs +12 -0
  94. package/unbundled/en-US.js +12 -0
  95. package/unbundled/feedback-message.cjs +1 -1
  96. package/unbundled/feedback-message.js +1 -1
  97. package/unbundled/linkable.cjs +1 -1
  98. package/unbundled/linkable.js +1 -1
  99. package/unbundled/text-field.cjs +1 -1
  100. package/unbundled/text-field.js +1 -1
  101. package/unbundled/vivid-element.cjs +1 -1
  102. package/unbundled/vivid-element.js +1 -1
  103. package/video-player/index.cjs +26 -26
  104. package/video-player/index.js +2438 -2413
  105. package/vivid.api.json +64 -3
@@ -1,4 +1,4 @@
1
- const e=require("../bundled/localized.cjs"),t=require("../bundled/vivid-element.cjs"),n=require("../bundled/repeat.cjs"),r=require("../bundled/slotted.cjs"),i=require("../bundled/children.cjs"),a=require("../bundled/when.cjs"),o=require("../bundled/definition.cjs"),s=require("../bundled/decorate.cjs"),c=require("../bundled/class-names.cjs"),l=require("../bundled/key-codes.cjs"),u=require("../bundled/definition2.cjs"),d=require("../bundled/icon.cjs"),f=require("../bundled/host-semantics.cjs"),p=require("../bundled/data-grid.options.cjs");var m=`focus`,h=`focusin`,g=`focusout`,_=`keydown`,v=`:host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base{block-size:inherit;inline-size:100%;max-block-size:inherit;position:relative;overflow:auto}`,y=`.base{box-sizing:border-box;width:100%;color:var(--vvd-color-canvas-text);display:grid}:host([row-type=sticky-header]) .base{z-index:9;background:var(--data-grid-row-background,var(--vvd-color-canvas));position:sticky;top:0}:host([row-type=hidden-header]) .base{display:none}:host([selected]:not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}`,b=`:host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){z-index:5;background:var(--data-grid-cell-background,var(--vvd-color-surface-2dp));position:sticky}:host([data-fixed]):before{z-index:1;width:1px;content:"";pointer-events:none;block-size:100%;position:absolute;top:0;right:0;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d}.base{box-sizing:border-box;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size,var(--_data-grid-cell-default-block-size));color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));align-items:center;padding-block:13px 14px;padding-inline:12px;display:flex}:host(:focus-visible) .base{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));--_data-grid-cell-default-white-space:nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size:100%;--_data-grid-cell-default-white-space:normal}:host([selected]:not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}.content{align-items:center;display:flex;overflow:hidden}.content[role=button]{cursor:pointer}slot:not([name]){text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space,var(--_data-grid-cell-default-white-space));display:block;overflow:hidden}:host(:not([cell-type=columnheader][aria-sort])) slot:not([name]){inline-size:100%}.header-icon{flex-shrink:0;margin-inline-start:16px}slot[name=action-items]{flex-shrink:0;align-items:center;display:flex}.base.has-action-items slot[name=action-items]{margin-inline-start:16px}`,x={none:`none`,singleRow:`single-row`,multiRow:`multi-row`,singleCell:`single-cell`,multiCell:`multi-cell`},S=class e extends t.t{static generateTemplateColumns(e){let t=``;return e.forEach(e=>{t=`${t}${t===``?``:` `}1fr`}),t}noTabbingChanged(){this.$fastController.isConnected&&this.#e()}#e(){this.setAttribute(`tabIndex`,this.noTabbing||this.contains(document.activeElement)?`-1`:`0`)}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&(this.updateRowIndexes(),this.fixedColumns&&this.fixedColumns>0&&this.applyFixedColumns())}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=e.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns=``;return}this.generatedGridTemplateColumns=e.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}fixedColumnsChanged(){this.$fastController.isConnected&&(this.applyFixedColumns(),this.setupResizeObserver())}setupResizeObserver(){this.resizeObserver&&=(this.resizeObserver.disconnect(),void 0),typeof ResizeObserver<`u`&&this.fixedColumns&&this.fixedColumns>0&&(this.resizeObserver=new ResizeObserver(()=>{this.applyFixedColumns()}),this.resizeObserver.observe(this))}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.behaviorOrchestrator===null&&(this.behaviorOrchestrator=t.f.create(this),this.$fastController.addBehavior(this.behaviorOrchestrator),this.behaviorOrchestrator.addBehaviorFactory(new n.t(n.r(e=>e.rowsData),n.r(e=>e.rowItemTemplate),{positioning:!0}),this.appendChild(document.createComment(``)))),this.toggleGeneratedHeader(),this.addEventListener(`row-focused`,this.handleRowFocus),this.addEventListener(m,this.handleFocus),this.addEventListener(_,this.handleKeydown),this.addEventListener(g,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.setupResizeObserver(),t.M.enqueue(this.queueRowIndexUpdate),this.#e(),t.k.getNotifier(this).subscribe(this.#s,`columnDefinitions`)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`row-focused`,this.handleRowFocus),this.removeEventListener(m,this.handleFocus),this.removeEventListener(_,this.handleKeydown),this.removeEventListener(g,this.handleFocusOut),this.observer.disconnect(),this.resizeObserver&&=(this.resizeObserver.disconnect(),void 0),this.generatedHeader=null,t.k.getNotifier(this).unsubscribe(this.#s,`columnDefinitions`)}handleRowFocus(e){this.isUpdatingFocus=!0;let t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute(`tabIndex`,`-1`),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute(`tabIndex`,this.noTabbing?`-1`:`0`)}handleKeydown(e){if(e.defaultPrevented)return;let t,n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case l.i:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case l.t:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case l.l:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex-1;t>=0;t--){let e=this.rowElements[t];if(e.offsetTop<this.scrollTop){this.scrollTop=e.offsetTop+e.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case l.c:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=n||i.offsetTop+i.offsetHeight<=r){this.focusOnCell(n,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex+1;t<=n;t++){let e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>r){let t=0;this.generateHeader===p.a.sticky&&this.generatedHeader!==null&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case l.s:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case`End`:e.ctrlKey&&this.columnDefinitions!==null&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&this.contains(document.activeElement)||this.pendingFocusUpdate||(this.pendingFocusUpdate=!0,t.M.enqueue(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==p.a.none&&this.columnDefinitions!==null){let e=document.createElement(this.rowElementTag);this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===p.a.sticky?p.i.stickyHeader:p.i.header,this.firstChild!==null&&this.insertBefore(e,this.firstChild);return}}slottedRowElementsChanged(){this._resetSelection()}get#t(){return this.rowElements.filter(e=>e.selected)}get#n(){return this.rowElements.reduce((e,t)=>{let n=Array.from(t.children).filter(e=>e.selected);return e.concat(n)},[])}selectionModeChanged(e){if(e===void 0){t.M.enqueue(this._resetSelection);return}this._resetSelection(!0)}#r;#i;#a;#o;constructor(){super(),this.noTabbing=!1,this.generateHeader=p.a.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.fixedColumnsPositions=[],this.behaviorOrchestrator=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns=``,this.focusOnCell=(e,t,n)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}let r=Math.max(0,Math.min(this.rowElements.length-1,e)),i=this.rowElements[r].querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"], [data-vvd-component="data-grid-cell"]`),a=i[Math.max(0,Math.min(i.length-1,t))];n&&this.scrollHeight!==this.clientHeight&&(r<this.focusRowIndex&&this.scrollTop>0||r>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&a.scrollIntoView({block:`center`,inline:`center`}),a.focus()},this.onChildListChange=(e,t)=>{e&&e.length&&(e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===1&&(e.getAttribute(`role`)===`row`||e.getAttribute(`row-type`)==="default")&&(e.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,t.M.enqueue(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===void 0){if(this.generatedGridTemplateColumns===``&&this.rowElements.length>0){let e=this.rowElements[0];this.generatedGridTemplateColumns=Array(e.cellElements.length).fill(`1fr`).join(` `)}e=this.generatedGridTemplateColumns}this.rowElements.forEach((t,n)=>{let r=t;r.rowIndex=n,r.gridTemplateColumns=e,this.columnDefinitionsStale&&(r.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1},this.#r=e=>{(e.key===`Enter`||e.key===` `)&&this.#i(e)},this.#i=({target:e,ctrlKey:t,shiftKey:n,metaKey:r})=>{if(e.getAttribute(`role`)===`gridcell`&&e.getAttribute(`cell-type`)==="default"){if(this.selectionMode===x.singleCell||this.selectionMode===x.multiCell){this.#a({target:e,ctrlKey:t,shiftKey:n,metaKey:r});return}(this.selectionMode===x.singleRow||this.selectionMode===x.multiRow)&&this.#o({target:e,ctrlKey:t,shiftKey:n,metaKey:r})}},this.#a=({target:e,ctrlKey:t,shiftKey:n,metaKey:r})=>{let i=e;if(this.selectionMode===x.multiCell&&(t||n||r))i.selected=!this.#n.includes(i);else{let e=i.selected;this._resetSelection(!0),i.selected=!e}},this.#o=({target:e,ctrlKey:t,shiftKey:n,metaKey:r})=>{let i=e.parentNode;if(this.selectionMode===x.multiRow&&(t||n||r))i.selected=!this.#t.includes(i);else{let e=i.selected;this._resetSelection(!0),i.selected=!e}},this.#s={handleChange(e,t){t===`columnDefinitions`&&e.$fastController.isConnected&&e.toggleGeneratedHeader()}},this._resetSelection=(e=!1)=>{let t=Array.from(this.querySelectorAll(`[role="gridcell"], [cell-type="default"]`)),n=Array.from(this.querySelectorAll(`[role="row"], [row-type="default"]`));if(this.selectionMode===x.singleCell||this.selectionMode===x.multiCell){for(let n of t)n._selectable=!0,n.selected=e?!1:n.selected||!1;for(let e of n)e._selectable=!1,e.selected=!1}if(this.selectionMode===x.none)for(let e of[...t,...n])e._selectable=!1,e.selected=!1;if(this.selectionMode===x.singleRow||this.selectionMode===x.multiRow){for(let e of t)e._selectable=!1,e.selected=!1;for(let t of n)t._selectable=!0,t.selected=e?!1:t.selected||!1}},this.addEventListener(`click`,this.#i),this.addEventListener(`keydown`,this.#r)}#s;static generateColumns(e){return Object.keys(e).map((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))}applyFixedColumns(){if(!this.fixedColumns||this.fixedColumns<=0){this.clearFixedColumns();return}this.calculateFixedColumnPositions(),this.applyFixedColumnStyling()}applyFixedColumnStyling(){this.rowElements.forEach(e=>{let t=e.querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]`);this.fixedColumnsPositions.forEach((e,n)=>{if(n<t.length){let r=t[n];typeof r.setFixedPosition==`function`&&r.setFixedPosition(`${e}px`)}})})}calculateFixedColumnPositions(){if(this.fixedColumnsPositions=[],this.rowElements.length===0)return;let e=this.rowElements[0].querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]`),t=0;for(let n=0;n<Math.min(this.fixedColumns,e.length);n++)this.fixedColumnsPositions.push(t),t+=e[n].offsetWidth}clearFixedColumns(){if(this.rowElements.length===0){this.fixedColumnsPositions=[];return}this.rowElements.forEach(e=>{let t=e.querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]`);this.fixedColumnsPositions.forEach((e,n)=>{if(n<t.length){let e=t[n];typeof e.setFixedPosition==`function`&&e.setFixedPosition(void 0)}})}),this.fixedColumnsPositions=[]}};s.t([t.m({attribute:`no-tabbing`,mode:`boolean`})],S.prototype,`noTabbing`,void 0),s.t([t.m({attribute:`generate-header`})],S.prototype,`generateHeader`,void 0),s.t([t.m({attribute:`grid-template-columns`})],S.prototype,`gridTemplateColumns`,void 0),s.t([t.A],S.prototype,`rowsData`,void 0),s.t([t.A],S.prototype,`columnDefinitions`,void 0),s.t([t.A],S.prototype,`rowItemTemplate`,void 0),s.t([t.A],S.prototype,`cellItemTemplate`,void 0),s.t([t.A],S.prototype,`headerCellItemTemplate`,void 0),s.t([t.A],S.prototype,`focusRowIndex`,void 0),s.t([t.A],S.prototype,`focusColumnIndex`,void 0),s.t([t.m({attribute:`fixed-columns`,converter:t.h})],S.prototype,`fixedColumns`,void 0),s.t([t.A],S.prototype,`defaultRowItemTemplate`,void 0),s.t([t.A],S.prototype,`rowElementTag`,void 0),s.t([t.A],S.prototype,`rowElements`,void 0),s.t([t.A],S.prototype,`slottedRowElements`,void 0),s.t([t.m({attribute:`selection-mode`})],S.prototype,`selectionMode`,void 0);var C=class extends f.t(t.t){constructor(...e){super(...e),this.rowType=p.i.default,this.rowData=null,this.columnDefinitions=null,this.behaviorOrchestrator=null,this.focusColumnIndex=0,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns},this.ariaSelected=null,this._selectable=!1,this.selected=!1}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.behaviorOrchestrator===null&&(this.updateItemTemplate(),this.behaviorOrchestrator=t.f.create(this),this.$fastController.addBehavior(this.behaviorOrchestrator),this.behaviorOrchestrator.addBehaviorFactory(new n.t(n.r(e=>e.columnDefinitions),n.r(e=>e.activeCellItemTemplate),{positioning:!0}),this.appendChild(document.createComment(``)))),this.addEventListener(`cell-focused`,this.handleCellFocus),this.addEventListener(g,this.handleFocusout),this.addEventListener(_,this.handleKeydown),this.updateRowStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`cell-focused`,this.handleCellFocus),this.removeEventListener(g,this.handleFocusout),this.removeEventListener(_,this.handleKeydown)}handleFocusout(e){this.contains(document.activeElement)||(this.focusColumnIndex=0)}handleCellFocus(e){this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit(`row-focused`,this)}handleKeydown(e){if(!e.defaultPrevented)switch(e.key){case l.n:{let t=Math.max(0,this.focusColumnIndex-1);this.cellElements[t].focus(),e.preventDefault();break}case l.r:{let t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1);this.cellElements[t].focus(),e.preventDefault();break}case l.s:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case`End`:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===p.i.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===p.i.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate===void 0?this.defaultHeaderCellItemTemplate:this.headerCellItemTemplate}ariaSelectedChanged(e,t){super.ariaSelectedChanged(e,t),this._selectable=t!==null,this.selected=t===`true`}};s.t([t.m({attribute:`grid-template-columns`})],C.prototype,`gridTemplateColumns`,void 0),s.t([t.m({attribute:`row-type`})],C.prototype,`rowType`,void 0),s.t([t.A],C.prototype,`rowData`,void 0),s.t([t.A],C.prototype,`columnDefinitions`,void 0),s.t([t.A],C.prototype,`cellItemTemplate`,void 0),s.t([t.A],C.prototype,`headerCellItemTemplate`,void 0),s.t([t.A],C.prototype,`rowIndex`,void 0),s.t([t.A],C.prototype,`activeCellItemTemplate`,void 0),s.t([t.A],C.prototype,`defaultCellItemTemplate`,void 0),s.t([t.A],C.prototype,`defaultHeaderCellItemTemplate`,void 0),s.t([t.A],C.prototype,`cellElements`,void 0),s.t([t.m],C.prototype,`connotation`,void 0),s.t([t.A],C.prototype,`_selectable`,void 0),s.t([t.m({mode:`boolean`})],C.prototype,`selected`,void 0);function w(e){let n=e.tagFor(C);return t.p`
1
+ const e=require("../bundled/localized.cjs"),t=require("../bundled/vivid-element.cjs"),n=require("../bundled/repeat.cjs"),r=require("../bundled/slotted.cjs"),i=require("../bundled/children.cjs"),a=require("../bundled/when.cjs"),o=require("../bundled/definition.cjs"),s=require("../bundled/decorate.cjs"),c=require("../bundled/class-names.cjs"),l=require("../bundled/key-codes.cjs"),u=require("../bundled/definition2.cjs"),d=require("../bundled/icon.cjs"),f=require("../bundled/host-semantics.cjs"),p=require("../bundled/data-grid.options.cjs");var m=`focus`,h=`focusin`,g=`focusout`,_=`keydown`,v=`:host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base{block-size:inherit;inline-size:100%;max-block-size:inherit;position:relative;overflow:auto}`,y=`.base{box-sizing:border-box;width:100%;color:var(--vvd-color-canvas-text);display:grid}:host([row-type=sticky-header]) .base{z-index:9;background:var(--data-grid-row-background,var(--vvd-color-canvas));position:sticky;top:0}:host([row-type=hidden-header]) .base{display:none}:host([selected]:not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}`,b=`:host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){z-index:5;background:var(--data-grid-cell-background,var(--vvd-color-surface-2dp));position:sticky}:host([data-fixed]):before{z-index:1;width:1px;content:"";pointer-events:none;block-size:100%;position:absolute;top:0;right:0;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d}.base{box-sizing:border-box;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size,var(--_data-grid-cell-default-block-size));color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));align-items:center;padding-block:13px 14px;padding-inline:12px;display:flex}:host(:focus-visible) .base{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));--_data-grid-cell-default-white-space:nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size:100%;--_data-grid-cell-default-white-space:normal}:host([selected]:not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}.content{flex:1;align-items:center;display:flex;overflow:hidden}.content[role=button]{cursor:pointer}slot:not([name]){text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space,var(--_data-grid-cell-default-white-space));display:block;overflow:hidden}:host(:not([cell-type=columnheader][aria-sort])) slot:not([name]){inline-size:100%}.header-icon{flex-shrink:0;margin-inline-start:16px}slot[name=action-items]{flex-shrink:0;align-items:center;display:flex}.base.has-action-items slot[name=action-items]{margin-inline-start:16px}`,x={none:`none`,singleRow:`single-row`,multiRow:`multi-row`,singleCell:`single-cell`,multiCell:`multi-cell`},S=class e extends t.t{static generateTemplateColumns(e){let t=``;return e.forEach(e=>{t=`${t}${t===``?``:` `}1fr`}),t}noTabbingChanged(){this.$fastController.isConnected&&this.#e()}#e(){this.setAttribute(`tabIndex`,this.noTabbing||this.contains(document.activeElement)?`-1`:`0`)}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&(this.updateRowIndexes(),this.fixedColumns&&this.fixedColumns>0&&this.applyFixedColumns())}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=e.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns=``;return}this.generatedGridTemplateColumns=e.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}fixedColumnsChanged(){this.$fastController.isConnected&&(this.applyFixedColumns(),this.setupResizeObserver())}setupResizeObserver(){this.resizeObserver&&=(this.resizeObserver.disconnect(),void 0),typeof ResizeObserver<`u`&&this.fixedColumns&&this.fixedColumns>0&&(this.resizeObserver=new ResizeObserver(()=>{this.applyFixedColumns()}),this.resizeObserver.observe(this))}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.behaviorOrchestrator===null&&(this.behaviorOrchestrator=t.f.create(this),this.$fastController.addBehavior(this.behaviorOrchestrator),this.behaviorOrchestrator.addBehaviorFactory(new n.t(n.r(e=>e.rowsData),n.r(e=>e.rowItemTemplate),{positioning:!0}),this.appendChild(document.createComment(``)))),this.toggleGeneratedHeader(),this.addEventListener(`row-focused`,this.handleRowFocus),this.addEventListener(m,this.handleFocus),this.addEventListener(_,this.handleKeydown),this.addEventListener(g,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.setupResizeObserver(),t.M.enqueue(this.queueRowIndexUpdate),this.#e(),t.k.getNotifier(this).subscribe(this.#s,`columnDefinitions`)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`row-focused`,this.handleRowFocus),this.removeEventListener(m,this.handleFocus),this.removeEventListener(_,this.handleKeydown),this.removeEventListener(g,this.handleFocusOut),this.observer.disconnect(),this.resizeObserver&&=(this.resizeObserver.disconnect(),void 0),this.generatedHeader=null,t.k.getNotifier(this).unsubscribe(this.#s,`columnDefinitions`)}handleRowFocus(e){this.isUpdatingFocus=!0;let t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute(`tabIndex`,`-1`),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute(`tabIndex`,this.noTabbing?`-1`:`0`)}handleKeydown(e){if(e.defaultPrevented)return;let t,n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case l.i:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case l.t:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case l.l:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex-1;t>=0;t--){let e=this.rowElements[t];if(e.offsetTop<this.scrollTop){this.scrollTop=e.offsetTop+e.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case l.c:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=n||i.offsetTop+i.offsetHeight<=r){this.focusOnCell(n,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex+1;t<=n;t++){let e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>r){let t=0;this.generateHeader===p.a.sticky&&this.generatedHeader!==null&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case l.s:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case`End`:e.ctrlKey&&this.columnDefinitions!==null&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&this.contains(document.activeElement)||this.pendingFocusUpdate||(this.pendingFocusUpdate=!0,t.M.enqueue(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==p.a.none&&this.columnDefinitions!==null){let e=document.createElement(this.rowElementTag);this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===p.a.sticky?p.i.stickyHeader:p.i.header,this.firstChild!==null&&this.insertBefore(e,this.firstChild);return}}slottedRowElementsChanged(){this._resetSelection()}get#t(){return this.rowElements.filter(e=>e.selected)}get#n(){return this.rowElements.reduce((e,t)=>{let n=Array.from(t.children).filter(e=>e.selected);return e.concat(n)},[])}selectionModeChanged(e){if(e===void 0){t.M.enqueue(this._resetSelection);return}this._resetSelection(!0)}#r;#i;#a;#o;constructor(){super(),this.noTabbing=!1,this.generateHeader=p.a.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.fixedColumnsPositions=[],this.behaviorOrchestrator=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns=``,this.focusOnCell=(e,t,n)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}let r=Math.max(0,Math.min(this.rowElements.length-1,e)),i=this.rowElements[r].querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"], [data-vvd-component="data-grid-cell"]`),a=i[Math.max(0,Math.min(i.length-1,t))];n&&this.scrollHeight!==this.clientHeight&&(r<this.focusRowIndex&&this.scrollTop>0||r>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&a.scrollIntoView({block:`center`,inline:`center`}),a.focus()},this.onChildListChange=(e,t)=>{e&&e.length&&(e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===1&&(e.getAttribute(`role`)===`row`||e.getAttribute(`row-type`)==="default")&&(e.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,t.M.enqueue(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===void 0){if(this.generatedGridTemplateColumns===``&&this.rowElements.length>0){let e=this.rowElements[0];this.generatedGridTemplateColumns=Array(e.cellElements.length).fill(`1fr`).join(` `)}e=this.generatedGridTemplateColumns}this.rowElements.forEach((t,n)=>{let r=t;r.rowIndex=n,r.gridTemplateColumns=e,this.columnDefinitionsStale&&(r.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1},this.#r=e=>{(e.key===`Enter`||e.key===` `)&&this.#i(e)},this.#i=({target:e,ctrlKey:t,shiftKey:n,metaKey:r})=>{if(e.getAttribute(`role`)===`gridcell`&&e.getAttribute(`cell-type`)==="default"){if(this.selectionMode===x.singleCell||this.selectionMode===x.multiCell){this.#a({target:e,ctrlKey:t,shiftKey:n,metaKey:r});return}(this.selectionMode===x.singleRow||this.selectionMode===x.multiRow)&&this.#o({target:e,ctrlKey:t,shiftKey:n,metaKey:r})}},this.#a=({target:e,ctrlKey:t,shiftKey:n,metaKey:r})=>{let i=e;if(this.selectionMode===x.multiCell&&(t||n||r))i.selected=!this.#n.includes(i);else{let e=i.selected;this._resetSelection(!0),i.selected=!e}},this.#o=({target:e,ctrlKey:t,shiftKey:n,metaKey:r})=>{let i=e.parentNode;if(this.selectionMode===x.multiRow&&(t||n||r))i.selected=!this.#t.includes(i);else{let e=i.selected;this._resetSelection(!0),i.selected=!e}},this.#s={handleChange(e,t){t===`columnDefinitions`&&e.$fastController.isConnected&&e.toggleGeneratedHeader()}},this._resetSelection=(e=!1)=>{let t=Array.from(this.querySelectorAll(`[role="gridcell"], [cell-type="default"]`)),n=Array.from(this.querySelectorAll(`[role="row"], [row-type="default"]`));if(this.selectionMode===x.singleCell||this.selectionMode===x.multiCell){for(let n of t)n._selectable=!0,n.selected=e?!1:n.selected||!1;for(let e of n)e._selectable=!1,e.selected=!1}if(this.selectionMode===x.none)for(let e of[...t,...n])e._selectable=!1,e.selected=!1;if(this.selectionMode===x.singleRow||this.selectionMode===x.multiRow){for(let e of t)e._selectable=!1,e.selected=!1;for(let t of n)t._selectable=!0,t.selected=e?!1:t.selected||!1}},this.addEventListener(`click`,this.#i),this.addEventListener(`keydown`,this.#r)}#s;static generateColumns(e){return Object.keys(e).map((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))}applyFixedColumns(){if(!this.fixedColumns||this.fixedColumns<=0){this.clearFixedColumns();return}this.calculateFixedColumnPositions(),this.applyFixedColumnStyling()}applyFixedColumnStyling(){this.rowElements.forEach(e=>{let t=e.querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]`);this.fixedColumnsPositions.forEach((e,n)=>{if(n<t.length){let r=t[n];typeof r.setFixedPosition==`function`&&r.setFixedPosition(`${e}px`)}})})}calculateFixedColumnPositions(){if(this.fixedColumnsPositions=[],this.rowElements.length===0)return;let e=this.rowElements[0].querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]`),t=0;for(let n=0;n<Math.min(this.fixedColumns,e.length);n++)this.fixedColumnsPositions.push(t),t+=e[n].offsetWidth}clearFixedColumns(){if(this.rowElements.length===0){this.fixedColumnsPositions=[];return}this.rowElements.forEach(e=>{let t=e.querySelectorAll(`[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]`);this.fixedColumnsPositions.forEach((e,n)=>{if(n<t.length){let e=t[n];typeof e.setFixedPosition==`function`&&e.setFixedPosition(void 0)}})}),this.fixedColumnsPositions=[]}};s.t([t.m({attribute:`no-tabbing`,mode:`boolean`})],S.prototype,`noTabbing`,void 0),s.t([t.m({attribute:`generate-header`})],S.prototype,`generateHeader`,void 0),s.t([t.m({attribute:`grid-template-columns`})],S.prototype,`gridTemplateColumns`,void 0),s.t([t.A],S.prototype,`rowsData`,void 0),s.t([t.A],S.prototype,`columnDefinitions`,void 0),s.t([t.A],S.prototype,`rowItemTemplate`,void 0),s.t([t.A],S.prototype,`cellItemTemplate`,void 0),s.t([t.A],S.prototype,`headerCellItemTemplate`,void 0),s.t([t.A],S.prototype,`focusRowIndex`,void 0),s.t([t.A],S.prototype,`focusColumnIndex`,void 0),s.t([t.m({attribute:`fixed-columns`,converter:t.h})],S.prototype,`fixedColumns`,void 0),s.t([t.A],S.prototype,`defaultRowItemTemplate`,void 0),s.t([t.A],S.prototype,`rowElementTag`,void 0),s.t([t.A],S.prototype,`rowElements`,void 0),s.t([t.A],S.prototype,`slottedRowElements`,void 0),s.t([t.m({attribute:`selection-mode`})],S.prototype,`selectionMode`,void 0);var C=class extends f.t(t.t){constructor(...e){super(...e),this.rowType=p.i.default,this.rowData=null,this.columnDefinitions=null,this.behaviorOrchestrator=null,this.focusColumnIndex=0,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns},this.ariaSelected=null,this._selectable=!1,this.selected=!1}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.behaviorOrchestrator===null&&(this.updateItemTemplate(),this.behaviorOrchestrator=t.f.create(this),this.$fastController.addBehavior(this.behaviorOrchestrator),this.behaviorOrchestrator.addBehaviorFactory(new n.t(n.r(e=>e.columnDefinitions),n.r(e=>e.activeCellItemTemplate),{positioning:!0}),this.appendChild(document.createComment(``)))),this.addEventListener(`cell-focused`,this.handleCellFocus),this.addEventListener(g,this.handleFocusout),this.addEventListener(_,this.handleKeydown),this.updateRowStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`cell-focused`,this.handleCellFocus),this.removeEventListener(g,this.handleFocusout),this.removeEventListener(_,this.handleKeydown)}handleFocusout(e){this.contains(document.activeElement)||(this.focusColumnIndex=0)}handleCellFocus(e){this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit(`row-focused`,this)}handleKeydown(e){if(!e.defaultPrevented)switch(e.key){case l.n:{let t=Math.max(0,this.focusColumnIndex-1);this.cellElements[t].focus(),e.preventDefault();break}case l.r:{let t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1);this.cellElements[t].focus(),e.preventDefault();break}case l.s:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case`End`:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===p.i.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===p.i.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate===void 0?this.defaultHeaderCellItemTemplate:this.headerCellItemTemplate}ariaSelectedChanged(e,t){super.ariaSelectedChanged(e,t),this._selectable=t!==null,this.selected=t===`true`}};s.t([t.m({attribute:`grid-template-columns`})],C.prototype,`gridTemplateColumns`,void 0),s.t([t.m({attribute:`row-type`})],C.prototype,`rowType`,void 0),s.t([t.A],C.prototype,`rowData`,void 0),s.t([t.A],C.prototype,`columnDefinitions`,void 0),s.t([t.A],C.prototype,`cellItemTemplate`,void 0),s.t([t.A],C.prototype,`headerCellItemTemplate`,void 0),s.t([t.A],C.prototype,`rowIndex`,void 0),s.t([t.A],C.prototype,`activeCellItemTemplate`,void 0),s.t([t.A],C.prototype,`defaultCellItemTemplate`,void 0),s.t([t.A],C.prototype,`defaultHeaderCellItemTemplate`,void 0),s.t([t.A],C.prototype,`cellElements`,void 0),s.t([t.m],C.prototype,`connotation`,void 0),s.t([t.A],C.prototype,`_selectable`,void 0),s.t([t.m({mode:`boolean`})],C.prototype,`selected`,void 0);function w(e){let n=e.tagFor(C);return t.p`
2
2
  <${n}
3
3
  :rowData="${e=>e}"
4
4
  :cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}"
@@ -13,7 +13,7 @@ import { t as D } from "../bundled/icon.js";
13
13
  import { n as O, t as k } from "../bundled/host-semantics.js";
14
14
  import { a as A, i as j, n as M, o as N, r as P, t as F } from "../bundled/data-grid.options.js";
15
15
  //#region ../../node_modules/.pnpm/@microsoft+fast-web-utilities@6.0.0/node_modules/@microsoft/fast-web-utilities/dist/events.js
16
- var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base{block-size:inherit;inline-size:100%;max-block-size:inherit;position:relative;overflow:auto}", V = ".base{box-sizing:border-box;width:100%;color:var(--vvd-color-canvas-text);display:grid}:host([row-type=sticky-header]) .base{z-index:9;background:var(--data-grid-row-background,var(--vvd-color-canvas));position:sticky;top:0}:host([row-type=hidden-header]) .base{display:none}:host([selected]:not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}", H = ":host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){z-index:5;background:var(--data-grid-cell-background,var(--vvd-color-surface-2dp));position:sticky}:host([data-fixed]):before{z-index:1;width:1px;content:\"\";pointer-events:none;block-size:100%;position:absolute;top:0;right:0;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d}.base{box-sizing:border-box;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size,var(--_data-grid-cell-default-block-size));color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));align-items:center;padding-block:13px 14px;padding-inline:12px;display:flex}:host(:focus-visible) .base{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));--_data-grid-cell-default-white-space:nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size:100%;--_data-grid-cell-default-white-space:normal}:host([selected]:not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}.content{align-items:center;display:flex;overflow:hidden}.content[role=button]{cursor:pointer}slot:not([name]){text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space,var(--_data-grid-cell-default-white-space));display:block;overflow:hidden}:host(:not([cell-type=columnheader][aria-sort])) slot:not([name]){inline-size:100%}.header-icon{flex-shrink:0;margin-inline-start:16px}slot[name=action-items]{flex-shrink:0;align-items:center;display:flex}.base.has-action-items slot[name=action-items]{margin-inline-start:16px}", U = {
16
+ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.base{block-size:inherit;inline-size:100%;max-block-size:inherit;position:relative;overflow:auto}", V = ".base{box-sizing:border-box;width:100%;color:var(--vvd-color-canvas-text);display:grid}:host([row-type=sticky-header]) .base{z-index:9;background:var(--data-grid-row-background,var(--vvd-color-canvas));position:sticky;top:0}:host([row-type=hidden-header]) .base{display:none}:host([selected]:not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}", H = ":host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){z-index:5;background:var(--data-grid-cell-background,var(--vvd-color-surface-2dp));position:sticky}:host([data-fixed]):before{z-index:1;width:1px;content:\"\";pointer-events:none;block-size:100%;position:absolute;top:0;right:0;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d}.base{box-sizing:border-box;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size,var(--_data-grid-cell-default-block-size));color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));align-items:center;padding-block:13px 14px;padding-inline:12px;display:flex}:host(:focus-visible) .base{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8));--_data-grid-cell-default-white-space:nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size:100%;--_data-grid-cell-default-white-space:normal}:host([selected]:not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}.content{flex:1;align-items:center;display:flex;overflow:hidden}.content[role=button]{cursor:pointer}slot:not([name]){text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space,var(--_data-grid-cell-default-white-space));display:block;overflow:hidden}:host(:not([cell-type=columnheader][aria-sort])) slot:not([name]){inline-size:100%}.header-icon{flex-shrink:0;margin-inline-start:16px}slot[name=action-items]{flex-shrink:0;align-items:center;display:flex}.base.has-action-items slot[name=action-items]{margin-inline-start:16px}", U = {
17
17
  none: "none",
18
18
  singleRow: "single-row",
19
19
  multiRow: "multi-row",
@@ -449,5 +449,6 @@ export declare class Badge extends Badge_base {
449
449
  appearance?: BadgeAppearance;
450
450
  count: boolean;
451
451
  text?: string;
452
+ textSecondary?: string;
452
453
  }
453
454
  export {};
@@ -1,2 +1,3 @@
1
1
  import { VividElementDefinitionContext } from '../../shared/design-system/defineVividComponent';
2
- export declare const badgeTemplate: (context: VividElementDefinitionContext) => import('@microsoft/fast-element').ViewTemplate<any, any>;
2
+ import { Badge } from './badge';
3
+ export declare const badgeTemplate: (context: VividElementDefinitionContext) => import('@microsoft/fast-element').ViewTemplate<Badge, any>;
@@ -5,7 +5,7 @@ export type IconConnotation = ExtractFromEnum<Connotation, Connotation.Accent |
5
5
  export declare class Icon extends VividElement {
6
6
  #private;
7
7
  connotation?: IconConnotation;
8
- size?: -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5;
8
+ size?: -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5;
9
9
  label?: string;
10
10
  name?: string;
11
11
  }
@@ -1,12 +1,13 @@
1
1
  import { Placement } from '@floating-ui/dom';
2
2
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
3
+ import { VividAriaBehaviour } from '../../shared/aria/aria-mixin';
3
4
  export type PopoverLayout = 'default' | 'condensed';
4
5
  declare const Popover_base: {
5
6
  new (...args: any[]): {
6
7
  get locale(): import('../../shared/localization/Locale').Locale;
7
8
  connectedCallback(): void;
8
9
  focus(...args: any[]): void;
9
- _vividAriaBehaviour: import('../../shared/aria/aria-mixin').VividAriaBehaviour;
10
+ _vividAriaBehaviour: VividAriaBehaviour;
10
11
  readonly $fastController: import('@microsoft/fast-element').ElementController;
11
12
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
12
13
  disconnectedCallback: (() => void) & (() => void);
@@ -432,6 +432,6 @@ declare const ProgressRing_base: {
432
432
  } & typeof BaseProgress;
433
433
  export declare class ProgressRing extends ProgressRing_base {
434
434
  connotation?: ProgressRingConnotation;
435
- size?: -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5;
435
+ size?: -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5;
436
436
  }
437
437
  export {};
@@ -1,9 +1,435 @@
1
1
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
2
2
  import { ExtractFromEnum } from '../../shared/utils/enums';
3
+ import { FeedbackType } from '../../shared/feedback/feedback-message';
3
4
  import { Appearance } from '../enums.js';
4
5
  import { RteInstance } from './rte/instance';
5
6
  export type RichTextEditorAppearance = ExtractFromEnum<Appearance, Appearance.Fieldset>;
7
+ export type RichTextEditorState = Extract<FeedbackType, 'error' | 'success'>;
6
8
  declare const RichTextEditor_base: {
9
+ new (...args: any[]): {
10
+ _vividAriaBehaviour: "delegate";
11
+ connectedCallback(): void;
12
+ focus(...args: any[]): void;
13
+ readonly $fastController: import('@microsoft/fast-element').ElementController;
14
+ $emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
15
+ disconnectedCallback: (() => void) & (() => void);
16
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
17
+ accessKey: string;
18
+ readonly accessKeyLabel: string;
19
+ autocapitalize: string;
20
+ autocorrect: boolean;
21
+ dir: string;
22
+ draggable: boolean;
23
+ hidden: boolean;
24
+ inert: boolean;
25
+ innerText: string;
26
+ lang: string;
27
+ readonly offsetHeight: number;
28
+ readonly offsetLeft: number;
29
+ readonly offsetParent: Element | null;
30
+ readonly offsetTop: number;
31
+ readonly offsetWidth: number;
32
+ outerText: string;
33
+ popover: string | null;
34
+ spellcheck: boolean;
35
+ title: string;
36
+ translate: boolean;
37
+ writingSuggestions: string;
38
+ attachInternals(): ElementInternals;
39
+ click(): void;
40
+ hidePopover(): void;
41
+ showPopover(): void;
42
+ togglePopover(options?: boolean): boolean;
43
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
44
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
45
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
46
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
47
+ readonly attributes: NamedNodeMap;
48
+ get classList(): DOMTokenList;
49
+ set classList(value: string);
50
+ className: string;
51
+ readonly clientHeight: number;
52
+ readonly clientLeft: number;
53
+ readonly clientTop: number;
54
+ readonly clientWidth: number;
55
+ readonly currentCSSZoom: number;
56
+ id: string;
57
+ innerHTML: string;
58
+ readonly localName: string;
59
+ readonly namespaceURI: string | null;
60
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
61
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
62
+ outerHTML: string;
63
+ readonly ownerDocument: Document;
64
+ get part(): DOMTokenList;
65
+ set part(value: string);
66
+ readonly prefix: string | null;
67
+ readonly scrollHeight: number;
68
+ scrollLeft: number;
69
+ scrollTop: number;
70
+ readonly scrollWidth: number;
71
+ readonly shadowRoot: ShadowRoot | null;
72
+ slot: string;
73
+ readonly tagName: string;
74
+ attachShadow(init: ShadowRootInit): ShadowRoot;
75
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
76
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
77
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
78
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
79
+ closest<E extends Element = Element>(selectors: string): E | null;
80
+ computedStyleMap(): StylePropertyMapReadOnly;
81
+ getAttribute(qualifiedName: string): string | null;
82
+ getAttributeNS(namespace: string | null, localName: string): string | null;
83
+ getAttributeNames(): string[];
84
+ getAttributeNode(qualifiedName: string): Attr | null;
85
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
86
+ getBoundingClientRect(): DOMRect;
87
+ getClientRects(): DOMRectList;
88
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
89
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
90
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
91
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
92
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
93
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
94
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
95
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
96
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
97
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
98
+ getHTML(options?: GetHTMLOptions): string;
99
+ hasAttribute(qualifiedName: string): boolean;
100
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
101
+ hasAttributes(): boolean;
102
+ hasPointerCapture(pointerId: number): boolean;
103
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
104
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
105
+ insertAdjacentText(where: InsertPosition, data: string): void;
106
+ matches(selectors: string): boolean;
107
+ releasePointerCapture(pointerId: number): void;
108
+ removeAttribute(qualifiedName: string): void;
109
+ removeAttributeNS(namespace: string | null, localName: string): void;
110
+ removeAttributeNode(attr: Attr): Attr;
111
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
112
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
113
+ scroll(options?: ScrollToOptions): void;
114
+ scroll(x: number, y: number): void;
115
+ scrollBy(options?: ScrollToOptions): void;
116
+ scrollBy(x: number, y: number): void;
117
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
118
+ scrollTo(options?: ScrollToOptions): void;
119
+ scrollTo(x: number, y: number): void;
120
+ setAttribute(qualifiedName: string, value: string): void;
121
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
122
+ setAttributeNode(attr: Attr): Attr | null;
123
+ setAttributeNodeNS(attr: Attr): Attr | null;
124
+ setHTMLUnsafe(html: string): void;
125
+ setPointerCapture(pointerId: number): void;
126
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
127
+ webkitMatchesSelector(selectors: string): boolean;
128
+ get textContent(): string;
129
+ set textContent(value: string | null);
130
+ readonly baseURI: string;
131
+ readonly childNodes: NodeListOf<ChildNode>;
132
+ readonly firstChild: ChildNode | null;
133
+ readonly isConnected: boolean;
134
+ readonly lastChild: ChildNode | null;
135
+ readonly nextSibling: ChildNode | null;
136
+ readonly nodeName: string;
137
+ readonly nodeType: number;
138
+ nodeValue: string | null;
139
+ readonly parentElement: HTMLElement | null;
140
+ readonly parentNode: ParentNode | null;
141
+ readonly previousSibling: ChildNode | null;
142
+ appendChild<T extends Node>(node: T): T;
143
+ cloneNode(subtree?: boolean): Node;
144
+ compareDocumentPosition(other: Node): number;
145
+ contains(other: Node | null): boolean;
146
+ getRootNode(options?: GetRootNodeOptions): Node;
147
+ hasChildNodes(): boolean;
148
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
149
+ isDefaultNamespace(namespace: string | null): boolean;
150
+ isEqualNode(otherNode: Node | null): boolean;
151
+ isSameNode(otherNode: Node | null): boolean;
152
+ lookupNamespaceURI(prefix: string | null): string | null;
153
+ lookupPrefix(namespace: string | null): string | null;
154
+ normalize(): void;
155
+ removeChild<T extends Node>(child: T): T;
156
+ replaceChild<T extends Node>(node: Node, child: T): T;
157
+ readonly ELEMENT_NODE: 1;
158
+ readonly ATTRIBUTE_NODE: 2;
159
+ readonly TEXT_NODE: 3;
160
+ readonly CDATA_SECTION_NODE: 4;
161
+ readonly ENTITY_REFERENCE_NODE: 5;
162
+ readonly ENTITY_NODE: 6;
163
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
164
+ readonly COMMENT_NODE: 8;
165
+ readonly DOCUMENT_NODE: 9;
166
+ readonly DOCUMENT_TYPE_NODE: 10;
167
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
168
+ readonly NOTATION_NODE: 12;
169
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
170
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
171
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
172
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
173
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
174
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
175
+ dispatchEvent(event: Event): boolean;
176
+ ariaActiveDescendantElement: Element | null;
177
+ ariaAtomic: string | null;
178
+ ariaAutoComplete: string | null;
179
+ ariaBrailleLabel: string | null;
180
+ ariaBrailleRoleDescription: string | null;
181
+ ariaBusy: string | null;
182
+ ariaChecked: string | null;
183
+ ariaColCount: string | null;
184
+ ariaColIndex: string | null;
185
+ ariaColIndexText: string | null;
186
+ ariaColSpan: string | null;
187
+ ariaControlsElements: ReadonlyArray<Element> | null;
188
+ ariaCurrent: string | null;
189
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
190
+ ariaDescription: string | null;
191
+ ariaDetailsElements: ReadonlyArray<Element> | null;
192
+ ariaDisabled: string | null;
193
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
194
+ ariaExpanded: string | null;
195
+ ariaFlowToElements: ReadonlyArray<Element> | null;
196
+ ariaHasPopup: string | null;
197
+ ariaHidden: string | null;
198
+ ariaInvalid: string | null;
199
+ ariaKeyShortcuts: string | null;
200
+ ariaLabel: string | null;
201
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
202
+ ariaLevel: string | null;
203
+ ariaLive: string | null;
204
+ ariaModal: string | null;
205
+ ariaMultiLine: string | null;
206
+ ariaMultiSelectable: string | null;
207
+ ariaOrientation: string | null;
208
+ ariaOwnsElements: ReadonlyArray<Element> | null;
209
+ ariaPlaceholder: string | null;
210
+ ariaPosInSet: string | null;
211
+ ariaPressed: string | null;
212
+ ariaReadOnly: string | null;
213
+ ariaRelevant: string | null;
214
+ ariaRequired: string | null;
215
+ ariaRoleDescription: string | null;
216
+ ariaRowCount: string | null;
217
+ ariaRowIndex: string | null;
218
+ ariaRowIndexText: string | null;
219
+ ariaRowSpan: string | null;
220
+ ariaSelected: string | null;
221
+ ariaSetSize: string | null;
222
+ ariaSort: string | null;
223
+ ariaValueMax: string | null;
224
+ ariaValueMin: string | null;
225
+ ariaValueNow: string | null;
226
+ ariaValueText: string | null;
227
+ role: string | null;
228
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
229
+ getAnimations(options?: GetAnimationsOptions): Animation[];
230
+ after(...nodes: (Node | string)[]): void;
231
+ before(...nodes: (Node | string)[]): void;
232
+ remove(): void;
233
+ replaceWith(...nodes: (Node | string)[]): void;
234
+ readonly nextElementSibling: Element | null;
235
+ readonly previousElementSibling: Element | null;
236
+ readonly childElementCount: number;
237
+ readonly children: HTMLCollection;
238
+ readonly firstElementChild: Element | null;
239
+ readonly lastElementChild: Element | null;
240
+ append(...nodes: (Node | string)[]): void;
241
+ prepend(...nodes: (Node | string)[]): void;
242
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
243
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
244
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
245
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
246
+ querySelector<E extends Element = Element>(selectors: string): E | null;
247
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
248
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
249
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
250
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
251
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
252
+ replaceChildren(...nodes: (Node | string)[]): void;
253
+ readonly assignedSlot: HTMLSlotElement | null;
254
+ readonly attributeStyleMap: StylePropertyMap;
255
+ get style(): CSSStyleDeclaration;
256
+ set style(cssText: string);
257
+ contentEditable: string;
258
+ enterKeyHint: string;
259
+ inputMode: string;
260
+ readonly isContentEditable: boolean;
261
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
262
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
263
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
264
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
265
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
266
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
268
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
269
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
270
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
271
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
276
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
279
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
281
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
283
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
284
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
285
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
286
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
287
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
288
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
289
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
290
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
291
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
293
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
+ onerror: OnErrorEventHandler;
295
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
296
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
297
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
298
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
301
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
302
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
303
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
308
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
309
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
310
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
311
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
312
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
313
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
314
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
315
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
316
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
320
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
321
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
322
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
323
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
324
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
325
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
326
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
328
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
329
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
332
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
335
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
343
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
346
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
347
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
348
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
349
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
350
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
351
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
352
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
353
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
354
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
359
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
360
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
361
+ autofocus: boolean;
362
+ readonly dataset: DOMStringMap;
363
+ nonce?: string;
364
+ tabIndex: number;
365
+ blur(): void;
366
+ ariaControls: string | null;
367
+ ariaDescribedBy: string | null;
368
+ ariaDetails: string | null;
369
+ ariaErrorMessage: string | null;
370
+ ariaFlowTo: string | null;
371
+ ariaLabelledBy: string | null;
372
+ ariaOwns: string | null;
373
+ roleChanged(prev: string | null, next: string | null): void;
374
+ ariaAtomicChanged(prev: string | null, next: string | null): void;
375
+ ariaAutoCompleteChanged(prev: string | null, next: string | null): void;
376
+ ariaBusyChanged(prev: string | null, next: string | null): void;
377
+ ariaCheckedChanged(prev: string | null, next: string | null): void;
378
+ ariaColCountChanged(prev: string | null, next: string | null): void;
379
+ ariaColIndexChanged(prev: string | null, next: string | null): void;
380
+ ariaColIndexTextChanged(prev: string | null, next: string | null): void;
381
+ ariaColSpanChanged(prev: string | null, next: string | null): void;
382
+ ariaCurrentChanged(prev: string | null, next: string | null): void;
383
+ ariaDescriptionChanged(prev: string | null, next: string | null): void;
384
+ ariaDisabledChanged(prev: string | null, next: string | null): void;
385
+ ariaExpandedChanged(prev: string | null, next: string | null): void;
386
+ ariaHasPopupChanged(prev: string | null, next: string | null): void;
387
+ ariaHiddenChanged(prev: string | null, next: string | null): void;
388
+ ariaInvalidChanged(prev: string | null, next: string | null): void;
389
+ ariaKeyShortcutsChanged(prev: string | null, next: string | null): void;
390
+ ariaLabelChanged(prev: string | null, next: string | null): void;
391
+ ariaLevelChanged(prev: string | null, next: string | null): void;
392
+ ariaLiveChanged(prev: string | null, next: string | null): void;
393
+ ariaModalChanged(prev: string | null, next: string | null): void;
394
+ ariaMultiLineChanged(prev: string | null, next: string | null): void;
395
+ ariaMultiSelectableChanged(prev: string | null, next: string | null): void;
396
+ ariaOrientationChanged(prev: string | null, next: string | null): void;
397
+ ariaPlaceholderChanged(prev: string | null, next: string | null): void;
398
+ ariaPosInSetChanged(prev: string | null, next: string | null): void;
399
+ ariaPressedChanged(prev: string | null, next: string | null): void;
400
+ ariaReadOnlyChanged(prev: string | null, next: string | null): void;
401
+ ariaRequiredChanged(prev: string | null, next: string | null): void;
402
+ ariaRoleDescriptionChanged(prev: string | null, next: string | null): void;
403
+ ariaRowCountChanged(prev: string | null, next: string | null): void;
404
+ ariaRowIndexChanged(prev: string | null, next: string | null): void;
405
+ ariaRowIndexTextChanged(prev: string | null, next: string | null): void;
406
+ ariaRowSpanChanged(prev: string | null, next: string | null): void;
407
+ ariaSelectedChanged(prev: string | null, next: string | null): void;
408
+ ariaSetSizeChanged(prev: string | null, next: string | null): void;
409
+ ariaSortChanged(prev: string | null, next: string | null): void;
410
+ ariaValueMaxChanged(prev: string | null, next: string | null): void;
411
+ ariaValueMinChanged(prev: string | null, next: string | null): void;
412
+ ariaValueNowChanged(prev: string | null, next: string | null): void;
413
+ ariaValueTextChanged(prev: string | null, next: string | null): void;
414
+ ariaRelevantChanged(prev: string | null, next: string | null): void;
415
+ ariaControlsChanged(prev: string | null, next: string | null): void;
416
+ ariaDescribedByChanged(prev: string | null, next: string | null): void;
417
+ ariaDetailsChanged(prev: string | null, next: string | null): void;
418
+ ariaErrorMessageChanged(prev: string | null, next: string | null): void;
419
+ ariaFlowToChanged(prev: string | null, next: string | null): void;
420
+ ariaLabelledByChanged(prev: string | null, next: string | null): void;
421
+ ariaOwnsChanged(prev: string | null, next: string | null): void;
422
+ "__#private@#handleReplacedProp"(replacedProp: {
423
+ newPropertyName: string;
424
+ deprecatedPropertyName: string;
425
+ fromDeprecated: (v: any) => any;
426
+ toDeprecated?: ((v: any) => any) | undefined;
427
+ }): void;
428
+ "__#private@#controllers": Set<import('../../shared/framework/reactive-controller.js').ReactiveController>;
429
+ _addController(controller: import('../../shared/framework/reactive-controller.js').ReactiveController): void;
430
+ _removeController(controller: import('../../shared/framework/reactive-controller.js').ReactiveController): void;
431
+ };
432
+ } & {
7
433
  new (...args: any[]): {
8
434
  localeChanged(): void;
9
435
  connectedCallback(): void;
@@ -439,6 +865,7 @@ declare const RichTextEditor_base: {
439
865
  export declare class RichTextEditor extends RichTextEditor_base {
440
866
  instance?: RteInstance;
441
867
  appearance?: RichTextEditorAppearance;
868
+ state?: RichTextEditorState;
442
869
  editorViewportElement?: HTMLElement;
443
870
  private _initViewIfNeeded;
444
871
  private _destroyViewIfNeeded;
@@ -2,4 +2,5 @@ export declare const asyncGeneratorMock: <TYield, TReturn = undefined>() => {
2
2
  generator: AsyncGenerator<TYield, TReturn>;
3
3
  yield: (value: TYield) => Promise<void>;
4
4
  return: (value: TReturn) => Promise<void>;
5
+ throw: (error: unknown) => Promise<void>;
5
6
  };
@@ -1,5 +1,9 @@
1
- export type ResolvedAtomValue = string | null;
2
- export type ResolvedAtomValueGenerator = AsyncGenerator<ResolvedAtomValue, ResolvedAtomValue>;
1
+ export interface ResolvedAtomValueWithVariant {
2
+ text: string;
3
+ variant?: string[];
4
+ }
5
+ export type ResolvedAtomValue = string | ResolvedAtomValueWithVariant | null;
6
+ export type ResolvedAtomValueGenerator = AsyncGenerator<ResolvedAtomValue, ResolvedAtomValue | void>;
3
7
  export interface RteAtomConfig {
4
8
  resolveValue?: (value: string) => ResolvedAtomValue | ResolvedAtomValueGenerator;
5
9
  serializeValueToHtml?: (value: string) => string | null;