@ganpatiinfo/gids-core-web 14.0.0 → 15.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 +5386 -4888
- 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-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.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 +1 -1
- package/dist/gids-md-table.js +1 -1
- 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-skeleton.d.ts +11 -0
- package/dist/gids-skeleton.js +1 -0
- 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/gids-transfer-list.d.ts +11 -0
- package/dist/gids-transfer-list.js +1 -0
- package/dist/p-474lVBcu.js +1 -0
- package/dist/{p-_HwuS8vK.js → p-9NZjfY_u.js} +1 -1
- package/dist/{p-Bh8qYmAS.js → p-B0Nc9rVM.js} +1 -1
- package/dist/{p-Bab1qxsC.js → p-BF46eY8H.js} +1 -1
- package/dist/{p-jzl-rPxB.js → p-BKIsp763.js} +1 -1
- package/dist/{p-BVA1LAFM.js → p-BgvpzBUx.js} +1 -1
- package/dist/{p-BYt-9DKT.js → p-BtKwhIx5.js} +1 -1
- package/dist/{p-DAnkY5ik.js → p-CLm5opt9.js} +1 -1
- package/dist/{p-C_RW9IFo.js → p-CZxn31uZ.js} +1 -1
- package/dist/{p-CU5JIcEp.js → p-Cyant-dw.js} +1 -1
- package/dist/{p-Dan1sCNk.js → p-D7qanqNO.js} +1 -1
- package/dist/{p-CnVmK0dH.js → p-DGenc1qz.js} +1 -1
- package/dist/{p-D5DRatg0.js → p-DLauG0q8.js} +1 -1
- package/dist/{p-DMVCMnTe.js → p-DaqhrFRM.js} +1 -1
- package/dist/{p-BzzDNTlP.js → p-Db4qRSmH.js} +1 -1
- package/dist/{p-DslOQITw.js → p-Df5xaj-o.js} +1 -1
- package/dist/{p-1fMG8D4t.js → p-DhtEw_C2.js} +1 -1
- package/dist/{p-BV0jg2ix.js → p-DshXkAUj.js} +1 -1
- package/dist/{p-DUUxlY-K.js → p-Dvh4sPkD.js} +1 -1
- package/dist/p-Iqbf3Pja.js +1 -0
- package/dist/{p-CatvDz2b.js → p-MnCDY1k9.js} +1 -1
- package/dist/types/components/html/GidsCrossTable/GidsCrossTable.d.ts +17 -0
- package/dist/types/components/html/GidsCrossTableBody/GidsCrossTableBody.d.ts +12 -0
- package/dist/types/components/html/GidsCrossTableRow/GidsCrossTableRow.d.ts +12 -0
- package/dist/types/components/html/GidsDialog/GidsDialog.d.ts +12 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +20 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +20 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +3 -3
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +3 -3
- package/dist/types/components/html/GidsTable/GidsTable.d.ts +1 -1
- package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +3 -3
- package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +1 -1
- package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +1 -1
- package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +1 -1
- package/dist/types/components/html/_GidsDialogControl/GidsDialogControl.d.ts +8 -0
- package/dist/types/components/webComponents/GidsSkeleton/GidsSkeleton.d.ts +11 -0
- package/dist/types/components/webComponents/GidsTransferList/GidsTransferList.d.ts +49 -0
- package/dist/types/components.d.ts +131 -2
- package/dist-bundled/es/gids-action-bar.js +28 -27
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +4 -4
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +23 -23
- 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 +11 -11
- package/dist-bundled/es/gids-chevron-button.js +10 -10
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +5 -5
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +12 -12
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +77 -77
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +20 -20
- package/dist-bundled/es/gids-password-field.js +53 -53
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-skeleton.js +41 -0
- package/dist-bundled/es/gids-tab-item.js +10 -10
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +15 -15
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +1 -1
- package/dist-bundled/es/gids-transfer-list.js +196 -0
- package/dist-bundled/es/p-474lVBcu-B1f8x2o1.js +31 -0
- package/dist-bundled/es/{p-_HwuS8vK-C0w4T5rV.js → p-9NZjfY_u-CnjUEy1y.js} +2 -2
- package/dist-bundled/es/{p-Bh8qYmAS-DhSpwB20.js → p-B0Nc9rVM-SBit1KrF.js} +6 -6
- package/dist-bundled/es/{p-Bab1qxsC-BMbD0lEy.js → p-BF46eY8H-Xn8Fl9EI.js} +3 -3
- package/dist-bundled/es/{p-jzl-rPxB-CC735zJp.js → p-BKIsp763-CqL9MgyZ.js} +7 -7
- package/dist-bundled/es/{p-BVA1LAFM-DdsY_n8R.js → p-BgvpzBUx-iq-eKBVZ.js} +7 -7
- package/dist-bundled/es/{p-BYt-9DKT-DByyhIUd.js → p-BtKwhIx5-DTEmfdxe.js} +6 -6
- package/dist-bundled/es/{p-CHGTBObD-EN4cCwtX.js → p-CHGTBObD-D_K9_Tmh.js} +15 -15
- package/dist-bundled/es/{p-DAnkY5ik-ChPtRpOX.js → p-CLm5opt9-DlxkI38w.js} +2 -2
- package/dist-bundled/es/{p-C_RW9IFo-DNQqJS8t.js → p-CZxn31uZ-BBHM983b.js} +10 -10
- package/dist-bundled/es/{p-CoS0NuDU-CqmDcRWj.js → p-CoS0NuDU-ByDvQAzA.js} +1 -1
- package/dist-bundled/es/{p-CU5JIcEp-CuVpd-eZ.js → p-Cyant-dw-Ch2zYNkx.js} +7 -7
- package/dist-bundled/es/{p-Dan1sCNk-mWcyyplK.js → p-D7qanqNO-Dby5jSjA.js} +14 -14
- package/dist-bundled/es/{p-CnVmK0dH-CbmnN-RR.js → p-DGenc1qz-CMwVEtCm.js} +5 -5
- package/dist-bundled/es/{p-D5DRatg0-DtQL-DQg.js → p-DLauG0q8-CCUuzYl9.js} +6 -6
- package/dist-bundled/es/{p-DMNS1d8v-CHF62UXm.js → p-DMNS1d8v-BX8e_AsY.js} +14 -14
- package/dist-bundled/es/{p-DMVCMnTe-D4eJKJsj.js → p-DaqhrFRM-2PqBeu5o.js} +4 -4
- package/dist-bundled/es/{p-BzzDNTlP-BkSyrafk.js → p-Db4qRSmH-B5pzOeve.js} +8 -8
- package/dist-bundled/es/{p-Degg_WJz-BLua06el.js → p-Degg_WJz-ORZcjc8G.js} +1 -1
- package/dist-bundled/es/{p-DslOQITw-BfwtLWqG.js → p-Df5xaj-o-fxAXUmag.js} +7 -7
- package/dist-bundled/es/{p-Dg2yoUxw-Cca8ROd_.js → p-Dg2yoUxw-DliMstZy.js} +8 -8
- package/dist-bundled/es/{p-1fMG8D4t-CIEDM74u.js → p-DhtEw_C2-D_91JSPC.js} +3 -3
- package/dist-bundled/es/{p-BV0jg2ix-DI0fZl_6.js → p-DshXkAUj-DgCiQIA2.js} +1 -1
- package/dist-bundled/es/{p-DUUxlY-K-mypBhVt6.js → p-Dvh4sPkD-B-T5C03p.js} +1 -1
- package/dist-bundled/es/p-Iqbf3Pja-DuajY4uD.js +52 -0
- package/dist-bundled/es/{p-CatvDz2b-C-Hlv2Xb.js → p-MnCDY1k9-CgbTyJ5R.js} +9 -9
- package/dist-bundled/es/{p-UVmSPzTd-6vjXok6h.js → p-UVmSPzTd-CR1higgJ.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-advanced-tooltip.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 +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- 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 +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- 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 +2 -2
- 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-level-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-progress-circle.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +5 -0
- 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/gids-transfer-list.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +20 -4
- package/dist/p-D6lxqcxP.js +0 -1
- package/dist-bundled/es/p-D6lxqcxP-C6BOC0kV.js +0 -74
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
1
|
+
import { q as d, L as r, u as h, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { a as c, p as m, u } from "./p-474lVBcu-B1f8x2o1.js";
|
|
3
|
+
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const p = (t) => f("gids-calendar-month-list", t), I = () => {
|
|
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:
|
|
17
|
+
getGidsCalendarMonthListClassNames: p,
|
|
18
18
|
getGidsCalendarMonthListMonths: I
|
|
19
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b,
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, C = r(class extends h {
|
|
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,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: "ea6af81523dc95f997f8aa9d89d1f89b4f89a623", class: t }, l(c, { key: "4181888b065d7410afffc88216a8f1ac4fa3d682", type: this.type, supportingText: this.noOptionsText }, l(m, { key: "2b7a683bd7435b0443009a41701e840e2f9a93b6", 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
|
})))));
|
|
@@ -68,13 +68,13 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
68
68
|
return this;
|
|
69
69
|
}
|
|
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
|
-
function
|
|
71
|
+
function L() {
|
|
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), C));
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
L();
|
|
77
77
|
export {
|
|
78
|
-
|
|
78
|
+
L as c,
|
|
79
79
|
C as l
|
|
80
80
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as s, L as l, u, D as a, F as
|
|
1
|
+
import { q as s, L as l, u as d, D as a, F as u } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as n } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
-
import { l as
|
|
3
|
+
import { l as r } from "./p-CHGTBObD-D_K9_Tmh.js";
|
|
4
4
|
const c = (e) => e.type === "hidden", f = (e) => {
|
|
5
5
|
if (!(e instanceof HTMLElement))
|
|
6
6
|
return !1;
|
|
@@ -15,7 +15,7 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
15
15
|
"SELECT",
|
|
16
16
|
"TEXTAREA"
|
|
17
17
|
].includes(t) || t === "A" && e.hasAttribute("href") || e instanceof HTMLInputElement && !c(e) || ["AUDIO", "VIDEO"].includes(t) && e.hasAttribute("controls") || ["IMG", "OBJECT"].includes(t) && e.hasAttribute("usemap") || e.hasAttribute("tabindex") && e.tabIndex > -1);
|
|
18
|
-
}, o = l(class extends
|
|
18
|
+
}, o = l(class extends d {
|
|
19
19
|
constructor(e) {
|
|
20
20
|
super(), e !== !1 && this.__registerHost(), this.#e = {}, this._focusInput = (t) => {
|
|
21
21
|
const i = t.target;
|
|
@@ -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 a(
|
|
57
|
+
return a(u, { key: "8e83f27a9a2184689594d011aa47837b3e99eff9" }, a("slot", { key: "0cd90f0580e2e57140fb8abb16250444d75b7ae2", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "c61a6ffd7054190421724c5125639b53d1ac2f28", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "ea00c693b1fcfd6ba85c2179ce97bc286073078c", name: "leadingAccessory" }), a("input", { key: "00dcbb06fd546b60fed8310056096d25c0dc09d2", ...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 }), a("slot", { key: "
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "aa449cf35c27946ad62bb63050e302167e871dc7", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "a896156b9a680a2dae3bf572ca3a34b6b385d19d", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "45c922441ce3eedd0d57dcfedc6e9629da056082", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "5b13f1af4a6eba7f18c1c0fd9cbd1f29decdd966", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "20cbf20a8465e1f774171e9d42009a66445fa988", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(r, { key: "add57df9d054eb26ad00ed8debe5f0d48502953d", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { q as s, L as l, u as
|
|
2
|
-
import { o } from "./p-UVmSPzTd-
|
|
1
|
+
import { q as s, L as l, u as d, z as i, D as t, P as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { o } from "./p-UVmSPzTd-CR1higgJ.js";
|
|
3
3
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
|
-
const a = l(class extends
|
|
4
|
+
const a = l(class extends d {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select =
|
|
6
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select = i(this, "select"), this._toggle = this._toggle.bind(this);
|
|
7
7
|
}
|
|
8
8
|
handleSelctedChange(e) {
|
|
9
9
|
this.selected !== e && (this.selected = e);
|
|
@@ -17,9 +17,9 @@ const a = l(class extends i {
|
|
|
17
17
|
this._el.selected = e, this.select?.emit(e), this.selected = e;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return t(n, { key: "
|
|
20
|
+
return t(n, { key: "12f13d3e650436160eda65d3374b733dc4f453a0" }, t("style", { key: "0491d15d5fd9bf1d51e67cf43cf0bc8fa3c1f201" }, `:host {
|
|
21
21
|
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
22
|
-
}`), t(o, { key: "
|
|
22
|
+
}`), t(o, { key: "271ea9e926ff161c07be2fb39b41af249b6c0fb9", 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: "c4c4df979e095eeade71a4f93d92d13799f226a5" })));
|
|
23
23
|
}
|
|
24
24
|
_onlyHasLeadingIcon() {
|
|
25
25
|
const e = this._el.childNodes;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { l as m } from "./p-CHGTBObD-
|
|
2
|
+
import { l as m } from "./p-CHGTBObD-D_K9_Tmh.js";
|
|
3
3
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
const d = (
|
|
4
|
+
const d = (e) => {
|
|
5
|
+
const { label: t, supportingText: s } = e, i = typeof t == "string" && t.trim().length > 0, r = typeof s == "string" && s.trim().length > 0;
|
|
6
|
+
return {
|
|
7
|
+
hasLabel: i,
|
|
8
|
+
hasSupportingText: r
|
|
9
|
+
};
|
|
10
|
+
}, u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
getElementVisibility: d
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), x = ({ size: e }, t) => c("gids-spinner", {
|
|
5
14
|
"gids-spinner--xs": e === "xs",
|
|
6
15
|
"gids-spinner--sm": e === "sm",
|
|
7
16
|
// 'gids-spinner--md': size === 'md',
|
|
8
17
|
"gids-spinner--lg": e === "lg",
|
|
9
18
|
"gids-spinner--xl": e === "xl",
|
|
10
19
|
"gids-spinner--2xl": e === "2xl"
|
|
11
|
-
}, t),
|
|
12
|
-
__proto__: null,
|
|
13
|
-
getGidsSpinnerClassNames: d
|
|
14
|
-
}, Symbol.toStringTag, { value: "Module" })), x = (e) => {
|
|
15
|
-
const { label: t, supportingText: s } = e, i = typeof t == "string" && t.trim().length > 0, r = typeof s == "string" && s.trim().length > 0;
|
|
16
|
-
return {
|
|
17
|
-
hasLabel: i,
|
|
18
|
-
hasSupportingText: r
|
|
19
|
-
};
|
|
20
|
-
}, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
|
+
}, t), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
|
-
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsSpinnerClassNames: _ } =
|
|
22
|
+
getGidsSpinnerClassNames: x
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsSpinnerClassNames: _ } = b, { getElementVisibility: f } = u, h = ({ label: e, supportingText: t, size: s, indeterminate: i, value: r, max: l, class: o, ...p }) => {
|
|
24
24
|
const { hasLabel: a, hasSupportingText: g } = f({ label: e, supportingText: t });
|
|
25
25
|
return n("span", { class: _({ size: s }, o), ...p }, n(m, { size: s, indeterminate: i, value: r, max: l }), a && n("span", { class: "gids-spinner__label" }, e), g && n("span", { class: "gids-spinner__supporting-text" }, t));
|
|
26
26
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { q as h, L as v, u as f, D as e } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { p as u } from "./p-DMNS1d8v-
|
|
2
|
+
import { p as u } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
3
|
import { d as w } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
|
-
import { _ as k } from "./p-
|
|
5
|
-
import {
|
|
6
|
-
import { l as C } from "./p-
|
|
4
|
+
import { _ as k } from "./p-Dvh4sPkD-B-T5C03p.js";
|
|
5
|
+
import { o as z } from "./p-Df5xaj-o-fxAXUmag.js";
|
|
6
|
+
import { l as C } from "./p-DshXkAUj-DgCiQIA2.js";
|
|
7
7
|
import { c as L } from "./clsx-OuTLNxxd.js";
|
|
8
8
|
const D = ({ breakpoint: i }, r) => L("gids-line-chart", {
|
|
9
9
|
"gids-line-chart--breakpoint-mobile": i === "mobile"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as r, L as l, u as
|
|
2
|
-
import { o as
|
|
1
|
+
import { q as r, L as l, u as h, D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { o as c } from "./p-UVmSPzTd-CR1higgJ.js";
|
|
3
3
|
import { d as p } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
4
|
import { c as u } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const m = ({ expanded: e }, t) => u("gids-dropdown-picker", {
|
|
@@ -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;
|
|
@@ -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: "607e21503727f86ea4489ede7108e67787a370a4", class: t, onClick: this.handleOutSpaceClickOfDropdownButtonToggle }, n(c, { key: "2dfd4ebc12236d6561169ada2be6e98638838a4d", 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: "50f9c2877ae26020365446b28596a6aaa672d06a", class: "gids-dropdown-picker__menu", id: s, role: "pickerbox", onClick: this.handleMenuClick }, n("slot", { key: "13210aa5e33e04614cfa1b90f977048fd9312646" })));
|
|
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
|
-
|
|
134
|
-
|
|
133
|
+
E as h,
|
|
134
|
+
f as r
|
|
135
135
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as g, L as p, u as d, D as e } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { r as h, e as _, d as v, F as y } from "./p-CaauwQNd-D6_PbcRr.js";
|
|
3
|
-
import { p as m } from "./p-DMNS1d8v-
|
|
3
|
+
import { p as m } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
4
4
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const f = ({ breakpoint: a }, t) => c("gids-level-gauge", {
|
|
6
6
|
"gids-level-gauge--breakpoint-mobile": a === "mobile"
|
|
@@ -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: "d387e1907756393b835e4ff67eba8b10ec16d029", class: e }, n("slot", { key: "0d8dc89a1285cb331ac6ca99e1cd6b2c554a0b2c" }));
|
|
20
20
|
}
|
|
21
21
|
static get watchers() {
|
|
22
22
|
return { orientation: [{ handleOrientationChange: 0 }] };
|
|
@@ -27,11 +27,11 @@ const o = ({ orientation: e }, i) => s("gids-chart-legend", {
|
|
|
27
27
|
}, [260, "gids-chart-legend", { orientation: [1] }, void 0, { orientation: [{ handleOrientationChange: 0 }] }]);
|
|
28
28
|
function g() {
|
|
29
29
|
typeof customElements < "u" && ["gids-chart-legend"].forEach(((e) => {
|
|
30
|
-
e === "gids-chart-legend" && (customElements.get(t(e)) || customElements.define(t(e),
|
|
30
|
+
e === "gids-chart-legend" && (customElements.get(t(e)) || customElements.define(t(e), l));
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
33
|
g();
|
|
34
34
|
export {
|
|
35
|
-
g as
|
|
36
|
-
|
|
35
|
+
g as o,
|
|
36
|
+
l as r
|
|
37
37
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { D as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
const
|
|
4
|
-
__proto__: null,
|
|
5
|
-
getGidsLabelClassNames: m
|
|
6
|
-
}, Symbol.toStringTag, { value: "Module" })), d = (e) => {
|
|
3
|
+
const d = (e) => {
|
|
7
4
|
const t = Array.isArray(e) ? e[e.length - 1] : e;
|
|
8
5
|
return typeof t == "string" && t.trim().endsWith(".");
|
|
9
|
-
},
|
|
6
|
+
}, m = /\w/, _ = (e) => e.replace(m, (t) => t.toLocaleUpperCase()), c = (e, t) => typeof e == "function" ? e(t) : t ? _(e) : e, y = ({ children: e, fieldRequirement: t, fieldRequirementOptionalText: r, fieldRequirementRequiredText: n, isLabelSentence: o }) => {
|
|
10
7
|
const s = o ? o(e) : d(e);
|
|
11
8
|
if (t === "required")
|
|
12
9
|
return c(n && n.length > 0 ? n : "(required)", s);
|
|
13
10
|
if (t === "optional")
|
|
14
11
|
return c(r && r.length > 0 ? r : "(optional)", s);
|
|
15
|
-
},
|
|
12
|
+
}, h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
13
|
__proto__: null,
|
|
17
|
-
getIndicatorText:
|
|
14
|
+
getIndicatorText: y,
|
|
18
15
|
isSentence: d
|
|
19
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), L = ({ disabled: e }, t) => f("gids-label", { "gids-label--disabled": e }, t), S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
getGidsLabelClassNames: L
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), { getIndicatorText: j } = h, { getGidsLabelClassNames: v } = S, O = ({ disabled: e, fieldRequirement: t, fieldRequirementOptionalText: r, fieldRequirementRequiredText: n, info: o, htmlFor: s, labelId: u, class: g, isLabelSentence: p, ...b }, l) => {
|
|
20
20
|
const a = j({ children: l, fieldRequirement: t, fieldRequirementOptionalText: r, fieldRequirementRequiredText: n, isLabelSentence: p });
|
|
21
21
|
return i("div", { class: v({ disabled: e }, g), ...b }, i("label", { htmlFor: s, id: u }, l, a && i("span", { class: "gids-label__field-requirement" }, a)), o);
|
|
22
22
|
};
|
|
@@ -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
|
-
import { p as b } from "./p-DMNS1d8v-
|
|
3
|
-
import {
|
|
4
|
-
import { l as z } from "./p-
|
|
2
|
+
import { p as b } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
+
import { o as x } from "./p-Df5xaj-o-fxAXUmag.js";
|
|
4
|
+
import { l as z } from "./p-DshXkAUj-DgCiQIA2.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"
|
|
@@ -29,7 +29,7 @@ const d = ({ seriesType: e, orientation: i }, r) => l("gids-chart-legend-item",
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
const e = this.seriesColor, i = e && e !== "", r = c({ seriesType: i ? "none" : this.seriesType, orientation: this.orientation });
|
|
32
|
-
return t("div", { key: "
|
|
32
|
+
return t("div", { key: "47ef7cb59fa7ffc5b285d7d1e717edd53ae2e729", class: r }, t("div", { key: "d2ff5aae2e3c2f0978a529b07aec6578170ffb15", class: this.orientation === "vertical" ? "gids-chart-legend-item__dot-wrapper-vertical" : "gids-chart-legend-item__dot-wrapper-horizontal" }, t(o, { key: "f77b68781d1fc3a70359f7d2e019a32f762e9f08", name: "new", alt: "new_icon", appearance: "filled", style: i ? { "--gidsIcon-color": e } : {} })), t("span", { key: "960a2f79f4eb0b4432d7e4ce2ab33f0ea8b756e0", class: "gids-chart-legend-item__label" }, t("slot", { key: "c614cfba777ae00cf83ad60f971bd060b78603e0" })));
|
|
33
33
|
}
|
|
34
34
|
static get watchers() {
|
|
35
35
|
return { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }], seriesColor: [{ handleSeriesColorChange: 0 }] };
|
|
@@ -75,7 +75,7 @@ const C = ({ visible: t }, e) => x("gids-advanced-tooltip", {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
const t = P({ visible: this.visible });
|
|
78
|
-
return a(g, { key: "
|
|
78
|
+
return a(g, { key: "48ba3ccc586208e069e5458b065a97ddd2848a7d", class: t, role: "tooltip", part: "tooltip" }, a("div", { key: "be80b54e06ee897497128211b95462f9a4814ff4", class: "gids-advanced-tooltip__arrow", part: "arrow" }), a("div", { key: "4bf75d4393dab1b5eab736402af4eba4ccc508bf", class: "gids-advanced-tooltip__content" }, this.items.map(((e) => a("div", { class: "gids-advanced-tooltip__item", key: `${e.label}-${e.value}` }, a("div", { class: "gids-advanced-tooltip__left" }, a(w, { name: "new", size: "xs", appearance: "filled", style: { "--gidsIcon-color": e.seriesIndicatorColor } }), a("span", { class: "gids-advanced-tooltip__label" }, e.label)), a("span", { class: "gids-advanced-tooltip__value" }, e.value))))));
|
|
79
79
|
}
|
|
80
80
|
get host() {
|
|
81
81
|
return this;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { D as t, F as S } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as v } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const T = ({ layout: e }, i) => c("gids-button-group", {
|
|
5
|
+
"gids-button-group--scroll": e === "scroll"
|
|
6
|
+
}, i), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
getGidsButtonGroupClassNames: T
|
|
9
|
+
}, Symbol.toStringTag, { value: "Module" })), E = ({ orientation: e }, i) => c("gids-divider", {
|
|
10
|
+
"gids-divider--vertical": e === "vertical"
|
|
11
|
+
}, i), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12
|
+
__proto__: null,
|
|
13
|
+
getGidsDividerClassNames: E
|
|
14
|
+
}, Symbol.toStringTag, { value: "Module" })), M = ({ size: e }, i) => c("gids-edit-button", {
|
|
15
|
+
"gids-edit-button--xs": e === "xs",
|
|
16
|
+
"gids-edit-button--sm": e === "sm",
|
|
17
|
+
// 'gids-button--md': size === 'md',
|
|
18
|
+
"gids-edit-button--lg": e === "lg"
|
|
19
|
+
}, i), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
|
+
__proto__: null,
|
|
21
|
+
getGidsEditButtonClassNames: M
|
|
22
|
+
}, Symbol.toStringTag, { value: "Module" })), A = (e) => c("gids-heading", e), H = (e) => e && e.toString() !== "" && e !== "(none)" ? `gids-typography-${e}` : "", L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
__proto__: null,
|
|
24
|
+
getGidsHeadingClassNames: A,
|
|
25
|
+
getGidsHeadingSupportingTextTypographyClass: H
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), D = ({ disabled: e, selected: i }, n) => c("gids-list-item", {
|
|
27
|
+
// selected
|
|
28
|
+
"gids-list-item--selected": i,
|
|
29
|
+
// Disable
|
|
30
|
+
"gids-list-item--disabled": e
|
|
31
|
+
}, n), $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
|
+
__proto__: null,
|
|
33
|
+
getGidsListItemClassNames: D
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsButtonGroupClassNames: w } = B, F = ({ layout: e, class: i }, n) => t("span", { class: w({ layout: e }, i) }, n), { getGidsHeadingClassNames: q, getGidsHeadingSupportingTextTypographyClass: J } = L, Z = ({ heading: e, supportingText: i, level: n = "section", children: d, supportingTextTypography: s, class: o }) => t("div", { class: q(o) }, t("div", { class: "gids-heading__content-container" }, e != null && e !== "" ? typeof e == "string" ? e !== "" ? t("span", { class: n === "section" ? "gids-heading__heading-text-section" : "gids-heading__heading-text-group" }, e) : null : e : null, i != null && i !== "" ? typeof i == "string" ? i !== "" ? t("span", { class: `${n === "section" ? "gids-heading__supporting-text-section" : "gids-heading__supporting-text-group"} ${J(s)}` }, i) : null : i : null), d ? t(F, { layout: "wrap" }, d) : null), { getGidsEditButtonClassNames: K } = k, Q = ({ disabled: e, children: i, size: n = "md", editButtonType: d = "add", onPressEditButton: s, class: o, ...r }) => t("button", { class: K({ size: n }, o), ...r, onClick: s, disabled: e }, d === "custom" && i ? t("div", null, i) : d === "add" ? t("div", { class: e ? "gids-edit-button__add gids-edit-button__disabled" : "gids-edit-button__add" }, t(v, { name: "add", appearance: "filled", size: n })) : d === "remove" ? t("div", { class: e ? "gids-edit-button__remove gids-edit-button__disabled" : "gids-edit-button__remove" }, t(v, { appearance: "filled", name: "remove", size: n })) : void 0), { getGidsDividerClassNames: R } = I, U = ({ orientation: e }) => t("hr", { class: R({ orientation: e }) }), { getGidsListItemClassNames: V } = $, tt = ({ id: e, value: i, index: n, defaultSelected: d, disabled: s, selected: o, editButton: r, onPressEditButton: C, onPressListItem: P, leadingAccessory: f, leadingSupport: u, leadingParagraph: _, trailingContent: m, trailingAccessory: x, trailingSupport: p, trailingParagraph: b, divider: G, role: j = "list-item-option", isPlaceholderItem: h, class: z, ...N }, y) => {
|
|
35
|
+
const g = o || d;
|
|
36
|
+
return t("button", { type: "button", id: e, class: V({ selected: g, disabled: s }, z), role: j, "aria-selected": g ? "true" : "false", disabled: s, value: (() => {
|
|
37
|
+
if (typeof i == "string" && i.trim() !== "") return i;
|
|
38
|
+
const a = y;
|
|
39
|
+
return a ? (Array.isArray(a) ? a : [a]).map(((l) => typeof l == "string" || typeof l == "number" ? String(l) : l && typeof l == "object" && "text" in l ? l.text ?? "" : "")).join("").trim() : "";
|
|
40
|
+
})(), tabIndex: n, onClick: (a) => {
|
|
41
|
+
const l = a.currentTarget;
|
|
42
|
+
if (!l || a.defaultPrevented || l.disabled) return;
|
|
43
|
+
const O = new CustomEvent("onPressListItem", { bubbles: !0, composed: !0, detail: { selectedIndex: n, defaultSelected: d, isPlaceholderItem: h } });
|
|
44
|
+
P?.(O);
|
|
45
|
+
}, "is-placeholder-item": h ? "true" : "false", ...N }, t("div", { class: "gids-list-item__main-container" }, r == null || r === "none" || s ? null : t(Q, { size: "md", editButtonType: r, onPressEditButton: C }), f != null ? t("div", { class: s ? "gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__leading-accessory-container" }, f) : null, t("div", { class: "gids-list-item__middle-content-container" }, t("div", { class: "gids-list-item__leading-content-container" }, t(S, null, y != null ? t("span", { class: s ? "gids-list-item__leading-content-label gids-list-item__text-content-disabled" : "gids-list-item__leading-content-label" }, y) : null, t("div", { class: "gids-list-item__leading-support-content" }, u != null ? typeof u == "string" ? t("p", { class: s ? "gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled" : "gids-list-item__leading-content-supporting-text" }, u) : u : null, _ != null ? typeof _ == "string" ? t("p", { class: s ? "gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled" : "gids-list-item__leading-content-paragraph-text" }, _) : _ : null))), t("div", { class: "gids-list-item__trailing-content-container" }, t(S, null, m != null ? typeof m == "string" ? t("span", { class: s ? "gids-list-item__trailing-content-label gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-label" }, m) : m : null, t("div", { class: "gids-list-item__trailing-support-content" }, p != null ? typeof p == "string" ? t("p", { class: s ? "gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-supporting-text" }, p) : p : null, b != null ? typeof b == "string" ? t("p", { class: s ? "gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-paragraph-text" }, b) : b : null)))), g ? t("div", { class: s ? "gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__trailing-accessory-container" }, t(v, { name: "checkmark", size: "md", appearance: "regular" })) : null, g || x == null ? null : t("div", { class: s ? "gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__trailing-accessory-container" }, x)), G && !g ? t("div", { class: "gids-list-item__divider" }, t(U, { orientation: "horizontal" })) : null);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
Z as _,
|
|
49
|
+
U as b,
|
|
50
|
+
F as r,
|
|
51
|
+
tt as v
|
|
52
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as l, L as n, u as r, D as
|
|
1
|
+
import { q as l, L as n, u as r, D as o, P as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as h } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
3
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
@@ -53,10 +53,10 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
53
53
|
render() {
|
|
54
54
|
const t = this._hasStatusText(), e = this._controlValidationMessage !== void 0 ? this._controlValidationMessage : this._shouldRenderExplicitStatusText() ? this.statusText : void 0, s = this._getCurrentStatus(), i = ["gids-field__status-text"];
|
|
55
55
|
if (t) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const a = this._getStatusModifierClass(s, "gids-field__status-text");
|
|
57
|
+
a != null && i.push(a);
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return o(d, { key: "04e91bbfe28bfeccc9f7e26f68bca78e4cb2c2f8" }, o("div", { key: "ca99c8bbfac4b2974d55aeb215d36ab6725e6397", class: p() }, o("div", { key: "87cb9e7457e76e85230813524f8c1bae588589c2", class: "gids-field__header", hidden: !this._hasLabelContent() }, o("slot", { key: "48743dccc0c7a29461ab1333a71b34058c43f194", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), o("div", { key: "42e854a1e83c75eeb35a4df7354d1310ea49627f", class: "gids-field__count", "aria-live": "polite" }, this.count)), o("div", { key: "0583dca7c9bc05530f4c7588a0a7fa592b90fbd8", class: "gids-field__control" }, o("slot", { key: "bb2ae2641451b497b1b5f8df40d645ef07935eaa", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), o("p", { key: "9498d95ece5f84d07e621653cfae8e5a3854c9dd", 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;
|
|
@@ -79,8 +79,8 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
79
79
|
if (e === void 0) return;
|
|
80
80
|
const s = ["gids-field__status-icon"], i = this._getStatusModifierClass(t, "gids-field__status-icon");
|
|
81
81
|
i != null && s.push(i);
|
|
82
|
-
let
|
|
83
|
-
return t === "error" && (
|
|
82
|
+
let a = t;
|
|
83
|
+
return t === "error" && (a = "danger"), t === "success" && (a = "positive"), o(h, { appearance: "filled", size: "sm", alt: "", name: e, class: s.join(" "), style: { "--gidsIcon-color": `var(--gids-color-icon-${a})` } });
|
|
84
84
|
}
|
|
85
85
|
_getCurrentStatus() {
|
|
86
86
|
return this._isImplicitStatus() && this._controlValidationMessage != null ? "error" : this.status ?? "implicit";
|
|
@@ -120,7 +120,7 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
120
120
|
if (e && t.name != null) {
|
|
121
121
|
const s = e.elements.namedItem(t.name);
|
|
122
122
|
if (s instanceof RadioNodeList) {
|
|
123
|
-
const i = Array.from(s).filter(((
|
|
123
|
+
const i = Array.from(s).filter(((a) => a instanceof HTMLInputElement && a.type === "radio" && this._el.contains(a)));
|
|
124
124
|
if (i.length > 0) return i;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -141,8 +141,8 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
141
141
|
if (e.nodeType !== Node.ELEMENT_NODE) continue;
|
|
142
142
|
const s = e, i = this._asTextControl(s);
|
|
143
143
|
if (i !== null) return i;
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
144
|
+
const a = s.querySelector("input, textarea");
|
|
145
|
+
if (a instanceof HTMLInputElement || a instanceof HTMLTextAreaElement) return a;
|
|
146
146
|
}
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { l as v } from "./p-CHGTBObD-
|
|
2
|
+
import { l as v } from "./p-CHGTBObD-D_K9_Tmh.js";
|
|
3
3
|
import { n as b } from "./nonEmpty-B284_5ai.js";
|
|
4
4
|
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const h = ({ appearance: o, size: t, width: d, destructive: s, positive: n, loading: l }, i, e) => _("gids-button", {
|