@ganpatiinfo/gids-core-web 10.1.0 → 10.2.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 +201 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-tab-item.d.ts +11 -0
- package/dist/gids-tab-item.js +1 -0
- package/dist/gids-tab.d.ts +11 -0
- package/dist/gids-tab.js +1 -0
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/{p-DfxTsSdZ.js → p-5VIPb1eU.js} +1 -1
- package/dist/{p-Db62Pz3n.js → p-8tOn5SjU.js} +1 -1
- package/dist/{p-V48JyMbP.js → p-B1Jgtjhu.js} +1 -1
- package/dist/{p-mZJdpfOo.js → p-BYDimyG-.js} +1 -1
- package/dist/{p-DPIK2ayL.js → p-BfnzH6wp.js} +1 -1
- package/dist/p-Bj28yqMD.js +1 -0
- package/dist/{p-CW7tw1Fb.js → p-C-cUL-aA.js} +1 -1
- package/dist/{p-DNTv2BQ5.js → p-C7ifjRCE.js} +1 -1
- package/dist/{p-JjN8U9B5.js → p-Ciw-O9qN.js} +1 -1
- package/dist/{p-BpQB6ncp.js → p-DiNad9Px.js} +1 -1
- package/dist/{p-CQH7eAs3.js → p-DoPuGtJd.js} +1 -1
- package/dist/{p-BQ-ZnlnH.js → p-Doi8Yizl.js} +1 -1
- package/dist/{p-BZCJlqVe.js → p-Jdpe4Sgj.js} +1 -1
- package/dist/{p-CP1wz2PI.js → p-bPPm7cuw.js} +1 -1
- package/dist/{p-DoCwI_bx.js → p-qb1aWgjh.js} +1 -1
- package/dist/{p-H1JIMJ2t.js → p-qrjEbv6g.js} +1 -1
- package/dist/{p-Cn3-K5eR.js → p-xITwQAMz.js} +1 -1
- package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
- package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
- package/dist/types/components.d.ts +123 -2
- package/dist-bundled/es/gids-action-bar.js +4 -4
- 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 +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +3 -3
- package/dist-bundled/es/gids-calendar.js +33 -33
- 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 +6 -6
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +10 -10
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +3 -3
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +19 -19
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-tab-item.js +100 -0
- package/dist-bundled/es/gids-tab.js +63 -0
- package/dist-bundled/es/gids-text-field.js +9 -9
- package/dist-bundled/es/gids-toggle-button.js +4 -4
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
- package/dist-bundled/es/{p-DfxTsSdZ-C2Afv1lS.js → p-5VIPb1eU-MCAo8JCp.js} +2 -2
- package/dist-bundled/es/{p-Db62Pz3n-DpQjwBYb.js → p-8tOn5SjU-D9rZ28cf.js} +10 -10
- package/dist-bundled/es/{p-V48JyMbP-Bx-0od-Z.js → p-B1Jgtjhu-B_VYp-ZP.js} +7 -7
- package/dist-bundled/es/{p-mZJdpfOo-DicbKil0.js → p-BYDimyG--DBCLrqDJ.js} +6 -6
- package/dist-bundled/es/{p-DPIK2ayL-DPEbctqo.js → p-BfnzH6wp-BfLC7Nak.js} +2 -2
- package/dist-bundled/es/{p-DmLoB2Dn-D-FSoCvI.js → p-Bj28yqMD-Dz1SWSqM.js} +6 -6
- package/dist-bundled/es/{p-CW7tw1Fb-DtJ5TwCU.js → p-C-cUL-aA-2jsvw-Lr.js} +11 -11
- package/dist-bundled/es/{p-DNTv2BQ5-Bwgd30mM.js → p-C7ifjRCE-CRlorwoN.js} +12 -12
- package/dist-bundled/es/{p-JjN8U9B5-GeWjfJBY.js → p-Ciw-O9qN-DkWfirFu.js} +4 -4
- package/dist-bundled/es/{p-BpQB6ncp-C2AWddf-.js → p-DiNad9Px-uOCMHqAq.js} +9 -9
- package/dist-bundled/es/{p-CQH7eAs3-BVowyVGn.js → p-DoPuGtJd-DYlbhh57.js} +2 -2
- package/dist-bundled/es/{p-BQ-ZnlnH-CUVdDHzX.js → p-Doi8Yizl-BszWK5Dq.js} +3 -3
- package/dist-bundled/es/{p-BZCJlqVe-BcSwze-q.js → p-Jdpe4Sgj-acwaxLtK.js} +5 -5
- package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
- package/dist-bundled/es/{p-CP1wz2PI-DhVAsHFS.js → p-bPPm7cuw-B-dtPJF9.js} +5 -5
- package/dist-bundled/es/{p-DoCwI_bx-BXHlZI7-.js → p-qb1aWgjh-CzmMPIME.js} +6 -6
- package/dist-bundled/es/{p-H1JIMJ2t-DEXp7M4I.js → p-qrjEbv6g-ITSp3ky_.js} +2 -2
- package/dist-bundled/es/{p-Cn3-K5eR-tQ1EOnDF.js → p-xITwQAMz-BMXjOAAQ.js} +12 -12
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +1 -1
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +5 -0
- package/dist-bundled/umd/gids-tab.umd.js +5 -0
- 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 +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +20 -4
- package/dist/p-DmLoB2Dn.js +0 -1
- package/dist-bundled/es/p-UVmSPzTd-DiTxS9kW.js +0 -25
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { L as J, q as v, u as K, D as r } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as V, m as _, x as z, N as $ } from "./p-D6lxqcxP-DWrZi1Xi.js";
|
|
3
|
-
import { o as E } from "./p-UVmSPzTd-
|
|
3
|
+
import { o as E } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
4
4
|
import { d as G } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
5
|
-
import { a as Q } from "./p-
|
|
6
|
-
import { o as R } from "./p-
|
|
5
|
+
import { a as Q } from "./p-qrjEbv6g-ITSp3ky_.js";
|
|
6
|
+
import { o as R } from "./p-Bj28yqMD-Dz1SWSqM.js";
|
|
7
7
|
import { c as U } from "./clsx-OuTLNxxd.js";
|
|
8
8
|
const W = (e) => U("gids-action-bar", e), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
9
|
__proto__: null,
|
|
@@ -128,7 +128,7 @@ const W = (e) => U("gids-action-bar", e), X = /* @__PURE__ */ Object.freeze(/* @
|
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
130
|
const e = Y(), t = this?.primaryFilters ?? [], l = this?.secondaryFilters ?? [], a = this.isMoreFilterVisible(), d = this.moreFiltersData, f = d?.filterPickerData ?? [], p = { disabled: this?.moreFiltersData?.disabled, filterDefaultSelected: this?.moreFiltersData?.filterDefaultSelected, loading: this?.moreFiltersData?.loading }, u = this.isAllFilterVisible(), g = this.getAllFiltersValue(), y = { defaultSelected: this?.allFiltersData?.defaultSelected, disabled: this?.allFiltersData?.disabled, loading: this?.allFiltersData?.loading }, m = this.dropdownDividerVisible, n = this.filterSize, b = this.isActionGroup(), F = this?.allFiltersData?.filterId && this.allFiltersData.filterId !== "" ? this.allFiltersData.filterId : `1_${g}_primary`, s = this?.moreFiltersData?.filterId && this.moreFiltersData.filterId !== "" ? this.moreFiltersData.filterId : l.length + 1 + "_more_secondary", A = "secondary", w = "more", M = l.length + 1, L = this.getSelectedDropdownFilterTitle(s);
|
|
131
|
-
return r("div", { key: "
|
|
131
|
+
return r("div", { key: "bcdc09481518a9951c8e790fd3e4962e4a7f2c04", class: e }, r("div", { key: "b03978a9f7f516fc8da66291a9aac44a90bbbb94", class: "gids-action-bar__primary-filters" }, r(V, { key: "48635f38cf5aac9949d515e0816c3154bb7f1331", layout: "wrap" }, u ? r("gids-filter", { type: "all", filterId: F, filterIndex: 0, filterItemType: "primary", filterSelected: this.isNormalFilterSelected(F), value: g, ...y, disabled: this.isAllFiltersTabDisabled(), size: n, onFilterMenuItemChange: this.handleAllFilterClick }) : void 0, t.map(((i, o) => {
|
|
132
132
|
const S = i?.filterPickerData ?? [], c = i?.filterId && i.filterId !== "" ? i.filterId : o + 1 + "_primary", h = "primary", C = "none", T = this.getSelectedDropdownFilterTitle(c);
|
|
133
133
|
return r("gids-filter", { key: `${c}_${T}`, ...i, filterIndex: o + 1, filterId: c, disabled: i?.disabled || this.disabled, filterDefaultSelected: i?.filterDefaultSelected, filterSelected: this.isDropdownFilterSelected(c), type: C, filterItemType: h, title: T, value: T, size: n, expanded: this.activeExpandedFilterId === c, onToggle: (I) => this.toggleDropdownFilter({ detail: I, filterId: c, pickerData: S }) }, r(_, { type: "default" }, S.map(((I, k) => {
|
|
134
134
|
const x = I?.sectionLabel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as e, g as a } from "./p-
|
|
2
|
-
const
|
|
1
|
+
import { u as e, g as a } from "./p-DiNad9Px-uOCMHqAq.js";
|
|
2
|
+
const o = e, r = a;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsCalendarHeaderPanel,
|
|
5
|
+
r as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as e, u as
|
|
2
|
-
const
|
|
1
|
+
import { l as e, u as a } from "./p-C-cUL-aA-2jsvw-Lr.js";
|
|
2
|
+
const t = e, o = a;
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
t as GidsCalendarYearList,
|
|
5
5
|
o as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { L as P, u as D, D as d, q as
|
|
2
|
-
import {
|
|
3
|
-
import { c as N } from "./p-
|
|
4
|
-
import { u as Y } from "./p-
|
|
5
|
-
import { g as k } from "./p-
|
|
6
|
-
import {
|
|
7
|
-
import { d as x } from "./p-
|
|
8
|
-
import { c as
|
|
9
|
-
const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) =>
|
|
1
|
+
import { L as P, u as D, D as d, q as o } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { n as S, g as M } from "./p-DiNad9Px-uOCMHqAq.js";
|
|
3
|
+
import { c as N } from "./p-B1Jgtjhu-B_VYp-ZP.js";
|
|
4
|
+
import { u as Y } from "./p-C-cUL-aA-2jsvw-Lr.js";
|
|
5
|
+
import { g as k } from "./p-Jdpe4Sgj-acwaxLtK.js";
|
|
6
|
+
import { a as w } from "./p-Ciw-O9qN-DkWfirFu.js";
|
|
7
|
+
import { d as x } from "./p-8tOn5SjU-D9rZ28cf.js";
|
|
8
|
+
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => p("gids-calendar-cell", {
|
|
10
10
|
"gids-calendar-cell--selected": t && !e && !a,
|
|
11
11
|
"gids-calendar-cell--today": a && !e && !r,
|
|
12
12
|
"gids-calendar-cell--label-non-effective": n === "non-effective",
|
|
@@ -22,53 +22,53 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => f(
|
|
|
22
22
|
}, l), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
24
|
getGidsCalendarCellClassNames: _
|
|
25
|
-
}, Symbol.toStringTag, { value: "Module" })), A = (e) =>
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), A = (e) => p("gids-calendar-day-cell", e), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
26
|
__proto__: null,
|
|
27
27
|
getGidsCalendarDayCellClassNames: A
|
|
28
|
-
}, Symbol.toStringTag, { value: "Module" })), $ = ({ width: e }, t) =>
|
|
28
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = ({ width: e }, t) => p("gids-calendar", {
|
|
29
29
|
"gids-calendar--width-fixed": e === "fixed",
|
|
30
30
|
"gids-calendar--width-intrinsic": e === "intrinsic"
|
|
31
31
|
}, t), T = ({ currentMonth: e, currentYear: t }) => {
|
|
32
32
|
if (!t || !e)
|
|
33
33
|
return [];
|
|
34
|
-
const a = t, n = e - 1, r = new Date(a, n, 1).getDay(), l = new Date(a, n + 1, 0).getDate(), g = new Date(a, n, 0).getDate(),
|
|
34
|
+
const a = t, n = e - 1, r = new Date(a, n, 1).getDay(), l = new Date(a, n + 1, 0).getDate(), g = new Date(a, n, 0).getDate(), c = [], h = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
35
35
|
for (let s = r - 1; s >= 0; s--) {
|
|
36
|
-
const i = g - s, u = n === 0 ? 12 : n,
|
|
37
|
-
|
|
36
|
+
const i = g - s, u = n === 0 ? 12 : n, f = `${n === 0 ? a - 1 : a}-${String(u).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
|
|
37
|
+
c.push({
|
|
38
38
|
day: i,
|
|
39
39
|
isCurrentMonth: !1,
|
|
40
|
-
dateString:
|
|
41
|
-
isToday: h ===
|
|
40
|
+
dateString: f,
|
|
41
|
+
isToday: h === f
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
for (let s = 1; s <= l; s++) {
|
|
45
45
|
const i = `${a}-${String(e).padStart(2, "0")}-${String(s).padStart(2, "0")}`;
|
|
46
|
-
|
|
46
|
+
c.push({
|
|
47
47
|
day: s,
|
|
48
48
|
isCurrentMonth: !0,
|
|
49
49
|
dateString: i,
|
|
50
50
|
isToday: h === i
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
const m = 42 -
|
|
53
|
+
const m = 42 - c.length;
|
|
54
54
|
for (let s = 1; s <= m; s++) {
|
|
55
|
-
const i = n === 11 ? 1 : n + 2,
|
|
56
|
-
|
|
55
|
+
const i = n === 11 ? 1 : n + 2, b = `${n === 11 ? a + 1 : a}-${String(i).padStart(2, "0")}-${String(s).padStart(2, "0")}`;
|
|
56
|
+
c.push({
|
|
57
57
|
day: s,
|
|
58
58
|
isCurrentMonth: !1,
|
|
59
|
-
dateString:
|
|
60
|
-
isToday: h ===
|
|
59
|
+
dateString: b,
|
|
60
|
+
isToday: h === b
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return c;
|
|
64
64
|
}, H = () => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
65
|
__proto__: null,
|
|
66
66
|
generateCalendarDays: T,
|
|
67
67
|
generateCalendarWeekdays: H,
|
|
68
68
|
getGidsCalendarClassNames: $
|
|
69
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarCellClassNames: V } = E, C = ({ label: e, dot: t, disabled: a, selected: n, today: r, onPressCalendarCell: l, class: g, role:
|
|
69
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarCellClassNames: V } = E, C = ({ label: e, dot: t, disabled: a, selected: n, today: r, onPressCalendarCell: l, class: g, role: c = "gridcell", cellType: h = "effective", ...m }) => {
|
|
70
70
|
const s = !a && h === "effective";
|
|
71
|
-
return d("button", { class: V({ disabled: a, selected: n, today: r, cellType: h, dot: t }, g), type: "button", role:
|
|
71
|
+
return d("button", { class: V({ disabled: a, selected: n, today: r, cellType: h, dot: t }, g), type: "button", role: c, "aria-selected": n ? "true" : "false", disabled: a, onClick: (i) => {
|
|
72
72
|
if (i.defaultPrevented || a || !s) return;
|
|
73
73
|
const u = new CustomEvent("onPressCalendarCell", { bubbles: !0, composed: !0, detail: { cellValue: e, selected: n, disabled: a, dot: t, today: r } });
|
|
74
74
|
l && l(u);
|
|
@@ -107,7 +107,7 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => f(
|
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
109
|
const e = I({ currentYear: this.currentYear, currentMonth: this.currentMonth }), t = W(), a = z({ width: this.width });
|
|
110
|
-
return d("div", { key: "
|
|
110
|
+
return d("div", { key: "003d0aa83d81d0c798d047555c05c8685e201c5f", class: a }, d("gids-calendar-header-panel", { key: "723e65be1a59eb101692248a2e9d27c360adb896", appearance: this.panelActionsAppearance, startYear: this.startYear, endYear: this.endYear, monthPickerDisabled: this.monthPickerDisabled, yearPickerDisabled: this.yearPickerDisabled, previousDisabled: this.previousDisabled, nextDisabled: this.nextDisabled, panelDisabled: this.panelDisabled, selectedMonthNumber: this.currentMonth, selectedYear: this.currentYear, onPanelMonthChange: this.handleCHPOnPanelMonthChangeEvent, onPanelYearChange: this.handleCHPOnPanelYearChangeEvent, onNextChange: this.handleCHPOnNextActionEvent, onPreviousChange: this.handleCHPOnPreviousActionEvent }), d("div", { key: "fb254d78210b4204c923dfbe64e0c057f82f21fe", class: "gids-calendar__weekdays-grid" }, t.map(((n) => d(G, { label: n })))), d("div", { key: "35bdf1389a11c99d4a2712f1904bc113b468eb5b", class: "gids-calendar__days-grid" }, e.map(((n) => {
|
|
111
111
|
const r = this.selectedDate === n.dateString, l = this.dotVisibleDates?.includes(n.dateString);
|
|
112
112
|
return d(C, { label: n.day + "", today: n.isToday, selected: r, dot: l, cellType: "effective", disabled: !n.isCurrentMonth, onPressCalendarCell: (g) => this.handleDateCellClick({ event: g, dateStr: n.dateString, isCurrentMonth: n.isCurrentMonth }) });
|
|
113
113
|
}))));
|
|
@@ -123,25 +123,25 @@ function y() {
|
|
|
123
123
|
typeof customElements < "u" && ["gids-calendar", "gids-calendar-header-panel", "gids-calendar-month-list", "gids-calendar-year-list", "gids-dot", "gids-dropdown-picker", "gids-icon"].forEach(((e) => {
|
|
124
124
|
switch (e) {
|
|
125
125
|
case "gids-calendar":
|
|
126
|
-
customElements.get(
|
|
126
|
+
customElements.get(o(e)) || customElements.define(o(e), v);
|
|
127
127
|
break;
|
|
128
128
|
case "gids-calendar-header-panel":
|
|
129
|
-
customElements.get(
|
|
129
|
+
customElements.get(o(e)) || M();
|
|
130
130
|
break;
|
|
131
131
|
case "gids-calendar-month-list":
|
|
132
|
-
customElements.get(
|
|
132
|
+
customElements.get(o(e)) || N();
|
|
133
133
|
break;
|
|
134
134
|
case "gids-calendar-year-list":
|
|
135
|
-
customElements.get(
|
|
135
|
+
customElements.get(o(e)) || Y();
|
|
136
136
|
break;
|
|
137
137
|
case "gids-dot":
|
|
138
|
-
customElements.get(
|
|
138
|
+
customElements.get(o(e)) || k();
|
|
139
139
|
break;
|
|
140
140
|
case "gids-dropdown-picker":
|
|
141
|
-
customElements.get(
|
|
141
|
+
customElements.get(o(e)) || w();
|
|
142
142
|
break;
|
|
143
143
|
case "gids-icon":
|
|
144
|
-
customElements.get(
|
|
144
|
+
customElements.get(o(e)) || x();
|
|
145
145
|
}
|
|
146
146
|
}));
|
|
147
147
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { d as e, l as t } from "./p-BYDimyG--DBCLrqDJ.js";
|
|
2
|
+
const o = e, s = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsChartLegendItem,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e,
|
|
2
|
-
const
|
|
1
|
+
import { r as e, d as t } from "./p-qb1aWgjh-CzmMPIME.js";
|
|
2
|
+
const r = e, s = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
r as GidsChartLegend,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { L as u, u as m, D as a, q as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { r as o, c as y, b, a as T, C } from "./p-CaauwQNd-D6_PbcRr.js";
|
|
3
|
-
import { d as v } from "./p-
|
|
4
|
-
import { g as f } from "./p-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { d as v } from "./p-5VIPb1eU-MCAo8JCp.js";
|
|
4
|
+
import { g as f } from "./p-bPPm7cuw-B-dtPJF9.js";
|
|
5
|
+
import { d as k } from "./p-qb1aWgjh-CzmMPIME.js";
|
|
6
|
+
import { l as _ } from "./p-BYDimyG--DBCLrqDJ.js";
|
|
7
7
|
import { h as A } from "./p-Degg_WJz-BLua06el.js";
|
|
8
|
-
import { g as P } from "./p-
|
|
9
|
-
import { c as E } from "./p-
|
|
8
|
+
import { g as P } from "./p-DoPuGtJd-DYlbhh57.js";
|
|
9
|
+
import { c as E } from "./p-BfnzH6wp-BfLC7Nak.js";
|
|
10
10
|
import { d as D } from "./p-CoS0NuDU-CqmDcRWj.js";
|
|
11
11
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
12
12
|
const G = (r) => x("gids-chart", r), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -31,7 +31,7 @@ const b = ({ size: e }, o) => g("gids-chevron-button", {
|
|
|
31
31
|
this.activeClasses = t({ size: this.size }, this.extraClasses);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return s("button", { key: "
|
|
34
|
+
return s("button", { key: "fbf4cca7180faabe095dadf14a9b0d2a032d3221", class: this.activeClasses, slot: "trailingAccessory", type: "button", onClick: (e) => this.gidsChevronButton.emit(e), "aria-label": this?.ariaLabel ?? "", "aria-expanded": this?.ariaExpanded ?? "", "aria-haspopup": this?.ariaHaspopup ?? "", "aria-controls": this?.ariaControls ?? "", disabled: this.disabled, tabIndex: -1 }, s("span", { key: "f4b5b4ddee310e1a17ce82b5db26c76bff100201", class: "gids-button__content" }, s(h, { key: "d88b104d7baffc178c620f7d48b3bf1c83377cc1", name: "chevron-vertical", alt: "" })));
|
|
35
35
|
}
|
|
36
36
|
get _el() {
|
|
37
37
|
return this;
|
|
@@ -49,8 +49,8 @@ function n() {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
n();
|
|
52
|
-
const
|
|
52
|
+
const m = i, z = n;
|
|
53
53
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
m as GidsChevronButton,
|
|
55
|
+
z as defineCustomElement
|
|
56
56
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { L as n, u as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import { h } from "./p-
|
|
5
|
-
import { r as
|
|
6
|
-
import { g as
|
|
7
|
-
const i = n(class extends
|
|
1
|
+
import { L as n, u as d, D as s, q as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { a as r } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
3
|
+
import { l } from "./p-xITwQAMz-BMXjOAAQ.js";
|
|
4
|
+
import { h } from "./p-C7ifjRCE-CRlorwoN.js";
|
|
5
|
+
import { r as c } from "./p-Doi8Yizl-BszWK5Dq.js";
|
|
6
|
+
import { g as u } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
7
|
+
const i = n(class extends d {
|
|
8
8
|
constructor(e) {
|
|
9
|
-
super(), e !== !1 && this.__registerHost(), this.internals = this.attachInternals(), this.appearance = "default", this.expanded = !1, this.#e =
|
|
9
|
+
super(), e !== !1 && this.__registerHost(), this.internals = this.attachInternals(), this.appearance = "default", this.expanded = !1, this.#e = u(), this.handleSelectionChange = (t) => {
|
|
10
10
|
this.value = t.value, this.syncFormValue(t.value), this.onSelectionChange?.(t);
|
|
11
11
|
}, this.handleDropdownFocusAndBlur = (t) => {
|
|
12
12
|
this.hostElement.dispatchEvent(new FocusEvent(t.type, { relatedTarget: t.relatedTarget }));
|
|
@@ -51,7 +51,7 @@ const i = n(class extends r {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
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: "
|
|
54
|
+
return s("gids-field", { key: "fb0965fc37a06b9937a6806516c7cddedadfe125", disabled: this.disabled, helperText: this.helperText, statusText: this.statusText, status: this.status }, this.label !== void 0 ? s(r, { slot: "label", disabled: this.disabled, htmlFor: e, fieldRequirement: this.required ? "required" : void 0 }, this.label) : null, s("gids-dropdown", { key: "8ccb36c6505cd9363f1f4334bc2a2be7e7045f52", 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: "21bb6152c67fd767f8a55b7134d1eced8ae0516f", name: "leadingIconDropdown" }), s("slot", { key: "8b06bf5e9ac9f787b74ed6603a37c953fae67fe0", name: "leadingAccessoryDropdown" }), s("slot", { key: "9d653e38ecebdc233614f00a03fdaead3cf17fc7" })));
|
|
55
55
|
}
|
|
56
56
|
static get formAssociated() {
|
|
57
57
|
return !0;
|
|
@@ -76,7 +76,7 @@ function o() {
|
|
|
76
76
|
customElements.get(a(e)) || h();
|
|
77
77
|
break;
|
|
78
78
|
case "gids-input":
|
|
79
|
-
customElements.get(a(e)) ||
|
|
79
|
+
customElements.get(a(e)) || c();
|
|
80
80
|
}
|
|
81
81
|
}));
|
|
82
82
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { n as o, d as t } from "./p-8tOn5SjU-D9rZ28cf.js";
|
|
2
|
+
const n = o, s = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
n as GidsIcon,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { c as t, r as e } from "./p-Doi8Yizl-BszWK5Dq.js";
|
|
2
|
+
const s = t, i = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsInput,
|
|
5
|
+
i as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
const
|
|
1
|
+
import { d as t, g as e } from "./p-DoPuGtJd-DYlbhh57.js";
|
|
2
|
+
const s = t, i = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsLineChart,
|
|
5
|
+
i as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { L as
|
|
1
|
+
import { L as i, 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
|
-
const
|
|
3
|
+
const c = (t) => t === "top" || t === "top-bottom", h = (t) => t === "bottom" || t === "top-bottom", d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
|
-
showGidsOverflowContainerBottomShadow:
|
|
6
|
-
showGidsOverflowContainerTopShadow:
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r =
|
|
5
|
+
showGidsOverflowContainerBottomShadow: h,
|
|
6
|
+
showGidsOverflowContainerTopShadow: c
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { showGidsOverflowContainerBottomShadow: s, showGidsOverflowContainerTopShadow: f } = d, r = i(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: "da2e579bb37ac775378a4f53c7c30b4f578d9c94", class: "gids-overflow-container__text-area", onScroll: this.calculateShadows.bind(this) }, e("slot", { key: "eaa87a33af09ad8a96361c0368c50730c172bdc1" }));
|
|
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 a() {
|
|
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
|
+
a();
|
|
35
|
+
const p = r, m = a;
|
|
36
36
|
export {
|
|
37
37
|
p as GidsOverflowContainer,
|
|
38
38
|
m as defineCustomElement
|
|
@@ -2,7 +2,7 @@ import { L as C, u as y, D as o, F as w, q as f } from "./p-Bf3p-DY2-CPqEc-vc.js
|
|
|
2
2
|
import { i as x } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { e as N, n as g } from "./p-CVtNa0cL-sSVeJsR3.js";
|
|
4
4
|
import { d as p } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
5
|
-
import { o as u } from "./p-UVmSPzTd-
|
|
5
|
+
import { o as u } from "./p-UVmSPzTd-6vjXok6h.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
|
|
@@ -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: "c33ac4169b668a47a2a2a68dd2578378379e8b71" }, o("slot", { key: "a404014f33eb6a13ca999a97c657e4d6c743e946" }), 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;
|
|
@@ -2,16 +2,16 @@ 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
|
|
|
2
2
|
import { i as C } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { a as F } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
4
4
|
import { r as L } from "./p-UxDcM-C5-Dr5d_WpJ.js";
|
|
5
|
-
import { o as O } from "./p-UVmSPzTd-
|
|
5
|
+
import { o as O } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
6
6
|
import { g as k, d as j } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
7
|
-
import { h as z } from "./p-
|
|
8
|
-
import { r as E } from "./p-
|
|
7
|
+
import { h as z } from "./p-C7ifjRCE-CRlorwoN.js";
|
|
8
|
+
import { r as E } from "./p-Doi8Yizl-BszWK5Dq.js";
|
|
9
9
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
10
|
-
const f = /[A-Z]/,
|
|
10
|
+
const f = /[A-Z]/, b = /[a-z]/, p = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e, meterRules: t = [], textMinLength: s = 0 }) => {
|
|
11
11
|
if (!e || e === "")
|
|
12
12
|
return 0;
|
|
13
13
|
let n = 0;
|
|
14
|
-
return t.includes("1-uppercase") && f.test(e) && n++, t.includes("1-lowercase") &&
|
|
14
|
+
return t.includes("1-uppercase") && f.test(e) && n++, t.includes("1-lowercase") && b.test(e) && n++, t.includes("1-digit") && p.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";
|
|
@@ -19,11 +19,11 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
19
19
|
__proto__: null,
|
|
20
20
|
getColorModifierByScore: B,
|
|
21
21
|
getStrengthMeterScore: G,
|
|
22
|
-
include1DigitReg:
|
|
23
|
-
include1LowercaseLetterReg:
|
|
22
|
+
include1DigitReg: p,
|
|
23
|
+
include1LowercaseLetterReg: b,
|
|
24
24
|
include1SpecialCharReg: q,
|
|
25
25
|
include1UppercaseLetterReg: f
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), d = ({ requirementRule: e, textMinLength: t }) => e === "include-min-length" && t && t > 0, R = (e) => {
|
|
27
27
|
const t = [];
|
|
28
28
|
return e && e.length > 0 && e.map((s) => {
|
|
29
29
|
s?.requirementRule && t.push(s.requirementRule);
|
|
@@ -35,13 +35,13 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
35
35
|
case "1-uppercase":
|
|
36
36
|
return f.test(s);
|
|
37
37
|
case "1-lowercase":
|
|
38
|
-
return p.test(s);
|
|
39
|
-
case "1-digit":
|
|
40
38
|
return b.test(s);
|
|
39
|
+
case "1-digit":
|
|
40
|
+
return p.test(s);
|
|
41
41
|
case "1-special-character":
|
|
42
42
|
return q.test(s);
|
|
43
43
|
case "include-min-length":
|
|
44
|
-
return
|
|
44
|
+
return d({
|
|
45
45
|
requirementRule: "include-min-length",
|
|
46
46
|
textMinLength: t
|
|
47
47
|
}) === !0 && s.length >= t;
|
|
@@ -67,7 +67,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
67
67
|
requirementText: "Password must contain atleast 1 lowercase letter."
|
|
68
68
|
}
|
|
69
69
|
];
|
|
70
|
-
return
|
|
70
|
+
return d({
|
|
71
71
|
requirementRule: "include-min-length",
|
|
72
72
|
textMinLength: e
|
|
73
73
|
}) && t.push({
|
|
@@ -82,7 +82,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
82
82
|
checkRequirementRuleSatisfied: I,
|
|
83
83
|
getDefaultRulesAndRequirementsForMeters: m,
|
|
84
84
|
getMeterRulesFromRequirements: R,
|
|
85
|
-
minLengthRuleCanBeApplied:
|
|
85
|
+
minLengthRuleCanBeApplied: d
|
|
86
86
|
}, Symbol.toStringTag, { value: "Module" })), D = (e) => {
|
|
87
87
|
switch (e) {
|
|
88
88
|
case "error":
|
|
@@ -133,19 +133,19 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
133
133
|
return s.length > 0 ? i("div", { class: te(n) }, (() => {
|
|
134
134
|
const r = s.length, l = se({ text: e, textMinLength: t, meterRules: s }), u = re({ textScore: l, maxScore: r });
|
|
135
135
|
return Array.from({ length: r }, ((_, c) => {
|
|
136
|
-
const
|
|
137
|
-
return s[
|
|
136
|
+
const o = c + 1, w = o <= l;
|
|
137
|
+
return s[o] === "include-min-length" ? d({ requirementRule: "include-min-length", textMinLength: t }) ? a(o, u, w) : null : a(o, u, w);
|
|
138
138
|
}));
|
|
139
139
|
})()) : null;
|
|
140
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
|
-
}, { checkRequirementRuleSatisfied: ue } = $, { getGidsRequirementsMeterClassNames:
|
|
143
|
+
}, { checkRequirementRuleSatisfied: ue } = $, { getGidsRequirementsMeterClassNames: oe } = Q, de = ({ requirements: e = [], text: t, textMinLength: s, class: n }) => {
|
|
144
144
|
const a = (r, l) => i(ae, { status: l ? "success" : "error", label: r.requirementText });
|
|
145
|
-
return i("div", { class:
|
|
145
|
+
return i("div", { class: oe(n) }, e.map(((r) => {
|
|
146
146
|
if (r?.requirementText != null && r?.requirementRule != null) {
|
|
147
147
|
const l = ue({ rule: r.requirementRule, textMinLength: s, text: t });
|
|
148
|
-
return r.requirementRule === "include-min-length" ?
|
|
148
|
+
return r.requirementRule === "include-min-length" ? d({ requirementRule: r.requirementRule, textMinLength: s }) === !0 ? a(r, l) : null : a(r, l);
|
|
149
149
|
}
|
|
150
150
|
return null;
|
|
151
151
|
})));
|
|
@@ -191,7 +191,7 @@ const f = /[A-Z]/, p = /[a-z]/, b = /[0-9]/, q = /[^A-Za-z0-9]/, G = ({ text: e,
|
|
|
191
191
|
#e;
|
|
192
192
|
render() {
|
|
193
193
|
const { id: e, ...t } = this.inputProps ?? {}, s = e ?? this.#t, n = this.showClearButton && this.value !== void 0 && this.value.length > 0, a = this.showRevealPasswordButton, r = { ...t }, l = r?.placeholder !== void 0 && r.placeholder !== null && r.placeholder != "" ? r.placeholder : "Enter password", u = this.isPasswordRevealed, _ = this.meterRules, c = this.textMinLength !== void 0 ? this.textMinLength : 8;
|
|
194
|
-
return i(T, { key: "
|
|
194
|
+
return i(T, { key: "5a01700ed2e889989e76a785a4ea9f0832d43cba" }, i("gids-field", { key: "82a848875d90d33e909277e9caca152802263775", disabled: this.disabled, count: void 0, helperText: this.helperText, statusText: this.statusText, status: ce(this.status) }, i(F, { key: "cbc12d98213148de3bd0bd24f73122fcc1bb0175", 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: "86182396314618b1191b5af4dad1974ecec29d90", ref: (o) => this.#e = o, appearance: "default", status: this.status, loading: this.loading, value: this.value, defaultValue: this.defaultValue, name: this.name, required: this.required, disabled: this.disabled, readOnly: this.readOnly, leadingLabel: void 0, trailingLabel: void 0, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur, onInput: this._handleInput, inputProps: { ...r, placeholder: l, type: u ? "text" : "password", id: s, maxLength: this.maxLength } }, i("slot", { key: "e0b5bfe6509975144dbb6eb9051cc161ee3730fb", name: "leadingIcon" }), i("slot", { key: "591d68804011e67edefbebd2ecbb0477608a6b9e", name: "leadingAccessory" }), i("div", { key: "e0b980ba3896b39aa59601f6ccc1940459de83da", slot: "trailingAccessory", class: "gids-password-field__trailing-accessory" }, n && i(L, { key: "29890daceaa8d95274eb501dba3ba139b1992b3f", label: "clear text", size: "lg", onPressDismiss: this._handleDismiss }), a && i(O, { key: "6e278e24e56531945fd9ee76b85278d31bf359d7", appearance: "default", size: "xs", width: "intrinsic", disabled: this.disabled, onClick: this._handleRevealPassword }, u ? "Hide" : "Show")))), i("div", { key: "6b379f62ce81fc6c2c641e98c53f3b5a57abe939", class: "gids-password-field__meters-container" }, i(ie, { key: "de60ed4d66045e988f60a8240b1e649003c7a841", meterRules: _, text: this.value, textMinLength: c }), i(de, { key: "8bcaae4c9d45b10b8462f81c885dbb4998f62a8f", requirements: this.requirementsMeterRequirements, text: this.value, textMinLength: c })));
|
|
195
195
|
}
|
|
196
196
|
get _el() {
|
|
197
197
|
return this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, c as
|
|
2
|
-
const
|
|
1
|
+
import { n as e, c as s } from "./p-BfnzH6wp-BfLC7Nak.js";
|
|
2
|
+
const o = e, r = s;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as GidsPieChart,
|
|
5
|
+
r as defineCustomElement
|
|
6
6
|
};
|
|
@@ -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: "da99dff29f34b163522c42a2a17bf4556dd9ba02" }, a("slot", { key: "776a6ca0c9379f9059f8522feda55210476e0cd1", name: "anchor" }), a("div", { key: "1a73966a626ae553e28dca105f9b567312362497", id: "popover", part: "popover", role: "dialog", "aria-modal": "true", tabindex: "-1" }, a("span", { key: "06f5ddfd7795fa4f7a8c6fc7106e128d0ec51e54", id: "arrow" }), a("div", { key: "aed89418ee2297532a0655fca1a0d1bc8d24c06b" }, a("slot", { key: "2474edda5a80075dabc0b19af54ea2585e62ca1d" }))));
|
|
68
68
|
}
|
|
69
69
|
disconnectedCallback() {
|
|
70
70
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|