@ganpatiinfo/gids-core-web 10.3.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 +259 -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 +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- 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-CD_BHkBE.js → p-6APCjBEI.js} +1 -1
- package/dist/p-BCVFQSjK.js +1 -0
- package/dist/{p-DfrYaprq.js → p-BSbOhfLZ.js} +1 -1
- package/dist/{p-DA_atCAU.js → p-BVAtja26.js} +1 -1
- package/dist/{p-BeP2XcqY.js → p-C2O_pGky.js} +1 -1
- package/dist/{p-3Ni1-UuQ.js → p-C3We7Q8Q.js} +1 -1
- package/dist/{p-C4yEV6pT.js → p-C3w3wdCt.js} +1 -1
- package/dist/{p-BQCMjWpK.js → p-C3xv7tfs.js} +1 -1
- package/dist/{p-Ditd1zV7.js → p-C56G7JRy.js} +1 -1
- package/dist/p-CI-sN9Lr.js +1 -0
- package/dist/{p-WHI6NO_h.js → p-COHuQEfZ.js} +1 -1
- package/dist/{p-CkydANOS.js → p-Chqeexny.js} +1 -1
- package/dist/{p-C2PfO9h9.js → p-DO0MyFf4.js} +1 -1
- package/dist/p-DUojHltk.js +1 -0
- package/dist/{p-DlI2raNo.js → p-VJAcf53T.js} +1 -1
- package/dist/p-_SIWct9h.js +1 -0
- package/dist/{p-qIkbfIF3.js → p-pSb81aE0.js} +1 -1
- package/dist/{p-BE2G21MT.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/GidsExpansionBodyList/GidsExpansionBodyList.d.ts +5 -4
- 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 +183 -12
- 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 +1 -1
- 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 +4 -4
- package/dist-bundled/es/gids-calendar.js +7 -7
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +18 -18
- package/dist-bundled/es/gids-chevron-button.js +1 -1
- package/dist-bundled/es/gids-dot.js +1 -1
- 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 +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +35 -35
- package/dist-bundled/es/gids-expansion-group.js +5 -5
- package/dist-bundled/es/gids-expansion.js +3 -3
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +2 -2
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +1 -1
- 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 +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +22 -22
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-scrim.js +6 -6
- package/dist-bundled/es/gids-tab-item.js +6 -6
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +14 -14
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/{p-CD_BHkBE-DX2546yK.js → p-6APCjBEI-roDSyEYu.js} +5 -5
- package/dist-bundled/es/{p-Cn-t3SGc-CwvvOdlK.js → p-BCVFQSjK-CKrYrI4b.js} +15 -15
- package/dist-bundled/es/{p-DfrYaprq-CeZqb0rn.js → p-BSbOhfLZ-ByjjVMqG.js} +2 -2
- package/dist-bundled/es/{p-DA_atCAU-KdxJYYDE.js → p-BVAtja26-Xjd4_b4e.js} +7 -7
- package/dist-bundled/es/{p-BeP2XcqY-DMXmX4Mc.js → p-C2O_pGky-C_30AJ3m.js} +9 -9
- package/dist-bundled/es/{p-3Ni1-UuQ-CPn15cat.js → p-C3We7Q8Q-DT_NDg87.js} +2 -2
- package/dist-bundled/es/{p-C4yEV6pT-8IjLINXB.js → p-C3w3wdCt-I6zwuecb.js} +5 -5
- package/dist-bundled/es/{p-BQCMjWpK-CLxPNItn.js → p-C3xv7tfs-RodXvmql.js} +3 -3
- package/dist-bundled/es/{p-Ditd1zV7-DdQjXthS.js → p-C56G7JRy-B3HO4aVF.js} +2 -2
- package/dist-bundled/es/{p-DVVJrKxO-Bdl0HX_u.js → p-CI-sN9Lr-DHC9DyS8.js} +19 -18
- package/dist-bundled/es/{p-WHI6NO_h-DHNy0JzV.js → p-COHuQEfZ-C_POuXNC.js} +10 -10
- package/dist-bundled/es/{p-CkydANOS-CzTX9wng.js → p-Chqeexny-C4hlPbBP.js} +5 -5
- package/dist-bundled/es/{p-C2PfO9h9-H_toZwKo.js → p-DO0MyFf4-D7XItX1k.js} +5 -5
- package/dist-bundled/es/p-DUojHltk-GyvsWoCM.js +172 -0
- package/dist-bundled/es/{p-DlI2raNo-5V-p1A9Z.js → p-VJAcf53T-2X0vBJ1A.js} +1 -1
- package/dist-bundled/es/{p-KaaOtnwV-D7HTbhvI.js → p-_SIWct9h-jMYFZ-VO.js} +12 -12
- package/dist-bundled/es/{p-qIkbfIF3-B7NovGEi.js → p-pSb81aE0-CNrq7SQW.js} +2 -2
- package/dist-bundled/es/{p-BE2G21MT-WGW-ehxu.js → p-ub0GuVHb-C_PFTi1_.js} +1 -1
- 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 +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- 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 +8 -8
- package/package.json +12 -4
- package/dist/p-2wB6zkno.js +0 -1
- package/dist/p-Cn-t3SGc.js +0 -1
- package/dist/p-DVVJrKxO.js +0 -1
- package/dist/p-KaaOtnwV.js +0 -1
- package/dist-bundled/es/p-2wB6zkno-57WAxATm.js +0 -152
|
@@ -1,10 +1,10 @@
|
|
|
1
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:
|
|
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();
|
|
@@ -210,10 +211,10 @@ const v = ({ expanded: e }, t) => h("gids-dropdown", {
|
|
|
210
211
|
}, e;
|
|
211
212
|
}
|
|
212
213
|
render() {
|
|
213
|
-
const e = this.expanded && this.isInteractive(), t =
|
|
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,7 +230,7 @@ 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(d(e)) || customElements.define(d(e),
|
|
233
|
+
customElements.get(d(e)) || customElements.define(d(e), E);
|
|
233
234
|
break;
|
|
234
235
|
case "gids-input":
|
|
235
236
|
customElements.get(d(e)) || g();
|
|
@@ -238,6 +239,6 @@ function x() {
|
|
|
238
239
|
}
|
|
239
240
|
x();
|
|
240
241
|
export {
|
|
241
|
-
|
|
242
|
+
E as c,
|
|
242
243
|
x as l
|
|
243
244
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as
|
|
1
|
+
import { q as d, L as r, u as c, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
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,13 +14,13 @@ 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:
|
|
17
|
+
getGidsCalendarMonthListClassNames: I,
|
|
18
|
+
getGidsCalendarMonthListMonths: f
|
|
19
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
|
-
const { title: e, value: n, selectedIndex: i, disabled:
|
|
23
|
-
|
|
22
|
+
const { title: e, value: n, selectedIndex: i, disabled: o, id: a } = s.detail;
|
|
23
|
+
o || typeof e != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
24
24
|
this.suppressNextMenuClickSelection = !1;
|
|
25
25
|
})), this.applySelection({ id: a, month: e, monthInNumber: Number(n), disabled: !1, selectedIndex: i }));
|
|
26
26
|
}, this.handleMenuClick = (s) => {
|
|
@@ -28,7 +28,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
28
28
|
const e = s?.detail;
|
|
29
29
|
this.applySelection({ id: e.id, monthInNumber: Number(e.value), month: e.title, disabled: !1, selectedIndex: e.selectedIndex });
|
|
30
30
|
}, this.monthsList = () => M(), this.getSelectedItem = () => {
|
|
31
|
-
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((
|
|
31
|
+
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((o) => o.value === s));
|
|
32
32
|
let i;
|
|
33
33
|
return n != null && n !== -1 && (i = e[n]), { foundItem: i, foundIndex: n };
|
|
34
34
|
}, this.isItemSelected = (s) => {
|
|
@@ -59,9 +59,9 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
const t = g();
|
|
62
|
-
return
|
|
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
|
-
return
|
|
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
|
})))));
|
|
66
66
|
}
|
|
67
67
|
get hostElement() {
|
|
@@ -70,7 +70,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
70
70
|
}, [0, "gids-calendar-month-list", { type: [1], noOptionsText: [1, "no-options-text"], disabledIndices: [16], divider: [4], selectedMonthNumber: [2, "selected-month-number"], onSelectionMonthChange: [16] }]);
|
|
71
71
|
function C() {
|
|
72
72
|
typeof customElements < "u" && ["gids-calendar-month-list"].forEach(((t) => {
|
|
73
|
-
t === "gids-calendar-month-list" && (customElements.get(
|
|
73
|
+
t === "gids-calendar-month-list" && (customElements.get(d(t)) || customElements.define(d(t), x));
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
76
|
C();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as d, L as
|
|
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
3
|
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
4
4
|
const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
@@ -24,13 +24,13 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
24
24
|
getGidsCalendarYearListClassNames: f,
|
|
25
25
|
getGidsCalendarYearListYears: I,
|
|
26
26
|
isValidFourDigitYear: g
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears: b, isValidFourDigitYear: l } = S, w =
|
|
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
|
-
const { title: s, value: a, selectedIndex: r, disabled: n, id:
|
|
30
|
+
const { title: s, value: a, selectedIndex: r, disabled: n, id: o } = t.detail;
|
|
31
31
|
n || typeof s != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
32
32
|
this.suppressNextMenuClickSelection = !1;
|
|
33
|
-
})), this.applySelection({ id:
|
|
33
|
+
})), this.applySelection({ id: o, year: Number(a), disabled: !1, selectedIndex: r, startYear: this.newStartYear, endYear: this.newEndYear }));
|
|
34
34
|
}, this.handleMenuClick = (t) => {
|
|
35
35
|
if (this.suppressNextMenuClickSelection) return;
|
|
36
36
|
const s = t?.detail;
|
|
@@ -71,7 +71,7 @@ const f = (e) => p("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
|
})))));
|
|
@@ -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();
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { q as f, L as g, u as v, D as c } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as p } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
|
+
import { o as I } from "./p-_SIWct9h-jMYFZ-VO.js";
|
|
4
|
+
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const S = ({ expanded: h }, e) => y("gids-filter", {
|
|
6
|
+
"gids-filter--expanded": h
|
|
7
|
+
}, e), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
getGidsFilterClassNames: S
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsFilterClassNames: E } = x;
|
|
11
|
+
var s;
|
|
12
|
+
const F = g((s = class extends v {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
super(), e !== !1 && this.__registerHost(), this.expanded = !1, this.type = "none", this.filterItemType = "primary", this.filterSelected = !1, this.filterDefaultSelected = !1, this.disabled = !1, this.size = "sm", this.loading = !1, this.filterIndex = 0, this.hasSlottedMenu = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.setupDefaultSelctedFilterEmission = () => {
|
|
15
|
+
this.setupDefaultSelectedNoneAllFilterEmission();
|
|
16
|
+
}, this.setupDefaultSelectedNoneAllFilterEmission = () => {
|
|
17
|
+
const t = `${this.filterId || "default"}_${this.value}`;
|
|
18
|
+
if (this.filterDefaultSelected && !s.emittedValuesTracker.has(t) && (this.type === "none" && this.filterItemType === "secondary" || this.type === "all")) {
|
|
19
|
+
s.emittedValuesTracker.add(t);
|
|
20
|
+
const l = { id: "1", filterId: this.filterId, value: this.value, title: this.value, disabled: this.disabled, selectedFilterMenuIndex: void 0, filterType: this.type, filterItemType: this.filterItemType, filterTitle: this.value, filterIndex: this.filterIndex, originalEvent: void 0, filterSelected: !0, filterDefaultSelected: this.filterDefaultSelected, hasFilterMenu: !1, isPlaceholderItem: !1 };
|
|
21
|
+
setTimeout((() => {
|
|
22
|
+
this.onFilterMenuItemChange?.(l);
|
|
23
|
+
}), 0);
|
|
24
|
+
}
|
|
25
|
+
}, this.handleFilterPickerItemSelect = (t) => {
|
|
26
|
+
const { value: l, title: i, disabled: n, id: r, selectedIndex: d, isPlaceholderItem: a, defaultSelected: o } = t.detail;
|
|
27
|
+
n || typeof l != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
28
|
+
this.suppressNextMenuClickSelection = !1;
|
|
29
|
+
})), this.applySelection({ id: r, filterId: this?.filterId, value: l, title: i, disabled: !1, selectedFilterMenuIndex: d, defaultSelected: o, filterType: this.type, filterItemType: this.filterItemType, filterTitle: i, filterIndex: this.filterIndex, hasFilterMenu: !0, originalEvent: t, filterSelected: !a, isPlaceholderItem: a || !1 }));
|
|
30
|
+
}, this.handleMenuClick = (t) => {
|
|
31
|
+
if (this.suppressNextMenuClickSelection) return;
|
|
32
|
+
const l = t.target;
|
|
33
|
+
if (!(l instanceof Element)) return;
|
|
34
|
+
const i = l.closest(".gids-dropdown-item");
|
|
35
|
+
if (!i || !this.hostElement.contains(i) || i.hasAttribute("disabled") || i.getAttribute("aria-disabled") === "true") return;
|
|
36
|
+
const n = i instanceof HTMLButtonElement ? i.value : i.getAttribute("value") ?? "";
|
|
37
|
+
if (typeof n != "string" || n.length === 0) return;
|
|
38
|
+
const r = i instanceof HTMLButtonElement ? i.id : i.getAttribute("id") ?? "";
|
|
39
|
+
if (typeof r != "string" || r.length === 0) return;
|
|
40
|
+
const d = i instanceof HTMLButtonElement ? i.tabIndex : i.getAttribute("tabIndex") ?? "", a = i.getAttribute("is-placeholder-item") ?? "", o = i.querySelector(".gids-dropdown-item__label") || i.querySelector("span"), u = o ? o.textContent?.trim() : i.firstChild?.textContent?.trim() || n, m = !(!a || a !== "true");
|
|
41
|
+
this.applySelection({ id: r, filterId: this.filterId, value: n, title: u, disabled: !1, selectedFilterMenuIndex: Number(d), defaultSelected: this.filterDefaultSelected, filterType: this.type, filterItemType: this.filterItemType, filterTitle: u, filterIndex: this.filterIndex, hasFilterMenu: !0, originalEvent: t, filterSelected: !m, isPlaceholderItem: m });
|
|
42
|
+
}, this.handleTriggerToggle = (t) => {
|
|
43
|
+
this.isInteractive() && this.setExpandedState(!this.expanded, t);
|
|
44
|
+
}, this.handleFilterButtonClickToggle = (t) => {
|
|
45
|
+
if (!t.defaultPrevented) if (t.stopPropagation(), this.isMenuToggler()) this.handleTriggerToggle(t);
|
|
46
|
+
else {
|
|
47
|
+
this.filterSelected = t.detail, t?.detail === !1 && this.handleFormReset(), this.applySelection({ id: "1", filterId: this.filterId, value: this.value, title: this.value, disabled: this.disabled, selectedFilterMenuIndex: void 0, filterType: this.type, filterItemType: this.filterItemType, filterTitle: this.value, filterIndex: this.filterIndex, originalEvent: t, filterSelected: t.detail, filterDefaultSelected: this.filterDefaultSelected, hasFilterMenu: !1, isPlaceholderItem: !1 });
|
|
48
|
+
const l = { expanded: !1, originalEvent: t };
|
|
49
|
+
this.onToggle?.(l);
|
|
50
|
+
}
|
|
51
|
+
}, this.handleFormReset = () => {
|
|
52
|
+
this.value = this.initialValue, this.selectedItemTitle = this.initialValue, this.filterSelected = !1, this.isMenuToggler() ? this.setExpandedState(!1) : this.expanded = !1;
|
|
53
|
+
}, this.setFilterDropdownPosition = () => {
|
|
54
|
+
if (!this.hostElement) return;
|
|
55
|
+
const t = this.hostElement.querySelector(".gids-filter__menu");
|
|
56
|
+
if (!t) return;
|
|
57
|
+
const l = window.innerWidth / 2, i = this.hostElement.getBoundingClientRect();
|
|
58
|
+
i.left + i.width / 2 > l ? t.classList.add("gids-filter__menu--align-right") : t.classList.remove("gids-filter__menu--align-right");
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
handleExpandedChange(e) {
|
|
62
|
+
e && !this.isInteractive() && (this.expanded = !1);
|
|
63
|
+
}
|
|
64
|
+
handleInteractivityChange() {
|
|
65
|
+
!this.isInteractive() && this.expanded && this.setExpandedState(!1);
|
|
66
|
+
}
|
|
67
|
+
handleFilterTypeChange(e) {
|
|
68
|
+
this.type = e;
|
|
69
|
+
}
|
|
70
|
+
handleFilterIdArrival(e) {
|
|
71
|
+
e != null && this.setupDefaultSelctedFilterEmission();
|
|
72
|
+
}
|
|
73
|
+
handleFilterSelectedChange(e) {
|
|
74
|
+
this.filterSelected = e;
|
|
75
|
+
}
|
|
76
|
+
handleFilterDefaultSelectedChange(e) {
|
|
77
|
+
const t = `${this.filterId || "default"}_${this.value}`;
|
|
78
|
+
e ? (s.emittedValuesTracker.delete(t), this.setupDefaultSelctedFilterEmission()) : s.emittedValuesTracker.delete(t);
|
|
79
|
+
}
|
|
80
|
+
connectedCallback() {
|
|
81
|
+
this.attachItemListener(), this.attachFormListener();
|
|
82
|
+
}
|
|
83
|
+
componentDidLoad() {
|
|
84
|
+
this.initialValue = this.value, this.evaluateSlottedMenuExistence(), this.filterId != null && this.setupDefaultSelctedFilterEmission();
|
|
85
|
+
}
|
|
86
|
+
disconnectedCallback() {
|
|
87
|
+
this.detachItemListener(), this.detachFormListener();
|
|
88
|
+
}
|
|
89
|
+
getFilterButtonControl() {
|
|
90
|
+
return this.hostElement.querySelector(".gids-button");
|
|
91
|
+
}
|
|
92
|
+
getItemElements() {
|
|
93
|
+
return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"));
|
|
94
|
+
}
|
|
95
|
+
evaluateSlottedMenuExistence() {
|
|
96
|
+
const e = this.hostElement.querySelector(".gids-filter__menu");
|
|
97
|
+
if (!e) return void (this.hasSlottedMenu = !1);
|
|
98
|
+
const t = Array.from(e.childNodes).filter(((l) => l.nodeType !== Node.COMMENT_NODE && !(l.nodeType === Node.TEXT_NODE && !l.textContent?.trim())));
|
|
99
|
+
this.hasSlottedMenu = t.length > 0;
|
|
100
|
+
}
|
|
101
|
+
attachItemListener() {
|
|
102
|
+
this.hasItemListener || (this.hostElement.addEventListener("onPressDropdownItem", this.handleFilterPickerItemSelect), this.hasItemListener = !0);
|
|
103
|
+
}
|
|
104
|
+
detachItemListener() {
|
|
105
|
+
this.hasItemListener && (this.hostElement.removeEventListener("onPressDropdownItem", this.handleFilterPickerItemSelect), this.hasItemListener = !1);
|
|
106
|
+
}
|
|
107
|
+
applySelection(e) {
|
|
108
|
+
this.value = e.value, this.selectedItemTitle = typeof e.title == "string" ? e.title : void 0, this.clearActive(), this.isMenuToggler() ? this.setExpandedState(!1, this.coerceEvent(e.originalEvent)) : this.expanded = !1, this.onFilterMenuItemChange?.(e), this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange", { bubbles: !0, composed: !0, detail: e }));
|
|
109
|
+
}
|
|
110
|
+
clearActive() {
|
|
111
|
+
this.getItemElements().forEach(((e) => e.classList.remove("gids-dropdown-item--active")));
|
|
112
|
+
}
|
|
113
|
+
setExpandedState(e, t) {
|
|
114
|
+
const l = !!e;
|
|
115
|
+
if (this.setFilterDropdownPosition(), l && !this.isInteractive() || this.expanded === l) return;
|
|
116
|
+
this.expanded = l, l || (this.clearActive(), this.syncFilterDisplayValue());
|
|
117
|
+
const i = { expanded: l, originalEvent: t };
|
|
118
|
+
this.onToggle?.(i);
|
|
119
|
+
}
|
|
120
|
+
syncFilterDisplayValue() {
|
|
121
|
+
const e = this.getFilterButtonControl();
|
|
122
|
+
e && e.value !== (this.selectedItemTitle ?? "") && (e.value = this.selectedItemTitle ?? "");
|
|
123
|
+
}
|
|
124
|
+
attachFormListener() {
|
|
125
|
+
const e = this.hostElement.closest("form");
|
|
126
|
+
this.patternForm !== e && (this.patternForm && this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = e ?? void 0, this.patternForm?.addEventListener("reset", this.handleFormReset));
|
|
127
|
+
}
|
|
128
|
+
detachFormListener() {
|
|
129
|
+
this.patternForm && (this.patternForm.removeEventListener("reset", this.handleFormReset), this.patternForm = void 0);
|
|
130
|
+
}
|
|
131
|
+
isInteractive() {
|
|
132
|
+
return !this.disabled;
|
|
133
|
+
}
|
|
134
|
+
coerceEvent(e) {
|
|
135
|
+
if (typeof Event < "u" && e !== null) return e instanceof Event ? e : void 0;
|
|
136
|
+
}
|
|
137
|
+
isMenuToggler() {
|
|
138
|
+
return (this.type === "none" || this.type === "more") && this.hasSlottedMenu;
|
|
139
|
+
}
|
|
140
|
+
handleWindowClick(e) {
|
|
141
|
+
this.expanded && (e.composedPath().includes(this.hostElement) || this.setExpandedState(!1, e));
|
|
142
|
+
}
|
|
143
|
+
render() {
|
|
144
|
+
const e = this.expanded && this.isInteractive(), t = E({ expanded: e }), l = this.isMenuToggler(), i = typeof this.filterPickerId == "string" ? this.filterPickerId : void 0, n = i ? `${i}__menu` : void 0, r = this.selectedItemTitle ?? this.value ?? "", d = this.type === "more", a = this.type === "all", o = this.type === "none";
|
|
145
|
+
return c("div", { key: "0c7e5ffe45a9e1053e3c248801ff315e96afb70c", class: t, "aria-control": n ?? "" }, c("gids-toggle-button", { key: "7afda6023027219c4d1585bf535327b6ed1d0dee", id: i, name: this.name, expanded: e, value: r, disabled: this.disabled, size: this.size, loading: this.loading, tabIndex: this.filterIndex, defaultSelected: this.filterDefaultSelected, selected: this.filterSelected, onSelect: this.handleFilterButtonClickToggle }, d || a ? c(p, { name: d ? "options" : "filter", size: this.size, appearance: "regular", alt: "", slot: "leadingIcon" }) : void 0, o || a ? r : void 0, l && !d ? c(p, { name: "chevron-down", size: this.size, appearance: "regular", alt: "", slot: "trailingIcon" }) : void 0), c("div", { key: "f4ded16cd2c432b4361c32de414af31b4c7d44c5", class: "gids-filter__menu", id: n, role: "pickerbox", onClick: this.handleMenuClick }, c("slot", { key: "593ed13b9dab21531b9888534697f92e39bbed95", onSlotchange: () => this.evaluateSlottedMenuExistence() })));
|
|
146
|
+
}
|
|
147
|
+
get hostElement() {
|
|
148
|
+
return this;
|
|
149
|
+
}
|
|
150
|
+
static get watchers() {
|
|
151
|
+
return { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }], type: [{ handleFilterTypeChange: 0 }], filterId: [{ handleFilterIdArrival: 0 }], filterSelected: [{ handleFilterSelectedChange: 0 }], filterDefaultSelected: [{ handleFilterDefaultSelectedChange: 0 }] };
|
|
152
|
+
}
|
|
153
|
+
static get style() {
|
|
154
|
+
return ".gids-filter{position:relative}.gids-filter__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}";
|
|
155
|
+
}
|
|
156
|
+
}, s.emittedValuesTracker = /* @__PURE__ */ new Set(), s), [260, "gids-filter", { name: [1], filterId: [1025, "filter-id"], filterPickerId: [1, "filter-picker-id"], expanded: [4], type: [1], filterItemType: [1, "filter-item-type"], value: [1], filterSelected: [1540, "filter-selected"], filterDefaultSelected: [4, "filter-default-selected"], disabled: [4], size: [1], loading: [4], filterIndex: [2, "filter-index"], onFilterMenuItemChange: [16], onToggle: [16], selectedItemTitle: [32], hasSlottedMenu: [32] }, [[8, "click", "handleWindowClick"]], { expanded: [{ handleExpandedChange: 0 }], disabled: [{ handleInteractivityChange: 0 }], type: [{ handleFilterTypeChange: 0 }], filterId: [{ handleFilterIdArrival: 0 }], filterSelected: [{ handleFilterSelectedChange: 0 }], filterDefaultSelected: [{ handleFilterDefaultSelectedChange: 0 }] }]);
|
|
157
|
+
function T() {
|
|
158
|
+
typeof customElements < "u" && ["gids-filter", "gids-toggle-button"].forEach(((h) => {
|
|
159
|
+
switch (h) {
|
|
160
|
+
case "gids-filter":
|
|
161
|
+
customElements.get(f(h)) || customElements.define(f(h), F);
|
|
162
|
+
break;
|
|
163
|
+
case "gids-toggle-button":
|
|
164
|
+
customElements.get(f(h)) || I();
|
|
165
|
+
}
|
|
166
|
+
}));
|
|
167
|
+
}
|
|
168
|
+
T();
|
|
169
|
+
export {
|
|
170
|
+
T as a,
|
|
171
|
+
F as r
|
|
172
|
+
};
|
|
@@ -82,7 +82,7 @@ const y = ({ size: t, appearance: e, color: i }, a) => p("gids-display-tag", {
|
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
84
|
const t = T(), e = this?.label, i = this?.subtitle, a = this?.supportingText, l = this.isValidLabel(), n = this.isValidSubtitle(), o = this.isValidSupportingText(), r = this.isDisplayTagVisible(), g = this?.displayTagLabel ?? "";
|
|
85
|
-
return s(b, { key: "
|
|
85
|
+
return s(b, { key: "f70f03c864cc5d3fe92f7f22a1772054636c1e9c", class: t }, l || n || r ? s("div", { class: "gids-expansion-body-list-item__primary-container" }, l || r ? s("div", { class: "gids-expansion-body-list-item__primary-content" }, l ? s("span", { class: "gids-expansion-body-list-item__label" }, this.convertTextToUppercase(e)) : void 0, r ? s(v, { color: this.displayTagColor || "accent-5", label: g, size: this.displayTagSize, appearance: this.displayTagAppearance }) : void 0) : void 0, n ? s("button", { type: "button", class: "gids-expansion-body-list-item__subtitle", onClick: this.handleSubtitleClick }, i) : void 0) : void 0, o ? s("div", { class: "gids-expansion-body-list-item__secondary-container" }, s("button", { type: "button", class: "gids-expansion-body-list-item__supporting-text", onClick: this.handleSupportingTextClick }, this.convertTextToUppercase(a))) : void 0);
|
|
86
86
|
}
|
|
87
87
|
get hostElement() {
|
|
88
88
|
return this;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { q as s, L as l, u as
|
|
2
|
-
import { o
|
|
3
|
-
import { i as
|
|
4
|
-
const
|
|
1
|
+
import { q as s, L as l, u as i, z as d, D as t, P as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { o } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
3
|
+
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
|
+
const a = l(class extends i {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select =
|
|
6
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select = d(this, "select"), this._toggle = this._toggle.bind(this);
|
|
7
7
|
}
|
|
8
8
|
handleSelctedChange(e) {
|
|
9
|
-
this.selected = e;
|
|
9
|
+
this.selected !== e && (this.selected = e);
|
|
10
10
|
}
|
|
11
11
|
connectedCallback() {
|
|
12
|
-
const e =
|
|
12
|
+
const e = c();
|
|
13
13
|
e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e);
|
|
14
14
|
}
|
|
15
15
|
_toggle() {
|
|
16
16
|
const e = !this.selected;
|
|
17
|
-
this._el.selected =
|
|
17
|
+
this._el.selected = e, this.select?.emit(e), this.selected = e;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return t(
|
|
20
|
+
return t(n, { key: "510886303fd853bf5c24fb5f38fd8485f831e72c" }, t("style", { key: "8e431f50396bf87f0475788e2cd3615d28cc24c7" }, `:host {
|
|
21
21
|
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
22
|
-
}`), t(
|
|
22
|
+
}`), t(o, { key: "e2292ad4d60014b8d412157fdb36e5a2fa9cfd79", appearance: this.appearance, size: this.size, width: this.width, disabled: this.disabled, onClick: this._toggle, "aria-pressed": this.selected ? "true" : "false", leadingIcon: t("slot", { name: "leadingIcon" }), trailingIcon: t("slot", { name: "trailingIcon" }), forceIconOnly: this._onlyHasLeadingIcon() }, t("slot", { key: "0f805e868de82ad388f4781bacf36e860395f3fa" })));
|
|
23
23
|
}
|
|
24
24
|
_onlyHasLeadingIcon() {
|
|
25
25
|
const e = this._el.childNodes;
|
|
@@ -34,11 +34,11 @@ const o = l(class extends c {
|
|
|
34
34
|
}, [257, "gids-toggle-button", { disabled: [516], appearance: [513], size: [513], width: [513], defaultSelected: [516, "default-selected"], selected: [1540] }, void 0, { selected: [{ handleSelctedChange: 0 }] }]);
|
|
35
35
|
function h() {
|
|
36
36
|
typeof customElements < "u" && ["gids-toggle-button"].forEach(((e) => {
|
|
37
|
-
e === "gids-toggle-button" && (customElements.get(s(e)) || customElements.define(s(e),
|
|
37
|
+
e === "gids-toggle-button" && (customElements.get(s(e)) || customElements.define(s(e), a));
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
40
|
h();
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
a as l,
|
|
43
43
|
h as o
|
|
44
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as l, L as f, u, 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 x } from "./p-BCVFQSjK-CKrYrI4b.js";
|
|
4
|
+
import { d as z } from "./p-C3xv7tfs-RodXvmql.js";
|
|
5
5
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const k = ({ breakpoint: a }, g) => w("gids-activity-gauge", {
|
|
7
7
|
"gids-activity-gauge--breakpoint-mobile": a === "mobile"
|
|
@@ -56,7 +56,7 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
56
56
|
const a = this._getStatusModifierClass(s, "gids-field__status-text");
|
|
57
57
|
a != null && i.push(a);
|
|
58
58
|
}
|
|
59
|
-
return o(d, { key: "
|
|
59
|
+
return o(d, { key: "b4c75ae8db2c6a526bca9abbdefa794697f79d6e" }, o("div", { key: "7f1d56122271224e78b84482bbd1aa31dee0d6b5", class: p() }, o("div", { key: "21986a7bc03029da85eeef02af059b175c208bb9", class: "gids-field__header", hidden: !this._hasLabelContent() }, o("slot", { key: "2c3e7e5e7ebc8b5b30157e755422267cffeb9333", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), o("div", { key: "db267881b537d312154b4b7b51c0816595b5c064", class: "gids-field__count", "aria-live": "polite" }, this.count)), o("div", { key: "34ee7450b5bce2c5ae58d151a6503f1079fdfc7e", class: "gids-field__control" }, o("slot", { key: "d5a7c20818abf658fd1651d90bc7fe552ff4366e", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), o("p", { key: "2859a75cb1f15eb4b998a8c9d0642b3a260967bc", class: "gids-field__supporting-text", hidden: !this._shouldShowHelperText() }, this.helperText), t ? o("p", { class: i.join(" "), role: "status", "aria-live": "polite" }, this._renderStatusIcon(s), e !== void 0 ? o("span", null, e) : null) : null));
|
|
60
60
|
}
|
|
61
61
|
_hasLabelContent() {
|
|
62
62
|
return this._hasLabel;
|