@ganpatiinfo/gids-core-web 9.0.0 → 10.0.0
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/css/index.css +1445 -1
- package/dist/css/index.css.map +1 -1
- package/dist/gids-activity-gauge.d.ts +11 -0
- package/dist/gids-activity-gauge.js +1 -0
- package/dist/gids-bar-chart.d.ts +11 -0
- package/dist/gids-bar-chart.js +1 -0
- package/dist/gids-calendar-header-panel.d.ts +11 -0
- package/dist/gids-calendar-header-panel.js +1 -0
- package/dist/gids-calendar-month-list.d.ts +11 -0
- package/dist/gids-calendar-month-list.js +1 -0
- package/dist/gids-calendar-year-list.d.ts +11 -0
- package/dist/gids-calendar-year-list.js +1 -0
- package/dist/gids-calendar.d.ts +11 -0
- package/dist/gids-calendar.js +1 -0
- package/dist/gids-chart-legend-item.d.ts +11 -0
- package/dist/gids-chart-legend-item.js +1 -0
- package/dist/gids-chart-legend.d.ts +11 -0
- package/dist/gids-chart-legend.js +1 -0
- package/dist/gids-chart.d.ts +11 -0
- package/dist/gids-chart.js +1 -0
- package/dist/gids-chevron-button.d.ts +11 -0
- package/dist/gids-chevron-button.js +1 -0
- package/dist/gids-dot.d.ts +11 -0
- package/dist/gids-dot.js +1 -0
- package/dist/gids-dropdown-field.d.ts +11 -0
- package/dist/gids-dropdown-field.js +1 -0
- package/dist/gids-dropdown-picker.d.ts +11 -0
- package/dist/gids-dropdown-picker.js +1 -0
- package/dist/gids-dropdown.d.ts +11 -0
- package/dist/gids-dropdown.js +1 -0
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +11 -0
- package/dist/gids-level-gauge.js +1 -0
- package/dist/gids-line-chart.d.ts +11 -0
- package/dist/gids-line-chart.js +1 -0
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +11 -0
- package/dist/gids-pie-chart.js +1 -0
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +11 -0
- package/dist/gids-progress-circle.js +1 -0
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/index.js +1 -1
- package/dist/p-9_mrQ7ac.js +1 -0
- package/dist/p-B81J5HCC.js +1 -0
- package/dist/p-BFHWXEeg.js +1 -0
- package/dist/p-B_HaXpJZ.js +1 -0
- package/dist/p-BaO-kEWS.js +1 -0
- package/dist/p-BiPAgxAQ.js +1 -0
- package/dist/p-Bmb-HiXg.js +1 -0
- package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
- package/dist/{p-iCAclJND.js → p-BvYnawkJ.js} +1 -1
- package/dist/p-CIP0xyhD.js +1 -0
- package/dist/p-CJzporPT.js +1 -0
- package/dist/p-CPSHPtGE.js +1 -0
- package/dist/p-CRngHsR7.js +1 -0
- package/dist/p-Ct3Ixgvf.js +1 -0
- package/dist/p-D93TNeOt.js +1 -0
- package/dist/p-DKsrt7dx.js +1 -0
- package/dist/p-DZWWuJac.js +1 -0
- package/dist/p-D_wcwB7E.js +1 -0
- package/dist/p-Dehss-X0.js +1 -0
- package/dist/{p-DvoHLz_5.js → p-DfFqFdmS.js} +1 -1
- package/dist/p-KxRqlvSh.js +1 -0
- package/dist/p-MgTlrSP_.js +1 -0
- package/dist/p-h6alWGT8.js +1 -0
- package/dist/p-quZYWCxU.js +1 -0
- package/dist/p-tyIgTtUC.js +1 -0
- package/dist/p-uqSjmNkw.js +1 -0
- package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
- package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
- package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
- package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
- package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
- package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
- package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
- package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
- package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
- package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
- package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
- package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
- package/dist/types/components.d.ts +1352 -71
- package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
- package/dist-bundled/es/gids-activity-gauge.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +6 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
- package/dist-bundled/es/gids-calendar-month-list.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +6 -0
- package/dist-bundled/es/gids-calendar.js +153 -0
- package/dist-bundled/es/gids-chart-legend-item.js +6 -0
- package/dist-bundled/es/gids-chart-legend.js +6 -0
- package/dist-bundled/es/gids-chart.js +108 -0
- package/dist-bundled/es/gids-chevron-button.js +56 -0
- package/dist-bundled/es/gids-dot.js +6 -0
- package/dist-bundled/es/gids-dropdown-field.js +88 -0
- package/dist-bundled/es/gids-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dropdown.js +6 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-icon.js +4 -30
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +6 -0
- package/dist-bundled/es/gids-line-chart.js +6 -0
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +6 -6
- package/dist-bundled/es/gids-overlay-provider.js +17 -17
- package/dist-bundled/es/gids-password-field.js +29 -28
- package/dist-bundled/es/gids-pie-chart.js +6 -0
- package/dist-bundled/es/gids-popover.js +7 -7
- package/dist-bundled/es/gids-progress-circle.js +6 -0
- package/dist-bundled/es/gids-scrim.js +8 -8
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +16 -15
- package/dist-bundled/es/gids-toggle-button.js +8 -8
- package/dist-bundled/es/gids-tooltip.js +5 -5
- package/dist-bundled/es/index.js +1 -1
- package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
- package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
- package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
- package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
- package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
- package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
- package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
- package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-BnL97lOW-BO0p4EdC.js} +9 -9
- package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-BvYnawkJ-DohV9UNG.js} +3 -3
- package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
- package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
- package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
- package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
- package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
- package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
- package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
- package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
- package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
- package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
- package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-KxRqlvSh-JOFDmT0B.js} +5 -5
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
- package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
- package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
- package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
- package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
- package/dist-bundled/umd/gids-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
- package/package.json +148 -4
- package/dist/p-CFw4_-5A.js +0 -1
- package/dist/p-DijVkS9b.js +0 -1
- package/dist/p-DybsMR13.js +0 -1
- package/dist/p-ibikYq-w.js +0 -1
- package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FunctionalComponent, VNode } from '../stencil-public-runtime';
|
|
2
2
|
export interface TestHtmlChildrenValidity<T = Record<string, unknown>> {
|
|
3
|
-
children?: VNode;
|
|
3
|
+
children?: VNode | VNode[];
|
|
4
4
|
classNameToBeValidated?: string;
|
|
5
5
|
childrenToBeValidated?: FunctionalComponent<T>;
|
|
6
6
|
currentComponentName?: string;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { _ as P, P as c, u as D, T as d } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { g as S, n as M } from "./p-CIP0xyhD-D6y5soLj.js";
|
|
3
|
+
import { l as N } from "./p-Bmb-HiXg-MyHWdhpw.js";
|
|
4
|
+
import { u as Y } from "./p-CJzporPT-I_OdjJsQ.js";
|
|
5
|
+
import { g as k } from "./p-9_mrQ7ac-If6e6cvJ.js";
|
|
6
|
+
import { r as w } from "./p-BFHWXEeg-ByjSjz8i.js";
|
|
7
|
+
import { d as x } from "./p-BiPAgxAQ-BtMBQpJY.js";
|
|
8
|
+
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => b("gids-calendar-cell", {
|
|
10
|
+
"gids-calendar-cell--selected": t && !e && !a,
|
|
11
|
+
"gids-calendar-cell--today": a && !e && !r,
|
|
12
|
+
"gids-calendar-cell--label-non-effective": n === "non-effective",
|
|
13
|
+
"gids-calendar-cell--default-effective": n === "effective" && !e && !a && !t,
|
|
14
|
+
"gids-calendar-cell--selected-effective": t && n === "effective" && !e && !a,
|
|
15
|
+
"gids-calendar-cell--today-effective": a && n === "effective" && !e && !r,
|
|
16
|
+
"gids-calendar-cell--default-disabled": e && !a && !t,
|
|
17
|
+
"gids-calendar-cell--selected-disabled": e && t && !a,
|
|
18
|
+
"gids-calendar-cell--today-disabled": e && a && !r,
|
|
19
|
+
"gids-calendar-cell--today-dot": a && !e && r,
|
|
20
|
+
"gids-calendar-cell--today-dot-effective": a && n === "effective" && !e && r,
|
|
21
|
+
"gids-calendar-cell--today-dot-disabled": e && a && r
|
|
22
|
+
}, l), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
__proto__: null,
|
|
24
|
+
getGidsCalendarCellClassNames: _
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), A = (e) => b("gids-calendar-day-cell", e), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
|
+
__proto__: null,
|
|
27
|
+
getGidsCalendarDayCellClassNames: A
|
|
28
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = ({ width: e }, t) => b("gids-calendar", {
|
|
29
|
+
"gids-calendar--width-fixed": e === "fixed",
|
|
30
|
+
"gids-calendar--width-intrinsic": e === "intrinsic"
|
|
31
|
+
}, t), T = ({ currentMonth: e, currentYear: t }) => {
|
|
32
|
+
if (!t || !e)
|
|
33
|
+
return [];
|
|
34
|
+
const a = t, n = e - 1, r = new Date(a, n, 1).getDay(), l = new Date(a, n + 1, 0).getDate(), g = new Date(a, n, 0).getDate(), o = [], h = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
35
|
+
for (let s = r - 1; s >= 0; s--) {
|
|
36
|
+
const i = g - s, u = n === 0 ? 12 : n, f = `${n === 0 ? a - 1 : a}-${String(u).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
|
|
37
|
+
o.push({
|
|
38
|
+
day: i,
|
|
39
|
+
isCurrentMonth: !1,
|
|
40
|
+
dateString: f,
|
|
41
|
+
isToday: h === f
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
for (let s = 1; s <= l; s++) {
|
|
45
|
+
const i = `${a}-${String(e).padStart(2, "0")}-${String(s).padStart(2, "0")}`;
|
|
46
|
+
o.push({
|
|
47
|
+
day: s,
|
|
48
|
+
isCurrentMonth: !0,
|
|
49
|
+
dateString: i,
|
|
50
|
+
isToday: h === i
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const m = 42 - o.length;
|
|
54
|
+
for (let s = 1; s <= m; s++) {
|
|
55
|
+
const i = n === 11 ? 1 : n + 2, p = `${n === 11 ? a + 1 : a}-${String(i).padStart(2, "0")}-${String(s).padStart(2, "0")}`;
|
|
56
|
+
o.push({
|
|
57
|
+
day: s,
|
|
58
|
+
isCurrentMonth: !1,
|
|
59
|
+
dateString: p,
|
|
60
|
+
isToday: h === p
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return o;
|
|
64
|
+
}, H = () => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
|
+
__proto__: null,
|
|
66
|
+
generateCalendarDays: T,
|
|
67
|
+
generateCalendarWeekdays: H,
|
|
68
|
+
getGidsCalendarClassNames: $
|
|
69
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarCellClassNames: j } = E, C = ({ label: e, dot: t, disabled: a, selected: n, today: r, onPressCalendarCell: l, class: g, role: o = "gridcell", cellType: h = "effective", ...m }) => {
|
|
70
|
+
const s = !a && h === "effective";
|
|
71
|
+
return d("button", { class: j({ disabled: a, selected: n, today: r, cellType: h, dot: t }, g), type: "button", role: o, "aria-selected": n ? "true" : "false", disabled: a, onClick: (i) => {
|
|
72
|
+
if (i.defaultPrevented || a || !s) return;
|
|
73
|
+
const u = new CustomEvent("onPressCalendarCell", { bubbles: !0, composed: !0, detail: { cellValue: e, selected: n, disabled: a, dot: t, today: r } });
|
|
74
|
+
l && l(u);
|
|
75
|
+
}, ...m }, e ? d("span", null, e) : null, t ? d("gids-dot", { appearance: (() => {
|
|
76
|
+
let i = "subtle";
|
|
77
|
+
return n && !a && (i = "static-inverse"), i;
|
|
78
|
+
})(), disabled: a, size: "xs" }) : null);
|
|
79
|
+
}, { getGidsCalendarDayCellClassNames: G } = O, z = ({ id: e, label: t, class: a, ...n }) => d(C, { ...n, id: e, label: t, name: t, dot: !1, disabled: !1, selected: !1, today: !1, cellType: "non-effective", class: G(a) }), { getGidsCalendarClassNames: L, generateCalendarDays: I, generateCalendarWeekdays: W } = V, { getCalendarMonthNameViaMonthNumber: F } = M, v = P(class extends D {
|
|
80
|
+
constructor(e) {
|
|
81
|
+
super(), e !== !1 && this.__registerHost(), this.width = "intrinsic", this.panelActionsAppearance = "primary", this.dotVisibleDates = [], this.monthPickerDisabled = !1, this.yearPickerDisabled = !1, this.previousDisabled = !1, this.nextDisabled = !1, this.panelDisabled = !1, this.currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1, this.currentYear = (/* @__PURE__ */ new Date()).getFullYear(), this.handleCHPOnPreviousActionEvent = (t) => {
|
|
82
|
+
t && (this.setLocalStates({ monthNumber: t.monthNumber, year: t.year }), this.onPreviousChange && this.onPreviousChange(t));
|
|
83
|
+
}, this.handleCHPOnNextActionEvent = (t) => {
|
|
84
|
+
t && (this.setLocalStates({ monthNumber: t.monthNumber, year: t.year }), this.onNextChange && this.onNextChange(t));
|
|
85
|
+
}, this.handleCHPOnPanelMonthChangeEvent = (t) => {
|
|
86
|
+
t && (this.setLocalStates({ monthNumber: t.monthNumber, year: t.year }), this.onPanelMonthChange && this.onPanelMonthChange(t));
|
|
87
|
+
}, this.handleCHPOnPanelYearChangeEvent = (t) => {
|
|
88
|
+
t && (this.setLocalStates({ monthNumber: t.monthNumber, year: t.year }), this.onPanelYearChange && this.onPanelYearChange(t));
|
|
89
|
+
}, this.setLocalStates = (t) => {
|
|
90
|
+
const { monthNumber: a, year: n } = t;
|
|
91
|
+
a && (this.currentMonth = Number(a)), n && (this.currentYear = Number(n));
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
handleActiveMonthPropChange(e) {
|
|
95
|
+
e != null && (this.currentMonth = Number(e));
|
|
96
|
+
}
|
|
97
|
+
handleActiveYearPropChange(e) {
|
|
98
|
+
e != null && (this.currentYear = Number(e));
|
|
99
|
+
}
|
|
100
|
+
componentWillLoad() {
|
|
101
|
+
this.activeMonthNumber != null && (this.currentMonth = Number(this.activeMonthNumber)), this.activeYear != null && (this.currentYear = Number(this.activeYear));
|
|
102
|
+
}
|
|
103
|
+
handleDateCellClick({ event: e, dateStr: t, isCurrentMonth: a }) {
|
|
104
|
+
if (e?.detail?.disabled) return;
|
|
105
|
+
const r = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], l = F(this.currentMonth);
|
|
106
|
+
this.onSelectionCalendarCell && this.onSelectionCalendarCell({ currentActivePanelState: { monthNumber: this.currentMonth, year: this.currentYear, month: l, panelValue: `${l} ${this.currentYear}` }, date: t, isCurrentMonth: a, selected: !0, today: r === t, dotVisibleDates: this.dotVisibleDates ?? [] });
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
const e = I({ currentYear: this.currentYear, currentMonth: this.currentMonth }), t = W(), a = L({ width: this.width });
|
|
110
|
+
return d("div", { key: "aff90d6c0767654bc26a6d8d50af709d9aa8cdb9", class: a }, d("gids-calendar-header-panel", { key: "c3aba25935a89601684765269f5b4c51c7060519", appearance: this.panelActionsAppearance, startYear: this.startYear, endYear: this.endYear, monthPickerDisabled: this.monthPickerDisabled, yearPickerDisabled: this.yearPickerDisabled, previousDisabled: this.previousDisabled, nextDisabled: this.nextDisabled, panelDisabled: this.panelDisabled, selectedMonthNumber: this.currentMonth, selectedYear: this.currentYear, onPanelMonthChange: this.handleCHPOnPanelMonthChangeEvent, onPanelYearChange: this.handleCHPOnPanelYearChangeEvent, onNextChange: this.handleCHPOnNextActionEvent, onPreviousChange: this.handleCHPOnPreviousActionEvent }), d("div", { key: "de085679ec28367ad327d87e69ff5a8aa69739cc", class: "gids-calendar__weekdays-grid" }, t.map(((n) => d(z, { label: n })))), d("div", { key: "e538630d3e1084de6b76be7c4eea40ab835267c4", class: "gids-calendar__days-grid" }, e.map(((n) => {
|
|
111
|
+
const r = this.selectedDate === n.dateString, l = this.dotVisibleDates?.includes(n.dateString);
|
|
112
|
+
return d(C, { label: n.day + "", today: n.isToday, selected: r, dot: l, cellType: "effective", disabled: !n.isCurrentMonth, onPressCalendarCell: (g) => this.handleDateCellClick({ event: g, dateStr: n.dateString, isCurrentMonth: n.isCurrentMonth }) });
|
|
113
|
+
}))));
|
|
114
|
+
}
|
|
115
|
+
static get watchers() {
|
|
116
|
+
return { activeMonthNumber: [{ handleActiveMonthPropChange: 0 }], activeYear: [{ handleActiveYearPropChange: 0 }] };
|
|
117
|
+
}
|
|
118
|
+
static get style() {
|
|
119
|
+
return ".gids-calendar{display:flex;flex-direction:column;background-color:transparent;box-sizing:border-box;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-300);gap:var(--gids-gap-200)}.gids-calendar--width-fixed{width:100%;max-width:var(--gids-width-xs)}.gids-calendar--width-intrinsic{width:100%;max-width:100%}.gids-calendar--width-intrinsic .gids-calendar-cell{--cell-width:100%;--cell-aspect-ratio:1 / 1}.gids-calendar__weekdays-grid{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center;align-items:center;width:100%}.gids-calendar__days-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:var(--gids-gap-050);justify-items:center;align-items:center;width:100%}";
|
|
120
|
+
}
|
|
121
|
+
}, [0, "gids-calendar", { width: [1], panelActionsAppearance: [1, "panel-actions-appearance"], selectedDate: [1, "selected-date"], dotVisibleDates: [16], startYear: [2, "start-year"], endYear: [2, "end-year"], monthPickerDisabled: [4, "month-picker-disabled"], yearPickerDisabled: [4, "year-picker-disabled"], previousDisabled: [4, "previous-disabled"], nextDisabled: [4, "next-disabled"], panelDisabled: [4, "panel-disabled"], activeMonthNumber: [2, "active-month-number"], activeYear: [2, "active-year"], onNextChange: [16], onPreviousChange: [16], onPanelMonthChange: [16], onPanelYearChange: [16], onSelectionCalendarCell: [16], currentMonth: [32], currentYear: [32] }, void 0, { activeMonthNumber: [{ handleActiveMonthPropChange: 0 }], activeYear: [{ handleActiveYearPropChange: 0 }] }]);
|
|
122
|
+
function y() {
|
|
123
|
+
typeof customElements < "u" && ["gids-calendar", "gids-calendar-header-panel", "gids-calendar-month-list", "gids-calendar-year-list", "gids-dot", "gids-dropdown-picker", "gids-icon"].forEach(((e) => {
|
|
124
|
+
switch (e) {
|
|
125
|
+
case "gids-calendar":
|
|
126
|
+
customElements.get(c(e)) || customElements.define(c(e), v);
|
|
127
|
+
break;
|
|
128
|
+
case "gids-calendar-header-panel":
|
|
129
|
+
customElements.get(c(e)) || S();
|
|
130
|
+
break;
|
|
131
|
+
case "gids-calendar-month-list":
|
|
132
|
+
customElements.get(c(e)) || N();
|
|
133
|
+
break;
|
|
134
|
+
case "gids-calendar-year-list":
|
|
135
|
+
customElements.get(c(e)) || Y();
|
|
136
|
+
break;
|
|
137
|
+
case "gids-dot":
|
|
138
|
+
customElements.get(c(e)) || k();
|
|
139
|
+
break;
|
|
140
|
+
case "gids-dropdown-picker":
|
|
141
|
+
customElements.get(c(e)) || w();
|
|
142
|
+
break;
|
|
143
|
+
case "gids-icon":
|
|
144
|
+
customElements.get(c(e)) || x();
|
|
145
|
+
}
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
y();
|
|
149
|
+
const Z = v, ee = y;
|
|
150
|
+
export {
|
|
151
|
+
Z as GidsCalendar,
|
|
152
|
+
ee as defineCustomElement
|
|
153
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { _ as u, u as m, T as a, P as n } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { r as o, c as y, b as T, a as b, C } from "./p-D_wcwB7E-d3jYxfod.js";
|
|
3
|
+
import { d as v } from "./p-h6alWGT8-CSY2g3c8.js";
|
|
4
|
+
import { g as _ } from "./p-CPSHPtGE-C7baJgXR.js";
|
|
5
|
+
import { d as f } from "./p-B_HaXpJZ-a2SDgQ0E.js";
|
|
6
|
+
import { l as k } from "./p-B81J5HCC-Bkt2yXKi.js";
|
|
7
|
+
import { h as P } from "./p-uqSjmNkw-Cz2T86sC.js";
|
|
8
|
+
import { g as A } from "./p-D93TNeOt-Vvshbux8.js";
|
|
9
|
+
import { c as E } from "./p-tyIgTtUC-C8jR4A5G.js";
|
|
10
|
+
import { d as D } from "./p-quZYWCxU-CPyWW0nv.js";
|
|
11
|
+
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
12
|
+
const G = (r) => x("gids-chart", r), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
|
+
__proto__: null,
|
|
14
|
+
getGidsChartClassNames: G
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartClassNames: N } = I, c = u(class extends m {
|
|
16
|
+
constructor(r) {
|
|
17
|
+
super(), r !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.chartType = "line-chart", this.getChartTypes = () => ["line-chart", "bar-chart", "pie-chart", "activity-gauge", "level-gauge", "progress-circle", "radar-chart"], this.isChartTypeValid = () => {
|
|
18
|
+
const i = this.getChartTypes(), e = this.chartType;
|
|
19
|
+
return !(!e || !i.includes(e));
|
|
20
|
+
}, this.isChartDataValid = () => {
|
|
21
|
+
const i = this.chartType;
|
|
22
|
+
if (i === "line-chart") {
|
|
23
|
+
const e = this.lineChartProps, t = e?.chartData ?? [], s = t?.[0]?.data ?? [];
|
|
24
|
+
return Array.isArray(t) && t.length > 0 && Array.isArray(s) && s.length > 0;
|
|
25
|
+
}
|
|
26
|
+
if (i === "bar-chart") {
|
|
27
|
+
const e = this.barChartProps, t = e?.chartData ?? [], s = t?.[0]?.data ?? [];
|
|
28
|
+
return Array.isArray(t) && t.length > 0 && Array.isArray(s) && s.length > 0;
|
|
29
|
+
}
|
|
30
|
+
if (i === "pie-chart") {
|
|
31
|
+
const e = this.pieChartProps, t = e?.chartData ?? [];
|
|
32
|
+
return Array.isArray(t) && t.length > 0;
|
|
33
|
+
}
|
|
34
|
+
if (i === "activity-gauge") {
|
|
35
|
+
const e = this.activityGaugeProps, t = e?.chartData ?? [];
|
|
36
|
+
return Array.isArray(t) && t.length > 0;
|
|
37
|
+
}
|
|
38
|
+
return i === "radar-chart";
|
|
39
|
+
}, this.getChartTypeText = () => {
|
|
40
|
+
const i = this.chartType;
|
|
41
|
+
if (i) {
|
|
42
|
+
const e = i.split("-");
|
|
43
|
+
let t = "";
|
|
44
|
+
return e.map(((s, h) => {
|
|
45
|
+
t = h === 0 ? "" + s : `${t} ${s}`;
|
|
46
|
+
})), t;
|
|
47
|
+
}
|
|
48
|
+
return "";
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
handleBreakpointChange(r) {
|
|
52
|
+
this.breakpoint = r;
|
|
53
|
+
}
|
|
54
|
+
handleChartTypeChange(r) {
|
|
55
|
+
this.chartType = r;
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
if (!this.isChartTypeValid()) return a("div", { class: "gids-chart__no-data" }, a(o, { title: y, supportingText: T(this.getChartTypes().join(", ")) }));
|
|
59
|
+
const r = this.isChartDataValid(), i = this.getChartTypeText();
|
|
60
|
+
if (!r) return a("div", { class: "gids-activity-gauge__no-data" }, a(o, { title: b, supportingText: C(i) }));
|
|
61
|
+
const e = N(), t = this.chartType, s = this.barChartProps, h = this.pieChartProps, l = this.activityGaugeProps, d = this.levelGaugeProps, p = this.progressCircleProps;
|
|
62
|
+
return a("div", { class: e }, t === "line-chart" ? a("gids-line-chart", { ...this.lineChartProps, breakpoint: this.breakpoint }) : null, t === "bar-chart" ? a("gids-bar-chart", { ...s, breakpoint: this.breakpoint }) : null, t === "pie-chart" ? a("gids-pie-chart", { ...h, breakpoint: this.breakpoint }) : null, t === "activity-gauge" ? a("gids-activity-gauge", { ...l, breakpoint: this.breakpoint }) : null, t === "level-gauge" ? a("gids-level-gauge", { ...d, breakpoint: this.breakpoint }) : null, t === "progress-circle" ? a("gids-progress-circle", { ...p, breakpoint: this.breakpoint }) : null, t === "radar-chart" ? a("div", { class: "gids-chart__no-data" }, a(o, { title: "Coming Soon!", supportingText: "Radar chart is under progress. This will be available in next major version of GIDS." })) : null);
|
|
63
|
+
}
|
|
64
|
+
static get watchers() {
|
|
65
|
+
return { breakpoint: [{ handleBreakpointChange: 0 }], chartType: [{ handleChartTypeChange: 0 }] };
|
|
66
|
+
}
|
|
67
|
+
static get style() {
|
|
68
|
+
return ".gids-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}";
|
|
69
|
+
}
|
|
70
|
+
}, [0, "gids-chart", { breakpoint: [1], chartType: [1, "chart-type"], lineChartProps: [16], barChartProps: [16], pieChartProps: [16], activityGaugeProps: [16], levelGaugeProps: [16], progressCircleProps: [16] }, void 0, { breakpoint: [{ handleBreakpointChange: 0 }], chartType: [{ handleChartTypeChange: 0 }] }]);
|
|
71
|
+
function g() {
|
|
72
|
+
typeof customElements < "u" && ["gids-chart", "gids-activity-gauge", "gids-bar-chart", "gids-chart-legend", "gids-chart-legend-item", "gids-level-gauge", "gids-line-chart", "gids-pie-chart", "gids-progress-circle"].forEach(((r) => {
|
|
73
|
+
switch (r) {
|
|
74
|
+
case "gids-chart":
|
|
75
|
+
customElements.get(n(r)) || customElements.define(n(r), c);
|
|
76
|
+
break;
|
|
77
|
+
case "gids-activity-gauge":
|
|
78
|
+
customElements.get(n(r)) || v();
|
|
79
|
+
break;
|
|
80
|
+
case "gids-bar-chart":
|
|
81
|
+
customElements.get(n(r)) || _();
|
|
82
|
+
break;
|
|
83
|
+
case "gids-chart-legend":
|
|
84
|
+
customElements.get(n(r)) || f();
|
|
85
|
+
break;
|
|
86
|
+
case "gids-chart-legend-item":
|
|
87
|
+
customElements.get(n(r)) || k();
|
|
88
|
+
break;
|
|
89
|
+
case "gids-level-gauge":
|
|
90
|
+
customElements.get(n(r)) || P();
|
|
91
|
+
break;
|
|
92
|
+
case "gids-line-chart":
|
|
93
|
+
customElements.get(n(r)) || A();
|
|
94
|
+
break;
|
|
95
|
+
case "gids-pie-chart":
|
|
96
|
+
customElements.get(n(r)) || E();
|
|
97
|
+
break;
|
|
98
|
+
case "gids-progress-circle":
|
|
99
|
+
customElements.get(n(r)) || D();
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
g();
|
|
104
|
+
const z = c, F = g;
|
|
105
|
+
export {
|
|
106
|
+
z as GidsChart,
|
|
107
|
+
F as defineCustomElement
|
|
108
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { _ as r, u as d, q as l, T as s, P as a } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
+
import { d as h } from "./p-BnL97lOW-BO0p4EdC.js";
|
|
4
|
+
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const u = ({ size: e }, o) => g("gids-chevron-button", {
|
|
6
|
+
// 'gids-chevron-button--xs': size === 'xs', // By default xs
|
|
7
|
+
"gids-chevron-button--sm": e === "sm",
|
|
8
|
+
"gids-chevron-button--md": e === "md",
|
|
9
|
+
"gids-chevron-button--lg": e === "lg"
|
|
10
|
+
}, o), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
getGidsChevronButtonClassNames: u
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsChevronButtonClassNames: t } = b, i = r(class extends d {
|
|
14
|
+
constructor(e) {
|
|
15
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.gidsChevronButton = l(this, "gidsChevronButton"), this.activeClasses = "", this.size = "xs";
|
|
16
|
+
}
|
|
17
|
+
handleExtraClassesAndSizeChange(e) {
|
|
18
|
+
this.activeClasses = t({ size: this.size }, e);
|
|
19
|
+
}
|
|
20
|
+
handleSizeChange(e) {
|
|
21
|
+
this.size = e;
|
|
22
|
+
}
|
|
23
|
+
handleDisabledChange(e) {
|
|
24
|
+
this.disabled = e;
|
|
25
|
+
}
|
|
26
|
+
connectedCallback() {
|
|
27
|
+
const e = c();
|
|
28
|
+
e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e), this.activeClasses = t({ size: this.size }, this.extraClasses);
|
|
29
|
+
}
|
|
30
|
+
componentDidLoad() {
|
|
31
|
+
this.activeClasses = t({ size: this.size }, this.extraClasses);
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return s("button", { key: "b2c4dce0b1b731f18f7bc51d4f2dc3b2bc4814e0", class: this.activeClasses, slot: "trailingAccessory", type: "button", onClick: (e) => this.gidsChevronButton.emit(e), "aria-label": this?.ariaLabel ?? "", "aria-expanded": this?.ariaExpanded ?? "", "aria-haspopup": this?.ariaHaspopup ?? "", "aria-controls": this?.ariaControls ?? "", disabled: this.disabled, tabIndex: -1 }, s("span", { key: "42f01ac64723aa9195d2f36b0b02e0a36811f19e", class: "gids-button__content" }, s(h, { key: "a78239b33647d4f4653f8c7660ae7cf69f9a1307", name: "chevron-vertical", alt: "" })));
|
|
35
|
+
}
|
|
36
|
+
get _el() {
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
static get watchers() {
|
|
40
|
+
return { extraClasses: [{ handleExtraClassesAndSizeChange: 0 }], size: [{ handleExtraClassesAndSizeChange: 0 }, { handleSizeChange: 0 }], disabled: [{ handleDisabledChange: 0 }] };
|
|
41
|
+
}
|
|
42
|
+
static get style() {
|
|
43
|
+
return ".gids-chevron-button{color:inherit;background-color:transparent;border:none;margin:0;padding:0;text-align:inherit;font:inherit;border-radius:0;appearance:none;display:inline-flex;justify-content:center;align-self:center;border-radius:var(--gids-border-radius-full);--gidsIcon-color:var(--gids-color-icon-default);--gidsIcon-height:var(--gidsChevronButtonIcon-height);--gidsChevronButtonIcon-height:var(--gids-size-120)}.gids-chevron-button--sm{--gidsIcon-height:var(--gids-size-160)}.gids-chevron-button--md{--gidsIcon-height:var(--gids-size-200)}.gids-chevron-button--lg{--gidsIcon-height:var(--gids-size-240)}.gids-chevron-button:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-chevron-button:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-chevron-button:disabled .gids-icon{--gidsIcon-color:var(--gids-color-icon-disabled)}.gids-chevron-button:disabled:hover{background-color:transparent}.gids-chevron-button:disabled:active{background-color:transparent}";
|
|
44
|
+
}
|
|
45
|
+
}, [1, "gids-chevron-button", { extraClasses: [513, "extra-classes"], size: [513], disabled: [516], ariaLabel: [513, "aria-label"], ariaHaspopup: [513, "aria-haspopup"], ariaExpanded: [513, "aria-expanded"], ariaControls: [513, "aria-controls"], activeClasses: [32] }, void 0, { extraClasses: [{ handleExtraClassesAndSizeChange: 0 }], size: [{ handleExtraClassesAndSizeChange: 0 }, { handleSizeChange: 0 }], disabled: [{ handleDisabledChange: 0 }] }]);
|
|
46
|
+
function n() {
|
|
47
|
+
typeof customElements < "u" && ["gids-chevron-button"].forEach(((e) => {
|
|
48
|
+
e === "gids-chevron-button" && (customElements.get(a(e)) || customElements.define(a(e), i));
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
n();
|
|
52
|
+
const m = i, x = n;
|
|
53
|
+
export {
|
|
54
|
+
m as GidsChevronButton,
|
|
55
|
+
x as defineCustomElement
|
|
56
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { _ as n, u as d, T as s, P as a } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { a as r } from "./p-CRngHsR7-DL9wz3Z3.js";
|
|
3
|
+
import { l } from "./p-BaO-kEWS-ZITkeP-j.js";
|
|
4
|
+
import { h } from "./p-BvYnawkJ-DohV9UNG.js";
|
|
5
|
+
import { r as u } from "./p-DfFqFdmS-DjI2pk-0.js";
|
|
6
|
+
import { g as c } from "./p-BnL97lOW-BO0p4EdC.js";
|
|
7
|
+
const i = n(class extends d {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
super(), e !== !1 && this.__registerHost(), this.internals = this.attachInternals(), this.appearance = "default", this.expanded = !1, this.#e = c(), this.handleSelectionChange = (t) => {
|
|
10
|
+
this.value = t.value, this.syncFormValue(t.value), this.onSelectionChange?.(t);
|
|
11
|
+
}, this.handleDropdownFocusAndBlur = (t) => {
|
|
12
|
+
this.hostElement.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
#e;
|
|
16
|
+
componentWillLoad() {
|
|
17
|
+
this.syncFormValue(this.value);
|
|
18
|
+
}
|
|
19
|
+
handleValueChange(e) {
|
|
20
|
+
this.syncFormValue(e);
|
|
21
|
+
}
|
|
22
|
+
syncFormValue(e) {
|
|
23
|
+
this.internals.setFormValue(e ?? "");
|
|
24
|
+
}
|
|
25
|
+
getDropdownControl() {
|
|
26
|
+
return this.hostElement.querySelector("gids-dropdown");
|
|
27
|
+
}
|
|
28
|
+
get form() {
|
|
29
|
+
return this.getDropdownControl()?.form ?? null;
|
|
30
|
+
}
|
|
31
|
+
get validity() {
|
|
32
|
+
return this.getDropdownControl()?.validity ?? {};
|
|
33
|
+
}
|
|
34
|
+
get validationMessage() {
|
|
35
|
+
return this.getDropdownControl()?.validationMessage ?? "";
|
|
36
|
+
}
|
|
37
|
+
get willValidate() {
|
|
38
|
+
return this.getDropdownControl()?.willValidate ?? !1;
|
|
39
|
+
}
|
|
40
|
+
async checkValidity() {
|
|
41
|
+
const e = this.getDropdownControl();
|
|
42
|
+
return !e?.checkValidity || await e.checkValidity();
|
|
43
|
+
}
|
|
44
|
+
async reportValidity() {
|
|
45
|
+
const e = this.getDropdownControl();
|
|
46
|
+
return !e?.reportValidity || await e.reportValidity();
|
|
47
|
+
}
|
|
48
|
+
async setCustomValidity(e) {
|
|
49
|
+
const t = this.getDropdownControl();
|
|
50
|
+
if (t?.setCustomValidity) return await t.setCustomValidity(e);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
const e = this.inputProps?.id ?? this.#e, t = { ...this.inputProps, id: e, placeholder: this.inputProps?.placeholder ?? "Please select an option" };
|
|
54
|
+
return s("gids-field", { key: "9d896c1a60c010c49f17578133b1f593637ee25a", disabled: this.disabled, helperText: this.helperText, statusText: this.statusText, status: this.status }, this.label !== void 0 ? s(r, { slot: "label", disabled: this.disabled, htmlFor: e, fieldRequirement: this.required ? "required" : void 0 }, this.label) : null, s("gids-dropdown", { key: "cb5e873f42af870aec073f553a660aea8f61ffcb", appearance: this.appearance, expanded: this.expanded, inputProps: t, disabled: this.disabled, readOnly: this.readOnly, loading: this.loading, value: this.value, name: this.name, onSelectionChange: this.handleSelectionChange, onFocus: this.handleDropdownFocusAndBlur, onBlur: this.handleDropdownFocusAndBlur, required: this.required }, s("slot", { key: "fbdd00ab717487697bc705af19c6e304ff77bd82", name: "leadingIconDropdown" }), s("slot", { key: "1f6ffc78105de5a1e2e4f8906271e8e2c5ca385d", name: "leadingAccessoryDropdown" }), s("slot", { key: "04404c104113d9b83afbe594bd7b9381864b526f" })));
|
|
55
|
+
}
|
|
56
|
+
static get formAssociated() {
|
|
57
|
+
return !0;
|
|
58
|
+
}
|
|
59
|
+
get hostElement() {
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
static get watchers() {
|
|
63
|
+
return { value: [{ handleValueChange: 0 }] };
|
|
64
|
+
}
|
|
65
|
+
}, [324, "gids-dropdown-field", { label: [513], helperText: [513, "helper-text"], statusText: [513, "status-text"], status: [513], appearance: [513], expanded: [516], readOnly: [516, "readonly"], disabled: [516], loading: [516], inputProps: [16], value: [1025], name: [513], onSelectionChange: [16], required: [516], checkValidity: [64], reportValidity: [64], setCustomValidity: [64] }, void 0, { value: [{ handleValueChange: 0 }] }]);
|
|
66
|
+
function o() {
|
|
67
|
+
typeof customElements < "u" && ["gids-dropdown-field", "gids-dropdown", "gids-field", "gids-input"].forEach(((e) => {
|
|
68
|
+
switch (e) {
|
|
69
|
+
case "gids-dropdown-field":
|
|
70
|
+
customElements.get(a(e)) || customElements.define(a(e), i);
|
|
71
|
+
break;
|
|
72
|
+
case "gids-dropdown":
|
|
73
|
+
customElements.get(a(e)) || l();
|
|
74
|
+
break;
|
|
75
|
+
case "gids-field":
|
|
76
|
+
customElements.get(a(e)) || h();
|
|
77
|
+
break;
|
|
78
|
+
case "gids-input":
|
|
79
|
+
customElements.get(a(e)) || u();
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
o();
|
|
84
|
+
const b = i, V = o;
|
|
85
|
+
export {
|
|
86
|
+
b as GidsDropdownField,
|
|
87
|
+
V as defineCustomElement
|
|
88
|
+
};
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { d as c } from "./p-veoOgDXg-fRinub-C.js";
|
|
4
|
-
const t = o(class extends d {
|
|
5
|
-
constructor(i) {
|
|
6
|
-
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
|
-
}
|
|
8
|
-
connectedCallback() {
|
|
9
|
-
const i = n();
|
|
10
|
-
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return a(c, { key: "3033afda529cd2143bd0d3c3ca5c985b4b950eae", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
|
|
14
|
-
}
|
|
15
|
-
get _el() {
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
static get style() {
|
|
19
|
-
return ".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
|
|
20
|
-
}
|
|
21
|
-
}, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
|
|
22
|
-
function s() {
|
|
23
|
-
typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
|
|
24
|
-
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), t));
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
s();
|
|
28
|
-
const h = t, m = s;
|
|
1
|
+
import { n as o, d as e } from "./p-BiPAgxAQ-BtMBQpJY.js";
|
|
2
|
+
const s = o, t = e;
|
|
29
3
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
4
|
+
s as GidsIcon,
|
|
5
|
+
t as defineCustomElement
|
|
32
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { c as t, r as e } from "./p-DfFqFdmS-DjI2pk-0.js";
|
|
2
|
+
const o = t, s = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsInput,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as a, u as n, T as e, P as o } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
2
|
import { i as l } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
const h = (t) => t === "top" || t === "top-bottom", c = (t) => t === "bottom" || t === "top-bottom", d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
showGidsOverflowContainerBottomShadow: c,
|
|
6
6
|
showGidsOverflowContainerTopShadow: h
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r =
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r = a(class extends n {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this.shadowLocation = "bottom";
|
|
10
10
|
}
|
|
@@ -20,19 +20,19 @@ const h = (t) => t === "top" || t === "top-bottom", c = (t) => t === "bottom" ||
|
|
|
20
20
|
this._textArea.scrollTop + this._textArea.offsetHeight >= this._textArea.scrollHeight ? this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0") : t !== 0 ? t > 0 && (f(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-before-opacity", "" + Math.min(t / 20, 1)), s(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "" + Math.min((this._textArea.scrollHeight - (this._textArea.scrollTop + this._textArea.offsetHeight)) / 20, 1))) : this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0");
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return e("div", { key: "
|
|
23
|
+
return e("div", { key: "fbc4a9851c77e92b2261392c6d8f00664f8adb94", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "a825b7f435064d06a22f751e507c8a765817abec" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
27
27
|
}
|
|
28
28
|
}, [257, "gids-overflow-container", { shadowLocation: [513, "shadow-location"] }]);
|
|
29
|
-
function
|
|
29
|
+
function i() {
|
|
30
30
|
typeof customElements < "u" && ["gids-overflow-container"].forEach(((t) => {
|
|
31
31
|
t === "gids-overflow-container" && (customElements.get(o(t)) || customElements.define(o(t), r));
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
const p = r, m =
|
|
34
|
+
i();
|
|
35
|
+
const p = r, m = i;
|
|
36
36
|
export {
|
|
37
37
|
p as GidsOverflowContainer,
|
|
38
38
|
m as defineCustomElement
|