@ni/ok-components 1.14.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/all-components-bundle.js +1015 -422
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +531 -329
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/custom-elements.json +241 -0
  6. package/dist/custom-elements.md +34 -0
  7. package/dist/esm/fv/all-fv.d.ts +1 -0
  8. package/dist/esm/fv/all-fv.js +1 -0
  9. package/dist/esm/fv/all-fv.js.map +1 -1
  10. package/dist/esm/fv/multi-select/index.d.ts +100 -0
  11. package/dist/esm/fv/multi-select/index.js +367 -0
  12. package/dist/esm/fv/multi-select/index.js.map +1 -0
  13. package/dist/esm/fv/multi-select/models/form-associated.d.ts +16 -0
  14. package/dist/esm/fv/multi-select/models/form-associated.js +17 -0
  15. package/dist/esm/fv/multi-select/models/form-associated.js.map +1 -0
  16. package/dist/esm/fv/multi-select/styles.d.ts +1 -0
  17. package/dist/esm/fv/multi-select/styles.js +241 -0
  18. package/dist/esm/fv/multi-select/styles.js.map +1 -0
  19. package/dist/esm/fv/multi-select/template.d.ts +2 -0
  20. package/dist/esm/fv/multi-select/template.js +171 -0
  21. package/dist/esm/fv/multi-select/template.js.map +1 -0
  22. package/dist/esm/fv/multi-select/types.d.ts +8 -0
  23. package/dist/esm/fv/multi-select/types.js +2 -0
  24. package/dist/esm/fv/multi-select/types.js.map +1 -0
  25. package/dist/esm/fv/split-button/styles.js +45 -5
  26. package/dist/esm/fv/split-button/styles.js.map +1 -1
  27. package/dist/esm/fv/split-button/template.js +3 -1
  28. package/dist/esm/fv/split-button/template.js.map +1 -1
  29. package/dist/esm/fv/split-button-anchor/index.d.ts +2 -2
  30. package/dist/esm/fv/split-button-anchor/index.js +4 -4
  31. package/dist/esm/fv/split-button-anchor/index.js.map +1 -1
  32. package/dist/esm/fv/split-button-anchor/styles.d.ts +1 -1
  33. package/dist/esm/fv/split-button-anchor/styles.js +1 -227
  34. package/dist/esm/fv/split-button-anchor/styles.js.map +1 -1
  35. package/dist/esm/fv/split-button-anchor/template.js +9 -4
  36. package/dist/esm/fv/split-button-anchor/template.js.map +1 -1
  37. package/package.json +1 -1
@@ -20395,6 +20395,385 @@ o?this.setSelectedItem(o,t&&o!==this.selectedItem):this.setSelectedItem(n,t&&n!=
20395
20395
  const a7=r7.compose({baseName:"fv-master-detail-list",template:s7,styles:o7,shadowOptions:{delegatesFocus:!0}})
20396
20396
  Ei.getOrCreate().withPrefix("ok").register(a7())
20397
20397
  const l7=It`
20398
+ ${l8("inline-block")}
20399
+
20400
+ :host {
20401
+ width: 300px;
20402
+ max-width: 100%;
20403
+ font: ${bd};
20404
+ color: ${yd};
20405
+ }
20406
+
20407
+ .label {
20408
+ display: block;
20409
+ margin-bottom: ${Bc};
20410
+ font: ${Rd};
20411
+ color: ${Fd};
20412
+ }
20413
+
20414
+ .control-field {
20415
+ position: relative;
20416
+ display: flex;
20417
+ align-items: center;
20418
+ gap: ${Bc};
20419
+ width: 100%;
20420
+ height: ${Fc};
20421
+ box-sizing: border-box;
20422
+ padding: 0 ${Nc};
20423
+ border: ${Hc} solid transparent;
20424
+ border-bottom-color: rgba(${dc}, 0.3);
20425
+ border-radius: 0;
20426
+ font: inherit;
20427
+ color: inherit;
20428
+ background: transparent;
20429
+ text-align: start;
20430
+ cursor: pointer;
20431
+ }
20432
+
20433
+ .control {
20434
+ display: flex;
20435
+ align-items: center;
20436
+ flex: 1;
20437
+ min-width: 0;
20438
+ height: 100%;
20439
+ padding: 0;
20440
+ border: none;
20441
+ font: inherit;
20442
+ color: inherit;
20443
+ background: transparent;
20444
+ text-align: start;
20445
+ cursor: inherit;
20446
+ outline: none;
20447
+ }
20448
+
20449
+ .clear-button {
20450
+ flex: none;
20451
+ height: ${Lc};
20452
+ }
20453
+
20454
+ :host([appearance='outline']) .control-field {
20455
+ border-color: rgba(${dc}, 0.3);
20456
+ }
20457
+
20458
+ :host([appearance='block']) .control-field {
20459
+ background: rgba(${dc}, 0.1);
20460
+ border-color: transparent;
20461
+ }
20462
+
20463
+ :host([appearance='frameless']) .control-field {
20464
+ border-color: transparent;
20465
+ }
20466
+
20467
+ :host([open]:not(:hover)) .control-field {
20468
+ border-bottom-color: ${gc};
20469
+ }
20470
+
20471
+ .control-field::before,
20472
+ .control-field::after {
20473
+ content: '';
20474
+ position: absolute;
20475
+ left: 50%;
20476
+ transform: translateX(-50%);
20477
+ width: 0;
20478
+ height: 0;
20479
+ pointer-events: none;
20480
+ transition: width ${nh} ease-in;
20481
+ }
20482
+
20483
+ .control-field::before {
20484
+ bottom: calc(${Hc} + 1px);
20485
+ border-bottom: 1px solid ${gc};
20486
+ }
20487
+
20488
+ .control-field::after {
20489
+ bottom: calc(-1 * ${Hc});
20490
+ border-bottom: calc(${Hc} + 1px) solid ${gc};
20491
+ }
20492
+
20493
+ :host(:not([disabled], :disabled)) .control-field:has(.control${jo})::before {
20494
+ width: calc(100% - 8px);
20495
+ }
20496
+
20497
+ :host(:not([disabled], :disabled)) .control-field:hover::after,
20498
+ :host(:not([disabled], :disabled)) .control-field:has(.control${jo})::after {
20499
+ width: 100%;
20500
+ }
20501
+
20502
+ @media (prefers-reduced-motion) {
20503
+ .control-field::before,
20504
+ .control-field::after {
20505
+ transition-duration: 0s;
20506
+ }
20507
+ }
20508
+
20509
+ .selected-value {
20510
+ flex: 1;
20511
+ min-width: 0;
20512
+ overflow: hidden;
20513
+ text-overflow: ellipsis;
20514
+ white-space: nowrap;
20515
+ }
20516
+
20517
+ .placeholder,
20518
+ .empty {
20519
+ color: ${vd};
20520
+ }
20521
+
20522
+ .anchored-region.bottom {
20523
+ padding-top: ${Bc};
20524
+ }
20525
+
20526
+ .anchored-region.top {
20527
+ padding-bottom: ${Bc};
20528
+ }
20529
+
20530
+ .popup {
20531
+ display: flex;
20532
+ flex-direction: column;
20533
+ width: 100%;
20534
+ max-height: max(0px, calc(var(--ok-fv-multi-select-available-height, 100vh) - ${Bc}));
20535
+ box-sizing: border-box;
20536
+ border: ${Hc} solid ${yc};
20537
+ background: ${Ql};
20538
+ box-shadow: ${Jc};
20539
+ }
20540
+
20541
+ .filter-field {
20542
+ flex-shrink: 0;
20543
+ display: flex;
20544
+ align-items: center;
20545
+ height: ${Fc};
20546
+ background: transparent;
20547
+ box-shadow: 0 2px rgba(${dc}, 0.1);
20548
+ }
20549
+
20550
+ .filter-icon {
20551
+ flex-shrink: 0;
20552
+ margin-left: ${Bc};
20553
+ ${vc.cssCustomProperty}: ${vd};
20554
+ }
20555
+
20556
+ .filter-input {
20557
+ width: 100%;
20558
+ min-width: 0;
20559
+ height: ${Fc};
20560
+ padding: 0 ${Bc} 0 ${Pc};
20561
+ border: none;
20562
+ outline: none;
20563
+ font: inherit;
20564
+ color: inherit;
20565
+ background: transparent;
20566
+ }
20567
+
20568
+ .filter-input::placeholder {
20569
+ color: ${vd};
20570
+ }
20571
+
20572
+ .listbox {
20573
+ min-height: 0;
20574
+ max-height: 240px;
20575
+ overflow-y: auto;
20576
+ outline: none;
20577
+ }
20578
+
20579
+ .option {
20580
+ display: flex;
20581
+ align-items: center;
20582
+ gap: ${Bc};
20583
+ min-height: ${Fc};
20584
+ padding: 0 ${Nc};
20585
+ cursor: pointer;
20586
+ }
20587
+
20588
+ .option-label {
20589
+ overflow: hidden;
20590
+ text-overflow: ellipsis;
20591
+ white-space: nowrap;
20592
+ }
20593
+
20594
+ .option nimble-checkbox {
20595
+ flex: none;
20596
+ pointer-events: none;
20597
+ }
20598
+
20599
+ .option:not([aria-disabled='true']):hover {
20600
+ background: ${lc};
20601
+ }
20602
+
20603
+ .keyboard-navigation .option.active {
20604
+ background: ${sc};
20605
+ }
20606
+
20607
+ .keyboard-navigation .option.active:hover {
20608
+ background: ${ac};
20609
+ }
20610
+
20611
+ :host(:is([disabled], :disabled)) .control-field,
20612
+ :host(:is([disabled], :disabled)) .label,
20613
+ .option[aria-disabled='true'] {
20614
+ color: ${wd};
20615
+ cursor: default;
20616
+ }
20617
+
20618
+ :host(:is([disabled], :disabled)) .control-field {
20619
+ ${vc.cssCustomProperty}: ${wd};
20620
+ }
20621
+
20622
+ .empty {
20623
+ flex-shrink: 0;
20624
+ padding: ${Nc};
20625
+ }
20626
+ `.withBehaviors(Oh(Zo,It`
20627
+ .filter-field {
20628
+ background: rgba(255, 255, 255, 0.15);
20629
+ }
20630
+ `)),c7=Q`
20631
+ <template
20632
+ @focusout="${(t,e)=>t.handleFocusout(e.event)}"
20633
+ @click="${(t,e)=>(e.event.composedPath()[0]!==t||t.effectiveDisabled||t.control.focus(),!0)}"
20634
+ >
20635
+ ${qt(t=>t.label.length>0,Q`
20636
+ <label class="label" id="${t=>`${t.controlId}-label`}" for="${t=>t.controlId}">${t=>t.label}</label>
20637
+ `)}
20638
+ <div ${zt("controlField")} class="control-field"
20639
+ @keypress="${(t,e)=>(e.event.stopPropagation(),!0)}"
20640
+ @click="${t=>{t.open=!t.open}}"
20641
+ @pointerdown="${t=>(t.keyboardNavigation=!1,!0)}">
20642
+ <button
20643
+ ${zt("control")}
20644
+ id="${t=>t.controlId}"
20645
+ class="control"
20646
+ part="control"
20647
+ type="button"
20648
+ ?disabled="${t=>t.effectiveDisabled}"
20649
+ aria-labelledby="${t=>`${t.label?`${t.controlId}-label `:""}${t.controlId}-value`}"
20650
+ aria-haspopup="listbox"
20651
+ aria-expanded="${t=>t.open}"
20652
+ aria-controls="${t=>t.listboxId}"
20653
+ @keydown="${(t,e)=>t.handleControlKeydown(e.event)}"
20654
+ >
20655
+ <span class="selected-value ${t=>0===t.selectedValues.length?"placeholder":""}"
20656
+ id="${t=>`${t.controlId}-value`}"
20657
+ part="selected-value" title="${t=>t.displayValue||null}">
20658
+ ${t=>t.displayValue||t.placeholder}
20659
+ </span>
20660
+ </button>
20661
+ ${qt(t=>t.clearable&&!t.effectiveDisabled&&t.selectedValues.length>0,Q`
20662
+ <${fv}
20663
+ class="clear-button"
20664
+ part="clear-button"
20665
+ tabindex="-1"
20666
+ appearance="ghost"
20667
+ content-hidden
20668
+ aria-label="Clear selection"
20669
+ @click="${(t,e)=>{e.event.stopPropagation(),t.clearSelection()}}"
20670
+ >
20671
+ <${Av} slot="start"></${Av}>
20672
+ </${fv}>
20673
+ `)}
20674
+ <${ub} aria-hidden="true"></${ub}>
20675
+ </div>
20676
+ <${Iv}
20677
+ ${zt("region")}
20678
+ class="anchored-region"
20679
+ fixed-placement
20680
+ auto-update-mode="auto"
20681
+ vertical-default-position="bottom"
20682
+ vertical-positioning-mode="dynamic"
20683
+ horizontal-default-position="center"
20684
+ horizontal-positioning-mode="locktodefault"
20685
+ horizontal-scaling="anchor"
20686
+ ?hidden="${t=>!t.open}"
20687
+ @loaded="${t=>t.focusPopup()}"
20688
+ >
20689
+ <div class="popup ${t=>t.keyboardNavigation?"keyboard-navigation":""}"
20690
+ @keypress="${(t,e)=>(e.event.stopPropagation(),!0)}"
20691
+ @pointerdown="${t=>(t.keyboardNavigation=!1,!0)}"
20692
+ @keydown="${(t,e)=>t.handlePopupKeydown(e.event)}">
20693
+ ${qt(t=>t.filterable,Q`
20694
+ <div class="filter-field">
20695
+ <${Qb} class="filter-icon" aria-hidden="true"></${Qb}>
20696
+ <input
20697
+ ${zt("filterInput")}
20698
+ class="filter-input"
20699
+ type="text"
20700
+ role="combobox"
20701
+ autocomplete="off"
20702
+ aria-autocomplete="list"
20703
+ aria-expanded="${t=>t.open}"
20704
+ aria-controls="${t=>t.listboxId}"
20705
+ aria-activedescendant="${t=>t.activeOptionId}"
20706
+ aria-label="${t=>Yg.getValueFor(t)}"
20707
+ placeholder="${t=>Yg.getValueFor(t)}"
20708
+ :value="${t=>t.filter}"
20709
+ @input="${(t,e)=>(t.handleInput(e.event),!0)}"
20710
+ @change="${(t,e)=>(e.event.stopPropagation(),!0)}"
20711
+ />
20712
+ </div>
20713
+ `)}
20714
+ <div ${zt("listbox")}
20715
+ id="${t=>t.listboxId}"
20716
+ class="listbox"
20717
+ part="listbox"
20718
+ role="listbox"
20719
+ aria-label="${t=>t.label||t.placeholder||null}"
20720
+ aria-multiselectable="true"
20721
+ aria-required="${t=>t.required}"
20722
+ aria-activedescendant="${t=>t.filterable?null:t.activeOptionId}"
20723
+ tabindex="${t=>t.filterable?"-1":"0"}"
20724
+ >
20725
+ ${Yt(t=>t.visibleOptions,Q`
20726
+ <div
20727
+ id="${(t,e)=>`${e.parent.listboxId}-${e.index}`}"
20728
+ class="option ${(t,e)=>e.parent.activeIndex===e.index?"active":""}"
20729
+ part="option"
20730
+ role="option"
20731
+ aria-selected="${(t,e)=>e.parent.selectedValues.includes(t.value)}"
20732
+ aria-disabled="${t=>!!t.disabled}"
20733
+ @mousedown="${()=>!1}"
20734
+ @click="${(t,e)=>{t.disabled||(e.parent.keyboardNavigation=!1,e.parent.activeIndex=e.index,e.parent.toggleOption(t))}}"
20735
+ >
20736
+ <${tb}
20737
+ inert
20738
+ aria-hidden="true"
20739
+ tabindex="-1"
20740
+ :checked="${(t,e)=>e.parent.selectedValues.includes(t.value)}"
20741
+ ?disabled="${t=>!!t.disabled}"
20742
+ @change="${(t,e)=>(e.event.stopPropagation(),!0)}"
20743
+ ></${tb}>
20744
+ <span class="option-label" title="${t=>t.label}">${t=>t.label}</span>
20745
+ </div>
20746
+ `,{positioning:!0})}
20747
+ </div>
20748
+ ${qt(t=>0===t.visibleOptions.length,Q`
20749
+ <div class="empty" role="status">${t=>Xg.getValueFor(t)}</div>
20750
+ `)}
20751
+ </div>
20752
+ </${Iv}>
20753
+ </template>
20754
+ `
20755
+ class d7 extends qe{}class h7 extends(Rn(d7)){constructor(){super(...arguments),this.proxy=Object.assign(document.createElement("select"),{multiple:!0})}}class u7 extends h7{constructor(){super(...arguments),this.appearance=fb,this.label="",this.placeholder="",this.filterable=!1,this.clearable=!1,this.open=!1,this.options=[],this.selectedValues=[],this.filter="",this.activeIndex=-1,this.keyboardNavigation=!1,this.controlId=xn("ok-fv-multi-select-"),this.listboxId=`${this.controlId}-listbox`,this.formDisabled=!1,this.updatePopupLayout=()=>{if(this.open&&this.isConnected){const t=this.controlField.getBoundingClientRect(),e=Math.max(0,t.top,window.innerHeight-t.bottom)
20756
+ this.style.setProperty("--ok-fv-multi-select-available-height",`${e}px`),this.region.update()}},this.documentClickHandler=t=>{this.open&&!t.composedPath().includes(this)&&(this.open=!1)}}get effectiveDisabled(){return this.disabled||this.formDisabled}get visibleOptions(){const t=JO(this.filter)
20757
+ return this.options.filter(e=>!this.filterable||JO(e.label).includes(t))}get displayValue(){return this.selectedValues.map(t=>this.options.find(e=>e.value===t)?.label??t).join(", ")}get activeOptionId(){return this.open&&this.activeIndex>=0?`${this.listboxId}-${this.activeIndex}`:null}connectedCallback(){this.initialSelectedValues??(this.initialSelectedValues=[...this.selectedValues]),super.connectedCallback(),this.syncFormValue(),document.addEventListener("click",this.documentClickHandler),window.addEventListener("resize",this.updatePopupLayout),window.addEventListener("scroll",this.updatePopupLayout,!0),this.resetActiveOption(),this.open&&this.openChanged()}disconnectedCallback(){document.removeEventListener("click",this.documentClickHandler),window.removeEventListener("resize",this.updatePopupLayout),window.removeEventListener("scroll",this.updatePopupLayout,!0),super.disconnectedCallback()}disabledChanged(t,e){super.disabledChanged?.(t,e),this.disabled&&(this.open=!1),this.syncFormValue()}formDisabledCallback(t){this.formDisabled=t,t&&(this.open=!1),this.syncFormValue()}selectedValuesChanged(){this.syncFormValue()}nameChanged(t,e){super.nameChanged?.(t,e),this.syncFormValue()}valueChanged(){this.syncFormValue()}validate(){this.effectiveDisabled?this.setValidity({}):super.validate(this.control)}formResetCallback(){this.open=!1,this.selectedValues=[...this.initialSelectedValues??[]]}async openChanged(){if(!this.open||!this.effectiveDisabled)return this.open?void(this.$fastController.isConnected&&(this.region.anchorElement=this.controlField,this.updatePopupLayout(),this.resetActiveOption(),await y.nextUpdate(),this.focusPopup())):(this.$fastController.isConnected&&(this.region.anchorElement=null),this.filter="",this.activeIndex=-1,void(this.keyboardNavigation=!1))
20758
+ this.open=!1}focusPopup(){this.open&&this.isConnected&&((this.filterable?this.filterInput:this.listbox)?.focus(),this.scrollActiveOptionIntoView())}optionsChanged(){this.resetActiveOption()}filterChanged(){this.resetActiveOption()}async filterableChanged(){if(this.filter="",this.open){if(this.resetActiveOption(),!this.filterable)return void this.listbox?.focus()
20759
+ await y.nextUpdate(),this.focusPopup()}}toggleOption(t){this.effectiveDisabled||t.disabled||(this.selectedValues=this.selectedValues.includes(t.value)?this.selectedValues.filter(e=>e!==t.value):[...this.selectedValues,t.value],this.$emit("input"),this.$emit("change"))}clearSelection(){!this.effectiveDisabled&&this.clearable&&0!==this.selectedValues.length&&(this.open=!1,this.selectedValues=[],this.control.focus(),this.$emit("input"),this.$emit("change"))}handleInput(t){this.filter=t.target.value,t.stopPropagation()}handleControlKeydown(t){return this.keyboardNavigation=!0,"Escape"!==t.key||this.open||this.clearSelection(),"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(this.open=!this.effectiveDisabled,"ArrowUp"===t.key&&this.moveActiveOption(-1,!0),!1)}handlePopupKeydown(t){if(t.isComposing)return!0
20760
+ if("Escape"===t.key||"Tab"===t.key)return this.open=!1,y.processUpdates(),this.control.focus(),"Tab"===t.key
20761
+ if("ArrowDown"===t.key||"ArrowUp"===t.key)return this.keyboardNavigation=!0,this.moveActiveOption("ArrowDown"===t.key?1:-1),!1
20762
+ const e=t.target===this.filterInput
20763
+ if(!e&&("Home"===t.key||"End"===t.key))return this.keyboardNavigation=!0,this.moveActiveOption("Home"===t.key?1:-1,!0),!1
20764
+ if("Enter"===t.key||!e&&" "===t.key){const t=this.visibleOptions[this.activeIndex]
20765
+ return t&&this.toggleOption(t),!1}return!0}handleFocusout(t){const e=t.relatedTarget
20766
+ e instanceof Node&&(this.contains(e)||this.shadowRoot?.contains(e))||(this.open=!1)}resetActiveOption(){this.$fastController.isConnected&&(this.activeIndex=this.visibleOptions.findIndex(t=>!t.disabled),this.scrollActiveOptionIntoView())}scrollActiveOptionIntoView(){requestAnimationFrame(()=>{this.open&&this.isConnected&&this.shadowRoot?.getElementById(this.activeOptionId??"")?.scrollIntoView({block:"nearest"})})}syncFormValue(){if(!this.$fastController.isConnected)return
20767
+ this.proxy.required=this.required,this.proxy.disabled=this.effectiveDisabled,this.proxy.replaceChildren(...this.selectedValues.map(t=>new Option(t,t,!1,!0)))
20768
+ const t=new FormData
20769
+ if(this.name)for(const e of this.selectedValues)t.append(this.name,e)
20770
+ this.setFormValue(this.effectiveDisabled?null:t),this.validate()}moveActiveOption(t,e=!1){const n=this.visibleOptions
20771
+ let i=this.activeIndex
20772
+ for(e&&(i=t>0?-1:n.length),i+=t;i>=0&&i<n.length;i+=t)if(!n[i].disabled){this.activeIndex=i,this.scrollActiveOptionIntoView()
20773
+ break}}}t([ft],u7.prototype,"appearance",void 0),t([ft],u7.prototype,"label",void 0),t([ft],u7.prototype,"placeholder",void 0),t([ft({mode:"boolean"})],u7.prototype,"filterable",void 0),t([ft({mode:"boolean"})],u7.prototype,"clearable",void 0),t([ft({mode:"boolean"})],u7.prototype,"open",void 0),t([k],u7.prototype,"options",void 0),t([k],u7.prototype,"selectedValues",void 0),t([k],u7.prototype,"filter",void 0),t([k],u7.prototype,"activeIndex",void 0),t([k],u7.prototype,"keyboardNavigation",void 0),t([k],u7.prototype,"formDisabled",void 0),t([S],u7.prototype,"effectiveDisabled",null),t([S],u7.prototype,"activeOptionId",null)
20774
+ const p7=u7.compose({baseName:"fv-multi-select",baseClass:h7,template:c7,styles:l7,shadowOptions:{delegatesFocus:!0}})
20775
+ Ei.getOrCreate().withPrefix("ok").register(p7())
20776
+ const f7=It`
20398
20777
  @layer base, hover, focusVisible, active, disabled, top;
20399
20778
 
20400
20779
  @layer base {
@@ -20502,9 +20881,32 @@ const l7=It`
20502
20881
  }
20503
20882
 
20504
20883
  .split-button-primary {
20884
+ display: inline-flex;
20885
+ align-items: center;
20886
+ justify-content: center;
20505
20887
  padding: 0 ${Nc};
20506
20888
  padding-inline-end: ${Pc};
20507
20889
  white-space: nowrap;
20890
+ text-decoration: none;
20891
+ }
20892
+
20893
+ slot[name='start']::slotted(*),
20894
+ slot[name='end']::slotted(*) {
20895
+ flex-shrink: 0;
20896
+ color: currentColor;
20897
+ ${vc.cssCustomProperty}: currentColor;
20898
+ }
20899
+
20900
+ slot[name='start']::slotted(*) {
20901
+ margin-inline-end: ${Bc};
20902
+ }
20903
+
20904
+ slot[name='end']::slotted(*) {
20905
+ margin-inline-start: ${Bc};
20906
+ }
20907
+
20908
+ .split-button-primary-disabled {
20909
+ cursor: default;
20508
20910
  }
20509
20911
 
20510
20912
  .split-button-toggle {
@@ -20538,21 +20940,21 @@ const l7=It`
20538
20940
  }
20539
20941
 
20540
20942
  @layer hover {
20541
- .split-button-primary:enabled:hover,
20943
+ .split-button-primary:is(:enabled, [href]):hover,
20542
20944
  .split-button-toggle:enabled:hover {
20543
20945
  border-color: ${gc};
20544
20946
  box-shadow: 0 0 0 ${Hc} ${gc} inset;
20545
20947
  z-index: 1;
20546
20948
  }
20547
20949
 
20548
- .split-button-primary:enabled:hover + .split-button-toggle::after,
20950
+ .split-button-primary:is(:enabled, [href]):hover + .split-button-toggle::after,
20549
20951
  .split-button-toggle:enabled:hover::after {
20550
20952
  visibility: hidden;
20551
20953
  }
20552
20954
  }
20553
20955
 
20554
20956
  @layer focusVisible {
20555
- .split-button-primary:enabled:focus-visible,
20957
+ .split-button-primary:is(:enabled, [href]):focus-visible,
20556
20958
  .split-button-toggle:enabled:focus-visible {
20557
20959
  border-color: ${gc};
20558
20960
  box-shadow: 0 0 0 ${Hc} ${gc} inset;
@@ -20571,7 +20973,7 @@ const l7=It`
20571
20973
  }
20572
20974
 
20573
20975
  @layer active {
20574
- .split-button-primary:enabled:active,
20976
+ .split-button-primary:is(:enabled, [href]):active,
20575
20977
  .split-button-toggle:enabled:active,
20576
20978
  :host([open]) .split-button-toggle {
20577
20979
  border-color: ${gc};
@@ -20589,7 +20991,7 @@ const l7=It`
20589
20991
  visibility: hidden;
20590
20992
  }
20591
20993
 
20592
- :host([appearance='block']) .split-button-primary:enabled:active,
20994
+ :host([appearance='block']) .split-button-primary:is(:enabled, [href]):active,
20593
20995
  :host([appearance='block']) .split-button-toggle:enabled:active,
20594
20996
  :host([appearance='block'][open]) .split-button-toggle {
20595
20997
  background-color: ${Ql};
@@ -20607,6 +21009,14 @@ const l7=It`
20607
21009
  --ni-private-ok-fv-split-button-color: ${Ud};
20608
21010
  }
20609
21011
 
21012
+ :host([disabled][appearance='block']) {
21013
+ --ni-private-ok-fv-split-button-background-image: linear-gradient(
21014
+ rgba(${dc}, 0.1),
21015
+ rgba(${dc}, 0.1)
21016
+ );
21017
+ --ni-private-ok-fv-split-button-border: rgba(${dc}, 0.1);
21018
+ }
21019
+
20610
21020
  :host([disabled][appearance='outline']) {
20611
21021
  --ni-private-ok-fv-split-button-border: rgba(${dc}, 0.3);
20612
21022
  }
@@ -20615,6 +21025,15 @@ const l7=It`
20615
21025
  :host([disabled]) .split-button-toggle {
20616
21026
  cursor: default;
20617
21027
  box-shadow: none;
21028
+ background-image: none;
21029
+ background-size: 100% 100%;
21030
+ }
21031
+
21032
+ :host([disabled]) slot[name='start']::slotted(*),
21033
+ :host([disabled]) slot[name='end']::slotted(*),
21034
+ :host([disabled]) .split-button-toggle > * {
21035
+ opacity: 0.3;
21036
+ ${vc.cssCustomProperty}: ${Hd};
20618
21037
  }
20619
21038
 
20620
21039
  :host([disabled][appearance='ghost']) .split-button-primary,
@@ -20624,7 +21043,7 @@ const l7=It`
20624
21043
  }
20625
21044
 
20626
21045
  @layer top {}
20627
- `,c7=Q`
21046
+ `,m7=Q`
20628
21047
  <div
20629
21048
  class="split-button-container"
20630
21049
  >
@@ -20634,7 +21053,9 @@ const l7=It`
20634
21053
  ?disabled="${t=>t.disabled}"
20635
21054
  @click="${t=>(t.handlePrimaryClick(),!0)}"
20636
21055
  >
20637
- ${t=>t.label}
21056
+ <slot name="start"></slot>
21057
+ <span>${t=>t.label}</span>
21058
+ <slot name="end"></slot>
20638
21059
  </button>
20639
21060
  <button
20640
21061
  class="split-button-toggle"
@@ -20665,237 +21086,17 @@ const l7=It`
20665
21086
  </span>
20666
21087
  </${Iv}>
20667
21088
  `)}
20668
- `,d7="outline",h7="default"
20669
- class u7 extends qe{constructor(){super(...arguments),this.label="Primary function",this.disabled=!1,this.open=!1,this.appearance=d7,this.appearanceVariant=h7,this.documentClickHandler=t=>{this.open&&(t.composedPath().includes(this)||this.setOpen(!1))},this.keydownHandler=t=>{"Escape"===t.key&&this.setOpen(!1)},this.menuChangeHandler=()=>{this.handleMenuChange()}}disabledChanged(){this.disabled&&this.setOpen(!1)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.documentClickHandler),document.addEventListener("keydown",this.keydownHandler)}disconnectedCallback(){document.removeEventListener("click",this.documentClickHandler),document.removeEventListener("keydown",this.keydownHandler),super.disconnectedCallback()}handlePrimaryClick(){this.disabled||this.dispatchEvent(new CustomEvent("trigger",{bubbles:!0,composed:!0}))}handleToggleClick(){this.disabled||this.setOpen(!this.open)}handleMenuChange(){this.setOpen(!1)}regionChanged(t,e){t&&t.removeEventListener("change",this.menuChangeHandler),this.region&&(this.region.anchorElement=this.toggleButton??this,this.region.addEventListener("change",this.menuChangeHandler,{capture:!0}))}toggleButtonChanged(){this.region&&(this.region.anchorElement=this.toggleButton??this)}setOpen(t){this.open!==t&&(this.open=t,this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0,detail:{open:this.open}})))}}t([ft],u7.prototype,"label",void 0),t([ft({mode:"boolean"})],u7.prototype,"disabled",void 0),t([ft({mode:"boolean"})],u7.prototype,"open",void 0),t([ft()],u7.prototype,"appearance",void 0),t([ft({attribute:"appearance-variant"})],u7.prototype,"appearanceVariant",void 0),t([k],u7.prototype,"toggleButton",void 0),t([k],u7.prototype,"region",void 0)
20670
- const p7=u7.compose({baseName:"fv-split-button",template:c7,styles:l7})
20671
- Ei.getOrCreate().withPrefix("ok").register(p7())
20672
- const f7=It`
20673
- @layer base, hover, focusVisible, active, disabled, top;
20674
-
20675
- @layer base {
20676
- ${l8("inline-block")}
20677
-
20678
- :host {
20679
- --ni-private-ok-fv-split-button-anchor-background-image: none;
20680
- --ni-private-ok-fv-split-button-anchor-background-size: 100% 100%;
20681
- --ni-private-ok-fv-split-button-anchor-background-size-emphasis: 100% 100%;
20682
- --ni-private-ok-fv-split-button-anchor-border: rgba(${Jl}, 0.3);
20683
- --ni-private-ok-fv-split-button-anchor-color: ${Hd};
20684
- position: relative;
20685
- height: ${Fc};
20686
- vertical-align: middle;
20687
- }
20688
-
20689
- :host([appearance='ghost']) {
20690
- --ni-private-ok-fv-split-button-anchor-border: transparent;
20691
- }
20692
-
20693
- :host([appearance='block']) {
20694
- --ni-private-ok-fv-split-button-anchor-background-image: linear-gradient(
20695
- rgba(${dc}, 0.1),
20696
- rgba(${dc}, 0.1)
20697
- );
20698
- --ni-private-ok-fv-split-button-anchor-border: rgba(${dc}, 0.1);
20699
- --ni-private-ok-fv-split-button-anchor-background-size-emphasis: calc(100% - 4px) calc(100% - 4px);
20700
- }
20701
-
20702
- :host([appearance='outline'][appearance-variant='primary']) {
20703
- --ni-private-ok-fv-split-button-anchor-border: rgb(${Jl});
20704
- }
20705
-
20706
- :host([appearance='outline'][appearance-variant='accent']) {
20707
- --ni-private-ok-fv-split-button-anchor-border: ${Ic};
20708
- --ni-private-ok-fv-split-button-anchor-color: ${_c};
20709
- }
20710
-
20711
- :host([appearance='block'][appearance-variant='primary']) {
20712
- --ni-private-ok-fv-split-button-anchor-background-image: linear-gradient(
20713
- ${Cc},
20714
- ${Cc}
20715
- );
20716
- --ni-private-ok-fv-split-button-anchor-border: ${Cc};
20717
- --ni-private-ok-fv-split-button-anchor-color: ${kc};
20718
- }
20719
-
20720
- :host([appearance='block'][appearance-variant='accent']) {
20721
- --ni-private-ok-fv-split-button-anchor-background-image: linear-gradient(
20722
- ${Sc},
20723
- ${Sc}
20724
- );
20725
- --ni-private-ok-fv-split-button-anchor-border: ${Sc};
20726
- --ni-private-ok-fv-split-button-anchor-color: ${$c};
20727
- }
20728
-
20729
- .split-button-container {
20730
- position: relative;
20731
- display: inline-flex;
20732
- align-items: stretch;
20733
- height: 100%;
20734
- }
20735
-
20736
- .split-button-primary,
20737
- .split-button-toggle {
20738
- appearance: none;
20739
- position: relative;
20740
- z-index: 0;
20741
- height: 100%;
20742
- box-sizing: border-box;
20743
- margin: 0;
20744
- border: ${Hc} solid var(--ni-private-ok-fv-split-button-anchor-border);
20745
- background-color: transparent;
20746
- background-image: var(--ni-private-ok-fv-split-button-anchor-background-image);
20747
- background-position: center;
20748
- background-repeat: no-repeat;
20749
- background-size: var(--ni-private-ok-fv-split-button-anchor-background-size);
20750
- color: var(--ni-private-ok-fv-split-button-anchor-color);
20751
- fill: currentcolor;
20752
- font: ${Vd};
20753
- cursor: pointer;
20754
- outline: none;
20755
- transition:
20756
- box-shadow ${nh} ease-in-out,
20757
- border-color ${nh} ease-in-out,
20758
- background-size ${nh} ease-in-out;
20759
- }
20760
-
20761
- .split-button-primary {
20762
- display: inline-flex;
20763
- align-items: center;
20764
- justify-content: center;
20765
- padding: 0 ${Nc};
20766
- border-inline-end-color: transparent;
20767
- white-space: nowrap;
20768
- text-decoration: none;
20769
- }
20770
-
20771
- .split-button-primary::before,
20772
- .split-button-toggle::before {
20773
- content: '';
20774
- position: absolute;
20775
- inset: 0;
20776
- pointer-events: none;
20777
- outline: 0px solid transparent;
20778
- outline-offset: -3px;
20779
- transition: outline ${nh} ease-in-out;
20780
- }
20781
-
20782
- .split-button-toggle {
20783
- width: ${Fc};
20784
- min-width: ${Fc};
20785
- display: inline-flex;
20786
- align-items: center;
20787
- justify-content: center;
20788
- border-inline-start-color: var(--ni-private-ok-fv-split-button-anchor-border);
20789
- margin-inline-start: calc(-1 * ${Hc});
20790
- }
20791
-
20792
- .split-button-toggle > * {
20793
- color: currentColor;
20794
- ${vc.cssCustomProperty}: currentColor;
20795
- }
20796
-
20797
- .split-button-primary-disabled {
20798
- cursor: default;
20799
- }
20800
-
20801
- :host([appearance='ghost']) .split-button-primary,
20802
- :host([appearance='ghost']) .split-button-toggle {
20803
- border-color: transparent;
20804
- box-shadow: none;
20805
- }
20806
-
20807
- slot[name='menu']::slotted(*) {
20808
- min-width: 100%;
20809
- margin: 4px 0 0;
20810
- }
20811
- }
20812
-
20813
- @layer hover {
20814
- .split-button-primary:hover,
20815
- .split-button-toggle:hover {
20816
- border-color: ${gc};
20817
- box-shadow: 0 0 0 ${Hc} ${gc} inset;
20818
- background-size: var(--ni-private-ok-fv-split-button-anchor-background-size-emphasis);
20819
- z-index: 1;
20820
- }
20821
-
20822
- :host([appearance='ghost']) .split-button-primary:hover,
20823
- :host([appearance='ghost']) .split-button-toggle:hover {
20824
- border-color: ${gc};
20825
- box-shadow: 0 0 0 ${Hc} ${gc} inset;
20826
- }
20827
- }
20828
-
20829
- @layer focusVisible {
20830
- .split-button-primary:focus-visible,
20831
- .split-button-toggle:focus-visible {
20832
- border-color: ${gc};
20833
- box-shadow: 0 0 0 ${Hc} ${gc} inset;
20834
- background-size: var(--ni-private-ok-fv-split-button-anchor-background-size-emphasis);
20835
- z-index: 1;
20836
- }
20837
-
20838
- .split-button-primary:focus-visible::before,
20839
- .split-button-toggle:focus-visible::before {
20840
- outline: ${Hc} solid ${gc};
20841
- }
20842
-
20843
- :host([appearance='ghost']) .split-button-primary:focus-visible,
20844
- :host([appearance='ghost']) .split-button-toggle:focus-visible {
20845
- border-color: ${gc};
20846
- box-shadow: 0 0 0 ${Hc} ${gc} inset;
20847
- }
20848
- }
20849
-
20850
- @layer active {
20851
- .split-button-primary:active,
20852
- .split-button-toggle:active,
20853
- :host([open]) .split-button-toggle {
20854
- border-color: ${gc};
20855
- box-shadow: none;
20856
- background-image: linear-gradient(${sc}, ${sc});
20857
- background-size: calc(100% - 2px) calc(100% - 2px);
20858
- }
20859
-
20860
- :host([appearance='block']) .split-button-primary:active,
20861
- :host([appearance='block']) .split-button-toggle:active,
20862
- :host([appearance='block'][open]) .split-button-toggle {
20863
- background-size: calc(100% - 4px) calc(100% - 4px);
20864
- }
20865
-
20866
- :host([appearance='outline'][appearance-variant='accent']) .split-button-primary:active,
20867
- :host([appearance='outline'][appearance-variant='accent']) .split-button-toggle:active,
20868
- :host([appearance='outline'][appearance-variant='accent'][open]) .split-button-toggle {
20869
- color: ${_c};
20870
- }
20871
- }
20872
-
20873
- @layer disabled {
20874
- :host([disabled]) {
20875
- --ni-private-ok-fv-split-button-anchor-color: ${Ud};
20876
- }
20877
-
20878
- :host([disabled][appearance='outline']) {
20879
- --ni-private-ok-fv-split-button-anchor-border: rgba(${dc}, 0.3);
20880
- }
20881
-
20882
- :host([disabled]) .split-button-primary,
20883
- :host([disabled]) .split-button-toggle {
20884
- cursor: default;
20885
- box-shadow: none;
20886
- }
20887
-
20888
- :host([disabled][appearance='ghost']) .split-button-primary,
20889
- :host([disabled][appearance='ghost']) .split-button-toggle {
20890
- border-color: transparent;
20891
- }
20892
- }
20893
-
20894
- @layer top {}
20895
- `,m7=Q`
21089
+ `,g7="outline",v7="default"
21090
+ class b7 extends qe{constructor(){super(...arguments),this.label="Primary function",this.disabled=!1,this.open=!1,this.appearance=g7,this.appearanceVariant=v7,this.documentClickHandler=t=>{this.open&&(t.composedPath().includes(this)||this.setOpen(!1))},this.keydownHandler=t=>{"Escape"===t.key&&this.setOpen(!1)},this.menuChangeHandler=()=>{this.handleMenuChange()}}disabledChanged(){this.disabled&&this.setOpen(!1)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.documentClickHandler),document.addEventListener("keydown",this.keydownHandler)}disconnectedCallback(){document.removeEventListener("click",this.documentClickHandler),document.removeEventListener("keydown",this.keydownHandler),super.disconnectedCallback()}handlePrimaryClick(){this.disabled||this.dispatchEvent(new CustomEvent("trigger",{bubbles:!0,composed:!0}))}handleToggleClick(){this.disabled||this.setOpen(!this.open)}handleMenuChange(){this.setOpen(!1)}regionChanged(t,e){t&&t.removeEventListener("change",this.menuChangeHandler),this.region&&(this.region.anchorElement=this.toggleButton??this,this.region.addEventListener("change",this.menuChangeHandler,{capture:!0}))}toggleButtonChanged(){this.region&&(this.region.anchorElement=this.toggleButton??this)}setOpen(t){this.open!==t&&(this.open=t,this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0,detail:{open:this.open}})))}}t([ft],b7.prototype,"label",void 0),t([ft({mode:"boolean"})],b7.prototype,"disabled",void 0),t([ft({mode:"boolean"})],b7.prototype,"open",void 0),t([ft()],b7.prototype,"appearance",void 0),t([ft({attribute:"appearance-variant"})],b7.prototype,"appearanceVariant",void 0),t([k],b7.prototype,"toggleButton",void 0),t([k],b7.prototype,"region",void 0)
21091
+ const y7=b7.compose({baseName:"fv-split-button",template:m7,styles:f7})
21092
+ Ei.getOrCreate().withPrefix("ok").register(y7())
21093
+ const w7=Q`
21094
+ <slot name="start"></slot>
21095
+ <span>${t=>t.label}</span>
21096
+ <slot name="end"></slot>
21097
+ `,x7=Q`
20896
21098
  <div
20897
21099
  class="split-button-container"
20898
- ${zt("splitButtonContainer")}
20899
21100
  >
20900
21101
  ${qt(t=>!t.disabled&&t.href.length>0,Q`
20901
21102
  <a
@@ -20906,7 +21107,7 @@ const f7=It`
20906
21107
  download="${t=>t.download||void 0}"
20907
21108
  @click="${t=>(t.handlePrimaryClick(),!0)}"
20908
21109
  >
20909
- ${t=>t.label}
21110
+ ${w7}
20910
21111
  </a>
20911
21112
  `)}
20912
21113
  ${qt(t=>t.disabled||0===t.href.length,Q`
@@ -20914,11 +21115,12 @@ const f7=It`
20914
21115
  class="split-button-primary split-button-primary-disabled"
20915
21116
  aria-disabled="${t=>t.disabled}"
20916
21117
  >
20917
- ${t=>t.label}
21118
+ ${w7}
20918
21119
  </span>
20919
21120
  `)}
20920
21121
  <button
20921
21122
  class="split-button-toggle"
21123
+ ${zt("toggleButton")}
20922
21124
  type="button"
20923
21125
  ?disabled="${t=>t.disabled}"
20924
21126
  aria-label="${t=>`More actions for ${t.label}`}"
@@ -20935,9 +21137,9 @@ const f7=It`
20935
21137
  auto-update-mode="auto"
20936
21138
  horizontal-inset
20937
21139
  horizontal-positioning-mode="dynamic"
21140
+ horizontal-default-position="end"
20938
21141
  vertical-positioning-mode="locktodefault"
20939
21142
  vertical-default-position="bottom"
20940
- horizontal-scaling="anchor"
20941
21143
  ${zt("region")}
20942
21144
  >
20943
21145
  <span part="menu">
@@ -20945,11 +21147,11 @@ const f7=It`
20945
21147
  </span>
20946
21148
  </${Iv}>
20947
21149
  `)}
20948
- `,g7="outline",v7="default"
20949
- class b7 extends qe{constructor(){super(...arguments),this.label="Primary function",this.href="",this.target="",this.rel="",this.download="",this.disabled=!1,this.open=!1,this.appearance=g7,this.appearanceVariant=v7,this.documentClickHandler=t=>{this.open&&(t.composedPath().includes(this)||this.setOpen(!1))},this.keydownHandler=t=>{"Escape"===t.key&&this.setOpen(!1)},this.menuChangeHandler=()=>{this.handleMenuChange()}}disabledChanged(){this.disabled&&this.setOpen(!1)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.documentClickHandler),document.addEventListener("keydown",this.keydownHandler)}disconnectedCallback(){document.removeEventListener("click",this.documentClickHandler),document.removeEventListener("keydown",this.keydownHandler),super.disconnectedCallback()}handlePrimaryClick(){this.disabled||this.dispatchEvent(new CustomEvent("trigger",{bubbles:!0,composed:!0}))}handleToggleClick(){this.disabled||this.setOpen(!this.open)}handleMenuChange(){this.setOpen(!1)}regionChanged(t,e){t&&t.removeEventListener("change",this.menuChangeHandler),this.region&&(this.region.anchorElement=this.splitButtonContainer??this,this.region.addEventListener("change",this.menuChangeHandler,{capture:!0}))}splitButtonContainerChanged(){this.region&&(this.region.anchorElement=this.splitButtonContainer??this)}setOpen(t){this.open!==t&&(this.open=t,this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0,detail:{open:this.open}})))}}t([ft],b7.prototype,"label",void 0),t([ft],b7.prototype,"href",void 0),t([ft],b7.prototype,"target",void 0),t([ft],b7.prototype,"rel",void 0),t([ft],b7.prototype,"download",void 0),t([ft({mode:"boolean"})],b7.prototype,"disabled",void 0),t([ft({mode:"boolean"})],b7.prototype,"open",void 0),t([ft()],b7.prototype,"appearance",void 0),t([ft({attribute:"appearance-variant"})],b7.prototype,"appearanceVariant",void 0),t([k],b7.prototype,"splitButtonContainer",void 0),t([k],b7.prototype,"region",void 0)
20950
- const y7=b7.compose({baseName:"fv-split-button-anchor",template:m7,styles:f7})
20951
- Ei.getOrCreate().withPrefix("ok").register(y7())
20952
- const w7=It`
21150
+ `,C7="outline",k7="default"
21151
+ class S7 extends qe{constructor(){super(...arguments),this.label="Primary function",this.href="",this.target="",this.rel="",this.download="",this.disabled=!1,this.open=!1,this.appearance=C7,this.appearanceVariant=k7,this.documentClickHandler=t=>{this.open&&(t.composedPath().includes(this)||this.setOpen(!1))},this.keydownHandler=t=>{"Escape"===t.key&&this.setOpen(!1)},this.menuChangeHandler=()=>{this.handleMenuChange()}}disabledChanged(){this.disabled&&this.setOpen(!1)}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.documentClickHandler),document.addEventListener("keydown",this.keydownHandler)}disconnectedCallback(){document.removeEventListener("click",this.documentClickHandler),document.removeEventListener("keydown",this.keydownHandler),super.disconnectedCallback()}handlePrimaryClick(){this.disabled||this.dispatchEvent(new CustomEvent("trigger",{bubbles:!0,composed:!0}))}handleToggleClick(){this.disabled||this.setOpen(!this.open)}handleMenuChange(){this.setOpen(!1)}regionChanged(t,e){t&&t.removeEventListener("change",this.menuChangeHandler),this.region&&(this.region.anchorElement=this.toggleButton??this,this.region.addEventListener("change",this.menuChangeHandler,{capture:!0}))}toggleButtonChanged(){this.region&&(this.region.anchorElement=this.toggleButton??this)}setOpen(t){this.open!==t&&(this.open=t,this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0,detail:{open:this.open}})))}}t([ft],S7.prototype,"label",void 0),t([ft],S7.prototype,"href",void 0),t([ft],S7.prototype,"target",void 0),t([ft],S7.prototype,"rel",void 0),t([ft],S7.prototype,"download",void 0),t([ft({mode:"boolean"})],S7.prototype,"disabled",void 0),t([ft({mode:"boolean"})],S7.prototype,"open",void 0),t([ft()],S7.prototype,"appearance",void 0),t([ft({attribute:"appearance-variant"})],S7.prototype,"appearanceVariant",void 0),t([k],S7.prototype,"toggleButton",void 0),t([k],S7.prototype,"region",void 0)
21152
+ const $7=S7.compose({baseName:"fv-split-button-anchor",template:x7,styles:f7})
21153
+ Ei.getOrCreate().withPrefix("ok").register($7())
21154
+ const _7=It`
20953
21155
  ${l8("block")}
20954
21156
 
20955
21157
  .sticky-header {
@@ -20966,7 +21168,7 @@ const w7=It`
20966
21168
  .sticky-header[hidden] {
20967
21169
  display: none;
20968
21170
  }
20969
- `,x7=Q`
21171
+ `,I7=Q`
20970
21172
  <div class="header" part="header">
20971
21173
  <slot
20972
21174
  name="header"
@@ -20986,13 +21188,13 @@ const w7=It`
20986
21188
  ></slot>
20987
21189
  </div>
20988
21190
  `
20989
- class C7 extends qe{constructor(){super(...arguments),this.hasHeader=!1,this.hasStickyHeader=!1,this.headerIsVisible=!0,this.showStickyHeader=!1,this.headerVisibility=new Map,this.headerIntersectionObserver=new IntersectionObserver(t=>{this.handleHeaderIntersection(t)})}connectedCallback(){super.connectedCallback(),this.updateStickyHeaderContent(),this.observeHeader()}disconnectedCallback(){super.disconnectedCallback(),this.headerIntersectionObserver.disconnect()}handleHeaderSlotChange(){this.observeHeader()}handleStickyHeaderSlotChange(t){this.hasStickyHeader=t.target.assignedElements({flatten:!0}).length>0,this.updateStickyHeaderContent()}handleHeaderIntersection(t){t.forEach(t=>{const e=!t.isIntersecting&&t.boundingClientRect.top<0
21191
+ class M7 extends qe{constructor(){super(...arguments),this.hasHeader=!1,this.hasStickyHeader=!1,this.headerIsVisible=!0,this.showStickyHeader=!1,this.headerVisibility=new Map,this.headerIntersectionObserver=new IntersectionObserver(t=>{this.handleHeaderIntersection(t)})}connectedCallback(){super.connectedCallback(),this.updateStickyHeaderContent(),this.observeHeader()}disconnectedCallback(){super.disconnectedCallback(),this.headerIntersectionObserver.disconnect()}handleHeaderSlotChange(){this.observeHeader()}handleStickyHeaderSlotChange(t){this.hasStickyHeader=t.target.assignedElements({flatten:!0}).length>0,this.updateStickyHeaderContent()}handleHeaderIntersection(t){t.forEach(t=>{const e=!t.isIntersecting&&t.boundingClientRect.top<0
20990
21192
  this.headerVisibility.set(t.target,!e)}),this.headerIsVisible=Array.from(this.headerVisibility.values()).some(Boolean),this.updateStickyHeaderContent()}observeHeader(){this.headerIntersectionObserver.disconnect()
20991
21193
  const t=this.headerSlot.assignedElements({flatten:!0})
20992
- this.hasHeader=t.length>0,this.headerIsVisible=!0,this.headerVisibility.clear(),t.forEach(t=>{this.headerVisibility.set(t,!0),this.headerIntersectionObserver.observe(t)}),this.updateStickyHeaderContent()}updateStickyHeaderContent(){this.hasStickyHeader=this.stickyHeaderSlot.assignedElements({flatten:!0}).length>0,this.showStickyHeader=this.hasHeader&&this.hasStickyHeader&&!this.headerIsVisible}}t([k],C7.prototype,"hasHeader",void 0),t([k],C7.prototype,"hasStickyHeader",void 0),t([k],C7.prototype,"headerIsVisible",void 0),t([k],C7.prototype,"showStickyHeader",void 0)
20993
- const k7=C7.compose({baseName:"fv-sticky-header",template:x7,styles:w7})
20994
- Ei.getOrCreate().withPrefix("ok").register(k7())
20995
- const S7=It`
21194
+ this.hasHeader=t.length>0,this.headerIsVisible=!0,this.headerVisibility.clear(),t.forEach(t=>{this.headerVisibility.set(t,!0),this.headerIntersectionObserver.observe(t)}),this.updateStickyHeaderContent()}updateStickyHeaderContent(){this.hasStickyHeader=this.stickyHeaderSlot.assignedElements({flatten:!0}).length>0,this.showStickyHeader=this.hasHeader&&this.hasStickyHeader&&!this.headerIsVisible}}t([k],M7.prototype,"hasHeader",void 0),t([k],M7.prototype,"hasStickyHeader",void 0),t([k],M7.prototype,"headerIsVisible",void 0),t([k],M7.prototype,"showStickyHeader",void 0)
21195
+ const E7=M7.compose({baseName:"fv-sticky-header",template:I7,styles:_7})
21196
+ Ei.getOrCreate().withPrefix("ok").register(E7())
21197
+ const A7=It`
20996
21198
  @layer base, hover, focusVisible, active, disabled, top;
20997
21199
 
20998
21200
  @layer base {
@@ -21058,7 +21260,7 @@ const S7=It`
21058
21260
  @layer disabled {}
21059
21261
 
21060
21262
  @layer top {}
21061
- `,$7=Q`
21263
+ `,O7=Q`
21062
21264
  <section class="summary-panel" part="panel">
21063
21265
  <div
21064
21266
  ${zt("summaryItems")}
@@ -21083,14 +21285,14 @@ const S7=It`
21083
21285
  </${fv}>
21084
21286
  `)}
21085
21287
  </section>
21086
- `,_7="default",I7="compact"
21087
- class M7 extends qe{constructor(){super(),this.showEditItemsButton=!1,this.legacyStyle=!1,this.size=_7,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)
21288
+ `,T7="default",D7="compact"
21289
+ class R7 extends qe{constructor(){super(),this.showEditItemsButton=!1,this.legacyStyle=!1,this.size=T7,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)
21088
21290
  for(const t of this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})??[])this.summaryItemsResizeObserver.observe(t)
21089
21291
  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
21090
- this.hasOverflow=this.size===I7&&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===I7?t.setAttribute("size",I7):t.removeAttribute("size"))}}t([ft({attribute:"show-edit-items-button",mode:"boolean"})],M7.prototype,"showEditItemsButton",void 0),t([ft({attribute:"legacy-style",mode:"boolean"})],M7.prototype,"legacyStyle",void 0),t([ft],M7.prototype,"size",void 0),t([k],M7.prototype,"hasOverflow",void 0),t([ft({attribute:"edit-items-button-label"})],M7.prototype,"editItemsButtonLabel",void 0)
21091
- const E7=M7.compose({baseName:"fv-summary-panel",template:$7,styles:S7})
21092
- Ei.getOrCreate().withPrefix("ok").register(E7())
21093
- const A7=It`
21292
+ this.hasOverflow=this.size===D7&&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===D7?t.setAttribute("size",D7):t.removeAttribute("size"))}}t([ft({attribute:"show-edit-items-button",mode:"boolean"})],R7.prototype,"showEditItemsButton",void 0),t([ft({attribute:"legacy-style",mode:"boolean"})],R7.prototype,"legacyStyle",void 0),t([ft],R7.prototype,"size",void 0),t([k],R7.prototype,"hasOverflow",void 0),t([ft({attribute:"edit-items-button-label"})],R7.prototype,"editItemsButtonLabel",void 0)
21293
+ const F7=R7.compose({baseName:"fv-summary-panel",template:O7,styles:A7})
21294
+ Ei.getOrCreate().withPrefix("ok").register(F7())
21295
+ const L7=It`
21094
21296
  @layer base, hover, focusVisible, active, disabled, top;
21095
21297
 
21096
21298
  @layer base {
@@ -21246,7 +21448,7 @@ const A7=It`
21246
21448
  @layer disabled {}
21247
21449
 
21248
21450
  @layer top {}
21249
- `,O7=Q`
21451
+ `,B7=Q`
21250
21452
  <${Gv}
21251
21453
  class="summary-panel-tile"
21252
21454
  ?selected="${t=>t.selected}"
@@ -21256,11 +21458,11 @@ const A7=It`
21256
21458
  <div class="label">${t=>t.label}</div>
21257
21459
  </div>
21258
21460
  </${Gv}>
21259
- `,T7="beside"
21260
- class D7 extends qe{constructor(){super(...arguments),this.count="",this.label="",this.legacyStyle=!1,this.size=_7,this.selected=!1,this.textPosition=T7}connectedCallback(){super.connectedCallback(),this.syncLegacyStyleAttribute()}legacyStyleChanged(){this.syncLegacyStyleAttribute()}syncLegacyStyleAttribute(){this.legacyStyle?this.setAttribute("legacy-style",""):this.removeAttribute("legacy-style")}}t([ft],D7.prototype,"count",void 0),t([ft],D7.prototype,"label",void 0),t([ft({attribute:"legacy-style",mode:"boolean"})],D7.prototype,"legacyStyle",void 0),t([ft],D7.prototype,"size",void 0),t([ft({mode:"boolean"})],D7.prototype,"selected",void 0),t([ft({attribute:"text-position"})],D7.prototype,"textPosition",void 0)
21261
- const R7=D7.compose({baseName:"fv-summary-panel-tile",template:O7,styles:A7})
21262
- Ei.getOrCreate().withPrefix("ok").register(R7())
21263
- const F7=It`
21461
+ `,P7="beside"
21462
+ class N7 extends qe{constructor(){super(...arguments),this.count="",this.label="",this.legacyStyle=!1,this.size=T7,this.selected=!1,this.textPosition=P7}connectedCallback(){super.connectedCallback(),this.syncLegacyStyleAttribute()}legacyStyleChanged(){this.syncLegacyStyleAttribute()}syncLegacyStyleAttribute(){this.legacyStyle?this.setAttribute("legacy-style",""):this.removeAttribute("legacy-style")}}t([ft],N7.prototype,"count",void 0),t([ft],N7.prototype,"label",void 0),t([ft({attribute:"legacy-style",mode:"boolean"})],N7.prototype,"legacyStyle",void 0),t([ft],N7.prototype,"size",void 0),t([ft({mode:"boolean"})],N7.prototype,"selected",void 0),t([ft({attribute:"text-position"})],N7.prototype,"textPosition",void 0)
21463
+ const z7=N7.compose({baseName:"fv-summary-panel-tile",template:B7,styles:L7})
21464
+ Ei.getOrCreate().withPrefix("ok").register(z7())
21465
+ const V7=It`
21264
21466
  @layer base, hover, focusVisible, active, disabled, top;
21265
21467
 
21266
21468
  @layer base {
@@ -21436,7 +21638,7 @@ const F7=It`
21436
21638
  border-bottom-color: ${gc};
21437
21639
  }
21438
21640
  }
21439
- `,L7=Q`
21641
+ `,H7=Q`
21440
21642
  <div class="search-input-container">
21441
21643
  <span class="search-input-icon" aria-hidden="true">
21442
21644
  <${Qb}></${Qb}>
@@ -21465,11 +21667,11 @@ const F7=It`
21465
21667
  </button>
21466
21668
  `)}
21467
21669
  </div>
21468
- `,B7="outline"
21469
- class P7 extends Ki{constructor(){super(...arguments),this.appearance=B7}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([ft],P7.prototype,"appearance",void 0)
21470
- const N7=P7.compose({baseName:"fv-search-input",baseClass:Ki,template:L7,styles:F7,shadowOptions:{delegatesFocus:!0}})
21471
- Ei.getOrCreate().withPrefix("ok").register(N7())
21472
- const z7=It`
21670
+ `,U7="outline"
21671
+ class q7 extends Ki{constructor(){super(...arguments),this.appearance=U7}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([ft],q7.prototype,"appearance",void 0)
21672
+ const j7=q7.compose({baseName:"fv-search-input",baseClass:Ki,template:H7,styles:V7,shadowOptions:{delegatesFocus:!0}})
21673
+ Ei.getOrCreate().withPrefix("ok").register(j7())
21674
+ const W7=It`
21473
21675
  @layer base, hover, focusVisible, active;
21474
21676
 
21475
21677
  @layer base {
@@ -21526,7 +21728,7 @@ const z7=It`
21526
21728
  background: ${gc};
21527
21729
  }
21528
21730
  }
21529
- `,V7=Q`
21731
+ `,G7=Q`
21530
21732
  <div
21531
21733
  class="splitter"
21532
21734
  @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"
@@ -21536,7 +21738,7 @@ const z7=It`
21536
21738
  @lostpointercapture="${(t,e)=>t.handlePointerCancel(e.event)}"
21537
21739
  ></div>
21538
21740
  `
21539
- class H7 extends qe{constructor(){super(),this.ariaLabel="Resize panes",this.position=60,this.min=0,this.max=100,this.step=1,this.resizing=!1,this.pointerStartPosition=0,this.requestedPosition=this.position,this.applyingConstrainedPosition=!1,this.requestedPositionResetScheduled=!1,this.positionChangeCallbackVersion=0,this.keydownHandler=t=>{this.handleKeyDown(t)}
21741
+ class Z7 extends qe{constructor(){super(),this.ariaLabel="Resize panes",this.position=60,this.min=0,this.max=100,this.step=1,this.resizing=!1,this.pointerStartPosition=0,this.requestedPosition=this.position,this.applyingConstrainedPosition=!1,this.requestedPositionResetScheduled=!1,this.positionChangeCallbackVersion=0,this.keydownHandler=t=>{this.handleKeyDown(t)}
21540
21742
  const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),"position")
21541
21743
  if(!t?.get||!t.set)return
21542
21744
  const e=t.get.bind(this),n=t.set.bind(this)
@@ -21566,10 +21768,10 @@ return Math.max(this.validMin,Math.min(100,Math.max(0,t)))}get validStep(){retur
21566
21768
  return Math.min(this.validMax,Math.max(this.validMin,e))}updatePosition(t){const e=this.constrain(t)
21567
21769
  this.requestedPosition=e,e!==this.position&&(this.position=e,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}applyConstrainedPosition(){const t=this.constrain(this.requestedPosition)
21568
21770
  t!==this.position&&(this.applyingConstrainedPosition=!0,this.position=t,this.applyingConstrainedPosition=!1),this.syncAriaValueAttributesIfConnected()}resetRequestedPositionAfterSynchronousUpdates(){this.requestedPositionResetScheduled||(this.requestedPositionResetScheduled=!0,queueMicrotask(()=>{this.requestedPositionResetScheduled=!1,this.requestedPosition=this.position}))}finishResize(){const t=this.position!==this.pointerStartPosition
21569
- this.resizing=!1,this.pointerId=void 0,t&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}syncAriaValueAttributesIfConnected(){this.$fastController.isConnected&&this.syncAriaValueAttributes()}syncAriaValueAttributes(){this.setAttribute("aria-valuemin",String(this.validMin)),this.setAttribute("aria-valuemax",String(this.validMax)),this.setAttribute("aria-valuenow",String(this.position)),this.setAttribute("aria-valuetext",`${this.position} percent`)}}t([ft({attribute:"aria-label"})],H7.prototype,"ariaLabel",void 0),t([ft({attribute:"aria-labelledby"})],H7.prototype,"ariaLabelledby",void 0),t([ft({attribute:"aria-controls"})],H7.prototype,"ariaControls",void 0),t([ft({converter:ut})],H7.prototype,"position",void 0),t([ft({converter:ut})],H7.prototype,"min",void 0),t([ft({converter:ut})],H7.prototype,"max",void 0),t([ft({converter:ut})],H7.prototype,"step",void 0),t([k],H7.prototype,"resizing",void 0)
21570
- const U7=H7.compose({baseName:"fv-splitter",template:V7,styles:z7,shadowOptions:{delegatesFocus:!1}})
21571
- Ei.getOrCreate().withPrefix("ok").register(U7())
21572
- const q7="ok-fv-splitter",j7=It`
21771
+ this.resizing=!1,this.pointerId=void 0,t&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}syncAriaValueAttributesIfConnected(){this.$fastController.isConnected&&this.syncAriaValueAttributes()}syncAriaValueAttributes(){this.setAttribute("aria-valuemin",String(this.validMin)),this.setAttribute("aria-valuemax",String(this.validMax)),this.setAttribute("aria-valuenow",String(this.position)),this.setAttribute("aria-valuetext",`${this.position} percent`)}}t([ft({attribute:"aria-label"})],Z7.prototype,"ariaLabel",void 0),t([ft({attribute:"aria-labelledby"})],Z7.prototype,"ariaLabelledby",void 0),t([ft({attribute:"aria-controls"})],Z7.prototype,"ariaControls",void 0),t([ft({converter:ut})],Z7.prototype,"position",void 0),t([ft({converter:ut})],Z7.prototype,"min",void 0),t([ft({converter:ut})],Z7.prototype,"max",void 0),t([ft({converter:ut})],Z7.prototype,"step",void 0),t([k],Z7.prototype,"resizing",void 0)
21772
+ const K7=Z7.compose({baseName:"fv-splitter",template:G7,styles:W7,shadowOptions:{delegatesFocus:!1}})
21773
+ Ei.getOrCreate().withPrefix("ok").register(K7())
21774
+ const Y7="ok-fv-splitter",X7=It`
21573
21775
  ${l8("block")}
21574
21776
 
21575
21777
  :host {
@@ -21607,13 +21809,13 @@ const q7="ok-fv-splitter",j7=It`
21607
21809
  min-height: 0;
21608
21810
  height: 100%;
21609
21811
  }
21610
- `,W7=Q`
21812
+ `,J7=Q`
21611
21813
  <div class="layout" style="grid-template-columns: ${t=>t.gridTemplateColumns}">
21612
21814
  <div class="pane primary" id="${t=>t.primaryPaneId}">
21613
21815
  <slot name="primary"></slot>
21614
21816
  </div>
21615
21817
  ${qt(t=>!t.collapsed,Q`
21616
- <${q7}
21818
+ <${Y7}
21617
21819
  position="${t=>t.position}"
21618
21820
  min="${t=>t.effectiveMin}"
21619
21821
  max="${t=>t.effectiveMax}"
@@ -21621,17 +21823,17 @@ const q7="ok-fv-splitter",j7=It`
21621
21823
  aria-controls="${t=>`${t.primaryPaneId} ${t.secondaryPaneId}`}"
21622
21824
  @input="${(t,e)=>t.handleSplitterInput(e.event)}"
21623
21825
  @change="${(t,e)=>t.handleSplitterChange(e.event)}"
21624
- ></${q7}>
21826
+ ></${Y7}>
21625
21827
  <div class="pane secondary" id="${t=>t.secondaryPaneId}">
21626
21828
  <slot name="secondary"></slot>
21627
21829
  </div>
21628
21830
  `)}
21629
21831
  </div>
21630
21832
  `
21631
- let G7=0
21632
- class Z7 extends qe{constructor(){super(),this.position=60,this.min=35,this.max=75,this.minSecondaryPixels=300,this.collapsed=!1,this.step=1,this.primaryPaneId="",this.secondaryPaneId="",this.availableWidth=0,this.resizeObserver=new ResizeObserver(t=>{this.availableWidth=t[0]?.contentRect.width??0,this.constrainPosition()}),this.requestedPosition=this.position,this.applyingConstrainedPosition=!1,this.requestedPositionResetScheduled=!1,this.positionChangeCallbackVersion=0
21633
- const t=function(){const t=G7
21634
- return G7+=1,t}()
21833
+ let Q7=0
21834
+ class t9 extends qe{constructor(){super(),this.position=60,this.min=35,this.max=75,this.minSecondaryPixels=300,this.collapsed=!1,this.step=1,this.primaryPaneId="",this.secondaryPaneId="",this.availableWidth=0,this.resizeObserver=new ResizeObserver(t=>{this.availableWidth=t[0]?.contentRect.width??0,this.constrainPosition()}),this.requestedPosition=this.position,this.applyingConstrainedPosition=!1,this.requestedPositionResetScheduled=!1,this.positionChangeCallbackVersion=0
21835
+ const t=function(){const t=Q7
21836
+ return Q7+=1,t}()
21635
21837
  this.primaryPaneId=`ok-fv-split-layout-primary-${t}`,this.secondaryPaneId=`ok-fv-split-layout-secondary-${t}`
21636
21838
  const e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),"position")
21637
21839
  if(!e?.get||!e.set)return
@@ -21644,10 +21846,10 @@ const i=100*(1-n/(this.availableWidth-2))
21644
21846
  return Math.max(0,Math.min(e,i))}get gridTemplateColumns(){const t=this.effectiveMinSecondaryPixels
21645
21847
  return this.collapsed?"minmax(0, 1fr)":`minmax(0, ${this.position}fr) 2px minmax(${t}px, ${100-this.position}fr)`}handleSplitterInput(t){return t.stopPropagation(),this.position=t.currentTarget.position,this.$emit("input"),!0}handleSplitterChange(t){return t.stopPropagation(),this.$emit("change"),!0}constrainPosition(){if(this.collapsed)return
21646
21848
  const t=Number.isFinite(this.requestedPosition)?this.requestedPosition:60,e=Math.min(this.effectiveMax,Math.max(this.effectiveMin,t))
21647
- e!==this.position&&(this.applyingConstrainedPosition=!0,this.position=e,this.applyingConstrainedPosition=!1)}resetRequestedPositionAfterSynchronousUpdates(){this.requestedPositionResetScheduled||(this.requestedPositionResetScheduled=!0,queueMicrotask(()=>{this.requestedPositionResetScheduled=!1,this.requestedPosition=this.position}))}get effectiveMinSecondaryPixels(){return Number.isFinite(this.minSecondaryPixels)?Math.max(0,this.minSecondaryPixels):300}}t([ft({converter:ut})],Z7.prototype,"position",void 0),t([ft({converter:ut})],Z7.prototype,"min",void 0),t([ft({converter:ut})],Z7.prototype,"max",void 0),t([ft({attribute:"min-secondary-pixels",converter:ut})],Z7.prototype,"minSecondaryPixels",void 0),t([ft({mode:"boolean"})],Z7.prototype,"collapsed",void 0),t([ft({converter:ut})],Z7.prototype,"step",void 0),t([ft({attribute:"primary-pane-id"})],Z7.prototype,"primaryPaneId",void 0),t([ft({attribute:"secondary-pane-id"})],Z7.prototype,"secondaryPaneId",void 0),t([k],Z7.prototype,"availableWidth",void 0),t([S],Z7.prototype,"effectiveMax",null),t([S],Z7.prototype,"gridTemplateColumns",null)
21648
- const K7=Z7.compose({baseName:"fv-split-layout",template:W7,styles:j7})
21649
- Ei.getOrCreate().withPrefix("ok").register(K7())
21650
- const Y7=It`
21849
+ e!==this.position&&(this.applyingConstrainedPosition=!0,this.position=e,this.applyingConstrainedPosition=!1)}resetRequestedPositionAfterSynchronousUpdates(){this.requestedPositionResetScheduled||(this.requestedPositionResetScheduled=!0,queueMicrotask(()=>{this.requestedPositionResetScheduled=!1,this.requestedPosition=this.position}))}get effectiveMinSecondaryPixels(){return Number.isFinite(this.minSecondaryPixels)?Math.max(0,this.minSecondaryPixels):300}}t([ft({converter:ut})],t9.prototype,"position",void 0),t([ft({converter:ut})],t9.prototype,"min",void 0),t([ft({converter:ut})],t9.prototype,"max",void 0),t([ft({attribute:"min-secondary-pixels",converter:ut})],t9.prototype,"minSecondaryPixels",void 0),t([ft({mode:"boolean"})],t9.prototype,"collapsed",void 0),t([ft({converter:ut})],t9.prototype,"step",void 0),t([ft({attribute:"primary-pane-id"})],t9.prototype,"primaryPaneId",void 0),t([ft({attribute:"secondary-pane-id"})],t9.prototype,"secondaryPaneId",void 0),t([k],t9.prototype,"availableWidth",void 0),t([S],t9.prototype,"effectiveMax",null),t([S],t9.prototype,"gridTemplateColumns",null)
21850
+ const e9=t9.compose({baseName:"fv-split-layout",template:J7,styles:X7})
21851
+ Ei.getOrCreate().withPrefix("ok").register(e9())
21852
+ const n9=It`
21651
21853
  ${PO}
21652
21854
 
21653
21855
  :host {
@@ -21683,7 +21885,7 @@ const Y7=It`
21683
21885
  margin-inline-start: auto;
21684
21886
  }
21685
21887
  `
21686
- class X7 extends NO{constructor(){super(...arguments),this.overflowLabel="More actions",this.hasOverflow=!1,this.items=new Map,this.resizeObserver=new ResizeObserver(()=>this.scheduleLayout()),this.mutationObserver=new MutationObserver(t=>{for(const e of t){const t=e.target instanceof uv?this.items.get(e.target):void 0
21888
+ class i9 extends NO{constructor(){super(...arguments),this.overflowLabel="More actions",this.hasOverflow=!1,this.items=new Map,this.resizeObserver=new ResizeObserver(()=>this.scheduleLayout()),this.mutationObserver=new MutationObserver(t=>{for(const e of t){const t=e.target instanceof uv?this.items.get(e.target):void 0
21687
21889
  t&&"hidden"===e.attributeName&&(t.hidden=t.button.hidden),t&&"content-hidden"===e.attributeName&&(t.contentHidden=t.button.contentHidden)}this.scheduleLayout()}),this.observedChildren=new Set,this.frame=0,this.scheduleLayout=()=>{this.isConnected&&0===this.frame&&(this.frame=requestAnimationFrame(()=>{this.frame=0,this.updateLayout()}))}}connectedCallback(){super.connectedCallback(),this.resizeObserver.observe(this),this.observeMutations(),this.ownerDocument.fonts.addEventListener("loadingdone",this.scheduleLayout),this.scheduleLayout()}disconnectedCallback(){this.resizeObserver.disconnect(),this.mutationObserver.disconnect(),this.ownerDocument.fonts.removeEventListener("loadingdone",this.scheduleLayout),cancelAnimationFrame(this.frame),this.frame=0
21688
21890
  for(const t of this.items.values())this.restoreItem(t)
21689
21891
  this.items.clear(),this.observedChildren.clear(),super.disconnectedCallback()}get allSlottedItems(){return[...super.allSlottedItems,...this.hasOverflow?[this.overflowButton]:[]]}observeMutations(){this.mutationObserver.observe(this,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-responsive","data-priority","disabled","hidden","content-hidden","aria-label","slot","class","style"]})}restoreItem(t){t.button.hidden=t.hidden,t.button.toggleAttribute("content-hidden",t.contentHidden),t.menuItem.remove()}syncItems(){const t=Array.from(this.children).filter(t=>t instanceof uv&&t.hasAttribute("data-responsive"))
@@ -21705,8 +21907,8 @@ this.showOverflow(a.size>0)
21705
21907
  const l=i.filter(t=>!t.hidden).reverse().sort((t,e)=>t.priority-e.priority)
21706
21908
  for(const t of["icon","overflow"])for(const e of l){if(this.fits())break
21707
21909
  !a.has(e)&&e.stages.includes(t)&&("icon"===t?e.button.toggleAttribute("content-hidden",!0):(e.button.hidden=!0,a.add(e),this.showOverflow(!0)))}const c=i.filter(t=>a.has(t)).map(t=>t.menuItem);(c.length!==n.length||c.some((t,e)=>n[e]!==t))&&(this.overflowButton.open=!1,this.overflowMenu.replaceChildren(...c)),this.hasOverflow||(this.overflowButton.open=!1),this.overflowButton.hidden=!this.hasOverflow,this.overflowButton.classList.remove("unreserved"),this.reduceFocusableElements(),r&&a.has(r)?this.overflowButton.focus():e&&(this.hasOverflow?this.overflowButton.open&&t instanceof HTMLElement&&t.isConnected?t.focus():this.overflowButton.focus():Array.from(this.querySelectorAll('[tabindex="0"]')).find(t=>!t.closest("[hidden], [disabled]"))?.focus())}finally{this.observeMutations()}}showOverflow(t){this.hasOverflow=t,this.overflowButton.classList.toggle("unreserved",!t),this.overflowButton.hidden=!1}fits(){const t=this.shadowRoot.querySelector(".positioning-region")
21708
- return t.scrollWidth<=t.clientWidth}}t([ft({attribute:"overflow-label"})],X7.prototype,"overflowLabel",void 0),t([k],X7.prototype,"hasOverflow",void 0)
21709
- const J7=X7.compose({baseName:"fv-toolbar",template:(t,e)=>Q`
21910
+ return t.scrollWidth<=t.clientWidth}}t([ft({attribute:"overflow-label"})],i9.prototype,"overflowLabel",void 0),t([k],i9.prototype,"hasOverflow",void 0)
21911
+ const o9=i9.compose({baseName:"fv-toolbar",template:(t,e)=>Q`
21710
21912
  <template
21711
21913
  role="toolbar"
21712
21914
  aria-label="${t=>t.ariaLabel}"
@@ -21734,9 +21936,9 @@ const J7=X7.compose({baseName:"fv-toolbar",template:(t,e)=>Q`
21734
21936
  </${Sw}>
21735
21937
  </div>
21736
21938
  </template>
21737
- `,styles:Y7})
21738
- Ei.getOrCreate().withPrefix("ok").register(J7())
21739
- const Q7=It`
21939
+ `,styles:n9})
21940
+ Ei.getOrCreate().withPrefix("ok").register(o9())
21941
+ const s9=It`
21740
21942
  ${l8("inline-block")}
21741
21943
 
21742
21944
  :host {
@@ -21759,10 +21961,10 @@ const Q7=It`
21759
21961
  :host([disabled]) slot {
21760
21962
  color: ${wd};
21761
21963
  }
21762
- `,t9=Q`<slot></slot>`
21763
- const e9=class extends qe{}.compose({baseName:"ex-button",template:t9,styles:Q7})
21764
- Ei.getOrCreate().withPrefix("ok").register(e9())
21765
- const n9=It`
21964
+ `,r9=Q`<slot></slot>`
21965
+ const a9=class extends qe{}.compose({baseName:"ex-button",template:r9,styles:s9})
21966
+ Ei.getOrCreate().withPrefix("ok").register(a9())
21967
+ const l9=It`
21766
21968
  ${l8("inline-flex")}
21767
21969
 
21768
21970
  :host {
@@ -21776,15 +21978,15 @@ const n9=It`
21776
21978
  width: 100%;
21777
21979
  height: 100%;
21778
21980
  }
21779
- `,i9=Q`<img aria-hidden="true" src=${t=>t.url}>`
21780
- class o9 extends Cg{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-ts-icon-dynamic-"
21981
+ `,c9=Q`<img aria-hidden="true" src=${t=>t.url}>`
21982
+ class d9 extends Cg{constructor(t){super(),this.url=t}static registerIconDynamic(t,e){const n="ok-ts-icon-dynamic-"
21781
21983
  if(!t.startsWith(n))throw new Error(`Icon tag name must start with '${n}', provided name: ${t}`)
21782
21984
  const i=t.substring(19)
21783
21985
  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}`)
21784
- const o=`TsIconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,s=`ts-icon-dynamic-${i}`,r={[o]:class extends o9{constructor(){super(e)}}}[o].compose({baseName:s,template:i9,styles:n9})
21785
- Ei.getOrCreate().withPrefix("ok").register(r())}}const s9=o9.compose({baseName:"ts-icon-dynamic",template:Q`<template></template>`,styles:It`${l8("none")}`})
21786
- Ei.getOrCreate().withPrefix("ok").register(s9())
21787
- const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:"conditional",hitDisabled:"hit-disabled"},a9="data-breakpoint-state",l9="menu",c9=Q`
21986
+ const o=`TsIconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,s=`ts-icon-dynamic-${i}`,r={[o]:class extends d9{constructor(){super(e)}}}[o].compose({baseName:s,template:c9,styles:l9})
21987
+ Ei.getOrCreate().withPrefix("ok").register(r())}}const h9=d9.compose({baseName:"ts-icon-dynamic",template:Q`<template></template>`,styles:It`${l8("none")}`})
21988
+ Ei.getOrCreate().withPrefix("ok").register(h9())
21989
+ const u9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:"conditional",hitDisabled:"hit-disabled"},p9="data-breakpoint-state",f9="menu",m9=Q`
21788
21990
  <template
21789
21991
  ?open="${t=>t.open}"
21790
21992
  @focusout="${(t,e)=>t.focusoutHandler(e.event)}"
@@ -21801,12 +22003,12 @@ const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
21801
22003
  ${""}
21802
22004
  tabindex="-1"
21803
22005
  >
21804
- ${qt(t=>t.currentState===r9.off,Q`<${"spright-icon-breakpoint-hover"} />`)}
21805
- ${qt(t=>t.currentState===r9.enabled,Q`<${"spright-icon-breakpoint-enabled"} />`)}
21806
- ${qt(t=>t.currentState===r9.disabled,Q`<${"spright-icon-breakpoint-disabled"} />`)}
21807
- ${qt(t=>t.currentState===r9.hit,Q`<${"spright-icon-breakpoint-hit"} />`)}
21808
- ${qt(t=>t.currentState===r9.conditional,Q`<${"spright-icon-breakpoint-conditional"} />`)}
21809
- ${qt(t=>t.currentState===r9.hitDisabled,Q`<${"spright-icon-breakpoint-hit-disabled"} />`)}
22006
+ ${qt(t=>t.currentState===u9.off,Q`<${"spright-icon-breakpoint-hover"} />`)}
22007
+ ${qt(t=>t.currentState===u9.enabled,Q`<${"spright-icon-breakpoint-enabled"} />`)}
22008
+ ${qt(t=>t.currentState===u9.disabled,Q`<${"spright-icon-breakpoint-disabled"} />`)}
22009
+ ${qt(t=>t.currentState===u9.hit,Q`<${"spright-icon-breakpoint-hit"} />`)}
22010
+ ${qt(t=>t.currentState===u9.conditional,Q`<${"spright-icon-breakpoint-conditional"} />`)}
22011
+ ${qt(t=>t.currentState===u9.hitDisabled,Q`<${"spright-icon-breakpoint-hit-disabled"} />`)}
21810
22012
  </button>
21811
22013
  ${qt(t=>t.open,Q`
21812
22014
  <${Iv}
@@ -21822,12 +22024,12 @@ const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
21822
22024
  ${zt("region")}
21823
22025
  >
21824
22026
  <span part="menu">
21825
- <slot name="${l9}" ${te({property:"slottedMenus"})}></slot>
22027
+ <slot name="${f9}" ${te({property:"slottedMenus"})}></slot>
21826
22028
  </span>
21827
22029
  </${Iv}>
21828
22030
  `)}
21829
22031
  </template>
21830
- `,d9=It`
22032
+ `,g9=It`
21831
22033
  ${qo("inline-flex")}
21832
22034
 
21833
22035
  :host {
@@ -21871,15 +22073,15 @@ const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
21871
22073
  }
21872
22074
 
21873
22075
  `
21874
- class h9 extends aU{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
21875
- return t&&Object.values(r9).includes(t)?t:r9.off}get tooltipText(){return this.currentState===r9.off?this.breakpointAddString:this.breakpointRemoveString}get ariaLabelText(){switch(this.currentState){case r9.enabled:return this.breakpointEnabledString
21876
- case r9.disabled:return this.breakpointDisabledString
21877
- case r9.hit:return this.breakpointHitString
21878
- case r9.conditional:return this.breakpointConditionalString
21879
- case r9.hitDisabled:return this.breakpointHitDisabledString
22076
+ class v9 extends aU{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
22077
+ return t&&Object.values(u9).includes(t)?t:u9.off}get tooltipText(){return this.currentState===u9.off?this.breakpointAddString:this.breakpointRemoveString}get ariaLabelText(){switch(this.currentState){case u9.enabled:return this.breakpointEnabledString
22078
+ case u9.disabled:return this.breakpointDisabledString
22079
+ case u9.hit:return this.breakpointHitString
22080
+ case u9.conditional:return this.breakpointConditionalString
22081
+ case u9.hitDisabled:return this.breakpointHitDisabledString
21880
22082
  default:return this.breakpointAddString}}get menuPosition(){return this.columnConfig?.position??yw}get tabbableChildren(){return this.button?[this.button]:[]}onButtonClick(t){t.stopPropagation()
21881
- const e=this.currentState,n=e===r9.off?r9.enabled:r9.off
21882
- this.emitToggle(e,n)}onContextMenu(t){t.preventDefault(),t.stopPropagation(),this.requestContextMenu()}onKeyDown(t){return"F10"===t.key&&t.shiftKey||t.key===h9.menuKeyAlias||t.key===h9.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()
22083
+ const e=this.currentState,n=e===u9.off?u9.enabled:u9.off
22084
+ this.emitToggle(e,n)}onContextMenu(t){t.preventDefault(),t.stopPropagation(),this.requestContextMenu()}onKeyDown(t){return"F10"===t.key&&t.shiftKey||t.key===v9.menuKeyAlias||t.key===v9.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()
21883
22085
  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
21884
22086
  const e=t.relatedTarget
21885
22087
  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)
@@ -21894,7 +22096,7 @@ t=e instanceof HTMLElement?e:void 0}}}isSlotElement(t){return"SLOT"===t?.nodeNam
21894
22096
  if(t&&t.length>0){t[t.length-1].focus()}}emitToggle(t,e){const n={recordId:this.recordId,newState:e,oldState:t}
21895
22097
  this.$emit("breakpoint-column-toggle",n)}requestContextMenu(){this.openMenuFromColumnSlot()}openMenuFromColumnSlot(){const t=this.columnConfig?.menuSlot
21896
22098
  if(!t)return
21897
- const e={slots:[{name:t,slot:l9}]}
22099
+ const e={slots:[{name:t,slot:f9}]}
21898
22100
  this.$emit("cell-view-slots-request",e),this.open=!0}getOwningRow(){const t=this.getRootNode()
21899
22101
  if(!(t instanceof ShadowRoot))return
21900
22102
  const e=t.host
@@ -21904,23 +22106,23 @@ if(!(n instanceof ShadowRoot))return
21904
22106
  const i=n.host
21905
22107
  return i instanceof HTMLElement&&"nimble-table-row"===i.localName?i:void 0}getRequestedStateFromEvent(t){const e=t.target
21906
22108
  if(!(e instanceof HTMLElement))return
21907
- const n=e.closest(`[${a9}]`)
22109
+ const n=e.closest(`[${p9}]`)
21908
22110
  if(!n)return
21909
- const i=n.getAttribute(a9)
21910
- return i&&Object.values(r9).includes(i)?i:void 0}}h9.menuKeyAlias="Menu",h9.contextMenuKeyAlias="ContextMenu",t([ft({mode:"boolean"})],h9.prototype,"open",void 0),t([k],h9.prototype,"region",void 0),t([k],h9.prototype,"slottedMenus",void 0),t([k],h9.prototype,"breakpointEnabledString",void 0),t([k],h9.prototype,"breakpointDisabledString",void 0),t([k],h9.prototype,"breakpointHitString",void 0),t([k],h9.prototype,"breakpointConditionalString",void 0),t([k],h9.prototype,"breakpointHitDisabledString",void 0),t([k],h9.prototype,"breakpointAddString",void 0),t([k],h9.prototype,"breakpointRemoveString",void 0)
21911
- const u9=h9.compose({baseName:"ts-table-column-breakpoint-cell-view",template:c9,styles:d9})
21912
- Ei.getOrCreate().withPrefix("ok").register(u9())
21913
- const p9=Q`
22111
+ const i=n.getAttribute(p9)
22112
+ return i&&Object.values(u9).includes(i)?i:void 0}}v9.menuKeyAlias="Menu",v9.contextMenuKeyAlias="ContextMenu",t([ft({mode:"boolean"})],v9.prototype,"open",void 0),t([k],v9.prototype,"region",void 0),t([k],v9.prototype,"slottedMenus",void 0),t([k],v9.prototype,"breakpointEnabledString",void 0),t([k],v9.prototype,"breakpointDisabledString",void 0),t([k],v9.prototype,"breakpointHitString",void 0),t([k],v9.prototype,"breakpointConditionalString",void 0),t([k],v9.prototype,"breakpointHitDisabledString",void 0),t([k],v9.prototype,"breakpointAddString",void 0),t([k],v9.prototype,"breakpointRemoveString",void 0)
22113
+ const b9=v9.compose({baseName:"ts-table-column-breakpoint-cell-view",template:m9,styles:g9})
22114
+ Ei.getOrCreate().withPrefix("ok").register(b9())
22115
+ const y9=Q`
21914
22116
  <template @delegated-event="${(t,e)=>t.onDelegatedEvent(e.event)}"
21915
22117
  >${Dq}</template
21916
22118
  >
21917
22119
  `
21918
- class f9 extends(Cj(pU)){constructor(){super(),this.position=yw,this.columnInternals.resizingDisabled=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32}onDelegatedEvent(t){t.stopImmediatePropagation()
22120
+ class w9 extends(Cj(pU)){constructor(){super(),this.position=yw,this.columnInternals.resizingDisabled=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32}onDelegatedEvent(t){t.stopImmediatePropagation()
21919
22121
  const e=t
21920
22122
  if("breakpoint-column-toggle"===e.detail.originalEvent.type){const t={...e.detail.originalEvent.detail,recordId:e.detail.recordId}
21921
22123
  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}
21922
22124
  this.$emit("breakpoint-column-state-change-requested",t)}}requestBreakpointStateChange(t,e,n){const i={recordId:t,currentState:e,requestedState:n}
21923
- 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:[l9],validator:new Mq([])}}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([ft({attribute:"field-name"})],f9.prototype,"fieldName",void 0),t([ft({attribute:"menu-slot"})],f9.prototype,"menuSlot",void 0),t([ft],f9.prototype,"position",void 0)
21924
- const m9=f9.compose({baseName:"ts-table-column-breakpoint",template:p9,styles:Tq})
21925
- Ei.getOrCreate().withPrefix("ok").register(m9())}()
22125
+ 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:[f9],validator:new Mq([])}}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([ft({attribute:"field-name"})],w9.prototype,"fieldName",void 0),t([ft({attribute:"menu-slot"})],w9.prototype,"menuSlot",void 0),t([ft],w9.prototype,"position",void 0)
22126
+ const x9=w9.compose({baseName:"ts-table-column-breakpoint",template:y9,styles:Tq})
22127
+ Ei.getOrCreate().withPrefix("ok").register(x9())}()
21926
22128
  //# sourceMappingURL=all-components-bundle.min.js.map