@esri/calcite-components 5.2.0-next.32 → 5.2.0-next.34
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/cdn/{7NGKKXBY.js → 2OLJ3FUU.js} +1 -1
- package/dist/cdn/{QS7YJ7ID.js → 2SO74VOS.js} +1 -1
- package/dist/cdn/{7H6JEAAY.js → 3452BXT3.js} +1 -1
- package/dist/cdn/{5D5KWSRU.js → 34A2JBI7.js} +1 -1
- package/dist/cdn/{KYYFCGSM.js → 3B2YYHEP.js} +1 -1
- package/dist/cdn/{HBFKOP4O.js → 3ZE4JI4X.js} +1 -1
- package/dist/cdn/{COEPTSMJ.js → 4KD57W6G.js} +1 -1
- package/dist/cdn/{6MJGHCHL.js → 4VHAXDQK.js} +1 -1
- package/dist/cdn/{YX2464BY.js → 4VQI4R7J.js} +1 -1
- package/dist/cdn/{RQNCEP7V.js → 4XAA4FL5.js} +1 -1
- package/dist/cdn/{3NZLINPY.js → 52L2Y4I3.js} +1 -1
- package/dist/cdn/{BY7EPIAJ.js → 56CUCPCD.js} +1 -1
- package/dist/cdn/{3I2SZUSI.js → 5CLYROXT.js} +1 -1
- package/dist/cdn/{H5F5TKSQ.js → 5GW2PNBP.js} +1 -1
- package/dist/cdn/{KPLMTG7M.js → 5JYHJI7D.js} +1 -1
- package/dist/cdn/{US7R2KAH.js → 67LKCAUF.js} +1 -1
- package/dist/cdn/{M7ZWJ3WS.js → 6DDEBJT6.js} +1 -1
- package/dist/cdn/{EEHJN6D5.js → 6OVB3TAD.js} +1 -1
- package/dist/cdn/{RX7LNL6H.js → 7BKS4PFK.js} +1 -1
- package/dist/cdn/{A4JYA56A.js → 7LKDA6OC.js} +1 -1
- package/dist/cdn/{4XKPZDWA.js → 7XZ7PAEM.js} +1 -1
- package/dist/cdn/{3UEVPCND.js → 7ZILEGVA.js} +1 -1
- package/dist/cdn/{PUAN7SC7.js → A57WDXBM.js} +1 -1
- package/dist/cdn/{SP5D6SJ2.js → ACQTS3J3.js} +1 -1
- package/dist/cdn/{5T7XXZVM.js → AWJAVEAX.js} +1 -1
- package/dist/cdn/{6BBTSWZJ.js → B4OTZN7V.js} +1 -1
- package/dist/cdn/{IELIVXOH.js → C3KPSVGH.js} +1 -1
- package/dist/cdn/{CWZ74ACK.js → CIZBRXWP.js} +1 -1
- package/dist/cdn/{FIMDUKAT.js → CMPLB6H3.js} +1 -1
- package/dist/cdn/{6QTMT3BR.js → CNNLMIH2.js} +1 -1
- package/dist/cdn/{MQZF7GBV.js → CP25FMC2.js} +1 -1
- package/dist/cdn/{XF7AZMTR.js → CQ55NUF2.js} +1 -1
- package/dist/cdn/{CLDDWBPJ.js → CRUSHZIN.js} +1 -1
- package/dist/cdn/{MEVB3IC5.js → CWNQIS43.js} +1 -1
- package/dist/cdn/{POIX33V2.js → DBYBKXUC.js} +1 -1
- package/dist/cdn/{INPOEQLV.js → DC6ZE5VV.js} +1 -1
- package/dist/cdn/{TBYUWYMH.js → DJE52FKC.js} +1 -1
- package/dist/cdn/{TFCDXEXM.js → DUBD6KNL.js} +1 -1
- package/dist/cdn/{4CJPVAV6.js → DXJ3SZ3N.js} +1 -1
- package/dist/cdn/{OSV7CFKC.js → E6TPV5IU.js} +1 -1
- package/dist/cdn/{5PO5KWY4.js → EJWPGKEU.js} +1 -1
- package/dist/cdn/{YRRWAHXD.js → EMIJDMKX.js} +1 -1
- package/dist/cdn/{CZ6EC5N6.js → EQIXMYG3.js} +1 -1
- package/dist/cdn/{TCSXUTNB.js → ER7WXLPC.js} +1 -1
- package/dist/cdn/{GBA56KXZ.js → FDS2YREX.js} +1 -1
- package/dist/cdn/{J5RTSFH2.js → FJCFPYSL.js} +1 -1
- package/dist/cdn/{MUQLRK7U.js → FLHFZN4H.js} +1 -1
- package/dist/cdn/{SBCMJF3D.js → FW6BT6EP.js} +1 -1
- package/dist/cdn/{7CJ5CM4O.js → FWBMKLCU.js} +1 -1
- package/dist/cdn/{T6HVZ47J.js → G6ZVL3QG.js} +1 -1
- package/dist/cdn/{WJ725XFM.js → GDCT3O3R.js} +1 -1
- package/dist/cdn/{K4BDB233.js → GIJ7PYXB.js} +1 -1
- package/dist/cdn/{7HUQTHRG.js → GJCWKT4V.js} +1 -1
- package/dist/cdn/{ZTWTNJJ6.js → GTTHGH23.js} +1 -1
- package/dist/cdn/{DQ3PCOCG.js → GZJYDK4X.js} +1 -1
- package/dist/cdn/{2ALI4ENC.js → HHATT2UD.js} +1 -1
- package/dist/cdn/{J7GLTPOG.js → HMM4ZFPP.js} +1 -1
- package/dist/cdn/{H5JD4SSM.js → HYJNZGDZ.js} +1 -1
- package/dist/cdn/{BRQQDHKC.js → IEO3SNVS.js} +1 -1
- package/dist/cdn/{MO5B4VX7.js → IER4QCWX.js} +1 -1
- package/dist/cdn/{UIRLGHFP.js → ITCJPW46.js} +1 -1
- package/dist/cdn/{KHVPREQL.js → IUVPJ3HG.js} +1 -1
- package/dist/cdn/{7NMYOO4C.js → JDJW7IOG.js} +1 -1
- package/dist/cdn/{INZFPRLC.js → JKVUWO4Q.js} +1 -1
- package/dist/cdn/{AVIL7OG7.js → JOSEHQRG.js} +1 -1
- package/dist/cdn/{I2GT4O6W.js → JUJXXQWA.js} +1 -1
- package/dist/cdn/{OV4L7Y2U.js → KAWJR2MH.js} +1 -1
- package/dist/cdn/{EMK36YXI.js → KBEOU6XB.js} +1 -1
- package/dist/cdn/{JDS4Q3DQ.js → KHUXEHSN.js} +1 -1
- package/dist/cdn/{AGS5VTQ7.js → KKYGFS33.js} +1 -1
- package/dist/cdn/{EL3MWVTU.js → KSUJTKZ5.js} +1 -1
- package/dist/cdn/{GSZ5XODZ.js → KXLEYKX5.js} +1 -1
- package/dist/cdn/{FRPHXRCY.js → KXN5XB73.js} +1 -1
- package/dist/cdn/{E4NELUHA.js → L5OXNYB3.js} +1 -1
- package/dist/cdn/{YJDVSJI7.js → LGTVQKU4.js} +1 -1
- package/dist/cdn/{DYNPRZCV.js → LIJ5V2RH.js} +1 -1
- package/dist/cdn/{C23B3A4Z.js → LOVOT7S2.js} +1 -1
- package/dist/cdn/{TNAV4Y7T.js → LU4ANEQL.js} +1 -1
- package/dist/cdn/{FNFMG4OS.js → LUINM7MS.js} +1 -1
- package/dist/cdn/{X4X4FZMJ.js → LV7VPYVR.js} +1 -1
- package/dist/cdn/{6ZJIHGRE.js → M3EYW2VG.js} +1 -1
- package/dist/cdn/{PMMNGLYO.js → MAPRLDXG.js} +1 -1
- package/dist/cdn/{GMGUT6R2.js → MLN6T267.js} +1 -1
- package/dist/cdn/{SWO5BPAD.js → MQHZO6ZP.js} +1 -1
- package/dist/cdn/{G7GMQSWX.js → MWTJ5EKX.js} +1 -1
- package/dist/cdn/{GQZX6FJD.js → N3YSSIMR.js} +1 -1
- package/dist/cdn/{CJ2SUM7M.js → NGUUYLR7.js} +1 -1
- package/dist/cdn/{DGP7CLGV.js → NJ24XHLQ.js} +1 -1
- package/dist/cdn/{5TAEPFKA.js → NKL7NSVV.js} +1 -1
- package/dist/cdn/{F3KQEYE7.js → NO7V52QT.js} +1 -1
- package/dist/cdn/{PCDEZQ5O.js → NP3C6UH3.js} +1 -1
- package/dist/cdn/{ZVP3ZHJW.js → NUJKT5EY.js} +1 -1
- package/dist/cdn/{SIQA2PBC.js → NVENUCRF.js} +1 -1
- package/dist/cdn/{JZDX222C.js → NXGI7U6L.js} +1 -1
- package/dist/cdn/{4OTPD46Y.js → O7FVKI6E.js} +1 -1
- package/dist/cdn/{LM5344X3.js → OEKMQUG2.js} +1 -1
- package/dist/cdn/{KKFKA36R.js → OPT67Q2R.js} +1 -1
- package/dist/cdn/{C6GZFOWX.js → OUQEH6CK.js} +1 -1
- package/dist/cdn/{INB4ESKN.js → P34UMG3H.js} +1 -1
- package/dist/cdn/{HLXJR3SQ.js → PHIHMI6K.js} +1 -1
- package/dist/cdn/{7YKEDO2W.js → PJNX7EDP.js} +1 -1
- package/dist/cdn/{KYNFC67E.js → PLGNVWQV.js} +1 -1
- package/dist/cdn/{IOHWA5AF.js → Q54PMU4H.js} +1 -1
- package/dist/cdn/{EL4KJ476.js → Q7NS4GVX.js} +1 -1
- package/dist/cdn/{FJGZSA3T.js → QBDKDE2F.js} +1 -1
- package/dist/cdn/{XCC7RZKY.js → QQPT3ENO.js} +1 -1
- package/dist/cdn/{X6FZGCQO.js → R7NJ5DPM.js} +1 -1
- package/dist/cdn/{YFNGK3IC.js → RCO7AQK4.js} +1 -1
- package/dist/cdn/{QYPBF7SX.js → RET4INDI.js} +1 -1
- package/dist/cdn/ROJJWCLD.js +2 -0
- package/dist/cdn/{JPP57EQ2.js → S3BDFFWK.js} +1 -1
- package/dist/cdn/{KDYHO3DX.js → STFBBE2C.js} +1 -1
- package/dist/cdn/{6UAE7TVW.js → TFZWWJXM.js} +1 -1
- package/dist/cdn/{RCGGD4VD.js → TOS26VDH.js} +1 -1
- package/dist/cdn/{7VJQDFM5.js → TSYMHVVE.js} +1 -1
- package/dist/cdn/{GINPHCKX.js → U62I6ED4.js} +1 -1
- package/dist/cdn/{WMKL773C.js → UHAH4IYQ.js} +1 -1
- package/dist/cdn/{UPBB5BK5.js → UQGH3DKB.js} +1 -1
- package/dist/cdn/{MYV5GGZF.js → V25VIIA6.js} +1 -1
- package/dist/cdn/{CE6DVH5U.js → V464OWRY.js} +1 -1
- package/dist/cdn/{STG4CABT.js → VP6XZS6K.js} +1 -1
- package/dist/cdn/{Z5RHXMLK.js → VQUEYWKU.js} +1 -1
- package/dist/cdn/{F6RUE2M2.js → VUSM63GA.js} +1 -1
- package/dist/cdn/{A5XRC6GV.js → VVKC5BGR.js} +1 -1
- package/dist/cdn/{3KPB5ZG3.js → WFZSPJIU.js} +1 -1
- package/dist/cdn/{OSK3U7WF.js → WJVJQE5P.js} +1 -1
- package/dist/cdn/{LMVGXCUB.js → WKQNZHN6.js} +1 -1
- package/dist/cdn/{4PRZO5FL.js → WTUM4SSW.js} +1 -1
- package/dist/cdn/{RIWCMIVC.js → X4UWXMWI.js} +1 -1
- package/dist/cdn/{W7WKPRBR.js → X6FVQNUG.js} +1 -1
- package/dist/cdn/{34S4GEZH.js → XG2KRODT.js} +1 -1
- package/dist/cdn/{IZS3M5HV.js → XQKV3J6C.js} +1 -1
- package/dist/cdn/{BRLCJYRS.js → XSVOUKOA.js} +1 -1
- package/dist/cdn/{BTQF7UHA.js → XXQAUXU6.js} +1 -1
- package/dist/cdn/{TE36HTKY.js → XZRWDGTF.js} +1 -1
- package/dist/cdn/{JTPCZIUB.js → YCY2AXMT.js} +1 -1
- package/dist/cdn/{YQLZIZEE.js → YFCK7FOA.js} +1 -1
- package/dist/cdn/{KTMPQFXM.js → YFE2XCCJ.js} +1 -1
- package/dist/cdn/{3DWN3FBO.js → YGFGJM5J.js} +1 -1
- package/dist/cdn/{M5CAMUJA.js → YGRFNIT3.js} +1 -1
- package/dist/cdn/{AD6N6O57.js → YYGZ5NQC.js} +1 -1
- package/dist/cdn/{7XLKMGMO.js → ZGP64WBH.js} +1 -1
- package/dist/cdn/{34LN2LJS.js → ZIMTT3GB.js} +1 -1
- package/dist/cdn/{EI4TFI4G.js → ZSPKZX6D.js} +1 -1
- package/dist/cdn/{LKHNWV7H.js → ZVV7PQRT.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +3 -3
- package/dist/components/calcite-accordion/customElement.d.ts +4 -6
- package/dist/components/calcite-action-bar/customElement.d.ts +20 -6
- package/dist/components/calcite-action-bar/customElement.js +147 -15
- package/dist/components/calcite-action-group/customElement.d.ts +8 -11
- package/dist/components/calcite-action-menu/customElement.d.ts +3 -3
- package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
- package/dist/components/calcite-autocomplete/customElement.d.ts +3 -3
- package/dist/components/calcite-block/customElement.d.ts +3 -3
- package/dist/components/calcite-block-section/customElement.d.ts +3 -4
- package/dist/components/calcite-chip-group/customElement.d.ts +5 -8
- package/dist/components/calcite-combobox/customElement.d.ts +15 -21
- package/dist/components/calcite-dialog/customElement.d.ts +10 -10
- package/dist/components/calcite-dropdown/customElement.d.ts +3 -3
- package/dist/components/calcite-dropdown-group/customElement.d.ts +4 -6
- package/dist/components/calcite-flow-item/customElement.d.ts +3 -3
- package/dist/components/calcite-focus-trap/customElement.d.ts +6 -6
- package/dist/components/calcite-input-date-picker/customElement.d.ts +3 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +7 -7
- package/dist/components/calcite-input-time-zone/customElement.d.ts +7 -7
- package/dist/components/calcite-label/customElement.d.ts +3 -1
- package/dist/components/calcite-list/customElement.d.ts +15 -24
- package/dist/components/calcite-meter/customElement.d.ts +4 -3
- package/dist/components/calcite-notice/customElement.d.ts +3 -1
- package/dist/components/calcite-panel/customElement.d.ts +3 -3
- package/dist/components/calcite-popover/customElement.d.ts +9 -9
- package/dist/components/calcite-segmented-control/customElement.d.ts +3 -1
- package/dist/components/calcite-select/customElement.d.ts +3 -1
- package/dist/components/calcite-sheet/customElement.d.ts +6 -6
- package/dist/components/calcite-shell-panel/customElement.d.ts +6 -10
- package/dist/components/calcite-slider/customElement.d.ts +2 -0
- package/dist/components/calcite-slider/customElement.js +9 -5
- package/dist/components/calcite-sort-handle/customElement.d.ts +3 -3
- package/dist/components/calcite-split-button/customElement.d.ts +6 -4
- package/dist/components/calcite-swatch-group/customElement.d.ts +5 -8
- package/dist/components/calcite-table/customElement.d.ts +4 -6
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -4
- package/dist/components/calcite-table-row/customElement.d.ts +5 -4
- package/dist/components/calcite-tile-group/customElement.d.ts +9 -9
- package/dist/components/calcite-time-picker/customElement.d.ts +4 -4
- package/dist/components/calcite-tooltip/customElement.d.ts +3 -3
- package/dist/components/calcite-tree/customElement.d.ts +9 -15
- package/dist/controllers/useTime.d.ts +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +2 -2
- package/dist/cdn/HKLXMKWW.js +0 -2
|
@@ -43,6 +43,9 @@ const getOverflowCount = ({
|
|
|
43
43
|
};
|
|
44
44
|
const CSS = {
|
|
45
45
|
container: "container",
|
|
46
|
+
hasActionGroups: "has-action-groups",
|
|
47
|
+
lineOverlay: "line-overlay",
|
|
48
|
+
line: "line",
|
|
46
49
|
actionGroupEnd: "action-group--end",
|
|
47
50
|
actionGroupStart: "action-group--start"
|
|
48
51
|
};
|
|
@@ -60,6 +63,18 @@ const queryActions = (items) => items.flatMap((item) => {
|
|
|
60
63
|
}
|
|
61
64
|
return item;
|
|
62
65
|
}).filter((action) => !!action);
|
|
66
|
+
const getWrapItemCrossOffset = ({
|
|
67
|
+
item,
|
|
68
|
+
containerRect,
|
|
69
|
+
horizontal,
|
|
70
|
+
rtl
|
|
71
|
+
}) => {
|
|
72
|
+
const rect = item.getBoundingClientRect();
|
|
73
|
+
if (horizontal) {
|
|
74
|
+
return rect.top - containerRect.top;
|
|
75
|
+
}
|
|
76
|
+
return rtl ? containerRect.right - rect.right : rect.left - containerRect.left;
|
|
77
|
+
};
|
|
63
78
|
const overflowActions = ({
|
|
64
79
|
actionGroups,
|
|
65
80
|
expanded,
|
|
@@ -92,7 +107,7 @@ const overflowActions = ({
|
|
|
92
107
|
group.manager.component.requestUpdate();
|
|
93
108
|
});
|
|
94
109
|
};
|
|
95
|
-
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-xxs));--calcite-internal-action-bar-padding: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-sm));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm-plus)}:host{display:inline-flex;align-self:stretch;background:transparent;--calcite-internal-action-group-dividing-border-margin: calc(var(--calcite-spacing-base) + 1px)}.container{display:inline-flex;flex:1 1 auto;flex-direction:column;background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));gap:var(--calcite-internal-action-bar-gap);padding:var(--calcite-internal-action-bar-padding)}@keyframes in{0%{opacity:0}to{opacity:1}}:host([floating]) .container{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;overflow:hidden;border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));box-shadow:var(--calcite-action-bar-shadow, var(--calcite-shadow-md))}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]) .container{overflow-y:auto}:host([layout=vertical]):host([expanded]) .container{max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm);border-image:linear-gradient(to right,transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;padding-block-end:var(--calcite-internal-action-bar-padding)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]) .container{overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-image:linear-gradient(transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;border-inline-end-width:var(--calcite-border-width-sm);padding-inline-end:var(--calcite-internal-action-bar-padding)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
110
|
+
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-xxs));--calcite-internal-action-bar-padding: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-spacing-sm));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-bar-gap: var(--calcite-action-bar-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-bar-padding: var(--calcite-spacing-sm-plus)}:host{display:inline-flex;align-self:stretch;background:transparent;--calcite-internal-action-group-dividing-border-margin: calc(var(--calcite-spacing-base) + 1px)}.container{display:inline-flex;flex:1 1 auto;flex-direction:column;background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));gap:var(--calcite-internal-action-bar-gap);padding:var(--calcite-internal-action-bar-padding)}@keyframes in{0%{opacity:0}to{opacity:1}}:host([floating]) .container{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;overflow:hidden;border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));box-shadow:var(--calcite-action-bar-shadow, var(--calcite-shadow-md))}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]) .container{overflow-y:auto}:host([layout=vertical]):host([expanded]) .container{max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm);border-image:linear-gradient(to right,transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;padding-block-end:var(--calcite-internal-action-bar-padding)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]) .container{overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-image:linear-gradient(transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent var(--calcite-internal-action-group-dividing-border-margin));border-image-slice:1;border-inline-end-width:var(--calcite-border-width-sm);padding-inline-end:var(--calcite-internal-action-bar-padding)}.action-group--end{justify-content:flex-end}.line-overlay{position:absolute;inset:0;pointer-events:none}.line{position:absolute;--calcite-internal-action-bar-divider-inset: calc( var(--calcite-internal-action-group-dividing-border-margin) - var(--calcite-border-width-sm) )}:host([overflow-mode=wrap][layout=horizontal]) .container,:host([overflow-mode=wrap][layout=vertical]) .container{position:relative;flex-wrap:wrap;align-content:flex-start;--calcite-internal-action-bar-line-gap: calc( var(--calcite-internal-action-bar-padding) + var(--calcite-internal-action-bar-gap) )}:host([overflow-mode=wrap][layout=horizontal]) .container{row-gap:var(--calcite-internal-action-bar-line-gap)}:host([overflow-mode=wrap][layout=horizontal]) ::slotted(calcite-action-group){margin-inline-start:calc(-1 * var(--calcite-border-width-sm));padding-inline:var(--calcite-internal-action-bar-padding) 0;border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:0;border-image:linear-gradient(transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent calc(100% - var(--calcite-internal-action-group-dividing-border-margin)));border-image-slice:1}:host([overflow-mode=wrap][layout=horizontal]) .line{inset-inline:var(--calcite-internal-action-bar-padding);block-size:var(--calcite-border-width-sm);inset-block-start:calc(var(--calcite-internal-action-bar-line-offset, 0px) - var(--calcite-internal-action-bar-line-gap) / 2);background:linear-gradient(to right,transparent var(--calcite-internal-action-bar-divider-inset),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-bar-divider-inset),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-bar-divider-inset)),transparent calc(100% - var(--calcite-internal-action-bar-divider-inset)))}:host([overflow-mode=wrap][layout=horizontal]) .container.has-action-groups{overflow:hidden;padding-inline-start:0;column-gap:calc(var(--calcite-internal-action-bar-gap) + var(--calcite-border-width-sm))}:host([overflow-mode=wrap][layout=horizontal]) .container.has-action-groups .action-group--start{padding-inline-start:var(--calcite-internal-action-bar-padding)}:host([overflow-mode=wrap][layout=vertical]) .container{block-size:100%;min-block-size:0;column-gap:var(--calcite-internal-action-bar-line-gap)}:host([overflow-mode=wrap][layout=vertical]) ::slotted(calcite-action-group){margin-block-start:calc(-1 * var(--calcite-border-width-sm));padding-block:var(--calcite-internal-action-bar-padding) 0;border-block-start-width:var(--calcite-border-width-sm);border-block-end-width:0;border-image:linear-gradient(to right,transparent var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-group-dividing-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-group-dividing-border-margin)),transparent calc(100% - var(--calcite-internal-action-group-dividing-border-margin)));border-image-slice:1}:host([overflow-mode=wrap][layout=vertical]) .line{inset-block:var(--calcite-internal-action-bar-padding);inline-size:var(--calcite-border-width-sm);inset-inline-start:calc(var(--calcite-internal-action-bar-line-offset, 0px) - var(--calcite-internal-action-bar-line-gap) / 2);background:linear-gradient(to bottom,transparent var(--calcite-internal-action-bar-divider-inset),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--calcite-internal-action-bar-divider-inset),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--calcite-internal-action-bar-divider-inset)),transparent calc(100% - var(--calcite-internal-action-bar-divider-inset)))}:host([overflow-mode=wrap][layout=vertical]) .container.has-action-groups{overflow:hidden;padding-block-start:0;row-gap:calc(var(--calcite-internal-action-bar-gap) + var(--calcite-border-width-sm))}:host([overflow-mode=wrap][layout=vertical]) .container.has-action-groups .action-group--start{padding-block-start:var(--calcite-internal-action-bar-padding)}:host([overflow-mode=none][layout=horizontal]) .container{overflow-x:auto}:host([overflow-mode=none][layout=vertical]) .container{overflow-y:auto}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
96
111
|
class ActionBar extends LitElement {
|
|
97
112
|
constructor() {
|
|
98
113
|
super();
|
|
@@ -115,8 +130,15 @@ class ActionBar extends LitElement {
|
|
|
115
130
|
this.suppressedActionGroupActionsChange = /* @__PURE__ */ new WeakMap();
|
|
116
131
|
this.cancelable = useCancelable()(this);
|
|
117
132
|
this.resize = debounce(({ width, height }) => {
|
|
118
|
-
const { expanded, expandToggleDisabled, layout,
|
|
119
|
-
if (
|
|
133
|
+
const { expanded, expandToggleDisabled, layout, expandPosition } = this;
|
|
134
|
+
if (!this.containerRef.value) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (this.usesWrap) {
|
|
138
|
+
this.scheduleLineMeasure();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (this.overflowMode !== "collapse" || layout === "vertical" && !height || layout === "horizontal" && !width) {
|
|
120
142
|
return;
|
|
121
143
|
}
|
|
122
144
|
this.updateGroups();
|
|
@@ -177,6 +199,10 @@ class ActionBar extends LitElement {
|
|
|
177
199
|
});
|
|
178
200
|
}, DEBOUNCE.resize);
|
|
179
201
|
this.resizeHandler = (entry) => {
|
|
202
|
+
if (this.usesWrap) {
|
|
203
|
+
this.scheduleLineMeasure();
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
180
206
|
const { width, height } = entry.contentRect;
|
|
181
207
|
this.resize({ width, height });
|
|
182
208
|
};
|
|
@@ -192,12 +218,14 @@ class ActionBar extends LitElement {
|
|
|
192
218
|
};
|
|
193
219
|
this.hasActionsEnd = false;
|
|
194
220
|
this.hasActionsStart = false;
|
|
221
|
+
this.hasActionGroups = false;
|
|
222
|
+
this.lineOffsets = [];
|
|
195
223
|
this.floating = false;
|
|
196
224
|
this.expandToggleDisabled = false;
|
|
197
225
|
this.expanded = false;
|
|
198
226
|
this.expandPosition = "end";
|
|
199
227
|
this.layout = "vertical";
|
|
200
|
-
this.
|
|
228
|
+
this.overflowMode = "collapse";
|
|
201
229
|
this.overlayPositioning = "absolute";
|
|
202
230
|
this.scale = "m";
|
|
203
231
|
this.selectionAppearance = "neutral";
|
|
@@ -210,7 +238,7 @@ class ActionBar extends LitElement {
|
|
|
210
238
|
this.listen("keydown", this.handleKeyDown);
|
|
211
239
|
}
|
|
212
240
|
static {
|
|
213
|
-
this.properties = { expandTooltip: [16, {}, { state: true }], hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], actionsEndGroupLabel: 1, actionsStartGroupLabel: 1, floating: [7, {}, { reflect: true, type: Boolean }], expandToggleDisabled: [7, {}, { reflect: true, type: Boolean }], expandDisabled: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], expandPosition: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overflowActionsDisabled: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], position: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
|
|
241
|
+
this.properties = { expandTooltip: [16, {}, { state: true }], hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], hasActionGroups: [16, {}, { state: true }], lineOffsets: [16, {}, { state: true }], actionsEndGroupLabel: 1, actionsStartGroupLabel: 1, floating: [7, {}, { reflect: true, type: Boolean }], expandToggleDisabled: [7, {}, { reflect: true, type: Boolean }], expandDisabled: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], expandPosition: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], overflowMode: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overflowActionsDisabled: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], position: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
|
|
214
242
|
}
|
|
215
243
|
static {
|
|
216
244
|
this.styles = styles;
|
|
@@ -227,7 +255,25 @@ class ActionBar extends LitElement {
|
|
|
227
255
|
});
|
|
228
256
|
this.expandToggleDisabled = value;
|
|
229
257
|
}
|
|
258
|
+
get overflowActionsDisabled() {
|
|
259
|
+
return this.overflowMode === "none";
|
|
260
|
+
}
|
|
261
|
+
set overflowActionsDisabled(value) {
|
|
262
|
+
logger.deprecated("property", {
|
|
263
|
+
component: this,
|
|
264
|
+
name: "overflowActionsDisabled",
|
|
265
|
+
removalVersion: 7,
|
|
266
|
+
suggested: 'overflowMode="none"'
|
|
267
|
+
});
|
|
268
|
+
this.overflowMode = value ? "none" : "collapse";
|
|
269
|
+
}
|
|
230
270
|
async overflowActions() {
|
|
271
|
+
if (this.overflowMode !== "collapse") {
|
|
272
|
+
if (this.usesWrap) {
|
|
273
|
+
this.scheduleLineMeasure();
|
|
274
|
+
}
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
231
277
|
this.resize({ width: this.el.clientWidth, height: this.el.clientHeight });
|
|
232
278
|
}
|
|
233
279
|
async setFocus(options) {
|
|
@@ -235,7 +281,7 @@ class ActionBar extends LitElement {
|
|
|
235
281
|
}
|
|
236
282
|
connectedCallback() {
|
|
237
283
|
super.connectedCallback();
|
|
238
|
-
this.
|
|
284
|
+
this.overflowModeHandler();
|
|
239
285
|
this.cancelable.add(this.resize);
|
|
240
286
|
}
|
|
241
287
|
willUpdate(changes) {
|
|
@@ -244,9 +290,22 @@ class ActionBar extends LitElement {
|
|
|
244
290
|
}
|
|
245
291
|
if (changes.has("layout") && (this.hasUpdated || this.layout !== "vertical")) {
|
|
246
292
|
this.updateGroups();
|
|
293
|
+
this.overflowModeHandler();
|
|
294
|
+
if (!this.usesWrap) {
|
|
295
|
+
this.updateLines();
|
|
296
|
+
}
|
|
247
297
|
}
|
|
248
|
-
if (changes.has("
|
|
249
|
-
this.
|
|
298
|
+
if (changes.has("overflowMode") && (this.hasUpdated || this.overflowMode !== "collapse")) {
|
|
299
|
+
if (!this.usesWrap && this.lineMeasureFrame != null) {
|
|
300
|
+
cancelAnimationFrame(this.lineMeasureFrame);
|
|
301
|
+
this.lineMeasureFrame = void 0;
|
|
302
|
+
}
|
|
303
|
+
if (this.usesWrap) {
|
|
304
|
+
this.scheduleLineMeasure();
|
|
305
|
+
} else {
|
|
306
|
+
this.updateLines();
|
|
307
|
+
}
|
|
308
|
+
this.overflowModeHandler();
|
|
250
309
|
}
|
|
251
310
|
if (changes.has("expanded") && this.hasUpdated) {
|
|
252
311
|
this.expandedHandler();
|
|
@@ -267,9 +326,18 @@ class ActionBar extends LitElement {
|
|
|
267
326
|
this.syncActionsState();
|
|
268
327
|
this.overflowActions();
|
|
269
328
|
}
|
|
329
|
+
updated() {
|
|
330
|
+
if (this.usesWrap && this.lineMeasureFrame == null) {
|
|
331
|
+
this.scheduleLineMeasure();
|
|
332
|
+
}
|
|
333
|
+
}
|
|
270
334
|
disconnectedCallback() {
|
|
271
335
|
super.disconnectedCallback();
|
|
272
336
|
this.resizeObserver?.disconnect();
|
|
337
|
+
if (this.lineMeasureFrame != null) {
|
|
338
|
+
cancelAnimationFrame(this.lineMeasureFrame);
|
|
339
|
+
this.lineMeasureFrame = void 0;
|
|
340
|
+
}
|
|
273
341
|
}
|
|
274
342
|
getItemSizes() {
|
|
275
343
|
const { layout, expandToggleEl } = this;
|
|
@@ -285,12 +353,12 @@ class ActionBar extends LitElement {
|
|
|
285
353
|
this.syncActionsState(true);
|
|
286
354
|
this.overflowActions();
|
|
287
355
|
}
|
|
288
|
-
|
|
289
|
-
if (
|
|
356
|
+
overflowModeHandler() {
|
|
357
|
+
if (this.overflowMode === "none") {
|
|
290
358
|
this.resizeObserver?.disconnect();
|
|
291
|
-
|
|
359
|
+
} else {
|
|
360
|
+
this.resizeObserver?.observe(this.el);
|
|
292
361
|
}
|
|
293
|
-
this.resizeObserver?.observe(this.el);
|
|
294
362
|
this.overflowActions();
|
|
295
363
|
}
|
|
296
364
|
actionMenuOpenHandler(event) {
|
|
@@ -354,13 +422,72 @@ class ActionBar extends LitElement {
|
|
|
354
422
|
...this.actionsEndGroups,
|
|
355
423
|
...this.getSectionWrapperGroups()
|
|
356
424
|
];
|
|
425
|
+
this.hasActionGroups = this.actionGroups.length > 0;
|
|
357
426
|
groups.forEach((group) => {
|
|
358
427
|
group.layout = this.layout;
|
|
359
428
|
group.scale = this.scale;
|
|
360
429
|
});
|
|
361
430
|
}
|
|
431
|
+
get usesWrap() {
|
|
432
|
+
return this.overflowMode === "wrap" && this.layout !== "grid";
|
|
433
|
+
}
|
|
434
|
+
scheduleLineMeasure() {
|
|
435
|
+
if (this.lineMeasureFrame != null) {
|
|
436
|
+
cancelAnimationFrame(this.lineMeasureFrame);
|
|
437
|
+
}
|
|
438
|
+
this.lineMeasureFrame = requestAnimationFrame(() => {
|
|
439
|
+
this.lineMeasureFrame = void 0;
|
|
440
|
+
this.updateLines();
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
getWrapItems() {
|
|
444
|
+
const items = [];
|
|
445
|
+
const start = this.actionsStartGroupRef.value;
|
|
446
|
+
if (start && !start.hidden) {
|
|
447
|
+
items.push(start);
|
|
448
|
+
}
|
|
449
|
+
this.defaultSlotItems.forEach((el) => {
|
|
450
|
+
if (!el.hidden) {
|
|
451
|
+
items.push(el);
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
const end = this.actionsEndGroupRef.value;
|
|
455
|
+
if (end && !end.hidden) {
|
|
456
|
+
items.push(end);
|
|
457
|
+
}
|
|
458
|
+
return items;
|
|
459
|
+
}
|
|
460
|
+
updateLines() {
|
|
461
|
+
const container = this.containerRef.value;
|
|
462
|
+
if (!container || !this.usesWrap) {
|
|
463
|
+
if (this.lineOffsets.length > 0) {
|
|
464
|
+
this.lineOffsets = [];
|
|
465
|
+
}
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
const horizontal = this.layout === "horizontal";
|
|
469
|
+
const rtl = this.direction === "rtl";
|
|
470
|
+
const containerRect = container.getBoundingClientRect();
|
|
471
|
+
const items = this.getWrapItems();
|
|
472
|
+
const lineOffsets = [];
|
|
473
|
+
let previousOffset = null;
|
|
474
|
+
items.forEach((item) => {
|
|
475
|
+
const offset = getWrapItemCrossOffset({ item, containerRect, horizontal, rtl });
|
|
476
|
+
if (previousOffset !== null && Math.abs(offset - previousOffset) > 1) {
|
|
477
|
+
lineOffsets.push(offset);
|
|
478
|
+
}
|
|
479
|
+
previousOffset = offset;
|
|
480
|
+
});
|
|
481
|
+
const changed = lineOffsets.length !== this.lineOffsets.length || lineOffsets.some((value, index) => value !== this.lineOffsets[index]);
|
|
482
|
+
if (changed) {
|
|
483
|
+
this.lineOffsets = lineOffsets;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
362
486
|
handleDefaultSlotChange() {
|
|
363
487
|
this.syncSlotAndActions(() => this.syncDefaultSlot());
|
|
488
|
+
if (this.usesWrap) {
|
|
489
|
+
this.scheduleLineMeasure();
|
|
490
|
+
}
|
|
364
491
|
}
|
|
365
492
|
handleActionsEndSlotChange() {
|
|
366
493
|
this.syncSlotAndActions(() => this.syncActionsEndSlot());
|
|
@@ -519,15 +646,20 @@ class ActionBar extends LitElement {
|
|
|
519
646
|
const onSlotChange = isStart ? this.handleActionsStartSlotChange : this.handleActionsEndSlotChange;
|
|
520
647
|
const label = isStart ? this.actionsStartGroupLabel : this.actionsEndGroupLabel;
|
|
521
648
|
const hidden = !hasExpandToggle && !hasActions;
|
|
522
|
-
const className = isStart ? CSS.actionGroupStart : CSS.actionGroupEnd;
|
|
523
649
|
const actionGroupRef = isStart ? this.actionsStartGroupRef : this.actionsEndGroupRef;
|
|
524
650
|
const slotRef = isStart ? this.actionsStartSlotRef : this.actionsEndSlotRef;
|
|
525
651
|
const expandToggle = hasExpandToggle ? this.renderExpandToggle() : null;
|
|
526
|
-
return html`<calcite-action-group class=${safeClassMap(
|
|
652
|
+
return html`<calcite-action-group class=${safeClassMap({
|
|
653
|
+
[CSS.actionGroupStart]: isStart,
|
|
654
|
+
[CSS.actionGroupEnd]: !isStart
|
|
655
|
+
})} .hidden=${hidden} .label=${label} .layout=${layout} .overlayPositioning=${overlayPositioning} .scale=${scale} ${ref(actionGroupRef)}>${isStart ? expandToggle : null}<slot name=${slotName ?? nothing} @slotchange=${onSlotChange} ${ref(slotRef)}></slot>${hasExpandToggle ? this.renderExpandTooltipSlot() : null}${isStart ? null : expandToggle}</calcite-action-group>`;
|
|
527
656
|
}
|
|
528
657
|
render() {
|
|
529
658
|
const ariaOrientation = this.layout === "horizontal" ? "horizontal" : "vertical";
|
|
530
|
-
return html`<div .ariaOrientation=${ariaOrientation} class=${safeClassMap(
|
|
659
|
+
return html`<div .ariaOrientation=${ariaOrientation} class=${safeClassMap({
|
|
660
|
+
[CSS.container]: true,
|
|
661
|
+
[CSS.hasActionGroups]: this.hasActionGroups
|
|
662
|
+
})} role=toolbar ${ref(this.containerRef)}>${this.renderActionsGroup("start")}<slot @slotchange=${this.handleDefaultSlotChange} ${ref(this.defaultSlotRef)}></slot>${this.renderActionsGroup("end")}${this.usesWrap ? html`<div aria-hidden=true class=${safeClassMap(CSS.lineOverlay)}>${this.lineOffsets.map((offset) => html`<div class=${safeClassMap(CSS.line)} style=${`--calcite-internal-action-bar-line-offset: ${offset}px`}></div>`)}</div>` : null}</div>`;
|
|
531
663
|
}
|
|
532
664
|
}
|
|
533
665
|
customElement("calcite-action-bar", ActionBar);
|
|
@@ -61,11 +61,11 @@ export abstract class ActionGroup extends LitElement {
|
|
|
61
61
|
*/
|
|
62
62
|
accessor overflowActionsDisabled: boolean;
|
|
63
63
|
/**
|
|
64
|
-
* Specifies the type of positioning to use for overlaid content
|
|
64
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
65
65
|
*
|
|
66
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
66
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
67
67
|
*
|
|
68
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
68
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
69
69
|
*
|
|
70
70
|
* @default "absolute"
|
|
71
71
|
*/
|
|
@@ -79,15 +79,12 @@ export abstract class ActionGroup extends LitElement {
|
|
|
79
79
|
/** Specifies the active actions in the group. */
|
|
80
80
|
get selectedActions(): Action[];
|
|
81
81
|
/**
|
|
82
|
-
* Specifies the selection mode of the component
|
|
82
|
+
* Specifies the selection mode of the component.
|
|
83
83
|
*
|
|
84
|
-
* `"multiple"` allows any number of selections
|
|
85
|
-
*
|
|
86
|
-
* `"single"` allows
|
|
87
|
-
*
|
|
88
|
-
* `"single-persist"` allows one selection and prevents de-selection, and
|
|
89
|
-
*
|
|
90
|
-
* `"none"` disables selection (default).
|
|
84
|
+
* - `"multiple"` allows any number of selections.
|
|
85
|
+
* - `"single"` allows only one selection.
|
|
86
|
+
* - `"single-persist"` allows one selection and prevents de-selection.
|
|
87
|
+
* - `"none"` disables selection (default).
|
|
91
88
|
*
|
|
92
89
|
* @default "none"
|
|
93
90
|
*/
|
|
@@ -44,11 +44,11 @@ export abstract class ActionMenu extends LitElement {
|
|
|
44
44
|
*/
|
|
45
45
|
accessor open: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Specifies the type of positioning to use for overlaid content
|
|
47
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
48
48
|
*
|
|
49
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
49
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
50
50
|
*
|
|
51
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
51
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
52
52
|
*
|
|
53
53
|
* @default "absolute"
|
|
54
54
|
*/
|
|
@@ -44,11 +44,11 @@ export abstract class ActionPad extends LitElement {
|
|
|
44
44
|
collapseLabel?: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
|
-
* Specifies the type of positioning to use for overlaid content
|
|
47
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
48
48
|
*
|
|
49
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
49
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
50
50
|
*
|
|
51
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
51
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
52
52
|
*
|
|
53
53
|
* @default "absolute"
|
|
54
54
|
*/
|
|
@@ -120,11 +120,11 @@ export abstract class Autocomplete extends LitElement {
|
|
|
120
120
|
*/
|
|
121
121
|
accessor open: boolean;
|
|
122
122
|
/**
|
|
123
|
-
* Specifies the type of positioning to use for overlaid content
|
|
123
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
124
124
|
*
|
|
125
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
125
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
126
126
|
*
|
|
127
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
127
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
128
128
|
*
|
|
129
129
|
* @default "absolute"
|
|
130
130
|
*/
|
|
@@ -107,11 +107,11 @@ export abstract class Block extends LitElement {
|
|
|
107
107
|
*/
|
|
108
108
|
accessor open: boolean;
|
|
109
109
|
/**
|
|
110
|
-
* Specifies the type of positioning to use for overlaid content
|
|
110
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
111
111
|
*
|
|
112
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
112
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
113
113
|
*
|
|
114
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
114
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
115
115
|
*
|
|
116
116
|
* @default "absolute"
|
|
117
117
|
*/
|
|
@@ -57,11 +57,10 @@ export abstract class BlockSection extends LitElement {
|
|
|
57
57
|
/** The component header text. */
|
|
58
58
|
accessor text: string | undefined;
|
|
59
59
|
/**
|
|
60
|
-
* Specifies how the component's toggle is displayed
|
|
60
|
+
* Specifies how the component's toggle is displayed.
|
|
61
61
|
*
|
|
62
|
-
* `"button"` sets the toggle to a selectable header
|
|
63
|
-
*
|
|
64
|
-
* `"switch"` sets the toggle to a switch.
|
|
62
|
+
* - `"button"` sets the toggle to a selectable header.
|
|
63
|
+
* - `"switch"` sets the toggle to a switch.
|
|
65
64
|
*
|
|
66
65
|
* @default "button"
|
|
67
66
|
*/
|
|
@@ -26,15 +26,12 @@ export abstract class ChipGroup extends LitElement {
|
|
|
26
26
|
/** Specifies the component's selected items. */
|
|
27
27
|
get selectedItems(): Chip[];
|
|
28
28
|
/**
|
|
29
|
-
* Specifies the selection mode of the component
|
|
29
|
+
* Specifies the selection mode of the component.
|
|
30
30
|
*
|
|
31
|
-
* `"multiple"` allows any number of selections
|
|
32
|
-
*
|
|
33
|
-
* `"single"` allows
|
|
34
|
-
*
|
|
35
|
-
* `"single-persist"` allows one selection and prevents de-selection, and
|
|
36
|
-
*
|
|
37
|
-
* `"none"` does not allow any selections.
|
|
31
|
+
* - `"multiple"` allows any number of selections.
|
|
32
|
+
* - `"single"` allows only one selection.
|
|
33
|
+
* - `"single-persist"` allows one selection and prevents de-selection.
|
|
34
|
+
* - `"none"` does not allow any selections.
|
|
38
35
|
*
|
|
39
36
|
* @default "none"
|
|
40
37
|
*/
|
|
@@ -89,11 +89,11 @@ export abstract class Combobox extends LitElement {
|
|
|
89
89
|
*/
|
|
90
90
|
accessor open: boolean;
|
|
91
91
|
/**
|
|
92
|
-
* Specifies the type of positioning to use for overlaid content
|
|
92
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
93
93
|
*
|
|
94
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
94
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
95
95
|
*
|
|
96
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
96
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
97
97
|
*
|
|
98
98
|
* @default "absolute"
|
|
99
99
|
*/
|
|
@@ -142,37 +142,31 @@ export abstract class Combobox extends LitElement {
|
|
|
142
142
|
/** The component's selected items. */
|
|
143
143
|
get selectedItems(): HTMLCalciteComboboxItemElement[];
|
|
144
144
|
/**
|
|
145
|
-
* Specifies the selection appearance
|
|
145
|
+
* Specifies the selection appearance.
|
|
146
146
|
*
|
|
147
|
-
* `"icon"` displays a checkmark or dot
|
|
148
|
-
*
|
|
149
|
-
* `"highlight"` displays a background highlight.
|
|
147
|
+
* - `"icon"` displays a checkmark or dot.
|
|
148
|
+
* - `"highlight"` displays a background highlight.
|
|
150
149
|
*
|
|
151
150
|
* @default "icon"
|
|
152
151
|
*/
|
|
153
152
|
accessor selectionAppearance: Extract<"icon" | "highlight", SelectionAppearance>;
|
|
154
153
|
/**
|
|
155
|
-
* When `selectionMode` is `"ancestors"` or `"multiple"`, specifies the display of multiple `calcite-combobox-item` selections
|
|
156
|
-
*
|
|
157
|
-
* `"all"` displays all selections with individual `calcite-chip`s,
|
|
158
|
-
*
|
|
159
|
-
* `"fit"` displays individual `calcite-chip`s that scale to the component's size, including a non-closable `calcite-chip`, which provides the number of additional `calcite-combobox-item` selections not visually displayed, and
|
|
154
|
+
* When `selectionMode` is `"ancestors"` or `"multiple"`, specifies the display of multiple `calcite-combobox-item` selections.
|
|
160
155
|
*
|
|
161
|
-
* `"
|
|
156
|
+
* - `"all"` displays all selections with individual `calcite-chip`s.
|
|
157
|
+
* - `"fit"` displays individual `calcite-chip`s that scale to the component's size, including a non-closable `calcite-chip`, which provides the number of additional `calcite-combobox-item` selections not visually displayed.
|
|
158
|
+
* - `"single"` displays one `calcite-chip` with the total number of selections.
|
|
162
159
|
*
|
|
163
160
|
* @default "all"
|
|
164
161
|
*/
|
|
165
162
|
accessor selectionDisplay: SelectionDisplay;
|
|
166
163
|
/**
|
|
167
|
-
* Specifies the selection mode of the component
|
|
168
|
-
*
|
|
169
|
-
* `"multiple"` allows any number of selections,
|
|
170
|
-
*
|
|
171
|
-
* `"single"` allows only one selection,
|
|
172
|
-
*
|
|
173
|
-
* `"single-persist"` allows one selection and prevents de-selection, and
|
|
164
|
+
* Specifies the selection mode of the component.
|
|
174
165
|
*
|
|
175
|
-
* `"
|
|
166
|
+
* - `"multiple"` allows any number of selections.
|
|
167
|
+
* - `"single"` allows only one selection.
|
|
168
|
+
* - `"single-persist"` allows one selection and prevents de-selection.
|
|
169
|
+
* - `"ancestors"` allows multiple selections, but shows ancestors of selected items as selected, with only deepest children shown in chips.
|
|
176
170
|
*
|
|
177
171
|
* @default "multiple"
|
|
178
172
|
*/
|
|
@@ -88,13 +88,13 @@ export abstract class Dialog extends LitElement {
|
|
|
88
88
|
*/
|
|
89
89
|
accessor focusTrapDisabled: boolean;
|
|
90
90
|
/**
|
|
91
|
-
* Specifies custom focus trap configuration on the component
|
|
91
|
+
* Specifies custom focus trap configuration on the component.
|
|
92
92
|
*
|
|
93
|
-
* `"allowOutsideClick`" allows outside clicks
|
|
94
|
-
* `"initialFocus"` enables initial focus
|
|
95
|
-
* `"returnFocusOnDeactivate"` returns focus when not active
|
|
96
|
-
* `"extraContainers"` specifies additional focusable elements external to the trap, such as 3rd-party components appending elements to the document body
|
|
97
|
-
* `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
93
|
+
* - `"allowOutsideClick`" allows outside clicks.
|
|
94
|
+
* - `"initialFocus"` enables initial focus.
|
|
95
|
+
* - `"returnFocusOnDeactivate"` returns focus when not active.
|
|
96
|
+
* - `"extraContainers"` specifies additional focusable elements external to the trap, such as 3rd-party components appending elements to the document body.
|
|
97
|
+
* - `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
98
98
|
*/
|
|
99
99
|
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
100
100
|
/**
|
|
@@ -110,7 +110,7 @@ export abstract class Dialog extends LitElement {
|
|
|
110
110
|
/** Specifies an icon to display. */
|
|
111
111
|
accessor icon: IconName | undefined;
|
|
112
112
|
/**
|
|
113
|
-
* When `true` and the element direction is right-to-left (`"rtl"`), flips the component
|
|
113
|
+
* When `true` and the element direction is right-to-left (`"rtl"`), flips the component's `icon`.
|
|
114
114
|
*
|
|
115
115
|
* @default false
|
|
116
116
|
*/
|
|
@@ -158,11 +158,11 @@ export abstract class Dialog extends LitElement {
|
|
|
158
158
|
*/
|
|
159
159
|
accessor outsideCloseDisabled: boolean;
|
|
160
160
|
/**
|
|
161
|
-
* Specifies the type of positioning to use for overlaid content
|
|
161
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
162
162
|
*
|
|
163
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
163
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
164
164
|
*
|
|
165
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
165
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
166
166
|
*
|
|
167
167
|
* @default "absolute"
|
|
168
168
|
*/
|
|
@@ -54,11 +54,11 @@ export abstract class Dropdown extends LitElement {
|
|
|
54
54
|
*/
|
|
55
55
|
accessor open: boolean;
|
|
56
56
|
/**
|
|
57
|
-
* Specifies the type of positioning to use for overlaid content
|
|
57
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
58
58
|
*
|
|
59
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
59
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
60
60
|
*
|
|
61
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
61
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
62
62
|
*
|
|
63
63
|
* @default "absolute"
|
|
64
64
|
*/
|
|
@@ -18,13 +18,11 @@ export abstract class DropdownGroup extends LitElement {
|
|
|
18
18
|
*/
|
|
19
19
|
accessor position: number;
|
|
20
20
|
/**
|
|
21
|
-
* Specifies the selection mode of the component
|
|
21
|
+
* Specifies the selection mode of the component.
|
|
22
22
|
*
|
|
23
|
-
* `"multiple"` allows any number of selections
|
|
24
|
-
*
|
|
25
|
-
* `"
|
|
26
|
-
*
|
|
27
|
-
* `"none"` does not allow any selections.
|
|
23
|
+
* - `"multiple"` allows any number of selections.
|
|
24
|
+
* - `"single"` allows only one selection.
|
|
25
|
+
* - `"none"` does not allow any selections.
|
|
28
26
|
*
|
|
29
27
|
* @default "single"
|
|
30
28
|
*/
|
|
@@ -128,11 +128,11 @@ export abstract class FlowItem extends LitElement {
|
|
|
128
128
|
options?: string | undefined;
|
|
129
129
|
} & Panel["messageOverrides"];
|
|
130
130
|
/**
|
|
131
|
-
* Specifies the type of positioning to use for overlaid content
|
|
131
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
132
132
|
*
|
|
133
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
133
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
134
134
|
*
|
|
135
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
135
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
136
136
|
*
|
|
137
137
|
* @default "absolute"
|
|
138
138
|
*/
|
|
@@ -19,13 +19,13 @@ export abstract class FocusTrap extends LitElement {
|
|
|
19
19
|
/** When defined, provides a condition to disable focus trapping. When `true`, prevents focus trapping. */
|
|
20
20
|
accessor focusTrapDisabledOverride: (() => boolean) | undefined;
|
|
21
21
|
/**
|
|
22
|
-
* Specifies custom focus trap configuration on the component
|
|
22
|
+
* Specifies custom focus trap configuration on the component.
|
|
23
23
|
*
|
|
24
|
-
* `"allowOutsideClick"` allows outside clicks
|
|
25
|
-
* `"initialFocus"` enables initial focus
|
|
26
|
-
* `"returnFocusOnDeactivate"` returns focus when not active
|
|
27
|
-
* `"extraContainers"` specifies additional focusable elements external to the trap
|
|
28
|
-
* `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated.
|
|
24
|
+
* - `"allowOutsideClick"` allows outside clicks.
|
|
25
|
+
* - `"initialFocus"` enables initial focus.
|
|
26
|
+
* - `"returnFocusOnDeactivate"` returns focus when not active.
|
|
27
|
+
* - `"extraContainers"` specifies additional focusable elements external to the trap.
|
|
28
|
+
* - `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated.
|
|
29
29
|
*/
|
|
30
30
|
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
31
31
|
/** Activates the component's focus trap. */
|
|
@@ -137,11 +137,11 @@ export abstract class InputDatePicker extends LitElement {
|
|
|
137
137
|
*/
|
|
138
138
|
accessor open: boolean;
|
|
139
139
|
/**
|
|
140
|
-
* Specifies the type of positioning to use for overlaid content
|
|
140
|
+
* Specifies the type of positioning to use for overlaid content.
|
|
141
141
|
*
|
|
142
|
-
* `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout
|
|
142
|
+
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
143
143
|
*
|
|
144
|
-
* `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
144
|
+
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
145
145
|
*
|
|
146
146
|
* @default "absolute"
|
|
147
147
|
*/
|