@ganpatiinfo/gids-core-web 15.0.0 → 16.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 +598 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-header-navigation-item.d.ts +11 -0
- package/dist/gids-header-navigation-item.js +1 -0
- package/dist/gids-header-navigation.d.ts +11 -0
- package/dist/gids-header-navigation.js +1 -0
- 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-profile-menu-header.d.ts +11 -0
- package/dist/gids-profile-menu-header.js +1 -0
- package/dist/gids-profile-menu.d.ts +11 -0
- package/dist/gids-profile-menu.js +1 -0
- package/dist/gids-profile.d.ts +11 -0
- package/dist/gids-profile.js +1 -0
- 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 +1 -1
- package/dist/gids-skeleton.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +1 -1
- package/dist/gids-transfer-list.js +1 -1
- package/dist/{p-Iqbf3Pja.js → p-BrYLEey4.js} +1 -1
- package/dist/p-Bs8TP3Rb.js +1 -0
- package/dist/p-Bw2pVReY.js +1 -0
- package/dist/{p-BtKwhIx5.js → p-Bzjuvoza.js} +1 -1
- package/dist/p-C-HyXFGR.js +1 -0
- package/dist/{p-Cyant-dw.js → p-CCpxJ8wu.js} +1 -1
- package/dist/p-CXFvqDBs.js +1 -0
- package/dist/{p-DLauG0q8.js → p-CZBiavxU.js} +1 -1
- package/dist/p-CcpdJCql.js +1 -0
- package/dist/{p-BKIsp763.js → p-Chb2OeFe.js} +1 -1
- package/dist/{p-Df5xaj-o.js → p-CiWZdp48.js} +1 -1
- package/dist/{p-DaqhrFRM.js → p-Co23kQaH.js} +1 -1
- package/dist/{p-DshXkAUj.js → p-DAuO4g6g.js} +1 -1
- package/dist/{p-BF46eY8H.js → p-DELTZ9Fh.js} +1 -1
- package/dist/{p-CLm5opt9.js → p-DGXqnrKo.js} +1 -1
- package/dist/p-DObJEzlz.js +1 -0
- package/dist/{p-MnCDY1k9.js → p-DbaNvRpS.js} +1 -1
- package/dist/{p-Dvh4sPkD.js → p-Dd-ec-e0.js} +1 -1
- package/dist/{p-DhtEw_C2.js → p-DiTjFG30.js} +1 -1
- package/dist/{p-Db4qRSmH.js → p-DxX3B1f0.js} +1 -1
- package/dist/{p-B0Nc9rVM.js → p-UDG6tkD1.js} +1 -1
- package/dist/p-bhEHIxPv.js +1 -0
- package/dist/{p-BgvpzBUx.js → p-d-t7__OQ.js} +1 -1
- package/dist/p-oJFgjzK5.js +1 -0
- package/dist/p-pVSQxFDF.js +1 -0
- package/dist/{p-DGenc1qz.js → p-u06XOrpj.js} +1 -1
- package/dist/types/components/webComponents/GidsHeaderNavigation/GidsHeaderNavigation.d.ts +51 -0
- package/dist/types/components/webComponents/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +42 -0
- package/dist/types/components/webComponents/GidsProfile/GidsProfile.d.ts +66 -0
- package/dist/types/components/webComponents/GidsProfileMenu/GidsProfileMenu.d.ts +29 -0
- package/dist/types/components/webComponents/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +30 -0
- package/dist/types/components.d.ts +596 -2
- package/dist-bundled/es/gids-action-bar.js +22 -21
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +2 -2
- 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 +2 -2
- package/dist-bundled/es/gids-calendar.js +24 -24
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +7 -7
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +2 -2
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- 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 +4 -4
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +5 -5
- package/dist-bundled/es/gids-expansion.js +1 -1
- package/dist-bundled/es/gids-field.js +2 -2
- package/dist-bundled/es/gids-filter.js +2 -2
- package/dist-bundled/es/gids-header-navigation-item.js +6 -0
- package/dist-bundled/es/gids-header-navigation.js +134 -0
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +2 -2
- package/dist-bundled/es/gids-line-chart.js +3 -3
- package/dist-bundled/es/gids-md-table.js +59 -59
- 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 +12 -12
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +6 -0
- package/dist-bundled/es/gids-profile-menu.js +6 -0
- package/dist-bundled/es/gids-profile.js +199 -0
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-skeleton.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +16 -36
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +6 -6
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +1 -1
- package/dist-bundled/es/gids-transfer-list.js +3 -3
- package/dist-bundled/es/p-Bs8TP3Rb-BdcS7d5q.js +20 -0
- package/dist-bundled/es/{p-9NZjfY_u-CnjUEy1y.js → p-Bw2pVReY-K9pdG-hw.js} +2 -2
- package/dist-bundled/es/{p-BtKwhIx5-DTEmfdxe.js → p-Bzjuvoza-CzNs69NV.js} +12 -12
- package/dist-bundled/es/{p-D7qanqNO-Dby5jSjA.js → p-C-HyXFGR-UnFcWLOQ.js} +6 -5
- package/dist-bundled/es/{p-Cyant-dw-Ch2zYNkx.js → p-CCpxJ8wu-CMYQqNoP.js} +6 -6
- package/dist-bundled/es/p-CXFvqDBs-offadaUn.js +27 -0
- package/dist-bundled/es/{p-DLauG0q8-CCUuzYl9.js → p-CZBiavxU-CIstIm2b.js} +9 -9
- package/dist-bundled/es/p-CcpdJCql-CkEW2RAp.js +64 -0
- package/dist-bundled/es/{p-BKIsp763-CqL9MgyZ.js → p-Chb2OeFe-DDv_WPhe.js} +1 -1
- package/dist-bundled/es/{p-Df5xaj-o-fxAXUmag.js → p-CiWZdp48-1vf7Xh2R.js} +5 -5
- package/dist-bundled/es/{p-DaqhrFRM-2PqBeu5o.js → p-Co23kQaH-QJyKkzgc.js} +3 -3
- package/dist-bundled/es/{p-DshXkAUj-DgCiQIA2.js → p-DAuO4g6g-C8miaL-N.js} +6 -6
- package/dist-bundled/es/{p-BF46eY8H-Xn8Fl9EI.js → p-DELTZ9Fh-Byr0nLtY.js} +2 -2
- package/dist-bundled/es/{p-CLm5opt9-DlxkI38w.js → p-DGXqnrKo-C7feKS94.js} +5 -5
- package/dist-bundled/es/p-DObJEzlz-tt9h5cuI.js +17 -0
- package/dist-bundled/es/{p-MnCDY1k9-CgbTyJ5R.js → p-DbaNvRpS-r7kCW1TY.js} +9 -9
- package/dist-bundled/es/{p-Dvh4sPkD-B-T5C03p.js → p-Dd-ec-e0-BqX_F6y0.js} +5 -5
- package/dist-bundled/es/{p-DhtEw_C2-D_91JSPC.js → p-DiTjFG30-CQkxfu2K.js} +2 -2
- package/dist-bundled/es/{p-Db4qRSmH-B5pzOeve.js → p-DxX3B1f0-D1URliVh.js} +5 -5
- package/dist-bundled/es/{p-B0Nc9rVM-SBit1KrF.js → p-UDG6tkD1-JTLPxkEn.js} +5 -5
- package/dist-bundled/es/p-bhEHIxPv-ujyxL30O.js +136 -0
- package/dist-bundled/es/{p-BgvpzBUx-iq-eKBVZ.js → p-d-t7__OQ-CKPQZt2t.js} +3 -3
- package/dist-bundled/es/p-oJFgjzK5-CzagP1qD.js +99 -0
- package/dist-bundled/es/{p-CZxn31uZ-BBHM983b.js → p-pVSQxFDF-CsWxUaZX.js} +10 -9
- package/dist-bundled/es/{p-DGenc1qz-CMwVEtCm.js → p-u06XOrpj-C1tNznDd.js} +6 -6
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- 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 +2 -2
- 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-header-navigation-item.umd.js +5 -0
- package/dist-bundled/umd/gids-header-navigation.umd.js +5 -0
- 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-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +5 -0
- package/dist-bundled/umd/gids-profile-menu.umd.js +5 -0
- package/dist-bundled/umd/gids-profile.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +1 -1
- 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 +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +44 -4
- package/dist/p-474lVBcu.js +0 -1
- package/dist/p-9NZjfY_u.js +0 -1
- package/dist/p-CZxn31uZ.js +0 -1
- package/dist/p-D7qanqNO.js +0 -1
- package/dist-bundled/es/p-474lVBcu-B1f8x2o1.js +0 -31
- /package/dist-bundled/es/{p-Iqbf3Pja-DuajY4uD.js → p-BrYLEey4-DuajY4uD.js} +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { L as z, u as B, D as r, P as L, q as c } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { m as H, l as R, u as $ } from "./p-oJFgjzK5-CzagP1qD.js";
|
|
3
|
+
import { p as j } from "./p-CXFvqDBs-offadaUn.js";
|
|
4
|
+
import { d as b } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
5
|
+
import { c as G } from "./p-CcpdJCql-CkEW2RAp.js";
|
|
6
|
+
import { c as q } from "./clsx-OuTLNxxd.js";
|
|
7
|
+
const N = ({ profileControlAppearance: e, profileControlBorderRadius: i, profileControlShadow: o, expanded: a }, l) => q("gids-profile", {
|
|
8
|
+
// Appearances
|
|
9
|
+
// 'gids-profile--appearance-default': profileControlAppearance === 'default', // By default so not needed
|
|
10
|
+
"gids-profile--appearance-brand": e === "brand",
|
|
11
|
+
"gids-profile--appearance-danger": e === "danger",
|
|
12
|
+
"gids-profile--appearance-information": e === "information",
|
|
13
|
+
"gids-profile--appearance-positive": e === "positive",
|
|
14
|
+
"gids-profile--appearance-subtle": e === "subtle",
|
|
15
|
+
"gids-profile--appearance-warning": e === "warning",
|
|
16
|
+
// Border Radiuses
|
|
17
|
+
// 'gids-profile--border-radius-none': profileControlBorderRadius === 'none', // By default so not needed
|
|
18
|
+
"gids-profile--border-radius-sm": i === "sm",
|
|
19
|
+
"gids-profile--border-radius-md": i === "md",
|
|
20
|
+
"gids-profile--border-radius-lg": i === "lg",
|
|
21
|
+
"gids-profile--border-radius-full": i === "full",
|
|
22
|
+
// Shadows
|
|
23
|
+
// 'gids-profile--shadow-none': profileControlShadow === 'none', // By default so not needed
|
|
24
|
+
"gids-profile--shadow-overflow": o === "overflow",
|
|
25
|
+
"gids-profile--shadow-overlay": o === "overlay",
|
|
26
|
+
"gids-profile--shadow-raised": o === "raised",
|
|
27
|
+
// Expansion
|
|
28
|
+
"gids-profile--expanded": a
|
|
29
|
+
}, l), O = ({ profileControlAppearance: e }) => {
|
|
30
|
+
switch (e) {
|
|
31
|
+
case "brand":
|
|
32
|
+
return {
|
|
33
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-brand",
|
|
34
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-brand"
|
|
35
|
+
};
|
|
36
|
+
case "subtle":
|
|
37
|
+
return {
|
|
38
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-subtle",
|
|
39
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-subtle"
|
|
40
|
+
};
|
|
41
|
+
case "positive":
|
|
42
|
+
return {
|
|
43
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-positive",
|
|
44
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-positive"
|
|
45
|
+
};
|
|
46
|
+
case "information":
|
|
47
|
+
return {
|
|
48
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-information",
|
|
49
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-information"
|
|
50
|
+
};
|
|
51
|
+
case "warning":
|
|
52
|
+
return {
|
|
53
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-warning",
|
|
54
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-warning"
|
|
55
|
+
};
|
|
56
|
+
case "danger":
|
|
57
|
+
return {
|
|
58
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-danger",
|
|
59
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-danger"
|
|
60
|
+
};
|
|
61
|
+
default:
|
|
62
|
+
return {
|
|
63
|
+
titleClasses: "gids-profile__title-typography gids-profile__title-default",
|
|
64
|
+
supportingTextClasses: "gids-profile__supporting-text-typography gids-profile__supporting-text-default"
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}, F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
68
|
+
__proto__: null,
|
|
69
|
+
getGidsProfileClassNames: N,
|
|
70
|
+
getGidsProfileTextClassNames: O
|
|
71
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsProfileClassNames: W, getGidsProfileTextClassNames: J } = F, { getProfileHeaderMenuAvatarText: K } = R, C = z(class extends B {
|
|
72
|
+
constructor(e) {
|
|
73
|
+
super(), e !== !1 && this.__registerHost(), this.expanded = !1, this.profileControlAppearance = "default", this.profileControlAvatarVisible = !0, this.profileControlAvatarBadgeVisible = !0, this.profileControlBorderRadius = "none", this.profileControlShadow = "none", this.profileControlLeadingIconSize = "sm", this.profileControlTrailingIconSize = "sm", this.profileControlLeadingIconAppearance = "filled", this.profileControlTrailingIconAppearance = "filled", this.profileMenuItems = [], this.headerDividerVisible = !1, this.headerVisible = !1, this.listSectionDividerVisible = !1, this.isMenuExpanded = !1, this.onProfileControlPress = (i) => {
|
|
74
|
+
if (this.hasMenu()) {
|
|
75
|
+
const o = !this.isMenuExpanded;
|
|
76
|
+
this.isMenuExpanded = o, this.onPressProfileControl && this.onPressProfileControl({ originalEvent: i, id: this.id, menuId: this?.menuId, expanded: o, profileControlTitle: this?.profileControlTitle, profileControlSupportingText: this?.profileControlSupportingText });
|
|
77
|
+
}
|
|
78
|
+
}, this.onPressProfileMenuItem = (i) => {
|
|
79
|
+
this.isMenuExpanded = !1, this.onPressProfileMenuItem && this.onPressProfileMenuItem({ ...i });
|
|
80
|
+
}, this.positionProfileMenu = () => {
|
|
81
|
+
const i = this.hostElement?.querySelector(".gids-profile__dropdown-menu-container");
|
|
82
|
+
if (!i) return;
|
|
83
|
+
const o = this.hostElement.getBoundingClientRect(), a = window.innerWidth, l = window.innerHeight;
|
|
84
|
+
i.style.maxHeight = "none";
|
|
85
|
+
const g = i.getBoundingClientRect(), s = l - o.bottom - 8, n = o.top - 4, d = g.height > s && n > s, f = d ? n : s;
|
|
86
|
+
i.style.maxHeight = g.height > f ? f + "px" : "none";
|
|
87
|
+
const p = i.getBoundingClientRect();
|
|
88
|
+
let t = o.left;
|
|
89
|
+
t + p.width > a - 4 && (t = a - p.width - 4), t < 4 && (t = 4), i.style.left = t - o.left + "px", i.style.top = d ? -p.height - 4 + "px" : o.height + 4 + "px";
|
|
90
|
+
}, this.getProfileControlAvatarText = () => {
|
|
91
|
+
const i = this?.profileControlAvatarProps, o = this?.profileControlTitle;
|
|
92
|
+
return i?.text ?? K({ headerTitle: o });
|
|
93
|
+
}, this.hasHeaderItem = () => {
|
|
94
|
+
const i = this?.headerItem;
|
|
95
|
+
return !(!this?.headerVisible || !(i?.avatarVisible || i?.avatarProps && Object.keys(i).length > 0 || i?.headerSupportingText || i?.headerTitle));
|
|
96
|
+
}, this.hasMenu = () => !!(this?.profileMenuItems && this.profileMenuItems.length > 0 || this.hasHeaderItem()), this.handleDocumentClick = (i) => {
|
|
97
|
+
this.isMenuExpanded && (i.composedPath().includes(this.hostElement) || (this.isMenuExpanded = !1));
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
idChanged(e) {
|
|
101
|
+
this.id = e;
|
|
102
|
+
}
|
|
103
|
+
profileControlAppearanceChanged(e) {
|
|
104
|
+
this.profileControlAppearance = e;
|
|
105
|
+
}
|
|
106
|
+
profileControlAvatarPropsChanged(e) {
|
|
107
|
+
this.profileControlAvatarProps = e;
|
|
108
|
+
}
|
|
109
|
+
expansionChanged(e) {
|
|
110
|
+
this.expanded = e, this.isMenuExpanded = e;
|
|
111
|
+
}
|
|
112
|
+
profileControlAvatarVisibleChanged(e) {
|
|
113
|
+
this.profileControlAvatarVisible = e;
|
|
114
|
+
}
|
|
115
|
+
profileControlAvatarBadgeVisibleChanged(e) {
|
|
116
|
+
this.profileControlAvatarBadgeVisible = e;
|
|
117
|
+
}
|
|
118
|
+
profileControlBorderRadiusChanged(e) {
|
|
119
|
+
this.profileControlBorderRadius = e;
|
|
120
|
+
}
|
|
121
|
+
profileControlShadowChanged(e) {
|
|
122
|
+
this.profileControlShadow = e;
|
|
123
|
+
}
|
|
124
|
+
listSectionDividerVisibleChanged(e) {
|
|
125
|
+
this.listSectionDividerVisible = e;
|
|
126
|
+
}
|
|
127
|
+
profileControlLeadingIconChanged(e) {
|
|
128
|
+
this.profileControlLeadingIcon = e;
|
|
129
|
+
}
|
|
130
|
+
profileControlTrailingIconChanged(e) {
|
|
131
|
+
this.profileControlTrailingIcon = e;
|
|
132
|
+
}
|
|
133
|
+
profileControlTitleChanged(e) {
|
|
134
|
+
this.profileControlTitle = e;
|
|
135
|
+
}
|
|
136
|
+
profileControlSupportingTextChanged(e) {
|
|
137
|
+
this.profileControlSupportingText = e;
|
|
138
|
+
}
|
|
139
|
+
headerDividerVisibleChanged(e) {
|
|
140
|
+
this.headerDividerVisible = e;
|
|
141
|
+
}
|
|
142
|
+
headerItemChanged(e) {
|
|
143
|
+
this.headerItem = e;
|
|
144
|
+
}
|
|
145
|
+
headerVisibleChanged(e) {
|
|
146
|
+
this.headerVisible = e;
|
|
147
|
+
}
|
|
148
|
+
profileMenuItemsChanged(e) {
|
|
149
|
+
this.profileMenuItems = e;
|
|
150
|
+
}
|
|
151
|
+
connectedCallback() {
|
|
152
|
+
this.isMenuExpanded = this?.expanded ?? !1;
|
|
153
|
+
}
|
|
154
|
+
componentDidLoad() {
|
|
155
|
+
document.addEventListener("click", this.handleDocumentClick);
|
|
156
|
+
}
|
|
157
|
+
componentDidRender() {
|
|
158
|
+
this.isMenuExpanded && this.hasMenu() && requestAnimationFrame((() => {
|
|
159
|
+
this.positionProfileMenu();
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
disconnectedCallback() {
|
|
163
|
+
document.removeEventListener("click", this.handleDocumentClick);
|
|
164
|
+
}
|
|
165
|
+
render() {
|
|
166
|
+
const e = this?.profileControlAppearance ?? "default", i = this?.profileControlAvatarProps, o = i?.badgeProps, a = this?.profileControlAvatarVisible ?? !1, l = this?.profileControlAvatarBadgeVisible ?? !1, g = this?.profileControlBorderRadius ?? "none", s = this?.profileControlShadow ?? "none", n = this?.profileControlLeadingIcon, d = this?.profileControlTrailingIcon, f = this?.profileControlTitle ?? "", p = this?.profileControlSupportingText ?? "", t = this?.profileMenuItems ?? [], _ = this?.headerDividerVisible ?? !1, x = this?.headerVisible ?? !1, y = this?.headerItem, I = this?.listSectionDividerVisible ?? !1, w = this?.menuId, h = this?.isMenuExpanded ?? !1, u = this.hasMenu(), k = this?.profileControlLeadingIconSize ?? "sm", T = this?.profileControlTrailingIconSize ?? "sm", P = this?.profileControlLeadingIconAppearance ?? "filled", V = this?.profileControlTrailingIconAppearance ?? "filled", A = W({ profileControlAppearance: e, profileControlBorderRadius: g, profileControlShadow: s, expanded: h && u }), S = i?.size ?? "sm", { titleClasses: M, supportingTextClasses: D } = J({ profileControlAppearance: e });
|
|
167
|
+
let v = i?.color ?? "brand";
|
|
168
|
+
return e === "brand" && (v = i?.color ?? "default"), r(L, { key: "e3b93542314bfff5a8f7c901b83fb66aa6339df5", class: A, onClick: this.onProfileControlPress, "menu-expanded": h }, n ? r(b, { name: n, size: k, appearance: P }) : void 0, r("div", { key: "4d9c9cb57ead65b8f9df399f1aca1588d34d9746", class: "gids-profile__main-container" }, a ? r(H, { appearance: i?.appearance ?? "text", color: v, size: S, text: this.getProfileControlAvatarText(), imageSrc: i?.imageSrc ?? "", alt: i?.alt ?? "alt-img", badge: l ? r(j, { appearance: o?.appearance ?? "information", type: o?.type, count: o?.count, outline: o?.outline }) : void 0 }) : void 0, r("div", { key: "0f77df6a414da0a0c4322aff50790354ff43d0a0", class: "gids-profile__content-container" }, r("span", { key: "a5b101bb070f00b90615e5589f31db479d0c9dc2", class: M }, f), r("p", { key: "d55873ea2defcd4d456a513daecc8e3e907984fe", class: D }, p))), d ? r(b, { name: d, size: T, appearance: V }) : void 0, u && h ? r("div", { class: "gids-profile__dropdown-menu-container", id: w, role: "profilePickerbox", onClick: (E) => E.stopPropagation() }, r("gids-profile-menu", { headerItem: y, headerDividerVisible: _, headerVisible: x, listSectionDividerVisible: I, profileMenuItems: t, onHeaderAvatarPress: this.onHeaderAvatarPress, onHeaderTitlePress: this.onHeaderTitlePress, onHeaderSupportingTextPress: this.onHeaderSupportingTextPress, onProfileMenuItemPress: this.onPressProfileMenuItem })) : void 0);
|
|
169
|
+
}
|
|
170
|
+
get hostElement() {
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
static get watchers() {
|
|
174
|
+
return { id: [{ idChanged: 0 }], profileControlAppearance: [{ profileControlAppearanceChanged: 0 }], profileControlAvatarProps: [{ profileControlAvatarPropsChanged: 0 }], expanded: [{ expansionChanged: 0 }], profileControlAvatarVisible: [{ profileControlAvatarVisibleChanged: 0 }], profileControlAvatarBadgeVisible: [{ profileControlAvatarBadgeVisibleChanged: 0 }], profileControlBorderRadius: [{ profileControlBorderRadiusChanged: 0 }], profileControlShadow: [{ profileControlShadowChanged: 0 }], listSectionDividerVisible: [{ listSectionDividerVisibleChanged: 0 }], profileControlLeadingIcon: [{ profileControlLeadingIconChanged: 0 }], profileControlTrailingIcon: [{ profileControlTrailingIconChanged: 0 }], profileControlTitle: [{ profileControlTitleChanged: 0 }], profileControlSupportingText: [{ profileControlSupportingTextChanged: 0 }], headerDividerVisible: [{ headerDividerVisibleChanged: 0 }], headerItem: [{ headerItemChanged: 0 }], headerVisible: [{ headerVisibleChanged: 0 }], profileMenuItems: [{ profileMenuItemsChanged: 0 }] };
|
|
175
|
+
}
|
|
176
|
+
static get style() {
|
|
177
|
+
return ".gids-profile{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--gids-gap-150);cursor:pointer;background-color:var(--gids-color-background-neutral-default);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200);--gidsIcon-color:var(--gids-color-icon-subtle);border-radius:var(--gids-border-radius-none)}.gids-profile:hover{background-color:var(--gids-color-background-neutral-hovered)}.gids-profile:active{background-color:var(--gids-color-background-neutral-pressed)}.gids-profile__main-container{display:flex;align-items:center;flex:1;gap:var(--gids-gap-100)}.gids-profile__content-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.gids-profile__title-typography{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit)}.gids-profile__supporting-text-typography{margin:0;padding:0;font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-profile__title-default{color:var(--gids-color-text-default)}.gids-profile__supporting-text-default{color:var(--gids-color-text-subtlest)}.gids-profile__title-brand{color:var(--gids-color-text-default)}.gids-profile__supporting-text-brand{color:var(--gids-color-text-subtlest)}.gids-profile__title-subtle{color:var(--gids-color-text-default)}.gids-profile__supporting-text-subtle{color:var(--gids-color-text-subtlest)}.gids-profile__title-positive{color:var(--gids-color-text-default)}.gids-profile__supporting-text-positive{color:var(--gids-color-text-subtlest)}.gids-profile__title-information{color:var(--gids-color-text-default)}.gids-profile__supporting-text-information{color:var(--gids-color-text-subtlest)}.gids-profile__title-warning{color:var(--gids-color-text-default)}.gids-profile__supporting-text-warning{color:var(--gids-color-text-subtlest)}.gids-profile__title-danger{color:var(--gids-color-text-default)}.gids-profile__supporting-text-danger{color:var(--gids-color-text-subtlest)}.gids-profile--appearance-brand{background-color:var(--gids-color-background-brand-subtlest-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-brand:hover{background-color:var(--gids-color-background-brand-subtlest-hovered)}.gids-profile--appearance-brand:active{background-color:var(--gids-color-background-brand-subtlest-pressed)}.gids-profile--appearance-danger{background-color:var(--gids-color-background-danger-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-danger:hover{background-color:var(--gids-color-background-danger-hovered)}.gids-profile--appearance-danger:active{background-color:var(--gids-color-background-danger-pressed)}.gids-profile--appearance-information{background-color:var(--gids-color-background-information-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-information:hover{background-color:var(--gids-color-background-information-hovered)}.gids-profile--appearance-information:active{background-color:var(--gids-color-background-information-pressed)}.gids-profile--appearance-positive{background-color:var(--gids-color-background-positive-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-positive:hover{background-color:var(--gids-color-background-positive-hovered)}.gids-profile--appearance-positive:active{background-color:var(--gids-color-background-positive-pressed)}.gids-profile--appearance-subtle{background-color:var(--gids-color-background-neutral-subtle-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-subtle:hover{background-color:var(--gids-color-background-neutral-subtle-hovered)}.gids-profile--appearance-subtle:active{background-color:var(--gids-color-background-neutral-subtle-pressed)}.gids-profile--appearance-warning{background-color:var(--gids-color-background-warning-default);--gidsIcon-color:var(--gids-color-icon-subtle)}.gids-profile--appearance-warning:hover{background-color:var(--gids-color-background-warning-hovered)}.gids-profile--appearance-warning:active{background-color:var(--gids-color-background-warning-pressed)}.gids-profile--border-radius-sm{border-radius:var(--gids-border-radius-sm)}.gids-profile--border-radius-md{border-radius:var(--gids-border-radius-md)}.gids-profile--border-radius-lg{border-radius:var(--gids-border-radius-lg)}.gids-profile--border-radius-full{border-radius:var(--gids-border-radius-full)}.gids-profile--shadow-overflow{box-shadow:var(--gids-elevation-shadow-overflow)}.gids-profile--shadow-overlay{box-shadow:var(--gids-elevation-shadow-overlay)}.gids-profile--shadow-raised{box-shadow:var(--gids-elevation-shadow-raised)}.gids-profile__dropdown-menu-container{position:absolute;left:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-profile__dropdown-menu-container>*{flex-shrink:0}.gids-profile--expanded .gids-profile__dropdown-menu-container{display:flex}.gids-profile--expanded .gids-profile__chevron{transform:rotate(180deg)}";
|
|
178
|
+
}
|
|
179
|
+
}, [0, "gids-profile", { id: [1], menuId: [1, "menu-id"], expanded: [4], profileControlAppearance: [1, "profile-control-appearance"], profileControlAvatarProps: [16], profileControlAvatarVisible: [4, "profile-control-avatar-visible"], profileControlAvatarBadgeVisible: [4, "profile-control-avatar-badge-visible"], profileControlBorderRadius: [1, "profile-control-border-radius"], profileControlShadow: [1, "profile-control-shadow"], profileControlLeadingIcon: [1, "profile-control-leading-icon"], profileControlTrailingIcon: [1, "profile-control-trailing-icon"], profileControlLeadingIconSize: [1, "profile-control-leading-icon-size"], profileControlTrailingIconSize: [1, "profile-control-trailing-icon-size"], profileControlLeadingIconAppearance: [1, "profile-control-leading-icon-appearance"], profileControlTrailingIconAppearance: [1, "profile-control-trailing-icon-appearance"], profileControlTitle: [1, "profile-control-title"], profileControlSupportingText: [1, "profile-control-supporting-text"], profileMenuItems: [16], headerDividerVisible: [4, "header-divider-visible"], headerVisible: [4, "header-visible"], headerItem: [16], listSectionDividerVisible: [4, "list-section-divider-visible"], onHeaderAvatarPress: [16], onHeaderTitlePress: [16], onHeaderSupportingTextPress: [16], onProfileMenuItemPress: [16], onPressProfileControl: [16], isMenuExpanded: [32] }, void 0, { id: [{ idChanged: 0 }], profileControlAppearance: [{ profileControlAppearanceChanged: 0 }], profileControlAvatarProps: [{ profileControlAvatarPropsChanged: 0 }], expanded: [{ expansionChanged: 0 }], profileControlAvatarVisible: [{ profileControlAvatarVisibleChanged: 0 }], profileControlAvatarBadgeVisible: [{ profileControlAvatarBadgeVisibleChanged: 0 }], profileControlBorderRadius: [{ profileControlBorderRadiusChanged: 0 }], profileControlShadow: [{ profileControlShadowChanged: 0 }], listSectionDividerVisible: [{ listSectionDividerVisibleChanged: 0 }], profileControlLeadingIcon: [{ profileControlLeadingIconChanged: 0 }], profileControlTrailingIcon: [{ profileControlTrailingIconChanged: 0 }], profileControlTitle: [{ profileControlTitleChanged: 0 }], profileControlSupportingText: [{ profileControlSupportingTextChanged: 0 }], headerDividerVisible: [{ headerDividerVisibleChanged: 0 }], headerItem: [{ headerItemChanged: 0 }], headerVisible: [{ headerVisibleChanged: 0 }], profileMenuItems: [{ profileMenuItemsChanged: 0 }] }]);
|
|
180
|
+
function m() {
|
|
181
|
+
typeof customElements < "u" && ["gids-profile", "gids-profile-menu", "gids-profile-menu-header"].forEach(((e) => {
|
|
182
|
+
switch (e) {
|
|
183
|
+
case "gids-profile":
|
|
184
|
+
customElements.get(c(e)) || customElements.define(c(e), C);
|
|
185
|
+
break;
|
|
186
|
+
case "gids-profile-menu":
|
|
187
|
+
customElements.get(c(e)) || G();
|
|
188
|
+
break;
|
|
189
|
+
case "gids-profile-menu-header":
|
|
190
|
+
customElements.get(c(e)) || $();
|
|
191
|
+
}
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
m();
|
|
195
|
+
const ie = C, oe = m;
|
|
196
|
+
export {
|
|
197
|
+
ie as GidsProfile,
|
|
198
|
+
oe as defineCustomElement
|
|
199
|
+
};
|
|
@@ -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: "dfe5f3ca193fe3c81b79d43391052b06103de249", class: this.activeClasses, part: "root" }, e("slot", { key: "ae8ccbb1edf80ba2913c0af0bf06674a81e9e679" }));
|
|
20
20
|
}
|
|
21
21
|
get _el() {
|
|
22
22
|
return this;
|
|
@@ -22,7 +22,7 @@ const u = ({ variant: e, animation: t }) => g("gids-skeleton", {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
const e = m({ variant: this.variant ?? "text", animation: this.animation ?? "none" });
|
|
25
|
-
return d(l, { key: "
|
|
25
|
+
return d(l, { key: "08f348685310371a41275cc52d9142b2bc50c01e", class: e, style: this.getStyle(), "aria-hidden": "true" });
|
|
26
26
|
}
|
|
27
27
|
static get style() {
|
|
28
28
|
return 'gids-skeleton,.gids-skeleton-host{--gidsSkeleton-background:var( --gids-color-background-accent-9-subtle-default );--gidsSkeleton-wave-background:linear-gradient( 90deg, transparent 0%, var(--gids-color-background-accent-9-subtler-default) 50%, transparent 100% );--gidsSkeleton-text-border-radius:var(--gids-border-radius-sm);--gidsSkeleton-border-radius:var(--gids-border-radius-md);display:inline-block;position:relative;vertical-align:middle;background-color:var(--gidsSkeleton-background);overflow:hidden;width:auto;height:auto}.gids-skeleton--variant-text{border-radius:var(--gidsSkeleton-text-border-radius);min-height:1.2em;transform:scaleY(0.6);transform-origin:0 50%}.gids-skeleton--variant-circular{border-radius:100% !important;aspect-ratio:1/1}.gids-skeleton--variant-rectangular{border-radius:0}.gids-skeleton--variant-rounded{border-radius:var(--gidsSkeleton-border-radius)}.gids-skeleton--animation-none{animation:none}.gids-skeleton--animation-pulse{animation:gids-skeleton-pulse 1.5s ease-in-out infinite}.gids-skeleton--animation-wave::after{content:"";position:absolute;inset:0;width:100%;height:100%;background:var(--gidsSkeleton-wave-background);transform:translateX(-100%);animation:gids-skeleton-wave 1.6s linear infinite}@keyframes gids-skeleton-pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes gids-skeleton-wave{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}@media (prefers-reduced-motion: reduce){.gids-skeleton--animation-pulse{animation:none}.gids-skeleton--animation-wave::after{animation:none}}';
|
|
@@ -1,27 +1,10 @@
|
|
|
1
|
-
import { L as
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
__proto__: null,
|
|
6
|
-
getDisplayContent: k,
|
|
7
|
-
maxCount: o,
|
|
8
|
-
shouldIncludeA11yText: y
|
|
9
|
-
}, Symbol.toStringTag, { value: "Module" })), C = ({ appearance: e, type: a, outline: i }, t) => g("gids-badge", {
|
|
10
|
-
"gids-badge--danger": e === "danger",
|
|
11
|
-
"gids-badge--positive": e === "positive",
|
|
12
|
-
"gids-badge--warning": e === "warning",
|
|
13
|
-
"gids-badge--inverse": e === "inverse"
|
|
14
|
-
}, {
|
|
15
|
-
"gids-badge--dot": a === "dot"
|
|
16
|
-
}, {
|
|
17
|
-
"gids-badge--outline": i
|
|
18
|
-
}, t), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
|
-
__proto__: null,
|
|
20
|
-
getGidsBadgeClassNames: C
|
|
21
|
-
}, Symbol.toStringTag, { value: "Module" })), x = ({ appearance: e, width: a = "intrinsic", active: i }, t) => g("gids-tab-item", {
|
|
1
|
+
import { L as n, u as l, D as r, P as g, q as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { p as b } from "./p-CXFvqDBs-offadaUn.js";
|
|
3
|
+
import { c as v } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const h = ({ appearance: e, width: t = "intrinsic", active: i }, o) => v("gids-tab-item", {
|
|
22
5
|
// Widths
|
|
23
6
|
// 'gids-tab-item--intrinsic': width === 'intrinsic', // By default so not needed
|
|
24
|
-
"gids-tab-item--full":
|
|
7
|
+
"gids-tab-item--full": t === "full",
|
|
25
8
|
// Apperances on active
|
|
26
9
|
"gids-tab-item--active-default": e === "default" && i,
|
|
27
10
|
"gids-tab-item--active-primary": e === "primary" && i,
|
|
@@ -34,13 +17,10 @@ const o = 99, y = (e, a, i) => e === "dot" || a !== void 0 && a > o || i, k = (e
|
|
|
34
17
|
"gids-tab-item--bordered": e === "bordered" && !i,
|
|
35
18
|
"gids-tab-item--underlined": e === "underlined" && !i,
|
|
36
19
|
"gids-tab-item--subtle": e === "subtle" && !i
|
|
37
|
-
},
|
|
20
|
+
}, o), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
21
|
__proto__: null,
|
|
39
|
-
getGidsTabItemClassNames:
|
|
40
|
-
}, Symbol.toStringTag, { value: "Module" })), {
|
|
41
|
-
const s = w(a, i, n(t));
|
|
42
|
-
return r("span", { class: A({ appearance: e, type: a, outline: d }, v), ...h }, s && r("span", { class: "gids-visually-hidden" }, n(t) ? t : i), a === "notification" ? s ? r("span", { "aria-hidden": "true" }, l(i, t)) : l(i, t) : null);
|
|
43
|
-
}, { getGidsTabItemClassNames: B } = T, b = m(class extends p {
|
|
22
|
+
getGidsTabItemClassNames: h
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTabItemClassNames: m } = u, s = n(class extends l {
|
|
44
24
|
constructor(e) {
|
|
45
25
|
super(), e !== !1 && this.__registerHost(), this.active = !1, this.width = "intrinsic", this.appearance = "default", this.badgeVisible = !1, this.badgeAppearance = "information", this.badgeType = "dot", this.hasLeadingIcon = !1, this.hasTrailingIcon = !1, this.handleHostClick = () => {
|
|
46
26
|
this.onPressGidsTabItem && this.onPressGidsTabItem({ itemId: this.itemId, label: this?.label ?? "", active: this?.active ?? !1, appearance: this?.appearance ?? "default", name: this?.name, badgeCount: this?.badgeCount ?? 0 });
|
|
@@ -74,8 +54,8 @@ const o = 99, y = (e, a, i) => e === "dot" || a !== void 0 && a > o || i, k = (e
|
|
|
74
54
|
this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconTabItem"]'), this.hasTrailingIcon = !!this.hostElement.querySelector('[slot="trailingIconTabItem"]');
|
|
75
55
|
}
|
|
76
56
|
render() {
|
|
77
|
-
const e =
|
|
78
|
-
return r(
|
|
57
|
+
const e = m({ appearance: this.appearance, width: this.width, active: this.active }), t = this.hasTrailingIcon, i = this.badgeVisible, o = this.appearance === "primary" && this.active ? "inverse" : this.badgeAppearance ?? "information", a = this.label;
|
|
58
|
+
return r(g, { key: "77199a879f06e13e122300708079ec317e0b2054", class: e, onClick: this.handleHostClick }, this.hasLeadingIcon ? r("slot", { name: "leadingIconTabItem" }) : void 0, a && a !== "" ? r("span", { class: "gids-tab-item__label" }, a && a !== "" ? a : void 0, i ? r(b, { appearance: o, type: this.badgeType, count: this.badgeCount }) : void 0) : void 0, t ? r("slot", { name: "trailingIconTabItem" }) : void 0);
|
|
79
59
|
}
|
|
80
60
|
get hostElement() {
|
|
81
61
|
return this;
|
|
@@ -87,14 +67,14 @@ const o = 99, y = (e, a, i) => e === "dot" || a !== void 0 && a > o || i, k = (e
|
|
|
87
67
|
return ".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);white-space:nowrap;flex-shrink:0;cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);display:flex;justify-content:center;align-items:center;flex:1;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}";
|
|
88
68
|
}
|
|
89
69
|
}, [260, "gids-tab-item", { itemId: [1, "item-id"], label: [1], active: [4], name: [1], width: [1], appearance: [1], badgeVisible: [4, "badge-visible"], badgeAppearance: [1, "badge-appearance"], badgeCount: [2, "badge-count"], badgeType: [1, "badge-type"], onPressGidsTabItem: [16], hasLeadingIcon: [32], hasTrailingIcon: [32] }, void 0, { width: [{ handleWidthChange: 0 }], appearance: [{ handleAppearanceChange: 0 }], badgeVisible: [{ handleBadgeVisibilityChange: 0 }], badgeAppearance: [{ handleBadgeAppearanceChange: 0 }], badgeType: [{ handleBadgeTypeChange: 0 }], active: [{ handleActiveChange: 0 }] }]);
|
|
90
|
-
function
|
|
70
|
+
function c() {
|
|
91
71
|
typeof customElements < "u" && ["gids-tab-item"].forEach(((e) => {
|
|
92
|
-
e === "gids-tab-item" && (customElements.get(
|
|
72
|
+
e === "gids-tab-item" && (customElements.get(d(e)) || customElements.define(d(e), s));
|
|
93
73
|
}));
|
|
94
74
|
}
|
|
95
|
-
|
|
96
|
-
const
|
|
75
|
+
c();
|
|
76
|
+
const y = s, I = c;
|
|
97
77
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
y as GidsTabItem,
|
|
79
|
+
I as defineCustomElement
|
|
100
80
|
};
|
|
@@ -4,10 +4,10 @@ const o = ({ width: e, appearance: t }, d) => l("gids-tab", {
|
|
|
4
4
|
"gids-tab--full": e === "full",
|
|
5
5
|
"gids-tab--item-subtle": t === "subtle",
|
|
6
6
|
"gids-tab--item-underlined": t === "underlined"
|
|
7
|
-
}, d),
|
|
7
|
+
}, d), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
8
|
__proto__: null,
|
|
9
9
|
getGidsTabClassNames: o
|
|
10
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsTabClassNames:
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTabClassNames: b } = p, i = r(class extends h {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
super(), e !== !1 && this.__registerHost(), this.width = "intrinsic", this.appearance = "default";
|
|
13
13
|
}
|
|
@@ -37,8 +37,8 @@ const o = ({ width: e, appearance: t }, d) => l("gids-tab", {
|
|
|
37
37
|
return e === this.activeTabId;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
const e =
|
|
41
|
-
return a(c, { key: "
|
|
40
|
+
const e = b({ width: this.width, appearance: this.appearance });
|
|
41
|
+
return a(c, { key: "5354ec9e19dda3898ad0cf9ef533b1ea58200677", class: e }, a("slot", { key: "676abaabb312f31ccf02c88e260930b052e88ae4" }));
|
|
42
42
|
}
|
|
43
43
|
get hostElement() {
|
|
44
44
|
return this;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { L as u, u as
|
|
1
|
+
import { L as u, u as h, z as c, C as b, D as i, q as s } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as f } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { a as m } from "./p-Dg2yoUxw-DliMstZy.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-DbaNvRpS-r7kCW1TY.js";
|
|
6
|
+
import { r as x } from "./p-u06XOrpj-C1tNznDd.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))
|
|
@@ -24,9 +24,9 @@ const v = (e, t) => {
|
|
|
24
24
|
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } = n, 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 } = n, { inputToGidsFieldStatus: O } = C, a = u(class extends
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } = n, { inputToGidsFieldStatus: O } = C, a = u(class extends h {
|
|
28
28
|
constructor(e) {
|
|
29
|
-
super(), e !== !1 && this.__registerHost(), this.gidsTextFieldClear =
|
|
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");
|
|
31
31
|
t && (t.value = "", t.dispatchEvent(new globalThis.Event("input", { bubbles: !0 }))), this.value = "", this.gidsTextFieldClear.emit();
|
|
32
32
|
}, this._handleInput = (t) => {
|
|
@@ -51,7 +51,7 @@ const v = (e, t) => {
|
|
|
51
51
|
#t;
|
|
52
52
|
render() {
|
|
53
53
|
const { id: e, ...t } = this.inputProps ?? {}, l = e ?? this.#e, d = this.showClearButton && this.value !== void 0 && this.value.length > 0;
|
|
54
|
-
return i("gids-field", { key: "
|
|
54
|
+
return i("gids-field", { key: "755613fad9d6baa0ab16ca275c03bd2706267ae7", disabled: this.disabled, count: F(this.value?.length, this.maxLength), helperText: this.helperText, statusText: this.statusText, status: O(this.status) }, i(m, { key: "718e5db74be209992a9619961900d0733cc60d7c", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: l }, this.label), i("gids-input", { key: "82856ad3d01f9169363874b85b02fa3e768cf98d", 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: l, maxLength: this.maxLength } }, i("slot", { key: "3a23511b1ec0c425be03a18f43339461c86817f7", name: "leadingIcon" }), i("slot", { key: "5385e6a7e431d74f206a9c5d2ed046e27d819d63", name: "leadingAccessory" }), d && i(p, { key: "40850120edf5cb18bb375f6b533337c382cb5c88", label: "clear text", slot: "trailingAccessory", size: "lg", onPressDismiss: this._handleDismiss }), i("slot", { key: "8bcb3c2d07ed017bba2dc6908b0f9d9fe2c83698", name: "trailingIcon" })));
|
|
55
55
|
}
|
|
56
56
|
get _el() {
|
|
57
57
|
return this;
|
|
@@ -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: "c14b56ca31e84fff6f2103c65065599da3ba8bae" }, e("slot", { key: "74268ecacbe214d6c36cfd5c0ce2bdb63ed7aaea" }), e("span", { key: "0c9a6e5366414ab0fd43abb7e00e031b1f771171", id: "tooltip", part: "tooltip", role: "tooltip" }, e("span", { key: "8dfdd09262cdf5da5a4b5bd778a9ce60d68a2cba", id: "arrow" }), this.tooltipText));
|
|
42
42
|
}
|
|
43
43
|
disconnectedCallback() {
|
|
44
44
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as b, u as _, D as a, P as x, q as p } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as T } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
-
import { v as L, b as C, _ as H } from "./p-
|
|
3
|
+
import { v as L, b as C, _ as H } from "./p-BrYLEey4-DuajY4uD.js";
|
|
4
4
|
import { d as m } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
5
5
|
import { o } from "./p-UVmSPzTd-CR1higgJ.js";
|
|
6
6
|
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
@@ -165,10 +165,10 @@ const k = (t) => f("gids-checkbox-control", t), A = /* @__PURE__ */ Object.freez
|
|
|
165
165
|
}
|
|
166
166
|
render() {
|
|
167
167
|
const t = P(), e = this?.leftListItemsState ?? [], s = this?.rightListItemsState ?? [], n = this.listsMaxHeight, l = this?.transferListType ?? "basic";
|
|
168
|
-
return a(x, { key: "
|
|
168
|
+
return a(x, { key: "af23abfc25ed74922553ae77014870db27db3c65", class: t }, a("div", { key: "ed2e464e328f851b78fbdf06a386ea67f04fa5f6", class: "gids-transfer-list__left-container" }, a(I, { key: "f75ad46e1a6195442c9e15620f6ec5fb448c7cb8", type: e.length > 0 ? "default" : "no-options" }, a(S, { key: "e0dceb20b685a58bb9cd66694e7d3ca3f10ced97", heading: this.renderListHeading("left"), style: { "--gidsMenuChildren-max-height": n }, isHeaderDividerVisible: l !== "basic" }, e.map(((i, r) => {
|
|
169
169
|
const h = i?.id ? i.id : "" + (r + 1), d = this.isItemSelected({ id: h, listSide: "left" });
|
|
170
170
|
return a(L, { id: "" + h, index: r, leadingAccessory: a(c, { checked: d }), selected: d, onPressListItem: (g) => this.onPressingListItem({ event: g, pressedIndex: r, listSide: "left" }) }, i?.listLabel);
|
|
171
|
-
}))))), a("div", { key: "
|
|
171
|
+
}))))), a("div", { key: "63725e88ac2db5e9277897f3ff769a55a4ed816b", class: "gids-transfer-list__middle-container" }, a(o, { key: "197bf107f9f20676aaf700ec10d06a7b891043a5", leadingIcon: a(m, { name: "forward" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "left", movementType: "move-all" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "left", movementType: "move-all" }) }), a(o, { key: "71b9b8a578b7696ad120a64b3a25d4f0e58a3a81", leadingIcon: a(m, { name: "chevron-right" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "left", movementType: "move-single" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "left", movementType: "move-single" }) }), a(o, { key: "4031bdec3c01724f79c28e0dec5aaac74a2b0dd2", leadingIcon: a(m, { name: "chevron-left" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "right", movementType: "move-single" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "right", movementType: "move-single" }) }), a(o, { key: "9fe6a2e20beceab388d0ae64716ee4c81d1a3c9f", leadingIcon: a(m, { name: "backward" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "right", movementType: "move-all" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "right", movementType: "move-all" }) })), a("div", { key: "ac2254cd42151847242c01873c57fe6e79e5a761", class: "gids-transfer-list__right-container" }, a(I, { key: "5d15916805476badca7fbb53b8b93b58adf07c2b", type: s.length > 0 ? "default" : "no-options" }, a(S, { key: "cbdb401f8e6517b2de5b7d8c12a2acc6742501b3", heading: this.renderListHeading("right"), style: { "--gidsMenuChildren-max-height": n }, isHeaderDividerVisible: l !== "basic" }, s.map(((i, r) => {
|
|
172
172
|
const h = i?.id ? i.id : "" + (r + 1), d = this.isItemSelected({ id: h, listSide: "right" });
|
|
173
173
|
return a(L, { id: "" + h, index: r, selected: d, leadingAccessory: a(c, { checked: d }), onPressListItem: (g) => this.onPressingListItem({ event: g, pressedIndex: r, listSide: "right" }) }, i?.listLabel);
|
|
174
174
|
}))))));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { p as d } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
+
import { _ as u } from "./p-BrYLEey4-DuajY4uD.js";
|
|
4
|
+
import { c as t } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const p = ({ type: o }, e) => t("gids-dropdown-menu-group", {
|
|
6
|
+
"gids-dropdown-menu-group--default": o === "default",
|
|
7
|
+
// by default so no need to have this class
|
|
8
|
+
"gids-dropdown-menu-group--no-options": o === "no-options",
|
|
9
|
+
"gids-dropdown-menu-group--loading": o === "loading"
|
|
10
|
+
}, e), i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
getGidsDropdownMenuGroupClassNames: p
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), a = (o) => t("gids-dropdown-menu", o), g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
+
__proto__: null,
|
|
15
|
+
getGidsDropdownMenuClassNames: a
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownMenuGroupClassNames: m } = i, y = ({ type: o = "no-options", supportingText: e = "No options", class: r, ...s }, l) => n("div", { class: m({ type: o }, r), ...s }, o === "loading" ? n(d, { indeterminate: !0, size: "md" }) : null, o === "no-options" ? n("span", null, e) : null, o === "default" && l != null ? l : null), { getGidsDropdownMenuClassNames: c } = g, G = ({ sectionLabel: o, class: e, ...r }, s) => n("div", { class: c(e), ...r }, o != null && o !== "" ? n(u, { supportingText: o, supportingTextTypography: "eyebrow-medium" }) : null, s != null ? n("div", { class: "gids-dropdown-menu__children" }, s) : null);
|
|
17
|
+
export {
|
|
18
|
+
G as a,
|
|
19
|
+
y as i
|
|
20
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as f, L as g, u as v, D as c } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as p } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
-
import { o as I } from "./p-
|
|
3
|
+
import { o as I } from "./p-CZBiavxU-CIstIm2b.js";
|
|
4
4
|
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const S = ({ expanded: h }, e) => y("gids-filter", {
|
|
6
6
|
"gids-filter--expanded": h
|
|
@@ -142,7 +142,7 @@ const F = g((s = class extends v {
|
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
144
|
const e = this.expanded && this.isInteractive(), t = E({ expanded: e }), l = this.isMenuToggler(), i = typeof this.filterPickerId == "string" ? this.filterPickerId : void 0, n = i ? `${i}__menu` : void 0, r = this.selectedItemTitle ?? this.value ?? "", d = this.type === "more", a = this.type === "all", o = this.type === "none";
|
|
145
|
-
return c("div", { key: "
|
|
145
|
+
return c("div", { key: "aa082f2f93cbc5869b3acce1a99cb4c5780ae6f6", class: t, "aria-control": n ?? "" }, c("gids-toggle-button", { key: "c57d59c1948339b383efbfd8a63787a8e2535cb6", id: i, name: this.name, expanded: e, value: r, disabled: this.disabled, size: this.size, loading: this.loading, tabIndex: this.filterIndex, defaultSelected: this.filterDefaultSelected, selected: this.filterSelected, onSelect: this.handleFilterButtonClickToggle }, d || a ? c(p, { name: d ? "options" : "filter", size: this.size, appearance: "regular", alt: "", slot: "leadingIcon" }) : void 0, o || a ? r : void 0, l && !d ? c(p, { name: "chevron-down", size: this.size, appearance: "regular", alt: "", slot: "trailingIcon" }) : void 0), c("div", { key: "7b1e38aa0148d9d515e398348629cf6ba151811e", class: "gids-filter__menu", id: n, role: "pickerbox", onClick: this.handleMenuClick }, c("slot", { key: "5d899b61e19ef3c149ec3a32c505ff3653aa5430", onSlotchange: () => this.evaluateSlottedMenuExistence() })));
|
|
146
146
|
}
|
|
147
147
|
get hostElement() {
|
|
148
148
|
return this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as l, L as u, u as p, D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as m } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
-
import { r as g } from "./p-
|
|
3
|
+
import { r as g } from "./p-u06XOrpj-C1tNznDd.js";
|
|
4
4
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
6
6
|
"gids-dropdown--expanded": e
|
|
@@ -12,13 +12,13 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
12
12
|
__proto__: null,
|
|
13
13
|
getGidsChevronButtonControlClassNames: f,
|
|
14
14
|
getGidsDropdownClassNames: v
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames:
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: b, getGidsChevronButtonControlClassNames: I } = y, h = "gids-dropdown-item--active", E = u(class extends p {
|
|
16
16
|
constructor(e) {
|
|
17
17
|
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.expanded = !1, this.filterValue = "", this.isFilterEditing = !1, this.hasLeadingIcon = !1, this.hasLeadingAccessory = !1, this.activeIndex = -1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.hasPendingControlRevalidation = !1, this.handleDropdownItemSelect = (t) => {
|
|
18
|
-
const { value: i, title: n, disabled: s, id: o, isPlaceholderItem:
|
|
18
|
+
const { value: i, title: n, disabled: s, id: o, isPlaceholderItem: d } = t.detail;
|
|
19
19
|
s || typeof i != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
20
20
|
this.suppressNextMenuClickSelection = !1;
|
|
21
|
-
})), this.applySelection({ id: o, value: i, title: n, disabled: !1, originalEvent: t, isPlaceholderItem:
|
|
21
|
+
})), this.applySelection({ id: o, value: i, title: n, disabled: !1, originalEvent: t, isPlaceholderItem: d }));
|
|
22
22
|
}, this.handleMenuClick = (t) => {
|
|
23
23
|
if (this.suppressNextMenuClickSelection) return;
|
|
24
24
|
const i = t.target;
|
|
@@ -29,9 +29,9 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
29
29
|
if (typeof s != "string" || s.length === 0) return;
|
|
30
30
|
const o = n instanceof HTMLButtonElement ? n.id : n.getAttribute("id") ?? "";
|
|
31
31
|
if (typeof o != "string" || o.length === 0) return;
|
|
32
|
-
const
|
|
33
|
-
let
|
|
34
|
-
|
|
32
|
+
const d = n.getAttribute("is-placeholder-item") ?? "";
|
|
33
|
+
let r = n.textContent?.trim() ?? "";
|
|
34
|
+
r.endsWith("checkmark") && (r = r.slice(0, -9).trim()), this.applySelection({ id: o, value: s, title: r.trim(), disabled: !1, originalEvent: t, isPlaceholderItem: !(!d || d !== "true") });
|
|
35
35
|
}, this.handleFilterInput = (t) => {
|
|
36
36
|
const i = t.target;
|
|
37
37
|
this.filterValue = i?.value ?? "", this.isFilterEditing = !0, this.clearActive(), this.expanded || this.setExpandedState(!0, t), this.applyFilter();
|
|
@@ -211,10 +211,10 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
211
211
|
}, e;
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
|
-
const e = this.expanded && this.isInteractive(), t =
|
|
214
|
+
const e = this.expanded && this.isInteractive(), t = b({ expanded: e }), i = this.getEnhancedInputProps(), n = typeof i.id == "string" ? i.id : void 0, s = n ? `${n}__menu` : void 0;
|
|
215
215
|
i.role = "combobox", i["aria-expanded"] = e ? "true" : "false", i["aria-haspopup"] = "listbox", i["aria-autocomplete"] = "list", s && (i["aria-controls"] = s);
|
|
216
|
-
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "",
|
|
217
|
-
return a("div", { key: "
|
|
216
|
+
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", d = e ? "true" : "false", r = a("button", { key: "a90a96c60b807126c810e515d0de46231ec72d7d", class: I({ size: "lg" }), slot: "trailingAccessory", type: "button", onClick: this.handleChevronClickToggle, "aria-label": e ? "Collapse options" : "Expanded options", "aria-expanded": d, "aria-haspopup": "listbox", "aria-controls": s, disabled: this.disabled || this.readOnly, tabIndex: -1 }, a("span", { key: "e008d0b0d9c8adb1ead8aeff0afe9328e26b3453", class: "gids-button__content" }, a(m, { key: "42f2eaef189eb3aa056c844f82606399d70bcc94", name: "chevron-vertical", alt: "" })));
|
|
217
|
+
return a("div", { key: "c835d39b7fc955ee3ab96a04b8bc8272a4c4b7c7", class: t }, a("gids-input", { key: "55bebbe9b1f67e462015e9a9fad424c315ebfd84", appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: o, name: this.name, inputProps: i, onClick: this.handleInputClickToggle, onFocus: this.handleInputFocusAndBlur, onBlur: this.handleInputFocusAndBlur }, this.hasLeadingIcon && a("slot", { key: "5a0c8330ecf583a570d856f16be4ad0eb02f294e", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && a("slot", { key: "62e98b44a436005202c2cd7a4dd4590110f88a4c", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), r), a("div", { key: "02654371bfa277d5ab9b9fb8d1f2d4d48c8949ec", class: "gids-dropdown__menu", id: s, role: "listbox", onClick: this.handleMenuClick }, a("slot", { key: "b45d0f3182546b2704179ee0be4303c33a2ecdd8" })));
|
|
218
218
|
}
|
|
219
219
|
get hostElement() {
|
|
220
220
|
return this;
|
|
@@ -230,7 +230,7 @@ function x() {
|
|
|
230
230
|
typeof customElements < "u" && ["gids-dropdown", "gids-input"].forEach(((e) => {
|
|
231
231
|
switch (e) {
|
|
232
232
|
case "gids-dropdown":
|
|
233
|
-
customElements.get(l(e)) || customElements.define(l(e),
|
|
233
|
+
customElements.get(l(e)) || customElements.define(l(e), E);
|
|
234
234
|
break;
|
|
235
235
|
case "gids-input":
|
|
236
236
|
customElements.get(l(e)) || g();
|
|
@@ -239,6 +239,6 @@ function x() {
|
|
|
239
239
|
}
|
|
240
240
|
x();
|
|
241
241
|
export {
|
|
242
|
-
|
|
242
|
+
E as c,
|
|
243
243
|
x as l
|
|
244
244
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { q as d, L as r, u as h, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { i as c, a as m } from "./p-Bs8TP3Rb-BdcS7d5q.js";
|
|
3
|
+
import { i as u } from "./p-DObJEzlz-tt9h5cuI.js";
|
|
4
|
+
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
5
6
|
const t = [], s = new Intl.DateTimeFormat("en-US", { month: "long" });
|
|
6
7
|
for (let e = 1; e <= 12; e += 1) {
|
|
7
8
|
const n = new Date(2e3, e - 1, 1), i = s.format(n);
|
|
@@ -14,7 +15,7 @@ const p = (t) => f("gids-calendar-month-list", t), I = () => {
|
|
|
14
15
|
return t;
|
|
15
16
|
}, b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
17
|
__proto__: null,
|
|
17
|
-
getGidsCalendarMonthListClassNames:
|
|
18
|
+
getGidsCalendarMonthListClassNames: f,
|
|
18
19
|
getGidsCalendarMonthListMonths: I
|
|
19
20
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, C = r(class extends h {
|
|
20
21
|
constructor(t) {
|
|
@@ -59,7 +60,7 @@ const p = (t) => f("gids-calendar-month-list", t), I = () => {
|
|
|
59
60
|
}
|
|
60
61
|
render() {
|
|
61
62
|
const t = g();
|
|
62
|
-
return l("div", { key: "
|
|
63
|
+
return l("div", { key: "386eb44c8510a6ab48e522b8fd24b0250c3fde5d", class: t }, l(c, { key: "9f311dc39039579c9e90f49c01b61259e25914e4", type: this.type, supportingText: this.noOptionsText }, l(m, { key: "bafbf47ba0efd3080755f6c4e5b0b826df7b71ed", sectionLabel: "Months" }, this.monthsList().map(((s, e) => {
|
|
63
64
|
const n = `${e + 1}`, i = this.disabledIndices?.includes(e);
|
|
64
65
|
return l(u, { title: s.title, value: `${s.value}`, key: `${e.toString()}`, index: e, id: n, selected: this.isItemSelected(e), onPressDropdownItem: this.handleMenuClick, disabled: i, divider: this.divider, isPlaceholderItem: !1 });
|
|
65
66
|
})))));
|