@esri/calcite-components 5.1.0-next.4 → 5.1.0-next.5
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/{FAHLSHDH.js → 22IPJDDL.js} +1 -1
- package/dist/cdn/25CWB6HX.js +2 -0
- package/dist/cdn/25YVFVC7.js +2 -0
- package/dist/cdn/{VLGFWPBL.js → 2GS6R2BX.js} +1 -1
- package/dist/cdn/2QARK4VJ.js +2 -0
- package/dist/cdn/{BWUA5WU5.js → 2Z4Z3NMS.js} +1 -1
- package/dist/cdn/{GW7IPUQS.js → 3KLZFJXW.js} +1 -1
- package/dist/cdn/3L2WKJUB.js +2 -0
- package/dist/cdn/{CZYFEVKF.js → 3LOKHBAB.js} +1 -1
- package/dist/cdn/{A4OYPK5D.js → 3NNVHOGK.js} +1 -1
- package/dist/cdn/{HVBNJRAQ.js → 3WLFK4RW.js} +1 -1
- package/dist/cdn/{ZIOXZBYF.js → 42NQN6DY.js} +1 -1
- package/dist/cdn/462JN5WF.js +2 -0
- package/dist/cdn/{GDTRICJF.js → 464S36UH.js} +1 -1
- package/dist/cdn/{ULBA6IRN.js → 4ALKCXNH.js} +1 -1
- package/dist/cdn/4GQPJFUJ.js +2 -0
- package/dist/cdn/{WAC3IAWB.js → 4GVH7HTQ.js} +1 -1
- package/dist/cdn/{7CZHE7FZ.js → 4J6YW6EK.js} +1 -1
- package/dist/cdn/{7CLOFSLV.js → 52ZOO5HQ.js} +1 -1
- package/dist/cdn/5HTRQR7F.js +2 -0
- package/dist/cdn/{IFHMJCAE.js → 5J2UYJYX.js} +1 -1
- package/dist/cdn/{TCAGY7OI.js → 5L7CGWWD.js} +1 -1
- package/dist/cdn/{LIJYENWJ.js → 5SU52VYR.js} +1 -1
- package/dist/cdn/5TCLHXAD.js +2 -0
- package/dist/cdn/{7KCC74EE.js → 6NEHFZMJ.js} +1 -1
- package/dist/cdn/{RSCA2AM5.js → 6VRXKEA7.js} +1 -1
- package/dist/cdn/{EW6277QZ.js → 6XJYCX76.js} +1 -1
- package/dist/cdn/{XYAZINKS.js → 752PQ7IA.js} +1 -1
- package/dist/cdn/{ILES2J66.js → 7RSGSW76.js} +1 -1
- package/dist/cdn/7UOYXJ3K.js +2 -0
- package/dist/cdn/{EIFNZZAD.js → A2UZRUUF.js} +1 -1
- package/dist/cdn/{GFZYTB3O.js → A7IQIXR3.js} +1 -1
- package/dist/cdn/{R3EE76WN.js → AEUCGVU4.js} +1 -1
- package/dist/cdn/{RA4KNUNM.js → AJKEEG2Z.js} +1 -1
- package/dist/cdn/{5TWM6GKK.js → ALC6PGDZ.js} +1 -1
- package/dist/cdn/{HRUVPNCI.js → B55VO4LW.js} +1 -1
- package/dist/cdn/{JKLX623E.js → BIEIKUB2.js} +1 -1
- package/dist/cdn/{MXRMT4RB.js → BPSXK66S.js} +1 -1
- package/dist/cdn/BS22M3WT.js +2 -0
- package/dist/cdn/{MASQZEFU.js → BWDCDFXW.js} +1 -1
- package/dist/cdn/C25VFIND.js +2 -0
- package/dist/cdn/{UTFS3HNB.js → CWQZDXHH.js} +1 -1
- package/dist/cdn/CXVISA7Y.js +2 -0
- package/dist/cdn/{X7JEHH2B.js → D7UER3G6.js} +1 -1
- package/dist/cdn/{3W4NT367.js → DR7JKZAI.js} +1 -1
- package/dist/cdn/{AMZPSRIA.js → DY6SXW3X.js} +1 -1
- package/dist/cdn/{IMOAPVVW.js → ED7SQQHM.js} +1 -1
- package/dist/cdn/EFNE45MK.js +2 -0
- package/dist/cdn/{MUGKSK5F.js → EGK4PSW5.js} +1 -1
- package/dist/cdn/{YOYLPMEA.js → EJCQCHH7.js} +1 -1
- package/dist/cdn/{A22XLAKZ.js → ENCYKNKN.js} +1 -1
- package/dist/cdn/EY4MG3NU.js +2 -0
- package/dist/cdn/{Z22BRBT4.js → EZW5GK73.js} +1 -1
- package/dist/cdn/{MTNYIXZQ.js → FWEFFYYZ.js} +1 -1
- package/dist/cdn/{KVSU3DLB.js → G4QI7VSJ.js} +1 -1
- package/dist/cdn/{V4KATS7H.js → GEQ3EBJO.js} +1 -1
- package/dist/cdn/GLJVCFQW.js +2 -0
- package/dist/cdn/GNDNKP2Q.js +2 -0
- package/dist/cdn/H77SNVVI.js +2 -0
- package/dist/cdn/{FAOX7WLQ.js → HAUWZRL4.js} +1 -1
- package/dist/cdn/{FDGUUC3D.js → HBUNMGZ3.js} +1 -1
- package/dist/cdn/{R6D5F2V7.js → HFGDCX3I.js} +1 -1
- package/dist/cdn/{XDOFVA4S.js → HGRVTRR3.js} +1 -1
- package/dist/cdn/{WR6QBFCR.js → HHOMMC4H.js} +1 -1
- package/dist/cdn/{LGKOEBZ4.js → HUNZU2OF.js} +1 -1
- package/dist/cdn/{DFXECQ6Z.js → IFLPCKYL.js} +1 -1
- package/dist/cdn/{AYPT6VGV.js → IJP6ZKHZ.js} +1 -1
- package/dist/cdn/{Z3IVC2AV.js → IU4TJIME.js} +1 -1
- package/dist/cdn/J42TNDHM.js +2 -0
- package/dist/cdn/J4J65DN5.js +2 -0
- package/dist/cdn/{SYSNPKVM.js → K4R3HUW3.js} +1 -1
- package/dist/cdn/KBHLSIAR.js +2 -0
- package/dist/cdn/{FRI4RPRX.js → KKMGV3S6.js} +1 -1
- package/dist/cdn/{IOSK2I75.js → KUC6KV4R.js} +1 -1
- package/dist/cdn/{ED2GANBI.js → KVPLQQ75.js} +1 -1
- package/dist/cdn/{37APBABQ.js → KVRUYI63.js} +1 -1
- package/dist/cdn/MLQDQZZR.js +2 -0
- package/dist/cdn/{OVU2NGHU.js → MM6LZCYO.js} +1 -1
- package/dist/cdn/{MJCRT7H4.js → MQMNX7AM.js} +1 -1
- package/dist/cdn/N47CSPB7.js +2 -0
- package/dist/cdn/{RRHN2PDB.js → NAFJ5ZYO.js} +1 -1
- package/dist/cdn/{HXS3PD57.js → NIBBUVHR.js} +1 -1
- package/dist/cdn/NMIBGEIB.js +2 -0
- package/dist/cdn/{5HQ3O27G.js → NNSUCRNU.js} +1 -1
- package/dist/cdn/{ZZNRLKQQ.js → NT6RQTF7.js} +1 -1
- package/dist/cdn/O6ZRTXVO.js +2 -0
- package/dist/cdn/{7DA7BZM3.js → O75ZRZLS.js} +1 -1
- package/dist/cdn/{SXVCUXNL.js → OCFKSX5L.js} +1 -1
- package/dist/cdn/{6IZMIAV2.js → ODOOWGRW.js} +1 -1
- package/dist/cdn/{CAAZHUX4.js → OGOI7JTF.js} +1 -1
- package/dist/cdn/{FCNCDBSI.js → OO556Q5A.js} +1 -1
- package/dist/cdn/PGUOVY7V.js +2 -0
- package/dist/cdn/{GZNBU3BV.js → PJ3GHZ7T.js} +1 -1
- package/dist/cdn/PNXNTD3R.js +2 -0
- package/dist/cdn/{HXVXRVZW.js → PYD5GHXA.js} +1 -1
- package/dist/cdn/{CPDXUV3S.js → Q4EG6G7W.js} +1 -1
- package/dist/cdn/{7B4D4WJ2.js → Q52IY7SS.js} +1 -1
- package/dist/cdn/{S22OVJTO.js → QEPJF6TC.js} +2 -2
- package/dist/cdn/{P7U46JDU.js → QHZAKDI7.js} +1 -1
- package/dist/cdn/{SBPWZDAB.js → QIUVPLV2.js} +1 -1
- package/dist/cdn/{KKH2HVQW.js → QVTLP2LK.js} +1 -1
- package/dist/cdn/R3DLH5BB.js +2 -0
- package/dist/cdn/R5DGN3O6.js +2 -0
- package/dist/cdn/{LHJSBAM5.js → RGKOGN5W.js} +1 -1
- package/dist/cdn/{GM6FZWSL.js → RRNEZXM4.js} +1 -1
- package/dist/cdn/{YUJ33VWR.js → RU3YCR42.js} +1 -1
- package/dist/cdn/{TLAXB6HU.js → SF7SFEKA.js} +1 -1
- package/dist/cdn/SKOYS4HM.js +2 -0
- package/dist/cdn/{F7XISEIT.js → SP22KLIK.js} +1 -1
- package/dist/cdn/{HCJDTU7F.js → SVHI2LRC.js} +1 -1
- package/dist/cdn/{4MFRMO5M.js → T2MUZ4UN.js} +1 -1
- package/dist/cdn/{GAUJK4Z7.js → TAS3P2HU.js} +1 -1
- package/dist/cdn/{LRL6N22U.js → TBA5ATIB.js} +1 -1
- package/dist/cdn/{KNDQJ2XX.js → TW2SRS2O.js} +1 -1
- package/dist/cdn/{CDTY6WOM.js → TZFOTRCX.js} +1 -1
- package/dist/cdn/{5YROPSGB.js → UUHRTJGO.js} +1 -1
- package/dist/cdn/{QKUQGG2M.js → UVJ3XYK5.js} +1 -1
- package/dist/cdn/{7TEW7OYZ.js → UYYGQ6AY.js} +1 -1
- package/dist/cdn/V2PPBU7J.js +2 -0
- package/dist/cdn/{5WKPS2ZT.js → VB7GHJWK.js} +1 -1
- package/dist/cdn/VIMF6KPF.js +2 -0
- package/dist/cdn/{6NGWODBG.js → VYSJFEY6.js} +1 -1
- package/dist/cdn/WI7KEIGV.js +2 -0
- package/dist/cdn/WOJJ53FN.js +2 -0
- package/dist/cdn/WSRLM2TQ.js +2 -0
- package/dist/cdn/{GJE7FY35.js → X53XDNBL.js} +1 -1
- package/dist/cdn/{Q7WYXKFZ.js → XPXJW5E3.js} +1 -1
- package/dist/cdn/XXVIE4SD.js +2 -0
- package/dist/cdn/{RROGXGP5.js → Y5FMVLYP.js} +1 -1
- package/dist/cdn/{PS64W4X6.js → YBZVV5BN.js} +1 -1
- package/dist/cdn/{HYYJZO6T.js → YQOYGBGD.js} +1 -1
- package/dist/cdn/{3TCEXRVB.js → Z3B276DZ.js} +1 -1
- package/dist/cdn/Z6LSD6MR.js +2 -0
- package/dist/cdn/ZDZGWD2Y.js +2 -0
- package/dist/cdn/{2ZJ5ADD2.js → ZIKLLQSU.js} +1 -1
- package/dist/cdn/{QBLAE2O5.js → ZKCFISUX.js} +1 -1
- package/dist/cdn/{QOSBMGOZ.js → ZKPCUAN2.js} +1 -1
- package/dist/cdn/{XLGGANFA.js → ZPJ4FGXO.js} +1 -1
- package/dist/cdn/{YQY6DOSF.js → ZVFZSDLX.js} +1 -1
- package/dist/cdn/ZZ746O36.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +2 -3
- 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.js +4 -2
- 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 +3 -3
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- 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
|
@@ -3,13 +3,13 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, nothing, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
7
|
import { c as connectForm, d as disconnectForm, s as submitForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
7
8
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
8
9
|
import { d as decimalPlaces } from "../../chunks/math.js";
|
|
9
10
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
10
11
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
11
12
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
12
|
-
import { g as getElementDir } from "../../chunks/dom.js";
|
|
13
13
|
import { s as syncHiddenFormInput } from "../../chunks/input.js";
|
|
14
14
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
15
15
|
import { i as isValidNumber } from "../../chunks/locale.js";
|
|
@@ -49,6 +49,7 @@ class InputTimePicker extends LitElement {
|
|
|
49
49
|
super();
|
|
50
50
|
this.messages = useT9n();
|
|
51
51
|
this.containerRef = createRef();
|
|
52
|
+
this.direction = useDirection();
|
|
52
53
|
this.focusSetter = useSetFocus()(this);
|
|
53
54
|
this.fractionalSecondRef = createRef();
|
|
54
55
|
this.hourRef = createRef();
|
|
@@ -311,7 +312,7 @@ class InputTimePicker extends LitElement {
|
|
|
311
312
|
const showFractionalSecond = decimalPlaces(this.step) > 0;
|
|
312
313
|
const showMeridiem = hourFormat === "12";
|
|
313
314
|
const showSecond = this.step < 60;
|
|
314
|
-
const meridiemStart = meridiemOrder === 0 ||
|
|
315
|
+
const meridiemStart = meridiemOrder === 0 || this.direction === "rtl";
|
|
315
316
|
const isInteractive = !this.disabled && !this.readOnly;
|
|
316
317
|
return this.interactiveContainer({ disabled: this.disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div aria-controls=${IDS.inputContainer} aria-labelledby=${IDS.inputContainer} class=${safeClassMap({
|
|
317
318
|
[CSS.container]: true,
|
|
@@ -4,7 +4,7 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { literal, html as html$1 } from "lit/static-html.js";
|
|
5
5
|
import { LitElement, stringOrBoolean, safeClassMap, nothing } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
9
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
10
10
|
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline}:host a,:host button{position:relative;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:0;border-style:none;font-family:inherit;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none}:host a:hover,:host button:hover{text-decoration:none}:host a,:host button{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform,background-size;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;outline-color:transparent}:host a:focus,:host button: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))))}calcite-icon{inline-size:1em;block-size:1em;min-inline-size:unset;min-block-size:unset}.calcite-link--icon{vertical-align:middle;margin-block-start:-.25em}:host .calcite-link--icon.icon-start{margin-inline-end:.5rem}:host .calcite-link--icon.icon-end{margin-inline-start:.5rem}:host button,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;color:var(--calcite-link-text-color, var(--calcite-color-text-link));line-height:inherit;white-space:initial;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px}:host button:hover,:host button:focus,:host a:hover,:host a:focus{background-size:100% 1px,100% 1px}:host button:active,:host a:active{background-size:100% 2px,100% 2px}:host button.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%,100% 100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
@@ -17,6 +17,7 @@ class Link extends LitElement {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super();
|
|
19
19
|
this.childRef = createRef();
|
|
20
|
+
this.direction = useDirection();
|
|
20
21
|
this.focusSetter = useSetFocus()(this);
|
|
21
22
|
this.interactiveContainer = useInteractive(this);
|
|
22
23
|
this.disabled = false;
|
|
@@ -46,8 +47,8 @@ class Link extends LitElement {
|
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
render() {
|
|
49
|
-
const { download
|
|
50
|
-
const dir =
|
|
50
|
+
const { download } = this;
|
|
51
|
+
const dir = this.direction;
|
|
51
52
|
const childElType = this.href ? "a" : "button";
|
|
52
53
|
const iconStartEl = html`<calcite-icon class=${safeClassMap({ [CSS.calciteLinkIcon]: true, [CSS.iconStart]: true })} .flipRtl=${this.iconFlipRtl === "start" || this.iconFlipRtl === "both"} .icon=${this.iconStart} scale=s></calcite-icon>`;
|
|
53
54
|
const iconEndEl = html`<calcite-icon class=${safeClassMap({ [CSS.calciteLinkIcon]: true, [CSS.iconEnd]: true })} .flipRtl=${this.iconFlipRtl === "end" || this.iconFlipRtl === "both"} .icon=${this.iconEnd} scale=s></calcite-icon>`;
|
|
@@ -5,7 +5,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
5
5
|
import { debounce } from "es-toolkit";
|
|
6
6
|
import { css, html } from "lit";
|
|
7
7
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { m as slotChangeHasContent, s as slotChangeHasAssignedElement, e as getRootNode } from "../../chunks/dom.js";
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { l as listItemSelector, i as isListItem, a as listSelector, u as updateListItemChildren, b as listItemGroupSelector, e as expandedAncestors } from "../../chunks/utils4.js";
|
|
11
11
|
import { d as disconnectSortableComponent, c as connectSortableComponent } from "../../chunks/sortableComponent.js";
|
|
@@ -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 } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { s as slotChangeHasAssignedElement, u as getFirstTabbable } from "../../chunks/dom.js";
|
|
8
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
9
10
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
10
11
|
import { l as logger } from "../../chunks/logger.js";
|
|
@@ -23,6 +24,7 @@ class ListItem extends LitElement {
|
|
|
23
24
|
this.containerRef = createRef();
|
|
24
25
|
this.contentRef = createRef();
|
|
25
26
|
this.defaultSlotRef = createRef();
|
|
27
|
+
this.direction = useDirection();
|
|
26
28
|
this.handleGridRef = createRef();
|
|
27
29
|
this.messages = useT9n();
|
|
28
30
|
this.focusSetter = useSetFocus()(this);
|
|
@@ -375,11 +377,11 @@ class ListItem extends LitElement {
|
|
|
375
377
|
return dragHandle ? keyed("drag-handle-container", html`<div .ariaLabel=${label} class=${safeClassMap({ [CSS.dragContainer]: true, [CSS.gridCell]: true })} role=gridcell ${ref(this.handleGridRef)}><calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle></div>`) : null;
|
|
376
378
|
}
|
|
377
379
|
renderExpanded() {
|
|
378
|
-
const {
|
|
380
|
+
const { expanded, expandable, messages, displayMode, scale } = this;
|
|
379
381
|
if (displayMode !== "nested") {
|
|
380
382
|
return null;
|
|
381
383
|
}
|
|
382
|
-
const dir =
|
|
384
|
+
const dir = this.direction;
|
|
383
385
|
const icon = expandable ? expanded ? ICONS.open : dir === "rtl" ? ICONS.collapsedRTL : ICONS.collapsedLTR : ICONS.blank;
|
|
384
386
|
const iconScale = getIconScale(scale);
|
|
385
387
|
const tooltip = expandable ? expanded ? messages.collapse : messages.expand : void 0;
|
|
@@ -3,7 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement } from "@arcgis/lumina";
|
|
5
5
|
import { useWatchAttributes } from "@arcgis/lumina/controllers";
|
|
6
|
-
import { f as focusElementInGroup,
|
|
6
|
+
import { f as focusElementInGroup, a as slotChangeGetAssignedElements, i as focusElement } from "../../chunks/dom.js";
|
|
7
7
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
8
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
9
9
|
const styles = css`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
@@ -4,7 +4,8 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { keyed } from "lit/directives/keyed.js";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
9
10
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
10
11
|
const CSS = {
|
|
@@ -42,6 +43,7 @@ class MenuItem extends LitElement {
|
|
|
42
43
|
constructor() {
|
|
43
44
|
super();
|
|
44
45
|
this.anchorRef = createRef();
|
|
46
|
+
this.direction = useDirection();
|
|
45
47
|
this.dropdownActionRef = createRef();
|
|
46
48
|
this.messages = useT9n();
|
|
47
49
|
this.focusSetter = useSetFocus()(this);
|
|
@@ -193,7 +195,7 @@ class MenuItem extends LitElement {
|
|
|
193
195
|
return html`${this.iconStart && this.renderIconStart() || ""}<div class=${safeClassMap(CSS.textContainer)}><span>${this.text}</span></div>${hasHref && this.renderHrefIcon(dir) || ""}${this.iconEnd && this.renderIconEnd() || ""}${this.breadcrumb ? this.renderBreadcrumbIcon(dir) : null}${!this.href && this.hasSubmenu ? this.renderDropdownIcon(dir) : null}`;
|
|
194
196
|
}
|
|
195
197
|
render() {
|
|
196
|
-
const dir =
|
|
198
|
+
const dir = this.direction;
|
|
197
199
|
return html`<li class=${safeClassMap({
|
|
198
200
|
[CSS.container]: true,
|
|
199
201
|
[CSS.isParentVertical]: this.topLevelMenuLayout === "vertical"
|
|
@@ -6,7 +6,7 @@ import { createRef, ref } from "lit/directives/ref.js";
|
|
|
6
6
|
import { LitElement, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
7
7
|
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm } from "../../chunks/form.js";
|
|
8
8
|
import { n as numberStringFormatter } from "../../chunks/locale.js";
|
|
9
|
-
import {
|
|
9
|
+
import { v as intersects } 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 CSS = {
|
|
@@ -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, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
6
|
+
import { b as setRequestedIcon, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
7
7
|
import { K as KindIcons, a as KindIconsFilled } from "../../chunks/resources4.js";
|
|
8
8
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
9
9
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
@@ -12,8 +12,8 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
12
12
|
* @cssproperty [--calcite-panel-description-text-color] - Specifies the text color of the component's `description`.
|
|
13
13
|
* @cssproperty [--calcite-panel-border-color] - Specifies the component's border color.
|
|
14
14
|
* @cssproperty [--calcite-panel-background-color] - Specifies the component's background color.
|
|
15
|
-
* @cssproperty [--calcite-panel-content-top-space] - Specifies the padding of the `
|
|
16
|
-
* @cssproperty [--calcite-panel-content-bottom-space] - Specifies the padding of the `
|
|
15
|
+
* @cssproperty [--calcite-panel-content-top-space] - Specifies the padding of the component's `content-top` slot.
|
|
16
|
+
* @cssproperty [--calcite-panel-content-bottom-space] - Specifies the padding of the component's `content-bottom` slot.
|
|
17
17
|
* @cssproperty [--calcite-panel-header-background-color] - Specifies the background color of the component's header.
|
|
18
18
|
* @cssproperty [--calcite-panel-header-action-background-color] - Specifies the background color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions`.
|
|
19
19
|
* @cssproperty [--calcite-panel-header-action-background-color-hover] - Specifies the background color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when hovered.
|
|
@@ -21,8 +21,8 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
21
21
|
* @cssproperty [--calcite-panel-header-action-text-color] - Specifies the text color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions`.
|
|
22
22
|
* @cssproperty [--calcite-panel-header-action-text-color-press] - Specifies the text color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when pressed or hovered.
|
|
23
23
|
* @cssproperty [--calcite-panel-footer-background-color] - Specifies the background color of the component's footer.
|
|
24
|
-
* @cssproperty [--calcite-panel-space] - Specifies the padding of the component's `
|
|
25
|
-
* @cssproperty [--calcite-panel-header-content-space] - Specifies the padding of the `
|
|
24
|
+
* @cssproperty [--calcite-panel-space] - Specifies the padding of the component's `unnamed (default)` slot.
|
|
25
|
+
* @cssproperty [--calcite-panel-header-content-space] - Specifies the padding of the component's `header-content` slot.
|
|
26
26
|
* @cssproperty [--calcite-panel-footer-space] - Specifies the padding of the component's footer.
|
|
27
27
|
* @cssproperty [--calcite-popover-border-color] - Specifies the border color of the component's internally rendered `calcite-popover`, which is rendered within a `calcite-action` menu when slotted `calcite-action`s are present in the `header-actions-end` slot. Applies to any slotted `calcite-popover`s.
|
|
28
28
|
* @cssproperty [--calcite-panel-content-space] - [Deprecated] Use `--calcite-panel-space` instead. Specifies the padding of the component's content.
|
|
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import { s as slotChangeHasAssignedElement,
|
|
7
|
+
import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
9
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { S as SLOTS$1 } from "../../chunks/resources2.js";
|
|
@@ -4,8 +4,9 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap, setAttribute } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
7
8
|
import { e as defaultOffsetDistance, r as reposition, a as disconnectFloatingUI, f as filterValidFlipPlacements, c as connectFloatingUI, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
8
|
-
import {
|
|
9
|
+
import { j as isPrimaryPointerButton, x as isKeyboardTriggeredClick, q as queryElementRoots } from "../../chunks/dom.js";
|
|
9
10
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
10
11
|
import { g as guid } from "../../chunks/guid.js";
|
|
11
12
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
@@ -129,6 +130,7 @@ const manager = new PopoverManager();
|
|
|
129
130
|
class Popover extends LitElement {
|
|
130
131
|
constructor() {
|
|
131
132
|
super(...arguments);
|
|
133
|
+
this.direction = useDirection();
|
|
132
134
|
this.focusTrap = useFocusTrap({
|
|
133
135
|
triggerProp: "open",
|
|
134
136
|
focusTrapOptions: {
|
|
@@ -181,6 +183,7 @@ class Popover extends LitElement {
|
|
|
181
183
|
async reposition(delayed = false) {
|
|
182
184
|
const { referenceEl, placement, overlayPositioning, flipDisabled, filteredFlipPlacements, offsetDistance, offsetSkidding, arrowEl, floatingEl } = this;
|
|
183
185
|
return reposition(this, {
|
|
186
|
+
direction: this.direction,
|
|
184
187
|
floatingEl,
|
|
185
188
|
referenceEl,
|
|
186
189
|
overlayPositioning,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
6
|
const styles = css`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media(forced-colors:active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
7
7
|
const CSS = {
|
|
8
8
|
track: "track",
|
|
@@ -12,6 +12,7 @@ const CSS = {
|
|
|
12
12
|
class Progress extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
+
this.direction = useDirection();
|
|
15
16
|
this.reversed = false;
|
|
16
17
|
this.type = "determinate";
|
|
17
18
|
this.value = 0;
|
|
@@ -25,7 +26,7 @@ class Progress extends LitElement {
|
|
|
25
26
|
render() {
|
|
26
27
|
const isDeterminate = this.type === "determinate";
|
|
27
28
|
const barStyles = isDeterminate ? { width: `${this.value}%` } : {};
|
|
28
|
-
const dir =
|
|
29
|
+
const dir = this.direction;
|
|
29
30
|
return html`<div .ariaLabel=${this.label || this.text} .ariaValueMax=${isDeterminate ? "100" : void 0} .ariaValueMin=${isDeterminate ? "0" : void 0} .ariaValueNow=${isDeterminate ? this.value : void 0} role=progressbar><div class=${safeClassMap(CSS.track)}><div class=${safeClassMap({
|
|
30
31
|
[CSS.bar]: true,
|
|
31
32
|
indeterminate: this.type === "indeterminate",
|
|
@@ -3,8 +3,8 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, nothing, 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 { g as getRoundRobinIndex } from "../../chunks/array.js";
|
|
7
|
-
import { g as getElementDir } from "../../chunks/dom.js";
|
|
8
8
|
import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
9
9
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
10
10
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
@@ -19,6 +19,7 @@ class RadioButton extends LitElement {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super();
|
|
21
21
|
this.containerRef = createRef();
|
|
22
|
+
this.direction = useDirection();
|
|
22
23
|
this.focusSetter = useSetFocus()(this);
|
|
23
24
|
this.interactiveContainer = useInteractive(this);
|
|
24
25
|
this.checked = false;
|
|
@@ -196,7 +197,6 @@ class RadioButton extends LitElement {
|
|
|
196
197
|
handleKeyDown(event) {
|
|
197
198
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
198
199
|
const { key } = event;
|
|
199
|
-
const { el } = this;
|
|
200
200
|
if (keys.indexOf(key) === -1) {
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
@@ -206,7 +206,7 @@ class RadioButton extends LitElement {
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
let adjustedKey = key;
|
|
209
|
-
if (
|
|
209
|
+
if (this.direction === "rtl") {
|
|
210
210
|
if (key === "ArrowRight") {
|
|
211
211
|
adjustedKey = "ArrowLeft";
|
|
212
212
|
}
|
|
@@ -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 { m as slotChangeHasContent } from "../../chunks/dom.js";
|
|
8
8
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
9
9
|
const CSS = {
|
|
10
10
|
scrim: "scrim",
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, isServer, nothing, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
6
7
|
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
|
|
7
8
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
8
9
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
@@ -20,6 +21,7 @@ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;use
|
|
|
20
21
|
class SegmentedControl extends LitElement {
|
|
21
22
|
constructor() {
|
|
22
23
|
super();
|
|
24
|
+
this.direction = useDirection();
|
|
23
25
|
this.items = [];
|
|
24
26
|
this.messages = useT9n();
|
|
25
27
|
this.focusSetter = useSetFocus()(this);
|
|
@@ -119,12 +121,12 @@ class SegmentedControl extends LitElement {
|
|
|
119
121
|
handleKeyDown(event) {
|
|
120
122
|
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
121
123
|
const { key } = event;
|
|
122
|
-
const {
|
|
124
|
+
const { selectedItem } = this;
|
|
123
125
|
if (keys.indexOf(key) === -1) {
|
|
124
126
|
return;
|
|
125
127
|
}
|
|
126
128
|
let adjustedKey = key;
|
|
127
|
-
if (
|
|
129
|
+
if (this.direction === "rtl") {
|
|
128
130
|
if (key === "ArrowRight") {
|
|
129
131
|
adjustedKey = "ArrowLeft";
|
|
130
132
|
}
|
|
@@ -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 { m as slotChangeHasContent } from "../../chunks/dom.js";
|
|
6
6
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
const SLOTS = {
|
|
8
8
|
input: "input"
|
|
@@ -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();
|