@ganpatiinfo/gids-core-web 9.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 +1504 -1
- 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 +11 -0
- package/dist/gids-activity-gauge.js +1 -0
- package/dist/gids-bar-chart.d.ts +11 -0
- package/dist/gids-bar-chart.js +1 -0
- package/dist/gids-calendar-header-panel.d.ts +11 -0
- package/dist/gids-calendar-header-panel.js +1 -0
- package/dist/gids-calendar-month-list.d.ts +11 -0
- package/dist/gids-calendar-month-list.js +1 -0
- package/dist/gids-calendar-year-list.d.ts +11 -0
- package/dist/gids-calendar-year-list.js +1 -0
- package/dist/gids-calendar.d.ts +11 -0
- package/dist/gids-calendar.js +1 -0
- package/dist/gids-chart-legend-item.d.ts +11 -0
- package/dist/gids-chart-legend-item.js +1 -0
- package/dist/gids-chart-legend.d.ts +11 -0
- package/dist/gids-chart-legend.js +1 -0
- package/dist/gids-chart.d.ts +11 -0
- package/dist/gids-chart.js +1 -0
- package/dist/gids-chevron-button.d.ts +11 -0
- package/dist/gids-chevron-button.js +1 -0
- package/dist/gids-dot.d.ts +11 -0
- package/dist/gids-dot.js +1 -0
- package/dist/gids-dropdown-field.d.ts +11 -0
- package/dist/gids-dropdown-field.js +1 -0
- package/dist/gids-dropdown-picker.d.ts +11 -0
- package/dist/gids-dropdown-picker.js +1 -0
- package/dist/gids-dropdown.d.ts +11 -0
- package/dist/gids-dropdown.js +1 -0
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +11 -0
- package/dist/gids-filter.js +1 -0
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +11 -0
- package/dist/gids-level-gauge.js +1 -0
- package/dist/gids-line-chart.d.ts +11 -0
- package/dist/gids-line-chart.js +1 -0
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +11 -0
- package/dist/gids-pie-chart.js +1 -0
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +11 -0
- package/dist/gids-progress-circle.js +1 -0
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-DvoHLz_5.js → p-BQ-ZnlnH.js} +1 -1
- package/dist/p-BZCJlqVe.js +1 -0
- package/dist/p-Bf3p-DY2.js +1 -0
- package/dist/p-BpQB6ncp.js +1 -0
- package/dist/{p-DybsMR13.js → p-CHGTBObD.js} +1 -1
- package/dist/p-CP1wz2PI.js +1 -0
- package/dist/p-CQH7eAs3.js +1 -0
- package/dist/p-CW7tw1Fb.js +1 -0
- package/dist/p-CaauwQNd.js +1 -0
- package/dist/p-Cn3-K5eR.js +1 -0
- package/dist/p-CoS0NuDU.js +1 -0
- package/dist/{p-veoOgDXg.js → p-D4Pimu_8.js} +1 -1
- package/dist/p-D6lxqcxP.js +1 -0
- package/dist/p-DMNS1d8v.js +1 -0
- package/dist/{p-iCAclJND.js → p-DNTv2BQ5.js} +1 -1
- package/dist/p-DPIK2ayL.js +1 -0
- package/dist/p-Db62Pz3n.js +1 -0
- package/dist/p-Degg_WJz.js +1 -0
- package/dist/p-DfxTsSdZ.js +1 -0
- 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-V48JyMbP.js +1 -0
- package/dist/p-mZJdpfOo.js +1 -0
- package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
- package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
- package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +1 -1
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +2 -2
- package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
- package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
- package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
- package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
- package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
- package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
- package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
- package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
- package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
- package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
- package/dist/types/components.d.ts +1585 -49
- package/dist/types/utils/childrenValidityUtils.d.ts +1 -1
- package/dist-bundled/es/gids-action-bar.js +177 -0
- package/dist-bundled/es/gids-activity-gauge.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +6 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
- package/dist-bundled/es/gids-calendar-month-list.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +6 -0
- package/dist-bundled/es/gids-calendar.js +153 -0
- package/dist-bundled/es/gids-chart-legend-item.js +6 -0
- package/dist-bundled/es/gids-chart-legend.js +6 -0
- package/dist-bundled/es/gids-chart.js +108 -0
- package/dist-bundled/es/gids-chevron-button.js +56 -0
- package/dist-bundled/es/gids-dot.js +6 -0
- package/dist-bundled/es/gids-dropdown-field.js +88 -0
- package/dist-bundled/es/gids-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dropdown.js +6 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +6 -0
- package/dist-bundled/es/gids-icon.js +3 -29
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +6 -0
- package/dist-bundled/es/gids-line-chart.js +6 -0
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +6 -6
- package/dist-bundled/es/gids-overlay-provider.js +17 -17
- package/dist-bundled/es/gids-password-field.js +39 -38
- package/dist-bundled/es/gids-pie-chart.js +6 -0
- package/dist-bundled/es/gids-popover.js +10 -10
- package/dist-bundled/es/gids-progress-circle.js +6 -0
- package/dist-bundled/es/gids-scrim.js +8 -8
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +15 -14
- package/dist-bundled/es/gids-toggle-button.js +4 -44
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/index.js +3 -3
- package/dist-bundled/es/{p-DvoHLz_5-C5EvA91N.js → p-BQ-ZnlnH-CUVdDHzX.js} +5 -5
- package/dist-bundled/es/p-BZCJlqVe-BcSwze-q.js +71 -0
- package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
- package/dist-bundled/es/p-BpQB6ncp-C2AWddf-.js +180 -0
- package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
- package/dist-bundled/es/p-CP1wz2PI-DhVAsHFS.js +115 -0
- package/dist-bundled/es/p-CQH7eAs3-BVowyVGn.js +88 -0
- package/dist-bundled/es/p-CW7tw1Fb-DtJ5TwCU.js +92 -0
- package/dist-bundled/es/p-CaauwQNd-D6_PbcRr.js +20 -0
- package/dist-bundled/es/p-Cn3-K5eR-tQ1EOnDF.js +243 -0
- package/dist-bundled/es/p-CoS0NuDU-CqmDcRWj.js +56 -0
- package/dist-bundled/es/{p-veoOgDXg-fRinub-C.js → p-D4Pimu_8-DfEGRQGf.js} +9 -9
- package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
- package/dist-bundled/es/p-DMNS1d8v-CHF62UXm.js +29 -0
- package/dist-bundled/es/{p-iCAclJND-Bmsvd-W1.js → p-DNTv2BQ5-Bwgd30mM.js} +6 -6
- package/dist-bundled/es/p-DPIK2ayL-DPEbctqo.js +71 -0
- package/dist-bundled/es/p-Db62Pz3n-DpQjwBYb.js +31 -0
- package/dist-bundled/es/p-Degg_WJz-BLua06el.js +55 -0
- package/dist-bundled/es/p-DfxTsSdZ-C2Afv1lS.js +67 -0
- package/dist-bundled/es/p-Dg2yoUxw-Cca8ROd_.js +25 -0
- package/dist-bundled/es/p-DmLoB2Dn-D-FSoCvI.js +44 -0
- package/dist-bundled/es/p-DoCwI_bx-BXHlZI7-.js +37 -0
- package/dist-bundled/es/p-H1JIMJ2t-DEXp7M4I.js +152 -0
- package/dist-bundled/es/p-JjN8U9B5-GeWjfJBY.js +135 -0
- package/dist-bundled/es/{p-CFw4_-5A-Dzvju3VE.js → p-UVmSPzTd-DiTxS9kW.js} +9 -9
- package/dist-bundled/es/p-UxDcM-C5-Dr5d_WpJ.js +15 -0
- package/dist-bundled/es/p-V48JyMbP-Bx-0od-Z.js +80 -0
- package/dist-bundled/es/p-mZJdpfOo-DicbKil0.js +47 -0
- package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
- package/dist-bundled/umd/gids-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-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 +5 -0
- package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +5 -0
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
- package/package.json +164 -4
- package/dist/p-CFw4_-5A.js +0 -1
- package/dist/p-DijVkS9b.js +0 -1
- package/dist/p-ibikYq-w.js +0 -1
- package/dist-bundled/es/p-DijVkS9b-CeV1i4T-.js +0 -35
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { L as n, u as r, D as s, q as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { a as d } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
3
|
+
import { c as l } from "./p-Cn3-K5eR-tQ1EOnDF.js";
|
|
4
|
+
import { h } from "./p-DNTv2BQ5-Bwgd30mM.js";
|
|
5
|
+
import { r as u } from "./p-BQ-ZnlnH-CUVdDHzX.js";
|
|
6
|
+
import { g as c } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
7
|
+
const i = n(class extends r {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
super(), e !== !1 && this.__registerHost(), this.internals = this.attachInternals(), this.appearance = "default", this.expanded = !1, this.#e = c(), this.handleSelectionChange = (t) => {
|
|
10
|
+
this.value = t.value, this.syncFormValue(t.value), this.onSelectionChange?.(t);
|
|
11
|
+
}, this.handleDropdownFocusAndBlur = (t) => {
|
|
12
|
+
this.hostElement.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
#e;
|
|
16
|
+
componentWillLoad() {
|
|
17
|
+
this.syncFormValue(this.value);
|
|
18
|
+
}
|
|
19
|
+
handleValueChange(e) {
|
|
20
|
+
this.syncFormValue(e);
|
|
21
|
+
}
|
|
22
|
+
syncFormValue(e) {
|
|
23
|
+
this.internals.setFormValue(e ?? "");
|
|
24
|
+
}
|
|
25
|
+
getDropdownControl() {
|
|
26
|
+
return this.hostElement.querySelector("gids-dropdown");
|
|
27
|
+
}
|
|
28
|
+
get form() {
|
|
29
|
+
return this.getDropdownControl()?.form ?? null;
|
|
30
|
+
}
|
|
31
|
+
get validity() {
|
|
32
|
+
return this.getDropdownControl()?.validity ?? {};
|
|
33
|
+
}
|
|
34
|
+
get validationMessage() {
|
|
35
|
+
return this.getDropdownControl()?.validationMessage ?? "";
|
|
36
|
+
}
|
|
37
|
+
get willValidate() {
|
|
38
|
+
return this.getDropdownControl()?.willValidate ?? !1;
|
|
39
|
+
}
|
|
40
|
+
async checkValidity() {
|
|
41
|
+
const e = this.getDropdownControl();
|
|
42
|
+
return !e?.checkValidity || await e.checkValidity();
|
|
43
|
+
}
|
|
44
|
+
async reportValidity() {
|
|
45
|
+
const e = this.getDropdownControl();
|
|
46
|
+
return !e?.reportValidity || await e.reportValidity();
|
|
47
|
+
}
|
|
48
|
+
async setCustomValidity(e) {
|
|
49
|
+
const t = this.getDropdownControl();
|
|
50
|
+
if (t?.setCustomValidity) return await t.setCustomValidity(e);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
const e = this.inputProps?.id ?? this.#e, t = { ...this.inputProps, id: e, placeholder: this.inputProps?.placeholder ?? "Please select an option" };
|
|
54
|
+
return s("gids-field", { key: "e6a0a13ea0e4af7eed1fe4fdf4a75a0cc2e25781", disabled: this.disabled, helperText: this.helperText, statusText: this.statusText, status: this.status }, this.label !== void 0 ? s(d, { slot: "label", disabled: this.disabled, htmlFor: e, fieldRequirement: this.required ? "required" : void 0 }, this.label) : null, s("gids-dropdown", { key: "8bc3cc97ae4c0aca628ec4b23886084e1e640235", appearance: this.appearance, expanded: this.expanded, inputProps: t, disabled: this.disabled, readOnly: this.readOnly, loading: this.loading, value: this.value, name: this.name, onSelectionChange: this.handleSelectionChange, onFocus: this.handleDropdownFocusAndBlur, onBlur: this.handleDropdownFocusAndBlur, required: this.required }, s("slot", { key: "fc99a57e26453a285f0f0b9f229b6cd51807308d", name: "leadingIconDropdown" }), s("slot", { key: "97ef4d59ff8b845879ac34f3b32e47f8e8174fd2", name: "leadingAccessoryDropdown" }), s("slot", { key: "0b61c948bf3e1419e4db201fb3b659666e112fbf" })));
|
|
55
|
+
}
|
|
56
|
+
static get formAssociated() {
|
|
57
|
+
return !0;
|
|
58
|
+
}
|
|
59
|
+
get hostElement() {
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
static get watchers() {
|
|
63
|
+
return { value: [{ handleValueChange: 0 }] };
|
|
64
|
+
}
|
|
65
|
+
}, [324, "gids-dropdown-field", { label: [513], helperText: [513, "helper-text"], statusText: [513, "status-text"], status: [513], appearance: [513], expanded: [516], readOnly: [516, "readonly"], disabled: [516], loading: [516], inputProps: [16], value: [1025], name: [513], onSelectionChange: [16], required: [516], checkValidity: [64], reportValidity: [64], setCustomValidity: [64] }, void 0, { value: [{ handleValueChange: 0 }] }]);
|
|
66
|
+
function o() {
|
|
67
|
+
typeof customElements < "u" && ["gids-dropdown-field", "gids-dropdown", "gids-field", "gids-input"].forEach(((e) => {
|
|
68
|
+
switch (e) {
|
|
69
|
+
case "gids-dropdown-field":
|
|
70
|
+
customElements.get(a(e)) || customElements.define(a(e), i);
|
|
71
|
+
break;
|
|
72
|
+
case "gids-dropdown":
|
|
73
|
+
customElements.get(a(e)) || l();
|
|
74
|
+
break;
|
|
75
|
+
case "gids-field":
|
|
76
|
+
customElements.get(a(e)) || h();
|
|
77
|
+
break;
|
|
78
|
+
case "gids-input":
|
|
79
|
+
customElements.get(a(e)) || u();
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
o();
|
|
84
|
+
const b = i, V = o;
|
|
85
|
+
export {
|
|
86
|
+
b as GidsDropdownField,
|
|
87
|
+
V as defineCustomElement
|
|
88
|
+
};
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { d as c } from "./p-veoOgDXg-fRinub-C.js";
|
|
4
|
-
const t = o(class extends d {
|
|
5
|
-
constructor(i) {
|
|
6
|
-
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
|
-
}
|
|
8
|
-
connectedCallback() {
|
|
9
|
-
const i = n();
|
|
10
|
-
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return a(c, { key: "3033afda529cd2143bd0d3c3ca5c985b4b950eae", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
|
|
14
|
-
}
|
|
15
|
-
get _el() {
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
static get style() {
|
|
19
|
-
return ".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}";
|
|
20
|
-
}
|
|
21
|
-
}, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
|
|
22
|
-
function s() {
|
|
23
|
-
typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
|
|
24
|
-
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), t));
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
s();
|
|
28
|
-
const h = t, m = s;
|
|
1
|
+
import { c as o, d as e } from "./p-Db62Pz3n-DpQjwBYb.js";
|
|
2
|
+
const t = o, m = e;
|
|
29
3
|
export {
|
|
30
|
-
|
|
4
|
+
t as GidsIcon,
|
|
31
5
|
m as defineCustomElement
|
|
32
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
const
|
|
1
|
+
import { l as t, r as e } from "./p-BQ-ZnlnH-CUVdDHzX.js";
|
|
2
|
+
const o = t, s = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsInput,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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,
|
|
5
5
|
showGidsOverflowContainerBottomShadow: c,
|
|
6
6
|
showGidsOverflowContainerTopShadow: h
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r =
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r = a(class extends n {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this.shadowLocation = "bottom";
|
|
10
10
|
}
|
|
@@ -20,19 +20,19 @@ 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;
|
|
27
27
|
}
|
|
28
28
|
}, [257, "gids-overflow-container", { shadowLocation: [513, "shadow-location"] }]);
|
|
29
|
-
function
|
|
29
|
+
function i() {
|
|
30
30
|
typeof customElements < "u" && ["gids-overflow-container"].forEach(((t) => {
|
|
31
31
|
t === "gids-overflow-container" && (customElements.get(o(t)) || customElements.define(o(t), r));
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
const p = r, m =
|
|
34
|
+
i();
|
|
35
|
+
const p = r, m = i;
|
|
36
36
|
export {
|
|
37
37
|
p as GidsOverflowContainer,
|
|
38
38
|
m as defineCustomElement
|
|
@@ -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
|
|
@@ -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,24 +111,24 @@ 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 } = j,
|
|
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:
|
|
122
|
-
const c =
|
|
123
|
-
return o("div", { class:
|
|
124
|
-
}, { getComponentClasses: B, getComponentStackClasses: G } = O, _ =
|
|
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
|
+
const c = E(i);
|
|
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
|
+
}, { getComponentClasses: B, getComponentStackClasses: G } = O, _ = C(class extends y {
|
|
125
125
|
constructor(t) {
|
|
126
126
|
super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this._parentOverlayProvider = null, this._componentQueue = [], this._allowedComponentQueue = [], this._exitingComponents = [], this._renderSnackbar = (e, n) => {
|
|
127
127
|
const { id: i, message: a, appearance: r, buttonLabel: s, onButtonClick: m } = e;
|
|
128
|
-
return o(
|
|
128
|
+
return o(X, { key: i, class: n, children: a, appearance: r, button: s != null && s !== "" ? o(u, { appearance: "subtle", onClick: m }, s) : void 0 });
|
|
129
129
|
}, this._renderNotification = (e, n) => {
|
|
130
130
|
const { id: i, notificationTitle: a, message: r, pronunciation: s, appearance: m, buttonLabel: c, onButtonClick: l, timerInMs: d } = e;
|
|
131
|
-
return o(
|
|
131
|
+
return o(R, { key: i, class: n, notificationTitle: a, children: r, pronunciation: s, appearance: m, onCloseNotificationClick: () => this.removeComponent(e, d || 0, !0), button: c != null && c !== "" ? o(u, { appearance: "default", size: "sm", onClick: l }, c) : void 0 });
|
|
132
132
|
}, this._renderComponent = (e) => {
|
|
133
133
|
const { componentName: n, position: i = "bottom-center", id: a } = e, r = B({ position: i, id: a, exitingComponents: this._exitingComponents });
|
|
134
134
|
return n == null || n === "snackbar" ? this._renderSnackbar(e, r) : n === "notification" ? this._renderNotification(e, r) : null;
|
|
@@ -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;
|
|
@@ -196,13 +196,13 @@ const Q = ({ appearance: t }, e) => h("gids-snackbar-container", {
|
|
|
196
196
|
return ".common-component-stack{display:flex;flex-direction:column;position:fixed;gap:var(--gids-gap-200);min-width:var(--gids-width-2-xs);max-width:var(--gids-width-md);width:100%}.component-stack-bottom-left{justify-self:left;bottom:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-right{justify-self:right;bottom:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-left{top:50%;justify-self:left;align-self:center;left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-middle-right{top:50%;justify-self:right;align-self:center;right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-center{justify-self:center;top:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-left{justify-self:left;top:var(--gids-padding-vertical-edge-to-element-250);left:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-top-right{justify-self:right;top:var(--gids-padding-vertical-edge-to-element-250);right:var(--gids-padding-vertical-edge-to-element-250)}.component-stack-bottom-center{justify-self:center;bottom:var(--gids-padding-vertical-edge-to-element-250)}.component-enter-bottom-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-middle-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-center{animation-name:slide-up-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-left{animation-name:left-to-right-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-top-right{animation-name:right-to-left-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-enter-bottom-center{animation-name:slide-up-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-middle-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-center{animation-name:slide-down-visible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-left{animation-name:right-to-left-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-top-right{animation-name:left-to-right-invisible;animation-duration:0.3s;animation-fill-mode:forwards}.component-exit-bottom-center{animation-name:slide-down-invisible;animation-duration:0.3s;animation-fill-mode:forwards}@keyframes slide-up-visible{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-invisible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(100%)}}@keyframes slide-up-invisible{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down-visible{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-100%)}}@keyframes left-to-right-visible{0%{opacity:0;transform:translateX(-100%)}100%{opacity:1;transform:translateX(0)}}@keyframes right-to-left-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}@keyframes right-to-left-visible{0%{opacity:0;transform:translateX(100%)}100%{opacity:1;transform:translateX(0)}}@keyframes left-to-right-invisible{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}";
|
|
197
197
|
}
|
|
198
198
|
}, [257, "gids-overlay-provider", { _componentQueue: [32], _allowedComponentQueue: [32], _exitingComponents: [32], queueComponent: [64] }]);
|
|
199
|
-
function
|
|
199
|
+
function k() {
|
|
200
200
|
typeof customElements < "u" && ["gids-overlay-provider"].forEach(((t) => {
|
|
201
201
|
t === "gids-overlay-provider" && (customElements.get(f(t)) || customElements.define(f(t), _));
|
|
202
202
|
}));
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
const K = _, U =
|
|
204
|
+
k();
|
|
205
|
+
const K = _, U = k;
|
|
206
206
|
export {
|
|
207
207
|
K as GidsOverlayProvider,
|
|
208
208
|
U as defineCustomElement
|
|
@@ -1,28 +1,29 @@
|
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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";
|
|
8
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
9
|
-
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 }) => {
|
|
10
11
|
if (!e || e === "")
|
|
11
12
|
return 0;
|
|
12
13
|
let n = 0;
|
|
13
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;
|
|
14
|
-
},
|
|
15
|
+
}, B = ({ textScore: e, maxScore: t }) => {
|
|
15
16
|
const s = t > 0 ? e / t * 100 : 0;
|
|
16
17
|
return s <= 20 ? "is-weak" : s <= 40 ? "is-medium" : s <= 60 ? "is-good-enough" : s <= 80 ? "is-good" : "is-strong";
|
|
17
|
-
},
|
|
18
|
+
}, A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
19
|
__proto__: null,
|
|
19
|
-
getColorModifierByScore:
|
|
20
|
-
getStrengthMeterScore:
|
|
20
|
+
getColorModifierByScore: B,
|
|
21
|
+
getStrengthMeterScore: G,
|
|
21
22
|
include1DigitReg: b,
|
|
22
23
|
include1LowercaseLetterReg: p,
|
|
23
24
|
include1SpecialCharReg: q,
|
|
24
25
|
include1UppercaseLetterReg: f
|
|
25
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), o = ({ requirementRule: e, textMinLength: t }) => e === "include-min-length" && t && t > 0, R = (e) => {
|
|
26
27
|
const t = [];
|
|
27
28
|
return e && e.length > 0 && e.map((s) => {
|
|
28
29
|
s?.requirementRule && t.push(s.requirementRule);
|
|
@@ -40,7 +41,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
40
41
|
case "1-special-character":
|
|
41
42
|
return q.test(s);
|
|
42
43
|
case "include-min-length":
|
|
43
|
-
return
|
|
44
|
+
return o({
|
|
44
45
|
requirementRule: "include-min-length",
|
|
45
46
|
textMinLength: t
|
|
46
47
|
}) === !0 && s.length >= t;
|
|
@@ -66,7 +67,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
66
67
|
requirementText: "Password must contain atleast 1 lowercase letter."
|
|
67
68
|
}
|
|
68
69
|
];
|
|
69
|
-
return
|
|
70
|
+
return o({
|
|
70
71
|
requirementRule: "include-min-length",
|
|
71
72
|
textMinLength: e
|
|
72
73
|
}) && t.push({
|
|
@@ -76,13 +77,13 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
76
77
|
defaultMeterRules: R(t),
|
|
77
78
|
defaultRequirementsMeterRules: t
|
|
78
79
|
};
|
|
79
|
-
},
|
|
80
|
+
}, $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
80
81
|
__proto__: null,
|
|
81
82
|
checkRequirementRuleSatisfied: I,
|
|
82
83
|
getDefaultRulesAndRequirementsForMeters: m,
|
|
83
84
|
getMeterRulesFromRequirements: R,
|
|
84
|
-
minLengthRuleCanBeApplied:
|
|
85
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
85
|
+
minLengthRuleCanBeApplied: o
|
|
86
|
+
}, Symbol.toStringTag, { value: "Module" })), D = (e) => {
|
|
86
87
|
switch (e) {
|
|
87
88
|
case "error":
|
|
88
89
|
return "danger";
|
|
@@ -95,10 +96,10 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
95
96
|
default:
|
|
96
97
|
return "globe";
|
|
97
98
|
}
|
|
98
|
-
},
|
|
99
|
+
}, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
99
100
|
__proto__: null,
|
|
100
|
-
getRequirementsMeterLabelLeadingIcon:
|
|
101
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
101
|
+
getRequirementsMeterLabelLeadingIcon: D
|
|
102
|
+
}, Symbol.toStringTag, { value: "Module" })), V = (e) => {
|
|
102
103
|
switch (e) {
|
|
103
104
|
case "error":
|
|
104
105
|
return "error";
|
|
@@ -107,12 +108,12 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
107
108
|
default:
|
|
108
109
|
return "default";
|
|
109
110
|
}
|
|
110
|
-
},
|
|
111
|
+
}, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
111
112
|
__proto__: null,
|
|
112
|
-
inputToGidsFieldStatusForPassword:
|
|
113
|
-
}, 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({
|
|
114
115
|
__proto__: null,
|
|
115
|
-
getGidsStrengthMeterClassNames:
|
|
116
|
+
getGidsStrengthMeterClassNames: H
|
|
116
117
|
}, Symbol.toStringTag, { value: "Module" })), W = ({ status: e }, t) => g("gids-requirements-meter-label", {
|
|
117
118
|
"gids-requirements-meter-label--error": e === "error",
|
|
118
119
|
"gids-requirements-meter-label--information": e === "information",
|
|
@@ -124,27 +125,27 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
124
125
|
}, Symbol.toStringTag, { value: "Module" })), K = (e) => g("gids-requirements-meter", e), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
125
126
|
__proto__: null,
|
|
126
127
|
getGidsRequirementsMeterClassNames: K
|
|
127
|
-
}, 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({
|
|
128
129
|
__proto__: null,
|
|
129
130
|
inputToGidsFieldStatusForPassword: Y
|
|
130
|
-
}, 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 }) => {
|
|
131
132
|
const a = (r, l, u) => i("div", { key: r, class: ["gids-strength-meter__strength-" + r, u ? "is-active" : "", u ? l : ""].filter(Boolean).join(" ") });
|
|
132
133
|
return s.length > 0 ? i("div", { class: te(n) }, (() => {
|
|
133
134
|
const r = s.length, l = se({ text: e, textMinLength: t, meterRules: s }), u = re({ textScore: l, maxScore: r });
|
|
134
135
|
return Array.from({ length: r }, ((_, c) => {
|
|
135
|
-
const
|
|
136
|
-
return s[
|
|
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);
|
|
137
138
|
}));
|
|
138
139
|
})()) : null;
|
|
139
|
-
}, { getGidsRequirementsMeterLabelClassNames: ne } = J, { getRequirementsMeterLabelLeadingIcon: le } =
|
|
140
|
+
}, { getGidsRequirementsMeterLabelClassNames: ne } = J, { getRequirementsMeterLabelLeadingIcon: le } = N, ae = (e) => {
|
|
140
141
|
const { label: t, status: s = "default", leadingIconVisible: n = !0, class: a } = e, r = le(s);
|
|
141
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);
|
|
142
|
-
}, { checkRequirementRuleSatisfied: ue } =
|
|
143
|
+
}, { checkRequirementRuleSatisfied: ue } = $, { getGidsRequirementsMeterClassNames: de } = Q, oe = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
|
|
143
144
|
const a = (r, l) => i(ae, { status: l ? "success" : "error", label: r.requirementText });
|
|
144
|
-
return i("div", { class:
|
|
145
|
+
return i("div", { class: de(n) }, e.map(((r) => {
|
|
145
146
|
if (r?.requirementText != null && r?.requirementRule != null) {
|
|
146
147
|
const l = ue({ rule: r.requirementRule, textMinLength: s, text: t });
|
|
147
|
-
return r.requirementRule === "include-min-length" ?
|
|
148
|
+
return r.requirementRule === "include-min-length" ? o({ requirementRule: r.requirementRule, textMinLength: s }) === !0 ? a(r, l) : null : a(r, l);
|
|
148
149
|
}
|
|
149
150
|
return null;
|
|
150
151
|
})));
|
|
@@ -190,7 +191,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, z = ({ text: e,
|
|
|
190
191
|
#e;
|
|
191
192
|
render() {
|
|
192
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;
|
|
193
|
-
return i(T, { key: "
|
|
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 })));
|
|
194
195
|
}
|
|
195
196
|
get _el() {
|
|
196
197
|
return this;
|
|
@@ -206,16 +207,16 @@ function y() {
|
|
|
206
207
|
customElements.get(h(e)) || customElements.define(h(e), M);
|
|
207
208
|
break;
|
|
208
209
|
case "gids-field":
|
|
209
|
-
customElements.get(h(e)) ||
|
|
210
|
+
customElements.get(h(e)) || z();
|
|
210
211
|
break;
|
|
211
212
|
case "gids-input":
|
|
212
|
-
customElements.get(h(e)) ||
|
|
213
|
+
customElements.get(h(e)) || E();
|
|
213
214
|
}
|
|
214
215
|
}));
|
|
215
216
|
}
|
|
216
217
|
y();
|
|
217
|
-
const
|
|
218
|
+
const we = M, ve = y;
|
|
218
219
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
we as GidsPasswordField,
|
|
221
|
+
ve as defineCustomElement
|
|
221
222
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as
|
|
3
|
-
import { o as
|
|
1
|
+
import { L as v, u as p, D as a, F as f, q as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { g as E } from "./p-a3JfEYJp-DyhDK6VZ.js";
|
|
3
|
+
import { o as b } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
4
4
|
const h = v(class extends p {
|
|
5
5
|
constructor(e) {
|
|
6
6
|
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.placement = "bottom", this.previouslyFocusedElement = null, this.focusableElements = [], this.handleToggleEvent = (t) => {
|
|
@@ -14,7 +14,7 @@ const h = v(class extends p {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
componentDidLoad() {
|
|
17
|
-
this.floatingElementManager = new
|
|
17
|
+
this.floatingElementManager = new E(this._el, { htmlFor: this.htmlFor, placement: this.placement, showWithoutDelay: !0, floatingElementSelector: "#popover", arrowElementSelector: "#arrow", visibilityClass: "gids-popover--visible", elementType: b.POPOVER, getAnchorElementFromSlot: (e) => e.querySelector('slot[name="anchor"]')?.assignedElements()[0] || null }), this.floatingElementManager.initialize(), this.setupEventListeners();
|
|
18
18
|
}
|
|
19
19
|
setupEventListeners() {
|
|
20
20
|
const e = this.floatingElementManager.getAnchorElement();
|
|
@@ -38,8 +38,8 @@ const h = v(class extends p {
|
|
|
38
38
|
const s = c(i);
|
|
39
39
|
t.push(...s);
|
|
40
40
|
})), this.focusableElements = t.sort(((i, s) => {
|
|
41
|
-
const r = i.compareDocumentPosition(s),
|
|
42
|
-
return
|
|
41
|
+
const r = i.compareDocumentPosition(s), u = !!(r & Node.DOCUMENT_POSITION_FOLLOWING), m = !!(r & Node.DOCUMENT_POSITION_PRECEDING);
|
|
42
|
+
return u ? -1 : m ? 1 : 0;
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
45
45
|
trapFocus(e) {
|
|
@@ -64,7 +64,7 @@ const h = v(class extends p {
|
|
|
64
64
|
e && e.removeEventListener("click", this.handleToggleEvent), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleKeyDown);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return a(f, { key: "
|
|
67
|
+
return a(f, { key: "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,10 +1,10 @@
|
|
|
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({
|
|
5
5
|
__proto__: null,
|
|
6
6
|
getGidsScrimClassNames: d
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: a } = m,
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: a } = m, i = o(class extends c {
|
|
8
8
|
constructor(s) {
|
|
9
9
|
super(), s !== !1 && this.__registerHost(), this.__attachShadow(), this.activeClasses = "";
|
|
10
10
|
}
|
|
@@ -16,7 +16,7 @@ const d = (s) => n("gids-scrim", s), m = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
16
16
|
s !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(s), this.activeClasses = a(this.extraClasses);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return e("div", { key: "
|
|
19
|
+
return e("div", { key: "43ae2df4c05e5ce29bb2cd6755ef4472e9a6e078", class: this.activeClasses, part: "root" }, e("slot", { key: "2610048a1d440e95632575b232ca7d923f66cea5" }));
|
|
20
20
|
}
|
|
21
21
|
get _el() {
|
|
22
22
|
return this;
|
|
@@ -28,14 +28,14 @@ const d = (s) => n("gids-scrim", s), m = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
28
28
|
return ".gids-scrim{display:flex;flex-direction:column;background-color:var(--gids-color-background-scrim);height:100vh !important;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1001;align-items:center;justify-content:center;backdrop-filter:blur(12)}";
|
|
29
29
|
}
|
|
30
30
|
}, [257, "gids-scrim", { extraClasses: [513, "extra-classes"], activeClasses: [32] }, void 0, { extraClasses: [{ handleExtraClassesChange: 0 }] }]);
|
|
31
|
-
function
|
|
31
|
+
function r() {
|
|
32
32
|
typeof customElements < "u" && ["gids-scrim"].forEach(((s) => {
|
|
33
|
-
s === "gids-scrim" && (customElements.get(t(s)) || customElements.define(t(s),
|
|
33
|
+
s === "gids-scrim" && (customElements.get(t(s)) || customElements.define(t(s), i));
|
|
34
34
|
}));
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
r();
|
|
37
|
+
const f = i, C = r;
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
f as GidsScrim,
|
|
40
40
|
C as defineCustomElement
|
|
41
41
|
};
|