@esri/calcite-components 6.0.0-next.56 → 6.0.0-next.58
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/THIRD-PARTY-NOTICES.md +25 -25
- package/dist/cdn/{UIVDNEEG.js → 262BHZPX.js} +1 -1
- package/dist/cdn/2KSSNEHL.js +2 -0
- package/dist/cdn/{LQH6WHIU.js → 2UH3OMBW.js} +1 -1
- package/dist/cdn/{KKRAQED3.js → 2UQKII64.js} +1 -1
- package/dist/cdn/{CXI2QIU3.js → 2URIWMCR.js} +1 -1
- package/dist/cdn/{2Q5MUUJN.js → 2YQPHIXA.js} +1 -1
- package/dist/cdn/{2RA7A2TQ.js → 3G2SC2S3.js} +1 -1
- package/dist/cdn/{JNNC5DG5.js → 3KA5AK3Z.js} +1 -1
- package/dist/cdn/{GTKKHOEO.js → 4HAMZSNT.js} +1 -1
- package/dist/cdn/4HYVPSXV.js +2 -0
- package/dist/cdn/{LMFURA5R.js → 4JHTF5DV.js} +1 -1
- package/dist/cdn/4YPHFKUF.js +2 -0
- package/dist/cdn/{IDDIQIBU.js → 5EPJVJRZ.js} +1 -1
- package/dist/cdn/5KIYA3IZ.js +2 -0
- package/dist/cdn/{X5J4ZNU6.js → 64ZLUEWK.js} +1 -1
- package/dist/cdn/{MCXI4WUS.js → 67TTPSK7.js} +1 -1
- package/dist/cdn/{CLWDSEIV.js → 6JK57F7Z.js} +1 -1
- package/dist/cdn/{D75B3L7X.js → 6LHB5RGN.js} +1 -1
- package/dist/cdn/6NFZFTHW.js +2 -0
- package/dist/cdn/{BKKTO6AH.js → 72LA67LQ.js} +1 -1
- package/dist/cdn/{SZ3DGRMT.js → 7FBHH5E4.js} +1 -1
- package/dist/cdn/{QCQTO3WO.js → 7N3CA5JL.js} +1 -1
- package/dist/cdn/{VGEYIES5.js → 7VCCZFWX.js} +1 -1
- package/dist/cdn/{K6USGLDX.js → A4EWYVRJ.js} +1 -1
- package/dist/cdn/{YVK4FAAQ.js → A4YJHKLW.js} +1 -1
- package/dist/cdn/{R4EU5AGW.js → A5UKONLR.js} +1 -1
- package/dist/cdn/{4IKIZQG5.js → AA7MKCMW.js} +1 -1
- package/dist/cdn/{Q3L3RVAR.js → ADXIUYJP.js} +1 -1
- package/dist/cdn/AIYI4KLT.js +2 -0
- package/dist/cdn/{X5HE2EGX.js → AJX6FSDA.js} +1 -1
- package/dist/cdn/{NXVIOLHC.js → AP5EMLZT.js} +1 -1
- package/dist/cdn/{ZB2E7CSN.js → APDB2R5F.js} +1 -1
- package/dist/cdn/{TEXAGBJG.js → B5O7D4DU.js} +1 -1
- package/dist/cdn/{DGDEGFK2.js → B6HBT6MV.js} +1 -1
- package/dist/cdn/BBG67UBB.js +2 -0
- package/dist/cdn/BBJ5QQZI.js +2 -0
- package/dist/cdn/{IBBPIG5R.js → BJT42FVC.js} +1 -1
- package/dist/cdn/{CYIJUF45.js → BQ7YJ3PF.js} +1 -1
- package/dist/cdn/{MW5XU2BP.js → BUWKJ72Y.js} +1 -1
- package/dist/cdn/{HPEOY25W.js → BXX3MHWH.js} +1 -1
- package/dist/cdn/{FPZYVCR5.js → CCLG3D7E.js} +1 -1
- package/dist/cdn/{WHEVMBOL.js → CPOKYX36.js} +1 -1
- package/dist/cdn/{UJ4PDVXW.js → DIMR4ISD.js} +1 -1
- package/dist/cdn/{WZZ532R7.js → DM3R3RDU.js} +1 -1
- package/dist/cdn/{BSDHVKNU.js → DO4KVY7Y.js} +1 -1
- package/dist/cdn/DQB3JHBX.js +2 -0
- package/dist/cdn/{F4LZYMSJ.js → DQHDLIOQ.js} +1 -1
- package/dist/cdn/{NXMPPV3D.js → DWBAUY2O.js} +1 -1
- package/dist/cdn/{LWKJSNCY.js → E67S3W5F.js} +1 -1
- package/dist/cdn/E6AGZFV5.js +2 -0
- package/dist/cdn/EBOARSV6.js +2 -0
- package/dist/cdn/{SJEAMB5O.js → EFV73TUW.js} +1 -1
- package/dist/cdn/{RSMT2DFP.js → EZFMLSIV.js} +1 -1
- package/dist/cdn/{3Q27245E.js → F2XZNM7I.js} +1 -1
- package/dist/cdn/{LW5XCA4E.js → F5KY6RC2.js} +1 -1
- package/dist/cdn/{NLN5R22S.js → F5WL6J5S.js} +1 -1
- package/dist/cdn/FNCNJH35.js +2 -0
- package/dist/cdn/{LHPVX5T3.js → FNZXA44J.js} +1 -1
- package/dist/cdn/{KALCVARG.js → GBLGTHFD.js} +1 -1
- package/dist/cdn/{COEXZSGL.js → GI6KFZMW.js} +1 -1
- package/dist/cdn/GJJEZYW5.js +2 -0
- package/dist/cdn/{4RQTCQC6.js → H6EOTDA3.js} +1 -1
- package/dist/cdn/{HTXLYAMX.js → H7YF2IMU.js} +1 -1
- package/dist/cdn/{OB25XPRX.js → HCBKDKAE.js} +1 -1
- package/dist/cdn/{CZIKULZW.js → IE2QNZEU.js} +1 -1
- package/dist/cdn/{6LVQWWFF.js → IIPTVCUW.js} +1 -1
- package/dist/cdn/{GT6RVEAO.js → IVAVBCGO.js} +1 -1
- package/dist/cdn/{SCFOUBMA.js → JCGGZNRY.js} +1 -1
- package/dist/cdn/{UMTK4B3R.js → JGNRWRFC.js} +1 -1
- package/dist/cdn/JLWOFZ3U.js +2 -0
- package/dist/cdn/{NNBQ4QCY.js → JMK4MVYV.js} +1 -1
- package/dist/cdn/{2MHWSQMP.js → JTB7EZBF.js} +1 -1
- package/dist/cdn/{KCOIYEAT.js → K4U6BMUF.js} +1 -1
- package/dist/cdn/KTDRSKJ6.js +2 -0
- package/dist/cdn/{4LPCAOP3.js → KW7LDRSU.js} +1 -1
- package/dist/cdn/{N6XXW6VX.js → LDRFCBQX.js} +1 -1
- package/dist/cdn/{DUBLDU5A.js → LFBR5CPK.js} +1 -1
- package/dist/cdn/LJMRBALT.js +2 -0
- package/dist/cdn/{G3SWXEXO.js → LKN4LUNT.js} +1 -1
- package/dist/cdn/{D7WBWJMQ.js → LRZX3WFC.js} +1 -1
- package/dist/cdn/{7GVADUMM.js → LX5MRNZ6.js} +1 -1
- package/dist/cdn/MC5XM5AE.js +2 -0
- package/dist/cdn/{D6XACLVY.js → MHGHUSWD.js} +1 -1
- package/dist/cdn/{QPTSBZDV.js → MLSWUVXY.js} +1 -1
- package/dist/cdn/{PUMDU637.js → MPGHVV7O.js} +1 -1
- package/dist/cdn/{OQQ4WIQT.js → MVXVRV3L.js} +1 -1
- package/dist/cdn/{KC4ZVNSV.js → N3BEKA6Y.js} +1 -1
- package/dist/cdn/N7S7RVBB.js +2 -0
- package/dist/cdn/{OOHMQLRZ.js → N7WEIKWP.js} +1 -1
- package/dist/cdn/{YX7JAWEO.js → NQJXCAZC.js} +1 -1
- package/dist/cdn/{K36EGHOF.js → OQFWYTZR.js} +1 -1
- package/dist/cdn/{4EDPY25E.js → ORZC3SG4.js} +1 -1
- package/dist/cdn/{WUGFIAFX.js → P772V265.js} +1 -1
- package/dist/cdn/{PGCODIXQ.js → PKF4PCC3.js} +1 -1
- package/dist/cdn/{KSN5UAE2.js → PRVIXJ7V.js} +1 -1
- package/dist/cdn/{FH4YE5OG.js → Q7PRU56L.js} +1 -1
- package/dist/cdn/{DFTDOHMC.js → QDM2OPV6.js} +1 -1
- package/dist/cdn/{BRZV2V7Q.js → QPV4XZH2.js} +1 -1
- package/dist/cdn/{BEM5ABJU.js → QW3GDUOM.js} +1 -1
- package/dist/cdn/{B2DHET4K.js → QY2AFC2Q.js} +1 -1
- package/dist/cdn/{VGM25LYH.js → R3JESRUS.js} +1 -1
- package/dist/cdn/{XP4JU5TP.js → R3OB5AED.js} +1 -1
- package/dist/cdn/{2F6MZ64P.js → ROAXTH4J.js} +1 -1
- package/dist/cdn/{2WHTGZQS.js → RQ6KOELW.js} +1 -1
- package/dist/cdn/{U4RM5WFK.js → RSNJIGRT.js} +1 -1
- package/dist/cdn/{CYP7WL6D.js → RYDDFBP3.js} +1 -1
- package/dist/cdn/{VGN5GA67.js → SBQGT5X3.js} +1 -1
- package/dist/cdn/{VIGRVDJI.js → SGRUHNSM.js} +1 -1
- package/dist/cdn/{P4P5LYS7.js → SVWITGRF.js} +1 -1
- package/dist/cdn/{6CYN63JK.js → T2JUGBD5.js} +1 -1
- package/dist/cdn/T6MIIDHZ.js +2 -0
- package/dist/cdn/{SO3YVK5K.js → TG4HJT6M.js} +1 -1
- package/dist/cdn/{KCPJKURU.js → TOFY2INI.js} +1 -1
- package/dist/cdn/{RRONJTJD.js → U7NXNZOA.js} +1 -1
- package/dist/cdn/{CVIE5I57.js → UHWJB7QE.js} +1 -1
- package/dist/cdn/{6AJKSTOE.js → ULL6GPKV.js} +1 -1
- package/dist/cdn/{TIJQXEQL.js → UOYYONEV.js} +1 -1
- package/dist/cdn/{MZC6ZGYX.js → UQA4IJMM.js} +1 -1
- package/dist/cdn/{P6JMXGFH.js → VBKJL7VE.js} +1 -1
- package/dist/cdn/{EIIH2WMW.js → VGDMUJGD.js} +1 -1
- package/dist/cdn/{APQDAA5X.js → VGI5FR3H.js} +1 -1
- package/dist/cdn/{NKLO6TEA.js → VTE67UUL.js} +1 -1
- package/dist/cdn/{EJSUPVR5.js → VULUCOIA.js} +1 -1
- package/dist/cdn/{QFL3O6X7.js → W27GBIB7.js} +1 -1
- package/dist/cdn/{ZFOWVHHV.js → WDJZ44LL.js} +1 -1
- package/dist/cdn/{5LLPOL76.js → WQK6BEDO.js} +1 -1
- package/dist/cdn/{4SCKG4H2.js → X5AAH2CE.js} +1 -1
- package/dist/cdn/{DEKCVIAW.js → XP5LP6D2.js} +1 -1
- package/dist/cdn/{MFEOJYWD.js → Y3B6YAGD.js} +1 -1
- package/dist/cdn/Y3ZFMXH6.js +2 -0
- package/dist/cdn/{MOY7GOGB.js → YE5HVMTC.js} +1 -1
- package/dist/cdn/{RCDCROAN.js → YGWIVXHL.js} +1 -1
- package/dist/cdn/{RPEFLNLK.js → YQPYWC2S.js} +1 -1
- package/dist/cdn/YRBFOBYN.js +2 -0
- package/dist/cdn/{WZAXRAXI.js → YRVGR3HM.js} +1 -1
- package/dist/cdn/{FGK3PS7J.js → YVEJTF76.js} +1 -1
- package/dist/cdn/Z6XAMJUJ.js +2 -0
- package/dist/cdn/{ITL2TCG2.js → ZBVXUCQY.js} +1 -1
- package/dist/cdn/ZN5NDQPK.js +2 -0
- package/dist/cdn/ZPQKTCJJ.js +2 -0
- package/dist/cdn/{6IMN7K3V.js → ZROAP4OW.js} +1 -1
- package/dist/cdn/ZV5ABNHG.js +2 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/resources23.js +2 -2
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useInlineEdit.js +37 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +3 -30
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.js +4 -1
- package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.d.ts +1 -14
- package/dist/components/calcite-block-section/customElement.js +7 -34
- package/dist/components/calcite-combobox/customElement.js +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-dropdown/customElement.d.ts +0 -6
- package/dist/components/calcite-dropdown/customElement.js +2 -2
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-field-group/customElement.js +114 -0
- package/dist/components/calcite-field-group/index.js +1 -0
- package/dist/components/calcite-field-set/customElement.js +33 -0
- package/dist/components/calcite-field-set/index.js +1 -0
- package/dist/components/calcite-input/customElement.js +21 -6
- package/dist/components/calcite-input-number/customElement.js +21 -6
- package/dist/components/calcite-input-text/customElement.js +12 -5
- package/dist/components/calcite-list-item/customElement.d.ts +0 -7
- package/dist/components/calcite-list-item/customElement.js +2 -14
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.d.ts +0 -14
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-segmented-control/customElement.d.ts +7 -8
- package/dist/components/calcite-segmented-control/customElement.js +5 -5
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +2 -0
- package/dist/components/calcite-segmented-control-item/customElement.js +4 -4
- package/dist/components/calcite-sheet/customElement.d.ts +4 -10
- package/dist/components/calcite-sheet/customElement.js +5 -5
- package/dist/components/calcite-sort-handle/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.d.ts +1 -17
- package/dist/components/calcite-tile/customElement.js +2 -4
- package/dist/components/calcite-tooltip/customElement.d.ts +0 -6
- package/dist/components/calcite-tooltip/customElement.js +2 -3
- package/dist/components/types.d.ts +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.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 +14 -12
- package/dist/types/lumina.d.ts +8 -8
- package/dist/types/preact.d.ts +8 -8
- package/dist/types/react.d.ts +8 -8
- package/dist/types/stencil.d.ts +8 -8
- package/package.json +3 -3
- package/dist/cdn/3T7XLOQ4.js +0 -2
- package/dist/cdn/5MVWIHDQ.js +0 -2
- package/dist/cdn/5R74WSRK.js +0 -2
- package/dist/cdn/5WA27XIF.js +0 -2
- package/dist/cdn/5YACCUIX.js +0 -2
- package/dist/cdn/6O654SMC.js +0 -2
- package/dist/cdn/6YXLU42B.js +0 -2
- package/dist/cdn/7ABZMJV3.js +0 -2
- package/dist/cdn/CAPIYBUC.js +0 -2
- package/dist/cdn/CQ4IJ5IA.js +0 -2
- package/dist/cdn/E2HRYV6U.js +0 -2
- package/dist/cdn/FNGAD4GO.js +0 -2
- package/dist/cdn/FOJ5LIZR.js +0 -2
- package/dist/cdn/GHSGH4LV.js +0 -2
- package/dist/cdn/H5GROX4R.js +0 -2
- package/dist/cdn/HPR2O65L.js +0 -2
- package/dist/cdn/RFBRZVDJ.js +0 -2
- package/dist/cdn/RXGMB6OY.js +0 -2
- package/dist/cdn/TDDPJB35.js +0 -2
- package/dist/cdn/TINQCGW6.js +0 -2
- package/dist/cdn/U6OXWZGM.js +0 -2
- package/dist/cdn/WXEHJNOX.js +0 -2
- package/dist/cdn/XFNS3WFN.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed } from "lit/directives/keyed.js";
|
|
4
4
|
import { isEqual } from "es-toolkit";
|
|
5
5
|
import { css, html, nothing } from "lit";
|
|
@@ -73,23 +73,11 @@ class ListItem extends LitElement {
|
|
|
73
73
|
this.listen("calciteInternalListDefaultSlotChange", this.handleCalciteInternalListDefaultSlotChanges);
|
|
74
74
|
}
|
|
75
75
|
static {
|
|
76
|
-
this.properties = { hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], hasContentBottom: [16, {}, { state: true }], hasContentEnd: [16, {}, { state: true }], hasContentStart: [16, {}, { state: true }], hasCustomContent: [16, {}, { state: true }], level: [16, {}, { state: true }], expandable: [16, {}, { state: true }], parentListEl: [16, {}, { state: true }], active: [5, {}, { type: Boolean }], bordered: [5, {}, { type: Boolean }], sortDisabled: [5, {}, { type: Boolean }], closable: [7, {}, { reflect: true, type: Boolean }], closed: [7, {}, { reflect: true, type: Boolean }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], dragDisabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], filterHidden: [7, {}, { reflect: true, type: Boolean }], interactionMode: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], metadata: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], addToItems: [0, {}, { attribute: false }], moveToItems: [0, {}, { attribute: false }],
|
|
76
|
+
this.properties = { hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], hasContentBottom: [16, {}, { state: true }], hasContentEnd: [16, {}, { state: true }], hasContentStart: [16, {}, { state: true }], hasCustomContent: [16, {}, { state: true }], level: [16, {}, { state: true }], expandable: [16, {}, { state: true }], parentListEl: [16, {}, { state: true }], active: [5, {}, { type: Boolean }], bordered: [5, {}, { type: Boolean }], sortDisabled: [5, {}, { type: Boolean }], closable: [7, {}, { reflect: true, type: Boolean }], closed: [7, {}, { reflect: true, type: Boolean }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], dragDisabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], filterHidden: [7, {}, { reflect: true, type: Boolean }], interactionMode: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], metadata: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], addToItems: [0, {}, { attribute: false }], moveToItems: [0, {}, { attribute: false }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], setPosition: [9, {}, { type: Number }], setSize: [9, {}, { type: Number }], sortHandleOpen: [7, {}, { reflect: true, type: Boolean }], unavailable: [7, {}, { reflect: true, type: Boolean }], value: 1, iconStart: [3, {}, { reflect: true }], iconEnd: [3, {}, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
77
77
|
}
|
|
78
78
|
static {
|
|
79
79
|
this.styles = [styles, styles$1];
|
|
80
80
|
}
|
|
81
|
-
get open() {
|
|
82
|
-
return this.expanded;
|
|
83
|
-
}
|
|
84
|
-
set open(value) {
|
|
85
|
-
logger.deprecated("property", {
|
|
86
|
-
component: this,
|
|
87
|
-
name: "open",
|
|
88
|
-
removalVersion: 5,
|
|
89
|
-
suggested: "expanded"
|
|
90
|
-
});
|
|
91
|
-
this.expanded = value;
|
|
92
|
-
}
|
|
93
81
|
async setFocus(options) {
|
|
94
82
|
return this.focusSetter(() => {
|
|
95
83
|
const { containerRef, parentListEl } = this;
|
|
@@ -4,7 +4,7 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { M as MAX_COLUMNS, C as CSS } from "../../chunks/resources34.js";
|
|
6
6
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
7
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}:host([filter-hidden]){display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}.container{margin:var(--calcite-space-none);display:flex;flex:1 1 0%;position:sticky;inset-block-start:var(--calcite-internal-filter-enabled-offset, 0);z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-list-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));color:var(--calcite-list-color, var(--calcite-color-text-1))}.heading{font-weight:var(--calcite-font-weight-
|
|
7
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}:host([filter-hidden]){display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}.container{margin:var(--calcite-space-none);display:flex;flex:1 1 0%;position:sticky;inset-block-start:var(--calcite-internal-filter-enabled-offset, 0);z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-list-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));color:var(--calcite-list-color, var(--calcite-color-text-1))}.heading{font-weight:var(--calcite-font-weight-semibold)}:host([scale=s]) .container{padding-inline:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-theme-space-sm, var(--calcite-spacing-sm)) var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]:not(:first-child)) .container{padding-block-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .container{padding-inline:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=m]) .heading{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-theme-space-lg, var(--calcite-spacing-lg)) var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]:not(:first-child)) .container{padding-block-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .container{padding-inline:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg);padding-block:var(--calcite-theme-space-xl, var(--calcite-spacing-xl)) var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus, .625rem))}:host([scale=l]:not(:first-child)) .container{padding-block-start:var(--calcite-theme-space-md-plus, var(--calcite-spacing-md-plus, .875rem))}.heading{padding:var(--calcite-space-none)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
8
8
|
class ListItemGroup extends LitElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
@@ -45,12 +45,6 @@ export abstract class Meter extends LitElement {
|
|
|
45
45
|
* @default "range"
|
|
46
46
|
*/
|
|
47
47
|
accessor fillType: MeterFillType;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists.
|
|
50
|
-
*
|
|
51
|
-
* @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
|
|
52
|
-
*/
|
|
53
|
-
accessor form: string | undefined;
|
|
54
48
|
/**
|
|
55
49
|
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
56
50
|
*
|
|
@@ -79,14 +73,6 @@ export abstract class Meter extends LitElement {
|
|
|
79
73
|
* @default 0
|
|
80
74
|
*/
|
|
81
75
|
accessor min: number;
|
|
82
|
-
/**
|
|
83
|
-
* Specifies the name of the component.
|
|
84
|
-
*
|
|
85
|
-
* Required to pass the component's `value` on form submission.
|
|
86
|
-
*
|
|
87
|
-
* @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
|
|
88
|
-
*/
|
|
89
|
-
accessor name: string | undefined;
|
|
90
76
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
91
77
|
accessor numberingSystem: NumberingSystem | undefined;
|
|
92
78
|
/**
|
|
@@ -23,7 +23,7 @@ const CSS = {
|
|
|
23
23
|
warning: "fill-warning",
|
|
24
24
|
danger: "fill-danger"
|
|
25
25
|
};
|
|
26
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host{display:flex;--calcite-internal-meter-space: var(--calcite-theme-space-base, var(--calcite-spacing-base));--calcite-internal-meter-height: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-meter-font-size: var(--calcite-font-size-relative-base);--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-brand));--calcite-internal-meter-background-color: var( --calcite-meter-background-color, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)) );--calcite-internal-meter-border-color: var(--calcite-meter-border-color, var(--calcite-color-border-2));--calcite-internal-meter-shadow: var(--calcite-meter-shadow, var(--calcite-shadow-none));--calcite-internal-meter-corner-radius: var(--calcite-meter-corner-radius, 9999px);--calcite-internal-meter-value-text-color: var(--calcite-meter-value-text-color, var(--calcite-color-text-1));--calcite-internal-meter-range-text-color: var(--calcite-meter-range-text-color, var(--calcite-color-text-3));--calcite-internal-meter-label-line-height: var(--calcite-font-line-height-base)}:host([scale=s]){--calcite-internal-meter-height: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-meter-font-size: var(--calcite-font-size-relative-sm)}:host([scale=l]){--calcite-internal-meter-height: var(--calcite-theme-space-2xl, var(--calcite-spacing-xxl));--calcite-internal-meter-font-size: var(--calcite-font-size-relative-md);--calcite-internal-meter-label-line-height: var(--calcite-font-line-height-md)}:host([appearance=solid]){--calcite-internal-meter-border-color: var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3));--calcite-internal-meter-background-color: var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3))}:host([appearance=outline]){--calcite-internal-meter-background-color: transparent}.fill{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-brand))}.fill-danger{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-status-danger))}.fill-success{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-status-success))}.fill-warning{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-status-warning))}.container{display:flex;position:relative;align-items:center;margin:0;inline-size:var(--calcite-container-size-content-fluid);block-size:var(--calcite-internal-meter-height);background-color:var(--calcite-internal-meter-background-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-meter-border-color);border-radius:var(--calcite-internal-meter-corner-radius);box-shadow:var(--calcite-internal-meter-shadow)}.value-visible{margin-block-start:var(--calcite-theme-space-2xl, var(--calcite-spacing-xxl))}.steps-visible{margin-block-end:var(--calcite-theme-space-2xl, var(--calcite-spacing-xxl))}.step-line{display:block;position:absolute;inset-block:var(--calcite-space-none);inline-size:var(--calcite-internal-meter-space);background-color:var(--calcite-internal-meter-border-color)}.label{position:absolute;display:flex;gap:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));font-size:var(--calcite-internal-meter-font-size);line-height:var(--calcite-internal-meter-label-line-height)}.label-hidden{visibility:hidden;opacity:0}.label-value{inset-block-end:calc(100% + .5em);font-weight:var(--calcite-font-weight-
|
|
26
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host{display:flex;--calcite-internal-meter-space: var(--calcite-theme-space-base, var(--calcite-spacing-base));--calcite-internal-meter-height: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-meter-font-size: var(--calcite-font-size-relative-base);--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-brand));--calcite-internal-meter-background-color: var( --calcite-meter-background-color, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)) );--calcite-internal-meter-border-color: var(--calcite-meter-border-color, var(--calcite-color-border-2));--calcite-internal-meter-shadow: var(--calcite-meter-shadow, var(--calcite-shadow-none));--calcite-internal-meter-corner-radius: var(--calcite-meter-corner-radius, 9999px);--calcite-internal-meter-value-text-color: var(--calcite-meter-value-text-color, var(--calcite-color-text-1));--calcite-internal-meter-range-text-color: var(--calcite-meter-range-text-color, var(--calcite-color-text-3));--calcite-internal-meter-label-line-height: var(--calcite-font-line-height-base)}:host([scale=s]){--calcite-internal-meter-height: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-meter-font-size: var(--calcite-font-size-relative-sm)}:host([scale=l]){--calcite-internal-meter-height: var(--calcite-theme-space-2xl, var(--calcite-spacing-xxl));--calcite-internal-meter-font-size: var(--calcite-font-size-relative-md);--calcite-internal-meter-label-line-height: var(--calcite-font-line-height-md)}:host([appearance=solid]){--calcite-internal-meter-border-color: var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3));--calcite-internal-meter-background-color: var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3))}:host([appearance=outline]){--calcite-internal-meter-background-color: transparent}.fill{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-brand))}.fill-danger{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-status-danger))}.fill-success{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-status-success))}.fill-warning{--calcite-internal-meter-fill-color: var(--calcite-meter-fill-color, var(--calcite-color-status-warning))}.container{display:flex;position:relative;align-items:center;margin:0;inline-size:var(--calcite-container-size-content-fluid);block-size:var(--calcite-internal-meter-height);background-color:var(--calcite-internal-meter-background-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-meter-border-color);border-radius:var(--calcite-internal-meter-corner-radius);box-shadow:var(--calcite-internal-meter-shadow)}.value-visible{margin-block-start:var(--calcite-theme-space-2xl, var(--calcite-spacing-xxl))}.steps-visible{margin-block-end:var(--calcite-theme-space-2xl, var(--calcite-spacing-xxl))}.step-line{display:block;position:absolute;inset-block:var(--calcite-space-none);inline-size:var(--calcite-internal-meter-space);background-color:var(--calcite-internal-meter-border-color)}.label{position:absolute;display:flex;gap:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));font-size:var(--calcite-internal-meter-font-size);line-height:var(--calcite-internal-meter-label-line-height)}.label-hidden{visibility:hidden;opacity:0}.label-value{inset-block-end:calc(100% + .5em);font-weight:var(--calcite-font-weight-semibold);color:var(--calcite-internal-meter-value-text-color)}.label-range{color:var(--calcite-internal-meter-range-text-color);inset-block-start:calc(100% + .5em)}.label-range .unit-label{font-weight:var(--calcite-font-weight-medium)}.fill{display:block;position:absolute;transition-timing-function:var(--calcite-animation-easing-function);z-index:var(--calcite-z-index);inset-inline-start:var(--calcite-internal-meter-space);inset-block:var(--calcite-internal-meter-space);border-radius:var(--calcite-internal-meter-corner-radius);max-inline-size:calc(100% - var(--calcite-internal-meter-space) * 2);min-inline-size:calc(var(--calcite-internal-meter-height) - var(--calcite-internal-meter-space) * 2);background-color:var(--calcite-internal-meter-fill-color);transition-property:inline-size,background-color,box-shadow}.solid .fill{inset-block:0;inset-inline-start:0;max-inline-size:100%;min-inline-size:calc(var(--calcite-internal-meter-height));box-shadow:0 0 0 1px var(--calcite-internal-meter-fill-color)}`;
|
|
27
27
|
class Meter extends LitElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments);
|
|
@@ -58,7 +58,7 @@ class Meter extends LitElement {
|
|
|
58
58
|
this.valueLabelType = "percent";
|
|
59
59
|
}
|
|
60
60
|
static {
|
|
61
|
-
this.properties = { currentPercent: [16, {}, { state: true }], highActive: [16, {}, { state: true }], highPercent: [16, {}, { state: true }], lowActive: [16, {}, { state: true }], lowPercent: [16, {}, { state: true }], appearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], fillType: [3, {}, { reflect: true }],
|
|
61
|
+
this.properties = { currentPercent: [16, {}, { state: true }], highActive: [16, {}, { state: true }], highPercent: [16, {}, { state: true }], lowActive: [16, {}, { state: true }], lowPercent: [16, {}, { state: true }], appearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], fillType: [3, {}, { reflect: true }], groupSeparator: [7, {}, { reflect: true, type: Boolean }], high: [11, {}, { reflect: true, type: Number }], label: 1, low: [11, {}, { reflect: true, type: Number }], max: [11, {}, { reflect: true, type: Number }], min: [11, {}, { reflect: true, type: Number }], numberingSystem: 1, rangeLabelType: [3, {}, { reflect: true }], rangeLabels: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], unitLabel: 1, value: [9, {}, { type: Number }], valueLabel: [7, {}, { reflect: true, type: Boolean }], valueLabelType: [3, {}, { reflect: true }] };
|
|
62
62
|
}
|
|
63
63
|
static {
|
|
64
64
|
this.styles = styles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Layout, Scale, SelectionAppearance, Status, Width } from "../types.js";
|
|
4
4
|
import type { IconName } from "../calcite-icon/types.js";
|
|
5
5
|
import type { SegmentedControlItem } from "../calcite-segmented-control-item/customElement.js";
|
|
6
6
|
|
|
@@ -19,13 +19,6 @@ export interface DeclareCssProperties {
|
|
|
19
19
|
* @docGroup Segmented Control
|
|
20
20
|
*/
|
|
21
21
|
export abstract class SegmentedControl extends LitElement {
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the appearance style of the component.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated in v5.2.0, removal target v6.0.0 - use the `selectionAppearance` property coming in v6.0.0.
|
|
26
|
-
* @default "solid"
|
|
27
|
-
*/
|
|
28
|
-
accessor appearance: Extract<"outline" | "outline-fill" | "solid", Appearance>;
|
|
29
22
|
/**
|
|
30
23
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
31
24
|
*
|
|
@@ -69,6 +62,12 @@ export abstract class SegmentedControl extends LitElement {
|
|
|
69
62
|
accessor scale: Scale;
|
|
70
63
|
/** The component's selected item `HTMLElement`, or `undefined` when no item is selected. */
|
|
71
64
|
get selectedItem(): SegmentedControlItem | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the appearance style of the component.
|
|
67
|
+
*
|
|
68
|
+
* @default "neutral"
|
|
69
|
+
*/
|
|
70
|
+
accessor selectionAppearance: Extract<"brand" | "highlight" | "neutral", SelectionAppearance>;
|
|
72
71
|
/**
|
|
73
72
|
* Specifies the status of the validation message.
|
|
74
73
|
*
|
|
@@ -19,7 +19,7 @@ const CSS = {
|
|
|
19
19
|
const IDS = {
|
|
20
20
|
validationMessage: "segmentedControlValidationMessage"
|
|
21
21
|
};
|
|
22
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}.item-wrapper{background-color:var(--calcite-theme-color-surface-
|
|
22
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}.item-wrapper{background-color:var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2));display:flex;inline-size:fit-content;border-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host([appearance=outline])>.item-wrapper{background-color:var(--calcite-color-transparent)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([layout=vertical])>.item-wrapper{flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full])>.item-wrapper{inline-size:100%;min-inline-size:fit-content}:host([width=full])>.item-wrapper ::slotted(calcite-segmented-control-item){flex:1 1 auto}:host([width=full][layout=vertical])>.item-wrapper ::slotted(calcite-segmented-control-item){justify-content:flex-start}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-theme-space-base, var(--calcite-spacing-base))}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-relative-md)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
23
23
|
class SegmentedControl extends LitElement {
|
|
24
24
|
constructor() {
|
|
25
25
|
super();
|
|
@@ -29,7 +29,7 @@ class SegmentedControl extends LitElement {
|
|
|
29
29
|
this.messages = useT9n();
|
|
30
30
|
this.focusSetter = useFocusable()(this).setFocus;
|
|
31
31
|
this.interactiveContainer = useInteractive(this);
|
|
32
|
-
this.
|
|
32
|
+
this.selectionAppearance = "neutral";
|
|
33
33
|
this.disabled = false;
|
|
34
34
|
this.layout = "horizontal";
|
|
35
35
|
this.required = false;
|
|
@@ -43,7 +43,7 @@ class SegmentedControl extends LitElement {
|
|
|
43
43
|
this.listen("click", this.handleClick);
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
|
-
this.properties = {
|
|
46
|
+
this.properties = { selectionAppearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectedItem: [0, {}, { attribute: false }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1, width: [3, {}, { reflect: true }] };
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
49
49
|
this.formAssociated = true;
|
|
@@ -55,7 +55,7 @@ class SegmentedControl extends LitElement {
|
|
|
55
55
|
return this.focusSetter(() => this.selectedItem || this.items[0], options);
|
|
56
56
|
}
|
|
57
57
|
willUpdate(changes) {
|
|
58
|
-
if (changes.has("
|
|
58
|
+
if (changes.has("selectionAppearance") && (this.hasUpdated || this.selectionAppearance !== "neutral") || changes.has("layout") && (this.hasUpdated || this.layout !== "horizontal") || changes.has("scale") && (this.hasUpdated || this.scale !== "m")) {
|
|
59
59
|
this.handleItemPropChange();
|
|
60
60
|
}
|
|
61
61
|
if (changes.has("value") && (this.hasUpdated || this.value !== void 0)) {
|
|
@@ -150,7 +150,7 @@ class SegmentedControl extends LitElement {
|
|
|
150
150
|
handleItemPropChange() {
|
|
151
151
|
const { items } = this;
|
|
152
152
|
items.forEach((item) => {
|
|
153
|
-
item.appearance = this.
|
|
153
|
+
item.appearance = this.selectionAppearance;
|
|
154
154
|
item.layout = this.layout;
|
|
155
155
|
item.scale = this.scale;
|
|
156
156
|
});
|
|
@@ -12,6 +12,8 @@ export interface DeclareCssProperties {
|
|
|
12
12
|
"--calcite-segmented-control-shadow": "*";
|
|
13
13
|
/** Specifies the icons's color. */
|
|
14
14
|
"--calcite-segmented-control-icon-color": "*";
|
|
15
|
+
/** Specifies the component's border color. */
|
|
16
|
+
"--calcite-segmented-control-item-border-color": "*";
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
|
|
@@ -5,12 +5,12 @@ import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
|
5
5
|
import { u as slotChangeHasContent } from "../../chunks/dom.js";
|
|
6
6
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
import { C as CSS, S as SLOTS } from "../../chunks/resources23.js";
|
|
8
|
-
const styles = css`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));outline
|
|
8
|
+
const styles = css`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));outline:none;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out}.label{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-segmented-control-color, var(--calcite-theme-color-text-3, var(--calcite-color-text-3)));background-color:var(--calcite-segmented-control-background-color);border:var(--calcite-border-width-sm) solid transparent;box-shadow:var(--calcite-segmented-control-shadow);border-radius:max(0px,(var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))));transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out,color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host(:focus){z-index:var(--calcite-z-index)}:host(:focus) .label{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)));outline-offset:-1px;border-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}.label--scale-s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);padding-inline:var(--calcite-space-sm);padding-block:calc(var(--calcite-space-base) + var(--calcite-space-px))}.label--scale-m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);padding-inline:var(--calcite-space-md);padding-block:calc(var(--calcite-space-xs) + var(--calcite-space-px))}.label--scale-l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);padding-inline:var(--calcite-space-lg);padding-block:calc(var(--calcite-space-sm-plus) + var(--calcite-space-px))}:host(:hover) .label{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-transparent-hover));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host(:active) .label{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-transparent-press));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host([checked]) .label{cursor:default;background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-brand));color:var(--calcite-segmented-control-color, var(--calcite-color-text-inverse));border-color:var(--calcite-segmented-control-item-border-color, var(--calcite-color-brand))}:host([checked]) .label--neutral{border-color:var(--calcite-segmented-control-item-border-color, var(--calcite-color-border-input));background-color:var(--calcite-segmented-control-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host([checked]) .label--highlight{border-color:var(--calcite-segmented-control-item-border-color, var(--calcite-color-brand));background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-surface-highlight));color:var(--calcite-segmented-control-color, var(--calcite-color-text-highlight))}:host(:first-of-type) .label--horizontal{border-start-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-end-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host(:last-of-type) .label--horizontal{border-start-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-end-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host(:first-of-type) .label:not(.label--horizontal){border-start-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-start-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host(:last-of-type) .label:not(.label--horizontal){border-end-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-end-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}::slotted(input){display:none}@media(forced-colors:active){:host([checked]) .label{background-color:highlight}:host([checked]) .label--neutral,:host([checked]) .label--highlight{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md)}:host([checked]) .label:not([class~=label--neutral]) .icon{color:highlightText}:host(:focus) .label{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)));outline-offset:-1px}}.icon{position:relative;margin:var(--calcite-space-none);display:inline-flex;line-height:inherit;margin-inline-start:var(--calcite-internal-segmented-control-icon-margin-start);margin-inline-end:var(--calcite-internal-segmented-control-icon-margin-end);--calcite-icon-color: var(--calcite-segmented-control-icon-color, currentColor)}:host([icon-start]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-end: var(--calcite-space-sm)}:host([icon-end]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-start: var(--calcite-space-sm)}:host([icon-start]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-end: var(--calcite-space-md)}:host([icon-end]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-start: var(--calcite-space-md)}:host([icon-start]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-end: var(--calcite-space-lg)}:host([icon-end]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-start: var(--calcite-space-lg)}.label .icon--solo{--calcite-internal-segmented-control-icon-margin-start: 0;--calcite-internal-segmented-control-icon-margin-end: 0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
9
9
|
class SegmentedControlItem extends LitElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
this.hasSlottedContent = false;
|
|
13
|
-
this.appearance = "
|
|
13
|
+
this.appearance = "neutral";
|
|
14
14
|
this.checked = false;
|
|
15
15
|
this.iconFlipRtl = false;
|
|
16
16
|
this.layout = "horizontal";
|
|
@@ -46,8 +46,8 @@ class SegmentedControlItem extends LitElement {
|
|
|
46
46
|
[CSS.label]: true,
|
|
47
47
|
[CSS.labelScale(scale)]: true,
|
|
48
48
|
[CSS.labelHorizontal]: layout === "horizontal",
|
|
49
|
-
[CSS.
|
|
50
|
-
[CSS.
|
|
49
|
+
[CSS.labelNeutral]: appearance === "neutral",
|
|
50
|
+
[CSS.labelHighlight]: appearance === "highlight"
|
|
51
51
|
})}>${this.renderContent()}</label>`;
|
|
52
52
|
}
|
|
53
53
|
renderContent() {
|
|
@@ -68,15 +68,12 @@ export abstract class Sheet extends LitElement {
|
|
|
68
68
|
* - `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
69
69
|
*/
|
|
70
70
|
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
71
|
-
/** Specifies the component's height. */
|
|
72
|
-
accessor height: Height | undefined;
|
|
73
71
|
/**
|
|
74
|
-
*
|
|
72
|
+
* Specifies the component's height.
|
|
75
73
|
*
|
|
76
|
-
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `height` property instead.
|
|
77
74
|
* @default "m"
|
|
78
75
|
*/
|
|
79
|
-
accessor
|
|
76
|
+
accessor height: Height;
|
|
80
77
|
/**
|
|
81
78
|
* Specifies an accessible label for the component.
|
|
82
79
|
*
|
|
@@ -126,15 +123,12 @@ export abstract class Sheet extends LitElement {
|
|
|
126
123
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
127
124
|
*/
|
|
128
125
|
accessor topLayerDisabled: boolean;
|
|
129
|
-
/** Specifies the component's width. */
|
|
130
|
-
accessor width: Extract<Width, Scale> | undefined;
|
|
131
126
|
/**
|
|
132
|
-
*
|
|
127
|
+
* Specifies the component's width.
|
|
133
128
|
*
|
|
134
|
-
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `width` property instead.
|
|
135
129
|
* @default "m"
|
|
136
130
|
*/
|
|
137
|
-
accessor
|
|
131
|
+
accessor width: Extract<Width, Scale>;
|
|
138
132
|
/**
|
|
139
133
|
* Sets focus on the component's "close" button - the first focusable item.
|
|
140
134
|
*
|
|
@@ -84,14 +84,14 @@ class Sheet extends LitElement {
|
|
|
84
84
|
this.embedded = false;
|
|
85
85
|
this.escapeDisabled = false;
|
|
86
86
|
this.focusTrapDisabled = false;
|
|
87
|
-
this.
|
|
87
|
+
this.height = "m";
|
|
88
88
|
this.modal = false;
|
|
89
89
|
this.opened = false;
|
|
90
90
|
this.outsideCloseDisabled = false;
|
|
91
91
|
this.position = "inline-start";
|
|
92
92
|
this.resizable = false;
|
|
93
93
|
this.topLayerDisabled = false;
|
|
94
|
-
this.
|
|
94
|
+
this.width = "m";
|
|
95
95
|
this.calciteSheetBeforeClose = createEvent({ cancelable: false });
|
|
96
96
|
this.calciteSheetBeforeOpen = createEvent({ cancelable: false });
|
|
97
97
|
this.calciteSheetClose = createEvent({ cancelable: false });
|
|
@@ -99,7 +99,7 @@ class Sheet extends LitElement {
|
|
|
99
99
|
this.listen("keydown", this.keyDownHandler);
|
|
100
100
|
}
|
|
101
101
|
static {
|
|
102
|
-
this.properties = { resizeValues: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], embedded: [7, {}, { reflect: true, type: Boolean }], escapeDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }],
|
|
102
|
+
this.properties = { resizeValues: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], embedded: [7, {}, { reflect: true, type: Boolean }], escapeDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }], height: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], modal: [7, {}, { reflect: true, type: Boolean }], open: [7, {}, { reflect: true, type: Boolean }], opened: [7, {}, { reflect: true, type: Boolean }], outsideCloseDisabled: [7, {}, { reflect: true, type: Boolean }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], width: [3, {}, { reflect: true }] };
|
|
103
103
|
}
|
|
104
104
|
static {
|
|
105
105
|
this.styles = styles;
|
|
@@ -337,8 +337,8 @@ class Sheet extends LitElement {
|
|
|
337
337
|
[CSS.containerOpen]: this.opened,
|
|
338
338
|
[CSS.containerEmbedded]: this.embedded,
|
|
339
339
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
340
|
-
[getDimensionClass("width", this.width
|
|
341
|
-
[getDimensionClass("height", this.height
|
|
340
|
+
[getDimensionClass("width", this.width)]: true,
|
|
341
|
+
[getDimensionClass("height", this.height)]: true
|
|
342
342
|
})} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}>${this.modal ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>` : null}<div class=${safeClassMap(CSS.content)} id=${IDS.sheetContent} ${ref(this.contentRef)}><div class=${safeClassMap(CSS.contentContainer)}><slot></slot></div>${resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resizeEnabled} .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}</div></div>`;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -171,7 +171,7 @@ class SortHandle extends LitElement {
|
|
|
171
171
|
const { disabled, flipPlacements, hasOnlyDisabledReorderItems, open, overlayPositioning, placement, scale, widthScale, hasNoItems } = this;
|
|
172
172
|
const text = this.getLabel();
|
|
173
173
|
const isDisabled = disabled || hasNoItems || hasOnlyDisabledReorderItems;
|
|
174
|
-
return this.interactiveContainer({ disabled, children: html`<calcite-dropdown class=${safeClassMap(CSS.dropdown)} .disabled=${isDisabled} .flipPlacements=${flipPlacements} @calciteDropdownBeforeClose=${this.handleBeforeClose} @calciteDropdownBeforeOpen=${this.handleBeforeOpen} @calciteDropdownClose=${this.handleClose} @calciteDropdownOpen=${this.handleOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} .scale=${scale} .topLayerDisabled=${this.topLayerDisabled} .
|
|
174
|
+
return this.interactiveContainer({ disabled, children: html`<calcite-dropdown class=${safeClassMap(CSS.dropdown)} .disabled=${isDisabled} .flipPlacements=${flipPlacements} @calciteDropdownBeforeClose=${this.handleBeforeClose} @calciteDropdownBeforeOpen=${this.handleBeforeOpen} @calciteDropdownClose=${this.handleClose} @calciteDropdownOpen=${this.handleOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} .scale=${scale} .topLayerDisabled=${this.topLayerDisabled} .width=${widthScale} ${ref(this.setDropdownEl)}><calcite-action .active=${open} .aria=${{ expanded: open }} class=${safeClassMap(CSS.handle)} .dragHandle=${true} .icon=${disabled ? ICONS.blank : ICONS.drag} .label=${text} .scale=${scale} slot=${SLOTS.trigger} .text=${text} title=${text ?? nothing}></calcite-action>${this.renderReorderGroup()}${this.renderMoveToGroup()}${this.renderAddToGroup()}</calcite-dropdown>` });
|
|
175
175
|
}
|
|
176
176
|
renderAddToItem(addToItem) {
|
|
177
177
|
return keyed(addToItem.id, html`<calcite-dropdown-item data-id=${addToItem.id ?? nothing} .label=${addToItem.label} @calciteDropdownItemSelect=${this.handleAddTo}>${addToItem.label}</calcite-dropdown-item>`);
|
|
@@ -65,7 +65,7 @@ class SplitButton extends LitElement {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
68
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap(CSS.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .download=${this.download} .href=${this.href} .iconEnd=${this.primaryIconEnd} .iconFlipRtl=${this.primaryIconFlipRtl} .iconStart=${this.primaryIconStart} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .rel=${this.rel} .scale=${this.scale} split-child=primary .target=${this.target} type=button .width=${buttonWidth}>${this.primaryText}</calcite-button><div class=${safeClassMap(CSS.dividerContainer)}><div class=${safeClassMap(CSS.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} .
|
|
68
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap(CSS.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .download=${this.download} .href=${this.href} .iconEnd=${this.primaryIconEnd} .iconFlipRtl=${this.primaryIconFlipRtl} .iconStart=${this.primaryIconStart} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .rel=${this.rel} .scale=${this.scale} split-child=primary .target=${this.target} type=button .width=${buttonWidth}>${this.primaryText}</calcite-button><div class=${safeClassMap(CSS.dividerContainer)}><div class=${safeClassMap(CSS.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} .width=${this.scale}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconStart=${this.dropdownIcon} .kind=${this.kind} .label=${this.dropdownLabel} .scale=${this.scale} slot=${SLOTS.trigger} split-child=secondary type=button></calcite-button><slot></slot></calcite-dropdown></div>` });
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
customElement("calcite-split-button", SplitButton);
|
|
@@ -46,7 +46,7 @@ const SLOTS = {
|
|
|
46
46
|
};
|
|
47
47
|
const RESIZE_TIMEOUT = 100;
|
|
48
48
|
const NO_DIMENSIONS = Object.freeze({ height: 0, width: 0 });
|
|
49
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;position:relative;inline-size:100%;block-size:100%;box-sizing:border-box;--calcite-internal-text-area-border-color: var(--calcite-text-area-border-color, var(--calcite-color-border-input));--calcite-internal-text-area-footer-border-color: var( --calcite-text-area-footer-border-color, var(--calcite-internal-text-area-border-color) );--calcite-internal-text-area-corner-radius: var(--calcite-text-area-corner-radius, var(--calcite-corner-radius));--calcite-internal-text-area-shadow: var(--calcite-text-area-shadow, var(--calcite-shadow-none));--calcite-internal-text-area-footer-background-color: var( --calcite-text-area-footer-background-color, var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))) );min-block-size:var(--calcite-text-area-min-height, calc(2 * var(--calcite-internal-text-area-padding-block) + 2 * var(--calcite-border-width-sm)));min-inline-size:var(--calcite-text-area-min-width, 12rem)}.wrapper{block-size:100%;inline-size:100%;box-sizing:border-box;box-shadow:var(--calcite-internal-text-area-shadow);border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area,.footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));padding-block:var(--calcite-internal-text-area-padding-block);padding-inline:var(--calcite-internal-text-area-padding-inline)}.footer{background-color:var(--calcite-internal-text-area-footer-background-color);border-radius:0 0 var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius)}.text-area{position:relative;display:block;box-sizing:border-box;inline-size:100%;margin:0;--calcite-internal-text-area-border-block-end-color: var(--calcite-internal-text-area-border-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-border-color);border-block-end-color:var(--calcite-internal-text-area-border-block-end-color);color:var(--calcite-text-area-text-color, var(--calcite-color-text-1));font-family:inherit;line-height:var(--calcite-font-line-height-base);max-block-size:var(--calcite-text-area-max-height);min-block-size:calc(var(--calcite-text-area-min-height, 0px) - var(--calcite-internal-text-area-footer-min-height, 0px));max-inline-size:var(--calcite-text-area-max-width);min-inline-size:var(--calcite-text-area-min-width, 12rem);background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius) 0 0}.text-area::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal))}@media screen and (max-width:480px){.text-area{resize:none}}.text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.text-area--invalid{--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}.text-area.text-area--invalid:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.footer--slotted{min-inline-size:18rem}.text-area.text-area--only{border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area:not(.text-area--only,.text-area--invalid){--calcite-internal-text-area-border-block-end-color: var( --calcite-text-area-divider-color, var(--calcite-color-border-3) )}.loader-container{position:relative;block-size:inherit}.loader{position:absolute;inset-block-start:0;inset-block-start:var(--calcite-theme-space-px, var(--calcite-spacing-px));inset-inline:var(--calcite-theme-space-px, var(--calcite-spacing-px))}.footer{display:flex;box-sizing:border-box;align-items:center;line-height:var(--calcite-font-line-height-base);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-footer-border-color);border-block-start:var(--calcite-border-width-none);min-block-size:var(--calcite-internal-text-area-footer-min-height)}.character-limit{display:flex;justify-content:flex-end;align-items:center;white-space:nowrap;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));font-weight:var(--calcite-font-weight-regular);color:var(--calcite-text-area-character-limit-text-color, var(--calcite-color-text-2));padding-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}.character--over-limit{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-status-danger)}.readonly{background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)));font-weight:var(--calcite-font-weight-medium)}.footer.readonly{background-color:var(--calcite-internal-text-area-footer-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.content,.hide{display:none}.container{display:flex;justify-content:space-between;inline-size:100%}.footer--end-only{justify-content:flex-end}.text-area.text-area--only{block-size:100%;min-block-size:var(--calcite-text-area-min-height, 0)}:host([resize=none]) .text-area{resize:none}:host([resize=horizontal]) .text-area{resize:horizontal}:host([resize=vertical]) .text-area{resize:vertical}:host([scale=s]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-footer-min-height: 1.75rem}:host([scale=s]) .text-area,:host([scale=s]) .footer,:host([scale=s]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-sm))}:host([scale=s]) .character-limit{padding-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-footer-min-height: 2.25rem}:host([scale=l]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-text-area-footer-min-height: 2.75rem}:host([scale=l]) .text-area,:host([scale=l]) .footer,:host([scale=l]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-md))}:host([scale=l]) .character-limit{padding-inline-start:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([status=invalid]){--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}:host([status=invalid]) .text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([disabled]) .text-area,:host([disabled]) .footer{opacity:var(--calcite-opacity-half)}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-theme-space-base, var(--calcite-spacing-base))}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-relative-md)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-text-area-placeholder-text-color, var(--calcite-color-text-3))}`;
|
|
49
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;position:relative;inline-size:100%;block-size:100%;box-sizing:border-box;--calcite-internal-text-area-border-color: var(--calcite-text-area-border-color, var(--calcite-color-border-input));--calcite-internal-text-area-footer-border-color: var( --calcite-text-area-footer-border-color, var(--calcite-internal-text-area-border-color) );--calcite-internal-text-area-corner-radius: var(--calcite-text-area-corner-radius, var(--calcite-corner-radius));--calcite-internal-text-area-shadow: var(--calcite-text-area-shadow, var(--calcite-shadow-none));--calcite-internal-text-area-footer-background-color: var( --calcite-text-area-footer-background-color, var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))) );--calcite-internal-text-area-block-size: inherit;min-block-size:var(--calcite-text-area-min-height, calc(2 * var(--calcite-internal-text-area-padding-block) + 2 * var(--calcite-border-width-sm)));min-inline-size:var(--calcite-text-area-min-width, 12rem)}.wrapper{block-size:100%;inline-size:100%;box-sizing:border-box;box-shadow:var(--calcite-internal-text-area-shadow);border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area,.footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));padding-block:var(--calcite-internal-text-area-padding-block);padding-inline:var(--calcite-internal-text-area-padding-inline)}.footer{background-color:var(--calcite-internal-text-area-footer-background-color);border-radius:0 0 var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius)}.text-area{position:relative;display:block;box-sizing:border-box;inline-size:100%;margin:0;--calcite-internal-text-area-border-block-end-color: var(--calcite-internal-text-area-border-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-border-color);border-block-end-color:var(--calcite-internal-text-area-border-block-end-color);color:var(--calcite-text-area-text-color, var(--calcite-color-text-1));font-family:inherit;line-height:var(--calcite-font-line-height-base);max-block-size:var(--calcite-text-area-max-height);min-block-size:calc(var(--calcite-text-area-min-height, 0px) - var(--calcite-internal-text-area-footer-min-height, 0px));max-inline-size:var(--calcite-text-area-max-width);min-inline-size:var(--calcite-text-area-min-width, 12rem);background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius) 0 0}.text-area::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal))}@media screen and (max-width:480px){.text-area{resize:none}}.text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.text-area--invalid{--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}.text-area.text-area--invalid:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.footer--slotted{min-inline-size:18rem}.text-area.text-area--only{border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area:not(.text-area--only,.text-area--invalid){--calcite-internal-text-area-border-block-end-color: var( --calcite-text-area-divider-color, var(--calcite-color-border-3) )}.loader-container{position:relative;block-size:inherit}.loader{position:absolute;inset-block-start:0;inset-block-start:var(--calcite-theme-space-px, var(--calcite-spacing-px));inset-inline:var(--calcite-theme-space-px, var(--calcite-spacing-px))}.footer{display:flex;box-sizing:border-box;align-items:center;line-height:var(--calcite-font-line-height-base);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-footer-border-color);border-block-start:var(--calcite-border-width-none);min-block-size:var(--calcite-internal-text-area-footer-min-height)}.character-limit{display:flex;justify-content:flex-end;align-items:center;white-space:nowrap;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));font-weight:var(--calcite-font-weight-regular);color:var(--calcite-text-area-character-limit-text-color, var(--calcite-color-text-2));padding-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}.character--over-limit{font-weight:var(--calcite-font-weight-semibold);color:var(--calcite-color-status-danger)}.readonly{background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)));font-weight:var(--calcite-font-weight-medium)}.footer.readonly{background-color:var(--calcite-internal-text-area-footer-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.content,.hide{display:none}.container{display:flex;justify-content:space-between;inline-size:100%}.footer--end-only{justify-content:flex-end}.text-area.text-area--only{block-size:var(--calcite-internal-text-area-block-size, 100%);min-block-size:var(--calcite-text-area-min-height, 0)}:host([resize=none]) .text-area{resize:none}:host([resize=horizontal]) .text-area{resize:horizontal}:host([resize=vertical]) .text-area{resize:vertical}:host([scale=s]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-footer-min-height: 1.75rem}:host([scale=s]) .text-area,:host([scale=s]) .footer,:host([scale=s]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-sm))}:host([scale=s]) .character-limit{padding-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-footer-min-height: 2.25rem}:host([scale=l]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-text-area-footer-min-height: 2.75rem}:host([scale=l]) .text-area,:host([scale=l]) .footer,:host([scale=l]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-md))}:host([scale=l]) .character-limit{padding-inline-start:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([status=invalid]){--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}:host([status=invalid]) .text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([disabled]) .text-area,:host([disabled]) .footer{opacity:var(--calcite-opacity-half)}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-theme-space-base, var(--calcite-spacing-base))}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-relative-md)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-text-area-placeholder-text-color, var(--calcite-color-text-3))}`;
|
|
50
50
|
class TextArea extends LitElement {
|
|
51
51
|
constructor() {
|
|
52
52
|
super();
|
|
@@ -33,13 +33,6 @@ export interface DeclareCssProperties {
|
|
|
33
33
|
* @docGroup Tiles
|
|
34
34
|
*/
|
|
35
35
|
export abstract class Tile extends LitElement {
|
|
36
|
-
/**
|
|
37
|
-
* When `true`, the component is active.
|
|
38
|
-
*
|
|
39
|
-
* @deprecated in v2.8.0, removal target v6.0.0 - No longer necessary.
|
|
40
|
-
* @default false
|
|
41
|
-
*/
|
|
42
|
-
accessor active: boolean;
|
|
43
36
|
/**
|
|
44
37
|
* Specifies alignment of the component's content.
|
|
45
38
|
*
|
|
@@ -54,20 +47,11 @@ export abstract class Tile extends LitElement {
|
|
|
54
47
|
* @default false
|
|
55
48
|
*/
|
|
56
49
|
accessor disabled: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the component's embed mode.
|
|
59
|
-
*
|
|
60
|
-
* When `true`, renders without a border and padding for use by other components.
|
|
61
|
-
*
|
|
62
|
-
* @deprecated in v2.6.0, removal target v6.0.0 - No longer necessary.
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
accessor embed: boolean;
|
|
66
50
|
/** Specifies the component's heading text that displays between the `icon` and `description`. */
|
|
67
51
|
accessor heading: string | undefined;
|
|
68
52
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
69
53
|
accessor headingLevel: HeadingLevel | undefined;
|
|
70
|
-
/**
|
|
54
|
+
/** Specifies the URL for the component. */
|
|
71
55
|
accessor href: string | undefined;
|
|
72
56
|
/** Specifies an icon to display. */
|
|
73
57
|
accessor icon: IconName | undefined;
|
|
@@ -9,7 +9,7 @@ import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
|
9
9
|
import { H as Heading } from "../../chunks/Heading.js";
|
|
10
10
|
import { S as SLOTS, I as ICONS, C as CSS } from "../../chunks/resources32.js";
|
|
11
11
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
12
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-internal-link-text-decoration-line: none;--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));padding:var(--calcite-internal-tile-spacing);position:relative;-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index)}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive:hover .icon,.container.interactive:focus .icon,.container.interactive.selected .icon{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}.container.interactive:hover ::slotted(calcite-chip),.container.interactive:focus ::slotted(calcite-chip),.container.interactive.selected ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-1))}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:calc(var(--calcite-z-index) + 1)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column;overflow-wrap:break-word;word-break:break-word;inline-size:var(--calcite-container-size-content-fluid)}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{margin:0;padding:0;color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content-container{justify-content:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-bottom]::slotted(*),:host([alignment=center]) slot[name=content-top]::slotted(*){align-self:center}:host([scale=s]){--calcite-internal-tile-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .heading{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size-relative-xs);line-height:.85938rem}:host([scale=m]){--calcite-internal-tile-spacing: var(--calcite-theme-space-md, var(--calcite-spacing-md));max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .heading{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=l]){--calcite-internal-tile-spacing: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .heading{font-size:var(--calcite-font-size-relative-md);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}.content-container--has-content,.row{gap:var(--calcite-internal-tile-spacing)}.content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-internal-tile-spacing)}:host([selection-appearance=highlight]) .container.selected{background-color:var(--calcite-color-surface-highlight)}:host(:hover:not([disabled])) .heading
|
|
12
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-internal-link-text-decoration-line: none;--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));padding:var(--calcite-internal-tile-spacing);position:relative;-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index)}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive:hover .icon,.container.interactive:focus .icon,.container.interactive.selected .icon{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}.container.interactive:hover ::slotted(calcite-chip),.container.interactive:focus ::slotted(calcite-chip),.container.interactive.selected ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-1))}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:calc(var(--calcite-z-index) + 1)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column;overflow-wrap:break-word;word-break:break-word;inline-size:var(--calcite-container-size-content-fluid)}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{margin:0;padding:0;color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content-container{justify-content:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-bottom]::slotted(*),:host([alignment=center]) slot[name=content-top]::slotted(*){align-self:center}:host([scale=s]){--calcite-internal-tile-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .heading{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size-relative-xs);line-height:.85938rem}:host([scale=m]){--calcite-internal-tile-spacing: var(--calcite-theme-space-md, var(--calcite-spacing-md));max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .heading{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=l]){--calcite-internal-tile-spacing: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .heading{font-size:var(--calcite-font-size-relative-md);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}.content-container--has-content,.row{gap:var(--calcite-internal-tile-spacing)}.content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-internal-tile-spacing)}:host([selection-appearance=highlight]) .container.selected{background-color:var(--calcite-color-surface-highlight)}:host(:hover:not([disabled])) .heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}:host([href]:focus:not([disabled])) .container,:host([href]:hover:not([disabled])) .container{outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link));z-index:var(--calcite-z-index)}:host([href]:focus:not([disabled])) .icon,:host([href]:hover:not([disabled])) .icon{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:focus:not([disabled])) .heading,:host([href]:hover:not([disabled])) .heading{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:active:not([disabled])) .container{box-shadow:inset 0 0 0 1px var(--calcite-tile-link-color, var(--calcite-color-text-link));outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([selection-mode=none]) .container:hover,:host([selection-mode=none]) .container.selected{outline-color:var(--calcite-tile-border-color, var(--calcite-color-border-2))}:host([selection-mode=none]) .container:focus{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}@media(forced-colors:active){.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:Highlight;z-index:calc(var(--calcite-z-index) + 1)}:host([selection-appearance=highlight]) .container.selected{outline-width:calc(var(--calcite-border-width-sm, 1px) * 3)}}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::slotted(*){max-inline-size:100%}`;
|
|
13
13
|
class Tile extends LitElement {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
@@ -17,10 +17,8 @@ class Tile extends LitElement {
|
|
|
17
17
|
this.interactiveContainer = useInteractive(this);
|
|
18
18
|
this.hasContentBottom = false;
|
|
19
19
|
this.hasContentTop = false;
|
|
20
|
-
this.active = false;
|
|
21
20
|
this.alignment = "start";
|
|
22
21
|
this.disabled = false;
|
|
23
|
-
this.embed = false;
|
|
24
22
|
this.iconFlipRtl = false;
|
|
25
23
|
this.interactive = false;
|
|
26
24
|
this.layout = "horizontal";
|
|
@@ -32,7 +30,7 @@ class Tile extends LitElement {
|
|
|
32
30
|
this.listen("keydown", this.keyDownHandler);
|
|
33
31
|
}
|
|
34
32
|
static {
|
|
35
|
-
this.properties = { hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }],
|
|
33
|
+
this.properties = { hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], description: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], heading: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], href: [3, {}, { reflect: true }], icon: [3, {}, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], interactive: [5, {}, { type: Boolean }], label: 1, layout: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }] };
|
|
36
34
|
}
|
|
37
35
|
static {
|
|
38
36
|
this.styles = styles;
|
|
@@ -26,12 +26,6 @@ export abstract class Tooltip extends LitElement {
|
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
28
|
accessor closeOnClick: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Specifies an accessible label for the component.
|
|
31
|
-
*
|
|
32
|
-
* @deprecated in v1.5.0, removal target v6.0.0 - No longer necessary. Overrides the context of the component's text description, which could confuse assistive technology users.
|
|
33
|
-
*/
|
|
34
|
-
accessor label: string | undefined;
|
|
35
29
|
/** Specifies the distance to position the component away from the `referenceElement`. */
|
|
36
30
|
accessor offsetDistance: number;
|
|
37
31
|
/**
|
|
@@ -41,7 +41,7 @@ class Tooltip extends LitElement {
|
|
|
41
41
|
this.calciteTooltipOpen = createEvent({ cancelable: false });
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
|
-
this.properties = { floatingLayout: [16, {}, { state: true }], referenceEl: [16, {}, { state: true }], closeOnClick: [7, {}, { reflect: true, type: Boolean }],
|
|
44
|
+
this.properties = { floatingLayout: [16, {}, { state: true }], referenceEl: [16, {}, { state: true }], closeOnClick: [7, {}, { reflect: true, type: Boolean }], offsetDistance: [11, {}, { type: Number, reflect: true }], offsetSkidding: [11, {}, { reflect: true, type: Number }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], pointerDisabled: [7, {}, { reflect: true, type: Boolean }], referenceElement: 1, scale: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
47
|
this.styles = styles;
|
|
@@ -107,12 +107,11 @@ class Tooltip extends LitElement {
|
|
|
107
107
|
this.reposition(true);
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
const { referenceEl,
|
|
110
|
+
const { referenceEl, open, pointerDisabled, floatingLayout } = this;
|
|
111
111
|
const displayed = referenceEl && open;
|
|
112
112
|
const hidden = !displayed;
|
|
113
113
|
const arrowNode = !pointerDisabled ? keyed("floating-arrow", FloatingArrow({ floatingLayout, ref: this.setArrowEl })) : null;
|
|
114
114
|
this.el.inert = hidden;
|
|
115
|
-
this.el.ariaLabel = label ?? null;
|
|
116
115
|
this.el.role = "tooltip";
|
|
117
116
|
return html`<div class=${safeClassMap(CSS.positionContainer)} popover=manual ${ref(this.setFloatingEl)}><div class=${safeClassMap({
|
|
118
117
|
[FloatingCSS.animation]: true,
|
|
@@ -17,7 +17,7 @@ export type LogicalFlowPosition = "inline-start" | "inline-end" | "block-start"
|
|
|
17
17
|
|
|
18
18
|
export type Position = "start" | "end" | "top" | "bottom";
|
|
19
19
|
|
|
20
|
-
export type SelectionAppearance = "icon" | "border" | "neutral" | "highlight";
|
|
20
|
+
export type SelectionAppearance = "icon" | "border" | "neutral" | "highlight" | "brand";
|
|
21
21
|
|
|
22
22
|
export type SelectionMode = "single" | "none" | "children" | "single-persist" | "multichildren" | "ancestors" | "multiple";
|
|
23
23
|
|