@esri/calcite-components 5.2.0-next.30 → 5.2.0-next.32
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/{KVL67YS2.js → 2ALI4ENC.js} +1 -1
- package/dist/cdn/{HZR6NCWA.js → 34LN2LJS.js} +1 -1
- package/dist/cdn/{DXNQDJIF.js → 34S4GEZH.js} +1 -1
- package/dist/cdn/{CUZA2JG2.js → 3DWN3FBO.js} +1 -1
- package/dist/cdn/{VMCOZ3HV.js → 3I2SZUSI.js} +1 -1
- package/dist/cdn/{ILOVG2ER.js → 3KPB5ZG3.js} +1 -1
- package/dist/cdn/{7HJVRNDA.js → 3NZLINPY.js} +1 -1
- package/dist/cdn/{TJUGLK7F.js → 3UEVPCND.js} +1 -1
- package/dist/cdn/{GL4HAMBI.js → 4CJPVAV6.js} +1 -1
- package/dist/cdn/{O6JGN5I7.js → 4OTPD46Y.js} +1 -1
- package/dist/cdn/{N37CYE3C.js → 4PRZO5FL.js} +1 -1
- package/dist/cdn/{TN5VSQFI.js → 4XKPZDWA.js} +1 -1
- package/dist/cdn/{ZFAINRBG.js → 5D5KWSRU.js} +1 -1
- package/dist/cdn/{B6YEVWZC.js → 5PO5KWY4.js} +1 -1
- package/dist/cdn/{DNJWLEZW.js → 5T7XXZVM.js} +1 -1
- package/dist/cdn/{IUPRTI22.js → 5TAEPFKA.js} +1 -1
- package/dist/cdn/{SVZ3IFYS.js → 6BBTSWZJ.js} +1 -1
- package/dist/cdn/{7CNQUYOT.js → 6MJGHCHL.js} +1 -1
- package/dist/cdn/{RIRQHOBE.js → 6QTMT3BR.js} +1 -1
- package/dist/cdn/{ZM4UKWZJ.js → 6UAE7TVW.js} +1 -1
- package/dist/cdn/{R434GHPA.js → 6ZJIHGRE.js} +1 -1
- package/dist/cdn/{H4KOQ3P3.js → 7CJ5CM4O.js} +1 -1
- package/dist/cdn/{2JUKL5RZ.js → 7H6JEAAY.js} +1 -1
- package/dist/cdn/{OWGPSQUW.js → 7HUQTHRG.js} +1 -1
- package/dist/cdn/{GYLPLFN5.js → 7NGKKXBY.js} +1 -1
- package/dist/cdn/{P5V7JFB5.js → 7NMYOO4C.js} +1 -1
- package/dist/cdn/{NFQVM6G3.js → 7VJQDFM5.js} +1 -1
- package/dist/cdn/{JHYELFTN.js → 7XLKMGMO.js} +1 -1
- package/dist/cdn/{A3QXPEE3.js → 7YKEDO2W.js} +1 -1
- package/dist/cdn/{LP3TELFB.js → A4JYA56A.js} +1 -1
- package/dist/cdn/{Y3WHK3EI.js → A5XRC6GV.js} +1 -1
- package/dist/cdn/{OUL6IB3V.js → AD6N6O57.js} +1 -1
- package/dist/cdn/{CIXBCLNA.js → AGS5VTQ7.js} +1 -1
- package/dist/cdn/{KM4ZA4CE.js → AVIL7OG7.js} +1 -1
- package/dist/cdn/{TYUT2PCJ.js → BRLCJYRS.js} +1 -1
- package/dist/cdn/{6QWNCW32.js → BRQQDHKC.js} +1 -1
- package/dist/cdn/{744ICFOB.js → BTQF7UHA.js} +1 -1
- package/dist/cdn/{RW4M5CR6.js → BY7EPIAJ.js} +1 -1
- package/dist/cdn/{FXRJYL3C.js → C23B3A4Z.js} +1 -1
- package/dist/cdn/{7Z4FHAX2.js → C6GZFOWX.js} +1 -1
- package/dist/cdn/{WF4T4755.js → CE6DVH5U.js} +1 -1
- package/dist/cdn/{2Q5EZYJY.js → CJ2SUM7M.js} +1 -1
- package/dist/cdn/{WOQEDKPR.js → CLDDWBPJ.js} +1 -1
- package/dist/cdn/{XRJY4MG7.js → COEPTSMJ.js} +1 -1
- package/dist/cdn/{H6W4S4LE.js → CWZ74ACK.js} +1 -1
- package/dist/cdn/{A5J4D5E4.js → CZ6EC5N6.js} +1 -1
- package/dist/cdn/DGP7CLGV.js +2 -0
- package/dist/cdn/DMK27J6W.js +2 -0
- package/dist/cdn/{KE4B2YVK.js → DQ3PCOCG.js} +1 -1
- package/dist/cdn/{PIRO2BNM.js → DYNPRZCV.js} +1 -1
- package/dist/cdn/{PNWVAEZN.js → E4NELUHA.js} +1 -1
- package/dist/cdn/{MXIWNVFP.js → EEHJN6D5.js} +1 -1
- package/dist/cdn/{AGDLGJ6L.js → EI4TFI4G.js} +1 -1
- package/dist/cdn/{UG4WZLVD.js → EL3MWVTU.js} +1 -1
- package/dist/cdn/{7BMELRUN.js → EL4KJ476.js} +1 -1
- package/dist/cdn/{QOK4W2DZ.js → EMK36YXI.js} +1 -1
- package/dist/cdn/{3QCZXBFB.js → F3KQEYE7.js} +1 -1
- package/dist/cdn/{RIY7L66T.js → F6RUE2M2.js} +1 -1
- package/dist/cdn/{ECBRRRYY.js → FIMDUKAT.js} +1 -1
- package/dist/cdn/{NNVHBWZN.js → FJGZSA3T.js} +1 -1
- package/dist/cdn/{OTWUFKKP.js → FNFMG4OS.js} +1 -1
- package/dist/cdn/{2TYJA7ZA.js → FRPHXRCY.js} +1 -1
- package/dist/cdn/G7GMQSWX.js +2 -0
- package/dist/cdn/{TIZK2BII.js → GBA56KXZ.js} +1 -1
- package/dist/cdn/{XZ3AWUYG.js → GINPHCKX.js} +1 -1
- package/dist/cdn/{V7E67VOT.js → GMGUT6R2.js} +1 -1
- package/dist/cdn/{I72HA7SW.js → GQZX6FJD.js} +1 -1
- package/dist/cdn/{WJE5Q74F.js → GSZ5XODZ.js} +1 -1
- package/dist/cdn/{WSGPRBXQ.js → H5F5TKSQ.js} +1 -1
- package/dist/cdn/{CBALBCOP.js → H5JD4SSM.js} +1 -1
- package/dist/cdn/{MHRIRXTX.js → HBFKOP4O.js} +1 -1
- package/dist/cdn/HKLXMKWW.js +2 -0
- package/dist/cdn/{YIG7OHCG.js → HLXJR3SQ.js} +1 -1
- package/dist/cdn/{7JP2QDSY.js → I2GT4O6W.js} +1 -1
- package/dist/cdn/{YSMLTX25.js → IELIVXOH.js} +1 -1
- package/dist/cdn/{PX6LQKUI.js → INB4ESKN.js} +1 -1
- package/dist/cdn/{7VCES7OE.js → INPOEQLV.js} +1 -1
- package/dist/cdn/{E4TKILOL.js → INZFPRLC.js} +1 -1
- package/dist/cdn/{B4CZNDF3.js → IOHWA5AF.js} +1 -1
- package/dist/cdn/IZS3M5HV.js +2 -0
- package/dist/cdn/{AVCX74DP.js → J5RTSFH2.js} +1 -1
- package/dist/cdn/J7GLTPOG.js +2 -0
- package/dist/cdn/{USCBNO6D.js → JDS4Q3DQ.js} +1 -1
- package/dist/cdn/{IV6LNHPU.js → JPP57EQ2.js} +1 -1
- package/dist/cdn/{IAFVBT32.js → JTPCZIUB.js} +1 -1
- package/dist/cdn/{3AXZKAYQ.js → JZDX222C.js} +1 -1
- package/dist/cdn/{76ACXAF3.js → K4BDB233.js} +1 -1
- package/dist/cdn/{C67GL2CA.js → KDYHO3DX.js} +1 -1
- package/dist/cdn/{UXTQJCNN.js → KHVPREQL.js} +1 -1
- package/dist/cdn/{7TZ6KD4O.js → KKFKA36R.js} +1 -1
- package/dist/cdn/{JR5WU7IG.js → KPLMTG7M.js} +1 -1
- package/dist/cdn/{HFGCBOA6.js → KTMPQFXM.js} +1 -1
- package/dist/cdn/{C3WONRU7.js → KYNFC67E.js} +1 -1
- package/dist/cdn/{S75DSAHG.js → KYYFCGSM.js} +1 -1
- package/dist/cdn/{KQ7JODBH.js → LKHNWV7H.js} +1 -1
- package/dist/cdn/{GPVRWYQF.js → LM5344X3.js} +1 -1
- package/dist/cdn/{L4JBLHJP.js → LMVGXCUB.js} +1 -1
- package/dist/cdn/{WEC4V5A4.js → M5CAMUJA.js} +1 -1
- package/dist/cdn/{VLGXJHJZ.js → M7ZWJ3WS.js} +1 -1
- package/dist/cdn/{JWCIDZM4.js → MEVB3IC5.js} +1 -1
- package/dist/cdn/{L6XXOKYW.js → MO5B4VX7.js} +1 -1
- package/dist/cdn/{JLVQUTEE.js → MQZF7GBV.js} +1 -1
- package/dist/cdn/{U4CNMRWE.js → MUQLRK7U.js} +1 -1
- package/dist/cdn/{MQSF7LRG.js → MYV5GGZF.js} +1 -1
- package/dist/cdn/{SDSIO47V.js → OSK3U7WF.js} +1 -1
- package/dist/cdn/{HYONXP3Q.js → OSV7CFKC.js} +1 -1
- package/dist/cdn/{XVKFFHIM.js → OV4L7Y2U.js} +1 -1
- package/dist/cdn/{OIHVLKPK.js → PCDEZQ5O.js} +1 -1
- package/dist/cdn/{GNXXWAUU.js → PMMNGLYO.js} +1 -1
- package/dist/cdn/{S5NVS4GZ.js → POIX33V2.js} +1 -1
- package/dist/cdn/PUAN7SC7.js +2 -0
- package/dist/cdn/{OTHJKEUE.js → QS7YJ7ID.js} +1 -1
- package/dist/cdn/{O2TWSKJQ.js → QYPBF7SX.js} +1 -1
- package/dist/cdn/{DQIOK5E6.js → RCGGD4VD.js} +1 -1
- package/dist/cdn/RIWCMIVC.js +2 -0
- package/dist/cdn/{P6VCN6MX.js → RQNCEP7V.js} +1 -1
- package/dist/cdn/{YVPTOJ5A.js → RX7LNL6H.js} +1 -1
- package/dist/cdn/{GYGYZGV2.js → SBCMJF3D.js} +1 -1
- package/dist/cdn/{UCKR6SFU.js → SIQA2PBC.js} +1 -1
- package/dist/cdn/{4F7RPBMC.js → SP5D6SJ2.js} +1 -1
- package/dist/cdn/{IPPUJ4XV.js → STG4CABT.js} +1 -1
- package/dist/cdn/{XCQQISIF.js → SWO5BPAD.js} +1 -1
- package/dist/cdn/{G2G2EWKP.js → T6HVZ47J.js} +1 -1
- package/dist/cdn/{YVJQNMYJ.js → TBYUWYMH.js} +1 -1
- package/dist/cdn/{QUZYKERC.js → TCSXUTNB.js} +1 -1
- package/dist/cdn/{I7EE4WLX.js → TE36HTKY.js} +1 -1
- package/dist/cdn/{HQAF5VNB.js → TFCDXEXM.js} +1 -1
- package/dist/cdn/{WWITNWC2.js → TNAV4Y7T.js} +1 -1
- package/dist/cdn/{SVU2DXVH.js → UIRLGHFP.js} +1 -1
- package/dist/cdn/{NYRH26AX.js → UPBB5BK5.js} +1 -1
- package/dist/cdn/{TUU23R4U.js → US7R2KAH.js} +1 -1
- package/dist/cdn/{HHB75VAP.js → W7WKPRBR.js} +1 -1
- package/dist/cdn/{UDBL4JHQ.js → WJ725XFM.js} +1 -1
- package/dist/cdn/{KUWM3KH7.js → WMKL773C.js} +1 -1
- package/dist/cdn/{UESRXLZE.js → X4X4FZMJ.js} +1 -1
- package/dist/cdn/{FEEM36AX.js → X6FZGCQO.js} +1 -1
- package/dist/cdn/{GQQAD4CY.js → XCC7RZKY.js} +1 -1
- package/dist/cdn/{3ULD6GMI.js → XF7AZMTR.js} +1 -1
- package/dist/cdn/{BFU36GZX.js → YFNGK3IC.js} +1 -1
- package/dist/cdn/{FPFNNOM4.js → YJDVSJI7.js} +1 -1
- package/dist/cdn/{V7CTUOE3.js → YQLZIZEE.js} +1 -1
- package/dist/cdn/{YLLHGJB3.js → YRRWAHXD.js} +1 -1
- package/dist/cdn/{II6DZIXM.js → YX2464BY.js} +1 -1
- package/dist/cdn/{KNG2XVTR.js → Z5RHXMLK.js} +1 -1
- package/dist/cdn/{DCV7F4JX.js → ZTWTNJJ6.js} +1 -1
- package/dist/cdn/{G2VMVWVC.js → ZVP3ZHJW.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +11 -45
- package/dist/chunks/dom.js +23 -23
- package/dist/chunks/manager.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources2.js +10 -14
- package/dist/chunks/resources3.js +17 -9
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useForm.js +1 -1
- package/dist/chunks/useLabel.js +1 -1
- package/dist/chunks/useSetFocus.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +5 -1
- package/dist/components/calcite-action/customElement.d.ts +5 -1
- package/dist/components/calcite-action-bar/customElement.d.ts +8 -2
- package/dist/components/calcite-action-bar/customElement.js +252 -55
- package/dist/components/calcite-action-group/customElement.d.ts +14 -1
- package/dist/components/calcite-action-group/customElement.js +61 -51
- package/dist/components/calcite-action-menu/customElement.d.ts +10 -0
- package/dist/components/calcite-action-menu/customElement.js +78 -36
- package/dist/components/calcite-action-pad/customElement.d.ts +5 -1
- package/dist/components/calcite-action-pad/customElement.js +2 -2
- package/dist/components/calcite-alert/customElement.d.ts +5 -1
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.d.ts +5 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +5 -1
- package/dist/components/calcite-block-group/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.d.ts +5 -1
- package/dist/components/calcite-button/customElement.d.ts +5 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-card/customElement.d.ts +5 -1
- package/dist/components/calcite-carousel/customElement.d.ts +5 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +5 -1
- package/dist/components/calcite-chip/customElement.d.ts +5 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +5 -1
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +5 -1
- package/dist/components/calcite-combobox/customElement.js +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.d.ts +6 -2
- package/dist/components/calcite-date-picker/customElement.js +27 -5
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +5 -1
- package/dist/components/calcite-dropdown/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.d.ts +5 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +5 -1
- package/dist/components/calcite-handle/customElement.d.ts +5 -1
- package/dist/components/calcite-inline-editable/customElement.d.ts +5 -1
- package/dist/components/calcite-input/customElement.d.ts +5 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.d.ts +5 -1
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +5 -1
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.d.ts +5 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/customElement.d.ts +5 -1
- package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -1
- package/dist/components/calcite-list/customElement.d.ts +5 -1
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list-item/customElement.d.ts +5 -1
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +5 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +5 -1
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.d.ts +5 -1
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.d.ts +5 -1
- package/dist/components/calcite-panel/customElement.d.ts +5 -1
- package/dist/components/calcite-panel/customElement.js +2 -2
- package/dist/components/calcite-popover/customElement.d.ts +5 -1
- package/dist/components/calcite-radio-button-group/customElement.d.ts +5 -1
- package/dist/components/calcite-rating/customElement.d.ts +5 -1
- package/dist/components/calcite-scrim/customElement.d.ts +5 -1
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +5 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +5 -1
- package/dist/components/calcite-sheet/customElement.d.ts +5 -1
- package/dist/components/calcite-shell/customElement.js +75 -5
- package/dist/components/calcite-shell-panel/customElement.d.ts +15 -2
- package/dist/components/calcite-shell-panel/customElement.js +75 -12
- package/dist/components/calcite-slider/customElement.d.ts +5 -1
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-sort-handle/customElement.d.ts +5 -1
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.d.ts +5 -1
- package/dist/components/calcite-stepper-item/customElement.d.ts +5 -1
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.d.ts +5 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.d.ts +5 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.d.ts +5 -1
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -1
- package/dist/components/calcite-table-header/customElement.d.ts +5 -1
- package/dist/components/calcite-table-row/customElement.js +1 -1
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.d.ts +5 -1
- package/dist/components/calcite-time-picker/customElement.d.ts +5 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- 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 +3 -3
- package/dist/types/lumina.d.ts +3 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/react.d.ts +3 -1
- package/dist/types/stencil.d.ts +3 -1
- package/package.json +2 -2
- package/dist/cdn/B5BPICM5.js +0 -2
- package/dist/cdn/IZ7RXFUG.js +0 -2
- package/dist/cdn/KLSU556M.js +0 -2
- package/dist/cdn/LIAKX4W7.js +0 -2
- package/dist/cdn/RYOYQ7JI.js +0 -2
- package/dist/cdn/U6XLKGTJ.js +0 -2
- package/dist/cdn/UHCJZSPT.js +0 -2
- package/dist/cdn/VVXGJ5AX.js +0 -2
- /package/dist/cdn/{WXZMRXAK.js → 5IJ25RMA.js} +0 -0
|
@@ -4,7 +4,7 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
7
|
-
import {
|
|
7
|
+
import { n as slotChangeHasContent } from "../../chunks/dom.js";
|
|
8
8
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
9
9
|
const CSS = {
|
|
10
10
|
scrim: "scrim",
|
|
@@ -33,7 +33,11 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
33
33
|
* @default "horizontal"
|
|
34
34
|
*/
|
|
35
35
|
accessor layout: Extract<"horizontal" | "vertical", Layout>;
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Replace localized message strings with your own strings.
|
|
38
|
+
*
|
|
39
|
+
* _**Note**: Individual message keys may change between releases._
|
|
40
|
+
*/
|
|
37
41
|
accessor messageOverrides: { required?: string | undefined; };
|
|
38
42
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
39
43
|
accessor name: string | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { n as slotChangeHasContent } from "../../chunks/dom.js";
|
|
6
6
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
const SLOTS = {
|
|
8
8
|
input: "input"
|
|
@@ -33,7 +33,11 @@ export abstract class Select extends LitElement {
|
|
|
33
33
|
accessor label: string;
|
|
34
34
|
/** Specifies the component's label text. */
|
|
35
35
|
accessor labelText: string | undefined;
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Replace localized message strings with your own strings.
|
|
38
|
+
*
|
|
39
|
+
* _**Note**: Individual message keys may change between releases._
|
|
40
|
+
*/
|
|
37
41
|
accessor messageOverrides: { required?: string | undefined; };
|
|
38
42
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
39
43
|
accessor name: string | undefined;
|
|
@@ -68,7 +68,11 @@ export abstract class Sheet extends LitElement {
|
|
|
68
68
|
* @required
|
|
69
69
|
*/
|
|
70
70
|
accessor label: string;
|
|
71
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Replace localized message strings with your own strings.
|
|
73
|
+
*
|
|
74
|
+
* _**Note**: Individual message keys may change between releases._
|
|
75
|
+
*/
|
|
72
76
|
accessor messageOverrides: { resizeEnabled?: string | undefined; };
|
|
73
77
|
/** @internal */
|
|
74
78
|
protected messages: Partial<{ resizeEnabled: string; }> & T9nMeta<{ resizeEnabled: string; }>;
|
|
@@ -3,7 +3,8 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { keyed } from "lit/directives/keyed.js";
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
6
|
+
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
+
import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements, g as getStylePixelValue } from "../../chunks/dom.js";
|
|
7
8
|
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{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:var(--calcite-shell-corner-radius);box-shadow:var(--calcite-shell-shadow)}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}.main.has-resizable-panel-top ::slotted(calcite-panel){border-block-start:none}.main.has-resizable-panel-bottom ::slotted(calcite-panel){border-block-end:none}.main.has-action-bar-position-panel ::slotted(calcite-panel){border:0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
8
9
|
const CSS = {
|
|
9
10
|
main: "main",
|
|
@@ -33,6 +34,11 @@ const panelSlots = ["panel-start", "panel-end", "panel-top", "panel-bottom"];
|
|
|
33
34
|
class Shell extends LitElement {
|
|
34
35
|
constructor() {
|
|
35
36
|
super();
|
|
37
|
+
this.defaultSlotRef = createRef();
|
|
38
|
+
this.panelBottomSlotRef = createRef();
|
|
39
|
+
this.panelEndSlotRef = createRef();
|
|
40
|
+
this.panelStartSlotRef = createRef();
|
|
41
|
+
this.panelTopSlotRef = createRef();
|
|
36
42
|
this.panelSlotState = {
|
|
37
43
|
"panel-start": { elements: [], resizable: false },
|
|
38
44
|
"panel-end": { elements: [], resizable: false },
|
|
@@ -108,9 +114,70 @@ class Shell extends LitElement {
|
|
|
108
114
|
el.embedded = true;
|
|
109
115
|
});
|
|
110
116
|
}
|
|
117
|
+
configurePanels(panels, layout, position) {
|
|
118
|
+
panels.forEach((panel) => {
|
|
119
|
+
const sizingPanel = panel;
|
|
120
|
+
panel.layout = layout;
|
|
121
|
+
panel.position = position;
|
|
122
|
+
sizingPanel.shellSizingDataProvider = (axis) => this.getShellPanelSizingData(panel, axis);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
getDefaultSlotMinSize(axis) {
|
|
126
|
+
return this.defaultSlotRef.value?.assignedElements({ flatten: true }).reduce((total, element) => {
|
|
127
|
+
const computedStyle = window.getComputedStyle(element);
|
|
128
|
+
return axis === "inline" ? total + getStylePixelValue(computedStyle.borderInlineStartWidth) + getStylePixelValue(computedStyle.borderInlineEndWidth) : total + getStylePixelValue(computedStyle.borderBlockStartWidth) + getStylePixelValue(computedStyle.borderBlockEndWidth);
|
|
129
|
+
}, 0) ?? 0;
|
|
130
|
+
}
|
|
131
|
+
getDefaultSlotBounds() {
|
|
132
|
+
const defaultSlotElements = this.defaultSlotRef.value?.assignedElements({ flatten: true }) ?? [];
|
|
133
|
+
if (!defaultSlotElements.length) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
return defaultSlotElements.reduce((bounds, element) => {
|
|
137
|
+
const rect = element.getBoundingClientRect();
|
|
138
|
+
return bounds ? {
|
|
139
|
+
bottom: Math.max(bounds.bottom, rect.bottom),
|
|
140
|
+
left: Math.min(bounds.left, rect.left),
|
|
141
|
+
right: Math.max(bounds.right, rect.right),
|
|
142
|
+
top: Math.min(bounds.top, rect.top)
|
|
143
|
+
} : {
|
|
144
|
+
bottom: rect.bottom,
|
|
145
|
+
left: rect.left,
|
|
146
|
+
right: rect.right,
|
|
147
|
+
top: rect.top
|
|
148
|
+
};
|
|
149
|
+
}, null);
|
|
150
|
+
}
|
|
151
|
+
getShellPanelSizingData(panel, axis) {
|
|
152
|
+
const panelLayoutContainer = panel.assignedSlot?.parentElement;
|
|
153
|
+
if (!panelLayoutContainer) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
const containerRect = panelLayoutContainer.getBoundingClientRect();
|
|
157
|
+
const defaultSlotRect = this.getDefaultSlotBounds();
|
|
158
|
+
if (!defaultSlotRect) {
|
|
159
|
+
return {
|
|
160
|
+
availableSize: axis === "inline" ? containerRect.width : containerRect.height
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
const defaultSlotMinSize = this.getDefaultSlotMinSize(axis);
|
|
164
|
+
const isRTL = window.getComputedStyle(this).direction === "rtl";
|
|
165
|
+
let availableOccupiedSize;
|
|
166
|
+
if (axis === "inline") {
|
|
167
|
+
const isStart = panel.position === "start";
|
|
168
|
+
availableOccupiedSize = isRTL ? isStart ? containerRect.right - defaultSlotRect.left : defaultSlotRect.right - containerRect.left : isStart ? defaultSlotRect.right - containerRect.left : containerRect.right - defaultSlotRect.left;
|
|
169
|
+
} else {
|
|
170
|
+
availableOccupiedSize = panel.position === "start" ? defaultSlotRect.bottom - containerRect.top : containerRect.bottom - defaultSlotRect.top;
|
|
171
|
+
}
|
|
172
|
+
const availableSize = Math.max(Math.floor(availableOccupiedSize) - Math.ceil(defaultSlotMinSize), 0);
|
|
173
|
+
return {
|
|
174
|
+
availableSize
|
|
175
|
+
};
|
|
176
|
+
}
|
|
111
177
|
handlePanelTopChange(event) {
|
|
112
178
|
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
113
179
|
this.hasPanelTop = slotChangeHasAssignedElement(event);
|
|
180
|
+
this.configurePanels(panelElements, "horizontal", "start");
|
|
114
181
|
panelElements.forEach((el) => {
|
|
115
182
|
el.layout = "horizontal";
|
|
116
183
|
el.position = "start";
|
|
@@ -120,6 +187,7 @@ class Shell extends LitElement {
|
|
|
120
187
|
handlePanelBottomChange(event) {
|
|
121
188
|
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
122
189
|
this.hasPanelBottom = slotChangeHasAssignedElement(event);
|
|
190
|
+
this.configurePanels(panelElements, "horizontal", "end");
|
|
123
191
|
panelElements.forEach((el) => {
|
|
124
192
|
el.layout = "horizontal";
|
|
125
193
|
el.position = "end";
|
|
@@ -128,6 +196,7 @@ class Shell extends LitElement {
|
|
|
128
196
|
}
|
|
129
197
|
handlePanelStartChange(event) {
|
|
130
198
|
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
199
|
+
this.configurePanels(panelElements, "vertical", "start");
|
|
131
200
|
panelElements.forEach((el) => {
|
|
132
201
|
el.layout = "vertical";
|
|
133
202
|
el.position = "start";
|
|
@@ -136,6 +205,7 @@ class Shell extends LitElement {
|
|
|
136
205
|
}
|
|
137
206
|
handlePanelEndChange(event) {
|
|
138
207
|
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
208
|
+
this.configurePanels(panelElements, "vertical", "end");
|
|
139
209
|
panelElements.forEach((el) => {
|
|
140
210
|
el.layout = "vertical";
|
|
141
211
|
el.position = "end";
|
|
@@ -180,10 +250,10 @@ class Shell extends LitElement {
|
|
|
180
250
|
}
|
|
181
251
|
renderContent() {
|
|
182
252
|
const { panelIsResizing } = this;
|
|
183
|
-
const defaultSlotNode = keyed("default-slot", html`<slot></slot>`);
|
|
253
|
+
const defaultSlotNode = keyed("default-slot", html`<slot ${ref(this.defaultSlotRef)}></slot>`);
|
|
184
254
|
const defaultSlotContainerNode = panelIsResizing ? html`<div class=${safeClassMap(CSS.contentNonInteractive)}>${defaultSlotNode}</div>` : defaultSlotNode;
|
|
185
|
-
const panelBottomSlotNode = keyed("panel-bottom-slot", html`<slot name=${SLOTS.panelBottom} @slotchange=${this.handlePanelBottomChange}></slot>`);
|
|
186
|
-
const panelTopSlotNode = keyed("panel-top-slot", html`<slot name=${SLOTS.panelTop} @slotchange=${this.handlePanelTopChange}></slot>`);
|
|
255
|
+
const panelBottomSlotNode = keyed("panel-bottom-slot", html`<slot name=${SLOTS.panelBottom} @slotchange=${this.handlePanelBottomChange} ${ref(this.panelBottomSlotRef)}></slot>`);
|
|
256
|
+
const panelTopSlotNode = keyed("panel-top-slot", html`<slot name=${SLOTS.panelTop} @slotchange=${this.handlePanelTopChange} ${ref(this.panelTopSlotRef)}></slot>`);
|
|
187
257
|
const contentContainerKey = "content-container";
|
|
188
258
|
const content = this.contentBehind ? [
|
|
189
259
|
keyed(contentContainerKey, html`<div class=${safeClassMap({
|
|
@@ -205,7 +275,7 @@ class Shell extends LitElement {
|
|
|
205
275
|
[CSS.hasActionBarPositionPanel]: this.hasActionBarPositionPanel,
|
|
206
276
|
[CSS.hasResizablePanelBottom]: this.hasResizablePanelBottom,
|
|
207
277
|
[CSS.hasResizablePanelTop]: this.hasResizablePanelTop
|
|
208
|
-
})}><slot name=${SLOTS.panelStart} @slotchange=${this.handlePanelStartChange}></slot>${this.renderContent()}<slot name=${SLOTS.panelEnd} @slotchange=${this.handlePanelEndChange}></slot></div>`;
|
|
278
|
+
})}><slot name=${SLOTS.panelStart} @slotchange=${this.handlePanelStartChange} ${ref(this.panelStartSlotRef)}></slot>${this.renderContent()}<slot name=${SLOTS.panelEnd} @slotchange=${this.handlePanelEndChange} ${ref(this.panelEndSlotRef)}></slot></div>`;
|
|
209
279
|
}
|
|
210
280
|
renderPositionedSlots() {
|
|
211
281
|
return html`<div class=${safeClassMap(CSS.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`;
|
|
@@ -59,7 +59,11 @@ export abstract class ShellPanel extends LitElement {
|
|
|
59
59
|
* @default "vertical"
|
|
60
60
|
*/
|
|
61
61
|
accessor layout: Extract<"horizontal" | "vertical", Layout>;
|
|
62
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Replace localized message strings with your own strings.
|
|
64
|
+
*
|
|
65
|
+
* _**Note**: Individual message keys may change between releases._
|
|
66
|
+
*/
|
|
63
67
|
accessor messageOverrides: { resize?: string | undefined; };
|
|
64
68
|
/**
|
|
65
69
|
* Specifies the component's position. Will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
@@ -74,6 +78,8 @@ export abstract class ShellPanel extends LitElement {
|
|
|
74
78
|
* @default false
|
|
75
79
|
*/
|
|
76
80
|
accessor resizable: boolean;
|
|
81
|
+
/** @internal */
|
|
82
|
+
accessor shellSizingDataProvider: ShellSizingDataProvider | undefined;
|
|
77
83
|
/** Specifies the component's width. */
|
|
78
84
|
accessor width: Extract<Width, Scale> | undefined;
|
|
79
85
|
/**
|
|
@@ -103,4 +109,11 @@ export abstract class ShellPanel extends LitElement {
|
|
|
103
109
|
calciteShellPanelCollapse: ShellPanel["calciteShellPanelCollapse"]["detail"];
|
|
104
110
|
calciteShellPanelExpand: ShellPanel["calciteShellPanelExpand"]["detail"];
|
|
105
111
|
};
|
|
106
|
-
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @param axis */
|
|
115
|
+
export type ShellSizingDataProvider = (axis: "inline" | "block") => ShellPanelSizingData | null;
|
|
116
|
+
|
|
117
|
+
export type ShellPanelSizingData = {
|
|
118
|
+
availableSize: number;
|
|
119
|
+
};
|
|
@@ -40,6 +40,7 @@ class ShellPanel extends LitElement {
|
|
|
40
40
|
super();
|
|
41
41
|
this.direction = useDirection();
|
|
42
42
|
this.resizeHandleRef = createRef();
|
|
43
|
+
this.actionBars = [];
|
|
43
44
|
this.actionBarContainerResizeObserver = createObserver("resize", () => this.updateActionBarSize());
|
|
44
45
|
this.handleActionBarExpand = () => {
|
|
45
46
|
this.isActionBarExpanded = true;
|
|
@@ -48,12 +49,13 @@ class ShellPanel extends LitElement {
|
|
|
48
49
|
this.isActionBarExpanded = false;
|
|
49
50
|
};
|
|
50
51
|
this.contentRef = createRef();
|
|
52
|
+
this.containerRef = createRef();
|
|
51
53
|
this.messages = useT9n();
|
|
52
54
|
this.sizeOverride = useSizeOverride({
|
|
53
55
|
targetElement: this.contentRef,
|
|
54
56
|
getBounds: () => ({
|
|
55
|
-
inline: { min: this.resizeValues.minInlineSize, max: this.
|
|
56
|
-
block: { min: this.resizeValues.minBlockSize, max: this.
|
|
57
|
+
inline: { min: this.resizeValues.minInlineSize, max: this.getMaxInlineSize() },
|
|
58
|
+
block: { min: this.resizeValues.minBlockSize, max: this.getMaxBlockSize() }
|
|
57
59
|
}),
|
|
58
60
|
onResize: (resizeValues) => {
|
|
59
61
|
this.resizeValues = resizeValues;
|
|
@@ -85,7 +87,7 @@ class ShellPanel extends LitElement {
|
|
|
85
87
|
this.listen("calciteActionBarCollapse", this.handleActionBarCollapseEvent);
|
|
86
88
|
}
|
|
87
89
|
static {
|
|
88
|
-
this.properties = { resizeValues: [16, {}, { state: true }], isActionBarExpanded: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], actionBarPosition: [3, {}, { reflect: true }], collapsed: [7, {}, { reflect: true, type: Boolean }], displayMode: [3, {}, { reflect: true }], heightScale: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], height: [3, {}, { reflect: true }], widthScale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
90
|
+
this.properties = { resizeValues: [16, {}, { state: true }], isActionBarExpanded: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], actionBarPosition: [3, {}, { reflect: true }], collapsed: [7, {}, { reflect: true, type: Boolean }], displayMode: [3, {}, { reflect: true }], heightScale: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], shellSizingDataProvider: [0, {}, { attribute: false }], height: [3, {}, { reflect: true }], widthScale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
89
91
|
}
|
|
90
92
|
static {
|
|
91
93
|
this.styles = [styles, styles$1];
|
|
@@ -201,20 +203,85 @@ class ShellPanel extends LitElement {
|
|
|
201
203
|
this.interaction?.unset();
|
|
202
204
|
}
|
|
203
205
|
updateResizeValues() {
|
|
204
|
-
const { contentRef } = this;
|
|
206
|
+
const { contentRef, layout } = this;
|
|
205
207
|
if (!contentRef.value) {
|
|
206
208
|
return;
|
|
207
209
|
}
|
|
208
210
|
const computedStyle = window.getComputedStyle(contentRef.value);
|
|
211
|
+
const computedMaxInlineSize = getStylePixelValue(computedStyle.maxInlineSize) || window.innerWidth;
|
|
212
|
+
const computedMaxBlockSize = getStylePixelValue(computedStyle.maxBlockSize) || window.innerHeight;
|
|
213
|
+
const availableInlineSize = layout === "vertical" ? this.getAvailableInlineSize() : null;
|
|
214
|
+
const availableBlockSize = layout === "horizontal" ? this.getAvailableBlockSize() : null;
|
|
209
215
|
this.resizeValues = {
|
|
210
216
|
inlineSize: getStylePixelValue(computedStyle.inlineSize),
|
|
211
217
|
blockSize: getStylePixelValue(computedStyle.blockSize),
|
|
212
218
|
minInlineSize: getStylePixelValue(computedStyle.minInlineSize),
|
|
213
219
|
minBlockSize: getStylePixelValue(computedStyle.minBlockSize),
|
|
214
|
-
maxInlineSize:
|
|
215
|
-
maxBlockSize:
|
|
220
|
+
maxInlineSize: availableInlineSize === null ? computedMaxInlineSize : Math.min(computedMaxInlineSize, availableInlineSize),
|
|
221
|
+
maxBlockSize: availableBlockSize === null ? computedMaxBlockSize : Math.min(computedMaxBlockSize, availableBlockSize)
|
|
216
222
|
};
|
|
217
223
|
}
|
|
224
|
+
getAvailableBlockSize() {
|
|
225
|
+
return this.getAvailableSize("block");
|
|
226
|
+
}
|
|
227
|
+
getAvailableInlineSize() {
|
|
228
|
+
return this.getAvailableSize("inline");
|
|
229
|
+
}
|
|
230
|
+
getAvailableSize(axis) {
|
|
231
|
+
const dimension = axis === "inline" ? "width" : "height";
|
|
232
|
+
const shellSizingData = this.shellSizingDataProvider?.(axis);
|
|
233
|
+
const actionBarContainerSize = this.actionBarContainerEl?.getBoundingClientRect()[dimension] ?? 0;
|
|
234
|
+
const actionBarSize = Math.max(actionBarContainerSize, this.actionBars.reduce((total, actionBar) => total + actionBar.getBoundingClientRect()[dimension], 0));
|
|
235
|
+
if (!shellSizingData) {
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
238
|
+
const { availableSize } = shellSizingData;
|
|
239
|
+
const containerSpacingSize = this.getContainerSpacingSize(axis);
|
|
240
|
+
const contentSpacingSize = this.getContentSpacingSize(axis);
|
|
241
|
+
return Math.max(Math.floor(availableSize) - Math.ceil(actionBarSize) - Math.ceil(containerSpacingSize) - Math.ceil(contentSpacingSize), 0);
|
|
242
|
+
}
|
|
243
|
+
getContentSpacingSize(axis) {
|
|
244
|
+
const content = this.contentRef.value;
|
|
245
|
+
if (!content) {
|
|
246
|
+
return 0;
|
|
247
|
+
}
|
|
248
|
+
const computedStyle = window.getComputedStyle(content);
|
|
249
|
+
return axis === "inline" ? getStylePixelValue(computedStyle.marginInlineStart) + getStylePixelValue(computedStyle.marginInlineEnd) + getStylePixelValue(computedStyle.borderInlineStartWidth) + getStylePixelValue(computedStyle.borderInlineEndWidth) : getStylePixelValue(computedStyle.marginBlockStart) + getStylePixelValue(computedStyle.marginBlockEnd) + getStylePixelValue(computedStyle.borderBlockStartWidth) + getStylePixelValue(computedStyle.borderBlockEndWidth);
|
|
250
|
+
}
|
|
251
|
+
getContainerSpacingSize(axis) {
|
|
252
|
+
const container = this.containerRef.value;
|
|
253
|
+
if (!container) {
|
|
254
|
+
return 0;
|
|
255
|
+
}
|
|
256
|
+
const computedStyle = window.getComputedStyle(container);
|
|
257
|
+
return axis === "inline" ? getStylePixelValue(computedStyle.marginInlineStart) + getStylePixelValue(computedStyle.marginInlineEnd) + getStylePixelValue(computedStyle.borderInlineStartWidth) + getStylePixelValue(computedStyle.borderInlineEndWidth) : getStylePixelValue(computedStyle.marginBlockStart) + getStylePixelValue(computedStyle.marginBlockEnd) + getStylePixelValue(computedStyle.borderBlockStartWidth) + getStylePixelValue(computedStyle.borderBlockEndWidth);
|
|
258
|
+
}
|
|
259
|
+
getMaxBlockSize() {
|
|
260
|
+
const { layout, contentRef } = this;
|
|
261
|
+
if (layout !== "horizontal") {
|
|
262
|
+
return this.resizeValues.maxBlockSize;
|
|
263
|
+
}
|
|
264
|
+
if (!contentRef.value) {
|
|
265
|
+
return this.resizeValues.maxBlockSize;
|
|
266
|
+
}
|
|
267
|
+
const computedStyle = window.getComputedStyle(contentRef.value);
|
|
268
|
+
const cssMax = getStylePixelValue(computedStyle.maxBlockSize) || window.innerHeight;
|
|
269
|
+
const availableBlockSize = this.getAvailableBlockSize();
|
|
270
|
+
return availableBlockSize === null ? cssMax : Math.min(cssMax, availableBlockSize);
|
|
271
|
+
}
|
|
272
|
+
getMaxInlineSize() {
|
|
273
|
+
const { layout, contentRef } = this;
|
|
274
|
+
if (layout !== "vertical") {
|
|
275
|
+
return this.resizeValues.maxInlineSize;
|
|
276
|
+
}
|
|
277
|
+
if (!contentRef.value) {
|
|
278
|
+
return this.resizeValues.maxInlineSize;
|
|
279
|
+
}
|
|
280
|
+
const computedStyle = window.getComputedStyle(contentRef.value);
|
|
281
|
+
const cssMax = getStylePixelValue(computedStyle.maxInlineSize) || window.innerWidth;
|
|
282
|
+
const availableInlineSize = this.getAvailableInlineSize();
|
|
283
|
+
return availableInlineSize === null ? cssMax : Math.min(cssMax, availableInlineSize);
|
|
284
|
+
}
|
|
218
285
|
async refreshResize() {
|
|
219
286
|
await this.componentOnReady();
|
|
220
287
|
await this.updateComplete;
|
|
@@ -230,7 +297,6 @@ class ShellPanel extends LitElement {
|
|
|
230
297
|
}
|
|
231
298
|
const rtl = this.direction === "rtl";
|
|
232
299
|
const restrictSizeMin = this.resizeValues.minInlineSize === null || this.resizeValues.minBlockSize === null ? void 0 : { width: this.resizeValues.minInlineSize, height: this.resizeValues.minBlockSize };
|
|
233
|
-
const restrictSizeMax = this.resizeValues.maxInlineSize === null || this.resizeValues.maxBlockSize === null ? void 0 : { width: this.resizeValues.maxInlineSize, height: this.resizeValues.maxBlockSize };
|
|
234
300
|
this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
|
|
235
301
|
edges: {
|
|
236
302
|
top: position === "end" && layout === "horizontal" ? resizeHandle : false,
|
|
@@ -238,7 +304,7 @@ class ShellPanel extends LitElement {
|
|
|
238
304
|
bottom: position === "start" && layout === "horizontal" ? resizeHandle : false,
|
|
239
305
|
left: position === (rtl ? "start" : "end") && layout === "vertical" ? resizeHandle : false
|
|
240
306
|
},
|
|
241
|
-
modifiers: [interact.modifiers.restrictSize({ min: restrictSizeMin
|
|
307
|
+
modifiers: [interact.modifiers.restrictSize({ min: restrictSizeMin })],
|
|
242
308
|
listeners: {
|
|
243
309
|
resizestart: () => {
|
|
244
310
|
this.calciteInternalShellPanelResizeStart.emit();
|
|
@@ -344,10 +410,7 @@ class ShellPanel extends LitElement {
|
|
|
344
410
|
if (effectivePosition === "end" || effectivePosition === "bottom") {
|
|
345
411
|
mainNodes.reverse();
|
|
346
412
|
}
|
|
347
|
-
return html`<div class=${safeClassMap({
|
|
348
|
-
[CSS.container]: true,
|
|
349
|
-
[CSS.floatAll]: displayMode === "float-all"
|
|
350
|
-
})}>${mainNodes}</div>`;
|
|
413
|
+
return html`<div class=${safeClassMap({ [CSS.container]: true, [CSS.floatAll]: displayMode === "float-all" })} ${ref(this.containerRef)}>${mainNodes}</div>`;
|
|
351
414
|
}
|
|
352
415
|
}
|
|
353
416
|
customElement("calcite-shell-panel", ShellPanel);
|
|
@@ -81,7 +81,11 @@ export abstract class Slider extends LitElement {
|
|
|
81
81
|
accessor maxLabel: string | undefined;
|
|
82
82
|
/** For multiple values, specifies the component's upper value. */
|
|
83
83
|
accessor maxValue: number;
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Replace localized message strings with your own strings.
|
|
86
|
+
*
|
|
87
|
+
* _**Note**: Individual message keys may change between releases._
|
|
88
|
+
*/
|
|
85
89
|
accessor messageOverrides: { required?: string | undefined; };
|
|
86
90
|
/**
|
|
87
91
|
* Specifies the component's minimum selectable value.
|
|
@@ -5,7 +5,7 @@ import { css, html, nothing } from "lit";
|
|
|
5
5
|
import { LitElement, createEvent, stringOrBoolean, setAttribute, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { g as guid } from "../../chunks/guid.js";
|
|
8
|
-
import {
|
|
8
|
+
import { k as isPrimaryPointerButton, A as intersects } from "../../chunks/dom.js";
|
|
9
9
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
10
10
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
11
11
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
@@ -17,7 +17,11 @@ export abstract class SortHandle extends LitElement {
|
|
|
17
17
|
accessor flipPlacements: FlipPlacement[] | undefined;
|
|
18
18
|
/** Specifies an accessible label for the component. */
|
|
19
19
|
accessor label: string | undefined;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Replace localized message strings with your own strings.
|
|
22
|
+
*
|
|
23
|
+
* _**Note**: Individual message keys may change between releases._
|
|
24
|
+
*/
|
|
21
25
|
accessor messageOverrides: {
|
|
22
26
|
reorder?: string | undefined;
|
|
23
27
|
addTo?: string | undefined;
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
6
|
-
import {
|
|
6
|
+
import { j as focusElement } from "../../chunks/dom.js";
|
|
7
7
|
import { l as logger } from "../../chunks/logger.js";
|
|
8
8
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
9
|
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
@@ -26,7 +26,11 @@ export abstract class Stepper extends LitElement {
|
|
|
26
26
|
* @default "horizontal"
|
|
27
27
|
*/
|
|
28
28
|
accessor layout: StepperLayout;
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Replace localized message strings with your own strings.
|
|
31
|
+
*
|
|
32
|
+
* _**Note**: Individual message keys may change between releases._
|
|
33
|
+
*/
|
|
30
34
|
accessor messageOverrides: {
|
|
31
35
|
label?: string | undefined;
|
|
32
36
|
previousStep?: string | undefined;
|
|
@@ -51,7 +51,11 @@ export abstract class StepperItem extends LitElement {
|
|
|
51
51
|
* @default false
|
|
52
52
|
*/
|
|
53
53
|
accessor iconFlipRtl: boolean;
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Replace localized message strings with your own strings.
|
|
56
|
+
*
|
|
57
|
+
* _**Note**: Individual message keys may change between releases._
|
|
58
|
+
*/
|
|
55
59
|
accessor messageOverrides: {
|
|
56
60
|
complete?: string | undefined;
|
|
57
61
|
previousStep?: string | undefined;
|
|
@@ -7,7 +7,7 @@ import { n as numberStringFormatter } from "../../chunks/locale.js";
|
|
|
7
7
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
8
8
|
import { i as isHidden } from "../../chunks/component.js";
|
|
9
9
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
10
|
-
import {
|
|
10
|
+
import { n as slotChangeHasContent } from "../../chunks/dom.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
12
|
import { C as CSS, I as ICONS } from "../../chunks/resources12.js";
|
|
13
13
|
const styles = css`:host([disabled]),:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) ::slotted(*),:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-item-spacing-unit-m: .75rem;--calcite-internal-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-md);--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-item-spacing-unit-m: 1rem;--calcite-internal-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-lg);--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-item-spacing-unit-m: 1.25rem;--calcite-internal-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-item-header-padding: var(--calcite-spacing-xl);--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-lg);margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-relative-md)}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-color-foreground-3))}:host{outline-color:transparent}:host(:focus){outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-content,:host .stepper-item-header{box-sizing:border-box;padding-block:var(--calcite-internal-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start;padding-block:var(--calcite-internal-stepper-item-header-padding)}:host .stepper-item-header:active{background-color:var(--calcite-stepper-item-background-color-press, var(--calcite-color-foreground-3))}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-icon{margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;margin-block-start:var(--calcite-spacing-base);color:var(--calcite-stepper-item-icon-color, var(--calcite-color-border-input))}:host([complete]) .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}.stepper-item-heading,.stepper-item-description,.stepper-item-number{line-height:var(--calcite-font-line-height-relative-snug)}:host .stepper-item-heading{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-1))}:host .stepper-item-description{color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-3))}:host .stepper-item-number{font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);color:var(--calcite-stepper-item-description-text-color, var(--calcite-color-text-1))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-stepper-item-complete-icon-color, var(--calcite-color-brand))}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color-hover, var(--calcite-color-text-1))}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-selected-header-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-description{color:var(--calcite-stepper-item-description-text-color-hover, var(--calcite-color-text-2))}:host([selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));font-weight:var(--calcite-font-weight-medium)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-brand));opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-l);border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-internal-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=vertical][error]) .container{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=vertical][selected]) .container{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=vertical][selected]) .container .stepper-item-content.has-slotted-content{margin-block-end:var(--calcite-internal-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;outline-color:transparent;grid-row:items;border-color:var(--calcite-stepper-bar-fill-color, var(--calcite-color-border-2))}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-internal-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color, rgba(0, 122, 194, .5))}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-complete-fill-color-hover, var(--calcite-color-brand))}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-stepper-bar-selected-fill-color, var(--calcite-color-brand))}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-fill-color-hover, rgba(0, 122, 194, .5))}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-stepper-bar-error-fill-color-hover, var(--calcite-color-status-danger-hover))}@media(forced-colors:active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-stepper-item-error-icon-color, var(--calcite-color-status-danger))}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-stepper-item-header-text-color, var(--calcite-color-text-2))}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-stepper-item-selected-icon-color, var(--calcite-color-text-3))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([item-hidden]){display:none}`;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { o as nodeListToArray } from "../../chunks/dom.js";
|
|
6
6
|
import { g as guid } from "../../chunks/guid.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
container: "container",
|
|
@@ -10,7 +10,11 @@ import type { TabTitle } from "../calcite-tab-title/customElement.js";
|
|
|
10
10
|
* @slot - A slot for adding `calcite-tab-title`s.
|
|
11
11
|
*/
|
|
12
12
|
export abstract class TabNav extends LitElement {
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Replace localized message strings with your own strings.
|
|
15
|
+
*
|
|
16
|
+
* _**Note**: Individual message keys may change between releases._
|
|
17
|
+
*/
|
|
14
18
|
accessor messageOverrides: {
|
|
15
19
|
nextTabTitles?: string | undefined;
|
|
16
20
|
previousTabTitles?: string | undefined;
|
|
@@ -6,7 +6,7 @@ import { a as calciteSize24, b as calciteSize32, d as calciteSize44 } from "../.
|
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
8
8
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
-
import {
|
|
9
|
+
import { C as filterDirectChildren, f as focusElementInGroup, j as focusElement } from "../../chunks/dom.js";
|
|
10
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
12
12
|
const ICON = {
|
|
@@ -49,7 +49,11 @@ export abstract class TabTitle extends LitElement {
|
|
|
49
49
|
accessor iconFlipRtl: FlipContext | undefined;
|
|
50
50
|
/** Specifies an icon to display at the start of the component. */
|
|
51
51
|
accessor iconStart: IconName | undefined;
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Replace localized message strings with your own strings.
|
|
54
|
+
*
|
|
55
|
+
* _**Note**: Individual message keys may change between releases._
|
|
56
|
+
*/
|
|
53
57
|
accessor messageOverrides: { close?: string | undefined; };
|
|
54
58
|
/**
|
|
55
59
|
* Specifies the position of `calcite-tab-nav` and `calcite-tab-title` components in relation to, and is inherited from the parent `calcite-tabs`, defaults to `top`.
|
|
@@ -5,7 +5,7 @@ import { css, isServer, html } from "lit";
|
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap, setAttribute } from "@arcgis/lumina";
|
|
7
7
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
-
import {
|
|
8
|
+
import { o as nodeListToArray } from "../../chunks/dom.js";
|
|
9
9
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
10
10
|
import { g as guid } from "../../chunks/guid.js";
|
|
11
11
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
@@ -88,7 +88,11 @@ export abstract class Table extends LitElement {
|
|
|
88
88
|
* @default "auto"
|
|
89
89
|
*/
|
|
90
90
|
accessor layout: TableLayout;
|
|
91
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Replace localized message strings with your own strings.
|
|
93
|
+
*
|
|
94
|
+
* _**Note**: Individual message keys may change between releases._
|
|
95
|
+
*/
|
|
92
96
|
accessor messageOverrides: {
|
|
93
97
|
clear?: string | undefined;
|
|
94
98
|
hiddenSelected?: string | undefined;
|
|
@@ -21,7 +21,11 @@ export abstract class TableCell extends LitElement {
|
|
|
21
21
|
accessor alignment: Alignment;
|
|
22
22
|
/** Specifies the number of columns the component should span. */
|
|
23
23
|
accessor colSpan: number | undefined;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Replace localized message strings with your own strings.
|
|
26
|
+
*
|
|
27
|
+
* _**Note**: Individual message keys may change between releases._
|
|
28
|
+
*/
|
|
25
29
|
accessor messageOverrides: {
|
|
26
30
|
keyboardDeselect?: string | undefined;
|
|
27
31
|
keyboardSelect?: string | undefined;
|
|
@@ -22,7 +22,11 @@ export abstract class TableHeader extends LitElement {
|
|
|
22
22
|
accessor description: string | undefined;
|
|
23
23
|
/** Specifies the component's heading text. */
|
|
24
24
|
accessor heading: string | undefined;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Replace localized message strings with your own strings.
|
|
27
|
+
*
|
|
28
|
+
* _**Note**: Individual message keys may change between releases._
|
|
29
|
+
*/
|
|
26
30
|
accessor messageOverrides: {
|
|
27
31
|
all?: string | undefined;
|
|
28
32
|
keyboardDeselectAll?: string | undefined;
|
|
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, render } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import { f as focusElementInGroup,
|
|
7
|
+
import { f as focusElementInGroup, b as getSlotAssignedElements } from "../../chunks/dom.js";
|
|
8
8
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
9
9
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
10
10
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
-
import { a as slotChangeGetAssignedElements,
|
|
6
|
+
import { a as slotChangeGetAssignedElements, b as getSlotAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
section: "section"
|
|
9
9
|
};
|