@esri/calcite-components 5.1.0-next.4 → 5.1.0-next.6
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/{GW7IPUQS.js → 232WBXIW.js} +1 -1
- package/dist/cdn/27KIJJVA.js +2 -0
- package/dist/cdn/{KVSU3DLB.js → 27S7SCHF.js} +1 -1
- package/dist/cdn/2CV466KR.js +2 -0
- package/dist/cdn/{LHJSBAM5.js → 2M3L5CHC.js} +1 -1
- package/dist/cdn/2XWHTJYS.js +2 -0
- package/dist/cdn/{QBLAE2O5.js → 3HLHTUY5.js} +1 -1
- package/dist/cdn/{IFHMJCAE.js → 3N3YST3P.js} +1 -1
- package/dist/cdn/3OCOXFJX.js +2 -0
- package/dist/cdn/3ZTULMLE.js +2 -0
- package/dist/cdn/{LGKOEBZ4.js → 44K6CFSA.js} +1 -1
- package/dist/cdn/46ATGQXN.js +2 -0
- package/dist/cdn/{CDTY6WOM.js → 4HL2Z5HN.js} +1 -1
- package/dist/cdn/{QOSBMGOZ.js → 526JZ6Y2.js} +1 -1
- package/dist/cdn/{AYPT6VGV.js → 56V6AANR.js} +1 -1
- package/dist/cdn/{5HQ3O27G.js → 57UFQM3M.js} +1 -1
- package/dist/cdn/{FCNCDBSI.js → 5D32LNQR.js} +1 -1
- package/dist/cdn/{FDGUUC3D.js → 5G2KVW4P.js} +1 -1
- package/dist/cdn/5H7EBO5K.js +2 -0
- package/dist/cdn/{CZYFEVKF.js → 5HB4KJ7Y.js} +1 -1
- package/dist/cdn/{HRUVPNCI.js → 633FBLBS.js} +1 -1
- package/dist/cdn/{JKLX623E.js → 66YZFACX.js} +1 -1
- package/dist/cdn/672VGWH7.js +2 -0
- package/dist/cdn/{R6D5F2V7.js → 67O6G5DT.js} +1 -1
- package/dist/cdn/6CKEQZO7.js +2 -0
- package/dist/cdn/{ZZNRLKQQ.js → 6E6JZIDL.js} +1 -1
- package/dist/cdn/{MXRMT4RB.js → 6UH6TKTT.js} +1 -1
- package/dist/cdn/6XNHTAM2.js +2 -0
- package/dist/cdn/7KPHVGVG.js +2 -0
- package/dist/cdn/{SBPWZDAB.js → 7MRH7XSL.js} +1 -1
- package/dist/cdn/7UOYXJ3K.js +2 -0
- package/dist/cdn/{7B4D4WJ2.js → AECJNJ7Y.js} +1 -1
- package/dist/cdn/{HXS3PD57.js → AELSFDTC.js} +1 -1
- package/dist/cdn/{YOYLPMEA.js → AKVWZOJU.js} +1 -1
- package/dist/cdn/ARN4B4IT.js +2 -0
- package/dist/cdn/{GJE7FY35.js → B4SHCCW6.js} +1 -1
- package/dist/cdn/BCO3LX7A.js +2 -0
- package/dist/cdn/{Q7WYXKFZ.js → BRMCZ6ZG.js} +1 -1
- package/dist/cdn/BRXJTIAG.js +2 -0
- package/dist/cdn/{QKUQGG2M.js → BVFHM66P.js} +1 -1
- package/dist/cdn/{SXVCUXNL.js → C44ME3U7.js} +1 -1
- package/dist/cdn/{VLGFWPBL.js → CILYQWNA.js} +1 -1
- package/dist/cdn/{5TWM6GKK.js → CSXVZ7IA.js} +1 -1
- package/dist/cdn/{6IZMIAV2.js → D2EYC7T6.js} +1 -1
- package/dist/cdn/{5YROPSGB.js → DNYQCUGR.js} +1 -1
- package/dist/cdn/{KNDQJ2XX.js → EMOZ2DH3.js} +1 -1
- package/dist/cdn/{HXVXRVZW.js → ETPCGFQN.js} +1 -1
- package/dist/cdn/{2ZJ5ADD2.js → FC5MLLP5.js} +1 -1
- package/dist/cdn/{7DA7BZM3.js → FIYBHBE3.js} +1 -1
- package/dist/cdn/FO3VFHYC.js +2 -0
- package/dist/cdn/GCGNKBZK.js +2 -0
- package/dist/cdn/{OVU2NGHU.js → HAVRDDW3.js} +1 -1
- package/dist/cdn/{YQY6DOSF.js → HBRWGV2Z.js} +1 -1
- package/dist/cdn/{CPDXUV3S.js → HGX7LZAA.js} +1 -1
- package/dist/cdn/{X7JEHH2B.js → HJRA23WV.js} +1 -1
- package/dist/cdn/{3TCEXRVB.js → HMZKLPV5.js} +1 -1
- package/dist/cdn/{FAOX7WLQ.js → IBP55ZGE.js} +1 -1
- package/dist/cdn/IIYUSLAE.js +2 -0
- package/dist/cdn/{F7XISEIT.js → IYMANB2G.js} +1 -1
- package/dist/cdn/{FAHLSHDH.js → JN5O4TLZ.js} +1 -1
- package/dist/cdn/{Z3IVC2AV.js → JQY63BDJ.js} +1 -1
- package/dist/cdn/JVNG2BRO.js +2 -0
- package/dist/cdn/{CAAZHUX4.js → JVZSWSGV.js} +1 -1
- package/dist/cdn/JX4VBEH7.js +2 -0
- package/dist/cdn/{R3EE76WN.js → K724PPGV.js} +1 -1
- package/dist/cdn/{RROGXGP5.js → KJ42NLHR.js} +1 -1
- package/dist/cdn/KP6U3OB3.js +2 -0
- package/dist/cdn/{YUJ33VWR.js → KT4JL3GM.js} +1 -1
- package/dist/cdn/KZ5EXCXL.js +2 -0
- package/dist/cdn/{EIFNZZAD.js → L3TZLATI.js} +1 -1
- package/dist/cdn/{AMZPSRIA.js → L62IP5MG.js} +1 -1
- package/dist/cdn/{7KCC74EE.js → LCHIHTFT.js} +1 -1
- package/dist/cdn/{MUGKSK5F.js → LKQBHGZ7.js} +1 -1
- package/dist/cdn/LOPKPGRY.js +2 -0
- package/dist/cdn/{HYYJZO6T.js → LRM2CLPW.js} +1 -1
- package/dist/cdn/LRM7ZHT5.js +2 -0
- package/dist/cdn/LSDUQPFS.js +2 -0
- package/dist/cdn/LTLVP6R6.js +2 -0
- package/dist/cdn/{7TEW7OYZ.js → MCSIAIDA.js} +1 -1
- package/dist/cdn/{HVBNJRAQ.js → MFSDYV4U.js} +1 -1
- package/dist/cdn/{LIJYENWJ.js → NCCVRAIB.js} +1 -1
- package/dist/cdn/{SYSNPKVM.js → NGDCIJ3J.js} +1 -1
- package/dist/cdn/{RA4KNUNM.js → NLVQFJ3Z.js} +1 -1
- package/dist/cdn/{WR6QBFCR.js → NU744SVB.js} +1 -1
- package/dist/cdn/{PS64W4X6.js → NXCII3YU.js} +1 -1
- package/dist/cdn/{XYAZINKS.js → O24SM7OF.js} +1 -1
- package/dist/cdn/{Z22BRBT4.js → O535TZZ6.js} +1 -1
- package/dist/cdn/O7YWW6X6.js +2 -0
- package/dist/cdn/OIYWPY2M.js +2 -0
- package/dist/cdn/{4MFRMO5M.js → OS5HZHBU.js} +1 -1
- package/dist/cdn/{DFXECQ6Z.js → OSCPBA6O.js} +1 -1
- package/dist/cdn/{GZNBU3BV.js → OX5RYOW4.js} +1 -1
- package/dist/cdn/{ED2GANBI.js → P3W4A5BT.js} +1 -1
- package/dist/cdn/{UTFS3HNB.js → PKKVWQIA.js} +1 -1
- package/dist/cdn/PT5LBDUL.js +2 -0
- package/dist/cdn/{MASQZEFU.js → Q5SNHQHW.js} +1 -1
- package/dist/cdn/QID335AW.js +2 -0
- package/dist/cdn/{HCJDTU7F.js → QMSQZWET.js} +1 -1
- package/dist/cdn/{MJCRT7H4.js → QX54642B.js} +1 -1
- package/dist/cdn/{XDOFVA4S.js → REPXOUSM.js} +1 -1
- package/dist/cdn/RJSLWYFJ.js +2 -0
- package/dist/cdn/RTJOU72W.js +2 -0
- package/dist/cdn/{A4OYPK5D.js → RZSXCJTK.js} +1 -1
- package/dist/cdn/S3FVUTIY.js +2 -0
- package/dist/cdn/SJYYS7RH.js +2 -0
- package/dist/cdn/SMSVNRM4.js +2 -0
- package/dist/cdn/{GDTRICJF.js → SSQXPR3D.js} +1 -1
- package/dist/cdn/{7CZHE7FZ.js → TBVIBCHL.js} +1 -1
- package/dist/cdn/{MTNYIXZQ.js → THSY4EQU.js} +1 -1
- package/dist/cdn/TR56QFJC.js +2 -0
- package/dist/cdn/{A22XLAKZ.js → TT5S3S4L.js} +1 -1
- package/dist/cdn/{BWUA5WU5.js → TWXMFG7A.js} +1 -1
- package/dist/cdn/{P7U46JDU.js → U3AOFOT7.js} +1 -1
- package/dist/cdn/UPE6RIV2.js +2 -0
- package/dist/cdn/{7CLOFSLV.js → V4NX2X3B.js} +1 -1
- package/dist/cdn/V6NB5CGO.js +2 -0
- package/dist/cdn/{ILES2J66.js → VESBDAE7.js} +1 -1
- package/dist/cdn/{V4KATS7H.js → VKQJIDXT.js} +1 -1
- package/dist/cdn/{IMOAPVVW.js → VMMRWNOB.js} +1 -1
- package/dist/cdn/{IOSK2I75.js → W4HQGAKN.js} +1 -1
- package/dist/cdn/{FRI4RPRX.js → W5FGAVGO.js} +1 -1
- package/dist/cdn/{XLGGANFA.js → W5HANC6S.js} +1 -1
- package/dist/cdn/{37APBABQ.js → WBP5XEJH.js} +1 -1
- package/dist/cdn/{5WKPS2ZT.js → WE2SWJDR.js} +1 -1
- package/dist/cdn/{WAC3IAWB.js → WNADDPUF.js} +1 -1
- package/dist/cdn/{GAUJK4Z7.js → XGRU4PI2.js} +1 -1
- package/dist/cdn/{TCAGY7OI.js → XI7FVSES.js} +1 -1
- package/dist/cdn/{LRL6N22U.js → XRGPWSUO.js} +1 -1
- package/dist/cdn/{3W4NT367.js → XZX7ZHUA.js} +1 -1
- package/dist/cdn/{6NGWODBG.js → Y36WJADK.js} +1 -1
- package/dist/cdn/{TLAXB6HU.js → Y555OQ57.js} +1 -1
- package/dist/cdn/{GM6FZWSL.js → YBIQF3JQ.js} +1 -1
- package/dist/cdn/{ULBA6IRN.js → YGHVUKLM.js} +1 -1
- package/dist/cdn/{RRHN2PDB.js → YGKHTZ4V.js} +1 -1
- package/dist/cdn/{KKH2HVQW.js → YNGZPTWY.js} +1 -1
- package/dist/cdn/{S22OVJTO.js → YPOMUQHV.js} +2 -2
- package/dist/cdn/{RSCA2AM5.js → YWIQC7RF.js} +1 -1
- package/dist/cdn/{ZIOXZBYF.js → ZB7NSHVW.js} +1 -1
- package/dist/cdn/{EW6277QZ.js → ZCJDNXK2.js} +1 -1
- package/dist/cdn/{GFZYTB3O.js → ZHOHVRUX.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +4 -5
- package/dist/chunks/dom.js +22 -29
- package/dist/chunks/floating-ui.js +2 -2
- package/dist/chunks/input.js +17 -7
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useSetFocus.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +4 -3
- package/dist/components/calcite-action-bar/customElement.d.ts +9 -0
- package/dist/components/calcite-action-bar/customElement.js +40 -13
- package/dist/components/calcite-action-pad/customElement.js +4 -2
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.js +3 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-group/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-carousel/customElement.js +27 -25
- package/dist/components/calcite-checkbox/customElement.js +3 -2
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +4 -2
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +11 -1
- package/dist/components/calcite-combobox/customElement.js +8 -3
- package/dist/components/calcite-combobox-item/customElement.js +10 -4
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +2 -2
- package/dist/components/calcite-dialog/customElement.js +1 -1
- package/dist/components/calcite-dropdown/customElement.js +4 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +3 -3
- package/dist/components/calcite-flow-item/customElement.js +3 -3
- package/dist/components/calcite-icon/customElement.js +4 -3
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +4 -3
- package/dist/components/calcite-input-date-picker/customElement.js +3 -0
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.js +4 -3
- package/dist/components/calcite-input-text/customElement.d.ts +1 -1
- package/dist/components/calcite-input-text/customElement.js +174 -27
- package/dist/components/calcite-input-time-picker/customElement.js +3 -2
- package/dist/components/calcite-link/customElement.js +4 -3
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list-item/customElement.js +5 -3
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +4 -2
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.js +4 -1
- package/dist/components/calcite-progress/customElement.js +3 -2
- package/dist/components/calcite-radio-button/customElement.js +3 -3
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.js +5 -3
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-sheet/customElement.js +8 -5
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.js +7 -5
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.js +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-swatch-group/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +4 -2
- package/dist/components/calcite-tab-title/customElement.js +5 -3
- package/dist/components/calcite-table-cell/customElement.js +3 -2
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.js +3 -2
- package/dist/components/calcite-tooltip/customElement.js +4 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +4 -2
- package/dist/controllers/useForm.d.ts +3 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +4 -4
- 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 +7 -7
- package/dist/cdn/256EMMKX.js +0 -2
- package/dist/cdn/3OIE2RR5.js +0 -2
- package/dist/cdn/43T3HPVW.js +0 -2
- package/dist/cdn/4ET37OQN.js +0 -2
- package/dist/cdn/4SJVPWEI.js +0 -2
- package/dist/cdn/7WPF3NTF.js +0 -2
- package/dist/cdn/F7SGO63N.js +0 -2
- package/dist/cdn/G6R56WT6.js +0 -2
- package/dist/cdn/HBVQ77SB.js +0 -2
- package/dist/cdn/HD23H6LX.js +0 -2
- package/dist/cdn/I6CQ5UW5.js +0 -2
- package/dist/cdn/IR6Z2XSF.js +0 -2
- package/dist/cdn/IUAHSZQ6.js +0 -2
- package/dist/cdn/JLB2FYLL.js +0 -2
- package/dist/cdn/JRCEHRYP.js +0 -2
- package/dist/cdn/L6F7C3O7.js +0 -2
- package/dist/cdn/LIZ5IMMJ.js +0 -2
- package/dist/cdn/LR57FDVO.js +0 -2
- package/dist/cdn/LYKD5N65.js +0 -2
- package/dist/cdn/MAXAPKJ5.js +0 -2
- package/dist/cdn/MQPFYNQR.js +0 -2
- package/dist/cdn/N6QRZM7N.js +0 -2
- package/dist/cdn/NQEVKT6K.js +0 -2
- package/dist/cdn/OS7NHPEF.js +0 -2
- package/dist/cdn/P7RXOG72.js +0 -2
- package/dist/cdn/PBMFDSRI.js +0 -2
- package/dist/cdn/Q52SIZ3L.js +0 -2
- package/dist/cdn/R6YSSNOG.js +0 -2
- package/dist/cdn/SFEXJ2YW.js +0 -2
- package/dist/cdn/TPXLAPIE.js +0 -2
- package/dist/cdn/TSZAQNPK.js +0 -2
- package/dist/cdn/U6LKEFFT.js +0 -2
- package/dist/cdn/UAADJQTQ.js +0 -2
- package/dist/cdn/UOIMVKXE.js +0 -2
- package/dist/cdn/XSSG2WBN.js +0 -2
- package/dist/cdn/YHGC7HRA.js +0 -2
- package/dist/cdn/Z53AVC5H.js +0 -2
- package/dist/cdn/ZXUITROT.js +0 -2
|
@@ -5,7 +5,8 @@ import { u as useSizeOverride, i as interact } from "../../chunks/useSizeOverrid
|
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
|
-
import {
|
|
8
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { y as ensureId, g as getStylePixelValue } from "../../chunks/dom.js";
|
|
9
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
11
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
11
12
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
@@ -37,6 +38,7 @@ class Sheet extends LitElement {
|
|
|
37
38
|
constructor() {
|
|
38
39
|
super();
|
|
39
40
|
this.contentRef = createRef();
|
|
41
|
+
this.direction = useDirection();
|
|
40
42
|
this.focusTrap = useFocusTrap({
|
|
41
43
|
triggerProp: "open",
|
|
42
44
|
focusTrapOptions: {
|
|
@@ -178,14 +180,14 @@ class Sheet extends LitElement {
|
|
|
178
180
|
}
|
|
179
181
|
handleKeyDown(event) {
|
|
180
182
|
const { key, defaultPrevented, shiftKey } = event;
|
|
181
|
-
const { contentRef, position, resizable,
|
|
183
|
+
const { contentRef, position, resizable, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
|
|
182
184
|
const arrowKeys = position === "block-end" || position === "block-start" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"];
|
|
183
185
|
const keys = [...arrowKeys, "Home", "End"];
|
|
184
186
|
if (!resizable || !contentRef.value || defaultPrevented || !keys.includes(key)) {
|
|
185
187
|
return;
|
|
186
188
|
}
|
|
187
189
|
const rect = this.getContentRefDOMRect();
|
|
188
|
-
const invertRTL =
|
|
190
|
+
const invertRTL = this.direction === "rtl" ? -1 : 1;
|
|
189
191
|
const stepValue = shiftKey ? resizeShiftStep : resizeStep;
|
|
190
192
|
switch (key) {
|
|
191
193
|
case "ArrowUp":
|
|
@@ -256,7 +258,8 @@ class Sheet extends LitElement {
|
|
|
256
258
|
maxInlineSize: getStylePixelValue(maxInlineSize) || window.innerWidth,
|
|
257
259
|
maxBlockSize: getStylePixelValue(maxBlockSize) || window.innerHeight
|
|
258
260
|
};
|
|
259
|
-
|
|
261
|
+
this.resizeValues = values;
|
|
262
|
+
const rtl = this.direction === "rtl";
|
|
260
263
|
this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
|
|
261
264
|
edges: {
|
|
262
265
|
top: position === "block-end" ? resizeHandleEl : false,
|
|
@@ -318,7 +321,7 @@ class Sheet extends LitElement {
|
|
|
318
321
|
}
|
|
319
322
|
render() {
|
|
320
323
|
const { resizable, position, resizeValues } = this;
|
|
321
|
-
const dir =
|
|
324
|
+
const dir = this.direction;
|
|
322
325
|
const isBlockPosition = position === "block-start" || position === "block-end";
|
|
323
326
|
setAttribute(this.el, "aria-describedby", this.contentId);
|
|
324
327
|
this.el.ariaLabel = this.label;
|
|
@@ -3,7 +3,7 @@ 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 { s as slotChangeHasAssignedElement,
|
|
6
|
+
import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
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}.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}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
8
8
|
const CSS = {
|
|
9
9
|
main: "main",
|
|
@@ -5,7 +5,8 @@ import { u as useSizeOverride, i as interact } from "../../chunks/useSizeOverrid
|
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
|
-
import {
|
|
8
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { g as getStylePixelValue, a as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
9
10
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
10
11
|
import { a as ariaValueFromSize } from "../../chunks/aria.js";
|
|
11
12
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -35,6 +36,7 @@ const styles = css`:host{pointer-events:none;position:relative;display:flex;flex
|
|
|
35
36
|
class ShellPanel extends LitElement {
|
|
36
37
|
constructor() {
|
|
37
38
|
super(...arguments);
|
|
39
|
+
this.direction = useDirection();
|
|
38
40
|
this.actionBars = [];
|
|
39
41
|
this.contentRef = createRef();
|
|
40
42
|
this.messages = useT9n();
|
|
@@ -104,14 +106,14 @@ class ShellPanel extends LitElement {
|
|
|
104
106
|
}
|
|
105
107
|
handleKeyDown(event) {
|
|
106
108
|
const { key, defaultPrevented, shiftKey } = event;
|
|
107
|
-
const { position, layout, resizable, contentRef,
|
|
109
|
+
const { position, layout, resizable, contentRef, resizeValues: { maxBlockSize, maxInlineSize, minBlockSize, minInlineSize } } = this;
|
|
108
110
|
const arrowKeys = layout === "horizontal" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"];
|
|
109
111
|
const keys = [...arrowKeys, "Home", "End"];
|
|
110
112
|
if (!resizable || !contentRef.value || defaultPrevented || !keys.includes(key)) {
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
113
115
|
const rect = this.getContentElDOMRect();
|
|
114
|
-
const invertRTL =
|
|
116
|
+
const invertRTL = this.direction === "rtl" ? -1 : 1;
|
|
115
117
|
const stepValue = shiftKey ? resizeShiftStep : resizeStep;
|
|
116
118
|
switch (key) {
|
|
117
119
|
case "ArrowUp":
|
|
@@ -168,7 +170,7 @@ class ShellPanel extends LitElement {
|
|
|
168
170
|
maxBlockSize: getStylePixelValue(maxBlockSize) || window.innerHeight
|
|
169
171
|
};
|
|
170
172
|
this.resizeValues = values;
|
|
171
|
-
const rtl =
|
|
173
|
+
const rtl = this.direction === "rtl";
|
|
172
174
|
this.interaction = interact(contentRef.value, { context: el.ownerDocument }).resizable({
|
|
173
175
|
edges: {
|
|
174
176
|
top: position === "end" && layout === "horizontal" ? resizeHandleEl : false,
|
|
@@ -226,7 +228,7 @@ class ShellPanel extends LitElement {
|
|
|
226
228
|
}
|
|
227
229
|
render() {
|
|
228
230
|
const { collapsed, position, resizable, layout, displayMode, resizeValues } = this;
|
|
229
|
-
const dir =
|
|
231
|
+
const dir = this.direction;
|
|
230
232
|
const isBlockPosition = layout === "horizontal";
|
|
231
233
|
const separatorNode = !collapsed && resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resize} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.maxBlockSize, resizeValues.maxInlineSize)} .ariaValueMin=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.minBlockSize, resizeValues.minInlineSize)} .ariaValueNow=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.blockSize, resizeValues.inlineSize)} class=${safeClassMap(CSS.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${ref(this.setResizeHandleEl)}><div class=${safeClassMap(CSS.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null;
|
|
232
234
|
const getAnimationDir = () => {
|
|
@@ -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 { j as isPrimaryPointerButton, v 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 { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
@@ -4,7 +4,7 @@ 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
6
|
import { d as disconnectSortableComponent, c as connectSortableComponent } from "../../chunks/sortableComponent.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as focusElement } from "../../chunks/dom.js";
|
|
8
8
|
import { l as logger } from "../../chunks/logger.js";
|
|
9
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
10
10
|
const CSS = {
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { svg, html, css, nothing } from "lit";
|
|
4
4
|
import { safeClassMap, LitElement, createEvent } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
-
import { f as focusElementInGroup,
|
|
6
|
+
import { f as focusElementInGroup, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
8
8
|
import { g as guid } from "../../chunks/guid.js";
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -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 { m as slotChangeHasContent } from "../../chunks/dom.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
12
|
const CSS = {
|
|
13
13
|
container: "container",
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import { f as focusElementInGroup,
|
|
6
|
+
import { f as focusElementInGroup, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
8
8
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
9
|
const CSS = {
|
|
@@ -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 { n as nodeListToArray } from "../../chunks/dom.js";
|
|
6
6
|
import { g as guid } from "../../chunks/guid.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
container: "container",
|
|
@@ -5,7 +5,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { a as calciteSize24, b as calciteSize32, d as calciteSize44 } from "../../chunks/core.js";
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
|
+
import { z as filterDirectChildren, f as focusElementInGroup, i as focusElement } from "../../chunks/dom.js";
|
|
9
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
11
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
11
12
|
const ICON = {
|
|
@@ -26,6 +27,7 @@ const styles = css`:host{position:relative;display:flex}:host([bordered]) .scrol
|
|
|
26
27
|
class TabNav extends LitElement {
|
|
27
28
|
constructor() {
|
|
28
29
|
super();
|
|
30
|
+
this.direction = useDirection();
|
|
29
31
|
this.effectiveDir = "ltr";
|
|
30
32
|
this.lastScrollWheelAxis = "x";
|
|
31
33
|
this.resizeObserver = createObserver("resize", () => {
|
|
@@ -82,7 +84,7 @@ class TabNav extends LitElement {
|
|
|
82
84
|
const { parentTabsEl } = this;
|
|
83
85
|
this.layout = parentTabsEl?.layout;
|
|
84
86
|
this.bordered = parentTabsEl?.bordered;
|
|
85
|
-
this.effectiveDir =
|
|
87
|
+
this.effectiveDir = this.direction;
|
|
86
88
|
}
|
|
87
89
|
loaded() {
|
|
88
90
|
this.scrollTabTitleIntoView(this.selectedTitle, "instant");
|
|
@@ -4,7 +4,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
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
|
-
import {
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { n as nodeListToArray } from "../../chunks/dom.js";
|
|
8
9
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
9
10
|
import { g as guid } from "../../chunks/guid.js";
|
|
10
11
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
@@ -33,6 +34,7 @@ class TabTitle extends LitElement {
|
|
|
33
34
|
constructor() {
|
|
34
35
|
super();
|
|
35
36
|
this.closeButtonRef = createRef();
|
|
37
|
+
this.direction = useDirection();
|
|
36
38
|
this.guid = IDS.host(guid());
|
|
37
39
|
this.mutationObserver = createObserver("mutation", () => this.updateHasText());
|
|
38
40
|
this.resizeObserver = createObserver("resize", () => {
|
|
@@ -153,7 +155,7 @@ class TabTitle extends LitElement {
|
|
|
153
155
|
break;
|
|
154
156
|
case "ArrowRight":
|
|
155
157
|
event.preventDefault();
|
|
156
|
-
if (
|
|
158
|
+
if (this.direction === "ltr") {
|
|
157
159
|
this.calciteInternalTabsFocusNext.emit();
|
|
158
160
|
} else {
|
|
159
161
|
this.calciteInternalTabsFocusPrevious.emit();
|
|
@@ -161,7 +163,7 @@ class TabTitle extends LitElement {
|
|
|
161
163
|
break;
|
|
162
164
|
case "ArrowLeft":
|
|
163
165
|
event.preventDefault();
|
|
164
|
-
if (
|
|
166
|
+
if (this.direction === "ltr") {
|
|
165
167
|
this.calciteInternalTabsFocusPrevious.emit();
|
|
166
168
|
} else {
|
|
167
169
|
this.calciteInternalTabsFocusNext.emit();
|
|
@@ -3,7 +3,7 @@ import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, nothing, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
8
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
9
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
@@ -22,6 +22,7 @@ class TableCell extends LitElement {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.containerRef = createRef();
|
|
25
|
+
this.direction = useDirection();
|
|
25
26
|
this.messages = useT9n();
|
|
26
27
|
this.focusSetter = useSetFocus()(this);
|
|
27
28
|
this.interactiveContainer = useInteractive(this);
|
|
@@ -66,7 +67,7 @@ class TableCell extends LitElement {
|
|
|
66
67
|
this.focused = true;
|
|
67
68
|
}
|
|
68
69
|
render() {
|
|
69
|
-
const dir =
|
|
70
|
+
const dir = this.direction;
|
|
70
71
|
const staticCell = this.disabled || this.interactionMode === "static" && (!this.selectionCell || this.selectionCell && this.parentRowType === "foot");
|
|
71
72
|
return this.interactiveContainer({ disabled: this.disabled, children: html`<td class=${safeClassMap({
|
|
72
73
|
[CSS.footerCell]: this.parentRowType === "foot",
|
|
@@ -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 {
|
|
6
|
+
import { a as slotChangeGetAssignedElements, A as getSlotAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
section: "section"
|
|
9
9
|
};
|
|
@@ -3,10 +3,10 @@ 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 { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { i as isValidNumber } from "../../chunks/locale.js";
|
|
7
8
|
import { c as componentFocusable, g as getIconScale } from "../../chunks/component.js";
|
|
8
9
|
import { d as decimalPlaces } from "../../chunks/math.js";
|
|
9
|
-
import { g as getElementDir } from "../../chunks/dom.js";
|
|
10
10
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
11
11
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
12
12
|
import { u as useTime } from "../../chunks/useTime.js";
|
|
@@ -53,6 +53,7 @@ const styles = css`:host{display:inline-block}.time-picker{display:flex;-webkit-
|
|
|
53
53
|
class TimePicker extends LitElement {
|
|
54
54
|
constructor() {
|
|
55
55
|
super();
|
|
56
|
+
this.direction = useDirection();
|
|
56
57
|
this.fractionalSecondRef = createRef();
|
|
57
58
|
this.hourRef = createRef();
|
|
58
59
|
this.meridiemRef = createRef();
|
|
@@ -318,7 +319,7 @@ class TimePicker extends LitElement {
|
|
|
318
319
|
[CSS.buttonFractionalSecondDown]: true
|
|
319
320
|
})} @click=${this.fractionalSecondDownClickHandler} role=button><calcite-icon .icon=${ICONS.chevronDown} .scale=${iconScale}></calcite-icon></span></div>` || ""}${showSecondSuffix && html`<span class=${safeClassMap({ [CSS.delimiter]: true, [CSS.secondSuffix]: true })}>${localizedSecondSuffix.trim()}</span>` || ""}${showMeridiem && html`<div class=${safeClassMap({
|
|
320
321
|
[CSS.column]: true,
|
|
321
|
-
[CSS.meridiemStart]: meridiemOrder === 0 ||
|
|
322
|
+
[CSS.meridiemStart]: meridiemOrder === 0 || this.direction === "rtl"
|
|
322
323
|
})} role=group><span .ariaLabel=${messages.meridiemUp} class=${safeClassMap({
|
|
323
324
|
[CSS.button]: true,
|
|
324
325
|
[CSS.buttonMeridiemUp]: true,
|
|
@@ -3,12 +3,13 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { e as defaultOffsetDistance, r as reposition, a as disconnectFloatingUI, h as hideFloatingUI, c as connectFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
7
8
|
import { g as guid } from "../../chunks/guid.js";
|
|
8
9
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
9
10
|
import { F as FloatingArrow } from "../../chunks/FloatingArrow.js";
|
|
10
11
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
11
|
-
import { q as queryElementRoots,
|
|
12
|
+
import { q as queryElementRoots, B as getShadowRootNode } from "../../chunks/dom.js";
|
|
12
13
|
const CSS = {
|
|
13
14
|
positionContainer: "position-container",
|
|
14
15
|
container: "container"
|
|
@@ -269,6 +270,7 @@ class Tooltip extends LitElement {
|
|
|
269
270
|
constructor() {
|
|
270
271
|
super(...arguments);
|
|
271
272
|
this.arrowRef = createRef();
|
|
273
|
+
this.direction = useDirection();
|
|
272
274
|
this.guid = IDS.host(guid());
|
|
273
275
|
this.transitionProp = "opacity";
|
|
274
276
|
this.transitionRef = createRef();
|
|
@@ -298,6 +300,7 @@ class Tooltip extends LitElement {
|
|
|
298
300
|
async reposition(delayed = false) {
|
|
299
301
|
const { referenceEl, placement, overlayPositioning, offsetDistance, offsetSkidding, arrowRef, floatingEl } = this;
|
|
300
302
|
return reposition(this, {
|
|
303
|
+
direction: this.direction,
|
|
301
304
|
floatingEl,
|
|
302
305
|
referenceEl,
|
|
303
306
|
overlayPositioning,
|
|
@@ -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, setAttribute } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { i as focusElement, n as nodeListToArray, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
6
6
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
function isTreeItem(element) {
|
|
8
8
|
return element?.tagName === "CALCITE-TREE-ITEM";
|
|
@@ -4,7 +4,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap, setAttribute } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { z as filterDirectChildren, a as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
8
9
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
9
10
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
10
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
@@ -39,6 +40,7 @@ class TreeItem extends LitElement {
|
|
|
39
40
|
constructor() {
|
|
40
41
|
super();
|
|
41
42
|
this.actionSlotWrapperRef = createRef();
|
|
43
|
+
this.direction = useDirection();
|
|
42
44
|
this.userChangedValue = false;
|
|
43
45
|
this.interactiveContainer = useInteractive(this);
|
|
44
46
|
this.hasEndActions = false;
|
|
@@ -242,7 +244,7 @@ class TreeItem extends LitElement {
|
|
|
242
244
|
return null;
|
|
243
245
|
}
|
|
244
246
|
render() {
|
|
245
|
-
const rtl =
|
|
247
|
+
const rtl = this.direction === "rtl";
|
|
246
248
|
const selectionIcon = this.getSelectionIcon();
|
|
247
249
|
const checkboxIsIndeterminate = this.hasChildren && this.indeterminate;
|
|
248
250
|
const chevron = this.hasChildren || this.selectionMode === "ancestors" ? html`<calcite-icon class=${safeClassMap({
|