@ni/ok-components 1.7.0 → 1.8.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.
@@ -20189,6 +20189,25 @@ const h4=_t`
20189
20189
  display: none;
20190
20190
  }
20191
20191
 
20192
+ :host([size='compact']) .summary-item-container {
20193
+ flex-wrap: nowrap;
20194
+ box-sizing: border-box;
20195
+ overflow-x: auto;
20196
+ overflow-y: hidden;
20197
+ gap: ${Dc};
20198
+ padding: calc(${Rc} - ${Oc});
20199
+ scrollbar-width: none;
20200
+ }
20201
+
20202
+ :host([size='compact']) .summary-item-container.has-overflow {
20203
+ -webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent);
20204
+ mask-image: linear-gradient(to right, black calc(100% - 48px), transparent);
20205
+ }
20206
+
20207
+ :host([size='compact']) .summary-item-container::-webkit-scrollbar {
20208
+ display: none;
20209
+ }
20210
+
20192
20211
  .edit-items-button {
20193
20212
  align-self: start;
20194
20213
  justify-self: end;
@@ -20210,7 +20229,12 @@ const h4=_t`
20210
20229
  @layer top {}
20211
20230
  `,u4=J`
20212
20231
  <section class="summary-panel" part="panel">
20213
- <div class="summary-item-container" part="items">
20232
+ <div
20233
+ ${zt("summaryItems")}
20234
+ class="summary-item-container"
20235
+ part="items"
20236
+ @scroll="${t=>t.handleItemsScroll()}"
20237
+ >
20214
20238
  <slot @slotchange="${t=>t.handleItemsSlotChange()}"></slot>
20215
20239
  </div>
20216
20240
  ${Ut(t=>t.showEditItemsButton,J`
@@ -20228,11 +20252,14 @@ const h4=_t`
20228
20252
  </${Xg}>
20229
20253
  `)}
20230
20254
  </section>
20231
- `
20232
- class p4 extends He{constructor(){super(...arguments),this.showEditItemsButton=!1,this.legacyStyle=!1,this.editItemsButtonLabel="Configure"}connectedCallback(){super.connectedCallback(),this.syncTileLegacyStyle()}legacyStyleChanged(){this.$fastController.isConnected&&this.syncTileLegacyStyle()}handleEditItemsClick(){this.dispatchEvent(new CustomEvent("edit-items",{bubbles:!0,composed:!0}))}handleItemsSlotChange(){this.syncTileLegacyStyle()}syncTileLegacyStyle(){for(const t of this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})??[])"ok-fv-summary-panel-tile"===t.localName&&(this.legacyStyle?t.setAttribute("legacy-style",""):t.removeAttribute("legacy-style"))}}t([pt({attribute:"show-edit-items-button",mode:"boolean"})],p4.prototype,"showEditItemsButton",void 0),t([pt({attribute:"legacy-style",mode:"boolean"})],p4.prototype,"legacyStyle",void 0),t([pt({attribute:"edit-items-button-label"})],p4.prototype,"editItemsButtonLabel",void 0)
20233
- const f4=p4.compose({baseName:"fv-summary-panel",template:u4,styles:h4})
20234
- Ii.getOrCreate().withPrefix("ok").register(f4())
20235
- const m4=_t`
20255
+ `,p4="default",f4="compact"
20256
+ class m4 extends He{constructor(){super(),this.showEditItemsButton=!1,this.legacyStyle=!1,this.size=p4,this.hasOverflow=!1,this.editItemsButtonLabel="Configure",this.summaryItemsResizeObserver=new ResizeObserver(()=>this.updateOverflow())}connectedCallback(){super.connectedCallback(),this.syncTileAttributes(),this.observeSummaryItems()}disconnectedCallback(){super.disconnectedCallback(),this.summaryItemsResizeObserver.disconnect()}legacyStyleChanged(){this.$fastController.isConnected&&(this.syncTileAttributes(),this.updateOverflow())}sizeChanged(){this.$fastController.isConnected&&(this.syncTileAttributes(),this.updateOverflow())}handleEditItemsClick(){this.dispatchEvent(new CustomEvent("edit-items",{bubbles:!0,composed:!0}))}handleItemsSlotChange(){this.syncTileAttributes(),this.observeSummaryItems()}handleItemsScroll(){this.updateOverflow()}observeSummaryItems(){this.summaryItemsResizeObserver.disconnect(),this.summaryItemsResizeObserver.observe(this.summaryItems)
20257
+ for(const t of this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})??[])this.summaryItemsResizeObserver.observe(t)
20258
+ this.updateOverflow()}updateOverflow(){const t=this.summaryItems.scrollWidth-this.summaryItems.clientWidth,e="rtl"===getComputedStyle(this.summaryItems).direction?Math.abs(this.summaryItems.scrollLeft):this.summaryItems.scrollLeft
20259
+ this.hasOverflow=this.size===f4&&t-e>0,this.summaryItems.classList.toggle("has-overflow",this.hasOverflow)}syncTileAttributes(){for(const t of this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})??[])"ok-fv-summary-panel-tile"===t.localName&&(this.legacyStyle?t.setAttribute("legacy-style",""):t.removeAttribute("legacy-style"),this.size===f4?t.setAttribute("size",f4):t.removeAttribute("size"))}}t([pt({attribute:"show-edit-items-button",mode:"boolean"})],m4.prototype,"showEditItemsButton",void 0),t([pt({attribute:"legacy-style",mode:"boolean"})],m4.prototype,"legacyStyle",void 0),t([pt],m4.prototype,"size",void 0),t([C],m4.prototype,"hasOverflow",void 0),t([pt({attribute:"edit-items-button-label"})],m4.prototype,"editItemsButtonLabel",void 0)
20260
+ const g4=m4.compose({baseName:"fv-summary-panel",template:u4,styles:h4})
20261
+ Ii.getOrCreate().withPrefix("ok").register(g4())
20262
+ const v4=_t`
20236
20263
  @layer base, hover, focusVisible, active, disabled, top;
20237
20264
 
20238
20265
  @layer base {
@@ -20308,6 +20335,24 @@ const m4=_t`
20308
20335
  text-transform: uppercase;
20309
20336
  white-space: nowrap;
20310
20337
  }
20338
+
20339
+ :host([size='compact']) .summary-panel-tile-content {
20340
+ gap: 6px;
20341
+ margin: 10px 14px;
20342
+ }
20343
+
20344
+ :host([size='compact']) .count {
20345
+ font-size: 24px;
20346
+ line-height: normal;
20347
+ }
20348
+
20349
+ :host([size='compact']) .summary-panel-tile-content.beside .count {
20350
+ padding-right: 0;
20351
+ }
20352
+
20353
+ :host([size='compact']) .label {
20354
+ font-size: 11px;
20355
+ }
20311
20356
  }
20312
20357
 
20313
20358
  @layer hover {
@@ -20365,7 +20410,7 @@ const m4=_t`
20365
20410
  @layer disabled {}
20366
20411
 
20367
20412
  @layer top {}
20368
- `,g4=J`
20413
+ `,b4=J`
20369
20414
  <${Ev}
20370
20415
  class="summary-panel-tile"
20371
20416
  ?selected="${t=>t.selected}"
@@ -20375,11 +20420,11 @@ const m4=_t`
20375
20420
  <div class="label">${t=>t.label}</div>
20376
20421
  </div>
20377
20422
  </${Ev}>
20378
- `,v4="beside"
20379
- class b4 extends He{constructor(){super(...arguments),this.count="",this.label="",this.legacyStyle=!1,this.selected=!1,this.textPosition=v4}connectedCallback(){super.connectedCallback(),this.syncLegacyStyleAttribute()}legacyStyleChanged(){this.syncLegacyStyleAttribute()}syncLegacyStyleAttribute(){this.legacyStyle?this.setAttribute("legacy-style",""):this.removeAttribute("legacy-style")}}t([pt],b4.prototype,"count",void 0),t([pt],b4.prototype,"label",void 0),t([pt({attribute:"legacy-style",mode:"boolean"})],b4.prototype,"legacyStyle",void 0),t([pt({mode:"boolean"})],b4.prototype,"selected",void 0),t([pt({attribute:"text-position"})],b4.prototype,"textPosition",void 0)
20380
- const y4=b4.compose({baseName:"fv-summary-panel-tile",template:g4,styles:m4})
20381
- Ii.getOrCreate().withPrefix("ok").register(y4())
20382
- const w4=_t`
20423
+ `,y4="beside"
20424
+ class w4 extends He{constructor(){super(...arguments),this.count="",this.label="",this.legacyStyle=!1,this.size=p4,this.selected=!1,this.textPosition=y4}connectedCallback(){super.connectedCallback(),this.syncLegacyStyleAttribute()}legacyStyleChanged(){this.syncLegacyStyleAttribute()}syncLegacyStyleAttribute(){this.legacyStyle?this.setAttribute("legacy-style",""):this.removeAttribute("legacy-style")}}t([pt],w4.prototype,"count",void 0),t([pt],w4.prototype,"label",void 0),t([pt({attribute:"legacy-style",mode:"boolean"})],w4.prototype,"legacyStyle",void 0),t([pt],w4.prototype,"size",void 0),t([pt({mode:"boolean"})],w4.prototype,"selected",void 0),t([pt({attribute:"text-position"})],w4.prototype,"textPosition",void 0)
20425
+ const x4=w4.compose({baseName:"fv-summary-panel-tile",template:b4,styles:v4})
20426
+ Ii.getOrCreate().withPrefix("ok").register(x4())
20427
+ const C4=_t`
20383
20428
  @layer base, hover, focusVisible, active, disabled, top;
20384
20429
 
20385
20430
  @layer base {
@@ -20552,7 +20597,7 @@ const w4=_t`
20552
20597
  border-bottom-color: ${hc};
20553
20598
  }
20554
20599
  }
20555
- `,x4=J`
20600
+ `,k4=J`
20556
20601
  <div class="search-input-container">
20557
20602
  <span class="search-input-icon" aria-hidden="true">
20558
20603
  <${Ob}></${Ob}>
@@ -20581,11 +20626,11 @@ const w4=_t`
20581
20626
  </button>
20582
20627
  `)}
20583
20628
  </div>
20584
- `,C4="outline"
20585
- class k4 extends Gi{constructor(){super(...arguments),this.appearance=C4}handleChange(){this.value=this.control.value,super.handleChange()}clear(){return""===this.value||(this.value="",this.control.focus(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))),!0}}t([pt],k4.prototype,"appearance",void 0)
20586
- const S4=k4.compose({baseName:"fv-search-input",baseClass:Gi,template:x4,styles:w4,shadowOptions:{delegatesFocus:!0}})
20587
- Ii.getOrCreate().withPrefix("ok").register(S4())
20588
- const $4=_t`
20629
+ `,S4="outline"
20630
+ class $4 extends Gi{constructor(){super(...arguments),this.appearance=S4}handleChange(){this.value=this.control.value,super.handleChange()}clear(){return""===this.value||(this.value="",this.control.focus(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))),!0}}t([pt],$4.prototype,"appearance",void 0)
20631
+ const _4=$4.compose({baseName:"fv-search-input",baseClass:Gi,template:k4,styles:C4,shadowOptions:{delegatesFocus:!0}})
20632
+ Ii.getOrCreate().withPrefix("ok").register(_4())
20633
+ const I4=_t`
20589
20634
  ${v5("inline-block")}
20590
20635
 
20591
20636
  :host {
@@ -20608,10 +20653,10 @@ const $4=_t`
20608
20653
  :host([disabled]) slot {
20609
20654
  color: ${fd};
20610
20655
  }
20611
- `,_4=J`<slot></slot>`
20612
- const I4=class extends He{}.compose({baseName:"ex-button",template:_4,styles:$4})
20613
- Ii.getOrCreate().withPrefix("ok").register(I4())
20614
- const M4=_t`
20656
+ `,M4=J`<slot></slot>`
20657
+ const E4=class extends He{}.compose({baseName:"ex-button",template:M4,styles:I4})
20658
+ Ii.getOrCreate().withPrefix("ok").register(E4())
20659
+ const A4=_t`
20615
20660
  ${v5("inline-flex")}
20616
20661
 
20617
20662
  :host {
@@ -20625,15 +20670,15 @@ const M4=_t`
20625
20670
  width: 100%;
20626
20671
  height: 100%;
20627
20672
  }
20628
- `,E4=J`<img aria-hidden="true" src=${t=>t.url}>`
20629
- class A4 extends rg{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-ts-icon-dynamic-"
20673
+ `,T4=J`<img aria-hidden="true" src=${t=>t.url}>`
20674
+ class O4 extends rg{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-ts-icon-dynamic-"
20630
20675
  if(!t.startsWith(n))throw new Error(`Icon tag name must start with '${n}', provided name: ${t}`)
20631
20676
  const i=t.substring(19)
20632
20677
  if(!/^[a-z][a-z]+$/.test(i))throw new Error(`Icon name must be lowercase [a-z] and at least two characters long, provided name: ${i}`)
20633
- const o=`TsIconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,r=`ts-icon-dynamic-${i}`,s={[o]:class extends A4{constructor(){super(e)}}}[o].compose({baseName:r,template:E4,styles:M4})
20634
- Ii.getOrCreate().withPrefix("ok").register(s())}}const T4=A4.compose({baseName:"ts-icon-dynamic",template:J`<template></template>`,styles:_t`${v5("none")}`})
20635
- Ii.getOrCreate().withPrefix("ok").register(T4())
20636
- const O4={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:"conditional",hitDisabled:"hit-disabled"},D4="data-breakpoint-state",R4="menu",F4=J`
20678
+ const o=`TsIconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,r=`ts-icon-dynamic-${i}`,s={[o]:class extends O4{constructor(){super(e)}}}[o].compose({baseName:r,template:T4,styles:A4})
20679
+ Ii.getOrCreate().withPrefix("ok").register(s())}}const D4=O4.compose({baseName:"ts-icon-dynamic",template:J`<template></template>`,styles:_t`${v5("none")}`})
20680
+ Ii.getOrCreate().withPrefix("ok").register(D4())
20681
+ const R4={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:"conditional",hitDisabled:"hit-disabled"},F4="data-breakpoint-state",L4="menu",B4=J`
20637
20682
  <template
20638
20683
  ?open="${t=>t.open}"
20639
20684
  @focusout="${(t,e)=>t.focusoutHandler(e.event)}"
@@ -20650,12 +20695,12 @@ const O4={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
20650
20695
  ${""}
20651
20696
  tabindex="-1"
20652
20697
  >
20653
- ${Ut(t=>t.currentState===O4.off,J`<${"spright-icon-breakpoint-hover"} />`)}
20654
- ${Ut(t=>t.currentState===O4.enabled,J`<${"spright-icon-breakpoint-enabled"} />`)}
20655
- ${Ut(t=>t.currentState===O4.disabled,J`<${"spright-icon-breakpoint-disabled"} />`)}
20656
- ${Ut(t=>t.currentState===O4.hit,J`<${"spright-icon-breakpoint-hit"} />`)}
20657
- ${Ut(t=>t.currentState===O4.conditional,J`<${"spright-icon-breakpoint-conditional"} />`)}
20658
- ${Ut(t=>t.currentState===O4.hitDisabled,J`<${"spright-icon-breakpoint-hit-disabled"} />`)}
20698
+ ${Ut(t=>t.currentState===R4.off,J`<${"spright-icon-breakpoint-hover"} />`)}
20699
+ ${Ut(t=>t.currentState===R4.enabled,J`<${"spright-icon-breakpoint-enabled"} />`)}
20700
+ ${Ut(t=>t.currentState===R4.disabled,J`<${"spright-icon-breakpoint-disabled"} />`)}
20701
+ ${Ut(t=>t.currentState===R4.hit,J`<${"spright-icon-breakpoint-hit"} />`)}
20702
+ ${Ut(t=>t.currentState===R4.conditional,J`<${"spright-icon-breakpoint-conditional"} />`)}
20703
+ ${Ut(t=>t.currentState===R4.hitDisabled,J`<${"spright-icon-breakpoint-hit-disabled"} />`)}
20659
20704
  </button>
20660
20705
  ${Ut(t=>t.open,J`
20661
20706
  <${dv}
@@ -20671,12 +20716,12 @@ const O4={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
20671
20716
  ${zt("region")}
20672
20717
  >
20673
20718
  <span part="menu">
20674
- <slot name="${R4}" ${Qt({property:"slottedMenus"})}></slot>
20719
+ <slot name="${L4}" ${Qt({property:"slottedMenus"})}></slot>
20675
20720
  </span>
20676
20721
  </${dv}>
20677
20722
  `)}
20678
20723
  </template>
20679
- `,L4=_t`
20724
+ `,N4=_t`
20680
20725
  ${Ho("inline-flex")}
20681
20726
 
20682
20727
  :host {
@@ -20720,15 +20765,15 @@ const O4={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
20720
20765
  }
20721
20766
 
20722
20767
  `
20723
- class B4 extends OV{constructor(){super(...arguments),this.open=!1,this.focusLastItemWhenOpened=!1,this.restoreRowMenuOpenOnClose=!1,this.breakpointEnabledString="Breakpoint enabled",this.breakpointDisabledString="Breakpoint disabled",this.breakpointHitString="Breakpoint hit",this.breakpointConditionalString="Conditional breakpoint",this.breakpointHitDisabledString="Breakpoint hit (disabled)",this.breakpointAddString="Add breakpoint",this.breakpointRemoveString="Remove breakpoint",this.menuChangeHandler=()=>{this.open=!1,this.button?.focus()}}get currentState(){const t=this.cellRecord?.value
20724
- return t&&Object.values(O4).includes(t)?t:O4.off}get tooltipText(){return this.currentState===O4.off?this.breakpointAddString:this.breakpointRemoveString}get ariaLabelText(){switch(this.currentState){case O4.enabled:return this.breakpointEnabledString
20725
- case O4.disabled:return this.breakpointDisabledString
20726
- case O4.hit:return this.breakpointHitString
20727
- case O4.conditional:return this.breakpointConditionalString
20728
- case O4.hitDisabled:return this.breakpointHitDisabledString
20768
+ class z4 extends OV{constructor(){super(...arguments),this.open=!1,this.focusLastItemWhenOpened=!1,this.restoreRowMenuOpenOnClose=!1,this.breakpointEnabledString="Breakpoint enabled",this.breakpointDisabledString="Breakpoint disabled",this.breakpointHitString="Breakpoint hit",this.breakpointConditionalString="Conditional breakpoint",this.breakpointHitDisabledString="Breakpoint hit (disabled)",this.breakpointAddString="Add breakpoint",this.breakpointRemoveString="Remove breakpoint",this.menuChangeHandler=()=>{this.open=!1,this.button?.focus()}}get currentState(){const t=this.cellRecord?.value
20769
+ return t&&Object.values(R4).includes(t)?t:R4.off}get tooltipText(){return this.currentState===R4.off?this.breakpointAddString:this.breakpointRemoveString}get ariaLabelText(){switch(this.currentState){case R4.enabled:return this.breakpointEnabledString
20770
+ case R4.disabled:return this.breakpointDisabledString
20771
+ case R4.hit:return this.breakpointHitString
20772
+ case R4.conditional:return this.breakpointConditionalString
20773
+ case R4.hitDisabled:return this.breakpointHitDisabledString
20729
20774
  default:return this.breakpointAddString}}get menuPosition(){return this.columnConfig?.position??Xy}get tabbableChildren(){return this.button?[this.button]:[]}onButtonClick(t){t.stopPropagation()
20730
- const e=this.currentState,n=e===O4.off?O4.enabled:O4.off
20731
- this.emitToggle(e,n)}onContextMenu(t){t.preventDefault(),t.stopPropagation(),this.requestContextMenu()}onKeyDown(t){return"F10"===t.key&&t.shiftKey||t.key===B4.menuKeyAlias||t.key===B4.contextMenuKeyAlias?(t.preventDefault(),t.stopPropagation(),this.requestContextMenu(),!1):"F9"===t.key||(t.ctrlKey||t.metaKey)&&"b"===t.key.toLowerCase()?(t.preventDefault(),t.stopPropagation(),this.onButtonClick(t),!1):"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),this.focusLastItemWhenOpened=!1,this.requestContextMenu(),!1):"ArrowUp"!==t.key||(t.preventDefault(),t.stopPropagation(),this.focusLastItemWhenOpened=!0,this.requestContextMenu(),!1)}regionLoadedHandler(){this.focusLastItemWhenOpened?(this.focusLastItemWhenOpened=!1,this.focusLastMenuItem()):this.focusMenu()}regionChanged(t,e){t&&t.removeEventListener("change",this.menuChangeHandler,{capture:!0}),this.region&&(this.region.anchorElement=this.button??this,this.region.addEventListener("change",this.menuChangeHandler,{capture:!0}))}buttonChanged(){this.region&&(this.region.anchorElement=this.button??this)}openChanged(t,e){const n=this.getOwningRow()
20775
+ const e=this.currentState,n=e===R4.off?R4.enabled:R4.off
20776
+ this.emitToggle(e,n)}onContextMenu(t){t.preventDefault(),t.stopPropagation(),this.requestContextMenu()}onKeyDown(t){return"F10"===t.key&&t.shiftKey||t.key===z4.menuKeyAlias||t.key===z4.contextMenuKeyAlias?(t.preventDefault(),t.stopPropagation(),this.requestContextMenu(),!1):"F9"===t.key||(t.ctrlKey||t.metaKey)&&"b"===t.key.toLowerCase()?(t.preventDefault(),t.stopPropagation(),this.onButtonClick(t),!1):"ArrowDown"===t.key?(t.preventDefault(),t.stopPropagation(),this.focusLastItemWhenOpened=!1,this.requestContextMenu(),!1):"ArrowUp"!==t.key||(t.preventDefault(),t.stopPropagation(),this.focusLastItemWhenOpened=!0,this.requestContextMenu(),!1)}regionLoadedHandler(){this.focusLastItemWhenOpened?(this.focusLastItemWhenOpened=!1,this.focusLastMenuItem()):this.focusMenu()}regionChanged(t,e){t&&t.removeEventListener("change",this.menuChangeHandler,{capture:!0}),this.region&&(this.region.anchorElement=this.button??this,this.region.addEventListener("change",this.menuChangeHandler,{capture:!0}))}buttonChanged(){this.region&&(this.region.anchorElement=this.button??this)}openChanged(t,e){const n=this.getOwningRow()
20732
20777
  if(n)return e?(this.restoreRowMenuOpenOnClose=!n.hasAttribute("menu-open"),void(n.menuOpen=!0)):void(this.restoreRowMenuOpenOnClose&&(n.menuOpen=!1,this.restoreRowMenuOpenOnClose=!1))}focusoutHandler(t){if(!this.open)return!0
20733
20778
  const e=t.relatedTarget
20734
20779
  return!!(this.contains(e)||this.region?.contains(e)||this.getMenu()?.contains(e))||(this.open=!1,!1)}contextMenuKeyDownHandler(t){return"Escape"!==t.key||(this.open=!1,this.button?.focus(),!1)}onContextMenuChange(t){const e=this.getRequestedStateFromEvent(t)
@@ -20743,7 +20788,7 @@ t=e instanceof HTMLElement?e:void 0}}}isSlotElement(t){return"SLOT"===t?.nodeNam
20743
20788
  if(t&&t.length>0){t[t.length-1].focus()}}emitToggle(t,e){const n={recordId:this.recordId,newState:e,oldState:t}
20744
20789
  this.$emit("breakpoint-column-toggle",n)}requestContextMenu(){this.openMenuFromColumnSlot()}openMenuFromColumnSlot(){const t=this.columnConfig?.menuSlot
20745
20790
  if(!t)return
20746
- const e={slots:[{name:t,slot:R4}]}
20791
+ const e={slots:[{name:t,slot:L4}]}
20747
20792
  this.$emit("cell-view-slots-request",e),this.open=!0}getOwningRow(){const t=this.getRootNode()
20748
20793
  if(!(t instanceof ShadowRoot))return
20749
20794
  const e=t.host
@@ -20753,23 +20798,23 @@ if(!(n instanceof ShadowRoot))return
20753
20798
  const i=n.host
20754
20799
  return i instanceof HTMLElement&&"nimble-table-row"===i.localName?i:void 0}getRequestedStateFromEvent(t){const e=t.target
20755
20800
  if(!(e instanceof HTMLElement))return
20756
- const n=e.closest(`[${D4}]`)
20801
+ const n=e.closest(`[${F4}]`)
20757
20802
  if(!n)return
20758
- const i=n.getAttribute(D4)
20759
- return i&&Object.values(O4).includes(i)?i:void 0}}B4.menuKeyAlias="Menu",B4.contextMenuKeyAlias="ContextMenu",t([pt({mode:"boolean"})],B4.prototype,"open",void 0),t([C],B4.prototype,"region",void 0),t([C],B4.prototype,"slottedMenus",void 0),t([C],B4.prototype,"breakpointEnabledString",void 0),t([C],B4.prototype,"breakpointDisabledString",void 0),t([C],B4.prototype,"breakpointHitString",void 0),t([C],B4.prototype,"breakpointConditionalString",void 0),t([C],B4.prototype,"breakpointHitDisabledString",void 0),t([C],B4.prototype,"breakpointAddString",void 0),t([C],B4.prototype,"breakpointRemoveString",void 0)
20760
- const N4=B4.compose({baseName:"ts-table-column-breakpoint-cell-view",template:F4,styles:L4})
20761
- Ii.getOrCreate().withPrefix("ok").register(N4())
20762
- const z4=J`
20803
+ const i=n.getAttribute(F4)
20804
+ return i&&Object.values(R4).includes(i)?i:void 0}}z4.menuKeyAlias="Menu",z4.contextMenuKeyAlias="ContextMenu",t([pt({mode:"boolean"})],z4.prototype,"open",void 0),t([C],z4.prototype,"region",void 0),t([C],z4.prototype,"slottedMenus",void 0),t([C],z4.prototype,"breakpointEnabledString",void 0),t([C],z4.prototype,"breakpointDisabledString",void 0),t([C],z4.prototype,"breakpointHitString",void 0),t([C],z4.prototype,"breakpointConditionalString",void 0),t([C],z4.prototype,"breakpointHitDisabledString",void 0),t([C],z4.prototype,"breakpointAddString",void 0),t([C],z4.prototype,"breakpointRemoveString",void 0)
20805
+ const P4=z4.compose({baseName:"ts-table-column-breakpoint-cell-view",template:B4,styles:N4})
20806
+ Ii.getOrCreate().withPrefix("ok").register(P4())
20807
+ const V4=J`
20763
20808
  <template @delegated-event="${(t,e)=>t.onDelegatedEvent(e.event)}"
20764
20809
  >${YH}</template
20765
20810
  >
20766
20811
  `
20767
- class P4 extends(NU(NV)){constructor(){super(),this.position=Xy,this.columnInternals.resizingDisabled=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32}onDelegatedEvent(t){t.stopImmediatePropagation()
20812
+ class H4 extends(NU(NV)){constructor(){super(),this.position=Xy,this.columnInternals.resizingDisabled=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32}onDelegatedEvent(t){t.stopImmediatePropagation()
20768
20813
  const e=t
20769
20814
  if("breakpoint-column-toggle"===e.detail.originalEvent.type){const t={...e.detail.originalEvent.detail,recordId:e.detail.recordId}
20770
20815
  this.$emit("breakpoint-column-toggle",t)}else if("breakpoint-column-state-change-requested"===e.detail.originalEvent.type){const t={...e.detail.originalEvent.detail,recordId:e.detail.recordId}
20771
20816
  this.$emit("breakpoint-column-state-change-requested",t)}}requestBreakpointStateChange(t,e,n){const i={recordId:t,currentState:e,requestedState:n}
20772
- this.$emit("breakpoint-column-state-change-requested",i)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"ok-ts-table-column-breakpoint-cell-view",delegatedEvents:["breakpoint-column-toggle","breakpoint-column-state-change-requested"],slotNames:[R4],validator:new jH([])}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}menuSlotChanged(){this.updateColumnConfig()}positionChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={menuSlot:this.menuSlot,position:this.position}}}t([pt({attribute:"field-name"})],P4.prototype,"fieldName",void 0),t([pt({attribute:"menu-slot"})],P4.prototype,"menuSlot",void 0),t([pt],P4.prototype,"position",void 0)
20773
- const V4=P4.compose({baseName:"ts-table-column-breakpoint",template:z4,styles:KH})
20774
- Ii.getOrCreate().withPrefix("ok").register(V4())}()
20817
+ this.$emit("breakpoint-column-state-change-requested",i)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"ok-ts-table-column-breakpoint-cell-view",delegatedEvents:["breakpoint-column-toggle","breakpoint-column-state-change-requested"],slotNames:[L4],validator:new jH([])}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}menuSlotChanged(){this.updateColumnConfig()}positionChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={menuSlot:this.menuSlot,position:this.position}}}t([pt({attribute:"field-name"})],H4.prototype,"fieldName",void 0),t([pt({attribute:"menu-slot"})],H4.prototype,"menuSlot",void 0),t([pt],H4.prototype,"position",void 0)
20818
+ const U4=H4.compose({baseName:"ts-table-column-breakpoint",template:V4,styles:KH})
20819
+ Ii.getOrCreate().withPrefix("ok").register(U4())}()
20775
20820
  //# sourceMappingURL=all-components-bundle.min.js.map