@ganpatiinfo/gids-core-web 10.0.0 → 10.1.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 +59 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +11 -0
- package/dist/gids-action-bar.js +1 -0
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.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-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +11 -0
- package/dist/gids-filter.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-level-gauge.js +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +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-progress-circle.js +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-DfFqFdmS.js → p-BQ-ZnlnH.js} +1 -1
- package/dist/{p-9_mrQ7ac.js → p-BZCJlqVe.js} +1 -1
- package/dist/p-Bf3p-DY2.js +1 -0
- package/dist/{p-CIP0xyhD.js → p-BpQB6ncp.js} +1 -1
- package/dist/p-CHGTBObD.js +1 -0
- package/dist/{p-CPSHPtGE.js → p-CP1wz2PI.js} +1 -1
- package/dist/{p-D93TNeOt.js → p-CQH7eAs3.js} +1 -1
- package/dist/{p-CJzporPT.js → p-CW7tw1Fb.js} +1 -1
- package/dist/{p-D_wcwB7E.js → p-CaauwQNd.js} +1 -1
- package/dist/p-Cn3-K5eR.js +1 -0
- package/dist/{p-quZYWCxU.js → p-CoS0NuDU.js} +1 -1
- package/dist/{p-BnL97lOW.js → p-D4Pimu_8.js} +1 -1
- package/dist/p-D6lxqcxP.js +1 -0
- package/dist/p-DMNS1d8v.js +1 -0
- package/dist/{p-BvYnawkJ.js → p-DNTv2BQ5.js} +1 -1
- package/dist/{p-tyIgTtUC.js → p-DPIK2ayL.js} +1 -1
- package/dist/{p-BiPAgxAQ.js → p-Db62Pz3n.js} +1 -1
- package/dist/{p-uqSjmNkw.js → p-Degg_WJz.js} +1 -1
- package/dist/{p-h6alWGT8.js → p-DfxTsSdZ.js} +1 -1
- package/dist/p-Dg2yoUxw.js +1 -0
- package/dist/p-DmLoB2Dn.js +1 -0
- package/dist/p-DoCwI_bx.js +1 -0
- package/dist/p-H1JIMJ2t.js +1 -0
- package/dist/p-JjN8U9B5.js +1 -0
- package/dist/p-UVmSPzTd.js +1 -0
- package/dist/p-UxDcM-C5.js +1 -0
- package/dist/{p-Bmb-HiXg.js → p-V48JyMbP.js} +1 -1
- package/dist/{p-B81J5HCC.js → p-mZJdpfOo.js} +1 -1
- package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
- package/dist/types/components.d.ts +260 -5
- package/dist-bundled/es/gids-action-bar.js +177 -0
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- 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 +22 -22
- 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 +22 -22
- package/dist-bundled/es/gids-chevron-button.js +10 -10
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +8 -8
- package/dist-bundled/es/gids-dropdown-picker.js +1 -1
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +6 -0
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-level-gauge.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +2 -2
- package/dist-bundled/es/gids-overlay-provider.js +12 -12
- package/dist-bundled/es/gids-password-field.js +36 -36
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +5 -5
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +2 -2
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +12 -12
- package/dist-bundled/es/gids-toggle-button.js +4 -44
- package/dist-bundled/es/gids-tooltip.js +5 -5
- package/dist-bundled/es/index.js +3 -3
- package/dist-bundled/es/{p-DfFqFdmS-DjI2pk-0.js → p-BQ-ZnlnH-CUVdDHzX.js} +6 -6
- package/dist-bundled/es/{p-9_mrQ7ac-If6e6cvJ.js → p-BZCJlqVe-BcSwze-q.js} +6 -6
- package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
- package/dist-bundled/es/{p-CIP0xyhD-D6y5soLj.js → p-BpQB6ncp-C2AWddf-.js} +11 -11
- package/dist-bundled/es/{p-DKsrt7dx-ImYLc4xz.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
- package/dist-bundled/es/{p-CPSHPtGE-C7baJgXR.js → p-CP1wz2PI-DhVAsHFS.js} +4 -4
- package/dist-bundled/es/{p-D93TNeOt-Vvshbux8.js → p-CQH7eAs3-BVowyVGn.js} +14 -14
- package/dist-bundled/es/{p-CJzporPT-I_OdjJsQ.js → p-CW7tw1Fb-DtJ5TwCU.js} +18 -18
- package/dist-bundled/es/{p-D_wcwB7E-d3jYxfod.js → p-CaauwQNd-D6_PbcRr.js} +1 -1
- package/dist-bundled/es/{p-BaO-kEWS-ZITkeP-j.js → p-Cn3-K5eR-tQ1EOnDF.js} +22 -20
- package/dist-bundled/es/{p-quZYWCxU-CPyWW0nv.js → p-CoS0NuDU-CqmDcRWj.js} +9 -9
- package/dist-bundled/es/{p-BnL97lOW-BO0p4EdC.js → p-D4Pimu_8-DfEGRQGf.js} +1 -1
- package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
- package/dist-bundled/es/{p-Dehss-X0-Di5vMgvd.js → p-DMNS1d8v-CHF62UXm.js} +3 -3
- package/dist-bundled/es/{p-BvYnawkJ-DohV9UNG.js → p-DNTv2BQ5-Bwgd30mM.js} +6 -6
- package/dist-bundled/es/{p-tyIgTtUC-C8jR4A5G.js → p-DPIK2ayL-DPEbctqo.js} +4 -4
- package/dist-bundled/es/{p-BiPAgxAQ-BtMBQpJY.js → p-Db62Pz3n-DpQjwBYb.js} +5 -5
- package/dist-bundled/es/{p-uqSjmNkw-Cz2T86sC.js → p-Degg_WJz-BLua06el.js} +3 -3
- package/dist-bundled/es/{p-h6alWGT8-CSY2g3c8.js → p-DfxTsSdZ-C2Afv1lS.js} +8 -8
- package/dist-bundled/es/{p-CRngHsR7-DL9wz3Z3.js → p-Dg2yoUxw-Cca8ROd_.js} +4 -4
- package/dist-bundled/es/p-DmLoB2Dn-D-FSoCvI.js +44 -0
- package/dist-bundled/es/{p-B_HaXpJZ-a2SDgQ0E.js → p-DoCwI_bx-BXHlZI7-.js} +7 -7
- package/dist-bundled/es/p-H1JIMJ2t-DEXp7M4I.js +152 -0
- package/dist-bundled/es/{p-BFHWXEeg-ByjSjz8i.js → p-JjN8U9B5-GeWjfJBY.js} +23 -21
- package/dist-bundled/es/{p-KxRqlvSh-JOFDmT0B.js → p-UVmSPzTd-DiTxS9kW.js} +8 -8
- package/dist-bundled/es/{p-DZWWuJac-DNQvnHAr.js → p-UxDcM-C5-Dr5d_WpJ.js} +2 -2
- package/dist-bundled/es/{p-Bmb-HiXg-MyHWdhpw.js → p-V48JyMbP-Bx-0od-Z.js} +12 -12
- package/dist-bundled/es/{p-B81J5HCC-Bkt2yXKi.js → p-mZJdpfOo-DicbKil0.js} +7 -7
- package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +3 -3
- 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 +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +2 -2
- package/dist-bundled/umd/gids-chart.umd.js +3 -3
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +7 -0
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
- package/package.json +20 -4
- package/dist/p-BFHWXEeg.js +0 -1
- package/dist/p-B_HaXpJZ.js +0 -1
- package/dist/p-BaO-kEWS.js +0 -1
- package/dist/p-CRngHsR7.js +0 -1
- package/dist/p-Ct3Ixgvf.js +0 -1
- package/dist/p-DKsrt7dx.js +0 -1
- package/dist/p-DZWWuJac.js +0 -1
- package/dist/p-Dehss-X0.js +0 -1
- package/dist/p-KxRqlvSh.js +0 -1
- package/dist/p-MgTlrSP_.js +0 -1
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +0 -646
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +0 -70
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as a, u as n, D as e, q as o } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as l } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
const h = (t) => t === "top" || t === "top-bottom", c = (t) => t === "bottom" || t === "top-bottom", d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
@@ -20,7 +20,7 @@ const h = (t) => t === "top" || t === "top-bottom", c = (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: "97362225f8b3eb16c63650c2265649f0c10cd02d", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "833add367bb620d6405caab9aa0fddbbf99185a5" }));
|
|
24
24
|
}
|
|
25
25
|
get _el() {
|
|
26
26
|
return this;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
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
|
-
import { d as p } from "./p-
|
|
5
|
-
import { o as u } from "./p-
|
|
4
|
+
import { d as p } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
5
|
+
import { o as u } from "./p-UVmSPzTd-DiTxS9kW.js";
|
|
6
6
|
import { c as h } from "./clsx-OuTLNxxd.js";
|
|
7
7
|
const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
8
8
|
// 'gids-snackbar-container--appearance-default': appearance === 'default' // its a default
|
|
@@ -24,7 +24,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
24
24
|
default:
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
28
|
__proto__: null,
|
|
29
29
|
getGidsSnackbarContainerClassNames: Q,
|
|
30
30
|
getSnackbarContainerIconNames: S
|
|
@@ -66,7 +66,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
66
66
|
default:
|
|
67
67
|
return "component-exit-bottom-center";
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, P = ({ position: t, id: e, exitingComponents: n }) => n.includes(e) ? v(t) : b(t), M = ({ position: t }) => {
|
|
70
70
|
switch (t) {
|
|
71
71
|
case "bottom-left":
|
|
72
72
|
return "common-component-stack component-stack-bottom-left";
|
|
@@ -87,7 +87,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
87
87
|
}
|
|
88
88
|
}, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89
89
|
__proto__: null,
|
|
90
|
-
getComponentClasses:
|
|
90
|
+
getComponentClasses: P,
|
|
91
91
|
getComponentEntryClasses: b,
|
|
92
92
|
getComponentExitClasses: v,
|
|
93
93
|
getComponentStackClasses: M
|
|
@@ -97,7 +97,7 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
97
97
|
"gids-notification-container--appearance-success": t === "success",
|
|
98
98
|
"gids-notification-container--appearance-warning": t === "warning",
|
|
99
99
|
"gids-notification-container--appearance-error": t === "error"
|
|
100
|
-
}, e),
|
|
100
|
+
}, e), q = (t) => {
|
|
101
101
|
if (t)
|
|
102
102
|
switch (t) {
|
|
103
103
|
case "information":
|
|
@@ -111,14 +111,14 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
111
111
|
default:
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
115
|
__proto__: null,
|
|
116
116
|
getGidsNotificationContainerClassNames: T,
|
|
117
|
-
getNotificationContainerIconNames:
|
|
118
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsSnackbarContainerClassNames: z, getSnackbarContainerIconNames: L } =
|
|
117
|
+
getNotificationContainerIconNames: q
|
|
118
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsSnackbarContainerClassNames: z, getSnackbarContainerIconNames: L } = j, 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 } = I, 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: "98b34b44016b714b3ea32f097a954e7044928a09" }, o("slot", { key: "81a68d3e2087bb2cb547e33579bd9f92ef45e968" }), 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,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
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
|
|
4
|
-
import { r as
|
|
5
|
-
import { o as
|
|
6
|
-
import { g as k, d as j } from "./p-
|
|
7
|
-
import { h as
|
|
8
|
-
import { r as
|
|
3
|
+
import { a as F } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
4
|
+
import { r as L } from "./p-UxDcM-C5-Dr5d_WpJ.js";
|
|
5
|
+
import { o as O } from "./p-UVmSPzTd-DiTxS9kW.js";
|
|
6
|
+
import { g as k, d as j } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
7
|
+
import { h as z } from "./p-DNTv2BQ5-Bwgd30mM.js";
|
|
8
|
+
import { r as E } from "./p-BQ-ZnlnH-CUVdDHzX.js";
|
|
9
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
10
|
-
const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/,
|
|
10
|
+
const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e, meterRules: t = [], textMinLength: s = 0 }) => {
|
|
11
11
|
if (!e || e === "")
|
|
12
12
|
return 0;
|
|
13
13
|
let n = 0;
|
|
14
14
|
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;
|
|
15
|
-
},
|
|
15
|
+
}, B = ({ textScore: e, maxScore: t }) => {
|
|
16
16
|
const s = t > 0 ? e / t * 100 : 0;
|
|
17
17
|
return s <= 20 ? "is-weak" : s <= 40 ? "is-medium" : s <= 60 ? "is-good-enough" : s <= 80 ? "is-good" : "is-strong";
|
|
18
|
-
},
|
|
18
|
+
}, A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
19
|
__proto__: null,
|
|
20
|
-
getColorModifierByScore:
|
|
21
|
-
getStrengthMeterScore:
|
|
20
|
+
getColorModifierByScore: B,
|
|
21
|
+
getStrengthMeterScore: G,
|
|
22
22
|
include1DigitReg: b,
|
|
23
23
|
include1LowercaseLetterReg: p,
|
|
24
24
|
include1SpecialCharReg: q,
|
|
@@ -83,7 +83,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
83
83
|
getDefaultRulesAndRequirementsForMeters: m,
|
|
84
84
|
getMeterRulesFromRequirements: R,
|
|
85
85
|
minLengthRuleCanBeApplied: o
|
|
86
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
86
|
+
}, Symbol.toStringTag, { value: "Module" })), D = (e) => {
|
|
87
87
|
switch (e) {
|
|
88
88
|
case "error":
|
|
89
89
|
return "danger";
|
|
@@ -96,10 +96,10 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
96
96
|
default:
|
|
97
97
|
return "globe";
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
100
100
|
__proto__: null,
|
|
101
|
-
getRequirementsMeterLabelLeadingIcon:
|
|
102
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
101
|
+
getRequirementsMeterLabelLeadingIcon: D
|
|
102
|
+
}, Symbol.toStringTag, { value: "Module" })), V = (e) => {
|
|
103
103
|
switch (e) {
|
|
104
104
|
case "error":
|
|
105
105
|
return "error";
|
|
@@ -108,12 +108,12 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
108
108
|
default:
|
|
109
109
|
return "default";
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
112
|
__proto__: null,
|
|
113
|
-
inputToGidsFieldStatusForPassword:
|
|
114
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
113
|
+
inputToGidsFieldStatusForPassword: V
|
|
114
|
+
}, Symbol.toStringTag, { value: "Module" })), H = (e) => g("gids-strength-meter", e), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
115
115
|
__proto__: null,
|
|
116
|
-
getGidsStrengthMeterClassNames:
|
|
116
|
+
getGidsStrengthMeterClassNames: H
|
|
117
117
|
}, Symbol.toStringTag, { value: "Module" })), W = ({ 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",
|
|
@@ -125,19 +125,19 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
125
125
|
}, Symbol.toStringTag, { value: "Module" })), K = (e) => g("gids-requirements-meter", e), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
126
126
|
__proto__: null,
|
|
127
127
|
getGidsRequirementsMeterClassNames: K
|
|
128
|
-
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatusForPassword: X } =
|
|
128
|
+
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatusForPassword: X } = U, Y = (e) => e === "implicit" || e === void 0 ? "implicit" : X(e), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
129
129
|
__proto__: null,
|
|
130
130
|
inputToGidsFieldStatusForPassword: Y
|
|
131
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsStrengthMeterClassNames: te } = Z, { getStrengthMeterScore: se, getColorModifierByScore: re } =
|
|
131
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsStrengthMeterClassNames: te } = Z, { getStrengthMeterScore: se, getColorModifierByScore: re } = A, 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 d = c + 1,
|
|
137
|
-
return s[d] === "include-min-length" ? o({ requirementRule: "include-min-length", textMinLength: t }) ? a(d, u,
|
|
136
|
+
const d = c + 1, w = d <= l;
|
|
137
|
+
return s[d] === "include-min-length" ? o({ requirementRule: "include-min-length", textMinLength: t }) ? a(d, u, w) : null : a(d, u, w);
|
|
138
138
|
}));
|
|
139
139
|
})()) : null;
|
|
140
|
-
}, { getGidsRequirementsMeterLabelClassNames: ne } = J, { getRequirementsMeterLabelLeadingIcon: le } =
|
|
140
|
+
}, { getGidsRequirementsMeterLabelClassNames: ne } = J, { getRequirementsMeterLabelLeadingIcon: le } = N, ae = (e) => {
|
|
141
141
|
const { label: t, status: s = "default", leadingIconVisible: n = !0, class: a } = e, r = le(s);
|
|
142
142
|
return i("div", { class: ne({ status: s }, a) }, n && s && r ? i(j, { name: r, size: "sm", appearance: "filled" }) : null, t && t !== "" ? i("span", null, t) : null);
|
|
143
143
|
}, { checkRequirementRuleSatisfied: ue } = $, { getGidsRequirementsMeterClassNames: de } = Q, oe = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
|
|
@@ -149,9 +149,9 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
149
149
|
}
|
|
150
150
|
return null;
|
|
151
151
|
})));
|
|
152
|
-
}, { inputToGidsFieldStatusForPassword: ce } = ee, M =
|
|
152
|
+
}, { inputToGidsFieldStatusForPassword: ce } = ee, M = S(class extends P {
|
|
153
153
|
constructor(e) {
|
|
154
|
-
super(), e !== !1 && this.__registerHost(), this.gidsPasswordFieldClear =
|
|
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");
|
|
156
156
|
t && (t.value = "", t.dispatchEvent(new globalThis.Event("input", { bubbles: !0 }))), this.value = "", this.gidsPasswordFieldClear.emit();
|
|
157
157
|
}, this._handleRevealPassword = () => {
|
|
@@ -171,7 +171,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
171
171
|
}
|
|
172
172
|
_startSlotContentObserver() {
|
|
173
173
|
this._slotContentObserver = new MutationObserver((() => {
|
|
174
|
-
|
|
174
|
+
x(this);
|
|
175
175
|
})), this._slotContentObserver.observe(this._el, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["slot"] });
|
|
176
176
|
}
|
|
177
177
|
handleRequirementsChange(e) {
|
|
@@ -191,7 +191,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ 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(
|
|
194
|
+
return i(T, { key: "ad8824cc057aa37efa91c06726fdc1b557d409de" }, i("gids-field", { key: "59ebf5007857762d94d9b97e43b78ddff47c9ff0", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(F, { key: "48268834c82d79a615a8664cc82392ced99fdca7", 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: "b788da8c254e5d60500d61d304ec651d3fedea0c", ref: (d) => this.#e = d, appearance: "default", status: this.status, loading: this.loading, value: this.value, defaultValue: this.defaultValue, name: this.name, required: this.required, disabled: this.disabled, readOnly: this.readOnly, leadingLabel: void 0, trailingLabel: void 0, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur, onInput: this._handleInput, inputProps: { ...r, placeholder: l, type: u ? "text" : "password", id: s, maxLength: this.maxLength } }, i("slot", { key: "d391d4aa12d3141c90ed75738407d1c67b0d0702", name: "leadingIcon" }), i("slot", { key: "6e832b40ffd56cf269c1a0a864f5d87766a27388", name: "leadingAccessory" }), i("div", { key: "583893f7fa33d8f6a38f3751e47294ac48f96176", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(L, { key: "405c0a96c792c3ea4ab9ed3f62b902865328a878", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(O, { key: "20239498d925c2b88a0197cd24d32dc5f0a3d241", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "0f86c1cdf84b819848c7e4051720482ff5a5247f", class: "gids-password-field__meters-container" }, i(ie, { key: "646c27887adf3f4913bfa78c9f2c30758a4c2491", meterRules: _, text: this.value, textMinLength: c }), i(oe, { key: "07ff4be07b41ea41504a40c775402b138c2c0dc8", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
|
|
195
195
|
}
|
|
196
196
|
get _el() {
|
|
197
197
|
return this;
|
|
@@ -200,23 +200,23 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
200
200
|
return { requirements: [{ handleRequirementsChange: 0 }], textMinLength: [{ handleRequirementsChange: 0 }] };
|
|
201
201
|
}
|
|
202
202
|
}, [260, "gids-password-field", { label: [513], showClearButton: [516, "show-clear-button"], showRevealPasswordButton: [516, "show-reveal-password-button"], helperText: [513, "helper-text"], statusText: [513, "status-text"], status: [513], loading: [516], name: [513], required: [516], maxLength: [514, "maxlength"], value: [1], defaultValue: [513, "default-value"], disabled: [516], readOnly: [516, "readonly"], inputProps: [16], fieldRequirement: [513, "field-requirement"], fieldRequirementOptionalText: [1, "field-requirement-optional-text"], fieldRequirementRequiredText: [1, "field-requirement-required-text"], isLabelSentence: [16], textMinLength: [514, "text-min-length"], requirements: [16], isPasswordRevealed: [32], meterRules: [32], requirementsMeterRequirements: [32] }, void 0, { requirements: [{ handleRequirementsChange: 0 }], textMinLength: [{ handleRequirementsChange: 0 }] }]);
|
|
203
|
-
function
|
|
203
|
+
function y() {
|
|
204
204
|
typeof customElements < "u" && ["gids-password-field", "gids-field", "gids-input"].forEach(((e) => {
|
|
205
205
|
switch (e) {
|
|
206
206
|
case "gids-password-field":
|
|
207
207
|
customElements.get(h(e)) || customElements.define(h(e), M);
|
|
208
208
|
break;
|
|
209
209
|
case "gids-field":
|
|
210
|
-
customElements.get(h(e)) ||
|
|
210
|
+
customElements.get(h(e)) || z();
|
|
211
211
|
break;
|
|
212
212
|
case "gids-input":
|
|
213
|
-
customElements.get(h(e)) ||
|
|
213
|
+
customElements.get(h(e)) || E();
|
|
214
214
|
}
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
217
|
-
|
|
218
|
-
const
|
|
217
|
+
y();
|
|
218
|
+
const we = M, ve = y;
|
|
219
219
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
we as GidsPasswordField,
|
|
221
|
+
ve as defineCustomElement
|
|
222
222
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, c as
|
|
2
|
-
const
|
|
1
|
+
import { n as e, c as t } from "./p-DPIK2ayL-DPEbctqo.js";
|
|
2
|
+
const s = e, a = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsPieChart,
|
|
5
|
+
a as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
2
|
import { g as E } from "./p-a3JfEYJp-DyhDK6VZ.js";
|
|
3
3
|
import { o as b } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
4
4
|
const h = v(class extends p {
|
|
@@ -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: "d46aad4680cea0578107034ca4945659910c6dd8" }, a("slot", { key: "71b5b313244ca9be78ca0e76e0056a8d6f201f89", name: "anchor" }), a("div", { key: "9be3b9f604bf8a15795ff2f6cbbc439936734795", id: "popover", part: "popover", role: "dialog", "aria-modal": "true", tabindex: "-1" }, a("span", { key: "48f4b97c8c0f2df0bea15c067ebf7cc28f98e98c", id: "arrow" }), a("div", { key: "5547088b9b186ab816e4d6a9e9a3c6bfdde41fd2" }, a("slot", { key: "460c256bddf41d061352917b129501fdd3f383a2" }))));
|
|
68
68
|
}
|
|
69
69
|
disconnectedCallback() {
|
|
70
70
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -103,8 +103,8 @@ function g() {
|
|
|
103
103
|
}));
|
|
104
104
|
}
|
|
105
105
|
g();
|
|
106
|
-
const
|
|
106
|
+
const F = h, k = g;
|
|
107
107
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
F as GidsPopover,
|
|
109
|
+
k as defineCustomElement
|
|
110
110
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as o, u as c, D as e, q as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as l } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { c as n } from "./clsx-OuTLNxxd.js";
|
|
4
4
|
const d = (s) => n("gids-scrim", s), m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -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: "43ae2df4c05e5ce29bb2cd6755ef4472e9a6e078", class: this.activeClasses, part: "root" }, e("slot", { key: "2610048a1d440e95632575b232ca7d923f66cea5" }));
|
|
20
20
|
}
|
|
21
21
|
get _el() {
|
|
22
22
|
return this;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import { a as
|
|
4
|
-
import { r as p } from "./p-
|
|
5
|
-
import { h as g } from "./p-
|
|
6
|
-
import { r as x } from "./p-
|
|
7
|
-
import { g as _ } from "./p-
|
|
1
|
+
import { L as u, u as h, z as c, C as f, D as i, q as s } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { i as m } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
+
import { a as b } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
4
|
+
import { r as p } from "./p-UxDcM-C5-Dr5d_WpJ.js";
|
|
5
|
+
import { h as g } from "./p-DNTv2BQ5-Bwgd30mM.js";
|
|
6
|
+
import { r as x } from "./p-BQ-ZnlnH-CUVdDHzX.js";
|
|
7
|
+
import { g as _ } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
8
8
|
const v = (e, t) => {
|
|
9
9
|
if (!(e === void 0 || t === void 0))
|
|
10
10
|
return `${e} / ${Math.max(t, 0)}`;
|
|
@@ -41,7 +41,7 @@ const v = (e, t) => {
|
|
|
41
41
|
})), this._slotContentObserver.observe(this._el, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["slot"] });
|
|
42
42
|
}
|
|
43
43
|
connectedCallback() {
|
|
44
|
-
const e =
|
|
44
|
+
const e = m();
|
|
45
45
|
e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e), this._startSlotContentObserver();
|
|
46
46
|
}
|
|
47
47
|
disconnectedCallback() {
|
|
@@ -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: "67703f015d57768e530aff47b206ff6716f35332", disabled: this.disabled, count: F(this.value?.length, this.maxLength), helperText: this.helperText, statusText: this.statusText, status: O(this.status) }, i(b, { key: "182405668848cdfe3960eef04a7862862fb42117", 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: "f625d9ca7001879c392f55e806e7f080d7bb4185", 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: "4283d3712a98973ccb96d57b3d6f9fc42a0ff04e", name: "leadingIcon" }), i("slot", { key: "c61b5a4a62ecf2002426d167155fd8687f84b99f", name: "leadingAccessory" }), d && i(p, { key: "61d1a7b396fa1a8bacce9ade90a36de46886b3c0", label: "clear text", slot: "trailingAccessory", size: "lg", onPressDismiss: this._handleDismiss }), i("slot", { key: "b1f35a7a5e7ffc719d86741033fdfc25ee20debc", name: "trailingIcon" })));
|
|
55
55
|
}
|
|
56
56
|
get _el() {
|
|
57
57
|
return this;
|
|
@@ -72,8 +72,8 @@ function r() {
|
|
|
72
72
|
}));
|
|
73
73
|
}
|
|
74
74
|
r();
|
|
75
|
-
const
|
|
75
|
+
const G = a, B = r;
|
|
76
76
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
G as GidsTextField,
|
|
78
|
+
B as defineCustomElement
|
|
79
79
|
};
|
|
@@ -1,46 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { i as h } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
|
-
const i = l(class extends d {
|
|
5
|
-
get selected() {
|
|
6
|
-
return this.#e ?? this.defaultSelected;
|
|
7
|
-
}
|
|
8
|
-
set selected(e) {
|
|
9
|
-
this.#e = e === void 0 ? void 0 : !!e;
|
|
10
|
-
}
|
|
11
|
-
constructor(e) {
|
|
12
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select = n(this, "select"), this._toggle = this._toggle.bind(this);
|
|
13
|
-
}
|
|
14
|
-
#e;
|
|
15
|
-
connectedCallback() {
|
|
16
|
-
const e = h();
|
|
17
|
-
e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e);
|
|
18
|
-
}
|
|
19
|
-
_toggle() {
|
|
20
|
-
const e = !this.selected;
|
|
21
|
-
this._el.selected = e, this.select?.emit(e);
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
return t(c, { key: "d95b05ee98862e9fa4ee50ae676fded8234de63d" }, t("style", { key: "844be4d370a1d44e4c18b828ed2cfab3bd702cfd" }, `:host {
|
|
25
|
-
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
26
|
-
}`), t(a, { key: "510307e7bfce966e96422999f5309e0df3e62634", appearance: this.appearance, size: this.size, width: this.width, disabled: this.disabled, onClick: this._toggle, "aria-pressed": this.selected ? "true" : "false", leadingIcon: t("slot", { name: "leadingIcon" }), trailingIcon: t("slot", { name: "trailingIcon" }), forceIconOnly: this._onlyHasLeadingIcon() }, t("slot", { key: "38bff264ed88090ee4567650417ccb86805fca98" })));
|
|
27
|
-
}
|
|
28
|
-
_onlyHasLeadingIcon() {
|
|
29
|
-
const e = this._el.childNodes;
|
|
30
|
-
return e.length === 1 && e[0] instanceof window.Element && e[0].slot === "leadingIcon";
|
|
31
|
-
}
|
|
32
|
-
get _el() {
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
}, [257, "gids-toggle-button", { disabled: [516], appearance: [513], size: [513], width: [513], defaultSelected: [516, "default-selected"], selected: [6660] }]);
|
|
36
|
-
function o() {
|
|
37
|
-
typeof customElements < "u" && ["gids-toggle-button"].forEach(((e) => {
|
|
38
|
-
e === "gids-toggle-button" && (customElements.get(s(e)) || customElements.define(s(e), i));
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
o();
|
|
42
|
-
const u = i, b = o;
|
|
1
|
+
import { l as o, o as t } from "./p-DmLoB2Dn-D-FSoCvI.js";
|
|
2
|
+
const m = o, s = t;
|
|
43
3
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
4
|
+
m as GidsToggleButton,
|
|
5
|
+
s as defineCustomElement
|
|
46
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as n, u as l, D as e, F as s, q as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { g as r } from "./p-a3JfEYJp-DyhDK6VZ.js";
|
|
3
3
|
import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { o as h } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
@@ -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: "87da0ed1ded01cd47b54a7445df2ec4a1ce621b2" }, e("slot", { key: "31b07131bcd26021340d37cadc8aa01f59ad0262" }), e("span", { key: "03fa6ca6e6f3d9bfa2b319254a22a817091fa9b5", id: "tooltip", part: "tooltip", role: "tooltip" }, e("span", { key: "7affbdf276e42c78a4829b5c47854786b97af3bd", id: "arrow" }), this.tooltipText));
|
|
42
42
|
}
|
|
43
43
|
disconnectedCallback() {
|
|
44
44
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
|
@@ -59,8 +59,8 @@ function a() {
|
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
61
|
a();
|
|
62
|
-
const
|
|
62
|
+
const v = o, f = a;
|
|
63
63
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
v as GidsTooltip,
|
|
65
|
+
f as defineCustomElement
|
|
66
66
|
};
|
package/dist-bundled/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as y, V as A, S as u, U as G, W as P } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as E, n as x } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { o as
|
|
3
|
+
import { o as T } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
4
4
|
import { s as d } from "./assets-Drv1fXkA.js";
|
|
5
5
|
function i(e, r) {
|
|
6
6
|
d(e, r);
|
|
@@ -22,7 +22,7 @@ const c = (e) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
T as GidsFloatingElementType,
|
|
26
26
|
y as getAssetPath,
|
|
27
27
|
E as getConstructedGidsStylesheet,
|
|
28
28
|
x as refreshConstructedGidsStylesheet,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as n } from "./p-
|
|
3
|
-
import { l as
|
|
1
|
+
import { q as s, L as l, u, D as a, F as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as n } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
|
+
import { l as r } from "./p-CHGTBObD-EN4cCwtX.js";
|
|
4
4
|
const c = (e) => e.type === "hidden", f = (e) => {
|
|
5
5
|
if (!(e instanceof HTMLElement))
|
|
6
6
|
return !1;
|
|
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
54
54
|
this._el.removeEventListener("click", this._focusInput);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return a(
|
|
57
|
+
return a(d, { key: "013d4a68291d4a3897246142cd611a2bc442d6a3" }, a("slot", { key: "97f0d9030c5061b219cc35c409820b81e3d4098a", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "2f8726384a877b0bee51579661f66f6e3da811e1", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "4843ddf9a10afba03ec0a552fd61cfddd3470749", name: "leadingAccessory" }), a("input", { key: "657559522ac7908ebb5dc27992cb50eb69d1fbd8", ...this.inputProps, ref: (e) => {
|
|
58
58
|
this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
|
|
59
|
-
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "c80c3ce3bf17f60e8f773b9c2f5dc25dacdf5446", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "f9ba8d097b660cdeaeacc0ac1ba970d3fa839fcc", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "35116e82425db12c08580460ac9c84f89faec71e", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "2634986e80dfbbfb98b5a4dd95829e6af3b229a0", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "63ab6b357df47d2d96ad6d3d33f22ab7864f395e", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(r, { key: "1eb7af66b5005a6f8dea895c00f100e7cc6e7548", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -69,6 +69,6 @@ function h() {
|
|
|
69
69
|
}
|
|
70
70
|
h();
|
|
71
71
|
export {
|
|
72
|
-
o as
|
|
72
|
+
o as l,
|
|
73
73
|
h as r
|
|
74
74
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as i, L as o, u as n, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as g } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { d as r } from "./p-
|
|
4
|
-
import { c
|
|
5
|
-
const
|
|
3
|
+
import { d as r } from "./p-Db62Pz3n-DpQjwBYb.js";
|
|
4
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
6
6
|
"gids-dot--disabled": a,
|
|
7
7
|
"gids-dot--subtle": s === "subtle" && !a,
|
|
8
8
|
"gids-dot--static-inverse": s === "static-inverse" && !a,
|
|
@@ -16,7 +16,7 @@ const c = ({ appearance: s, size: e, disabled: a }, d) => h("gids-dot", {
|
|
|
16
16
|
"gids-dot--3xl": e === "3xl"
|
|
17
17
|
}, d), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
18
|
__proto__: null,
|
|
19
|
-
getGidsDotClassNames:
|
|
19
|
+
getGidsDotClassNames: h
|
|
20
20
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsDotClassNames: t } = p, C = o(class extends n {
|
|
21
21
|
constructor(s) {
|
|
22
22
|
super(), s !== !1 && this.__registerHost(), this.appearance = "subtle", this.size = "xs", this.disabled = !1, this.activeClasses = "";
|
|
@@ -41,7 +41,7 @@ const c = ({ appearance: s, size: e, disabled: a }, d) => h("gids-dot", {
|
|
|
41
41
|
this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return l("gids-icon", { key: "
|
|
44
|
+
return l("gids-icon", { key: "1bd6ab72dde2a54f1836483ea5990426c3bfc9f7", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
|
|
45
45
|
}
|
|
46
46
|
get _el() {
|
|
47
47
|
return this;
|