@esri/calcite-components 5.1.1-next.3 → 5.1.1-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{X2BBMLBB.js → 2DULJTZM.js} +1 -1
- package/dist/cdn/{4QQ3EVQP.js → 2ESXTULI.js} +1 -1
- package/dist/cdn/{ASW675OW.js → 2IBAD62X.js} +1 -1
- package/dist/cdn/{6XD7JQMH.js → 2MWPMRNJ.js} +1 -1
- package/dist/cdn/{BFFHJ7V3.js → 2URTQOMI.js} +1 -1
- package/dist/cdn/3E5HT7WV.js +2 -0
- package/dist/cdn/{Z5OV3CGT.js → 3WYNE4QF.js} +1 -1
- package/dist/cdn/3ZONR255.js +2 -0
- package/dist/cdn/{73TM7AC3.js → 4KKONFB4.js} +1 -1
- package/dist/cdn/{55BU4BKF.js → 4KMJ4MXD.js} +1 -1
- package/dist/cdn/{RH7NE7PQ.js → 4ZPAVVYJ.js} +1 -1
- package/dist/cdn/{5LXNJLDP.js → 54FANYIK.js} +1 -1
- package/dist/cdn/{TXX4YUZE.js → 54YEESGE.js} +1 -1
- package/dist/cdn/{5BSHZPZF.js → 5DZK4XYB.js} +1 -1
- package/dist/cdn/{3YEIOG5K.js → 5ZXYOEVA.js} +1 -1
- package/dist/cdn/{P57WVAE6.js → 62HI5T32.js} +1 -1
- package/dist/cdn/{SPDWQ3X7.js → 6334DHXU.js} +1 -1
- package/dist/cdn/{2DKBIGVK.js → 6QHKZ6N2.js} +1 -1
- package/dist/cdn/{UH5XPUXK.js → 6TAMH7YM.js} +1 -1
- package/dist/cdn/{GXTMLJY2.js → 7HNSFXSY.js} +1 -1
- package/dist/cdn/{NSA227RN.js → 7TRR6NS7.js} +1 -1
- package/dist/cdn/{XTSXFNUW.js → 7UDR7DFA.js} +1 -1
- package/dist/cdn/{RECKWJ47.js → 7Y3634W2.js} +1 -1
- package/dist/cdn/{UKNLJI6H.js → ACJ3OWNF.js} +1 -1
- package/dist/cdn/{HI2MHLI4.js → ACPUOOSS.js} +1 -1
- package/dist/cdn/{ESEFVCYL.js → ACTDFQ7A.js} +1 -1
- package/dist/cdn/{JVDT4ESQ.js → ADNBYFDU.js} +1 -1
- package/dist/cdn/{EZUQRFG5.js → AFDMIMYJ.js} +1 -1
- package/dist/cdn/{EUUIFTPO.js → AO2HCAIF.js} +1 -1
- package/dist/cdn/{NGYPHTON.js → AVEA3JYC.js} +1 -1
- package/dist/cdn/{IJ5O452I.js → B4XZL24D.js} +1 -1
- package/dist/cdn/{EGIGTE23.js → B6JI7EFV.js} +1 -1
- package/dist/cdn/{K4ECYLPH.js → B6TEVZWE.js} +1 -1
- package/dist/cdn/{UFPZDUSI.js → BAK72T45.js} +1 -1
- package/dist/cdn/{C2ORI74C.js → BAKFDEYB.js} +1 -1
- package/dist/cdn/{RNAF7VZA.js → BIBFBRJ4.js} +1 -1
- package/dist/cdn/{H7A7IEZM.js → BTML4MEJ.js} +1 -1
- package/dist/cdn/{VSD57PLS.js → CKKHWLPH.js} +1 -1
- package/dist/cdn/{USJSJIQG.js → CQYUSMYI.js} +1 -1
- package/dist/cdn/{4HSQ3MH4.js → D2VHXI3B.js} +1 -1
- package/dist/cdn/{FYEZIEAC.js → D53MEGF3.js} +1 -1
- package/dist/cdn/{WN4PUWAA.js → DPV2S2W4.js} +1 -1
- package/dist/cdn/{AN24LRX4.js → DT2W5XTJ.js} +1 -1
- package/dist/cdn/{JRKZSZK7.js → EILZPSBO.js} +1 -1
- package/dist/cdn/{5QNAVXAT.js → EPDFNXOA.js} +1 -1
- package/dist/cdn/{PN4F47X5.js → EZMKINVL.js} +1 -1
- package/dist/cdn/{KEYU3UTM.js → FAXETKEB.js} +1 -1
- package/dist/cdn/{ZV35SZ3B.js → FBWOZGYD.js} +1 -1
- package/dist/cdn/{MSWVGLZL.js → FJHS7DDZ.js} +1 -1
- package/dist/cdn/FO5JD4B6.js +2 -0
- package/dist/cdn/{UDOSDUVZ.js → GBZSLSHZ.js} +1 -1
- package/dist/cdn/{NCPZQ732.js → GLXEUJPR.js} +1 -1
- package/dist/cdn/{KSI4ARWP.js → GMC5U6MT.js} +1 -1
- package/dist/cdn/{VZCLTVXQ.js → GMX26I6Z.js} +1 -1
- package/dist/cdn/{XYAVS2OX.js → GS6RPTCF.js} +1 -1
- package/dist/cdn/{IR3RO6CE.js → GUV5FMJI.js} +1 -1
- package/dist/cdn/{IJPD5VVH.js → GVWCR74G.js} +1 -1
- package/dist/cdn/{AJQT5NY5.js → GZLUCGFN.js} +1 -1
- package/dist/cdn/{2HPZ2LZX.js → GZU4L4YE.js} +1 -1
- package/dist/cdn/{VCIRPO4U.js → H36BMH7D.js} +1 -1
- package/dist/cdn/{ZZ2SI3QY.js → H3KW6SFE.js} +1 -1
- package/dist/cdn/{CJNHGAKV.js → H5AJS6TE.js} +1 -1
- package/dist/cdn/{X5MI4AJB.js → H7USABMA.js} +1 -1
- package/dist/cdn/{NF5HG2L6.js → HCDCLO25.js} +1 -1
- package/dist/cdn/HOII54SV.js +2 -0
- package/dist/cdn/{5WRS6WPQ.js → HRXTLTVO.js} +1 -1
- package/dist/cdn/{4Z5LA72W.js → ICR6VGXW.js} +1 -1
- package/dist/cdn/{4TLO4I7E.js → ID36ZNWO.js} +1 -1
- package/dist/cdn/{IQLK3X6G.js → IFEFYG7Y.js} +1 -1
- package/dist/cdn/{B7QE5WFS.js → IHAUCNQX.js} +1 -1
- package/dist/cdn/{YPXCJQIR.js → IONE557M.js} +1 -1
- package/dist/cdn/{QTBSMOZZ.js → IVJ5CA2B.js} +1 -1
- package/dist/cdn/{YLTLFUV4.js → J7AXA5LK.js} +1 -1
- package/dist/cdn/{TOQZCO77.js → JJ2XXUYL.js} +1 -1
- package/dist/cdn/{26KZ6INU.js → JPLDIX5B.js} +1 -1
- package/dist/cdn/{7Q5JURTW.js → JSEQVKIC.js} +1 -1
- package/dist/cdn/{QN2EDOZS.js → JV3HNXO4.js} +1 -1
- package/dist/cdn/{OOAEIRPO.js → KCOVOOEW.js} +1 -1
- package/dist/cdn/{3KNMK5SQ.js → KDQ3UZH7.js} +1 -1
- package/dist/cdn/{YADG2FLX.js → KN2YMMJU.js} +1 -1
- package/dist/cdn/{2LXTK3M6.js → KVFTDPP2.js} +1 -1
- package/dist/cdn/{ULDASAF6.js → KY6BBDSF.js} +1 -1
- package/dist/cdn/{GMIAQOJ4.js → KZII5LW7.js} +1 -1
- package/dist/cdn/{QJMUF7LF.js → LJBIF6OV.js} +1 -1
- package/dist/cdn/{K5FQLERT.js → LNQQJUF3.js} +1 -1
- package/dist/cdn/{SHI5TFAM.js → LNTMBB4T.js} +1 -1
- package/dist/cdn/{5DAEMQDV.js → LZFQODN7.js} +1 -1
- package/dist/cdn/{NBBZ2RCP.js → M4N5KK5H.js} +1 -1
- package/dist/cdn/{I7FGFZ6K.js → M7L5IJNX.js} +1 -1
- package/dist/cdn/{XQFIE7OG.js → MGC2TVCO.js} +1 -1
- package/dist/cdn/{TLFPDRN4.js → MVD7UGWN.js} +1 -1
- package/dist/cdn/{Z4NRODR3.js → N32WSYSG.js} +1 -1
- package/dist/cdn/{KVRNQED3.js → NKHYGAEA.js} +1 -1
- package/dist/cdn/{4N7IMNTU.js → NUAG24SD.js} +1 -1
- package/dist/cdn/{VJ7RRSTN.js → OKQZCFIY.js} +1 -1
- package/dist/cdn/{BEL7JEJT.js → ORWPOYLO.js} +1 -1
- package/dist/cdn/{GERZGXNJ.js → OVLA6XSV.js} +1 -1
- package/dist/cdn/{3EHO5MHY.js → PHXN4HLP.js} +1 -1
- package/dist/cdn/{462AIJMG.js → PJFK6R25.js} +1 -1
- package/dist/cdn/{RWDPNLZL.js → QMKT34NA.js} +1 -1
- package/dist/cdn/{LTVCO7RI.js → RCL7WVWK.js} +1 -1
- package/dist/cdn/{KCDVEUM2.js → ROZCUEUS.js} +1 -1
- package/dist/cdn/{KELKMID5.js → RW3PY4A7.js} +1 -1
- package/dist/cdn/{FAPCVWCN.js → S6Y5KXTC.js} +1 -1
- package/dist/cdn/{KPQ7QKLW.js → SAP7K723.js} +1 -1
- package/dist/cdn/{BY7AQBTP.js → SB3DKUEP.js} +1 -1
- package/dist/cdn/{2APRKMNC.js → SCWOG2PF.js} +1 -1
- package/dist/cdn/{74QLHBGF.js → SGRN6ZVC.js} +1 -1
- package/dist/cdn/{MHL6OD2A.js → SJCVYBDF.js} +1 -1
- package/dist/cdn/{E77V6B3J.js → SUKQDR3P.js} +1 -1
- package/dist/cdn/{7XFVXJB5.js → T7EQTOMC.js} +1 -1
- package/dist/cdn/{3IIR2IYM.js → TB6QF6QC.js} +1 -1
- package/dist/cdn/{C465LMYP.js → TNBTRBEH.js} +1 -1
- package/dist/cdn/{GTWN7BPR.js → TWFY346Z.js} +1 -1
- package/dist/cdn/{FYUMSWJT.js → TXPXLQUH.js} +1 -1
- package/dist/cdn/{UY5AIMVC.js → UEXXVM6G.js} +1 -1
- package/dist/cdn/{IXDLIUWE.js → UWYNYTMN.js} +1 -1
- package/dist/cdn/{XW6GOGMS.js → UWZCA674.js} +1 -1
- package/dist/cdn/{B7CQ4JRL.js → UZDC6JVX.js} +1 -1
- package/dist/cdn/{WDRTEXNS.js → UZZ34E4T.js} +1 -1
- package/dist/cdn/{O7X634VO.js → VNENCDEM.js} +1 -1
- package/dist/cdn/{VHQAPKYZ.js → VRXZT4W2.js} +1 -1
- package/dist/cdn/{DDGNYV3G.js → VYRAJF74.js} +1 -1
- package/dist/cdn/{4M36NHKY.js → W3RFQNTS.js} +1 -1
- package/dist/cdn/{XGNYY3DG.js → WC7KZ5RN.js} +1 -1
- package/dist/cdn/{C44BQNE3.js → WF3KH3KX.js} +1 -1
- package/dist/cdn/{EJDW5H7K.js → WG6S2XJI.js} +1 -1
- package/dist/cdn/WGTXCQ3O.js +2 -0
- package/dist/cdn/{LYR3SG7G.js → WKGWLLC5.js} +1 -1
- package/dist/cdn/{I5TYSCGY.js → WRN5WBB6.js} +1 -1
- package/dist/cdn/{CERRAXUL.js → WVRMCTHV.js} +1 -1
- package/dist/cdn/{YGAM5ZGX.js → X433YAPN.js} +1 -1
- package/dist/cdn/{IA6RTEIG.js → X5NQ6JCY.js} +1 -1
- package/dist/cdn/{GS2J7N67.js → XKBIB37X.js} +1 -1
- package/dist/cdn/{4U5ABDZF.js → XPPVR4JK.js} +1 -1
- package/dist/cdn/{X4SFURDR.js → YQWYH3MV.js} +1 -1
- package/dist/cdn/{IRKROAV6.js → YVAWGS4S.js} +1 -1
- package/dist/cdn/{TX5ELMHY.js → YVL6U4S3.js} +1 -1
- package/dist/cdn/{NCWWAHRX.js → YZYPUE3P.js} +1 -1
- package/dist/cdn/{DNIMBCHX.js → ZC4LZHSU.js} +1 -1
- package/dist/cdn/{GQNVN73Q.js → ZNN7Y3Q2.js} +1 -1
- package/dist/cdn/{QGBDUFYH.js → ZQZPGG2I.js} +1 -1
- package/dist/cdn/{S2TMKDXN.js → ZWWMN3TM.js} +1 -1
- package/dist/cdn/{JRSUWSDE.js → ZXAA7KJS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/manager.js +5 -5
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useForm.js +10 -11
- package/dist/components/calcite-date-picker/customElement.js +8 -10
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +2 -11
- package/dist/components/calcite-input-date-picker/customElement.js +0 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +7 -7
- package/dist/components/calcite-menu-item/customElement.js +3 -0
- package/dist/components/calcite-meter/customElement.d.ts +6 -6
- package/dist/components/calcite-meter/customElement.js +14 -7
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +3 -0
- package/dist/components/calcite-panel/customElement.d.ts +6 -6
- package/dist/components/calcite-popover/customElement.d.ts +4 -4
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.d.ts +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +3 -4
- package/dist/cdn/5Z2NRA5O.js +0 -2
- package/dist/cdn/H3X6JWD6.js +0 -2
- package/dist/cdn/OCKF5CDZ.js +0 -2
- package/dist/cdn/WL5VMMRE.js +0 -2
- package/dist/cdn/WUMRFH6V.js +0 -2
|
@@ -30,7 +30,7 @@ class DatePicker extends LitElement {
|
|
|
30
30
|
this.listen("keydown", this.keyDownHandler);
|
|
31
31
|
}
|
|
32
32
|
static {
|
|
33
|
-
this.properties = { activeEndDate: [16, {}, { state: true }], activeStartDate: [16, {}, { state: true }], dateTimeFormat: [16, {}, { state: true }],
|
|
33
|
+
this.properties = { activeEndDate: [16, {}, { state: true }], activeStartDate: [16, {}, { state: true }], dateTimeFormat: [16, {}, { state: true }], hoverRange: [16, {}, { state: true }], localeData: [16, {}, { state: true }], activeDate: [0, {}, { attribute: false }], activeRange: [3, {}, { reflect: true }], calendars: [11, {}, { type: Number, reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, numberingSystem: [3, {}, { reflect: true }], proximitySelectionDisabled: [7, {}, { reflect: true, type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
36
|
this.styles = styles;
|
|
@@ -67,7 +67,7 @@ class DatePicker extends LitElement {
|
|
|
67
67
|
if (changes.has("range") && this.range || changes.has("maxAsDate") || changes.has("minAsDate")) {
|
|
68
68
|
this.setActiveStartAndEndDates();
|
|
69
69
|
}
|
|
70
|
-
if (changes.has("activeDate")) {
|
|
70
|
+
if (changes.has("activeDate") && this.hasUpdated) {
|
|
71
71
|
this.activeDateWatcher(this.activeDate);
|
|
72
72
|
}
|
|
73
73
|
if (changes.has("messages") && this.hasUpdated) {
|
|
@@ -78,13 +78,11 @@ class DatePicker extends LitElement {
|
|
|
78
78
|
if (!this.range) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this.resetActiveDates();
|
|
87
|
-
}
|
|
81
|
+
if (newValue) {
|
|
82
|
+
this.activeStartDate = newValue;
|
|
83
|
+
this.activeEndDate = nextMonth(this.activeStartDate);
|
|
84
|
+
} else {
|
|
85
|
+
this.resetActiveDates();
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
valueHandler(value) {
|
|
@@ -100,7 +98,7 @@ class DatePicker extends LitElement {
|
|
|
100
98
|
valueAsDateWatcher(newValueAsDate) {
|
|
101
99
|
if (this.range && Array.isArray(newValueAsDate) && !this.rangeValueChangedByUser) {
|
|
102
100
|
this.setActiveStartAndEndDates();
|
|
103
|
-
} else if (newValueAsDate && newValueAsDate !== this.activeDate) {
|
|
101
|
+
} else if (!this.range && newValueAsDate && newValueAsDate !== this.activeDate) {
|
|
104
102
|
this.activeDate = newValueAsDate;
|
|
105
103
|
}
|
|
106
104
|
}
|
|
@@ -36,7 +36,7 @@ class DatePickerDay extends LitElement {
|
|
|
36
36
|
this.listen("keydown", this.keyDownHandler);
|
|
37
37
|
}
|
|
38
38
|
static {
|
|
39
|
-
this.properties = { active: [7, {}, { reflect: true, type: Boolean }], currentMonth: [7, {}, { reflect: true, type: Boolean }], dateTimeFormat: [0, {}, { attribute: false }], day: [9, {}, { type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], endOfRange: [7, {}, { reflect: true, type: Boolean }], highlighted: [7, {}, { reflect: true, type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }],
|
|
39
|
+
this.properties = { active: [7, {}, { reflect: true, type: Boolean }], currentMonth: [7, {}, { reflect: true, type: Boolean }], dateTimeFormat: [0, {}, { attribute: false }], day: [9, {}, { type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], endOfRange: [7, {}, { reflect: true, type: Boolean }], highlighted: [7, {}, { reflect: true, type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], rangeHover: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], startOfRange: [7, {}, { reflect: true, type: Boolean }], value: [0, {}, { attribute: false }] };
|
|
40
40
|
}
|
|
41
41
|
static {
|
|
42
42
|
this.styles = styles;
|
|
@@ -11,10 +11,8 @@ const CSS = {
|
|
|
11
11
|
calendarStart: "calendar--start",
|
|
12
12
|
currentDay: "current-day",
|
|
13
13
|
dayContainer: "day-container",
|
|
14
|
-
insideRangeHover: "inside-range--hover",
|
|
15
14
|
month: "month",
|
|
16
15
|
noncurrent: "noncurrent",
|
|
17
|
-
outsideRangeHover: "outside-range--hover",
|
|
18
16
|
weekDays: "week-days",
|
|
19
17
|
weekHeader: "week-header",
|
|
20
18
|
weekHeaderContainer: "week-header-container"
|
|
@@ -246,15 +244,12 @@ class DatePickerMonth extends LitElement {
|
|
|
246
244
|
let month = this.activeDate.getMonth();
|
|
247
245
|
const nextMonth2 = month + 1;
|
|
248
246
|
month = position === "end" ? nextMonth2 : month;
|
|
249
|
-
let dayInWeek = 0;
|
|
250
|
-
const getDayInWeek = () => dayInWeek++ % 7;
|
|
251
247
|
const year = this.activeDate.getFullYear();
|
|
252
248
|
const days = [
|
|
253
249
|
...prevMonthDays.map((day) => {
|
|
254
250
|
return {
|
|
255
251
|
active: false,
|
|
256
252
|
day,
|
|
257
|
-
dayInWeek: getDayInWeek(),
|
|
258
253
|
date: new Date(year, month - 1, day)
|
|
259
254
|
};
|
|
260
255
|
}),
|
|
@@ -267,7 +262,6 @@ class DatePickerMonth extends LitElement {
|
|
|
267
262
|
currentMonth: true,
|
|
268
263
|
currentDay: isCurrentDay,
|
|
269
264
|
day,
|
|
270
|
-
dayInWeek: getDayInWeek(),
|
|
271
265
|
date
|
|
272
266
|
};
|
|
273
267
|
}),
|
|
@@ -275,7 +269,6 @@ class DatePickerMonth extends LitElement {
|
|
|
275
269
|
return {
|
|
276
270
|
active: false,
|
|
277
271
|
day,
|
|
278
|
-
dayInWeek: getDayInWeek(),
|
|
279
272
|
date: new Date(year, nextMonth2, day)
|
|
280
273
|
};
|
|
281
274
|
})
|
|
@@ -326,14 +319,12 @@ class DatePickerMonth extends LitElement {
|
|
|
326
319
|
const nextMonthDays = this.getDays(endCalendarPrevMonDays, endCalendarCurrMonDays, endCalendarNextMonDays, "end");
|
|
327
320
|
return html`<div class=${safeClassMap({ [CSS.calendarContainer]: true })} role=grid>${this.renderCalendar(adjustedWeekDays, days)}${this.range && this.calendars === 2 && this.renderCalendar(adjustedWeekDays, nextMonthDays, true) || ""}</div>`;
|
|
328
321
|
}
|
|
329
|
-
renderDateDay({ active, currentMonth, currentDay, date, day
|
|
322
|
+
renderDateDay({ active, currentMonth, currentDay, date, day }, key) {
|
|
330
323
|
const isDateInRange = inRange(date, this.min, this.max);
|
|
331
324
|
return keyed(key, html`<div class=${safeClassMap({ [CSS.dayContainer]: true })} role=gridcell><calcite-date-picker-day .active=${active} class=${safeClassMap({
|
|
332
325
|
[CSS.currentDay]: currentDay,
|
|
333
|
-
[CSS.insideRangeHover]: this.isHoverInRange(),
|
|
334
|
-
[CSS.outsideRangeHover]: !this.isHoverInRange(),
|
|
335
326
|
[CSS.noncurrent]: this.range && this.calendars === 2 && !currentMonth
|
|
336
|
-
})} .currentMonth=${currentMonth} .dateTimeFormat=${this.dateTimeFormat} .day=${day} .disabled=${!isDateInRange} .endOfRange=${this.isEndOfRange(date)} .highlighted=${this.betweenSelectedRange(date)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate)} .
|
|
327
|
+
})} .currentMonth=${currentMonth} .dateTimeFormat=${this.dateTimeFormat} .day=${day} .disabled=${!isDateInRange} .endOfRange=${this.isEndOfRange(date)} .highlighted=${this.betweenSelectedRange(date)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate)} .rangeHover=${isDateInRange && this.isRangeHover(date)} .scale=${this.scale} .selected=${this.isSelected(date)} .startOfRange=${this.isStartOfRange(date)} .value=${date} ${ref(this.storeDayRef)}></calcite-date-picker-day></div>`);
|
|
337
328
|
}
|
|
338
329
|
renderCalendar(weekDays, days, isEndCalendar = false) {
|
|
339
330
|
return html`<div class=${safeClassMap({
|
|
@@ -276,7 +276,6 @@ class InputDatePicker extends LitElement {
|
|
|
276
276
|
}
|
|
277
277
|
valueAsDateWatcher(valueAsDate) {
|
|
278
278
|
const newValue = Array.isArray(valueAsDate) ? [dateToISO(valueAsDate[0]), dateToISO(valueAsDate[1])] : dateToISO(valueAsDate);
|
|
279
|
-
this.datePickerActiveDate = Array.isArray(valueAsDate) ? valueAsDate[0] : valueAsDate;
|
|
280
279
|
if (this.value !== newValue) {
|
|
281
280
|
this.valueAsDateChangedExternally = true;
|
|
282
281
|
this.value = newValue;
|
|
@@ -25,13 +25,13 @@ export abstract class MenuItem extends LitElement {
|
|
|
25
25
|
*/
|
|
26
26
|
accessor breadcrumb: boolean;
|
|
27
27
|
/** Specifies the URL destination of the component, which can be set as an absolute or relative path. */
|
|
28
|
-
accessor href: string;
|
|
28
|
+
accessor href: string | undefined;
|
|
29
29
|
/** Specifies an icon to display at the end of the component. */
|
|
30
|
-
accessor iconEnd: IconName;
|
|
30
|
+
accessor iconEnd: IconName | undefined;
|
|
31
31
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
32
|
-
accessor iconFlipRtl: FlipContext;
|
|
32
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
33
33
|
/** Specifies an icon to display at the start of the component. */
|
|
34
|
-
accessor iconStart: IconName;
|
|
34
|
+
accessor iconStart: IconName | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Specifies an accessible label for the component.
|
|
37
37
|
*
|
|
@@ -54,15 +54,15 @@ export abstract class MenuItem extends LitElement {
|
|
|
54
54
|
*
|
|
55
55
|
* @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
|
|
56
56
|
*/
|
|
57
|
-
accessor rel: string;
|
|
57
|
+
accessor rel: string | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Specifies where to open the linked document defined in the `href` property.
|
|
60
60
|
*
|
|
61
61
|
* @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
|
|
62
62
|
*/
|
|
63
|
-
accessor target: string;
|
|
63
|
+
accessor target: string | undefined;
|
|
64
64
|
/** Specifies the text to display. */
|
|
65
|
-
accessor text: string;
|
|
65
|
+
accessor text: string | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* Sets focus on the component.
|
|
68
68
|
*
|
|
@@ -45,9 +45,12 @@ class MenuItem extends LitElement {
|
|
|
45
45
|
this.anchorRef = createRef();
|
|
46
46
|
this.direction = useDirection();
|
|
47
47
|
this.dropdownActionRef = createRef();
|
|
48
|
+
this.isFocused = false;
|
|
48
49
|
this.messages = useT9n();
|
|
49
50
|
this.focusSetter = useSetFocus()(this);
|
|
50
51
|
this.hasSubmenu = false;
|
|
52
|
+
this.active = false;
|
|
53
|
+
this.breadcrumb = false;
|
|
51
54
|
this.isTopLevelItem = false;
|
|
52
55
|
this.open = false;
|
|
53
56
|
this.calciteInternalMenuItemKeyEvent = createEvent();
|
|
@@ -42,7 +42,7 @@ export abstract class Meter extends LitElement {
|
|
|
42
42
|
*
|
|
43
43
|
* @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
|
|
44
44
|
*/
|
|
45
|
-
accessor form: string;
|
|
45
|
+
accessor form: string | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
48
48
|
*
|
|
@@ -50,7 +50,7 @@ export abstract class Meter extends LitElement {
|
|
|
50
50
|
*/
|
|
51
51
|
accessor groupSeparator: boolean;
|
|
52
52
|
/** Specifies a high value. When `fillType` is `"range"`, displays a different color when above the specified threshold. */
|
|
53
|
-
accessor high: number;
|
|
53
|
+
accessor high: number | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Specifies an accessible label for the component.
|
|
56
56
|
*
|
|
@@ -58,7 +58,7 @@ export abstract class Meter extends LitElement {
|
|
|
58
58
|
*/
|
|
59
59
|
accessor label: string;
|
|
60
60
|
/** Specifies a low value. When `fillType` is `"range"`, displays a different color when above the specified threshold. */
|
|
61
|
-
accessor low: number;
|
|
61
|
+
accessor low: number | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Specifies the component's highest allowed value.
|
|
64
64
|
*
|
|
@@ -78,9 +78,9 @@ export abstract class Meter extends LitElement {
|
|
|
78
78
|
*
|
|
79
79
|
* @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
|
|
80
80
|
*/
|
|
81
|
-
accessor name: string;
|
|
81
|
+
accessor name: string | undefined;
|
|
82
82
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
83
|
-
accessor numberingSystem: NumberingSystem;
|
|
83
|
+
accessor numberingSystem: NumberingSystem | undefined;
|
|
84
84
|
/**
|
|
85
85
|
* When `true`, displays the values of `high`, `low`, `min`, and `max`.
|
|
86
86
|
*
|
|
@@ -106,7 +106,7 @@ export abstract class Meter extends LitElement {
|
|
|
106
106
|
*/
|
|
107
107
|
accessor unitLabel: string;
|
|
108
108
|
/** Specifies the component's value. */
|
|
109
|
-
accessor value: number;
|
|
109
|
+
accessor value: number | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* When `true`, displays the `value`.
|
|
112
112
|
*
|
|
@@ -39,6 +39,11 @@ class Meter extends LitElement {
|
|
|
39
39
|
this.minPercent = 0;
|
|
40
40
|
this.resizeObserver = createObserver("resize", () => this.resizeHandler());
|
|
41
41
|
this.valueLabelRef = createRef();
|
|
42
|
+
this.currentPercent = 0;
|
|
43
|
+
this.highActive = false;
|
|
44
|
+
this.highPercent = 100;
|
|
45
|
+
this.lowActive = false;
|
|
46
|
+
this.lowPercent = 0;
|
|
42
47
|
this.appearance = "outline-fill";
|
|
43
48
|
this.disabled = false;
|
|
44
49
|
this.fillType = "range";
|
|
@@ -88,12 +93,8 @@ class Meter extends LitElement {
|
|
|
88
93
|
this.updateLabels();
|
|
89
94
|
}
|
|
90
95
|
updateLabels() {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
if (this.rangeLabels) {
|
|
95
|
-
this.determineVisibleLabels();
|
|
96
|
-
}
|
|
96
|
+
this.determineValueLabelPosition();
|
|
97
|
+
this.determineVisibleLabels();
|
|
97
98
|
}
|
|
98
99
|
calculateValues() {
|
|
99
100
|
const { min, max, low, high, value } = this;
|
|
@@ -154,9 +155,12 @@ class Meter extends LitElement {
|
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
intersects(el1, el2) {
|
|
157
|
-
return el1 && el2 && intersects(el1.getBoundingClientRect(), el2.getBoundingClientRect());
|
|
158
|
+
return !!(el1 && el2 && intersects(el1.getBoundingClientRect(), el2.getBoundingClientRect()));
|
|
158
159
|
}
|
|
159
160
|
determineVisibleLabels() {
|
|
161
|
+
if (!this.rangeLabels) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
160
164
|
const { minLabelRef: { value: minLabelEl }, lowLabelRef: { value: lowLabelEl }, highLabelRef: { value: highLabelEl }, maxLabelRef: { value: maxLabelEl } } = this;
|
|
161
165
|
const highMaxOverlap = this.intersects(highLabelEl, maxLabelEl);
|
|
162
166
|
const lowHighOverlap = this.intersects(lowLabelEl, highLabelEl);
|
|
@@ -189,6 +193,9 @@ class Meter extends LitElement {
|
|
|
189
193
|
}
|
|
190
194
|
determineValueLabelPosition() {
|
|
191
195
|
const { valueLabelRef: { value: valueLabelEl }, meterContainerRef: { value: meterContainerEl }, currentPercent } = this;
|
|
196
|
+
if (!valueLabelEl || !meterContainerEl) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
192
199
|
const valuePosition = currentPercent > 100 ? 100 : currentPercent > 0 ? currentPercent : 0;
|
|
193
200
|
const valueLabelWidth = valueLabelEl.getBoundingClientRect().width;
|
|
194
201
|
const containerWidth = meterContainerEl.getBoundingClientRect().width;
|
|
@@ -26,7 +26,7 @@ export abstract class Pagination extends LitElement {
|
|
|
26
26
|
last?: string;
|
|
27
27
|
};
|
|
28
28
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
29
|
-
accessor numberingSystem: NumberingSystem;
|
|
29
|
+
accessor numberingSystem: NumberingSystem | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Specifies the number of items per page.
|
|
32
32
|
*
|
|
@@ -42,7 +42,10 @@ class Pagination extends LitElement {
|
|
|
42
42
|
this.resizeObserver = createObserver("resize", (entries) => entries.forEach(this.resizeHandler));
|
|
43
43
|
this.messages = useT9n();
|
|
44
44
|
this.focusSetter = useSetFocus()(this);
|
|
45
|
+
this.isXXSmall = false;
|
|
46
|
+
this.lastStartItem = 1;
|
|
45
47
|
this.maxItems = maxItemBreakpoints.xxsmall;
|
|
48
|
+
this.totalPages = 1;
|
|
46
49
|
this.groupSeparator = false;
|
|
47
50
|
this.pageSize = 20;
|
|
48
51
|
this.scale = "m";
|
|
@@ -46,7 +46,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
46
46
|
*/
|
|
47
47
|
export abstract class Panel extends LitElement {
|
|
48
48
|
/** Passes a function to run before the component closes. */
|
|
49
|
-
accessor beforeClose: () => Promise<void
|
|
49
|
+
accessor beforeClose: (() => Promise<void>) | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* When `true`, displays a close button in the component.
|
|
52
52
|
*
|
|
@@ -78,7 +78,7 @@ export abstract class Panel extends LitElement {
|
|
|
78
78
|
*/
|
|
79
79
|
accessor collapsible: boolean;
|
|
80
80
|
/** Specifies a description for the component. */
|
|
81
|
-
accessor description: string;
|
|
81
|
+
accessor description: string | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
84
84
|
*
|
|
@@ -86,11 +86,11 @@ export abstract class Panel extends LitElement {
|
|
|
86
86
|
*/
|
|
87
87
|
accessor disabled: boolean;
|
|
88
88
|
/** Specifies the component's heading text. */
|
|
89
|
-
accessor heading: string;
|
|
89
|
+
accessor heading: string | undefined;
|
|
90
90
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
91
|
-
accessor headingLevel: HeadingLevel;
|
|
91
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
92
92
|
/** Specifies an icon to display. */
|
|
93
|
-
accessor icon: IconName;
|
|
93
|
+
accessor icon: IconName | undefined;
|
|
94
94
|
/**
|
|
95
95
|
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
96
96
|
*
|
|
@@ -104,7 +104,7 @@ export abstract class Panel extends LitElement {
|
|
|
104
104
|
*/
|
|
105
105
|
accessor loading: boolean;
|
|
106
106
|
/** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
|
|
107
|
-
accessor menuFlipPlacements: FlipPlacement[];
|
|
107
|
+
accessor menuFlipPlacements: FlipPlacement[] | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* When `true`, the action menu items in the `header-menu-actions` slot are open.
|
|
110
110
|
*
|
|
@@ -33,7 +33,7 @@ export abstract class Popover extends LitElement {
|
|
|
33
33
|
*/
|
|
34
34
|
accessor flipDisabled: boolean;
|
|
35
35
|
/** Specifies the component's fallback `placement` for slotted content when it's initial or specified `placement` has insufficient space available. */
|
|
36
|
-
accessor flipPlacements: FlipPlacement[];
|
|
36
|
+
accessor flipPlacements: FlipPlacement[] | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* When `true`, prevents focus trapping.
|
|
39
39
|
*
|
|
@@ -49,11 +49,11 @@ export abstract class Popover extends LitElement {
|
|
|
49
49
|
* `"extraContainers"` specifies additional focusable elements external to the trap, such as 3rd-party components appending elements to the document body, and
|
|
50
50
|
* `"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).
|
|
51
51
|
*/
|
|
52
|
-
accessor focusTrapOptions: Partial<FocusTrapOptions
|
|
52
|
+
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
53
53
|
/** Specifies the component's heading text. */
|
|
54
|
-
accessor heading: string;
|
|
54
|
+
accessor heading: string | undefined;
|
|
55
55
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
56
|
-
accessor headingLevel: HeadingLevel;
|
|
56
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* Specifies an accessible label for the component.
|
|
59
59
|
*
|
|
@@ -147,7 +147,7 @@ class Popover extends LitElement {
|
|
|
147
147
|
}
|
|
148
148
|
setFilteredPlacements() {
|
|
149
149
|
const { el, flipPlacements } = this;
|
|
150
|
-
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) :
|
|
150
|
+
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : void 0;
|
|
151
151
|
}
|
|
152
152
|
hide() {
|
|
153
153
|
this.open = false;
|
|
@@ -8,7 +8,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
8
8
|
*/
|
|
9
9
|
export abstract class Progress extends LitElement {
|
|
10
10
|
/** Specifies an accessible label for the component. */
|
|
11
|
-
accessor label: string;
|
|
11
|
+
accessor label: string | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* When `true` and type is `"indeterminate"`, reverses the animation direction.
|
|
14
14
|
*
|
|
@@ -16,7 +16,7 @@ export abstract class Progress extends LitElement {
|
|
|
16
16
|
*/
|
|
17
17
|
accessor reversed: boolean;
|
|
18
18
|
/** Text that displays under the component's indicator. */
|
|
19
|
-
accessor text: string;
|
|
19
|
+
accessor text: string | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Specifies the component type.
|
|
22
22
|
*
|