@ganpatiinfo/gids-core-web 13.0.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +5485 -4131
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +11 -0
- package/dist/gids-advanced-tooltip.js +1 -0
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-skeleton.d.ts +11 -0
- package/dist/gids-skeleton.js +1 -0
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +11 -0
- package/dist/gids-transfer-list.js +1 -0
- package/dist/p-474lVBcu.js +1 -0
- package/dist/{p-DUojHltk.js → p-9NZjfY_u.js} +1 -1
- package/dist/{p-C3w3wdCt.js → p-B0Nc9rVM.js} +1 -1
- package/dist/p-BBszCFSA.js +1 -0
- package/dist/{p-C3We7Q8Q.js → p-BF46eY8H.js} +1 -1
- package/dist/{p-4lN1OdcA.js → p-BKIsp763.js} +1 -1
- package/dist/p-BKcvOO8o.js +1 -0
- package/dist/p-BgvpzBUx.js +1 -0
- package/dist/p-BtKwhIx5.js +1 -0
- package/dist/{p-6APCjBEI.js → p-CLm5opt9.js} +1 -1
- package/dist/{p-Chqeexny.js → p-CZxn31uZ.js} +1 -1
- package/dist/{p-C2O_pGky.js → p-Cyant-dw.js} +1 -1
- package/dist/{p-COHuQEfZ.js → p-D7qanqNO.js} +1 -1
- package/dist/{p-BVAtja26.js → p-DGenc1qz.js} +1 -1
- package/dist/p-DLauG0q8.js +1 -0
- package/dist/p-DaqhrFRM.js +1 -0
- package/dist/{p-BSbOhfLZ.js → p-Db4qRSmH.js} +1 -1
- package/dist/{p-BCVFQSjK.js → p-Df5xaj-o.js} +1 -1
- package/dist/{p-pSb81aE0.js → p-DhtEw_C2.js} +1 -1
- package/dist/p-DshXkAUj.js +1 -0
- package/dist/p-Dvh4sPkD.js +1 -0
- package/dist/p-Iqbf3Pja.js +1 -0
- package/dist/{p-ub0GuVHb.js → p-MnCDY1k9.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/GidsCrossTable/GidsCrossTable.d.ts +17 -0
- package/dist/types/components/html/GidsCrossTableBody/GidsCrossTableBody.d.ts +12 -0
- package/dist/types/components/html/GidsCrossTableRow/GidsCrossTableRow.d.ts +12 -0
- package/dist/types/components/html/GidsDialog/GidsDialog.d.ts +12 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +31 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +31 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +3 -3
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +3 -3
- package/dist/types/components/html/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/_GidsDialogControl/GidsDialogControl.d.ts +8 -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/webComponents/GidsSkeleton/GidsSkeleton.d.ts +11 -0
- package/dist/types/components/webComponents/GidsTransferList/GidsTransferList.d.ts +49 -0
- package/dist/types/components.d.ts +243 -17
- package/dist-bundled/es/gids-action-bar.js +28 -27
- 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 +4 -4
- package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
- 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 +7 -7
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +38 -34
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +7 -7
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list-item.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +6 -6
- package/dist-bundled/es/gids-expansion.js +1 -1
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +4 -4
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +116 -83
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +20 -20
- package/dist-bundled/es/gids-password-field.js +52 -52
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +2 -2
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-skeleton.js +41 -0
- package/dist-bundled/es/gids-tab-item.js +10 -10
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +10 -10
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/gids-transfer-list.js +196 -0
- package/dist-bundled/es/p-474lVBcu-B1f8x2o1.js +31 -0
- package/dist-bundled/es/{p-DUojHltk-BQ0ryfLD.js → p-9NZjfY_u-CnjUEy1y.js} +2 -2
- package/dist-bundled/es/{p-C3w3wdCt-BTH-jYlI.js → p-B0Nc9rVM-SBit1KrF.js} +6 -6
- package/dist-bundled/es/p-BBszCFSA-BN0-eWJX.js +115 -0
- package/dist-bundled/es/{p-C3We7Q8Q-2EoDLj5m.js → p-BF46eY8H-Xn8Fl9EI.js} +3 -3
- package/dist-bundled/es/{p-4lN1OdcA-xYP8gbDc.js → p-BKIsp763-CqL9MgyZ.js} +1 -1
- package/dist-bundled/es/p-BKcvOO8o-L5KtCP_k.js +1024 -0
- package/dist-bundled/es/p-BgvpzBUx-iq-eKBVZ.js +129 -0
- package/dist-bundled/es/{p-CI-sN9Lr-BvWzRJw-.js → p-BtKwhIx5-DTEmfdxe.js} +14 -14
- package/dist-bundled/es/{p-CHGTBObD-EN4cCwtX.js → p-CHGTBObD-D_K9_Tmh.js} +15 -15
- package/dist-bundled/es/{p-6APCjBEI-BREg63Xr.js → p-CLm5opt9-DlxkI38w.js} +5 -5
- package/dist-bundled/es/{p-Chqeexny-BuJ-PhNi.js → p-CZxn31uZ-BBHM983b.js} +6 -6
- package/dist-bundled/es/{p-CoS0NuDU-CqmDcRWj.js → p-CoS0NuDU-ByDvQAzA.js} +1 -1
- package/dist-bundled/es/{p-C2O_pGky-CP4PN55D.js → p-Cyant-dw-Ch2zYNkx.js} +8 -8
- package/dist-bundled/es/{p-COHuQEfZ-DcUxD9TI.js → p-D7qanqNO-Dby5jSjA.js} +12 -12
- package/dist-bundled/es/{p-BVAtja26-C16IjShX.js → p-DGenc1qz-CMwVEtCm.js} +7 -7
- package/dist-bundled/es/{p-_SIWct9h-jMYFZ-VO.js → p-DLauG0q8-CCUuzYl9.js} +6 -6
- package/dist-bundled/es/{p-DMNS1d8v-CHF62UXm.js → p-DMNS1d8v-BX8e_AsY.js} +14 -14
- package/dist-bundled/es/p-DaqhrFRM-2PqBeu5o.js +111 -0
- package/dist-bundled/es/{p-BSbOhfLZ-BdEHhmFM.js → p-Db4qRSmH-B5pzOeve.js} +2 -2
- package/dist-bundled/es/{p-Degg_WJz-BLua06el.js → p-Degg_WJz-ORZcjc8G.js} +1 -1
- package/dist-bundled/es/{p-BCVFQSjK-CKrYrI4b.js → p-Df5xaj-o-fxAXUmag.js} +1 -1
- package/dist-bundled/es/{p-Dg2yoUxw-Cca8ROd_.js → p-Dg2yoUxw-DliMstZy.js} +8 -8
- package/dist-bundled/es/{p-pSb81aE0-WzAszFOQ.js → p-DhtEw_C2-D_91JSPC.js} +3 -3
- package/dist-bundled/es/{p-C3xv7tfs-DHsjc3Ns.js → p-DshXkAUj-DgCiQIA2.js} +15 -12
- package/dist-bundled/es/p-Dvh4sPkD-B-T5C03p.js +99 -0
- package/dist-bundled/es/p-Iqbf3Pja-DuajY4uD.js +52 -0
- package/dist-bundled/es/{p-ub0GuVHb-C9vrhXyF.js → p-MnCDY1k9-CgbTyJ5R.js} +1 -1
- package/dist-bundled/es/{p-UVmSPzTd-6vjXok6h.js → p-UVmSPzTd-CR1higgJ.js} +1 -1
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +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 +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +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 +2 -2
- package/dist-bundled/umd/gids-level-gauge.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-progress-circle.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +5 -0
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-transfer-list.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
- package/package.json +33 -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-D6lxqcxP.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-D6lxqcxP-C6BOC0kV.js +0 -74
- 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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"gids-basic-table-cell--appearance-info": t === "info",
|
|
20
|
-
"gids-basic-table-cell--appearance-warning": t === "warning",
|
|
21
|
-
"gids-basic-table-cell--appearance-positive": t === "positive",
|
|
22
|
-
"gids-basic-table-cell--appearance-danger": t === "danger",
|
|
23
|
-
// Alignments
|
|
24
|
-
"gids-basic-table-cell--text-alignment-left": i === "left",
|
|
25
|
-
"gids-basic-table-cell--text-alignment-right": i === "right",
|
|
26
|
-
"gids-basic-table-cell--text-alignment-center": i === "center",
|
|
1
|
+
import { L as q, u as M, D as r, 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-CR1higgJ.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: a = "leading" }) => a === "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 = ({ width: e }, a) => B("gids-basic-table-header", {
|
|
27
19
|
// Widths
|
|
28
|
-
// 'gids-basic-table-
|
|
29
|
-
"gids-basic-table-
|
|
30
|
-
},
|
|
20
|
+
// 'gids-basic-table-header--width-full': width === 'full', // Width set by default so not needed
|
|
21
|
+
"gids-basic-table-header--width-intrinsic": e === "intrinsic"
|
|
22
|
+
}, a), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31
23
|
__proto__: null,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, Symbol.toStringTag, { value: "Module" })), L = ({ width: e }, a) => g("gids-basic-table-row", {
|
|
24
|
+
getGidsBasicTableHeaderClassNames: W
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = ({ width: e }, a) => B("gids-basic-table-row", {
|
|
35
26
|
// Widths
|
|
36
27
|
// 'gids-basic-table-row--width-full': width === 'full', // Width set by default so not needed
|
|
37
28
|
"gids-basic-table-row--width-intrinsic": e === "intrinsic"
|
|
38
|
-
}, a),
|
|
29
|
+
}, a), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
39
30
|
__proto__: null,
|
|
40
|
-
getGidsBasicTableRowClassNames:
|
|
41
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
42
|
-
// Widths
|
|
43
|
-
// 'gids-basic-table-header--width-full': width === 'full', // Width set by default so not needed
|
|
44
|
-
"gids-basic-table-header--width-intrinsic": e === "intrinsic"
|
|
45
|
-
}, a), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46
|
-
__proto__: null,
|
|
47
|
-
getGidsBasicTableHeaderClassNames: G
|
|
48
|
-
}, Symbol.toStringTag, { value: "Module" })), O = ({ width: e }, a) => g("gids-md-table", {
|
|
31
|
+
getGidsBasicTableRowClassNames: Y
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = ({ width: e }, a) => B("gids-md-table", {
|
|
49
33
|
// Widths
|
|
50
34
|
// 'gids-md-table--width-full': width === 'full', // Width set by default so not needed
|
|
51
35
|
"gids-md-table--width-intrinsic": e === "intrinsic"
|
|
52
|
-
}, a),
|
|
36
|
+
}, a), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
37
|
+
__proto__: null,
|
|
38
|
+
getGidsMdTableClassNames: ee
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), te = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment: l, width: d }, i) => B("gids-table-cell", {
|
|
40
|
+
"gids-table-cell--border-side-top": e?.includes("top"),
|
|
41
|
+
"gids-table-cell--border-side-bottom": e?.includes("bottom"),
|
|
42
|
+
"gids-table-cell--border-side-left": e?.includes("left"),
|
|
43
|
+
"gids-table-cell--border-side-right": e?.includes("right"),
|
|
44
|
+
// Border radius sides
|
|
45
|
+
"gids-table-cell--border-radius-side-top-left": a?.includes("top-left"),
|
|
46
|
+
"gids-table-cell--border-radius-side-bottom-left": a?.includes("bottom-left"),
|
|
47
|
+
"gids-table-cell--border-radius-side-top-right": a?.includes("top-right"),
|
|
48
|
+
"gids-table-cell--border-radius-side-bottom-right": a?.includes("bottom-right"),
|
|
49
|
+
// Background colors
|
|
50
|
+
"gids-table-cell--appearance-default": t === "default",
|
|
51
|
+
"gids-table-cell--appearance-primal": t === "primal",
|
|
52
|
+
"gids-table-cell--appearance-neutral-default": t === "neutral-default",
|
|
53
|
+
"gids-table-cell--appearance-info": t === "info",
|
|
54
|
+
"gids-table-cell--appearance-warning": t === "warning",
|
|
55
|
+
"gids-table-cell--appearance-positive": t === "positive",
|
|
56
|
+
"gids-table-cell--appearance-danger": t === "danger",
|
|
57
|
+
// Alignments
|
|
58
|
+
"gids-table-cell--text-alignment-left": l === "left",
|
|
59
|
+
"gids-table-cell--text-alignment-right": l === "right",
|
|
60
|
+
"gids-table-cell--text-alignment-center": l === "center",
|
|
61
|
+
// Widths
|
|
62
|
+
// 'gids-table-cell--width-full': width === 'full', // Width set by default so not needed
|
|
63
|
+
"gids-table-cell--width-intrinsic": d === "intrinsic"
|
|
64
|
+
}, i), le = (e) => e && e.toString() !== "" ? `gids-typography-${e}` : "gids-typography-label-medium", ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
53
65
|
__proto__: null,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
getGidsTableCellClassNames: te,
|
|
67
|
+
getGidsTableCellLabelTypographyClass: le
|
|
68
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTableCellClassNames: de, getGidsTableCellLabelTypographyClass: re } = ie, { isTableCellActionButtonVisible: ne, getTableCellBtnIcon: se } = U, v = ({ id: e, uniqueKey: a, extraData: t, label: l, cellDataType: d = "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 != "" ? r(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 r("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 r(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: d, displayTags: i, label: l, id: e, extraData: t, isHeaderCell: b, uniqueKey: a, 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 r(b ? "th" : "td", { ...L, class: de({ borderSides: g, borderRadiusSides: o, appearance: p, textAlignment: h, width: n }, R), id: e, "unique-key": a, "extra-data": JSON.stringify(t) }, _("primary"), d === "text" && l && l !== "" ? r("span", { class: "" + re(c) }, l) : void 0, d === "display-tag" && i && i.length > 0 ? r("div", { class: "gids-table-cell__display-tags-container" }, i.map(((s) => r($, { label: s?.label ?? "", appearance: s?.displayTagAppearance ?? "subtle", size: s?.displayTagSize ?? "xs", icon: s?.displayTagIcon ? r(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 } = Z, D = ({ width: e = "full", layout: a = "horizontal", rows: t = [], isHeaderRow: l = !1, cellPrimaryActionButtons: d, 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 a === "vertical" ? r(K, null, t.map(((c, b) => r("tr", { ...g, key: "row-v-" + (b + 1), class: o }, r(v, { ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: d, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))))) : r("tr", { ...g, class: o }, t.map(((c, b) => r(v, { key: "row-h-" + (b + 1), ...c, width: e, isHeaderCell: l, cellPrimaryActionButtons: d, cellSecondaryActionButtons: i, onClickCellActionBtn: (m) => h({ event: m, cellIndex: b }) }))));
|
|
91
|
+
}, { getGidsBasicTableHeaderClassNames: ce } = X, be = ({ width: e = "full", headerCells: a = [], appearance: t = "none", labelTypography: l = "label-medium", textAlignment: d = "center", layout: i = "horizontal", cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickHeaderActionBtn: g, class: o, ...h }) => {
|
|
92
|
+
const c = ce({ width: e }, o);
|
|
93
|
+
return r("thead", { ...h, class: c }, r(D, { rows: a.map(((b) => ({ appearance: t, labelTypography: l, textAlignment: d, ...b }))), width: e, layout: i, isHeaderRow: !0, cellPrimaryActionButtons: n, cellSecondaryActionButtons: p, onClickRowActionBtn: g }));
|
|
94
|
+
}, { getGidsMdTableClassNames: pe } = ae, 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
|
}
|
|
@@ -85,35 +118,35 @@ const D = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment:
|
|
|
85
118
|
}
|
|
86
119
|
makeTableBodyData() {
|
|
87
120
|
const e = this.isSideHeaderVisible, a = this?.tableBody ?? [], t = [];
|
|
88
|
-
a.map(((
|
|
89
|
-
let
|
|
90
|
-
const
|
|
91
|
-
if (e &&
|
|
92
|
-
const c = this.getSideHeaderBorderSides({ _tableBodyData: a, _itemsArr:
|
|
93
|
-
|
|
121
|
+
a.map(((l, d) => {
|
|
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: a, _itemsArr: h, indexI: d });
|
|
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
|
-
})), t.push({ heading:
|
|
128
|
+
h.map(((c, b) => {
|
|
129
|
+
const m = this.getRowBorderSides({ _tableBodyData: a, _itemsArr: h, indexI: d, indexJ: b });
|
|
130
|
+
i.push({ ...c, appearance: this.rowAppearance, labelTypography: this.rowLabelTypography, textAlignment: this.rowTextAlignment, isHeader: !1, borderSides: m });
|
|
131
|
+
})), t.push({ heading: n, id: p, uniqueKey: g, extraData: o, items: i });
|
|
99
132
|
})), this.constructedTableBodyData = t;
|
|
100
133
|
}
|
|
101
|
-
getRowBorderSides({ _tableBodyData: e, _itemsArr: a, indexI: t, indexJ:
|
|
102
|
-
const
|
|
103
|
-
let
|
|
104
|
-
return (
|
|
134
|
+
getRowBorderSides({ _tableBodyData: e, _itemsArr: a, indexI: t, indexJ: l }) {
|
|
135
|
+
const d = this.applyTableInternalBorders(), i = this.applyTableAllBorders();
|
|
136
|
+
let n = [];
|
|
137
|
+
return (d || i) && (l < a.length && t + 1 < e.length && (n = ["bottom"]), l + 1 < a.length && (n = [...n, "right"])), n;
|
|
105
138
|
}
|
|
106
139
|
getSideHeaderBorderSides({ _tableBodyData: e, _itemsArr: a, indexI: t }) {
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
return (
|
|
140
|
+
const l = this.applyTableInternalBorders(), d = this.applyTableAllBorders();
|
|
141
|
+
let i = [];
|
|
142
|
+
return (l || d) && (t + 1 < e.length && (i = ["bottom"]), a.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
146
|
let a = e;
|
|
114
147
|
this.applyTableOuterBorders() && (a = e + " gids-md-table__outer-borders");
|
|
115
|
-
const t = this.addBorderRadiusDirectlyToTable()
|
|
116
|
-
return
|
|
148
|
+
const t = this.addBorderRadiusDirectlyToTable();
|
|
149
|
+
return t && t !== "" ? `${a} ${t}` : "" + a;
|
|
117
150
|
}
|
|
118
151
|
addBorderRadiusDirectlyToTable() {
|
|
119
152
|
let e = "";
|
|
@@ -124,11 +157,11 @@ const D = ({ borderSides: e, borderRadiusSides: a, appearance: t, textAlignment:
|
|
|
124
157
|
const e = this.isSideHeaderVisible, a = this?.topHeaderCells ?? [];
|
|
125
158
|
let t = [...a];
|
|
126
159
|
e === !1 && a.length > 0 ? t.splice(0, 1) : t = [...a];
|
|
127
|
-
const
|
|
128
|
-
return t.map(((
|
|
129
|
-
let
|
|
130
|
-
(
|
|
131
|
-
})),
|
|
160
|
+
const l = this.applyTableInternalBorders(), d = this.applyTableAllBorders(), i = this.applyTableTopHeaderBorders(), n = [];
|
|
161
|
+
return t.map(((p, g) => {
|
|
162
|
+
let o = [];
|
|
163
|
+
(l || d || i) && (o = ["bottom"], g + 1 < t.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 r(
|
|
180
|
+
const e = pe({ width: this.width }), a = this.isTopHeaderVisible, t = this.getTopHeaderCells(), l = this?.constructedTableBodyData ?? [];
|
|
181
|
+
return r(E, { key: "e1404c2afc5cd310aac72861cd62a5675d60debd", class: e }, r("table", { key: "6af19657d96525fb5835ff78018633dbeac233bc", class: this.getTableClasses() }, a ? r(be, { appearance: this.topHeaderAppearance, labelTypography: this.topHeaderLabelTypography, textAlignment: this.topHeaderTextAlignment, headerCells: t, width: this.width }) : void 0, r("tbody", { key: "c43e3a3121839c191c18a8621f902de504dc8fba" }, l.length > 0 ? l.map(((d) => r(D, { layout: "horizontal", rows: d?.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: "66d29a2d7da02c695def7edaa9c338161b382cfa", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "dd1c0a97cf7e93a50ab40cceb14e50b6e59efdc7" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
@@ -2,14 +2,14 @@ import { L as C, u as y, D as o, F as w, q as f } from "./p-Bf3p-DY2-CPqEc-vc.js
|
|
|
2
2
|
import { i as x } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { e as N, n as g } from "./p-CVtNa0cL-sSVeJsR3.js";
|
|
4
4
|
import { d as p } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
5
|
-
import { o as u } from "./p-UVmSPzTd-
|
|
5
|
+
import { o as u } from "./p-UVmSPzTd-CR1higgJ.js";
|
|
6
6
|
import { c as h } from "./clsx-OuTLNxxd.js";
|
|
7
|
-
const Q = ({ appearance: t }, e) => h("gids-
|
|
8
|
-
// 'gids-
|
|
9
|
-
"gids-
|
|
10
|
-
"gids-
|
|
11
|
-
"gids-
|
|
12
|
-
"gids-
|
|
7
|
+
const Q = ({ appearance: t }, e) => h("gids-notification-container", {
|
|
8
|
+
// 'gids-notification-container--appearance-default': appearance === 'default' // its a default
|
|
9
|
+
"gids-notification-container--appearance-information": t === "information",
|
|
10
|
+
"gids-notification-container--appearance-success": t === "success",
|
|
11
|
+
"gids-notification-container--appearance-warning": t === "warning",
|
|
12
|
+
"gids-notification-container--appearance-error": t === "error"
|
|
13
13
|
}, e), S = (t) => {
|
|
14
14
|
if (t)
|
|
15
15
|
switch (t) {
|
|
@@ -26,8 +26,8 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
26
26
|
}
|
|
27
27
|
}, j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
28
|
__proto__: null,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
getGidsNotificationContainerClassNames: Q,
|
|
30
|
+
getNotificationContainerIconNames: S
|
|
31
31
|
}, Symbol.toStringTag, { value: "Module" })), b = (t) => {
|
|
32
32
|
switch (t) {
|
|
33
33
|
case "bottom-left":
|
|
@@ -91,12 +91,12 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
91
91
|
getComponentEntryClasses: b,
|
|
92
92
|
getComponentExitClasses: v,
|
|
93
93
|
getComponentStackClasses: M
|
|
94
|
-
}, Symbol.toStringTag, { value: "Module" })), T = ({ appearance: t }, e) => h("gids-
|
|
95
|
-
// 'gids-
|
|
96
|
-
"gids-
|
|
97
|
-
"gids-
|
|
98
|
-
"gids-
|
|
99
|
-
"gids-
|
|
94
|
+
}, Symbol.toStringTag, { value: "Module" })), T = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
95
|
+
// 'gids-snackbar-container--appearance-default': appearance === 'default' // its a default
|
|
96
|
+
"gids-snackbar-container--appearance-information": t === "information",
|
|
97
|
+
"gids-snackbar-container--appearance-success": t === "success",
|
|
98
|
+
"gids-snackbar-container--appearance-warning": t === "warning",
|
|
99
|
+
"gids-snackbar-container--appearance-error": t === "error"
|
|
100
100
|
}, e), q = (t) => {
|
|
101
101
|
if (t)
|
|
102
102
|
switch (t) {
|
|
@@ -113,12 +113,12 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
113
113
|
}
|
|
114
114
|
}, I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
115
|
__proto__: null,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsSnackbarContainerClassNames: z, getSnackbarContainerIconNames: L } =
|
|
116
|
+
getGidsSnackbarContainerClassNames: T,
|
|
117
|
+
getSnackbarContainerIconNames: q
|
|
118
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsSnackbarContainerClassNames: z, getSnackbarContainerIconNames: L } = I, X = ({ appearance: t = "default", children: e, button: n, class: i, ...a }) => {
|
|
119
119
|
const r = L(t);
|
|
120
120
|
return o("div", { ...a, class: z({ appearance: t }, i) }, o("div", { class: "gids-snackbar-container__content" }, t !== "default" && r != null ? o(p, { name: r, alt: "", appearance: "filled", size: "md", class: "gids-snackbar-container__icon" }) : null, typeof e == "string" ? o("p", null, e) : e), n);
|
|
121
|
-
}, { getGidsNotificationContainerClassNames: Y, getNotificationContainerIconNames: E } =
|
|
121
|
+
}, { getGidsNotificationContainerClassNames: Y, getNotificationContainerIconNames: E } = j, R = ({ notificationTitle: t, children: e, button: n, appearance: i = "default", pronunciation: a = "standard", onCloseNotificationClick: r, class: s, ...m }) => {
|
|
122
122
|
const c = E(i);
|
|
123
123
|
return o("div", { class: Y({ appearance: i }, s), ...m }, i !== "default" && c ? o("div", { class: "gids-notification-container__leading-icon-wrapper" }, o(p, { size: "md", name: c, alt: "", appearance: "filled" })) : null, o("div", { class: "gids-notification-container__content-wrapper" }, o("div", { class: "gids-notification-container__top-content" }, o("div", { class: "gids-notification-container__text-content" }, t != null && t !== "" ? o("span", { class: "gids-notification-container__title" }, t) : null, e ? typeof e == "string" ? o("p", null, e) : e : null), a === "standard" ? o("div", { class: "gids-notification-container__cross-btn-wrapper" }, o(u, { size: "sm", appearance: "subtle", width: "intrinsic", leadingIcon: o(p, { name: "cross", size: "md", appearance: "regular" }), onClick: r })) : null), n ? o("div", { class: "gids-notification-container__bottom-content" }, n) : null));
|
|
124
124
|
}, { getComponentClasses: B, getComponentStackClasses: G } = O, _ = C(class extends y {
|
|
@@ -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: "c97e5540b3c302e9c548d03166a67755bc195237" }, o("slot", { key: "0b29ba9fec23311a5fd8d0ce3c6b8f5f15f96a16" }), 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;
|
|
@@ -1,47 +1,59 @@
|
|
|
1
1
|
import { L as S, u as P, z as v, C as x, D as i, F as T, q as h } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as C } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { a as F } from "./p-Dg2yoUxw-
|
|
3
|
+
import { a as F } from "./p-Dg2yoUxw-DliMstZy.js";
|
|
4
4
|
import { r as L } from "./p-UxDcM-C5-BJO4X0jM.js";
|
|
5
|
-
import { o as O } from "./p-UVmSPzTd-
|
|
5
|
+
import { o as O } from "./p-UVmSPzTd-CR1higgJ.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-MnCDY1k9-CgbTyJ5R.js";
|
|
8
|
+
import { r as E } from "./p-DGenc1qz-CMwVEtCm.js";
|
|
9
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
10
|
-
const
|
|
10
|
+
const G = (e) => {
|
|
11
|
+
switch (e) {
|
|
12
|
+
case "error":
|
|
13
|
+
return "error";
|
|
14
|
+
case "success":
|
|
15
|
+
return "success";
|
|
16
|
+
default:
|
|
17
|
+
return "default";
|
|
18
|
+
}
|
|
19
|
+
}, B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
|
+
__proto__: null,
|
|
21
|
+
inputToGidsFieldStatusForPassword: G
|
|
22
|
+
}, Symbol.toStringTag, { value: "Module" })), f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, A = ({ text: e, meterRules: t = [], textMinLength: s = 0 }) => {
|
|
11
23
|
if (!e || e === "")
|
|
12
24
|
return 0;
|
|
13
25
|
let n = 0;
|
|
14
|
-
return t.includes("1-uppercase") && f.test(e) && n++, t.includes("1-lowercase") &&
|
|
15
|
-
},
|
|
26
|
+
return t.includes("1-uppercase") && f.test(e) && n++, t.includes("1-lowercase") && p.test(e) && n++, t.includes("1-digit") && b.test(e) && n++, t.includes("1-special-character") && q.test(e) && n++, t.includes("include-min-length") && s && s > 0 && e.length >= s && n++, n;
|
|
27
|
+
}, I = ({ textScore: e, maxScore: t }) => {
|
|
16
28
|
const s = t > 0 ? e / t * 100 : 0;
|
|
17
29
|
return s <= 20 ? "is-weak" : s <= 40 ? "is-medium" : s <= 60 ? "is-good-enough" : s <= 80 ? "is-good" : "is-strong";
|
|
18
|
-
},
|
|
30
|
+
}, $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
31
|
__proto__: null,
|
|
20
|
-
getColorModifierByScore:
|
|
21
|
-
getStrengthMeterScore:
|
|
22
|
-
include1DigitReg:
|
|
23
|
-
include1LowercaseLetterReg:
|
|
32
|
+
getColorModifierByScore: I,
|
|
33
|
+
getStrengthMeterScore: A,
|
|
34
|
+
include1DigitReg: b,
|
|
35
|
+
include1LowercaseLetterReg: p,
|
|
24
36
|
include1SpecialCharReg: q,
|
|
25
37
|
include1UppercaseLetterReg: f
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" })), d = ({ requirementRule: e, textMinLength: t }) => e === "include-min-length" && t && t > 0, R = (e) => {
|
|
27
39
|
const t = [];
|
|
28
40
|
return e && e.length > 0 && e.map((s) => {
|
|
29
41
|
s?.requirementRule && t.push(s.requirementRule);
|
|
30
42
|
}), t;
|
|
31
|
-
},
|
|
43
|
+
}, D = ({ rule: e, textMinLength: t = 0, text: s }) => {
|
|
32
44
|
if (!s || s === "" || !e && !t)
|
|
33
45
|
return !1;
|
|
34
46
|
switch (e) {
|
|
35
47
|
case "1-uppercase":
|
|
36
48
|
return f.test(s);
|
|
37
49
|
case "1-lowercase":
|
|
38
|
-
return b.test(s);
|
|
39
|
-
case "1-digit":
|
|
40
50
|
return p.test(s);
|
|
51
|
+
case "1-digit":
|
|
52
|
+
return b.test(s);
|
|
41
53
|
case "1-special-character":
|
|
42
54
|
return q.test(s);
|
|
43
55
|
case "include-min-length":
|
|
44
|
-
return
|
|
56
|
+
return d({
|
|
45
57
|
requirementRule: "include-min-length",
|
|
46
58
|
textMinLength: t
|
|
47
59
|
}) === !0 && s.length >= t;
|
|
@@ -67,7 +79,7 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
67
79
|
requirementText: "Password must contain atleast 1 lowercase letter."
|
|
68
80
|
}
|
|
69
81
|
];
|
|
70
|
-
return
|
|
82
|
+
return d({
|
|
71
83
|
requirementRule: "include-min-length",
|
|
72
84
|
textMinLength: e
|
|
73
85
|
}) && t.push({
|
|
@@ -77,12 +89,12 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
77
89
|
defaultMeterRules: R(t),
|
|
78
90
|
defaultRequirementsMeterRules: t
|
|
79
91
|
};
|
|
80
|
-
},
|
|
92
|
+
}, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81
93
|
__proto__: null,
|
|
82
|
-
checkRequirementRuleSatisfied:
|
|
94
|
+
checkRequirementRuleSatisfied: D,
|
|
83
95
|
getDefaultRulesAndRequirementsForMeters: m,
|
|
84
96
|
getMeterRulesFromRequirements: R,
|
|
85
|
-
minLengthRuleCanBeApplied:
|
|
97
|
+
minLengthRuleCanBeApplied: d
|
|
86
98
|
}, Symbol.toStringTag, { value: "Module" })), V = (e) => {
|
|
87
99
|
switch (e) {
|
|
88
100
|
case "error":
|
|
@@ -96,60 +108,48 @@ const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
96
108
|
default:
|
|
97
109
|
return "globe";
|
|
98
110
|
}
|
|
99
|
-
}, D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
|
-
__proto__: null,
|
|
101
|
-
getRequirementsMeterLabelLeadingIcon: V
|
|
102
|
-
}, Symbol.toStringTag, { value: "Module" })), N = (e) => {
|
|
103
|
-
switch (e) {
|
|
104
|
-
case "error":
|
|
105
|
-
return "error";
|
|
106
|
-
case "success":
|
|
107
|
-
return "success";
|
|
108
|
-
default:
|
|
109
|
-
return "default";
|
|
110
|
-
}
|
|
111
111
|
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
112
|
__proto__: null,
|
|
113
|
-
|
|
114
|
-
}, Symbol.toStringTag, { value: "Module" })), H = (e) =>
|
|
113
|
+
getRequirementsMeterLabelLeadingIcon: V
|
|
114
|
+
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatusForPassword: H } = B, Z = (e) => e === "implicit" || e === void 0 ? "implicit" : H(e), W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
115
|
__proto__: null,
|
|
116
|
-
|
|
117
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
116
|
+
inputToGidsFieldStatusForPassword: Z
|
|
117
|
+
}, Symbol.toStringTag, { value: "Module" })), J = ({ status: e }, t) => g("gids-requirements-meter-label", {
|
|
118
118
|
"gids-requirements-meter-label--error": e === "error",
|
|
119
119
|
"gids-requirements-meter-label--information": e === "information",
|
|
120
120
|
"gids-requirements-meter-label--warning": e === "warning",
|
|
121
121
|
"gids-requirements-meter-label--success": e === "success"
|
|
122
|
-
}, t),
|
|
122
|
+
}, t), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
123
123
|
__proto__: null,
|
|
124
|
-
getGidsRequirementsMeterLabelClassNames:
|
|
125
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
124
|
+
getGidsRequirementsMeterLabelClassNames: J
|
|
125
|
+
}, Symbol.toStringTag, { value: "Module" })), Q = (e) => g("gids-requirements-meter", e), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
126
126
|
__proto__: null,
|
|
127
|
-
getGidsRequirementsMeterClassNames:
|
|
128
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
127
|
+
getGidsRequirementsMeterClassNames: Q
|
|
128
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = (e) => g("gids-strength-meter", e), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
129
129
|
__proto__: null,
|
|
130
|
-
|
|
131
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsStrengthMeterClassNames: te } =
|
|
130
|
+
getGidsStrengthMeterClassNames: Y
|
|
131
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsStrengthMeterClassNames: te } = ee, { getStrengthMeterScore: se, getColorModifierByScore: re } = $, ie = ({ text: e, textMinLength: t, meterRules: s = ["1-uppercase", "1-lowercase", "1-digit", "1-special-character", "include-min-length"], class: n }) => {
|
|
132
132
|
const a = (r, l, u) => i("div", { key: r, class: ["gids-strength-meter__strength-" + r, u ? "is-active" : "", u ? l : ""].filter(Boolean).join(" ") });
|
|
133
133
|
return s.length > 0 ? i("div", { class: te(n) }, (() => {
|
|
134
134
|
const r = s.length, l = se({ text: e, textMinLength: t, meterRules: s }), u = re({ textScore: l, maxScore: r });
|
|
135
135
|
return Array.from({ length: r }, ((_, c) => {
|
|
136
|
-
const
|
|
137
|
-
return s[
|
|
136
|
+
const o = c + 1, w = o <= l;
|
|
137
|
+
return s[o] === "include-min-length" ? d({ requirementRule: "include-min-length", textMinLength: t }) ? a(o, u, w) : null : a(o, u, w);
|
|
138
138
|
}));
|
|
139
139
|
})()) : null;
|
|
140
|
-
}, { getGidsRequirementsMeterLabelClassNames: ne } =
|
|
140
|
+
}, { getGidsRequirementsMeterLabelClassNames: ne } = K, { getRequirementsMeterLabelLeadingIcon: le } = U, 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
|
-
}, { checkRequirementRuleSatisfied: ue } =
|
|
143
|
+
}, { checkRequirementRuleSatisfied: ue } = N, { getGidsRequirementsMeterClassNames: oe } = X, de = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
|
|
144
144
|
const a = (r, l) => i(ae, { status: l ? "success" : "error", label: r.requirementText });
|
|
145
|
-
return i("div", { class:
|
|
145
|
+
return i("div", { class: oe(n) }, e.map(((r) => {
|
|
146
146
|
if (r?.requirementText != null && r?.requirementRule != null) {
|
|
147
147
|
const l = ue({ rule: r.requirementRule, textMinLength: s, text: t });
|
|
148
|
-
return r.requirementRule === "include-min-length" ?
|
|
148
|
+
return r.requirementRule === "include-min-length" ? d({ requirementRule: r.requirementRule, textMinLength: s }) === !0 ? a(r, l) : null : a(r, l);
|
|
149
149
|
}
|
|
150
150
|
return null;
|
|
151
151
|
})));
|
|
152
|
-
}, { inputToGidsFieldStatusForPassword: ce } =
|
|
152
|
+
}, { inputToGidsFieldStatusForPassword: ce } = W, M = S(class extends P {
|
|
153
153
|
constructor(e) {
|
|
154
154
|
super(), e !== !1 && this.__registerHost(), this.gidsPasswordFieldClear = v(this, "gidsPasswordFieldClear"), this.gidsPasswordFieldRevealPassword = v(this, "gidsPasswordFieldRevealPassword"), this.isPasswordRevealed = !1, this.meterRules = [], this.requirementsMeterRequirements = [], this.requirements = [], this.#t = k(), this._handleDismiss = () => {
|
|
155
155
|
const t = this.#e?.querySelector("input.gids-input__control");
|
|
@@ -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: "3d2b0215e3ecf5f3177b6bbd814cbb25cfff0f99" }, i("gids-field", { key: "55406ad952e16aadfabb54e7e0881232abfa0ad4", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(F, { key: "d43dfd8b4e972b2877be1dfc559e1c7dd26503af", 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: "91296ff92342eaabd1e4b90a9eac42ef84bdfe00", ref: (o) => this.#e = o, 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: "34e19a0410259e1fccc7fe019f0aaca4ed767221", name: "leadingIcon" }), i("slot", { key: "c2182fcca49768b6cad85ef1e6878267e9039356", name: "leadingAccessory" }), i("div", { key: "76b96027037623e0489eda79783b8eb526fc3506", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(L, { key: "10faa5658661a006a0dfa3772c78aa68285cebfe", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(O, { key: "9035e639421b9a4ccfe781cbc6f90d629ac2d9c3", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "c5ebe85a024f0726428fd68f35940909fd0ffba2", class: "gids-password-field__meters-container" }, i(ie, { key: "113412cc82015efae5c899786cb4550f04454ae4", meterRules: _, text: this.value, textMinLength: c }), i(de, { key: "12e2c502ed1d0b0e22048d92eb17c1cec3baee05", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
|
|
195
195
|
}
|
|
196
196
|
get _el() {
|
|
197
197
|
return this;
|
|
@@ -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: "94d73fbb3f1717237610f6841f6d71bb358f88af" }, a("slot", { key: "e32847e40a883de4a28bab3c34472b1fcf373175", name: "anchor" }), a("div", { key: "91a5b221e8dc9ad5ccd001da496d9fa55f1fb39a", id: "popover", part: "popover", role: "dialog", "aria-modal": "true", tabindex: "-1" }, a("span", { key: "92e4d0a5abbed72f846669c60ca2d5b5423f7d2b", id: "arrow" }), a("div", { key: "9f70b0e84f4d82809668f57725707e6c681fb7c8" }, a("slot", { key: "52f87218d40c71eb70a23552e77b38d3b9f85b2f" }))));
|
|
68
68
|
}
|
|
69
69
|
disconnectedCallback() {
|
|
70
70
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|