@ganpatiinfo/gids-core-web 10.2.0 → 12.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 +525 -3
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +11 -0
- package/dist/gids-expansion-body-list-item.js +1 -0
- package/dist/gids-expansion-body-list.d.ts +11 -0
- package/dist/gids-expansion-body-list.js +1 -0
- package/dist/gids-expansion-group.d.ts +11 -0
- package/dist/gids-expansion-group.js +1 -0
- package/dist/gids-expansion.d.ts +11 -0
- package/dist/gids-expansion.js +1 -0
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.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 +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +11 -0
- package/dist/gids-md-table.js +1 -0
- package/dist/gids-notification.d.ts +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 +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- 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-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.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/{p-Jdpe4Sgj.js → p-6APCjBEI.js} +1 -1
- package/dist/{p-qb1aWgjh.js → p-BCVFQSjK.js} +1 -1
- package/dist/{p-Ciw-O9qN.js → p-BSbOhfLZ.js} +1 -1
- package/dist/{p-Doi8Yizl.js → p-BVAtja26.js} +1 -1
- package/dist/{p-8tOn5SjU.js → p-C2O_pGky.js} +1 -1
- package/dist/{p-BfnzH6wp.js → p-C3We7Q8Q.js} +1 -1
- package/dist/p-C3w3wdCt.js +1 -0
- package/dist/{p-BYDimyG-.js → p-C3xv7tfs.js} +1 -1
- package/dist/{p-DoPuGtJd.js → p-C56G7JRy.js} +1 -1
- package/dist/p-CI-sN9Lr.js +1 -0
- package/dist/{p-B1Jgtjhu.js → p-COHuQEfZ.js} +1 -1
- package/dist/p-ChV9xqsO.js +1 -0
- package/dist/{p-C-cUL-aA.js → p-Chqeexny.js} +1 -1
- package/dist/{p-bPPm7cuw.js → p-DO0MyFf4.js} +1 -1
- package/dist/p-DUojHltk.js +1 -0
- package/dist/p-VJAcf53T.js +1 -0
- package/dist/p-_SIWct9h.js +1 -0
- package/dist/{p-5VIPb1eU.js → p-pSb81aE0.js} +1 -1
- package/dist/{p-C7ifjRCE.js → p-ub0GuVHb.js} +1 -1
- package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +6 -0
- package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +4 -0
- package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +11 -0
- package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +4 -0
- package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +4 -0
- package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +11 -0
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +15 -2
- package/dist/types/components/webComponents/GidsExpansion/GidsExpansion.d.ts +24 -0
- package/dist/types/components/webComponents/GidsExpansionBodyList/GidsExpansionBodyList.d.ts +25 -0
- package/dist/types/components/webComponents/GidsExpansionBodyListItem/GidsExpansionBodyListItem.d.ts +38 -0
- package/dist/types/components/webComponents/GidsExpansionGroup/GidsExpansionGroup.d.ts +4 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +5 -0
- package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +40 -0
- package/dist/types/components.d.ts +323 -6
- package/dist-bundled/es/gids-action-bar.js +168 -126
- package/dist-bundled/es/gids-activity-gauge.js +4 -4
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +3 -3
- package/dist-bundled/es/gids-calendar.js +7 -7
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +50 -50
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +4 -4
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list-item.js +6 -0
- package/dist-bundled/es/gids-expansion-body-list.js +78 -0
- package/dist-bundled/es/gids-expansion-group.js +28 -0
- package/dist-bundled/es/gids-expansion.js +90 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +4 -4
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +3 -3
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +165 -0
- package/dist-bundled/es/gids-overflow-container.js +6 -6
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +18 -18
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-tab-item.js +6 -6
- package/dist-bundled/es/gids-tab.js +6 -6
- package/dist-bundled/es/gids-text-field.js +12 -12
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/{p-Jdpe4Sgj-acwaxLtK.js → p-6APCjBEI-roDSyEYu.js} +5 -5
- package/dist-bundled/es/{p-qb1aWgjh-CzmMPIME.js → p-BCVFQSjK-CKrYrI4b.js} +5 -5
- package/dist-bundled/es/{p-Ciw-O9qN-DkWfirFu.js → p-BSbOhfLZ-ByjjVMqG.js} +7 -7
- package/dist-bundled/es/{p-Doi8Yizl-BszWK5Dq.js → p-BVAtja26-Xjd4_b4e.js} +5 -5
- package/dist-bundled/es/{p-8tOn5SjU-D9rZ28cf.js → p-C2O_pGky-C_30AJ3m.js} +7 -7
- package/dist-bundled/es/{p-BfnzH6wp-BfLC7Nak.js → p-C3We7Q8Q-DT_NDg87.js} +2 -2
- package/dist-bundled/es/{p-DiNad9Px-uOCMHqAq.js → p-C3w3wdCt-I6zwuecb.js} +24 -37
- package/dist-bundled/es/{p-BYDimyG--DBCLrqDJ.js → p-C3xv7tfs-RodXvmql.js} +3 -3
- package/dist-bundled/es/{p-DoPuGtJd-DYlbhh57.js → p-C56G7JRy-B3HO4aVF.js} +2 -2
- package/dist-bundled/es/{p-xITwQAMz-BMXjOAAQ.js → p-CI-sN9Lr-DHC9DyS8.js} +19 -18
- package/dist-bundled/es/{p-B1Jgtjhu-B_VYp-ZP.js → p-COHuQEfZ-C_POuXNC.js} +9 -9
- package/dist-bundled/es/p-ChV9xqsO-CJSPCx6p.js +16 -0
- package/dist-bundled/es/{p-C-cUL-aA-2jsvw-Lr.js → p-Chqeexny-C4hlPbBP.js} +11 -11
- package/dist-bundled/es/{p-bPPm7cuw-B-dtPJF9.js → p-DO0MyFf4-D7XItX1k.js} +5 -5
- package/dist-bundled/es/p-DUojHltk-GyvsWoCM.js +172 -0
- package/dist-bundled/es/p-VJAcf53T-2X0vBJ1A.js +106 -0
- package/dist-bundled/es/{p-Bj28yqMD-Dz1SWSqM.js → p-_SIWct9h-jMYFZ-VO.js} +4 -4
- package/dist-bundled/es/{p-5VIPb1eU-MCAo8JCp.js → p-pSb81aE0-CNrq7SQW.js} +2 -2
- package/dist-bundled/es/{p-C7ifjRCE-CRlorwoN.js → p-ub0GuVHb-C_PFTi1_.js} +9 -9
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +5 -0
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +5 -0
- package/dist-bundled/umd/gids-expansion-group.umd.js +5 -0
- package/dist-bundled/umd/gids-expansion.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +3 -3
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +5 -0
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
- package/dist-bundled/umd/gids-tab.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +44 -4
- package/dist/p-Bj28yqMD.js +0 -1
- package/dist/p-DiNad9Px.js +0 -1
- package/dist/p-qrjEbv6g.js +0 -1
- package/dist/p-xITwQAMz.js +0 -1
- package/dist-bundled/es/p-qrjEbv6g-ITSp3ky_.js +0 -152
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { q as i, L as o, u as n, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as g } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { d as r } from "./p-
|
|
4
|
-
import { c
|
|
5
|
-
const
|
|
3
|
+
import { d as r } from "./p-C2O_pGky-C_30AJ3m.js";
|
|
4
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
6
6
|
"gids-dot--disabled": a,
|
|
7
7
|
"gids-dot--subtle": s === "subtle" && !a,
|
|
8
8
|
"gids-dot--static-inverse": s === "static-inverse" && !a,
|
|
@@ -16,7 +16,7 @@ const c = ({ appearance: s, size: e, disabled: a }, d) => h("gids-dot", {
|
|
|
16
16
|
"gids-dot--3xl": e === "3xl"
|
|
17
17
|
}, d), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
18
|
__proto__: null,
|
|
19
|
-
getGidsDotClassNames:
|
|
19
|
+
getGidsDotClassNames: h
|
|
20
20
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsDotClassNames: t } = p, C = o(class extends n {
|
|
21
21
|
constructor(s) {
|
|
22
22
|
super(), s !== !1 && this.__registerHost(), this.appearance = "subtle", this.size = "xs", this.disabled = !1, this.activeClasses = "";
|
|
@@ -41,7 +41,7 @@ const c = ({ appearance: s, size: e, disabled: a }, d) => h("gids-dot", {
|
|
|
41
41
|
this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return l("gids-icon", { key: "
|
|
44
|
+
return l("gids-icon", { key: "81581bd6fb72e8ff6ce203c8e63b2f1c5d9c1121", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
|
|
45
45
|
}
|
|
46
46
|
get _el() {
|
|
47
47
|
return this;
|
|
@@ -4,10 +4,10 @@ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
|
|
|
4
4
|
// 'gids-chart-legend--orientation-horizontal':
|
|
5
5
|
// orientation === 'horizontal', // not needed as by default
|
|
6
6
|
"gids-chart-legend--orientation-vertical": e === "vertical"
|
|
7
|
-
}, i),
|
|
7
|
+
}, i), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
9
9
|
getGidsChartLegendClassNames: o
|
|
10
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendClassNames:
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendClassNames: d } = c, l = a(class extends r {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(), e !== !1 && this.__registerHost(), this.orientation = "horizontal";
|
|
13
13
|
}
|
|
@@ -15,8 +15,8 @@ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
|
|
|
15
15
|
this.orientation = e;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
const e =
|
|
19
|
-
return n("div", { key: "
|
|
18
|
+
const e = d({ orientation: this.orientation });
|
|
19
|
+
return n("div", { key: "644b3200e4de07c715a1da903635dadb90b44c97", class: e }, n("slot", { key: "bf5e22c6a549cf9f9fb64e5edc9cc2a48173933e" }));
|
|
20
20
|
}
|
|
21
21
|
static get watchers() {
|
|
22
22
|
return { orientation: [{ handleOrientationChange: 0 }] };
|
|
@@ -32,6 +32,6 @@ function g() {
|
|
|
32
32
|
}
|
|
33
33
|
g();
|
|
34
34
|
export {
|
|
35
|
-
g as
|
|
35
|
+
g as o,
|
|
36
36
|
l as r
|
|
37
37
|
};
|
|
@@ -7,7 +7,7 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
7
7
|
}, t), g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
9
9
|
getGidsDropdownPickerClassNames: m
|
|
10
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownPickerClassNames:
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownPickerClassNames: v } = g, f = l(class extends h {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(), e !== !1 && this.__registerHost(), this.appearance = "subtle", this.size = "sm", this.idPicker = "", this.expanded = !1, this.hasLeadingIcon = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.handleDropdownPickerItemSelect = (t) => {
|
|
13
13
|
const { value: i, title: s, disabled: o, id: a, isPlaceholderItem: d } = t.detail;
|
|
@@ -20,7 +20,7 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
20
20
|
if (!(i instanceof Element)) return;
|
|
21
21
|
const s = i.closest(".gids-dropdown-item");
|
|
22
22
|
if (!s || !this.hostElement.contains(s) || s.hasAttribute("disabled") || s.getAttribute("aria-disabled") === "true") return;
|
|
23
|
-
const o = s instanceof HTMLButtonElement ? s.value : s.getAttribute("value")
|
|
23
|
+
const o = s instanceof HTMLButtonElement ? s.value : s.getAttribute("value") || "";
|
|
24
24
|
if (typeof o != "string" || o.length === 0) return;
|
|
25
25
|
const a = s instanceof HTMLButtonElement ? s.id : s.getAttribute("id") ?? "";
|
|
26
26
|
if (typeof a != "string" || a.length === 0) return;
|
|
@@ -110,8 +110,8 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
110
110
|
if (typeof Event < "u" && e !== null) return e instanceof Event ? e : void 0;
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
const e = this.expanded && this.isInteractive(), t =
|
|
114
|
-
return n("div", { key: "
|
|
113
|
+
const e = this.expanded && this.isInteractive(), t = v({ expanded: e }), i = typeof this.idPicker == "string" ? this.idPicker : void 0, s = i ? `${i}__menu` : void 0;
|
|
114
|
+
return n("div", { key: "853c2b26fc0e64ac2f4d04dc1ae83f72eefd1403", class: t, onClick: this.handleOutSpaceClickOfDropdownButtonToggle }, n(c, { key: "e1abb285cd9649aa542620de7a683a9f21dbe19a", role: "pickerbox", "aria-expanded": e ? "true" : "false", "aria-haspopup": "pickerlistbox", "aria-controls": s ?? "", onClick: this.handleDropdownButtonClickToggle, disabled: this.disabled, value: this.selectedItemTitle ?? this.value ?? "", loading: this.loading, appearance: this.appearance, size: this.size }, this.hasLeadingIcon ? n("slot", { name: "leadingIconDropdownPicker", slot: "leadingIcon" }) : n(p, { name: "chevron-down", size: this.size, appearance: "regular", alt: "", slot: "leadingIcon" })), n("div", { key: "4907e8cc94b306a36096e07a662d87b1b687fee7", class: "gids-dropdown-picker__menu", id: s, role: "pickerbox", onClick: this.handleMenuClick }, n("slot", { key: "921b888c10135a2baeda9183b3a06f7bf9aa4abb" })));
|
|
115
115
|
}
|
|
116
116
|
get hostElement() {
|
|
117
117
|
return this;
|
|
@@ -125,11 +125,11 @@ const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
|
125
125
|
}, [260, "gids-dropdown-picker", { appearance: [1], size: [1], idPicker: [1, "id-picker"], expanded: [1540], disabled: [516], loading: [516], value: [513], name: [1], onSelectionChange: [16], selectedItemTitle: [32], hasLeadingIcon: [32] }, void 0, { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }] }]);
|
|
126
126
|
function E() {
|
|
127
127
|
typeof customElements < "u" && ["gids-dropdown-picker"].forEach(((e) => {
|
|
128
|
-
e === "gids-dropdown-picker" && (customElements.get(r(e)) || customElements.define(r(e),
|
|
128
|
+
e === "gids-dropdown-picker" && (customElements.get(r(e)) || customElements.define(r(e), f));
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
131
|
E();
|
|
132
132
|
export {
|
|
133
|
-
E as
|
|
134
|
-
|
|
133
|
+
E as h,
|
|
134
|
+
f as r
|
|
135
135
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as s, L as l, u, D as
|
|
1
|
+
import { q as s, L as l, u, D as i, F as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as n } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
3
|
import { l as r } from "./p-CHGTBObD-EN4cCwtX.js";
|
|
4
4
|
const c = (e) => e.type === "hidden", f = (e) => {
|
|
@@ -18,8 +18,8 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
18
18
|
}, o = l(class extends u {
|
|
19
19
|
constructor(e) {
|
|
20
20
|
super(), e !== !1 && this.__registerHost(), this.#e = {}, this._focusInput = (t) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const a = t.target;
|
|
22
|
+
a === this.#t || this._isWithinInteractiveElement(a) || this.#t?.focus();
|
|
23
23
|
}, this._handleInputFocusAndBlur = (t) => {
|
|
24
24
|
this._el.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
|
|
25
25
|
};
|
|
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
54
54
|
this._el.removeEventListener("click", this._focusInput);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return
|
|
57
|
+
return i(d, { key: "afdbc2c51c4a1f688534c76757ef7cdfb27d1cd0" }, i("slot", { key: "83781fe23a5648cdd8345326e88e235c03cf60bc", name: "leadingIcon" }), this.leadingLabel && i("span", { key: "b457d5343b714096c80ffebce6abd9e62fc57664", class: "gids-input__label" }, this.leadingLabel), i("slot", { key: "e156f0f311bd7b662eb56c07c101b673c0945d14", name: "leadingAccessory" }), i("input", { key: "34d77865f743fab2e85d154b966c90b1434d212d", ...this.inputProps, ref: (e) => {
|
|
58
58
|
this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
|
|
59
|
-
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }),
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), i("slot", { key: "fafb91d6e965e33b40577a10475e9a69a83e7a98", name: "trailingAccessory" }), this.trailingLabel && i("span", { key: "3d673d4b05b850c165817615145e629f39b5859c", class: "gids-input__label" }, this.trailingLabel), i("slot", { key: "ee39bb2e061ace41b7192f0fd2eae7edb35918e2", name: "trailingIcon" }), this.status === "incomplete" && i(n, { key: "5d2faed6c95395d82a2ae1e72483fd15599f14b6", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && i(n, { key: "106200c1b025e3ee1467ffed2f246962933d42d0", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && i(r, { key: "9125ce5ef482066da33b9429e0cb544e1a646cca", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as e, L as t, u as s, D as o } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { d } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
4
|
-
const
|
|
4
|
+
const a = t(class extends s {
|
|
5
5
|
constructor(i) {
|
|
6
6
|
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
7
|
}
|
|
@@ -10,7 +10,7 @@ const n = t(class extends s {
|
|
|
10
10
|
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return o(d, { key: "
|
|
13
|
+
return o(d, { key: "bc81f0bb3a1e558071dc334873802ac8c8ec31ef", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
|
|
14
14
|
}
|
|
15
15
|
get _el() {
|
|
16
16
|
return this;
|
|
@@ -19,13 +19,13 @@ const n = t(class extends s {
|
|
|
19
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
20
|
}
|
|
21
21
|
}, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
|
|
22
|
-
function
|
|
22
|
+
function n() {
|
|
23
23
|
typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
|
|
24
|
-
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i),
|
|
24
|
+
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), a));
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
n();
|
|
28
28
|
export {
|
|
29
|
-
|
|
30
|
-
n
|
|
29
|
+
n as d,
|
|
30
|
+
a as n
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as a, L as _, u as m, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as b } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { o as u } from "./p-BCVFQSjK-CKrYrI4b.js";
|
|
4
|
+
import { d as v } from "./p-C3xv7tfs-RodXvmql.js";
|
|
5
5
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const f = ({ breakpoint: e }, r) => x("gids-pie-chart", {
|
|
7
7
|
"gids-pie-chart--breakpoint-mobile": e === "mobile"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { q as l, L as
|
|
1
|
+
import { q as l, L as d, u as o, D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { o as h } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
3
3
|
import { d as c } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { e as p } from "./p-ChV9xqsO-CJSPCx6p.js";
|
|
5
|
+
import { l as u } from "./p-COHuQEfZ-C_POuXNC.js";
|
|
6
|
+
import { u as b } from "./p-Chqeexny-C4hlPbBP.js";
|
|
7
|
+
import { h as m } from "./p-BSbOhfLZ-ByjjVMqG.js";
|
|
7
8
|
import { c as k } from "./clsx-OuTLNxxd.js";
|
|
8
9
|
const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
9
10
|
const t = new Date(2e3, e - 1, 1);
|
|
@@ -12,21 +13,7 @@ const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
|
12
13
|
__proto__: null,
|
|
13
14
|
getCalendarMonthNameViaMonthNumber: f,
|
|
14
15
|
getGidsCalendarHeaderPanelClassNames: g
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
16
|
-
function d(e) {
|
|
17
|
-
var a, t, n = "";
|
|
18
|
-
if (typeof e == "string" || typeof e == "number") n += e;
|
|
19
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
20
|
-
var i = e.length;
|
|
21
|
-
for (a = 0; a < i; a++) e[a] && (t = d(e[a])) && (n && (n += " "), n += t);
|
|
22
|
-
} else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
23
|
-
return n;
|
|
24
|
-
}
|
|
25
|
-
function y() {
|
|
26
|
-
for (var e, a, t = 0, n = "", i = arguments.length; t < i; t++) (e = arguments[t]) && (a = d(e)) && (n && (n += " "), n += a);
|
|
27
|
-
return n;
|
|
28
|
-
}
|
|
29
|
-
const { getGidsCalendarHeaderPanelClassNames: v, getCalendarMonthNameViaMonthNumber: s } = P, M = o(class extends p {
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarHeaderPanelClassNames: M, getCalendarMonthNameViaMonthNumber: r } = P, v = d(class extends o {
|
|
30
17
|
constructor(e) {
|
|
31
18
|
super(), e !== !1 && this.__registerHost(), this.appearance = "primary", this.monthPickerDisabled = !1, this.yearPickerDisabled = !1, this.panelDisabled = !1, this.previousDisabled = !1, this.nextDisabled = !1, this.expandedMonthPicker = !1, this.expandedYearPicker = !1, this.internalPreviousDisabled = !1, this.internalNextDisabled = !1, this.suppressNextMenuClickSelection = !1, this.suppressNextActionClickSelection = !1, this.fallbackYear = (/* @__PURE__ */ new Date()).getFullYear(), this.fallbackMonth = 1, this.fallbackStartYear = (/* @__PURE__ */ new Date()).getFullYear(), this.fallbackEndYear = (/* @__PURE__ */ new Date()).getFullYear() + 100, this.handleMonthPickerMenuClick = (a) => {
|
|
32
19
|
if (this.suppressNextMenuClickSelection) return;
|
|
@@ -38,20 +25,20 @@ const { getGidsCalendarHeaderPanelClassNames: v, getCalendarMonthNameViaMonthNum
|
|
|
38
25
|
this.updateActionProps({ newSelectedMonthNumber: this?.panelMonthNumber ?? this.fallbackMonth, newSelectedYear: t?.year ?? this.fallbackYear }), this.applyYearSelection({ id: t.id, type: "year", month: this.panelMonth, monthNumber: Number(this?.panelMonthNumber), year: t?.year, disabled: !1, panelValue: `${this.panelMonth} ${t.year}` });
|
|
39
26
|
}, this.handlePreviousActionClick = (a) => {
|
|
40
27
|
if (this.suppressNextActionClickSelection || !(a.target instanceof Element) || !this.isPreviousActionInteractive()) return;
|
|
41
|
-
const { newSelectedMonthNumber: t, newSelectedYear:
|
|
42
|
-
this.updateActionProps({ newSelectedMonthNumber: t, newSelectedYear:
|
|
43
|
-
const
|
|
44
|
-
this.applyActionsSelection({ type: "previous", month:
|
|
28
|
+
const { newSelectedMonthNumber: t, newSelectedYear: i } = this.onPreviousActionChange();
|
|
29
|
+
this.updateActionProps({ newSelectedMonthNumber: t, newSelectedYear: i });
|
|
30
|
+
const s = r(t);
|
|
31
|
+
this.applyActionsSelection({ type: "previous", month: s, monthNumber: t, year: i, disabled: !1, panelValue: `${s} ${i}` });
|
|
45
32
|
}, this.handleNextActionClick = (a) => {
|
|
46
33
|
if (this.suppressNextActionClickSelection || !(a.target instanceof Element) || !this.isNextActionInteractive()) return;
|
|
47
|
-
const { newSelectedMonthNumber: t, newSelectedYear:
|
|
48
|
-
this.updateActionProps({ newSelectedMonthNumber: t, newSelectedYear:
|
|
49
|
-
const
|
|
50
|
-
this.applyActionsSelection({ type: "next", month:
|
|
34
|
+
const { newSelectedMonthNumber: t, newSelectedYear: i } = this.onNextActionChange();
|
|
35
|
+
this.updateActionProps({ newSelectedMonthNumber: t, newSelectedYear: i });
|
|
36
|
+
const s = r(t);
|
|
37
|
+
this.applyActionsSelection({ type: "next", month: s, monthNumber: t, year: i, disabled: !1, panelValue: `${s} ${i}` });
|
|
51
38
|
};
|
|
52
39
|
}
|
|
53
40
|
handleSelectedMonthNumberChange(e) {
|
|
54
|
-
e != null && (this.panelMonthNumber = e, this.panelMonth =
|
|
41
|
+
e != null && (this.panelMonthNumber = e, this.panelMonth = r(e), this.syncPanelDisplayValue());
|
|
55
42
|
}
|
|
56
43
|
handleSelectedYearChange(e) {
|
|
57
44
|
e != null && (this.panelYear = e, this.syncPanelDisplayValue());
|
|
@@ -72,7 +59,7 @@ const { getGidsCalendarHeaderPanelClassNames: v, getCalendarMonthNameViaMonthNum
|
|
|
72
59
|
this.appearance = e;
|
|
73
60
|
}
|
|
74
61
|
connectedCallback() {
|
|
75
|
-
this.panelMonthNumber = this.selectedMonthNumber ?? this.fallbackMonth, this.panelMonth =
|
|
62
|
+
this.panelMonthNumber = this.selectedMonthNumber ?? this.fallbackMonth, this.panelMonth = r(this.selectedMonthNumber ?? this.fallbackMonth), this.panelYear = this.selectedYear ?? this.fallbackYear, this.panelDisplayValue = `${this.panelMonth} ${this.panelYear}`, this.syncPanelDisplayValue(), this.setPreviousActionInteractivity(), this.setNextActionInteractivity();
|
|
76
63
|
}
|
|
77
64
|
applyMonthSelection(e) {
|
|
78
65
|
this.setExpandedMonthPickerState(!1, this.coerceEvent(e?.originalEvent)), this.setPreviousActionInteractivity(), this.setNextActionInteractivity(), this.onPanelMonthChange?.(e), this.hostElement.dispatchEvent(new CustomEvent("gidsPanelMonthChange", { bubbles: !0, composed: !0, detail: e }));
|
|
@@ -124,7 +111,7 @@ const { getGidsCalendarHeaderPanelClassNames: v, getCalendarMonthNameViaMonthNum
|
|
|
124
111
|
if (typeof Event < "u" && e !== null) return e instanceof Event ? e : void 0;
|
|
125
112
|
}
|
|
126
113
|
updatePanelMonth(e) {
|
|
127
|
-
e ? (this.selectedMonthNumber = e, this.panelMonth =
|
|
114
|
+
e ? (this.selectedMonthNumber = e, this.panelMonth = r(e), this.panelMonthNumber = e) : (this.selectedMonthNumber = this.fallbackMonth, this.panelMonth = r(this.fallbackMonth), this.panelMonthNumber = this.fallbackMonth);
|
|
128
115
|
}
|
|
129
116
|
updatePanelYear(e) {
|
|
130
117
|
e ? (this.selectedYear = e, this.panelYear = e) : this.panelYear = this.fallbackYear;
|
|
@@ -142,8 +129,8 @@ const { getGidsCalendarHeaderPanelClassNames: v, getCalendarMonthNameViaMonthNum
|
|
|
142
129
|
return this.panelDisplayValue;
|
|
143
130
|
}
|
|
144
131
|
render() {
|
|
145
|
-
const e =
|
|
146
|
-
return
|
|
132
|
+
const e = M(), a = this.expandedMonthPicker && this.isMonthPickerInteractive() && !this.expandedYearPicker, t = this.expandedYearPicker && this.isYearPickerInteractive() && !this.expandedMonthPicker, i = this.internalPreviousDisabled || this.previousDisabled, s = this.internalNextDisabled || this.nextDisabled;
|
|
133
|
+
return n("div", { key: "95eed567dae266c88b75c8fe606ef5dc1f72b8f2", class: e }, n(h, { key: "fcaa7636d1dddf0fe32ebeb70cdb6d0b726111ab", leadingIcon: n(c, { name: "arrow-left", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handlePreviousActionClick, disabled: i }), n("div", { key: "91925ca2dc02cc964e58902f0d12a90a670b22fa", class: "gids-calendar-header-panel__main-container" }, n("gids-dropdown-picker", { key: "ae734185b01ab0ec8a5776fb7577ef0a051f94d5", expanded: a, appearance: this.appearance, size: "sm", value: `${this.panelMonthNumber}`, disabled: this.monthPickerDisabled }, n("gids-calendar-month-list", { key: "c3396d08af747adcba8b066bf750b5cf2194b4a9", type: "default", selectedMonthNumber: this.panelMonthNumber, onSelectionMonthChange: this.handleMonthPickerMenuClick })), n("span", { key: "2789e719ad1774484ce2359b85fc9d54a0f135f4", class: p("gids-calendar-header-panel__panel-value", { "gids-calendar-header-panel__panel-value-disabled": this.panelDisabled }) }, this.getPanelValue()), n("gids-dropdown-picker", { key: "330f4a4486f308fc2d4680da417dcf7c7a2e5ec3", expanded: t, appearance: this.appearance, size: "sm", value: `${this.panelYear}`, disabled: this.yearPickerDisabled }, n("gids-calendar-year-list", { key: "09f54b5d3b93d01595adbd30cf961354cb5e48fa", type: "default", selectedYear: this.panelYear, startYear: this.startYear ?? this.fallbackStartYear, endYear: this.endYear, onSelectionYearChange: this.handleYearPickerMenuClick }))), n(h, { key: "5f4ce2b0e4c8a55a5691b4c096955e05e49db919", leadingIcon: n(c, { name: "arrow-right", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handleNextActionClick, disabled: s }));
|
|
147
134
|
}
|
|
148
135
|
get hostElement() {
|
|
149
136
|
return this;
|
|
@@ -155,11 +142,11 @@ const { getGidsCalendarHeaderPanelClassNames: v, getCalendarMonthNameViaMonthNum
|
|
|
155
142
|
return ".gids-calendar-header-panel{display:flex;justify-content:center;align-items:center;align-self:stretch;gap:var(--gids-gap-150);width:100%}.gids-calendar-header-panel__main-container{display:flex;flex:1 0 0;align-items:center;justify-content:center;align-self:stretch;gap:var(--gids-gap-100)}.gids-calendar-header-panel__panel-value{font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);text-align:center}.gids-calendar-header-panel__panel-value-disabled{color:var(--gids-color-text-disabled)}";
|
|
156
143
|
}
|
|
157
144
|
}, [0, "gids-calendar-header-panel", { selectedMonthNumber: [1538, "selected-month-number"], selectedYear: [1538, "selected-year"], startYear: [1538, "start-year"], endYear: [1538, "end-year"], appearance: [1], monthPickerDisabled: [4, "month-picker-disabled"], yearPickerDisabled: [4, "year-picker-disabled"], panelDisabled: [4, "panel-disabled"], previousDisabled: [4, "previous-disabled"], nextDisabled: [4, "next-disabled"], expandedMonthPicker: [1540, "expanded-month-picker"], expandedYearPicker: [1540, "expanded-year-picker"], onPreviousChange: [16], onNextChange: [16], onPanelMonthChange: [16], onPanelYearChange: [16], panelMonth: [32], panelMonthNumber: [32], panelYear: [32], panelDisplayValue: [32], internalPreviousDisabled: [32], internalNextDisabled: [32] }, void 0, { selectedMonthNumber: [{ handleSelectedMonthNumberChange: 0 }], selectedYear: [{ handleSelectedYearChange: 0 }], expandedMonthPicker: [{ handleExpandedMonthPickerChange: 0 }], expandedYearPicker: [{ handleExpandedYearPickerChange: 0 }], monthPickerDisabled: [{ handleMonthPickerInteractivityChange: 0 }], yearPickerDisabled: [{ handleYearPickerInteractivityChange: 0 }], appearance: [{ handleAppearanceChange: 0 }] }]);
|
|
158
|
-
function
|
|
145
|
+
function y() {
|
|
159
146
|
typeof customElements < "u" && ["gids-calendar-header-panel", "gids-calendar-month-list", "gids-calendar-year-list", "gids-dropdown-picker"].forEach(((e) => {
|
|
160
147
|
switch (e) {
|
|
161
148
|
case "gids-calendar-header-panel":
|
|
162
|
-
customElements.get(l(e)) || customElements.define(l(e),
|
|
149
|
+
customElements.get(l(e)) || customElements.define(l(e), v);
|
|
163
150
|
break;
|
|
164
151
|
case "gids-calendar-month-list":
|
|
165
152
|
customElements.get(l(e)) || u();
|
|
@@ -172,9 +159,9 @@ function Y() {
|
|
|
172
159
|
}
|
|
173
160
|
}));
|
|
174
161
|
}
|
|
175
|
-
|
|
162
|
+
y();
|
|
176
163
|
export {
|
|
177
|
-
|
|
164
|
+
v as m,
|
|
178
165
|
P as n,
|
|
179
|
-
|
|
166
|
+
y as u
|
|
180
167
|
};
|
|
@@ -26,7 +26,7 @@ const o = ({ seriesType: e, orientation: a }, r) => l("gids-chart-legend-item",
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const e = c({ seriesType: this.seriesType, orientation: this.orientation });
|
|
29
|
-
return t("div", { key: "
|
|
29
|
+
return t("div", { key: "53426e6c9a945d640fd4ac57018c92d19f13ed12", class: e }, t("div", { key: "c6a5115aa46ea3b08eb8163d1c572beb9e1133a6", class: this.orientation === "vertical" ? "gids-chart-legend-item__dot-wrapper-vertical" : "gids-chart-legend-item__dot-wrapper-horizontal" }, t(d, { key: "32eda54148964970c44c09149c6962934fb4381e", name: "new", alt: "new_icon", appearance: "filled" })), t("span", { key: "dfad8f6a6cd0f623bfdc827c826a20ca88f0aa56", class: "gids-chart-legend-item__label" }, t("slot", { key: "acc890c13bfa893c419a8001998f64fa1ba88bcb" })));
|
|
30
30
|
}
|
|
31
31
|
static get watchers() {
|
|
32
32
|
return { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }] };
|
|
@@ -42,6 +42,6 @@ function m() {
|
|
|
42
42
|
}
|
|
43
43
|
m();
|
|
44
44
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
m as d,
|
|
46
|
+
h as l
|
|
47
47
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as d, L as f, u as v, D as e } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as u } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { o as w } from "./p-BCVFQSjK-CKrYrI4b.js";
|
|
4
|
+
import { d as k } from "./p-C3xv7tfs-RodXvmql.js";
|
|
5
5
|
import { c as z } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const L = ({ breakpoint: a }, s) => z("gids-line-chart", {
|
|
7
7
|
"gids-line-chart--breakpoint-mobile": a === "mobile"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { q as
|
|
1
|
+
import { q as d, L as u, u as p, D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as m } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
|
-
import { r as g } from "./p-
|
|
4
|
-
import { c
|
|
5
|
-
const v = ({ expanded: e }, t) =>
|
|
3
|
+
import { r as g } from "./p-BVAtja26-Xjd4_b4e.js";
|
|
4
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
6
6
|
"gids-dropdown--expanded": e
|
|
7
|
-
}, t), f = ({ size: e }, t) =>
|
|
7
|
+
}, t), f = ({ size: e }, t) => c("gids-chevron-button-control", {
|
|
8
8
|
"gids-chevron-button-control--small": e === "sm",
|
|
9
9
|
// 'gids-chevron-button-control--medium': size === 'md', // Default
|
|
10
10
|
"gids-chevron-button-control--large": e === "lg"
|
|
@@ -12,25 +12,26 @@ const v = ({ expanded: e }, t) => h("gids-dropdown", {
|
|
|
12
12
|
__proto__: null,
|
|
13
13
|
getGidsChevronButtonControlClassNames: f,
|
|
14
14
|
getGidsDropdownClassNames: v
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: b, getGidsChevronButtonControlClassNames: I } = y,
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: b, getGidsChevronButtonControlClassNames: I } = y, h = "gids-dropdown-item--active", E = u(class extends p {
|
|
16
16
|
constructor(e) {
|
|
17
17
|
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.expanded = !1, this.filterValue = "", this.isFilterEditing = !1, this.hasLeadingIcon = !1, this.hasLeadingAccessory = !1, this.activeIndex = -1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.hasPendingControlRevalidation = !1, this.handleDropdownItemSelect = (t) => {
|
|
18
|
-
const { value: i, title: n, disabled: s, id: o, isPlaceholderItem:
|
|
18
|
+
const { value: i, title: n, disabled: s, id: o, isPlaceholderItem: l } = t.detail;
|
|
19
19
|
s || typeof i != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
20
20
|
this.suppressNextMenuClickSelection = !1;
|
|
21
|
-
})), this.applySelection({ id: o, value: i, title: n, disabled: !1, originalEvent: t, isPlaceholderItem:
|
|
21
|
+
})), this.applySelection({ id: o, value: i, title: n, disabled: !1, originalEvent: t, isPlaceholderItem: l }));
|
|
22
22
|
}, this.handleMenuClick = (t) => {
|
|
23
23
|
if (this.suppressNextMenuClickSelection) return;
|
|
24
24
|
const i = t.target;
|
|
25
25
|
if (!(i instanceof Element)) return;
|
|
26
26
|
const n = i.closest(".gids-dropdown-item");
|
|
27
27
|
if (!n || !this.hostElement.contains(n) || n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") return;
|
|
28
|
-
const s = n instanceof HTMLButtonElement ? n.value : n.getAttribute("value")
|
|
28
|
+
const s = n instanceof HTMLButtonElement ? n.value : n.getAttribute("value") || "";
|
|
29
29
|
if (typeof s != "string" || s.length === 0) return;
|
|
30
30
|
const o = n instanceof HTMLButtonElement ? n.id : n.getAttribute("id") ?? "";
|
|
31
31
|
if (typeof o != "string" || o.length === 0) return;
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const l = n.getAttribute("is-placeholder-item") ?? "";
|
|
33
|
+
let r = n.textContent?.trim() ?? "";
|
|
34
|
+
r.endsWith("checkmark") && (r = r.slice(0, -9).trim()), console.log("cleanTitle", r), this.applySelection({ id: o, value: s, title: r.trim(), disabled: !1, originalEvent: t, isPlaceholderItem: !(!l || l !== "true") });
|
|
34
35
|
}, this.handleFilterInput = (t) => {
|
|
35
36
|
const i = t.target;
|
|
36
37
|
this.filterValue = i?.value ?? "", this.isFilterEditing = !0, this.clearActive(), this.expanded || this.setExpandedState(!0, t), this.applyFilter();
|
|
@@ -107,14 +108,14 @@ const v = ({ expanded: e }, t) => h("gids-dropdown", {
|
|
|
107
108
|
t && (t.value = e, t.dispatchEvent(new Event("input", { bubbles: !0, composed: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
|
|
108
109
|
}
|
|
109
110
|
clearActive() {
|
|
110
|
-
this.activeIndex = -1, this.getItemElements().forEach(((e) => e.classList.remove(
|
|
111
|
+
this.activeIndex = -1, this.getItemElements().forEach(((e) => e.classList.remove(h))), this.setActiveDescendant(void 0);
|
|
111
112
|
}
|
|
112
113
|
setActiveByIndex(e) {
|
|
113
114
|
const t = this.getVisibleEnabledItems();
|
|
114
|
-
if (this.getItemElements().forEach(((s) => s.classList.remove(
|
|
115
|
+
if (this.getItemElements().forEach(((s) => s.classList.remove(h))), t.length === 0) return this.activeIndex = -1, void this.setActiveDescendant(void 0);
|
|
115
116
|
const i = Math.max(0, Math.min(e, t.length - 1)), n = t[i];
|
|
116
117
|
if (!n) return this.activeIndex = -1, void this.setActiveDescendant(void 0);
|
|
117
|
-
this.activeIndex = i, n.classList.add(
|
|
118
|
+
this.activeIndex = i, n.classList.add(h), n.scrollIntoView({ block: "nearest" }), this.setActiveDescendant(n.id || void 0);
|
|
118
119
|
}
|
|
119
120
|
moveActive(e) {
|
|
120
121
|
const t = this.getVisibleEnabledItems();
|
|
@@ -212,8 +213,8 @@ const v = ({ expanded: e }, t) => h("gids-dropdown", {
|
|
|
212
213
|
render() {
|
|
213
214
|
const e = this.expanded && this.isInteractive(), t = b({ expanded: e }), i = this.getEnhancedInputProps(), n = typeof i.id == "string" ? i.id : void 0, s = n ? `${n}__menu` : void 0;
|
|
214
215
|
i.role = "combobox", i["aria-expanded"] = e ? "true" : "false", i["aria-haspopup"] = "listbox", i["aria-autocomplete"] = "list", s && (i["aria-controls"] = s);
|
|
215
|
-
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "",
|
|
216
|
-
return a("div", { key: "
|
|
216
|
+
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", l = e ? "true" : "false", r = a("button", { key: "3c948278bf289c4fd943e4bff51c8e44e73ba6c9", class: I({ size: "lg" }), slot: "trailingAccessory", type: "button", onClick: this.handleChevronClickToggle, "aria-label": e ? "Collapse options" : "Expanded options", "aria-expanded": l, "aria-haspopup": "listbox", "aria-controls": s, disabled: this.disabled || this.readOnly, tabIndex: -1 }, a("span", { key: "284f2a2141baa75624fcd9eeee21e6c98fd1e86e", class: "gids-button__content" }, a(m, { key: "1e6567b3d5aefedfef1697f59d79de1a0635f86b", name: "chevron-vertical", alt: "" })));
|
|
217
|
+
return a("div", { key: "82b234b661a97f00fbfb69b1c24d3b1f468521dc", class: t }, a("gids-input", { key: "6068c25be9fc8533a26525083c6082bfdfffbbfa", appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: o, name: this.name, inputProps: i, onClick: this.handleInputClickToggle, onFocus: this.handleInputFocusAndBlur, onBlur: this.handleInputFocusAndBlur }, this.hasLeadingIcon && a("slot", { key: "8230d44f492a98c05c5830fa984270122f0963ca", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && a("slot", { key: "3a80369ad171bc0e37dfccbb9661d0db93dd55c1", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), r), a("div", { key: "2cad6d5213802acf9b673971a748bd16c06b986a", class: "gids-dropdown__menu", id: s, role: "listbox", onClick: this.handleMenuClick }, a("slot", { key: "90e9298103623d8a87677470c0f7e9b8655be880" })));
|
|
217
218
|
}
|
|
218
219
|
get hostElement() {
|
|
219
220
|
return this;
|
|
@@ -229,10 +230,10 @@ function x() {
|
|
|
229
230
|
typeof customElements < "u" && ["gids-dropdown", "gids-input"].forEach(((e) => {
|
|
230
231
|
switch (e) {
|
|
231
232
|
case "gids-dropdown":
|
|
232
|
-
customElements.get(
|
|
233
|
+
customElements.get(d(e)) || customElements.define(d(e), E);
|
|
233
234
|
break;
|
|
234
235
|
case "gids-input":
|
|
235
|
-
customElements.get(
|
|
236
|
+
customElements.get(d(e)) || g();
|
|
236
237
|
}
|
|
237
238
|
}));
|
|
238
239
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as d, L as r, u as
|
|
2
|
-
import { m as
|
|
1
|
+
import { q as d, L as r, u as c, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { m as h, x as m, N as u } from "./p-D6lxqcxP-DWrZi1Xi.js";
|
|
3
3
|
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
const
|
|
4
|
+
const I = (t) => p("gids-calendar-month-list", t), f = () => {
|
|
5
5
|
const t = [], s = new Intl.DateTimeFormat("en-US", { month: "long" });
|
|
6
6
|
for (let e = 1; e <= 12; e += 1) {
|
|
7
7
|
const n = new Date(2e3, e - 1, 1), i = s.format(n);
|
|
@@ -14,9 +14,9 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
14
14
|
return t;
|
|
15
15
|
}, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
16
|
__proto__: null,
|
|
17
|
-
getGidsCalendarMonthListClassNames:
|
|
18
|
-
getGidsCalendarMonthListMonths:
|
|
19
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, x = r(class extends
|
|
17
|
+
getGidsCalendarMonthListClassNames: I,
|
|
18
|
+
getGidsCalendarMonthListMonths: f
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, x = r(class extends c {
|
|
20
20
|
constructor(t) {
|
|
21
21
|
super(), t !== !1 && this.__registerHost(), this.type = "default", this.disabledIndices = [], this.divider = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.handleCalendarMenuItemSelect = (s) => {
|
|
22
22
|
const { title: e, value: n, selectedIndex: i, disabled: o, id: a } = s.detail;
|
|
@@ -59,7 +59,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
const t = g();
|
|
62
|
-
return l("div", { key: "
|
|
62
|
+
return l("div", { key: "03c81c7b6d2fb6a1439f4a51a91817661b208175", class: t }, l(h, { key: "218015b22be3ab5dc1257ab99710759fcc91a60f", type: this.type, supportingText: this.noOptionsText }, l(m, { key: "63be7405e6ec2c1e658429832c3a484aa149880b", sectionLabel: "Months" }, this.monthsList().map(((s, e) => {
|
|
63
63
|
const n = `${e + 1}`, i = this.disabledIndices?.includes(e);
|
|
64
64
|
return l(u, { title: s.title, value: `${s.value}`, key: `${e.toString()}`, index: e, id: n, selected: this.isItemSelected(e), onPressDropdownItem: this.handleMenuClick, disabled: i, divider: this.divider, isPlaceholderItem: !1 });
|
|
65
65
|
})))));
|
|
@@ -75,6 +75,6 @@ function C() {
|
|
|
75
75
|
}
|
|
76
76
|
C();
|
|
77
77
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
x as c,
|
|
79
|
+
C as l
|
|
80
80
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function i(r) {
|
|
2
|
+
var f, t, n = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") n += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (f = 0; f < o; f++) r[f] && (t = i(r[f])) && (n && (n += " "), n += t);
|
|
7
|
+
} else for (t in r) r[t] && (n && (n += " "), n += t);
|
|
8
|
+
return n;
|
|
9
|
+
}
|
|
10
|
+
function a() {
|
|
11
|
+
for (var r, f, t = 0, n = "", o = arguments.length; t < o; t++) (r = arguments[t]) && (f = i(r)) && (n && (n += " "), n += f);
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
a as e
|
|
16
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as d, L as c, u as h, D as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { m as u, x as m, N as Y } from "./p-D6lxqcxP-DWrZi1Xi.js";
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
3
|
+
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
5
5
|
const t = e.toString().trim();
|
|
6
6
|
if (!/^\d{4}$/.test(t))
|
|
7
7
|
return !1;
|
|
@@ -21,10 +21,10 @@ const p = (e) => f("gids-calendar-year-list", e), g = (e) => {
|
|
|
21
21
|
return s;
|
|
22
22
|
}, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
|
-
getGidsCalendarYearListClassNames:
|
|
24
|
+
getGidsCalendarYearListClassNames: f,
|
|
25
25
|
getGidsCalendarYearListYears: I,
|
|
26
26
|
isValidFourDigitYear: g
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears:
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears: b, isValidFourDigitYear: l } = S, w = c(class extends h {
|
|
28
28
|
constructor(e) {
|
|
29
29
|
super(), e !== !1 && this.__registerHost(), this.type = "default", this.disabledIndices = [], this.divider = !1, this.newStartYear = (/* @__PURE__ */ new Date()).getFullYear(), this.newEndYear = (/* @__PURE__ */ new Date()).getFullYear() + 100, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.handleCalendarMenuItemSelect = (t) => {
|
|
30
30
|
const { title: s, value: a, selectedIndex: r, disabled: n, id: o } = t.detail;
|
|
@@ -35,7 +35,7 @@ const p = (e) => f("gids-calendar-year-list", e), g = (e) => {
|
|
|
35
35
|
if (this.suppressNextMenuClickSelection) return;
|
|
36
36
|
const s = t?.detail;
|
|
37
37
|
this.applySelection({ id: s.id, year: Number(s.value), disabled: !1, selectedIndex: s.selectedIndex, startYear: this.newStartYear, endYear: this.newEndYear });
|
|
38
|
-
}, this.yearsList = () =>
|
|
38
|
+
}, this.yearsList = () => b({ startYear: this.newStartYear, endYear: this.newEndYear }), this.getSelectedItem = () => {
|
|
39
39
|
const t = this.selectedYear, s = this.yearsList(), a = s.findIndex(((n) => n.value === t));
|
|
40
40
|
let r;
|
|
41
41
|
return a != null && a !== -1 && (r = s[a]), { foundItem: r, foundIndex: a };
|
|
@@ -71,7 +71,7 @@ const p = (e) => f("gids-calendar-year-list", e), g = (e) => {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
const e = y();
|
|
74
|
-
return i("div", { key: "
|
|
74
|
+
return i("div", { key: "af9ef0437dbeba878bb5d09b0dcb4339ab819efd", class: e }, i(u, { key: "8083aa3b6a0160923f514bf067475cc835c3256b", type: this.type, supportingText: this.noOptionsText }, i(m, { key: "d9c7ec1df68bd2e67e236e7135927f27dd7bc328", sectionLabel: "Years" }, this.yearsList().map(((t, s) => {
|
|
75
75
|
const a = `${s + 1}`, r = this.disabledIndices?.includes(t.value);
|
|
76
76
|
return i(Y, { title: t.title, value: `${t.value}`, key: `${s.toString()}`, index: s, id: a, selected: this.isItemSelected(s), onPressDropdownItem: this.handleMenuClick, disabled: r, divider: this.divider, isPlaceholderItem: !1 });
|
|
77
77
|
})))));
|
|
@@ -80,13 +80,13 @@ const p = (e) => f("gids-calendar-year-list", e), g = (e) => {
|
|
|
80
80
|
return this;
|
|
81
81
|
}
|
|
82
82
|
}, [0, "gids-calendar-year-list", { type: [1], noOptionsText: [1, "no-options-text"], disabledIndices: [16], divider: [4], selectedYear: [2, "selected-year"], startYear: [2, "start-year"], endYear: [2, "end-year"], onSelectionYearChange: [16], newStartYear: [32], newEndYear: [32] }]);
|
|
83
|
-
function
|
|
83
|
+
function E() {
|
|
84
84
|
typeof customElements < "u" && ["gids-calendar-year-list"].forEach(((e) => {
|
|
85
|
-
e === "gids-calendar-year-list" && (customElements.get(d(e)) || customElements.define(d(e),
|
|
85
|
+
e === "gids-calendar-year-list" && (customElements.get(d(e)) || customElements.define(d(e), w));
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
E();
|
|
89
89
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
w as l,
|
|
91
|
+
E as u
|
|
92
92
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as x, L as C, u as D, D as e } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { p as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { p as $ } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
+
import { o as L } from "./p-BCVFQSjK-CKrYrI4b.js";
|
|
4
|
+
import { d as E } from "./p-C3xv7tfs-RodXvmql.js";
|
|
5
5
|
import { c as P } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const M = ({ breakpoint: a }, o) => P("gids-bar-chart", {
|
|
7
7
|
"gids-bar-chart--breakpoint-mobile": a === "mobile"
|
|
@@ -35,7 +35,7 @@ const M = ({ breakpoint: a }, o) => P("gids-bar-chart", {
|
|
|
35
35
|
this.width = a.width, this.height = a.height > 0 ? a.height : 300;
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
if (this.chartLoading) return e("div", { class: "gids-bar-chart__no-data" }, e(
|
|
38
|
+
if (this.chartLoading) return e("div", { class: "gids-bar-chart__no-data" }, e($, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
|
|
39
39
|
const a = this?.chartData?.[0]?.data?.map(((t) => t.label)) ?? [], o = a.length, d = Array(o).fill(0);
|
|
40
40
|
this.chartData.forEach(((t) => {
|
|
41
41
|
Array.isArray(t?.data) && t.data.forEach(((i, r) => {
|
|
@@ -101,7 +101,7 @@ function O() {
|
|
|
101
101
|
customElements.get(x(a)) || customElements.define(x(a), j);
|
|
102
102
|
break;
|
|
103
103
|
case "gids-chart-legend":
|
|
104
|
-
customElements.get(x(a)) ||
|
|
104
|
+
customElements.get(x(a)) || L();
|
|
105
105
|
break;
|
|
106
106
|
case "gids-chart-legend-item":
|
|
107
107
|
customElements.get(x(a)) || E();
|