@ganpatiinfo/gids-core-web 8.2.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +1919 -0
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +332 -0
- package/dist/gids-activity-gauge.d.ts +11 -0
- package/dist/gids-activity-gauge.js +1 -0
- package/dist/gids-bar-chart.d.ts +11 -0
- package/dist/gids-bar-chart.js +1 -0
- package/dist/gids-calendar-header-panel.d.ts +11 -0
- package/dist/gids-calendar-header-panel.js +1 -0
- package/dist/gids-calendar-month-list.d.ts +11 -0
- package/dist/gids-calendar-month-list.js +1 -0
- package/dist/gids-calendar-year-list.d.ts +11 -0
- package/dist/gids-calendar-year-list.js +1 -0
- package/dist/gids-calendar.d.ts +11 -0
- package/dist/gids-calendar.js +1 -0
- package/dist/gids-chart-legend-item.d.ts +11 -0
- package/dist/gids-chart-legend-item.js +1 -0
- package/dist/gids-chart-legend.d.ts +11 -0
- package/dist/gids-chart-legend.js +1 -0
- package/dist/gids-chart.d.ts +11 -0
- package/dist/gids-chart.js +1 -0
- package/dist/gids-chevron-button.d.ts +11 -0
- package/dist/gids-chevron-button.js +1 -0
- package/dist/gids-dot.d.ts +11 -0
- package/dist/gids-dot.js +1 -0
- package/dist/gids-dropdown-field.d.ts +11 -0
- package/dist/gids-dropdown-field.js +1 -0
- package/dist/gids-dropdown-picker.d.ts +11 -0
- package/dist/gids-dropdown-picker.js +1 -0
- package/dist/gids-dropdown.d.ts +11 -0
- package/dist/gids-dropdown.js +1 -0
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +11 -0
- package/dist/gids-level-gauge.js +1 -0
- package/dist/gids-line-chart.d.ts +11 -0
- package/dist/gids-line-chart.js +1 -0
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +11 -0
- package/dist/gids-pie-chart.js +1 -0
- package/dist/gids-popover.d.ts +11 -0
- package/dist/gids-popover.js +1 -0
- package/dist/gids-progress-circle.d.ts +11 -0
- package/dist/gids-progress-circle.js +1 -0
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +11 -0
- package/dist/gids-tooltip.js +1 -0
- package/dist/index.js +1 -1
- package/dist/p-9_mrQ7ac.js +1 -0
- package/dist/p-B81J5HCC.js +1 -0
- package/dist/p-B8kX8Vqv.js +1 -0
- package/dist/p-BFHWXEeg.js +1 -0
- package/dist/p-B_HaXpJZ.js +1 -0
- package/dist/p-BaO-kEWS.js +1 -0
- package/dist/p-BiPAgxAQ.js +1 -0
- package/dist/p-Bmb-HiXg.js +1 -0
- package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
- package/dist/{p-DjvDBWCb.js → p-BvYnawkJ.js} +1 -1
- package/dist/p-CIP0xyhD.js +1 -0
- package/dist/p-CJzporPT.js +1 -0
- package/dist/p-CPSHPtGE.js +1 -0
- package/dist/p-CRngHsR7.js +1 -0
- package/dist/p-Ct3Ixgvf.js +1 -0
- package/dist/p-D93TNeOt.js +1 -0
- package/dist/p-DKsrt7dx.js +1 -0
- package/dist/p-DZWWuJac.js +1 -0
- package/dist/p-D_wcwB7E.js +1 -0
- package/dist/p-Dehss-X0.js +1 -0
- package/dist/{p-Bg3lw2Ae.js → p-DfFqFdmS.js} +1 -1
- package/dist/p-KxRqlvSh.js +1 -0
- package/dist/p-MgTlrSP_.js +1 -0
- package/dist/p-a3JfEYJp.js +1 -0
- package/dist/p-h6alWGT8.js +1 -0
- package/dist/p-quZYWCxU.js +1 -0
- package/dist/p-tyIgTtUC.js +1 -0
- package/dist/p-uqSjmNkw.js +1 -0
- package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
- package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
- package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
- package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
- package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
- package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
- package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
- package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
- package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
- package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
- package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
- package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
- package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
- package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
- package/dist/types/components.d.ts +1420 -64
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
- package/dist-bundled/es/gids-activity-gauge.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +6 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
- package/dist-bundled/es/gids-calendar-month-list.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +6 -0
- package/dist-bundled/es/gids-calendar.js +153 -0
- package/dist-bundled/es/gids-chart-legend-item.js +6 -0
- package/dist-bundled/es/gids-chart-legend.js +6 -0
- package/dist-bundled/es/gids-chart.js +108 -0
- package/dist-bundled/es/gids-chevron-button.js +56 -0
- package/dist-bundled/es/gids-dot.js +6 -0
- package/dist-bundled/es/gids-dropdown-field.js +88 -0
- package/dist-bundled/es/gids-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dropdown.js +6 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-icon.js +4 -30
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +6 -0
- package/dist-bundled/es/gids-line-chart.js +6 -0
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +17 -17
- package/dist-bundled/es/gids-password-field.js +21 -20
- package/dist-bundled/es/gids-pie-chart.js +6 -0
- package/dist-bundled/es/gids-popover.js +110 -0
- package/dist-bundled/es/gids-progress-circle.js +6 -0
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +14 -13
- package/dist-bundled/es/gids-toggle-button.js +8 -8
- package/dist-bundled/es/gids-tooltip.js +66 -0
- package/dist-bundled/es/index.js +33 -19
- package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
- package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
- package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
- package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
- package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
- package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
- package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
- package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-BnL97lOW-BO0p4EdC.js} +20 -13
- package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-BvYnawkJ-DohV9UNG.js} +10 -10
- package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
- package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
- package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
- package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
- package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
- package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
- package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
- package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
- package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
- package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
- package/dist-bundled/es/p-KxRqlvSh-JOFDmT0B.js +25 -0
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
- package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
- package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
- package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
- package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
- package/dist-bundled/umd/gids-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-popover.umd.js +5 -0
- package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
- package/package.json +422 -262
- package/dist/p-CWdkmFbc.js +0 -1
- package/dist/p-DijVkS9b.js +0 -1
- package/dist/p-DybsMR13.js +0 -1
- package/dist/p-ibikYq-w.js +0 -1
- package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
- package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +0 -35
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { P as d, _ as f, u as v, T as e } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { r as u } from "./p-Dehss-X0-Di5vMgvd.js";
|
|
3
|
+
import { d as w } from "./p-B_HaXpJZ-a2SDgQ0E.js";
|
|
4
|
+
import { l as k } from "./p-B81J5HCC-Bkt2yXKi.js";
|
|
5
|
+
import { c as z } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
const A = ({ breakpoint: a }, s) => z("gids-line-chart", {
|
|
7
|
+
"gids-line-chart--breakpoint-mobile": a === "mobile"
|
|
8
|
+
}, s), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
|
+
__proto__: null,
|
|
10
|
+
getGidsLineChartClassNames: A
|
|
11
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsLineChartClassNames: C } = L, D = f(class extends v {
|
|
12
|
+
constructor(a) {
|
|
13
|
+
super(), a !== !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;
|
|
14
|
+
}
|
|
15
|
+
chartDataChanged() {
|
|
16
|
+
this.updateDimensions();
|
|
17
|
+
}
|
|
18
|
+
dataPointsChanged(a) {
|
|
19
|
+
this.dataPoints = a;
|
|
20
|
+
}
|
|
21
|
+
legendChanged(a) {
|
|
22
|
+
this.legend = a;
|
|
23
|
+
}
|
|
24
|
+
yAxisVisibilityChanged(a) {
|
|
25
|
+
this.yAxisVisible = a;
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
this.updateDimensions(), this.resizeObserver = new ResizeObserver((() => this.updateDimensions())), this.hostElement.parentElement && this.resizeObserver.observe(this.hostElement.parentElement);
|
|
29
|
+
}
|
|
30
|
+
disconnectedCallback() {
|
|
31
|
+
this.resizeObserver && this.resizeObserver.disconnect();
|
|
32
|
+
}
|
|
33
|
+
updateDimensions() {
|
|
34
|
+
const a = this.hostElement.getBoundingClientRect();
|
|
35
|
+
this.width = a.width, this.height = a.height > 0 ? a.height : 300;
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
if (this.chartLoading) return e("div", { class: "gids-line-chart__no-data" }, e(u, { label: this.chartLoadingTitle, supportingText: this.chartLoadingSupportingText, size: this?.chartLoaderSize ?? "lg" }));
|
|
39
|
+
const a = this.chartData.flatMap(((t) => Array.isArray(t?.data) ? t.data.map(((i) => i.value)) : [])), s = a.length > 0 ? Math.max(...a) : 10, l = Math.pow(10, Math.floor(Math.log10(s || 1)));
|
|
40
|
+
let o = l;
|
|
41
|
+
s / l <= 2 ? o = l / 5 : s / l <= 5 && (o = l / 2);
|
|
42
|
+
const c = Math.ceil(s / o) * o;
|
|
43
|
+
let n = [];
|
|
44
|
+
if (Array.isArray(this.dataPoints) && this.dataPoints.length > 0) n = [...this.dataPoints].sort(((t, i) => t - i));
|
|
45
|
+
else {
|
|
46
|
+
const i = c / 4;
|
|
47
|
+
for (let r = 0; r < 5; r++) n.push(Math.round(0 + r * i));
|
|
48
|
+
}
|
|
49
|
+
const g = Math.max(...n, c) - 0 || 1, p = this?.chartData?.[0]?.data?.map(((t) => t.label)) ?? [], b = p.length, y = C({ breakpoint: this.breakpoint });
|
|
50
|
+
let h = !1, _ = !1;
|
|
51
|
+
return this.breakpoint === "mobile" ? this.legend !== "none" && (h = !0) : this.legend === "top" ? h = !0 : this.legend === "right" && (_ = !0), e("div", { class: y }, h ? e("div", { class: "gids-line-chart__header" }, e("gids-chart-legend", { orientation: "horizontal" }, this.chartData.map(((t, i) => e("gids-chart-legend-item", { key: t.label, seriesType: `${i + 1}`, orientation: "horizontal" }, t.label))))) : null, e("div", { class: "gids-line-chart__main-container" }, e("div", { class: "gids-line-chart__grid-layout" }, e("span", { class: "gids-line-chart__y-axis-label" }, this.yAxisLabel), e("div", { class: "gids-line-chart__chart-stage-container" }, this.yAxisVisible ? e("div", { class: "gids-line-chart__y-axis-scale-container" }, n.map(((t) => e("span", { class: "gids-line-chart__scale-text gids-line-chart__y-axis-scale-value", key: t, style: { bottom: (t - 0) / g * 100 + "%" } }, t)))) : null, e("div", { class: "gids-line-chart__chart-stage" }, e("svg", { viewBox: "0 0 100 100", class: "gids-line-chart__chart-vector", preserveAspectRatio: "none" }, e("defs", null, this.chartData.map(((t, i) => e("linearGradient", { id: `areaGradient-${i}`, x1: "0", y1: "0", x2: "0", y2: "1", key: i }, e("stop", { offset: "0%", class: `gids-line-chart__gradient-start-${i}` }), e("stop", { offset: "100%", class: `gids-line-chart__gradient-end-${i}` }))))), n.map(((t) => {
|
|
52
|
+
const i = 100 - (t - 0) / g * 100;
|
|
53
|
+
return e("line", { x1: "0", y1: i, x2: "100", y2: i, class: "gids-line-chart__grid-line", key: t });
|
|
54
|
+
})), this.chartData.map(((t, i) => {
|
|
55
|
+
if (!Array.isArray(t.data) || t.data.length < 2) return null;
|
|
56
|
+
const r = t.data.map(((x, m) => `${m === 0 ? "M" : "L"} ${m / (b - 1) * 100} ${100 - (x.value - 0) / g * 100}`)).join(" ");
|
|
57
|
+
return e("g", { key: t.label || i }, e("path", { d: `${r} L 100 100 L 0 100 Z`, fill: `url(#areaGradient-${i})`, class: "gids-line-chart__chart-area" }), e("path", { d: r, class: `gids-line-chart__chart-line gids-line-chart__series-line-${i + 1}` }));
|
|
58
|
+
}))))), e("div", { class: "gids-line-chart__x-axis-scale-container" }, p.map(((t, i) => e("span", { class: "gids-line-chart__scale-text", key: i }, t)))), e("span", { class: "gids-line-chart__x-axis-label" }, this.xAxisLabel)), _ ? e("gids-chart-legend", { orientation: "vertical" }, this.chartData.map(((t, i) => e("gids-chart-legend-item", { key: t.label, seriesType: `${i + 1}`, orientation: "vertical" }, t.label)))) : null));
|
|
59
|
+
}
|
|
60
|
+
get hostElement() {
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
static get watchers() {
|
|
64
|
+
return { chartData: [{ chartDataChanged: 0 }], dataPoints: [{ dataPointsChanged: 0 }], legend: [{ legendChanged: 0 }], yAxisVisible: [{ yAxisVisibilityChanged: 0 }] };
|
|
65
|
+
}
|
|
66
|
+
static get style() {
|
|
67
|
+
return ":host{display:block;width:100%;height:100%;box-sizing:border-box}.gids-line-chart{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.gids-line-chart--breakpoint-mobile{max-width:var(--gids-width-xs)}.gids-line-chart__main-container{display:flex;gap:var(--gids-gap-200)}.gids-line-chart__header{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-bottom:var(--gids-padding-vertical-edge-to-element-200)}.gids-line-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-line-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-150);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-line-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-line-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-line-chart__y-axis-scale-value{position:absolute;right:0;transform:translateY(50%)}.gids-line-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-line-chart__chart-vector{display:block;width:100%;height:100%;overflow:visible}.gids-line-chart__grid-line{stroke:var(--gids-color-border-default);stroke-width:0.5;fill:none}.gids-line-chart__chart-area{stroke:none}.gids-line-chart__chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.gids-line-chart__chart-line.gids-line-chart__series-line-1{stroke:var(--gids-color-icon-subtle)}.gids-line-chart__chart-line.gids-line-chart__series-line-2{stroke:var(--gids-color-icon-warning)}.gids-line-chart__chart-line.gids-line-chart__series-line-3{stroke:var(--gids-color-icon-danger)}.gids-line-chart__gradient-start-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:1}.gids-line-chart__gradient-end-0{stop-color:rgba(127, 86, 217, 0.09);stop-opacity:0}.gids-line-chart__gradient-start-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:1}.gids-line-chart__gradient-end-1{stop-color:rgba(127, 86, 217, 0.1);stop-opacity:0}.gids-line-chart__gradient-start-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:1}.gids-line-chart__gradient-end-2{stop-color:rgba(127, 86, 217, 0.12);stop-opacity:0}.gids-line-chart__x-axis-scale-container{display:flex;grid-column:2;grid-row:2;justify-content:space-between;align-items:center;padding-left:var(--gids-container-padding-desktop);padding-top:var(--gids-padding-vertical-edge-to-element-100);box-sizing:border-box}.gids-line-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-line-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-line-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)}";
|
|
68
|
+
}
|
|
69
|
+
}, [0, "gids-line-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] }, void 0, { chartData: [{ chartDataChanged: 0 }], dataPoints: [{ dataPointsChanged: 0 }], legend: [{ legendChanged: 0 }], yAxisVisible: [{ yAxisVisibilityChanged: 0 }] }]);
|
|
70
|
+
function P() {
|
|
71
|
+
typeof customElements < "u" && ["gids-line-chart", "gids-chart-legend", "gids-chart-legend-item"].forEach(((a) => {
|
|
72
|
+
switch (a) {
|
|
73
|
+
case "gids-line-chart":
|
|
74
|
+
customElements.get(d(a)) || customElements.define(d(a), D);
|
|
75
|
+
break;
|
|
76
|
+
case "gids-chart-legend":
|
|
77
|
+
customElements.get(d(a)) || w();
|
|
78
|
+
break;
|
|
79
|
+
case "gids-chart-legend-item":
|
|
80
|
+
customElements.get(d(a)) || k();
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
P();
|
|
85
|
+
export {
|
|
86
|
+
D as d,
|
|
87
|
+
P as g
|
|
88
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as l } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
2
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
3
3
|
const f = ({ size: e, indeterminate: t, value: n }, r) => x("gids-spinner-control", {
|
|
4
4
|
"gids-spinner-control--xs": e === "xs",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { T as t } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { d } from "./p-BnL97lOW-BO0p4EdC.js";
|
|
3
|
+
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const n = ({ appearance: e, size: s }, i) => m("gids-dismiss-button", {
|
|
5
|
+
"gids-dismiss-button--sm": s === "sm",
|
|
6
|
+
// 'gids-dismiss-button--md': size === 'md',
|
|
7
|
+
"gids-dismiss-button--lg": s === "lg",
|
|
8
|
+
"gids-dismiss-button--bold": e === "bold"
|
|
9
|
+
}, i), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
getGidsDismissButtonClassNames: n
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDismissButtonClassNames: c } = b, f = ({ appearance: e = "subtle", size: s = "md", disabled: i = !1, class: a, onPressDismiss: o, label: l, ...r }) => t("button", { class: c({ appearance: e, size: s }, a), onClick: o, disabled: i, "aria-label": l, ...r }, t(d, { name: "cross", appearance: "regular" }));
|
|
13
|
+
export {
|
|
14
|
+
f as r
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { T as s } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
const u = "No Data!", b = (e) => `There is no data series provided for ${e}. Check the data you have passed to draw ${e}.`, A = 100, C = 50, L = "Invalid Progress Value!", k = (e) => `The provided progress value is invalid or exceeds the maximum(${e}%) allowed capacity configuration bounds for this specific layout shape profile.`, m = "Invalid Chart Type!", v = (e) => `You have passed an invalid chart type. Valid chart types are ${e}. Pass one of these types.`, i = (e) => c("gids-button-dock", e), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
getGidsButtonDockClassNames: i
|
|
6
|
+
}, Symbol.toStringTag, { value: "Module" })), r = (e) => c("gids-feedback-block", e), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
getGidsFeedbackBlockClassNames: r
|
|
9
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsButtonDockClassNames: n } = d, l = ({ class: e, primaryChildren: t, secondaryChildren: a, ...o }) => s("div", { class: n(e), ...o }, s("div", { class: "gids-button-dock__secondary-area" }, a), s("div", { class: "gids-button-dock__primary-area" }, t)), { getGidsFeedbackBlockClassNames: T } = _, f = ({ title: e, supportingText: t, image: a, children: o }) => s("div", { class: T() }, s("div", { class: "gids-feedback-block__inner-container" }, a && s("div", { class: "gids-feedback-block__image-container" }, a), s("p", { class: "gids-feedback-block__title" }, s("strong", null, e)), s("div", { class: "gids-feedback-block__supporting-text" }, t), o && s(l, { primaryChildren: o })));
|
|
10
|
+
export {
|
|
11
|
+
b as C,
|
|
12
|
+
A as F,
|
|
13
|
+
C as H,
|
|
14
|
+
u as a,
|
|
15
|
+
v as b,
|
|
16
|
+
m as c,
|
|
17
|
+
k as d,
|
|
18
|
+
L as e,
|
|
19
|
+
f as r
|
|
20
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { T as n } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { l as m } from "./p-DKsrt7dx-ImYLc4xz.js";
|
|
3
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const d = ({ size: e }, t) => c("gids-spinner", {
|
|
5
|
+
"gids-spinner--xs": e === "xs",
|
|
6
|
+
"gids-spinner--sm": e === "sm",
|
|
7
|
+
// 'gids-spinner--md': size === 'md',
|
|
8
|
+
"gids-spinner--lg": e === "lg",
|
|
9
|
+
"gids-spinner--xl": e === "xl",
|
|
10
|
+
"gids-spinner--2xl": e === "2xl"
|
|
11
|
+
}, t), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
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({
|
|
21
|
+
__proto__: null,
|
|
22
|
+
getElementVisibility: x
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsSpinnerClassNames: _ } = u, { getElementVisibility: f } = b, h = ({ label: e, supportingText: t, size: s, indeterminate: i, value: r, max: l, class: o, ...p }) => {
|
|
24
|
+
const { hasLabel: a, hasSupportingText: g } = f({ label: e, supportingText: t });
|
|
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
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
h as r
|
|
29
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as n } from "./p-
|
|
3
|
-
import { l as
|
|
1
|
+
import { P as s, _ as l, u, T as a, L as r } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { d as n } from "./p-BnL97lOW-BO0p4EdC.js";
|
|
3
|
+
import { l as d } from "./p-DKsrt7dx-ImYLc4xz.js";
|
|
4
4
|
const c = (e) => e.type === "hidden", f = (e) => {
|
|
5
5
|
if (!(e instanceof HTMLElement))
|
|
6
6
|
return !1;
|
|
@@ -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(r, { key: "8cfc78682bffd38298aaa5bc8fe63bc996f17586" }, a("slot", { key: "5e5c57234e3e531b0d095597e021ab3d4756173d", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "5d0fc2c8a8716806891347f30ba961db61e1cf91", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "881161160b2e933479c7af0a63846c0f86c7bbfe", name: "leadingAccessory" }), a("input", { key: "f0db6b63f0aa4a1a778743620753184ff0a7086a", ...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: "5bb8549e6aa491b7ebbf56bce66bab6f386f98fe", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "3ef3319efd5512bbd370e314724820a539e342f9", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "22dcea487ee58e5df65a5b88d3f7ce7bcc32f828", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "808723d08c4e8a1533652d6c20fd7f8ff0e98275", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "10c61d22cb2a4fa56dc0de3025cfc07c1268f91e", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(d, { key: "58147d27b92c93a6bf9dde27c394de2868d6225e", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -70,5 +70,5 @@ function h() {
|
|
|
70
70
|
h();
|
|
71
71
|
export {
|
|
72
72
|
o as c,
|
|
73
|
-
h as
|
|
73
|
+
h as r
|
|
74
74
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { T as a } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { l as h } from "./p-DKsrt7dx-ImYLc4xz.js";
|
|
3
|
+
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const v = ({ appearance: t, size: n, width: d, destructive: s, positive: o, loading: l }, i, e) => _("gids-button", {
|
|
5
|
+
"gids-button--primary": t === "primary",
|
|
6
|
+
"gids-button--subtle": t === "subtle",
|
|
7
|
+
"gids-button--xs": n === "xs",
|
|
8
|
+
"gids-button--sm": n === "sm",
|
|
9
|
+
// 'gids-button--md': size === 'md',
|
|
10
|
+
"gids-button--lg": n === "lg",
|
|
11
|
+
"gids-button--full-width": d === "full",
|
|
12
|
+
"gids-button--destructive": s && !o,
|
|
13
|
+
"gids-button--positive": o && !s,
|
|
14
|
+
"gids-button--icon-only": i,
|
|
15
|
+
"gids-button--loading": l
|
|
16
|
+
}, e), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
getGidsButtonClassNames: v
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), b = (t) => t !== void 0 && (!Array.isArray(t) || t.length > 0), { getGidsButtonClassNames: I } = x, z = ({ appearance: t, size: n, destructive: d, positive: s, loading: o, width: l, leadingIcon: i, trailingIcon: e, as: c, disabled: p, class: m, forceIconOnly: y = !1, ...u }, g) => {
|
|
20
|
+
const r = c || "button", f = n === "lg" || n === void 0 ? "md" : n;
|
|
21
|
+
return r !== "button" || "type" in u || (u.type = "button"), a(r, { class: I({ appearance: t, size: n, destructive: d, loading: o, width: l, positive: s }, y || g.length === 0 && b(i) && !b(e), m), disabled: r === "button" ? p : void 0, ...u }, a("span", { class: "gids-button__content" }, i, g), o && a(h, { size: f, indeterminate: !0 }), e);
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
z as o
|
|
25
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { T as e, L as C } from "./p-Ct3Ixgvf-CNP_PKwP.js";
|
|
2
|
+
import { r as I } from "./p-Dehss-X0-Di5vMgvd.js";
|
|
3
|
+
import { d as h } from "./p-BnL97lOW-BO0p4EdC.js";
|
|
4
|
+
import { c as r } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const N = ({ orientation: t }, i) => r("gids-divider", {
|
|
6
|
+
"gids-divider--vertical": t === "vertical"
|
|
7
|
+
}, i), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
getGidsDividerClassNames: N
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), O = ({ layout: t }, i) => r("gids-button-group", {
|
|
11
|
+
"gids-button-group--scroll": t === "scroll"
|
|
12
|
+
}, i), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
|
+
__proto__: null,
|
|
14
|
+
getGidsButtonGroupClassNames: O
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), M = (t) => r("gids-heading", t), B = (t) => t && t.toString() !== "" && t !== "(none)" ? `gids-typography-${t}` : "", D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
getGidsHeadingClassNames: M,
|
|
18
|
+
getGidsHeadingSupportingTextTypographyClass: B
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), L = ({ size: t }, i) => r("gids-edit-button", {
|
|
20
|
+
"gids-edit-button--xs": t === "xs",
|
|
21
|
+
"gids-edit-button--sm": t === "sm",
|
|
22
|
+
// 'gids-button--md': size === 'md',
|
|
23
|
+
"gids-edit-button--lg": t === "lg"
|
|
24
|
+
}, i), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
getGidsEditButtonClassNames: L
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), A = ({ disabled: t, selected: i }, n) => r("gids-list-item", {
|
|
28
|
+
// selected
|
|
29
|
+
"gids-list-item--selected": i,
|
|
30
|
+
// Disable
|
|
31
|
+
"gids-list-item--disabled": t
|
|
32
|
+
}, n), $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
33
|
+
__proto__: null,
|
|
34
|
+
getGidsListItemClassNames: A
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), k = (t) => r("gids-dropdown-item", t), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
36
|
+
__proto__: null,
|
|
37
|
+
getGidsDropdownItemClassNames: k
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" })), q = (t) => r("gids-dropdown-menu", t), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
39
|
+
__proto__: null,
|
|
40
|
+
getGidsDropdownMenuClassNames: q
|
|
41
|
+
}, Symbol.toStringTag, { value: "Module" })), J = ({ type: t }, i) => r("gids-dropdown-menu-group", {
|
|
42
|
+
"gids-dropdown-menu-group--default": t === "default",
|
|
43
|
+
// by default so no need to have this class
|
|
44
|
+
"gids-dropdown-menu-group--no-options": t === "no-options",
|
|
45
|
+
"gids-dropdown-menu-group--loading": t === "loading"
|
|
46
|
+
}, i), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47
|
+
__proto__: null,
|
|
48
|
+
getGidsDropdownMenuGroupClassNames: J
|
|
49
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownMenuGroupClassNames: Q } = K, gt = ({ type: t = "no-options", supportingText: i = "No options", class: n, ...l }, s) => e("div", { class: Q({ type: t }, n), ...l }, t === "loading" ? e(I, { indeterminate: !0, size: "md" }) : null, t === "no-options" ? e("span", null, i) : null, t === "default" && s != null ? s : null), { getGidsButtonGroupClassNames: R } = z, U = ({ layout: t, children: i, class: n }) => e("span", { class: R({ layout: t }, n) }, i), { getGidsHeadingClassNames: V, getGidsHeadingSupportingTextTypographyClass: W } = D, X = ({ heading: t, supportingText: i, level: n = "section", children: l, supportingTextTypography: s, class: d }) => e("div", { class: V(d) }, e("div", { class: "gids-heading__content-container" }, t != null && t !== "" ? typeof t == "string" ? t !== "" ? e("span", { class: n === "section" ? "gids-heading__heading-text-section" : "gids-heading__heading-text-group" }, t) : null : t : null, i != null && i !== "" ? typeof i == "string" ? i !== "" ? e("span", { class: `${n === "section" ? "gids-heading__supporting-text-section" : "gids-heading__supporting-text-group"} ${W(s)}` }, i) : null : i : null), l ? e(U, { layout: "wrap" }, l) : null), { getGidsDropdownMenuClassNames: Y } = F, ct = ({ sectionLabel: t, class: i, ...n }, l) => e("div", { class: Y(i), ...n }, t != null && t !== "" ? e(X, { supportingText: t, supportingTextTypography: "eyebrow-medium" }) : null, l != null ? e("div", { class: "gids-dropdown-menu__children" }, l) : null), { getGidsEditButtonClassNames: Z } = E, tt = ({ disabled: t, children: i, size: n = "md", editButtonType: l = "add", onPressEditButton: s, class: d, ...a }) => e("button", { class: Z({ size: n }, d), ...a, onClick: s, disabled: t }, l === "custom" && i ? e("div", null, i) : l === "add" ? e("div", { class: t ? "gids-edit-button__add gids-edit-button__disabled" : "gids-edit-button__add" }, e(h, { name: "add", appearance: "filled", size: n })) : l === "remove" ? e("div", { class: t ? "gids-edit-button__remove gids-edit-button__disabled" : "gids-edit-button__remove" }, e(h, { appearance: "filled", name: "remove", size: n })) : void 0), { getGidsDividerClassNames: et } = T, it = ({ orientation: t }) => e("hr", { class: et({ orientation: t }) }), { getGidsListItemClassNames: st } = $, nt = ({ id: t, value: i, index: n, defaultSelectedIndex: l, disabled: s, selected: d, editButton: a, onPressEditButton: y, onPressListItem: v, leadingAccessory: b, leadingSupport: g, leadingParagraph: u, trailingContent: p, trailingAccessory: f, trailingSupport: _, trailingParagraph: m, divider: x, role: G = "list-item-option", class: P, ...w }, S) => e("button", { type: "button", id: t, class: st({ selected: d, disabled: s }, P), role: G, "aria-selected": d ? "true" : "false", disabled: s, value: (() => {
|
|
50
|
+
if (typeof i == "string" && i.trim() !== "") return i;
|
|
51
|
+
const c = S;
|
|
52
|
+
return c ? (Array.isArray(c) ? c : [c]).map(((o) => typeof o == "string" || typeof o == "number" ? String(o) : o && typeof o == "object" && "text" in o ? o.text ?? "" : "")).join("").trim() : "";
|
|
53
|
+
})(), onClick: (c) => {
|
|
54
|
+
const o = c.currentTarget;
|
|
55
|
+
if (!o || c.defaultPrevented || o.disabled) return;
|
|
56
|
+
const j = new CustomEvent("onPressListItem", { bubbles: !0, composed: !0, detail: { selectedIndex: n, defaultSelectedIndex: l } });
|
|
57
|
+
v?.(j);
|
|
58
|
+
}, ...w }, e("div", { class: "gids-list-item__main-container" }, a == null || a === "none" || s ? null : e(tt, { size: "md", editButtonType: a, onPressEditButton: y }), b != null ? e("div", { class: s ? "gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__leading-accessory-container" }, b) : null, e("div", { class: "gids-list-item__middle-content-container" }, e("div", { class: "gids-list-item__leading-content-container" }, e(C, null, S != null ? e("span", { class: s ? "gids-list-item__leading-content-label gids-list-item__text-content-disabled" : "gids-list-item__leading-content-label" }, S) : null, e("div", { class: "gids-list-item__leading-support-content" }, g != null ? typeof g == "string" ? e("p", { class: s ? "gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled" : "gids-list-item__leading-content-supporting-text" }, g) : g : null, u != null ? typeof u == "string" ? e("p", { class: s ? "gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled" : "gids-list-item__leading-content-paragraph-text" }, u) : u : null))), e("div", { class: "gids-list-item__trailing-content-container" }, e(C, null, p != null ? typeof p == "string" ? e("span", { class: s ? "gids-list-item__trailing-content-label gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-label" }, p) : p : null, e("div", { class: "gids-list-item__trailing-support-content" }, _ != null ? typeof _ == "string" ? e("p", { class: s ? "gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-supporting-text" }, _) : _ : null, m != null ? typeof m == "string" ? e("p", { class: s ? "gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled" : "gids-list-item__trailing-content-paragraph-text" }, m) : m : null)))), d ? e("div", { class: s ? "gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__trailing-accessory-container" }, e(h, { name: "checkmark", size: "md", appearance: "regular" })) : null, d || f == null ? null : e("div", { class: s ? "gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled" : "gids-list-item__trailing-accessory-container" }, f)), x && !d ? e("div", { class: "gids-list-item__divider" }, e(it, { orientation: "horizontal" })) : null), { getGidsDropdownItemClassNames: lt } = H, ut = ({ id: t, title: i, class: n, selected: l = !1, disabled: s = !1, role: d = "list-item-option", value: a, name: y, onPressDropdownItem: v, index: b, defaultSelectedIndex: g, leadingAccessory: u, divider: p, ...f }) => {
|
|
59
|
+
const _ = lt(typeof n == "string" ? n : void 0);
|
|
60
|
+
return e(nt, { id: t, index: b ?? 0, defaultSelectedIndex: g, selected: l, disabled: s, role: d, value: a, name: y, leadingAccessory: u, class: _, onPressListItem: (m) => {
|
|
61
|
+
if (m.defaultPrevented) return;
|
|
62
|
+
const x = new CustomEvent("onPressDropdownItem", { bubbles: !0, composed: !0, detail: { id: t, title: i, value: a, disabled: s, selectedIndex: b, defaultSelectedIndex: g } });
|
|
63
|
+
v?.(x);
|
|
64
|
+
}, divider: p, ...f }, i);
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
ut as B,
|
|
68
|
+
ct as f,
|
|
69
|
+
gt as u
|
|
70
|
+
};
|