@ni/ok-components 1.15.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.
- package/dist/all-components-bundle.js +1200 -429
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +478 -99
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +532 -291
- package/dist/custom-elements.md +84 -50
- package/dist/esm/fv/all-fv.d.ts +1 -0
- package/dist/esm/fv/all-fv.js +1 -0
- package/dist/esm/fv/all-fv.js.map +1 -1
- package/dist/esm/fv/multi-select/index.d.ts +100 -0
- package/dist/esm/fv/multi-select/index.js +367 -0
- package/dist/esm/fv/multi-select/index.js.map +1 -0
- package/dist/esm/fv/multi-select/models/form-associated.d.ts +16 -0
- package/dist/esm/fv/multi-select/models/form-associated.js +17 -0
- package/dist/esm/fv/multi-select/models/form-associated.js.map +1 -0
- package/dist/esm/fv/multi-select/styles.d.ts +1 -0
- package/dist/esm/fv/multi-select/styles.js +241 -0
- package/dist/esm/fv/multi-select/styles.js.map +1 -0
- package/dist/esm/fv/multi-select/template.d.ts +2 -0
- package/dist/esm/fv/multi-select/template.js +171 -0
- package/dist/esm/fv/multi-select/template.js.map +1 -0
- package/dist/esm/fv/multi-select/types.d.ts +8 -0
- package/dist/esm/fv/multi-select/types.js +2 -0
- package/dist/esm/fv/multi-select/types.js.map +1 -0
- 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 {
|
|
@@ -20664,7 +21043,7 @@ const l7=It`
|
|
|
20664
21043
|
}
|
|
20665
21044
|
|
|
20666
21045
|
@layer top {}
|
|
20667
|
-
`,
|
|
21046
|
+
`,m7=Q`
|
|
20668
21047
|
<div
|
|
20669
21048
|
class="split-button-container"
|
|
20670
21049
|
>
|
|
@@ -20707,15 +21086,15 @@ const l7=It`
|
|
|
20707
21086
|
</span>
|
|
20708
21087
|
</${Iv}>
|
|
20709
21088
|
`)}
|
|
20710
|
-
`,
|
|
20711
|
-
class
|
|
20712
|
-
const
|
|
20713
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
20714
|
-
const
|
|
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`
|
|
20715
21094
|
<slot name="start"></slot>
|
|
20716
21095
|
<span>${t=>t.label}</span>
|
|
20717
21096
|
<slot name="end"></slot>
|
|
20718
|
-
`,
|
|
21097
|
+
`,x7=Q`
|
|
20719
21098
|
<div
|
|
20720
21099
|
class="split-button-container"
|
|
20721
21100
|
>
|
|
@@ -20728,7 +21107,7 @@ const f7=Q`
|
|
|
20728
21107
|
download="${t=>t.download||void 0}"
|
|
20729
21108
|
@click="${t=>(t.handlePrimaryClick(),!0)}"
|
|
20730
21109
|
>
|
|
20731
|
-
${
|
|
21110
|
+
${w7}
|
|
20732
21111
|
</a>
|
|
20733
21112
|
`)}
|
|
20734
21113
|
${qt(t=>t.disabled||0===t.href.length,Q`
|
|
@@ -20736,7 +21115,7 @@ const f7=Q`
|
|
|
20736
21115
|
class="split-button-primary split-button-primary-disabled"
|
|
20737
21116
|
aria-disabled="${t=>t.disabled}"
|
|
20738
21117
|
>
|
|
20739
|
-
${
|
|
21118
|
+
${w7}
|
|
20740
21119
|
</span>
|
|
20741
21120
|
`)}
|
|
20742
21121
|
<button
|
|
@@ -20768,11 +21147,11 @@ const f7=Q`
|
|
|
20768
21147
|
</span>
|
|
20769
21148
|
</${Iv}>
|
|
20770
21149
|
`)}
|
|
20771
|
-
`,
|
|
20772
|
-
class
|
|
20773
|
-
const
|
|
20774
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
20775
|
-
const
|
|
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`
|
|
20776
21155
|
${l8("block")}
|
|
20777
21156
|
|
|
20778
21157
|
.sticky-header {
|
|
@@ -20789,7 +21168,7 @@ const w7=It`
|
|
|
20789
21168
|
.sticky-header[hidden] {
|
|
20790
21169
|
display: none;
|
|
20791
21170
|
}
|
|
20792
|
-
`,
|
|
21171
|
+
`,I7=Q`
|
|
20793
21172
|
<div class="header" part="header">
|
|
20794
21173
|
<slot
|
|
20795
21174
|
name="header"
|
|
@@ -20809,13 +21188,13 @@ const w7=It`
|
|
|
20809
21188
|
></slot>
|
|
20810
21189
|
</div>
|
|
20811
21190
|
`
|
|
20812
|
-
class
|
|
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
|
|
20813
21192
|
this.headerVisibility.set(t.target,!e)}),this.headerIsVisible=Array.from(this.headerVisibility.values()).some(Boolean),this.updateStickyHeaderContent()}observeHeader(){this.headerIntersectionObserver.disconnect()
|
|
20814
21193
|
const t=this.headerSlot.assignedElements({flatten:!0})
|
|
20815
|
-
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],
|
|
20816
|
-
const
|
|
20817
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
20818
|
-
const
|
|
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`
|
|
20819
21198
|
@layer base, hover, focusVisible, active, disabled, top;
|
|
20820
21199
|
|
|
20821
21200
|
@layer base {
|
|
@@ -20881,7 +21260,7 @@ const S7=It`
|
|
|
20881
21260
|
@layer disabled {}
|
|
20882
21261
|
|
|
20883
21262
|
@layer top {}
|
|
20884
|
-
|
|
21263
|
+
`,O7=Q`
|
|
20885
21264
|
<section class="summary-panel" part="panel">
|
|
20886
21265
|
<div
|
|
20887
21266
|
${zt("summaryItems")}
|
|
@@ -20906,14 +21285,14 @@ const S7=It`
|
|
|
20906
21285
|
</${fv}>
|
|
20907
21286
|
`)}
|
|
20908
21287
|
</section>
|
|
20909
|
-
`,
|
|
20910
|
-
class
|
|
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)
|
|
20911
21290
|
for(const t of this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})??[])this.summaryItemsResizeObserver.observe(t)
|
|
20912
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
|
|
20913
|
-
this.hasOverflow=this.size===
|
|
20914
|
-
const
|
|
20915
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
20916
|
-
const
|
|
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`
|
|
20917
21296
|
@layer base, hover, focusVisible, active, disabled, top;
|
|
20918
21297
|
|
|
20919
21298
|
@layer base {
|
|
@@ -21069,7 +21448,7 @@ const A7=It`
|
|
|
21069
21448
|
@layer disabled {}
|
|
21070
21449
|
|
|
21071
21450
|
@layer top {}
|
|
21072
|
-
`,
|
|
21451
|
+
`,B7=Q`
|
|
21073
21452
|
<${Gv}
|
|
21074
21453
|
class="summary-panel-tile"
|
|
21075
21454
|
?selected="${t=>t.selected}"
|
|
@@ -21079,11 +21458,11 @@ const A7=It`
|
|
|
21079
21458
|
<div class="label">${t=>t.label}</div>
|
|
21080
21459
|
</div>
|
|
21081
21460
|
</${Gv}>
|
|
21082
|
-
`,
|
|
21083
|
-
class
|
|
21084
|
-
const
|
|
21085
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21086
|
-
const
|
|
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`
|
|
21087
21466
|
@layer base, hover, focusVisible, active, disabled, top;
|
|
21088
21467
|
|
|
21089
21468
|
@layer base {
|
|
@@ -21259,7 +21638,7 @@ const F7=It`
|
|
|
21259
21638
|
border-bottom-color: ${gc};
|
|
21260
21639
|
}
|
|
21261
21640
|
}
|
|
21262
|
-
`,
|
|
21641
|
+
`,H7=Q`
|
|
21263
21642
|
<div class="search-input-container">
|
|
21264
21643
|
<span class="search-input-icon" aria-hidden="true">
|
|
21265
21644
|
<${Qb}></${Qb}>
|
|
@@ -21288,11 +21667,11 @@ const F7=It`
|
|
|
21288
21667
|
</button>
|
|
21289
21668
|
`)}
|
|
21290
21669
|
</div>
|
|
21291
|
-
`,
|
|
21292
|
-
class
|
|
21293
|
-
const
|
|
21294
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21295
|
-
const
|
|
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`
|
|
21296
21675
|
@layer base, hover, focusVisible, active;
|
|
21297
21676
|
|
|
21298
21677
|
@layer base {
|
|
@@ -21349,7 +21728,7 @@ const z7=It`
|
|
|
21349
21728
|
background: ${gc};
|
|
21350
21729
|
}
|
|
21351
21730
|
}
|
|
21352
|
-
`,
|
|
21731
|
+
`,G7=Q`
|
|
21353
21732
|
<div
|
|
21354
21733
|
class="splitter"
|
|
21355
21734
|
@pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"
|
|
@@ -21359,7 +21738,7 @@ const z7=It`
|
|
|
21359
21738
|
@lostpointercapture="${(t,e)=>t.handlePointerCancel(e.event)}"
|
|
21360
21739
|
></div>
|
|
21361
21740
|
`
|
|
21362
|
-
class
|
|
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)}
|
|
21363
21742
|
const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),"position")
|
|
21364
21743
|
if(!t?.get||!t.set)return
|
|
21365
21744
|
const e=t.get.bind(this),n=t.set.bind(this)
|
|
@@ -21389,10 +21768,10 @@ return Math.max(this.validMin,Math.min(100,Math.max(0,t)))}get validStep(){retur
|
|
|
21389
21768
|
return Math.min(this.validMax,Math.max(this.validMin,e))}updatePosition(t){const e=this.constrain(t)
|
|
21390
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)
|
|
21391
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
|
|
21392
|
-
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"})],
|
|
21393
|
-
const
|
|
21394
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21395
|
-
const
|
|
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`
|
|
21396
21775
|
${l8("block")}
|
|
21397
21776
|
|
|
21398
21777
|
:host {
|
|
@@ -21430,13 +21809,13 @@ const q7="ok-fv-splitter",j7=It`
|
|
|
21430
21809
|
min-height: 0;
|
|
21431
21810
|
height: 100%;
|
|
21432
21811
|
}
|
|
21433
|
-
`,
|
|
21812
|
+
`,J7=Q`
|
|
21434
21813
|
<div class="layout" style="grid-template-columns: ${t=>t.gridTemplateColumns}">
|
|
21435
21814
|
<div class="pane primary" id="${t=>t.primaryPaneId}">
|
|
21436
21815
|
<slot name="primary"></slot>
|
|
21437
21816
|
</div>
|
|
21438
21817
|
${qt(t=>!t.collapsed,Q`
|
|
21439
|
-
<${
|
|
21818
|
+
<${Y7}
|
|
21440
21819
|
position="${t=>t.position}"
|
|
21441
21820
|
min="${t=>t.effectiveMin}"
|
|
21442
21821
|
max="${t=>t.effectiveMax}"
|
|
@@ -21444,17 +21823,17 @@ const q7="ok-fv-splitter",j7=It`
|
|
|
21444
21823
|
aria-controls="${t=>`${t.primaryPaneId} ${t.secondaryPaneId}`}"
|
|
21445
21824
|
@input="${(t,e)=>t.handleSplitterInput(e.event)}"
|
|
21446
21825
|
@change="${(t,e)=>t.handleSplitterChange(e.event)}"
|
|
21447
|
-
></${
|
|
21826
|
+
></${Y7}>
|
|
21448
21827
|
<div class="pane secondary" id="${t=>t.secondaryPaneId}">
|
|
21449
21828
|
<slot name="secondary"></slot>
|
|
21450
21829
|
</div>
|
|
21451
21830
|
`)}
|
|
21452
21831
|
</div>
|
|
21453
21832
|
`
|
|
21454
|
-
let
|
|
21455
|
-
class
|
|
21456
|
-
const t=function(){const t=
|
|
21457
|
-
return
|
|
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}()
|
|
21458
21837
|
this.primaryPaneId=`ok-fv-split-layout-primary-${t}`,this.secondaryPaneId=`ok-fv-split-layout-secondary-${t}`
|
|
21459
21838
|
const e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),"position")
|
|
21460
21839
|
if(!e?.get||!e.set)return
|
|
@@ -21467,10 +21846,10 @@ const i=100*(1-n/(this.availableWidth-2))
|
|
|
21467
21846
|
return Math.max(0,Math.min(e,i))}get gridTemplateColumns(){const t=this.effectiveMinSecondaryPixels
|
|
21468
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
|
|
21469
21848
|
const t=Number.isFinite(this.requestedPosition)?this.requestedPosition:60,e=Math.min(this.effectiveMax,Math.max(this.effectiveMin,t))
|
|
21470
|
-
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})],
|
|
21471
|
-
const
|
|
21472
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21473
|
-
const
|
|
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`
|
|
21474
21853
|
${PO}
|
|
21475
21854
|
|
|
21476
21855
|
:host {
|
|
@@ -21506,7 +21885,7 @@ const Y7=It`
|
|
|
21506
21885
|
margin-inline-start: auto;
|
|
21507
21886
|
}
|
|
21508
21887
|
`
|
|
21509
|
-
class
|
|
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
|
|
21510
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
|
|
21511
21890
|
for(const t of this.items.values())this.restoreItem(t)
|
|
21512
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"))
|
|
@@ -21528,8 +21907,8 @@ this.showOverflow(a.size>0)
|
|
|
21528
21907
|
const l=i.filter(t=>!t.hidden).reverse().sort((t,e)=>t.priority-e.priority)
|
|
21529
21908
|
for(const t of["icon","overflow"])for(const e of l){if(this.fits())break
|
|
21530
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")
|
|
21531
|
-
return t.scrollWidth<=t.clientWidth}}t([ft({attribute:"overflow-label"})],
|
|
21532
|
-
const
|
|
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`
|
|
21533
21912
|
<template
|
|
21534
21913
|
role="toolbar"
|
|
21535
21914
|
aria-label="${t=>t.ariaLabel}"
|
|
@@ -21557,9 +21936,9 @@ const J7=X7.compose({baseName:"fv-toolbar",template:(t,e)=>Q`
|
|
|
21557
21936
|
</${Sw}>
|
|
21558
21937
|
</div>
|
|
21559
21938
|
</template>
|
|
21560
|
-
`,styles:
|
|
21561
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21562
|
-
const
|
|
21939
|
+
`,styles:n9})
|
|
21940
|
+
Ei.getOrCreate().withPrefix("ok").register(o9())
|
|
21941
|
+
const s9=It`
|
|
21563
21942
|
${l8("inline-block")}
|
|
21564
21943
|
|
|
21565
21944
|
:host {
|
|
@@ -21582,10 +21961,10 @@ const Q7=It`
|
|
|
21582
21961
|
:host([disabled]) slot {
|
|
21583
21962
|
color: ${wd};
|
|
21584
21963
|
}
|
|
21585
|
-
`,
|
|
21586
|
-
const
|
|
21587
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21588
|
-
const
|
|
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`
|
|
21589
21968
|
${l8("inline-flex")}
|
|
21590
21969
|
|
|
21591
21970
|
:host {
|
|
@@ -21599,15 +21978,15 @@ const n9=It`
|
|
|
21599
21978
|
width: 100%;
|
|
21600
21979
|
height: 100%;
|
|
21601
21980
|
}
|
|
21602
|
-
`,
|
|
21603
|
-
class
|
|
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-"
|
|
21604
21983
|
if(!t.startsWith(n))throw new Error(`Icon tag name must start with '${n}', provided name: ${t}`)
|
|
21605
21984
|
const i=t.substring(19)
|
|
21606
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}`)
|
|
21607
|
-
const o=`TsIconDynamic${i.charAt(0).toUpperCase()+i.slice(1)}`,s=`ts-icon-dynamic-${i}`,r={[o]:class extends
|
|
21608
|
-
Ei.getOrCreate().withPrefix("ok").register(r())}}const
|
|
21609
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21610
|
-
const
|
|
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`
|
|
21611
21990
|
<template
|
|
21612
21991
|
?open="${t=>t.open}"
|
|
21613
21992
|
@focusout="${(t,e)=>t.focusoutHandler(e.event)}"
|
|
@@ -21624,12 +22003,12 @@ const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
|
|
|
21624
22003
|
${""}
|
|
21625
22004
|
tabindex="-1"
|
|
21626
22005
|
>
|
|
21627
|
-
${qt(t=>t.currentState===
|
|
21628
|
-
${qt(t=>t.currentState===
|
|
21629
|
-
${qt(t=>t.currentState===
|
|
21630
|
-
${qt(t=>t.currentState===
|
|
21631
|
-
${qt(t=>t.currentState===
|
|
21632
|
-
${qt(t=>t.currentState===
|
|
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"} />`)}
|
|
21633
22012
|
</button>
|
|
21634
22013
|
${qt(t=>t.open,Q`
|
|
21635
22014
|
<${Iv}
|
|
@@ -21645,12 +22024,12 @@ const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
|
|
|
21645
22024
|
${zt("region")}
|
|
21646
22025
|
>
|
|
21647
22026
|
<span part="menu">
|
|
21648
|
-
<slot name="${
|
|
22027
|
+
<slot name="${f9}" ${te({property:"slottedMenus"})}></slot>
|
|
21649
22028
|
</span>
|
|
21650
22029
|
</${Iv}>
|
|
21651
22030
|
`)}
|
|
21652
22031
|
</template>
|
|
21653
|
-
`,
|
|
22032
|
+
`,g9=It`
|
|
21654
22033
|
${qo("inline-flex")}
|
|
21655
22034
|
|
|
21656
22035
|
:host {
|
|
@@ -21694,15 +22073,15 @@ const r9={off:"off",enabled:"enabled",disabled:"disabled",hit:"hit",conditional:
|
|
|
21694
22073
|
}
|
|
21695
22074
|
|
|
21696
22075
|
`
|
|
21697
|
-
class
|
|
21698
|
-
return t&&Object.values(
|
|
21699
|
-
case
|
|
21700
|
-
case
|
|
21701
|
-
case
|
|
21702
|
-
case
|
|
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
|
|
21703
22082
|
default:return this.breakpointAddString}}get menuPosition(){return this.columnConfig?.position??yw}get tabbableChildren(){return this.button?[this.button]:[]}onButtonClick(t){t.stopPropagation()
|
|
21704
|
-
const e=this.currentState,n=e===
|
|
21705
|
-
this.emitToggle(e,n)}onContextMenu(t){t.preventDefault(),t.stopPropagation(),this.requestContextMenu()}onKeyDown(t){return"F10"===t.key&&t.shiftKey||t.key===
|
|
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()
|
|
21706
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
|
|
21707
22086
|
const e=t.relatedTarget
|
|
21708
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)
|
|
@@ -21717,7 +22096,7 @@ t=e instanceof HTMLElement?e:void 0}}}isSlotElement(t){return"SLOT"===t?.nodeNam
|
|
|
21717
22096
|
if(t&&t.length>0){t[t.length-1].focus()}}emitToggle(t,e){const n={recordId:this.recordId,newState:e,oldState:t}
|
|
21718
22097
|
this.$emit("breakpoint-column-toggle",n)}requestContextMenu(){this.openMenuFromColumnSlot()}openMenuFromColumnSlot(){const t=this.columnConfig?.menuSlot
|
|
21719
22098
|
if(!t)return
|
|
21720
|
-
const e={slots:[{name:t,slot:
|
|
22099
|
+
const e={slots:[{name:t,slot:f9}]}
|
|
21721
22100
|
this.$emit("cell-view-slots-request",e),this.open=!0}getOwningRow(){const t=this.getRootNode()
|
|
21722
22101
|
if(!(t instanceof ShadowRoot))return
|
|
21723
22102
|
const e=t.host
|
|
@@ -21727,23 +22106,23 @@ if(!(n instanceof ShadowRoot))return
|
|
|
21727
22106
|
const i=n.host
|
|
21728
22107
|
return i instanceof HTMLElement&&"nimble-table-row"===i.localName?i:void 0}getRequestedStateFromEvent(t){const e=t.target
|
|
21729
22108
|
if(!(e instanceof HTMLElement))return
|
|
21730
|
-
const n=e.closest(`[${
|
|
22109
|
+
const n=e.closest(`[${p9}]`)
|
|
21731
22110
|
if(!n)return
|
|
21732
|
-
const i=n.getAttribute(
|
|
21733
|
-
return i&&Object.values(
|
|
21734
|
-
const
|
|
21735
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
21736
|
-
const
|
|
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`
|
|
21737
22116
|
<template @delegated-event="${(t,e)=>t.onDelegatedEvent(e.event)}"
|
|
21738
22117
|
>${Dq}</template
|
|
21739
22118
|
>
|
|
21740
22119
|
`
|
|
21741
|
-
class
|
|
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()
|
|
21742
22121
|
const e=t
|
|
21743
22122
|
if("breakpoint-column-toggle"===e.detail.originalEvent.type){const t={...e.detail.originalEvent.detail,recordId:e.detail.recordId}
|
|
21744
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}
|
|
21745
22124
|
this.$emit("breakpoint-column-state-change-requested",t)}}requestBreakpointStateChange(t,e,n){const i={recordId:t,currentState:e,requestedState:n}
|
|
21746
|
-
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:[
|
|
21747
|
-
const
|
|
21748
|
-
Ei.getOrCreate().withPrefix("ok").register(
|
|
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())}()
|
|
21749
22128
|
//# sourceMappingURL=all-components-bundle.min.js.map
|