@ganpatiinfo/gids-core-web 13.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 +912 -56
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +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.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +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-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-4lN1OdcA.js → p-jzl-rPxB.js} +1 -1
- package/dist/types/components/html/GidsBasicTableBody/GidsBasicTableBody.d.ts +28 -4
- package/dist/types/components/html/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
- package/dist/types/components/html/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +22 -3
- package/dist/types/components/html/GidsBasicTableRow/GidsBasicTableRow.d.ts +19 -3
- package/dist/types/components/html/GidsBsTable/GidsBsTable.d.ts +26 -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 +12 -9
- package/dist/types/components.d.ts +114 -17
- package/dist-bundled/es/gids-action-bar.js +3 -3
- 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 +7 -7
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +6 -6
- 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 +6 -6
- 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 +121 -88
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +9 -9
- 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 +9 -9
- 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-WzAszFOQ.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-DHsjc3Ns.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-BvWzRJw-.js → p-BYt-9DKT-DByyhIUd.js} +13 -13
- package/dist-bundled/es/{p-C3We7Q8Q-2EoDLj5m.js → p-Bab1qxsC-BMbD0lEy.js} +2 -2
- package/dist-bundled/es/{p-C3w3wdCt-BTH-jYlI.js → p-Bh8qYmAS-DhSpwB20.js} +4 -4
- package/dist-bundled/es/{p-BSbOhfLZ-BdEHhmFM.js → p-BzzDNTlP-BkSyrafk.js} +8 -8
- package/dist-bundled/es/{p-C2O_pGky-CP4PN55D.js → p-CU5JIcEp-CuVpd-eZ.js} +10 -10
- package/dist-bundled/es/{p-Chqeexny-BuJ-PhNi.js → p-C_RW9IFo-DNQqJS8t.js} +5 -5
- package/dist-bundled/es/{p-ub0GuVHb-C9vrhXyF.js → p-CatvDz2b-C-Hlv2Xb.js} +9 -9
- package/dist-bundled/es/{p-BVAtja26-C16IjShX.js → p-CnVmK0dH-CbmnN-RR.js} +6 -6
- package/dist-bundled/es/{p-_SIWct9h-jMYFZ-VO.js → p-D5DRatg0-DtQL-DQg.js} +2 -2
- package/dist-bundled/es/{p-6APCjBEI-BREg63Xr.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-DcUxD9TI.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-DUojHltk-BQ0ryfLD.js → p-_HwuS8vK-C0w4T5rV.js} +2 -2
- package/dist-bundled/es/{p-4lN1OdcA-xYP8gbDc.js → p-jzl-rPxB-CC735zJp.js} +7 -7
- 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 +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +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 +2 -2
- 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-_SIWct9h.js +0 -1
- package/dist/p-a3JfEYJp.js +0 -1
- package/dist/types/components/html/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -5
- package/dist-bundled/es/p-C56G7JRy-BCGZG2-3.js +0 -88
- package/dist-bundled/es/p-DO0MyFf4-Ddg5sVMx.js +0 -115
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +0 -1128
|
@@ -1,64 +1,97 @@
|
|
|
1
|
-
import { L as
|
|
2
|
-
import { o as
|
|
3
|
-
import { d as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { L as q, u as M, D as d, P as E, F as K, q as I } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { o as $ } from "./p-C2POfZhu-DzG_JxV6.js";
|
|
3
|
+
import { d as S } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
|
+
import { o as J } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
5
|
+
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
const F = (e) => !!(e?.buttonLabel && e.buttonLabel !== "" || e?.leadingIconName && e.leadingIconName !== "" || e?.trailingIconName && e.trailingIconName !== ""), Q = ({ cellActionButton: e, neededIconType: t = "leading" }) => t === "trailing" ? {
|
|
7
|
+
cellIconName: e?.trailingIconName,
|
|
8
|
+
cellIconAppearance: e?.trailingIconAppearance,
|
|
9
|
+
cellIconSize: e?.trailingIconSize
|
|
10
|
+
} : {
|
|
11
|
+
cellIconName: e?.leadingIconName,
|
|
12
|
+
cellIconAppearance: e?.leadingIconAppearance,
|
|
13
|
+
cellIconSize: e?.leadingIconSize
|
|
14
|
+
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15
|
+
__proto__: null,
|
|
16
|
+
getTableCellBtnIcon: Q,
|
|
17
|
+
isTableCellActionButtonVisible: F
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), W = ({ borderSides: e, borderRadiusSides: t, appearance: a, textAlignment: l, width: r }, i) => B("gids-table-cell", {
|
|
19
|
+
"gids-table-cell--border-side-top": e?.includes("top"),
|
|
20
|
+
"gids-table-cell--border-side-bottom": e?.includes("bottom"),
|
|
21
|
+
"gids-table-cell--border-side-left": e?.includes("left"),
|
|
22
|
+
"gids-table-cell--border-side-right": e?.includes("right"),
|
|
10
23
|
// Border radius sides
|
|
11
|
-
"gids-
|
|
12
|
-
"gids-
|
|
13
|
-
"gids-
|
|
14
|
-
"gids-
|
|
24
|
+
"gids-table-cell--border-radius-side-top-left": t?.includes("top-left"),
|
|
25
|
+
"gids-table-cell--border-radius-side-bottom-left": t?.includes("bottom-left"),
|
|
26
|
+
"gids-table-cell--border-radius-side-top-right": t?.includes("top-right"),
|
|
27
|
+
"gids-table-cell--border-radius-side-bottom-right": t?.includes("bottom-right"),
|
|
15
28
|
// Background colors
|
|
16
|
-
"gids-
|
|
17
|
-
"gids-
|
|
18
|
-
"gids-
|
|
19
|
-
"gids-
|
|
20
|
-
"gids-
|
|
21
|
-
"gids-
|
|
22
|
-
"gids-
|
|
29
|
+
"gids-table-cell--appearance-default": a === "default",
|
|
30
|
+
"gids-table-cell--appearance-primal": a === "primal",
|
|
31
|
+
"gids-table-cell--appearance-neutral-default": a === "neutral-default",
|
|
32
|
+
"gids-table-cell--appearance-info": a === "info",
|
|
33
|
+
"gids-table-cell--appearance-warning": a === "warning",
|
|
34
|
+
"gids-table-cell--appearance-positive": a === "positive",
|
|
35
|
+
"gids-table-cell--appearance-danger": a === "danger",
|
|
23
36
|
// Alignments
|
|
24
|
-
"gids-
|
|
25
|
-
"gids-
|
|
26
|
-
"gids-
|
|
37
|
+
"gids-table-cell--text-alignment-left": l === "left",
|
|
38
|
+
"gids-table-cell--text-alignment-right": l === "right",
|
|
39
|
+
"gids-table-cell--text-alignment-center": l === "center",
|
|
27
40
|
// Widths
|
|
28
|
-
// 'gids-
|
|
29
|
-
"gids-
|
|
30
|
-
},
|
|
41
|
+
// 'gids-table-cell--width-full': width === 'full', // Width set by default so not needed
|
|
42
|
+
"gids-table-cell--width-intrinsic": r === "intrinsic"
|
|
43
|
+
}, i), X = (e) => e && e.toString() !== "" ? `gids-typography-${e}` : "gids-typography-label-medium", Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
44
|
__proto__: null,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
+
getGidsTableCellClassNames: W,
|
|
46
|
+
getGidsTableCellLabelTypographyClass: X
|
|
47
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = ({ width: e }, t) => B("gids-basic-table-row", {
|
|
35
48
|
// Widths
|
|
36
49
|
// 'gids-basic-table-row--width-full': width === 'full', // Width set by default so not needed
|
|
37
50
|
"gids-basic-table-row--width-intrinsic": e === "intrinsic"
|
|
38
|
-
},
|
|
51
|
+
}, t), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
39
52
|
__proto__: null,
|
|
40
|
-
getGidsBasicTableRowClassNames:
|
|
41
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
53
|
+
getGidsBasicTableRowClassNames: Z
|
|
54
|
+
}, Symbol.toStringTag, { value: "Module" })), te = ({ width: e }, t) => B("gids-basic-table-header", {
|
|
42
55
|
// Widths
|
|
43
56
|
// 'gids-basic-table-header--width-full': width === 'full', // Width set by default so not needed
|
|
44
57
|
"gids-basic-table-header--width-intrinsic": e === "intrinsic"
|
|
45
|
-
},
|
|
58
|
+
}, t), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46
59
|
__proto__: null,
|
|
47
|
-
getGidsBasicTableHeaderClassNames:
|
|
48
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
60
|
+
getGidsBasicTableHeaderClassNames: te
|
|
61
|
+
}, Symbol.toStringTag, { value: "Module" })), le = ({ width: e }, t) => B("gids-md-table", {
|
|
49
62
|
// Widths
|
|
50
63
|
// 'gids-md-table--width-full': width === 'full', // Width set by default so not needed
|
|
51
64
|
"gids-md-table--width-intrinsic": e === "intrinsic"
|
|
52
|
-
},
|
|
65
|
+
}, t), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
53
66
|
__proto__: null,
|
|
54
|
-
getGidsMdTableClassNames:
|
|
55
|
-
}, Symbol.toStringTag, { value: "Module" })), {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
getGidsMdTableClassNames: le
|
|
68
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTableCellClassNames: re, getGidsTableCellLabelTypographyClass: de } = Y, { isTableCellActionButtonVisible: ne, getTableCellBtnIcon: se } = U, v = ({ id: e, uniqueKey: t, extraData: a, label: l, cellDataType: r = "text", displayTags: i = [], width: n = "full", appearance: p = "none", borderSides: g = [], borderRadiusSides: o = [], textAlignment: h = "center", labelTypography: c = "label-medium", isHeaderCell: b = !1, cellPrimaryActionButtons: m = [], cellSecondaryActionButtons: z = [], onClickCellActionBtn: f, class: R, ...L }) => {
|
|
69
|
+
function C({ cellActionBtn: s, neededIconType: y = "leading" }) {
|
|
70
|
+
const T = se({ cellActionButton: s, neededIconType: y });
|
|
71
|
+
return T?.cellIconName && "" + T.cellIconName != "" ? d(S, { name: T.cellIconName, size: T.cellIconSize, appearance: T.cellIconAppearance }) : void 0;
|
|
72
|
+
}
|
|
73
|
+
function _(s) {
|
|
74
|
+
const y = s === "primary" ? m : z;
|
|
75
|
+
if (y && !(y.length <= 0)) return d("div", { class: s === "primary" ? "gids-table-cell__primary-action-btn-container" : "gids-table-cell__secondary-action-btn-container" }, y.map(((T, w) => {
|
|
76
|
+
const H = s === "primary" ? y.length - w - 1 : w, A = y[H];
|
|
77
|
+
return ne(A) ? (function({ cellActionBtn: u, actionBtnIndex: P, actionBtnPosition: k }) {
|
|
78
|
+
return d(J, { as: "button", appearance: u?.appearance ?? "default", size: u?.size ?? "md", disabled: u?.disabled, destructive: u?.destructive, positive: u?.positive, loading: u?.loading, width: u?.width ?? "intrinsic", type: "button", leadingIcon: C({ cellActionBtn: u, neededIconType: "leading" }), trailingIcon: C({ cellActionBtn: u, neededIconType: "trailing" }), onClick: (O) => (function({ event: G, actionBtnIndex: x, actionBtnPosition: j }) {
|
|
79
|
+
f && f({ originalEvent: G, details: { appearance: p, cellDataType: r, displayTags: i, label: l, id: e, extraData: a, isHeaderCell: b, uniqueKey: t, actionBtnNumber: "action-btn-" + (x + 1), actionBtnIndex: x, actionBtnPosition: j ?? "secondary" } });
|
|
80
|
+
})({ event: O, actionBtnIndex: P, actionBtnPosition: k }) }, u?.buttonLabel ?? "");
|
|
81
|
+
})({ cellActionBtn: A, actionBtnIndex: H, actionBtnPosition: s }) : void 0;
|
|
82
|
+
})));
|
|
83
|
+
}
|
|
84
|
+
return d(b ? "th" : "td", { ...L, class: re({ borderSides: g, borderRadiusSides: o, appearance: p, textAlignment: h, width: n }, R), id: e, "unique-key": t, "extra-data": JSON.stringify(a) }, _("primary"), r === "text" && l && l !== "" ? d("span", { class: "" + de(c) }, l) : void 0, r === "display-tag" && i && i.length > 0 ? d("div", { class: "gids-table-cell__display-tags-container" }, i.map(((s) => d($, { label: s?.label ?? "", appearance: s?.displayTagAppearance ?? "subtle", size: s?.displayTagSize ?? "xs", icon: s?.displayTagIcon ? d(S, { name: s.displayTagIcon, size: s?.displayTagSize ?? "xs", appearance: s?.displayTagIconAppearance ?? "regular" }) : void 0, color: s?.displayTagColor ?? "accent-5" })))) : void 0, _("secondary"));
|
|
85
|
+
}, { getGidsBasicTableRowClassNames: oe } = ee, D = ({ width: e = "full", layout: t = "horizontal", rows: a = [], isHeaderRow: l = !1, cellPrimaryActionButtons: r, cellSecondaryActionButtons: i, onClickRowActionBtn: n, class: p, ...g }) => {
|
|
86
|
+
const o = oe({ width: e }, p);
|
|
87
|
+
function h({ event: c, cellIndex: b }) {
|
|
88
|
+
n && n({ ...c, details: { ...c.details, cellIndex: b } });
|
|
89
|
+
}
|
|
90
|
+
return t === "vertical" ? d(K, null, a.map(((c, b) => d("tr", { ...g, key: "row-v-" + (b + 1), class: o }, d(v, { ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: r, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))))) : d("tr", { ...g, class: o }, a.map(((c, b) => d(v, { key: "row-h-" + (b + 1), ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: r, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))));
|
|
91
|
+
}, { getGidsBasicTableHeaderClassNames: ce } = ae, be = ({ width: e = "full", headerCells: t = [], appearance: a = "none", labelTypography: l = "label-medium", textAlignment: r = "center", layout: i = "horizontal", cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickHeaderActionBtn: g, class: o, ...h }) => {
|
|
92
|
+
const c = ce({ width: e }, o);
|
|
93
|
+
return d("thead", { ...h, class: c }, d(D, { rows: t.map(((b) => ({ appearance: a, labelTypography: l, textAlignment: r, ...b }))), width: e, layout: i, isHeaderRow: !0, cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickRowActionBtn: g }));
|
|
94
|
+
}, { getGidsMdTableClassNames: pe } = ie, N = q(class extends M {
|
|
62
95
|
constructor(e) {
|
|
63
96
|
super(), e !== !1 && this.__registerHost(), this.isTopHeaderVisible = !1, this.isSideHeaderVisible = !1, this.width = "full", this.topHeaderAppearance = "none", this.sideHeaderAppearance = "none", this.rowAppearance = "none", this.tableBorders = "none", this.tableBorderRadius = [], this.topHeaderLabelTypography = "eyebrow-small", this.sideHeaderLabelTypography = "label-small", this.rowLabelTypography = "label-small", this.topHeaderTextAlignment = "left", this.sideHeaderTextAlignment = "left", this.rowTextAlignment = "left", this.topHeaderCells = [], this.tableBody = [], this.constructedTableBodyData = [];
|
|
64
97
|
}
|
|
@@ -84,51 +117,51 @@ const D = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment:
|
|
|
84
117
|
this.makeTableBodyData();
|
|
85
118
|
}
|
|
86
119
|
makeTableBodyData() {
|
|
87
|
-
const e = this.isSideHeaderVisible,
|
|
88
|
-
|
|
89
|
-
let
|
|
90
|
-
const
|
|
91
|
-
if (e &&
|
|
92
|
-
const c = this.getSideHeaderBorderSides({ _tableBodyData:
|
|
93
|
-
|
|
120
|
+
const e = this.isSideHeaderVisible, t = this?.tableBody ?? [], a = [];
|
|
121
|
+
t.map(((l, r) => {
|
|
122
|
+
let i = [];
|
|
123
|
+
const n = l.heading, p = l.id, g = l.uniqueKey, o = l.extraData, h = l?.items ?? [];
|
|
124
|
+
if (e && n && n !== "") {
|
|
125
|
+
const c = this.getSideHeaderBorderSides({ _tableBodyData: t, _itemsArr: h, indexI: r });
|
|
126
|
+
i = [{ id: p, uniqueKey: g, extraData: o, label: n, appearance: this.sideHeaderAppearance, labelTypography: this.sideHeaderLabelTypography, textAlignment: this.sideHeaderTextAlignment, isHeader: !0, borderSides: c }];
|
|
94
127
|
}
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
})),
|
|
99
|
-
})), this.constructedTableBodyData =
|
|
100
|
-
}
|
|
101
|
-
getRowBorderSides({ _tableBodyData: e, _itemsArr:
|
|
102
|
-
const
|
|
103
|
-
let
|
|
104
|
-
return (
|
|
105
|
-
}
|
|
106
|
-
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr:
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
return (
|
|
128
|
+
h.map(((c, b) => {
|
|
129
|
+
const m = this.getRowBorderSides({ _tableBodyData: t, _itemsArr: h, indexI: r, indexJ: b });
|
|
130
|
+
i.push({ ...c, appearance: this.rowAppearance, labelTypography: this.rowLabelTypography, textAlignment: this.rowTextAlignment, isHeader: !1, borderSides: m });
|
|
131
|
+
})), a.push({ heading: n, id: p, uniqueKey: g, extraData: o, items: i });
|
|
132
|
+
})), this.constructedTableBodyData = a;
|
|
133
|
+
}
|
|
134
|
+
getRowBorderSides({ _tableBodyData: e, _itemsArr: t, indexI: a, indexJ: l }) {
|
|
135
|
+
const r = this.applyTableInternalBorders(), i = this.applyTableAllBorders();
|
|
136
|
+
let n = [];
|
|
137
|
+
return (r || i) && (l < t.length && a + 1 < e.length && (n = ["bottom"]), l + 1 < t.length && (n = [...n, "right"])), n;
|
|
138
|
+
}
|
|
139
|
+
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr: t, indexI: a }) {
|
|
140
|
+
const l = this.applyTableInternalBorders(), r = this.applyTableAllBorders();
|
|
141
|
+
let i = [];
|
|
142
|
+
return (l || r) && (a + 1 < e.length && (i = ["bottom"]), t.length > 0 && (i = [...i, "right"])), i;
|
|
110
143
|
}
|
|
111
144
|
getTableClasses() {
|
|
112
145
|
const e = this.width === "full" ? "gids-md-table__main-table gids-md-table__main-table-width-full" : "gids-md-table__main-table gids-md-table__main-table-width-intrinsic";
|
|
113
|
-
let
|
|
114
|
-
this.applyTableOuterBorders() && (
|
|
115
|
-
const
|
|
116
|
-
return
|
|
146
|
+
let t = e;
|
|
147
|
+
this.applyTableOuterBorders() && (t = e + " gids-md-table__outer-borders");
|
|
148
|
+
const a = this.addBorderRadiusDirectlyToTable();
|
|
149
|
+
return a && a !== "" ? `${t} ${a}` : "" + t;
|
|
117
150
|
}
|
|
118
151
|
addBorderRadiusDirectlyToTable() {
|
|
119
152
|
let e = "";
|
|
120
|
-
const
|
|
121
|
-
return
|
|
153
|
+
const t = this?.tableBorderRadius ?? [];
|
|
154
|
+
return t.includes("top-left") && (e = "gids-md-table__radius-top-left"), t.includes("bottom-left") && (e += " gids-md-table__radius-bottom-left"), t.includes("top-right") && (e += " gids-md-table__radius-top-right"), t.includes("bottom-right") && (e += " gids-md-table__radius-bottom-right"), e;
|
|
122
155
|
}
|
|
123
156
|
getTopHeaderCells() {
|
|
124
|
-
const e = this.isSideHeaderVisible,
|
|
125
|
-
let
|
|
126
|
-
e === !1 &&
|
|
127
|
-
const
|
|
128
|
-
return
|
|
129
|
-
let
|
|
130
|
-
(
|
|
131
|
-
})),
|
|
157
|
+
const e = this.isSideHeaderVisible, t = this?.topHeaderCells ?? [];
|
|
158
|
+
let a = [...t];
|
|
159
|
+
e === !1 && t.length > 0 ? a.splice(0, 1) : a = [...t];
|
|
160
|
+
const l = this.applyTableInternalBorders(), r = this.applyTableAllBorders(), i = this.applyTableTopHeaderBorders(), n = [];
|
|
161
|
+
return a.map(((p, g) => {
|
|
162
|
+
let o = [];
|
|
163
|
+
(l || r || i) && (o = ["bottom"], g + 1 < a.length && (o = [...o, "right"])), n.push({ ...p, borderSides: o });
|
|
164
|
+
})), n;
|
|
132
165
|
}
|
|
133
166
|
applyTableOuterBorders() {
|
|
134
167
|
const e = this.tableBorders;
|
|
@@ -144,8 +177,8 @@ const D = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment:
|
|
|
144
177
|
return this.tableBorders === "top-header-only";
|
|
145
178
|
}
|
|
146
179
|
render() {
|
|
147
|
-
const e =
|
|
148
|
-
return
|
|
180
|
+
const e = pe({ width: this.width }), t = this.isTopHeaderVisible, a = this.getTopHeaderCells(), l = this?.constructedTableBodyData ?? [];
|
|
181
|
+
return d(E, { key: "d4134171e635f40dbd8a5e4c86ada98272a31b1a", class: e }, d("table", { key: "47f73e6e21247ebb3fbf04cb32b3b7c430d649d1", class: this.getTableClasses() }, t ? d(be, { appearance: this.topHeaderAppearance, labelTypography: this.topHeaderLabelTypography, textAlignment: this.topHeaderTextAlignment, headerCells: a, width: this.width }) : void 0, d("tbody", { key: "30c4a5855c7ea01bc869d3bbbe87910793120e7e" }, l.length > 0 ? l.map(((r) => d(D, { layout: "horizontal", rows: r?.items ?? [], width: this.width }))) : void 0)));
|
|
149
182
|
}
|
|
150
183
|
get hostElement() {
|
|
151
184
|
return this;
|
|
@@ -157,14 +190,14 @@ const D = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment:
|
|
|
157
190
|
return ".gids-md-table{display:flex;flex-direction:column;width:100%}.gids-md-table__main-table{border-collapse:separate;border-spacing:0;overflow:hidden;table-layout:fixed}.gids-md-table__main-table-width-full{width:100%}.gids-md-table__main-table-width-intrinsic{width:max-content}.gids-md-table--width-intrinsic{width:max-content}.gids-md-table__outer-borders{border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-md-table__radius-top-left{border-top-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-left{border-bottom-left-radius:var(--gids-border-radius-md)}.gids-md-table__radius-top-right{border-top-right-radius:var(--gids-border-radius-md)}.gids-md-table__radius-bottom-right{border-bottom-right-radius:var(--gids-border-radius-md)}";
|
|
158
191
|
}
|
|
159
192
|
}, [0, "gids-md-table", { isTopHeaderVisible: [4, "is-top-header-visible"], isSideHeaderVisible: [4, "is-side-header-visible"], width: [1], topHeaderAppearance: [1, "top-header-appearance"], sideHeaderAppearance: [1, "side-header-appearance"], rowAppearance: [1, "row-appearance"], tableBorders: [1, "table-borders"], tableBorderRadius: [16], topHeaderLabelTypography: [1, "top-header-label-typography"], sideHeaderLabelTypography: [1, "side-header-label-typography"], rowLabelTypography: [1, "row-label-typography"], topHeaderTextAlignment: [1, "top-header-text-alignment"], sideHeaderTextAlignment: [1, "side-header-text-alignment"], rowTextAlignment: [1, "row-text-alignment"], topHeaderCells: [16], tableBody: [16], constructedTableBodyData: [32] }, void 0, { isTopHeaderVisible: [{ handleTopHeaderVisibilityChange: 0 }], isSideHeaderVisible: [{ handleSideHeaderVisibilityChange: 0 }, { handleTableBodyChange: 0 }], tableBorders: [{ handleTableBordersChange: 0 }, { handleTableBodyChange: 0 }], tableBorderRadius: [{ handleTableBorderRadiusChange: 0 }, { handleTableBodyChange: 0 }], topHeaderCells: [{ handleTopHeaderCellsChange: 0 }], tableBody: [{ handleTableBodyChange: 0 }] }]);
|
|
160
|
-
function
|
|
193
|
+
function V() {
|
|
161
194
|
typeof customElements < "u" && ["gids-md-table"].forEach(((e) => {
|
|
162
|
-
e === "gids-md-table" && (customElements.get(
|
|
195
|
+
e === "gids-md-table" && (customElements.get(I(e)) || customElements.define(I(e), N));
|
|
163
196
|
}));
|
|
164
197
|
}
|
|
165
|
-
|
|
166
|
-
const
|
|
198
|
+
V();
|
|
199
|
+
const Te = N, Be = V;
|
|
167
200
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
201
|
+
Te as GidsMdTable,
|
|
202
|
+
Be as defineCustomElement
|
|
170
203
|
};
|
|
@@ -20,7 +20,7 @@ const c = (t) => t === "top" || t === "top-bottom", h = (t) => t === "bottom" ||
|
|
|
20
20
|
this._textArea.scrollTop + this._textArea.offsetHeight >= this._textArea.scrollHeight ? this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0") : t !== 0 ? t > 0 && (f(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-before-opacity", "" + Math.min(t / 20, 1)), s(this.shadowLocation) && this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "" + Math.min((this._textArea.scrollHeight - (this._textArea.scrollTop + this._textArea.offsetHeight)) / 20, 1))) : this._el.style.setProperty("--gidsOverflowContainer-after-opacity", "0");
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return e("div", { key: "
|
|
23
|
+
return e("div", { key: "3068af04cc5f789a83c7770d726fe8c6770d56d2", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "b5aed91bba9c7710e3b11082b39c762300973245" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
@@ -187,7 +187,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
189
|
const t = this._allowedComponentQueue[0]?.position || "bottom-center";
|
|
190
|
-
return o(w, { key: "
|
|
190
|
+
return o(w, { key: "e759be1283aa989f140c46020ec3c66c749284ae" }, o("slot", { key: "89cbe6bafa62964fb116636371f08f0b60828dc7" }), this._isRoot() ? o("div", { class: G({ position: t }) }, [...this._allowedComponentQueue].reverse().map(((e) => this._renderComponent(e)))) : null);
|
|
191
191
|
}
|
|
192
192
|
get _el() {
|
|
193
193
|
return this;
|
|
@@ -4,8 +4,8 @@ import { a as F } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
|
4
4
|
import { r as L } from "./p-UxDcM-C5-BJO4X0jM.js";
|
|
5
5
|
import { o as O } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
6
6
|
import { g as k, d as j } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
7
|
-
import { h as z } from "./p-
|
|
8
|
-
import { r as E } from "./p-
|
|
7
|
+
import { h as z } from "./p-CatvDz2b-C-Hlv2Xb.js";
|
|
8
|
+
import { r as E } from "./p-CnVmK0dH-CbmnN-RR.js";
|
|
9
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
10
10
|
const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e, meterRules: t = [], textMinLength: s = 0 }) => {
|
|
11
11
|
if (!e || e === "")
|
|
@@ -83,7 +83,7 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
83
83
|
getDefaultRulesAndRequirementsForMeters: m,
|
|
84
84
|
getMeterRulesFromRequirements: R,
|
|
85
85
|
minLengthRuleCanBeApplied: o
|
|
86
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
86
|
+
}, Symbol.toStringTag, { value: "Module" })), D = (e) => {
|
|
87
87
|
switch (e) {
|
|
88
88
|
case "error":
|
|
89
89
|
return "danger";
|
|
@@ -96,10 +96,10 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
96
96
|
default:
|
|
97
97
|
return "globe";
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
100
|
__proto__: null,
|
|
101
|
-
getRequirementsMeterLabelLeadingIcon:
|
|
102
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
101
|
+
getRequirementsMeterLabelLeadingIcon: D
|
|
102
|
+
}, Symbol.toStringTag, { value: "Module" })), V = (e) => {
|
|
103
103
|
switch (e) {
|
|
104
104
|
case "error":
|
|
105
105
|
return "error";
|
|
@@ -110,7 +110,7 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
110
110
|
}
|
|
111
111
|
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
112
|
__proto__: null,
|
|
113
|
-
inputToGidsFieldStatusForPassword:
|
|
113
|
+
inputToGidsFieldStatusForPassword: V
|
|
114
114
|
}, Symbol.toStringTag, { value: "Module" })), H = (e) => g("gids-strength-meter", e), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
115
|
__proto__: null,
|
|
116
116
|
getGidsStrengthMeterClassNames: H
|
|
@@ -137,7 +137,7 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
137
137
|
return s[d] === "include-min-length" ? o({ requirementRule: "include-min-length", textMinLength: t }) ? a(d, u, w) : null : a(d, u, w);
|
|
138
138
|
}));
|
|
139
139
|
})()) : null;
|
|
140
|
-
}, { getGidsRequirementsMeterLabelClassNames: ne } = J, { getRequirementsMeterLabelLeadingIcon: le } =
|
|
140
|
+
}, { getGidsRequirementsMeterLabelClassNames: ne } = J, { getRequirementsMeterLabelLeadingIcon: le } = N, ae = (e) => {
|
|
141
141
|
const { label: t, status: s = "default", leadingIconVisible: n = !0, class: a } = e, r = le(s);
|
|
142
142
|
return i("div", { class: ne({ status: s }, a) }, n && s && r ? i(j, { name: r, size: "sm", appearance: "filled" }) : null, t && t !== "" ? i("span", null, t) : null);
|
|
143
143
|
}, { checkRequirementRuleSatisfied: ue } = $, { getGidsRequirementsMeterClassNames: de } = Q, oe = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
|
|
@@ -191,7 +191,7 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
191
191
|
#e;
|
|
192
192
|
render() {
|
|
193
193
|
const { id: e, ...t } = this.inputProps ?? {}, s = e ?? this.#t, n = this.showClearButton && this.value !== void 0 && this.value.length > 0, a = this.showRevealPasswordButton, r = { ...t }, l = r?.placeholder !== void 0 && r.placeholder !== null && r.placeholder != "" ? r.placeholder : "Enter password", u = this.isPasswordRevealed, _ = this.meterRules, c = this.textMinLength !== void 0 ? this.textMinLength : 8;
|
|
194
|
-
return i(T, { key: "
|
|
194
|
+
return i(T, { key: "b3ca75e255c3c52dd2b06a53d4f4ad97a2eabe40" }, i("gids-field", { key: "92aeaf60d20a989ab5f3d3e0b2578dadabbe6f11", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(F, { key: "419e3469a5bc10d4b98b07d7a3cb1297d904a7c6", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: s }, this.label), i("gids-input", { key: "07e593d86d9c9f45ec51b86d9e401085dc7ad42c", ref: (d) => this.#e = d, appearance: "default", status: this.status, loading: this.loading, value: this.value, defaultValue: this.defaultValue, name: this.name, required: this.required, disabled: this.disabled, readOnly: this.readOnly, leadingLabel: void 0, trailingLabel: void 0, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur, onInput: this._handleInput, inputProps: { ...r, placeholder: l, type: u ? "text" : "password", id: s, maxLength: this.maxLength } }, i("slot", { key: "edef3da6bb9e90730b5e8c016fe3d568c0780794", name: "leadingIcon" }), i("slot", { key: "ae4a8f0dcd6c6fae7c2dbd6834d82564dc369b31", name: "leadingAccessory" }), i("div", { key: "ad2b08b5fdd053109cfe2e3519fa7f724a908b7d", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(L, { key: "0222e71ffc2e2678cf881638e51418fc2b1bb2eb", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(O, { key: "ecd8dc448c9bca208454ed61a03a4caba33ebc4d", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "b3da444b02597769ebd3b0e28f3988a912c0bf60", class: "gids-password-field__meters-container" }, i(ie, { key: "91b7b8b41b681d94657f9f4fe3aa1ee04618eda1", meterRules: _, text: this.value, textMinLength: c }), i(oe, { key: "30b809ba457fc0a666f749386a8654b29b0a65ce", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
|
|
195
195
|
}
|
|
196
196
|
get _el() {
|
|
197
197
|
return this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, c as t } from "./p-
|
|
2
|
-
const
|
|
1
|
+
import { n as e, c as t } from "./p-Bab1qxsC-BMbD0lEy.js";
|
|
2
|
+
const s = e, a = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsPieChart,
|
|
5
|
+
a as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as v, u as p, D as a, F as f, q as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as E } from "./p-BBszCFSA-BN0-eWJX.js";
|
|
3
3
|
import { o as b } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
4
4
|
const h = v(class extends p {
|
|
5
5
|
constructor(e) {
|
|
@@ -64,7 +64,7 @@ const h = v(class extends p {
|
|
|
64
64
|
e && e.removeEventListener("click", this.handleToggleEvent), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleKeyDown);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return a(f, { key: "
|
|
67
|
+
return a(f, { key: "7072ac10af27e4e27d9d8fd0a8771403f9314e6e" }, a("slot", { key: "917ac8886b35e170cfa3ba32092602ed941d3bfc", name: "anchor" }), a("div", { key: "0285fe8576af9adb85d1380be12dc2bda8fe88db", id: "popover", part: "popover", role: "dialog", "aria-modal": "true", tabindex: "-1" }, a("span", { key: "8e03c6bdfcf4168768398892301a3185160db725", id: "arrow" }), a("div", { key: "7fe7510c89274cb9aedd44af3f2fa0ddf18acd4a" }, a("slot", { key: "facbdafa78fd2076d2cdb90d55714120bd9c33ba" }))));
|
|
68
68
|
}
|
|
69
69
|
disconnectedCallback() {
|
|
70
70
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -4,7 +4,7 @@ import { c as n } from "./clsx-OuTLNxxd.js";
|
|
|
4
4
|
const d = (s) => n("gids-scrim", s), m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
6
6
|
getGidsScrimClassNames: d
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: a } = m,
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: a } = m, i = o(class extends c {
|
|
8
8
|
constructor(s) {
|
|
9
9
|
super(), s !== !1 && this.__registerHost(), this.__attachShadow(), this.activeClasses = "";
|
|
10
10
|
}
|
|
@@ -16,7 +16,7 @@ const d = (s) => n("gids-scrim", s), m = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
16
16
|
s !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(s), this.activeClasses = a(this.extraClasses);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return e("div", { key: "
|
|
19
|
+
return e("div", { key: "df983fb2a1a7fb80da42f24d15156de78f44774c", class: this.activeClasses, part: "root" }, e("slot", { key: "6f8a76773dfe9f905ca63c8bf22ae7427b7a47bb" }));
|
|
20
20
|
}
|
|
21
21
|
get _el() {
|
|
22
22
|
return this;
|
|
@@ -28,14 +28,14 @@ const d = (s) => n("gids-scrim", s), m = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
28
28
|
return ".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}";
|
|
29
29
|
}
|
|
30
30
|
}, [257, "gids-scrim", { extraClasses: [513, "extra-classes"], activeClasses: [32] }, void 0, { extraClasses: [{ handleExtraClassesChange: 0 }] }]);
|
|
31
|
-
function
|
|
31
|
+
function r() {
|
|
32
32
|
typeof customElements < "u" && ["gids-scrim"].forEach(((s) => {
|
|
33
|
-
s === "gids-scrim" && (customElements.get(t(s)) || customElements.define(t(s),
|
|
33
|
+
s === "gids-scrim" && (customElements.get(t(s)) || customElements.define(t(s), i));
|
|
34
34
|
}));
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
r();
|
|
37
|
+
const g = i, C = r;
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
g as GidsScrim,
|
|
40
40
|
C as defineCustomElement
|
|
41
41
|
};
|
|
@@ -75,7 +75,7 @@ const y = ({ appearance: e, type: a, outline: i }, t) => g("gids-badge", {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
const e = B({ appearance: this.appearance, width: this.width, active: this.active }), a = this.hasTrailingIcon, i = this.badgeVisible, t = this.appearance === "primary" && this.active ? "inverse" : this.badgeAppearance ?? "information", d = this.label;
|
|
78
|
-
return r(f, { key: "
|
|
78
|
+
return r(f, { key: "11e43e7cf363fc49f4282a0d1d201c5440472145", class: e, onClick: this.handleHostClick }, this.hasLeadingIcon ? r("slot", { name: "leadingIconTabItem" }) : void 0, d && d !== "" ? r("span", { class: "gids-tab-item__label" }, d && d !== "" ? d : void 0, i ? r(S, { appearance: t, type: this.badgeType, count: this.badgeCount }) : void 0) : void 0, a ? r("slot", { name: "trailingIconTabItem" }) : void 0);
|
|
79
79
|
}
|
|
80
80
|
get hostElement() {
|
|
81
81
|
return this;
|
|
@@ -38,7 +38,7 @@ const o = ({ width: e, appearance: t }, d) => l("gids-tab", {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
const e = b({ width: this.width, appearance: this.appearance });
|
|
41
|
-
return a(c, { key: "
|
|
41
|
+
return a(c, { key: "9afa708bdbaa5920b655ee7012e14ea914c19dca", class: e }, a("slot", { key: "a5b32607d074a16c957c3f7928055e8dff7dd447" }));
|
|
42
42
|
}
|
|
43
43
|
get hostElement() {
|
|
44
44
|
return this;
|
|
@@ -2,8 +2,8 @@ import { L as u, u as h, z as c, C as f, D as i, q as s } from "./p-Bf3p-DY2-CPq
|
|
|
2
2
|
import { i as b } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { a as m } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
4
4
|
import { r as p } from "./p-UxDcM-C5-BJO4X0jM.js";
|
|
5
|
-
import { h as g } from "./p-
|
|
6
|
-
import { r as x } from "./p-
|
|
5
|
+
import { h as g } from "./p-CatvDz2b-C-Hlv2Xb.js";
|
|
6
|
+
import { r as x } from "./p-CnVmK0dH-CbmnN-RR.js";
|
|
7
7
|
import { g as _ } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
8
8
|
const v = (e, t) => {
|
|
9
9
|
if (!(e === void 0 || t === void 0))
|
|
@@ -17,14 +17,14 @@ const v = (e, t) => {
|
|
|
17
17
|
default:
|
|
18
18
|
return "default";
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
22
|
formatCharCount: v,
|
|
23
23
|
inputToGidsFieldStatus: T
|
|
24
|
-
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } =
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } = l, q = (e) => e === "implicit" || e === void 0 ? "implicit" : y(e), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
25
|
__proto__: null,
|
|
26
26
|
inputToGidsFieldStatus: q
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } =
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } = l, { inputToGidsFieldStatus: O } = C, n = u(class extends h {
|
|
28
28
|
constructor(e) {
|
|
29
29
|
super(), e !== !1 && this.__registerHost(), this.gidsTextFieldClear = c(this, "gidsTextFieldClear"), this.#e = _(), this._handleDismiss = () => {
|
|
30
30
|
const t = this.#t?.querySelector("input.gids-input__control");
|
|
@@ -50,8 +50,8 @@ const v = (e, t) => {
|
|
|
50
50
|
#e;
|
|
51
51
|
#t;
|
|
52
52
|
render() {
|
|
53
|
-
const { id: e, ...t } = this.inputProps ?? {},
|
|
54
|
-
return i("gids-field", { key: "
|
|
53
|
+
const { id: e, ...t } = this.inputProps ?? {}, a = e ?? this.#e, d = this.showClearButton && this.value !== void 0 && this.value.length > 0;
|
|
54
|
+
return i("gids-field", { key: "0ed0cb2129590be7ad6d2ac435248eb8e49fcff2", disabled: this.disabled, count: F(this.value?.length, this.maxLength), helperText: this.helperText, statusText: this.statusText, status: O(this.status) }, i(m, { key: "a13f7a4c874ef56452794da526e2b0f3f246eafb", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: a }, this.label), i("gids-input", { key: "67debaa30e34b234fd8b73c8d19c9ae7f0ad6567", ref: (o) => this.#t = o, appearance: this.appearance, status: this.status, loading: this.loading, value: this.value, defaultValue: this.defaultValue, name: this.name, required: this.required, disabled: this.disabled, readOnly: this.readOnly, leadingLabel: this.leadingLabel, trailingLabel: this.trailingLabel, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur, onInput: this._handleInput, inputProps: { ...t, type: this.type, id: a, maxLength: this.maxLength } }, i("slot", { key: "89ca7a44f766aaf315ec6501f104abc43be9e5e3", name: "leadingIcon" }), i("slot", { key: "852590c3cd709a75047f8762f0ac852e202fcd4b", name: "leadingAccessory" }), d && i(p, { key: "67e92c36408146dd71a883201609987d38865df2", label: "clear text", slot: "trailingAccessory", size: "lg", onPressDismiss: this._handleDismiss }), i("slot", { key: "b8b20927eb8b9618376aa09648bbaab0d00a83e6", name: "trailingIcon" })));
|
|
55
55
|
}
|
|
56
56
|
get _el() {
|
|
57
57
|
return this;
|
|
@@ -61,7 +61,7 @@ function r() {
|
|
|
61
61
|
typeof customElements < "u" && ["gids-text-field", "gids-field", "gids-input"].forEach(((e) => {
|
|
62
62
|
switch (e) {
|
|
63
63
|
case "gids-text-field":
|
|
64
|
-
customElements.get(s(e)) || customElements.define(s(e),
|
|
64
|
+
customElements.get(s(e)) || customElements.define(s(e), n);
|
|
65
65
|
break;
|
|
66
66
|
case "gids-field":
|
|
67
67
|
customElements.get(s(e)) || g();
|
|
@@ -72,7 +72,7 @@ function r() {
|
|
|
72
72
|
}));
|
|
73
73
|
}
|
|
74
74
|
r();
|
|
75
|
-
const G =
|
|
75
|
+
const G = n, B = r;
|
|
76
76
|
export {
|
|
77
77
|
G as GidsTextField,
|
|
78
78
|
B as defineCustomElement
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as n, u as l, D as e, F as s, q as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as r } from "./p-BBszCFSA-BN0-eWJX.js";
|
|
3
3
|
import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { o as h } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
5
5
|
const o = n(class extends l {
|
|
@@ -38,7 +38,7 @@ const o = n(class extends l {
|
|
|
38
38
|
t && (t.removeEventListener("mouseenter", this.handleShowEvent), t.removeEventListener("focus", this.handleShowEvent), t.removeEventListener("mouseleave", this.handleHideEvent), t.removeEventListener("blur", this.handleHideEvent));
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return e(s, { key: "
|
|
41
|
+
return e(s, { key: "dfad2d80bfb7a71160756784ad8a3b0fa1e2d939" }, e("slot", { key: "6ba31e67a92c64309569f320c298eeb7e1429c32" }), e("span", { key: "cc6df1e5ac986ffba9953c6a59ba464ec95e0475", id: "tooltip", part: "tooltip", role: "tooltip" }, e("span", { key: "c383894a631b50fed501b51a43809538919ec5bb", id: "arrow" }), this.tooltipText));
|
|
42
42
|
}
|
|
43
43
|
disconnectedCallback() {
|
|
44
44
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as l, L as f, u, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as b } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { d as x } from "./p-DslOQITw-BfwtLWqG.js";
|
|
4
|
+
import { l as z } from "./p-BV0jg2ix-DI0fZl_6.js";
|
|
5
5
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const k = ({ breakpoint: a }, g) => w("gids-activity-gauge", {
|
|
7
7
|
"gids-activity-gauge--breakpoint-mobile": a === "mobile"
|