@ganpatiinfo/gids-core-web 12.0.0 → 14.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 +1114 -247
- 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 +11 -0
- package/dist/gids-advanced-tooltip.js +1 -0
- 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-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-pSb81aE0.js → p-1fMG8D4t.js} +1 -1
- package/dist/p-BBszCFSA.js +1 -0
- package/dist/p-BKcvOO8o.js +1 -0
- package/dist/p-BV0jg2ix.js +1 -0
- package/dist/p-BVA1LAFM.js +1 -0
- package/dist/p-BYt-9DKT.js +1 -0
- package/dist/{p-C3We7Q8Q.js → p-Bab1qxsC.js} +1 -1
- package/dist/{p-C3w3wdCt.js → p-Bh8qYmAS.js} +1 -1
- package/dist/{p-BSbOhfLZ.js → p-BzzDNTlP.js} +1 -1
- package/dist/p-C2POfZhu.js +1 -0
- package/dist/{p-C2O_pGky.js → p-CU5JIcEp.js} +1 -1
- package/dist/{p-Chqeexny.js → p-C_RW9IFo.js} +1 -1
- package/dist/{p-ub0GuVHb.js → p-CatvDz2b.js} +1 -1
- package/dist/{p-BVAtja26.js → p-CnVmK0dH.js} +1 -1
- package/dist/p-D5DRatg0.js +1 -0
- package/dist/{p-6APCjBEI.js → p-DAnkY5ik.js} +1 -1
- package/dist/p-DMVCMnTe.js +1 -0
- package/dist/p-DUUxlY-K.js +1 -0
- package/dist/{p-COHuQEfZ.js → p-Dan1sCNk.js} +1 -1
- package/dist/{p-BCVFQSjK.js → p-DslOQITw.js} +1 -1
- package/dist/{p-DUojHltk.js → p-_HwuS8vK.js} +1 -1
- package/dist/p-jzl-rPxB.js +1 -0
- package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +29 -4
- package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
- package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +23 -3
- package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +20 -3
- package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +27 -3
- package/dist/types/components/html/GidsColorSwatch/GidsColorSwatch.d.ts +6 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +11 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +11 -0
- package/dist/types/components/html/GidsPagination/GidsPagination.d.ts +10 -0
- package/dist/types/components/html/GidsPaginator/GidsPaginator.d.ts +6 -0
- package/dist/types/components/html/GidsPaginatorItem/GidsPaginatorItem.d.ts +7 -0
- package/dist/types/components/html/GidsTable/GidsTable.d.ts +16 -0
- package/dist/types/components/html/GidsTableBody/GidsTableBody.d.ts +11 -0
- package/dist/types/components/html/GidsTableCell/GidsTableCell.d.ts +21 -0
- package/dist/types/components/html/GidsTableEntry/GidsTableEntry.d.ts +9 -0
- package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +12 -0
- package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +8 -0
- package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +9 -0
- package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +9 -0
- package/dist/types/components/html/GidsTableToolbar/GidsTableToolbar.d.ts +11 -0
- package/dist/types/components/html/_GidsPaginationItem/GidsPaginationItem.d.ts +10 -0
- package/dist/types/components/webComponents/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts +28 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +7 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +7 -0
- package/dist/types/components/webComponents/GidsMdTable/GidsMdTable.d.ts +14 -9
- package/dist/types/components.d.ts +130 -17
- package/dist-bundled/es/gids-action-bar.js +5 -5
- package/dist-bundled/es/gids-activity-gauge.js +4 -4
- package/dist-bundled/es/gids-advanced-tooltip.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +4 -4
- package/dist-bundled/es/gids-calendar.js +23 -23
- 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 +38 -34
- package/dist-bundled/es/gids-chevron-button.js +8 -8
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +7 -7
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +3 -3
- 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 +13 -13
- package/dist-bundled/es/gids-expansion.js +7 -7
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +4 -4
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +124 -86
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +11 -11
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +2 -2
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-tab-item.js +1 -1
- package/dist-bundled/es/gids-tab.js +1 -1
- package/dist-bundled/es/gids-text-field.js +11 -11
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/{p-pSb81aE0-CNrq7SQW.js → p-1fMG8D4t-CIEDM74u.js} +2 -2
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +115 -0
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +1024 -0
- package/dist-bundled/es/{p-C3xv7tfs-RodXvmql.js → p-BV0jg2ix-DI0fZl_6.js} +15 -12
- package/dist-bundled/es/p-BVA1LAFM-DdsY_n8R.js +129 -0
- package/dist-bundled/es/{p-CI-sN9Lr-DHC9DyS8.js → p-BYt-9DKT-DByyhIUd.js} +14 -14
- package/dist-bundled/es/{p-C3We7Q8Q-DT_NDg87.js → p-Bab1qxsC-BMbD0lEy.js} +2 -2
- package/dist-bundled/es/{p-C3w3wdCt-I6zwuecb.js → p-Bh8qYmAS-DhSpwB20.js} +5 -5
- package/dist-bundled/es/{p-BSbOhfLZ-ByjjVMqG.js → p-BzzDNTlP-BkSyrafk.js} +9 -9
- package/dist-bundled/es/p-C2POfZhu-DzG_JxV6.js +24 -0
- package/dist-bundled/es/{p-C2O_pGky-C_30AJ3m.js → p-CU5JIcEp-CuVpd-eZ.js} +10 -10
- package/dist-bundled/es/{p-Chqeexny-C4hlPbBP.js → p-C_RW9IFo-DNQqJS8t.js} +6 -6
- package/dist-bundled/es/{p-ub0GuVHb-C_PFTi1_.js → p-CatvDz2b-C-Hlv2Xb.js} +10 -10
- package/dist-bundled/es/{p-BVAtja26-Xjd4_b4e.js → p-CnVmK0dH-CbmnN-RR.js} +7 -7
- package/dist-bundled/es/{p-D4Pimu_8-DfEGRQGf.js → p-D4Pimu_8-ARSuGBs4.js} +0 -1
- package/dist-bundled/es/{p-_SIWct9h-jMYFZ-VO.js → p-D5DRatg0-DtQL-DQg.js} +2 -2
- package/dist-bundled/es/{p-D6lxqcxP-DWrZi1Xi.js → p-D6lxqcxP-C6BOC0kV.js} +1 -1
- package/dist-bundled/es/{p-6APCjBEI-roDSyEYu.js → p-DAnkY5ik-ChPtRpOX.js} +5 -5
- package/dist-bundled/es/p-DMVCMnTe-D4eJKJsj.js +111 -0
- package/dist-bundled/es/p-DUUxlY-K-mypBhVt6.js +99 -0
- package/dist-bundled/es/{p-COHuQEfZ-C_POuXNC.js → p-Dan1sCNk-mWcyyplK.js} +11 -11
- package/dist-bundled/es/{p-BCVFQSjK-CKrYrI4b.js → p-DslOQITw-BfwtLWqG.js} +7 -7
- package/dist-bundled/es/{p-UxDcM-C5-Dr5d_WpJ.js → p-UxDcM-C5-BJO4X0jM.js} +1 -1
- package/dist-bundled/es/{p-DUojHltk-GyvsWoCM.js → p-_HwuS8vK-C0w4T5rV.js} +3 -3
- package/dist-bundled/es/{p-VJAcf53T-2X0vBJ1A.js → p-jzl-rPxB-CC735zJp.js} +17 -34
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +8 -8
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +5 -5
- 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 +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 +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- 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 +17 -9
- package/dist/p-C3xv7tfs.js +0 -1
- package/dist/p-C56G7JRy.js +0 -1
- package/dist/p-CI-sN9Lr.js +0 -1
- package/dist/p-DO0MyFf4.js +0 -1
- package/dist/p-VJAcf53T.js +0 -1
- package/dist/p-_SIWct9h.js +0 -1
- package/dist/p-a3JfEYJp.js +0 -1
- package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -4
- package/dist-bundled/es/p-C56G7JRy-B3HO4aVF.js +0 -88
- package/dist-bundled/es/p-DO0MyFf4-D7XItX1k.js +0 -115
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +0 -1128
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as
|
|
2
|
-
import { d } from "./p-D4Pimu_8-
|
|
1
|
+
import { q as a, L as s, u as n, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as o } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
3
|
import { c as l } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
const
|
|
4
|
+
const d = ({ seriesType: e, orientation: i }, r) => l("gids-chart-legend-item", {
|
|
5
5
|
// 'gids-chart-legend-item--series-1': seriesType === '1', // by default
|
|
6
6
|
"gids-chart-legend-item--series-2": e === "2",
|
|
7
7
|
"gids-chart-legend-item--series-3": e === "3",
|
|
@@ -10,10 +10,10 @@ const o = ({ seriesType: e, orientation: a }, r) => l("gids-chart-legend-item",
|
|
|
10
10
|
"gids-chart-legend-item--series-6": e === "6",
|
|
11
11
|
// 'gids-chart-legend-item--orientation-horizontal':
|
|
12
12
|
// orientation === 'horizontal', // not needed as by default
|
|
13
|
-
"gids-chart-legend-item--orientation-vertical":
|
|
13
|
+
"gids-chart-legend-item--orientation-vertical": i === "vertical"
|
|
14
14
|
}, r), g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
15
|
__proto__: null,
|
|
16
|
-
getGidsChartLegendItemClassNames:
|
|
16
|
+
getGidsChartLegendItemClassNames: d
|
|
17
17
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartLegendItemClassNames: c } = g, h = s(class extends n {
|
|
18
18
|
constructor(e) {
|
|
19
19
|
super(), e !== !1 && this.__registerHost(), this.orientation = "horizontal", this.seriesType = "1";
|
|
@@ -24,24 +24,27 @@ const o = ({ seriesType: e, orientation: a }, r) => l("gids-chart-legend-item",
|
|
|
24
24
|
handleSeriesTypeChange(e) {
|
|
25
25
|
this.seriesType = e;
|
|
26
26
|
}
|
|
27
|
+
handleSeriesColorChange(e) {
|
|
28
|
+
this.seriesColor = e;
|
|
29
|
+
}
|
|
27
30
|
render() {
|
|
28
|
-
const e = c({ seriesType: this.seriesType, orientation: this.orientation });
|
|
29
|
-
return t("div", { key: "
|
|
31
|
+
const e = this.seriesColor, i = e && e !== "", r = c({ seriesType: i ? "none" : this.seriesType, orientation: this.orientation });
|
|
32
|
+
return t("div", { key: "fc8dd82b51491a682d1b63d2830971d6f3af262b", class: r }, t("div", { key: "31247bb0d3f67953fe13eca31af5f546307c5968", class: this.orientation === "vertical" ? "gids-chart-legend-item__dot-wrapper-vertical" : "gids-chart-legend-item__dot-wrapper-horizontal" }, t(o, { key: "daee92872cf487b7430b7cdce5756a1b7b3a9faf", name: "new", alt: "new_icon", appearance: "filled", style: i ? { "--gidsIcon-color": e } : {} })), t("span", { key: "a5d6e1d6c6326b70db1b8066267454b6d06d1e80", class: "gids-chart-legend-item__label" }, t("slot", { key: "ed798a7c0f897fd2a36342007640110d72a0cd8a" })));
|
|
30
33
|
}
|
|
31
34
|
static get watchers() {
|
|
32
|
-
return { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }] };
|
|
35
|
+
return { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }], seriesColor: [{ handleSeriesColorChange: 0 }] };
|
|
33
36
|
}
|
|
34
37
|
static get style() {
|
|
35
38
|
return ".gids-chart-legend-item{display:flex;align-items:center;gap:var(--gids-gap-100);--gidsChartLegendItemIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsChartLegendItemIcon-color);--gidsIcon-height:var(--gids-size-080)}.gids-chart-legend-item--orientation-vertical{display:flex}.gids-chart-legend-item--series-2{--gidsChartLegendItemIcon-color:var(--gids-color-icon-warning)}.gids-chart-legend-item--series-3{--gidsChartLegendItemIcon-color:var(--gids-color-icon-danger)}.gids-chart-legend-item--series-4{--gidsChartLegendItemIcon-color:var(--gids-color-background-positive-bold-hovered)}.gids-chart-legend-item--series-5{--gidsChartLegendItemIcon-color:var(--gids-color-background-information-bold-default)}.gids-chart-legend-item--series-6{--gidsChartLegendItemIcon-color:rgb(238, 70, 188)}.gids-chart-legend-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);text-align:left;color:var(--gids-color-text-subtlest)}.gids-chart-legend-item__dot-wrapper-vertical{display:flex;padding-top:var(--gids-padding-vertical-edge-to-element-075)}.gids-chart-legend-item__dot-wrapper-horizontal{display:flex;align-items:center}";
|
|
36
39
|
}
|
|
37
|
-
}, [260, "gids-chart-legend-item", { orientation: [1], seriesType: [1, "series-type"] }, void 0, { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }] }]);
|
|
40
|
+
}, [260, "gids-chart-legend-item", { orientation: [1], seriesType: [1, "series-type"], seriesColor: [1, "series-color"] }, void 0, { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }], seriesColor: [{ handleSeriesColorChange: 0 }] }]);
|
|
38
41
|
function m() {
|
|
39
42
|
typeof customElements < "u" && ["gids-chart-legend-item"].forEach(((e) => {
|
|
40
|
-
e === "gids-chart-legend-item" && (customElements.get(
|
|
43
|
+
e === "gids-chart-legend-item" && (customElements.get(a(e)) || customElements.define(a(e), h));
|
|
41
44
|
}));
|
|
42
45
|
}
|
|
43
46
|
m();
|
|
44
47
|
export {
|
|
45
|
-
m as
|
|
46
|
-
h as
|
|
48
|
+
m as l,
|
|
49
|
+
h as o
|
|
47
50
|
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { q as b, L as A, u as D, D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { p as L } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
+
import { _ as E } from "./p-DUUxlY-K-mypBhVt6.js";
|
|
4
|
+
import { d as M } from "./p-DslOQITw-BfwtLWqG.js";
|
|
5
|
+
import { l as $ } from "./p-BV0jg2ix-DI0fZl_6.js";
|
|
6
|
+
import { c as I } from "./clsx-OuTLNxxd.js";
|
|
7
|
+
const P = ({ breakpoint: e }, l) => I("gids-bar-chart", {
|
|
8
|
+
"gids-bar-chart--breakpoint-mobile": e === "mobile"
|
|
9
|
+
}, l), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
getGidsBarChartClassNames: P
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsBarChartClassNames: S } = V, T = A(class extends D {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
super(), e !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.legend = "none", this.chartData = [], this.yAxisVisible = !1, this.dataPoints = [], this.chartLoaderSize = "lg", this.chartLoading = !1, this.width = 0, this.height = 0, this.hoveredIndex = null, this.tooltip = { visible: !1, x: 0, y: 0 };
|
|
15
|
+
}
|
|
16
|
+
chartDataChanged() {
|
|
17
|
+
this.updateDimensions();
|
|
18
|
+
}
|
|
19
|
+
dataPointsChanged(e) {
|
|
20
|
+
this.dataPoints = e;
|
|
21
|
+
}
|
|
22
|
+
legendChanged(e) {
|
|
23
|
+
this.legend = e;
|
|
24
|
+
}
|
|
25
|
+
yAxisVisibilityChanged(e) {
|
|
26
|
+
this.yAxisVisible = e;
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.updateDimensions(), this.resizeObserver = new ResizeObserver((() => this.updateDimensions())), this.hostElement.parentElement && this.resizeObserver.observe(this.hostElement.parentElement);
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
this.resizeObserver && this.resizeObserver.disconnect();
|
|
33
|
+
}
|
|
34
|
+
updateDimensions() {
|
|
35
|
+
const e = this.hostElement.getBoundingClientRect();
|
|
36
|
+
this.width = e.width, this.height = e.height > 0 ? e.height : 300;
|
|
37
|
+
}
|
|
38
|
+
getTooltipItems(e) {
|
|
39
|
+
return this.chartData.reduce(((l, o) => {
|
|
40
|
+
const d = o.data[e];
|
|
41
|
+
return d && l.push({ label: o?.label ?? "", value: String(d.value), seriesIndicatorColor: o?.seriesColor ?? "" }), l;
|
|
42
|
+
}), []);
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
if (this.chartLoading) return a("div", { class: "gids-bar-chart__no-data" }, a(L, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
|
|
46
|
+
const e = this?.chartData?.[0]?.data?.map(((t) => t.label)) ?? [], l = e.length, o = Array(l).fill(0);
|
|
47
|
+
this.chartData.forEach(((t) => {
|
|
48
|
+
Array.isArray(t?.data) && t.data.forEach(((s, r) => {
|
|
49
|
+
r < l && (o[r] = (o[r] ?? 0) + (s?.value || 0));
|
|
50
|
+
}));
|
|
51
|
+
}));
|
|
52
|
+
const d = o.length > 0 ? Math.max(...o) : 10, c = Math.pow(10, Math.floor(Math.log10(d || 1)));
|
|
53
|
+
let m = c;
|
|
54
|
+
d / c <= 2 ? m = c / 5 : d / c <= 5 && (m = c / 2);
|
|
55
|
+
const w = Math.ceil(d / m) * m, p = [];
|
|
56
|
+
if (Array.isArray(this.dataPoints) && this.dataPoints.length > 0) {
|
|
57
|
+
const t = [...this.dataPoints].sort(((h, i) => h - i)), s = t.length > 1 ? (t[1] ?? 200) - (t[0] ?? 0) : 200, r = Math.max(...t, w, ...o), x = Math.ceil(r / (s || 1));
|
|
58
|
+
for (let h = 0; h <= x; h++) p.push(h * s);
|
|
59
|
+
} else {
|
|
60
|
+
const s = w / 4;
|
|
61
|
+
for (let r = 0; r < 5; r++) p.push(Math.round(0 + r * s));
|
|
62
|
+
}
|
|
63
|
+
const _ = Math.max(...p) - 0 || 1, k = S({ breakpoint: this.breakpoint });
|
|
64
|
+
let v = !1, z = !1;
|
|
65
|
+
this.breakpoint === "mobile" ? this.legend !== "none" && (v = !0) : this.legend === "top" ? v = !0 : this.legend === "right" && (z = !0);
|
|
66
|
+
const f = 100 / l, g = 0.4 * f;
|
|
67
|
+
return a("div", { class: k }, v ? a("div", { class: "gids-bar-chart__header" }, a("gids-chart-legend", { orientation: "horizontal" }, this.chartData.map(((t) => a("gids-chart-legend-item", { key: t.label, seriesColor: t?.seriesColor, orientation: "horizontal" }, t.label))))) : null, a("div", { class: "gids-bar-chart__main-container" }, a("div", { class: "gids-bar-chart__grid-layout" }, a("span", { class: "gids-bar-chart__y-axis-label" }, this.yAxisLabel), a("div", { class: "gids-bar-chart__chart-stage-container" }, this.yAxisVisible ? a("div", { class: "gids-bar-chart__y-axis-scale-container" }, p.map(((t) => a("span", { class: "gids-bar-chart__scale-text gids-bar-chart__y-axis-scale-value", key: t, style: { bottom: (t - 0) / _ * 100 + "%" } }, t)))) : null, a("div", { class: "gids-bar-chart__chart-stage" }, a("svg", { viewBox: "0 0 100 100", class: "gids-bar-chart__chart-vector", preserveAspectRatio: "none" }, p.map(((t) => {
|
|
68
|
+
const s = 100 - (t - 0) / _ * 100;
|
|
69
|
+
return a("line", { x1: "0", y1: s, x2: "100", y2: s, class: "gids-bar-chart__grid-line", key: t });
|
|
70
|
+
})), e.map(((t, s) => {
|
|
71
|
+
const r = s * f + (f - g) / 2;
|
|
72
|
+
let x = 0;
|
|
73
|
+
const h = [...this.chartData.map(((i, n) => {
|
|
74
|
+
if (!Array.isArray(i.data)) return null;
|
|
75
|
+
const y = i.data[s];
|
|
76
|
+
if (!y) return null;
|
|
77
|
+
const u = (y.value || 0) / _ * 100, C = 100 - u - x;
|
|
78
|
+
return x += u, { seriesIdx: n, crownY: C, height: u, seriesColor: i?.seriesColor };
|
|
79
|
+
})).filter(((i) => i !== null && i.height > 0))].sort(((i, n) => n.seriesIdx - i.seriesIdx));
|
|
80
|
+
return a("g", { key: s }, h.map(((i) => {
|
|
81
|
+
const n = 0.3 * g, y = `
|
|
82
|
+
M ${r},${i.crownY + n}
|
|
83
|
+
Q ${r},${i.crownY} ${r + n},${i.crownY}
|
|
84
|
+
H ${r + g - n}
|
|
85
|
+
Q ${r + g},${i.crownY} ${r + g},${i.crownY + n}
|
|
86
|
+
V 100
|
|
87
|
+
H ${r}
|
|
88
|
+
Z
|
|
89
|
+
`.replace(/\s+/g, " ").trim();
|
|
90
|
+
return a("path", { key: i.seriesIdx, d: y, class: "gids-bar-chart__bar", style: { fill: i?.seriesColor } });
|
|
91
|
+
})), a("rect", { x: r, y: "0", width: g, height: "100", fill: "transparent", "pointer-events": "all", onMouseMove: (i) => {
|
|
92
|
+
this.hoveredIndex = s, this.tooltip = { visible: !0, x: i.clientX, y: i.clientY };
|
|
93
|
+
}, onMouseLeave: () => {
|
|
94
|
+
this.hoveredIndex = null, this.tooltip = { ...this.tooltip, visible: !1 };
|
|
95
|
+
} }));
|
|
96
|
+
}))), a("gids-advanced-tooltip", { visible: this.tooltip.visible, x: this.tooltip.x, y: this.tooltip.y, items: this.hoveredIndex !== null ? this.getTooltipItems(this.hoveredIndex) : [] }))), a("div", { class: "gids-bar-chart__x-axis-scale-container" }, e.map(((t, s) => a("span", { class: "gids-bar-chart__scale-text", key: s }, t)))), a("span", { class: "gids-bar-chart__x-axis-label" }, this.xAxisLabel)), z ? a("gids-chart-legend", { orientation: "vertical" }, this.chartData.map(((t) => a("gids-chart-legend-item", { key: t.label, seriesColor: t?.seriesColor, orientation: "vertical" }, t.label)))) : null));
|
|
97
|
+
}
|
|
98
|
+
get hostElement() {
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
static get watchers() {
|
|
102
|
+
return { chartData: [{ chartDataChanged: 0 }], dataPoints: [{ dataPointsChanged: 0 }], legend: [{ legendChanged: 0 }], yAxisVisible: [{ yAxisVisibilityChanged: 0 }] };
|
|
103
|
+
}
|
|
104
|
+
static get style() {
|
|
105
|
+
return ":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-bar-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-bar-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-bar-chart__grid-layout{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(180px, 280px) auto auto;flex:1;width:100%;height:100%;box-sizing:border-box}.gids-bar-chart__y-axis-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;margin-right:var(--gids-padding-horizontal-edge-to-element-600);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.gids-bar-chart__chart-stage-container{grid-column:2;grid-row:1;position:relative;width:100%;height:100%;padding-left:var(--gids-container-padding-desktop);box-sizing:border-box}.gids-bar-chart__y-axis-scale-container{position:absolute;top:0;bottom:0;left:0;width:calc(var(--gids-container-padding-desktop) - var(--gids-padding-horizontal-edge-to-element-100));pointer-events:none}.gids-bar-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%);margin-right:var(--gids-padding-horizontal-edge-to-element-100)}.gids-bar-chart__chart-stage{position:relative;width:100%;height:100%;border-bottom:var(--gids-border-width-thin) solid var(--gids-color-border-default);box-sizing:border-box}.gids-bar-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-bar-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-bar-chart{}.gids-bar-chart__bar{vector-effect:non-scaling-stroke}.gids-bar-chart{}.gids-bar-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-around;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-200);gap:var(--gids-gap-050);box-sizing:border-box}.gids-bar-chart__x-axis-label{grid-column:2;grid-row:3;display:flex;justify-content:center;align-items:center;padding-top:var(--gids-padding-vertical-edge-to-element-100);font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);white-space:nowrap}.gids-bar-chart__scale-text{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtlest);user-select:none;white-space:nowrap}.gids-bar-chart__no-data{display:flex;align-items:center;justify-content:center;padding:var(--gids-padding-vertical-edge-to-element-300) var(--gids-padding-horizontal-edge-to-element-100);width:100%;height:100%;min-height:200px;color:var(--gids-color-text-subtlest);border:var(--gids-border-width-thin) dashed var(--gids-color-border-default);border-radius:var(--gids-border-radius-md)}";
|
|
106
|
+
}
|
|
107
|
+
}, [0, "gids-bar-chart", { breakpoint: [1], legend: [1], chartData: [16], yAxisVisible: [4, "y-axis-visible"], xAxisLabel: [1, "x-axis-label"], yAxisLabel: [1, "y-axis-label"], dataPoints: [16], chartLoaderSize: [1, "chart-loader-size"], chartLoading: [4, "chart-loading"], chartLoadingTitle: [1, "chart-loading-title"], chartLoadingSupportingText: [1, "chart-loading-supporting-text"], width: [32], height: [32], hoveredIndex: [32], tooltip: [32] }, void 0, { chartData: [{ chartDataChanged: 0 }], dataPoints: [{ dataPointsChanged: 0 }], legend: [{ legendChanged: 0 }], yAxisVisible: [{ yAxisVisibilityChanged: 0 }] }]);
|
|
108
|
+
function Y() {
|
|
109
|
+
typeof customElements < "u" && ["gids-bar-chart", "gids-advanced-tooltip", "gids-chart-legend", "gids-chart-legend-item"].forEach(((e) => {
|
|
110
|
+
switch (e) {
|
|
111
|
+
case "gids-bar-chart":
|
|
112
|
+
customElements.get(b(e)) || customElements.define(b(e), T);
|
|
113
|
+
break;
|
|
114
|
+
case "gids-advanced-tooltip":
|
|
115
|
+
customElements.get(b(e)) || E();
|
|
116
|
+
break;
|
|
117
|
+
case "gids-chart-legend":
|
|
118
|
+
customElements.get(b(e)) || M();
|
|
119
|
+
break;
|
|
120
|
+
case "gids-chart-legend-item":
|
|
121
|
+
customElements.get(b(e)) || $();
|
|
122
|
+
}
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
Y();
|
|
126
|
+
export {
|
|
127
|
+
T as g,
|
|
128
|
+
Y as h
|
|
129
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as
|
|
2
|
-
import { d as m } from "./p-D4Pimu_8-
|
|
3
|
-
import { r as g } from "./p-
|
|
1
|
+
import { q as l, L as u, u as p, D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as m } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
+
import { r as g } from "./p-CnVmK0dH-CbmnN-RR.js";
|
|
4
4
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
6
6
|
"gids-dropdown--expanded": e
|
|
@@ -12,13 +12,13 @@ const v = ({ expanded: e }, t) => c("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: I, getGidsChevronButtonControlClassNames: b } = 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: r } = 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: r }));
|
|
22
22
|
}, this.handleMenuClick = (t) => {
|
|
23
23
|
if (this.suppressNextMenuClickSelection) return;
|
|
24
24
|
const i = t.target;
|
|
@@ -29,9 +29,9 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
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
|
-
let
|
|
34
|
-
|
|
32
|
+
const r = n.getAttribute("is-placeholder-item") ?? "";
|
|
33
|
+
let d = n.textContent?.trim() ?? "";
|
|
34
|
+
d.endsWith("checkmark") && (d = d.slice(0, -9).trim()), this.applySelection({ id: o, value: s, title: d.trim(), disabled: !1, originalEvent: t, isPlaceholderItem: !(!r || r !== "true") });
|
|
35
35
|
}, this.handleFilterInput = (t) => {
|
|
36
36
|
const i = t.target;
|
|
37
37
|
this.filterValue = i?.value ?? "", this.isFilterEditing = !0, this.clearActive(), this.expanded || this.setExpandedState(!0, t), this.applyFilter();
|
|
@@ -211,10 +211,10 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
211
211
|
}, e;
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
|
-
const e = this.expanded && this.isInteractive(), t =
|
|
214
|
+
const e = this.expanded && this.isInteractive(), t = I({ expanded: e }), i = this.getEnhancedInputProps(), n = typeof i.id == "string" ? i.id : void 0, s = n ? `${n}__menu` : void 0;
|
|
215
215
|
i.role = "combobox", i["aria-expanded"] = e ? "true" : "false", i["aria-haspopup"] = "listbox", i["aria-autocomplete"] = "list", s && (i["aria-controls"] = s);
|
|
216
|
-
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "",
|
|
217
|
-
return a("div", { key: "
|
|
216
|
+
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", r = e ? "true" : "false", d = a("button", { key: "f579868c1b38fe72e32cdd7a2d4e8438f87651dc", class: b({ size: "lg" }), slot: "trailingAccessory", type: "button", onClick: this.handleChevronClickToggle, "aria-label": e ? "Collapse options" : "Expanded options", "aria-expanded": r, "aria-haspopup": "listbox", "aria-controls": s, disabled: this.disabled || this.readOnly, tabIndex: -1 }, a("span", { key: "090c8b8803ce15ae87ef0da31af7d20b4f1cf14d", class: "gids-button__content" }, a(m, { key: "b3289c24e919d16746f5fa70bf5b730adbe22b04", name: "chevron-vertical", alt: "" })));
|
|
217
|
+
return a("div", { key: "f6ac6c42dcbe4fae263acb74d74665917332ac87", class: t }, a("gids-input", { key: "459ecf566278abbb754c00a90fa63701700d1a79", 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: "ffff01e347fae7f5c1714f6bff552e38c845e6bd", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && a("slot", { key: "f971e3f5e961b9bad5b33c1d037fa5cbaf16c59c", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), d), a("div", { key: "ce522a342ee46e94299ce8bd19778d835e93804c", class: "gids-dropdown__menu", id: s, role: "listbox", onClick: this.handleMenuClick }, a("slot", { key: "6c84963e10614e1990aab1daee050d8c01b360e4" })));
|
|
218
218
|
}
|
|
219
219
|
get hostElement() {
|
|
220
220
|
return this;
|
|
@@ -230,10 +230,10 @@ function x() {
|
|
|
230
230
|
typeof customElements < "u" && ["gids-dropdown", "gids-input"].forEach(((e) => {
|
|
231
231
|
switch (e) {
|
|
232
232
|
case "gids-dropdown":
|
|
233
|
-
customElements.get(
|
|
233
|
+
customElements.get(l(e)) || customElements.define(l(e), E);
|
|
234
234
|
break;
|
|
235
235
|
case "gids-input":
|
|
236
|
-
customElements.get(
|
|
236
|
+
customElements.get(l(e)) || g();
|
|
237
237
|
}
|
|
238
238
|
}));
|
|
239
239
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as a, L as _, u as m, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as b } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { d as u } from "./p-DslOQITw-BfwtLWqG.js";
|
|
4
|
+
import { l as v } from "./p-BV0jg2ix-DI0fZl_6.js";
|
|
5
5
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const f = ({ breakpoint: e }, r) => x("gids-pie-chart", {
|
|
7
7
|
"gids-pie-chart--breakpoint-mobile": e === "mobile"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { q as l, L as d, u as o, D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { o as h } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
3
|
-
import { d as c } from "./p-D4Pimu_8-
|
|
3
|
+
import { d as c } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
4
|
import { e as p } from "./p-ChV9xqsO-CJSPCx6p.js";
|
|
5
|
-
import { l as u } from "./p-
|
|
6
|
-
import { u as b } from "./p-
|
|
7
|
-
import { h as m } from "./p-
|
|
5
|
+
import { l as u } from "./p-Dan1sCNk-mWcyyplK.js";
|
|
6
|
+
import { u as b } from "./p-C_RW9IFo-DNQqJS8t.js";
|
|
7
|
+
import { h as m } from "./p-BzzDNTlP-BkSyrafk.js";
|
|
8
8
|
import { c as k } from "./clsx-OuTLNxxd.js";
|
|
9
9
|
const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
10
10
|
const t = new Date(2e3, e - 1, 1);
|
|
@@ -130,7 +130,7 @@ const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
132
|
const e = M(), a = this.expandedMonthPicker && this.isMonthPickerInteractive() && !this.expandedYearPicker, t = this.expandedYearPicker && this.isYearPickerInteractive() && !this.expandedMonthPicker, i = this.internalPreviousDisabled || this.previousDisabled, s = this.internalNextDisabled || this.nextDisabled;
|
|
133
|
-
return n("div", { key: "
|
|
133
|
+
return n("div", { key: "800b443e73ee31a91cf5e628a6499efc2a2ab050", class: e }, n(h, { key: "6b70019556344bba98dfe9c593a251994ab21f51", leadingIcon: n(c, { name: "arrow-left", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handlePreviousActionClick, disabled: i }), n("div", { key: "a3c72bde8b22db7f62dd799435ef0585eb1e0e84", class: "gids-calendar-header-panel__main-container" }, n("gids-dropdown-picker", { key: "b4f25c56cb3d75350ce8e22074c94555e0442e24", expanded: a, appearance: this.appearance, size: "sm", value: `${this.panelMonthNumber}`, disabled: this.monthPickerDisabled }, n("gids-calendar-month-list", { key: "47baea7b5644d89da87df3f356df294f2d97caef", type: "default", selectedMonthNumber: this.panelMonthNumber, onSelectionMonthChange: this.handleMonthPickerMenuClick })), n("span", { key: "0693d3d71120c91d94631e488a2eb7e123a13fe7", class: p("gids-calendar-header-panel__panel-value", { "gids-calendar-header-panel__panel-value-disabled": this.panelDisabled }) }, this.getPanelValue()), n("gids-dropdown-picker", { key: "6bffa9dc8d8b08f562fe0f5475bdc9dc126b0156", expanded: t, appearance: this.appearance, size: "sm", value: `${this.panelYear}`, disabled: this.yearPickerDisabled }, n("gids-calendar-year-list", { key: "6c2efb4cf2507d3332e0c2aab68c9737d5ccf0fc", type: "default", selectedYear: this.panelYear, startYear: this.startYear ?? this.fallbackStartYear, endYear: this.endYear, onSelectionYearChange: this.handleYearPickerMenuClick }))), n(h, { key: "8796b6f75ab495152d17f20e8051e160ffe8e6d2", leadingIcon: n(c, { name: "arrow-right", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handleNextActionClick, disabled: s }));
|
|
134
134
|
}
|
|
135
135
|
get hostElement() {
|
|
136
136
|
return this;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { q as r, L as l, u as
|
|
2
|
-
import { o as
|
|
3
|
-
import { d as p } from "./p-D4Pimu_8-
|
|
1
|
+
import { q as r, L as l, u as c, D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { o as h } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
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", {
|
|
6
6
|
"gids-dropdown-picker--expanded": e
|
|
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: f } = g, v = l(class extends c {
|
|
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 = f({ expanded: e }), i = typeof this.idPicker == "string" ? this.idPicker : void 0, s = i ? `${i}__menu` : void 0;
|
|
114
|
+
return n("div", { key: "c880ea07fedcfd10badccf52ebedacbd92bc5bbc", class: t, onClick: this.handleOutSpaceClickOfDropdownButtonToggle }, n(h, { key: "5d84443478890e1f4c9673cc13106cf839d56b87", 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: "0de0bc785af3845fc02debc2561b055bf55816d7", class: "gids-dropdown-picker__menu", id: s, role: "pickerbox", onClick: this.handleMenuClick }, n("slot", { key: "a91fb5d7c902bdbc6b2c0bd0e0bda515dc9c2dd2" })));
|
|
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), v));
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
131
|
E();
|
|
132
132
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
v as a,
|
|
134
|
+
E as h
|
|
135
135
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { D as g } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { c as e } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
const n = ({ size: a, appearance: s, color: t }, d) => e("gids-display-tag", {
|
|
4
|
+
"gids-display-tag--xsmall": a === "xs",
|
|
5
|
+
"gids-display-tag--small": a === "sm",
|
|
6
|
+
// 'gids-display-tag--medium': size === 'md',
|
|
7
|
+
"gids-display-tag--large": a === "lg",
|
|
8
|
+
"gids-display-tag--accent-1": s === "subtle" && t === "accent-1",
|
|
9
|
+
"gids-display-tag--accent-2": s === "subtle" && t === "accent-2",
|
|
10
|
+
"gids-display-tag--accent-3": s === "subtle" && t === "accent-3",
|
|
11
|
+
"gids-display-tag--accent-4": s === "subtle" && t === "accent-4",
|
|
12
|
+
"gids-display-tag--accent-5": s === "subtle" && t === "accent-5",
|
|
13
|
+
"gids-display-tag--bold-accent-1": s === "bold" && t === "accent-1",
|
|
14
|
+
"gids-display-tag--bold-accent-2": s === "bold" && t === "accent-2",
|
|
15
|
+
"gids-display-tag--bold-accent-3": s === "bold" && t === "accent-3",
|
|
16
|
+
"gids-display-tag--bold-accent-4": s === "bold" && t === "accent-4",
|
|
17
|
+
"gids-display-tag--bold-accent-5": s === "bold" && t === "accent-5"
|
|
18
|
+
}, d), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
|
+
__proto__: null,
|
|
20
|
+
getGidsDisplaTagClassNames: n
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDisplaTagClassNames: y } = b, u = ({ label: a, appearance: s = "subtle", color: t, size: d = "md", icon: l, class: i, ...c }) => g("span", { class: y({ size: d, appearance: s, color: t }, i), ...c }, l, a);
|
|
22
|
+
export {
|
|
23
|
+
u as o
|
|
24
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { q as e, L as t, u as s, D as o } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { d } from "./p-D4Pimu_8-
|
|
4
|
-
const
|
|
2
|
+
import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
+
import { d as c } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
|
+
const n = t(class extends s {
|
|
5
5
|
constructor(i) {
|
|
6
6
|
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
7
|
}
|
|
8
8
|
connectedCallback() {
|
|
9
|
-
const i =
|
|
9
|
+
const i = d();
|
|
10
10
|
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return o(
|
|
13
|
+
return o(c, { key: "ed26abeec9d463e0c269cffe44bb325b6d11bc86", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
|
|
14
14
|
}
|
|
15
15
|
get _el() {
|
|
16
16
|
return this;
|
|
@@ -19,13 +19,13 @@ const a = t(class extends s {
|
|
|
19
19
|
return ".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
|
|
20
20
|
}
|
|
21
21
|
}, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
|
|
22
|
-
function
|
|
22
|
+
function a() {
|
|
23
23
|
typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
|
|
24
|
-
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i),
|
|
24
|
+
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), n));
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
a();
|
|
28
28
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
a as d,
|
|
30
|
+
n
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as d, L as c, u as h, D as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { m as u, x as m, N as Y } from "./p-D6lxqcxP-
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
2
|
+
import { m as u, x as m, N as Y } from "./p-D6lxqcxP-C6BOC0kV.js";
|
|
3
|
+
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const p = (e) => f("gids-calendar-year-list", e), g = (e) => {
|
|
5
5
|
const t = e.toString().trim();
|
|
6
6
|
if (!/^\d{4}$/.test(t))
|
|
7
7
|
return !1;
|
|
@@ -21,7 +21,7 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
21
21
|
return s;
|
|
22
22
|
}, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
|
-
getGidsCalendarYearListClassNames:
|
|
24
|
+
getGidsCalendarYearListClassNames: p,
|
|
25
25
|
getGidsCalendarYearListYears: I,
|
|
26
26
|
isValidFourDigitYear: g
|
|
27
27
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears: b, isValidFourDigitYear: l } = S, w = c(class extends h {
|
|
@@ -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: "11dfe8162214f107ce269367f9f2f8b1bff84d93", class: e }, i(u, { key: "e40df2cbd768dcb121042b5fd82b255bbadbcb07", type: this.type, supportingText: this.noOptionsText }, i(m, { key: "fcabde26d20de0f6f3b8aca82158721f161e48e8", 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
|
})))));
|
|
@@ -87,6 +87,6 @@ function E() {
|
|
|
87
87
|
}
|
|
88
88
|
E();
|
|
89
89
|
export {
|
|
90
|
-
w as
|
|
90
|
+
w as c,
|
|
91
91
|
E as u
|
|
92
92
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as l, L as n, u as r, D as
|
|
2
|
-
import { d as h } from "./p-D4Pimu_8-
|
|
1
|
+
import { q as l, L as n, u as r, D as a, P as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
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";
|
|
5
5
|
const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -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 o = this._getStatusModifierClass(s, "gids-field__status-text");
|
|
57
|
+
o != null && i.push(o);
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return a(d, { key: "c75e54d5682a6cab95b56861725af0722230ae44" }, a("div", { key: "1ecbbae66b42c8500368ab1dfee347e12400f4ac", class: p() }, a("div", { key: "e67b522626951f216825631772d87fcd40b59a00", class: "gids-field__header", hidden: !this._hasLabelContent() }, a("slot", { key: "c6a348a5cc0f4195d964d343e380392337f90116", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), a("div", { key: "29747dd8fd31c32cee6ee23f50f08fe0f3d0dd6c", class: "gids-field__count", "aria-live": "polite" }, this.count)), a("div", { key: "1b24c65b26fb184862dd4aeb573de0dca9d843c7", class: "gids-field__control" }, a("slot", { key: "025942655f85c705d65d3ba9a3179e9d4cd1cd83", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), a("p", { key: "8dda0c1f671594bcc08bfd9ba0c70496439c4730", class: "gids-field__supporting-text", hidden: !this._shouldShowHelperText() }, this.helperText), t ? a("p", { class: i.join(" "), role: "status", "aria-live": "polite" }, this._renderStatusIcon(s), e !== void 0 ? a("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 o = t;
|
|
83
|
+
return t === "error" && (o = "danger"), t === "success" && (o = "positive"), a(h, { appearance: "filled", size: "sm", alt: "", name: e, class: s.join(" "), style: { "--gidsIcon-color": `var(--gids-color-icon-${o})` } });
|
|
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(((o) => o instanceof HTMLInputElement && o.type === "radio" && this._el.contains(o)));
|
|
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 o = s.querySelector("input, textarea");
|
|
145
|
+
if (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement) return o;
|
|
146
146
|
}
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as s, L as l, u, D as
|
|
2
|
-
import { d as n } from "./p-D4Pimu_8-
|
|
3
|
-
import { l as
|
|
1
|
+
import { q as s, L as l, u, D as a, F as r } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as n } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
+
import { l as d } from "./p-CHGTBObD-EN4cCwtX.js";
|
|
4
4
|
const c = (e) => e.type === "hidden", f = (e) => {
|
|
5
5
|
if (!(e instanceof HTMLElement))
|
|
6
6
|
return !1;
|
|
@@ -18,8 +18,8 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
18
18
|
}, o = l(class extends u {
|
|
19
19
|
constructor(e) {
|
|
20
20
|
super(), e !== !1 && this.__registerHost(), this.#e = {}, this._focusInput = (t) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const i = t.target;
|
|
22
|
+
i === this.#t || this._isWithinInteractiveElement(i) || this.#t?.focus();
|
|
23
23
|
}, this._handleInputFocusAndBlur = (t) => {
|
|
24
24
|
this._el.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
|
|
25
25
|
};
|
|
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
54
54
|
this._el.removeEventListener("click", this._focusInput);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return
|
|
57
|
+
return a(r, { key: "a847ece96bcb383a08cfaab96c5988cab92e9e46" }, a("slot", { key: "f0b51bb77a1bcb25b68d511aba32840d796b2aea", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "933b6a1c25ae864e823fdc23dc36fee4bd1f8ceb", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "648eb1dc824d92ead913e4e3117e512c0054a235", name: "leadingAccessory" }), a("input", { key: "813cf18437f2caf8df7055cb1bd863bade80ef45", ...this.inputProps, ref: (e) => {
|
|
58
58
|
this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
|
|
59
|
-
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }),
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "479ab0f4295373d7556b8db09fbe7f77b56047f4", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "15e75448705297a12d9afb7725d084b57a0bf338", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "7c35046d76d34b749d93b5aa0c1a342760c5a905", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "bb4df6968119a0c7ea266b0b43f7573e0e26a5b6", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "33dbd0adf04059eb3a0454396a5c741e21f29c96", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(d, { key: "b81b773130765753a21e2a52baa6d46504367833", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -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: "201e83381218abefabfe656b0da772604218fb89" }, t("style", { key: "835f491d72b9a861081c387c224b958cef2046d1" }, `:host {
|
|
21
21
|
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
22
|
-
}`), t(o, { key: "
|
|
22
|
+
}`), t(o, { key: "d1b1ee3a51c3c1e7e9c6fd300843c24b83f498b2", 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: "4dfa9d8702ee380df07ba3e1c30b858b6dfc970e" })));
|
|
23
23
|
}
|
|
24
24
|
_onlyHasLeadingIcon() {
|
|
25
25
|
const e = this._el.childNodes;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as t, F as w } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as O } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import { d as C } from "./p-D4Pimu_8-
|
|
3
|
+
import { d as C } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
4
|
import { c as a } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const T = ({ orientation: e }, i) => a("gids-divider", {
|
|
6
6
|
"gids-divider--vertical": e === "vertical"
|