@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,10 +1,10 @@
|
|
|
1
|
-
import { L as
|
|
1
|
+
import { L as c, u as o, 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, i =
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsScrimClassNames: a } = m, i = c(class extends o {
|
|
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: "f9bf11077e7b7141816116d1cace7a87d9dfa652", class: this.activeClasses, part: "root" }, e("slot", { key: "221cacbb0a57c9c356d20988b02e7730e74b4430" }));
|
|
20
20
|
}
|
|
21
21
|
get _el() {
|
|
22
22
|
return this;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { L as m, u as p, D as r, P as f, q as c } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { n } from "./nonEmpty-B284_5ai.js";
|
|
3
|
+
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const y = ({ appearance: e, type: a, outline: i }, t) => g("gids-badge", {
|
|
5
|
+
"gids-badge--danger": e === "danger",
|
|
6
|
+
"gids-badge--positive": e === "positive",
|
|
7
|
+
"gids-badge--warning": e === "warning",
|
|
8
|
+
"gids-badge--inverse": e === "inverse"
|
|
9
|
+
}, {
|
|
10
|
+
"gids-badge--dot": a === "dot"
|
|
11
|
+
}, {
|
|
12
|
+
"gids-badge--outline": i
|
|
13
|
+
}, t), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
+
__proto__: null,
|
|
15
|
+
getGidsBadgeClassNames: y
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), o = 99, I = (e, a, i) => e === "dot" || a !== void 0 && a > o || i, C = (e, a) => e === void 0 ? a ?? "" : e > o ? `${o}+` : e.toString(), _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
getDisplayContent: C,
|
|
19
|
+
maxCount: o,
|
|
20
|
+
shouldIncludeA11yText: I
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), T = ({ appearance: e, width: a = "intrinsic", active: i }, t) => g("gids-tab-item", {
|
|
22
|
+
// Widths
|
|
23
|
+
// 'gids-tab-item--intrinsic': width === 'intrinsic', // By default so not needed
|
|
24
|
+
"gids-tab-item--full": a === "full",
|
|
25
|
+
// Apperances on active
|
|
26
|
+
"gids-tab-item--active-default": e === "default" && i,
|
|
27
|
+
"gids-tab-item--active-primary": e === "primary" && i,
|
|
28
|
+
"gids-tab-item--active-bordered": e === "bordered" && i,
|
|
29
|
+
"gids-tab-item--active-underlined": e === "underlined" && i,
|
|
30
|
+
"gids-tab-item--active-subtle": e === "subtle" && i,
|
|
31
|
+
// Apperances on inactive
|
|
32
|
+
"gids-tab-item--default": e === "default" && !i,
|
|
33
|
+
"gids-tab-item--primary": e === "primary" && !i,
|
|
34
|
+
"gids-tab-item--bordered": e === "bordered" && !i,
|
|
35
|
+
"gids-tab-item--underlined": e === "underlined" && !i,
|
|
36
|
+
"gids-tab-item--subtle": e === "subtle" && !i
|
|
37
|
+
}, t), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
getGidsTabItemClassNames: T
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), { getDisplayContent: l, shouldIncludeA11yText: w } = _, { getGidsBadgeClassNames: A } = k, S = ({ appearance: e, type: a, count: i, accessibleText: t, outline: d, class: v, ...h }) => {
|
|
41
|
+
const s = w(a, i, n(t));
|
|
42
|
+
return r("span", { class: A({ appearance: e, type: a, outline: d }, v), ...h }, s && r("span", { class: "gids-visually-hidden" }, n(t) ? t : i), a === "notification" ? s ? r("span", { "aria-hidden": "true" }, l(i, t)) : l(i, t) : null);
|
|
43
|
+
}, { getGidsTabItemClassNames: B } = x, b = m(class extends p {
|
|
44
|
+
constructor(e) {
|
|
45
|
+
super(), e !== !1 && this.__registerHost(), this.active = !1, this.width = "intrinsic", this.appearance = "default", this.badgeVisible = !1, this.badgeAppearance = "information", this.badgeType = "dot", this.hasLeadingIcon = !1, this.hasTrailingIcon = !1, this.handleHostClick = () => {
|
|
46
|
+
this.onPressGidsTabItem && this.onPressGidsTabItem({ itemId: this.itemId, label: this?.label ?? "", active: this?.active ?? !1, appearance: this?.appearance ?? "default", name: this?.name, badgeCount: this?.badgeCount ?? 0 });
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
handleWidthChange(e) {
|
|
50
|
+
this.width = e;
|
|
51
|
+
}
|
|
52
|
+
handleAppearanceChange(e) {
|
|
53
|
+
this.appearance = e;
|
|
54
|
+
}
|
|
55
|
+
handleBadgeVisibilityChange(e) {
|
|
56
|
+
this.badgeVisible = e;
|
|
57
|
+
}
|
|
58
|
+
handleBadgeAppearanceChange(e) {
|
|
59
|
+
this.badgeAppearance = e;
|
|
60
|
+
}
|
|
61
|
+
handleBadgeTypeChange(e) {
|
|
62
|
+
this.badgeType = e;
|
|
63
|
+
}
|
|
64
|
+
handleActiveChange(e) {
|
|
65
|
+
this.active = e;
|
|
66
|
+
}
|
|
67
|
+
componentWillLoad() {
|
|
68
|
+
this.checkSlots();
|
|
69
|
+
}
|
|
70
|
+
componentWillUpdate() {
|
|
71
|
+
this.checkSlots();
|
|
72
|
+
}
|
|
73
|
+
checkSlots() {
|
|
74
|
+
this.hasLeadingIcon = !!this.hostElement.querySelector('[slot="leadingIconTabItem"]'), this.hasTrailingIcon = !!this.hostElement.querySelector('[slot="trailingIconTabItem"]');
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
const e = B({ appearance: this.appearance, width: this.width, active: this.active }), a = this.hasTrailingIcon, i = this.badgeVisible, t = this.appearance === "primary" && this.active ? "inverse" : this.badgeAppearance ?? "information", d = this.label;
|
|
78
|
+
return r(f, { key: "111117f9953d07da3af26834ab19352c9334a36a", class: e, onClick: this.handleHostClick }, this.hasLeadingIcon ? r("slot", { name: "leadingIconTabItem" }) : void 0, d && d !== "" ? r("span", { class: "gids-tab-item__label" }, d && d !== "" ? d : void 0, i ? r(S, { appearance: t, type: this.badgeType, count: this.badgeCount }) : void 0) : void 0, a ? r("slot", { name: "trailingIconTabItem" }) : void 0);
|
|
79
|
+
}
|
|
80
|
+
get hostElement() {
|
|
81
|
+
return this;
|
|
82
|
+
}
|
|
83
|
+
static get watchers() {
|
|
84
|
+
return { width: [{ handleWidthChange: 0 }], appearance: [{ handleAppearanceChange: 0 }], badgeVisible: [{ handleBadgeVisibilityChange: 0 }], badgeAppearance: [{ handleBadgeAppearanceChange: 0 }], badgeType: [{ handleBadgeTypeChange: 0 }], active: [{ handleActiveChange: 0 }] };
|
|
85
|
+
}
|
|
86
|
+
static get style() {
|
|
87
|
+
return ".gids-tab-item{margin:0;padding:0;appearance:none;border:none;background:none;display:inline-flex;justify-content:center;align-items:center;gap:var(--gids-gap-100);padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-150);color:var(--gids-color-text-accent-5);cursor:pointer}.gids-tab-item .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-5)}.gids-tab-item__label{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);display:flex;justify-content:center;align-items:center;gap:var(--gids-gap-150)}.gids-tab-item--full{display:flex}.gids-tab-item--default{border-radius:var(--gids-border-radius-md)}.gids-tab-item--default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed);color:var(--gids-color-text-accent-4)}.gids-tab-item--default:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--primary{border-radius:var(--gids-border-radius-md)}.gids-tab-item--primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed);color:var(--gids-color-text-inverse)}.gids-tab-item--primary:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--bordered{border-radius:var(--gids-border-radius-full)}.gids-tab-item--bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);color:var(--gids-color-text-accent-4);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4)}.gids-tab-item--bordered:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-input)}.gids-tab-item--underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed);border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:hover .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--subtle:active{color:var(--gids-color-text-accent-4)}.gids-tab-item--subtle:active .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-subtler-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-default .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-default:hover{background-color:var(--gids-color-background-accent-4-subtler-hovered)}.gids-tab-item--active-default:active{background-color:var(--gids-color-background-accent-4-subtler-pressed)}.gids-tab-item--active-primary{border-radius:var(--gids-border-radius-md);background-color:var(--gids-color-background-accent-4-bolder-default);color:var(--gids-color-text-inverse)}.gids-tab-item--active-primary .gids-icon{--gidsIcon-color:var(--gids-color-icon-inverse)}.gids-tab-item--active-primary:hover{background-color:var(--gids-color-background-accent-4-bolder-hovered)}.gids-tab-item--active-primary:active{background-color:var(--gids-color-background-accent-4-bolder-pressed)}.gids-tab-item--active-bordered{border-radius:var(--gids-border-radius-full);border:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default);color:var(--gids-color-text-accent-4)}.gids-tab-item--active-bordered .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-bordered:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-bordered:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-underlined{border-bottom:var(--gids-border-width-thick) solid var(--gids-color-border-accent-4);border-top-left-radius:var(--gids-border-radius-md);border-top-right-radius:var(--gids-border-radius-md);color:var(--gids-color-text-accent-4);background-color:var(--gids-color-background-accent-4-subtlest-default)}.gids-tab-item--active-underlined .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}.gids-tab-item--active-underlined:hover{background-color:var(--gids-color-background-accent-4-subtlest-hovered)}.gids-tab-item--active-underlined:active{background-color:var(--gids-color-background-accent-4-subtlest-pressed)}.gids-tab-item--active-subtle{color:var(--gids-color-text-accent-4)}.gids-tab-item--active-subtle .gids-icon{--gidsIcon-color:var(--gids-color-icon-accent-4)}";
|
|
88
|
+
}
|
|
89
|
+
}, [260, "gids-tab-item", { itemId: [1, "item-id"], label: [1], active: [4], name: [1], width: [1], appearance: [1], badgeVisible: [4, "badge-visible"], badgeAppearance: [1, "badge-appearance"], badgeCount: [2, "badge-count"], badgeType: [1, "badge-type"], onPressGidsTabItem: [16], hasLeadingIcon: [32], hasTrailingIcon: [32] }, void 0, { width: [{ handleWidthChange: 0 }], appearance: [{ handleAppearanceChange: 0 }], badgeVisible: [{ handleBadgeVisibilityChange: 0 }], badgeAppearance: [{ handleBadgeAppearanceChange: 0 }], badgeType: [{ handleBadgeTypeChange: 0 }], active: [{ handleActiveChange: 0 }] }]);
|
|
90
|
+
function u() {
|
|
91
|
+
typeof customElements < "u" && ["gids-tab-item"].forEach(((e) => {
|
|
92
|
+
e === "gids-tab-item" && (customElements.get(c(e)) || customElements.define(c(e), b));
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
u();
|
|
96
|
+
const G = b, L = u;
|
|
97
|
+
export {
|
|
98
|
+
G as GidsTabItem,
|
|
99
|
+
L as defineCustomElement
|
|
100
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { L as c, u as r, D as a, P as h, q as s } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { c as l } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
const o = ({ width: e, appearance: t }, d) => l("gids-tab", {
|
|
4
|
+
"gids-tab--full": e === "full",
|
|
5
|
+
"gids-tab--item-subtle": t === "subtle",
|
|
6
|
+
"gids-tab--item-underlined": t === "underlined"
|
|
7
|
+
}, d), b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
getGidsTabClassNames: o
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsTabClassNames: p } = b, i = c(class extends r {
|
|
11
|
+
constructor(e) {
|
|
12
|
+
super(), e !== !1 && this.__registerHost(), this.width = "intrinsic", this.appearance = "default";
|
|
13
|
+
}
|
|
14
|
+
handleWidthChange(e) {
|
|
15
|
+
this.width = e;
|
|
16
|
+
}
|
|
17
|
+
handleAppearanceChange(e) {
|
|
18
|
+
this.appearance = e;
|
|
19
|
+
}
|
|
20
|
+
handleActiveTabIdChange(e) {
|
|
21
|
+
this.activeTabId = e;
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
this.syncPropsToChildren(), this.hostElement.addEventListener("slotchange", (() => this.syncPropsToChildren()));
|
|
25
|
+
}
|
|
26
|
+
componentDidUpdate() {
|
|
27
|
+
this.syncPropsToChildren();
|
|
28
|
+
}
|
|
29
|
+
syncPropsToChildren() {
|
|
30
|
+
this.hostElement.querySelectorAll("gids-tab-item").forEach(((e) => {
|
|
31
|
+
e && (e.appearance = this.appearance, e.width = this.width, e.active = this.isTabActive(e.itemId), e.onPressGidsTabItem = (t) => {
|
|
32
|
+
this.activeTabId = t?.itemId, this.onPressGidsTab && this.onPressGidsTab(t), this.syncPropsToChildren();
|
|
33
|
+
});
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
isTabActive(e) {
|
|
37
|
+
return e === this.activeTabId;
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
const e = p({ width: this.width, appearance: this.appearance });
|
|
41
|
+
return a(h, { key: "cc7d6cde876ed48c224b7226f750bb5e4bb4cbf1", class: e }, a("slot", { key: "bb499ecb3dfd5cba0fb59b1f22ec135fe435b28c" }));
|
|
42
|
+
}
|
|
43
|
+
get hostElement() {
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
static get watchers() {
|
|
47
|
+
return { width: [{ handleWidthChange: 0 }], appearance: [{ handleAppearanceChange: 0 }], activeTabId: [{ handleActiveTabIdChange: 0 }] };
|
|
48
|
+
}
|
|
49
|
+
static get style() {
|
|
50
|
+
return ".gids-tab{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--gids-gap-150)}.gids-tab--full{display:flex}.gids-tab--item-subtle{gap:0}.gids-tab--item-underlined{gap:0}";
|
|
51
|
+
}
|
|
52
|
+
}, [260, "gids-tab", { width: [1], appearance: [1], activeTabId: [1, "active-tab-id"], onPressGidsTab: [16] }, void 0, { width: [{ handleWidthChange: 0 }], appearance: [{ handleAppearanceChange: 0 }], activeTabId: [{ handleActiveTabIdChange: 0 }] }]);
|
|
53
|
+
function n() {
|
|
54
|
+
typeof customElements < "u" && ["gids-tab"].forEach(((e) => {
|
|
55
|
+
e === "gids-tab" && (customElements.get(s(e)) || customElements.define(s(e), i));
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
n();
|
|
59
|
+
const m = i, f = n;
|
|
60
|
+
export {
|
|
61
|
+
m as GidsTab,
|
|
62
|
+
f as defineCustomElement
|
|
63
|
+
};
|
|
@@ -2,8 +2,8 @@ import { L as u, u as h, z as c, C as f, D as i, q as s } from "./p-Bf3p-DY2-CPq
|
|
|
2
2
|
import { i as m } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
3
|
import { a as b } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
4
4
|
import { r as p } from "./p-UxDcM-C5-Dr5d_WpJ.js";
|
|
5
|
-
import { h as g } from "./p-
|
|
6
|
-
import { r as x } from "./p-
|
|
5
|
+
import { h as g } from "./p-C7ifjRCE-CRlorwoN.js";
|
|
6
|
+
import { r as x } from "./p-Doi8Yizl-BszWK5Dq.js";
|
|
7
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))
|
|
@@ -17,14 +17,14 @@ const v = (e, t) => {
|
|
|
17
17
|
default:
|
|
18
18
|
return "default";
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
22
|
formatCharCount: v,
|
|
23
23
|
inputToGidsFieldStatus: T
|
|
24
|
-
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } =
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } = l, q = (e) => e === "implicit" || e === void 0 ? "implicit" : y(e), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
25
|
__proto__: null,
|
|
26
26
|
inputToGidsFieldStatus: q
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } =
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } = l, { inputToGidsFieldStatus: O } = C, n = u(class extends h {
|
|
28
28
|
constructor(e) {
|
|
29
29
|
super(), e !== !1 && this.__registerHost(), this.gidsTextFieldClear = c(this, "gidsTextFieldClear"), this.#e = _(), this._handleDismiss = () => {
|
|
30
30
|
const t = this.#t?.querySelector("input.gids-input__control");
|
|
@@ -50,8 +50,8 @@ const v = (e, t) => {
|
|
|
50
50
|
#e;
|
|
51
51
|
#t;
|
|
52
52
|
render() {
|
|
53
|
-
const { id: e, ...t } = this.inputProps ?? {},
|
|
54
|
-
return i("gids-field", { key: "
|
|
53
|
+
const { id: e, ...t } = this.inputProps ?? {}, a = e ?? this.#e, d = this.showClearButton && this.value !== void 0 && this.value.length > 0;
|
|
54
|
+
return i("gids-field", { key: "951d6052bb8e98950f01a1c204a35904e3a3ee4c", disabled: this.disabled, count: F(this.value?.length, this.maxLength), helperText: this.helperText, statusText: this.statusText, status: O(this.status) }, i(b, { key: "02a0b0308d754a68dd5f1be3cd8dd10b191f32a6", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: a }, this.label), i("gids-input", { key: "9e601808d03998011afd0cef3a683e153ea42f10", 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: a, maxLength: this.maxLength } }, i("slot", { key: "f519b7683865ec3bc7d6dc02c3a4d3383b62c09a", name: "leadingIcon" }), i("slot", { key: "4241d7a23659bd3f7fe2b54ad3e9fce5b83de649", name: "leadingAccessory" }), d && i(p, { key: "35d7868cec672757617bad343a3e700a4a9719c8", label: "clear text", slot: "trailingAccessory", size: "lg", onPressDismiss: this._handleDismiss }), i("slot", { key: "07f1cd892f9eb103110e54f377ed6683da22157d", name: "trailingIcon" })));
|
|
55
55
|
}
|
|
56
56
|
get _el() {
|
|
57
57
|
return this;
|
|
@@ -61,7 +61,7 @@ function r() {
|
|
|
61
61
|
typeof customElements < "u" && ["gids-text-field", "gids-field", "gids-input"].forEach(((e) => {
|
|
62
62
|
switch (e) {
|
|
63
63
|
case "gids-text-field":
|
|
64
|
-
customElements.get(s(e)) || customElements.define(s(e),
|
|
64
|
+
customElements.get(s(e)) || customElements.define(s(e), n);
|
|
65
65
|
break;
|
|
66
66
|
case "gids-field":
|
|
67
67
|
customElements.get(s(e)) || g();
|
|
@@ -72,7 +72,7 @@ function r() {
|
|
|
72
72
|
}));
|
|
73
73
|
}
|
|
74
74
|
r();
|
|
75
|
-
const G =
|
|
75
|
+
const G = n, B = r;
|
|
76
76
|
export {
|
|
77
77
|
G as GidsTextField,
|
|
78
78
|
B as defineCustomElement
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as o, o as t } from "./p-
|
|
2
|
-
const
|
|
1
|
+
import { l as o, o as t } from "./p-Bj28yqMD-Dz1SWSqM.js";
|
|
2
|
+
const s = o, m = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsToggleButton,
|
|
5
|
+
m as defineCustomElement
|
|
6
6
|
};
|
|
@@ -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: "b1339ba783e86f33840b20038f900b09ba70e61f" }, e("slot", { key: "1103b8056a880282cad202905f8a606ffd8ed119" }), e("span", { key: "ad2f4fc135f7d26d7224e134149f2075f66bed4e", id: "tooltip", part: "tooltip", role: "tooltip" }, e("span", { key: "c1edf194581bd0696b32b92657a59bc6f876774d", 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 f = o, v = a;
|
|
63
63
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
f as GidsTooltip,
|
|
65
|
+
v as defineCustomElement
|
|
66
66
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as l, L as f, u, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as b } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { d as x } from "./p-qb1aWgjh-CzmMPIME.js";
|
|
4
|
+
import { l as z } from "./p-BYDimyG--DBCLrqDJ.js";
|
|
5
5
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const k = ({ breakpoint: a }, g) => w("gids-activity-gauge", {
|
|
7
7
|
"gids-activity-gauge--breakpoint-mobile": a === "mobile"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { q as e, L as t, u as s, D as o } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { d
|
|
4
|
-
const
|
|
2
|
+
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
+
import { d } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
4
|
+
const n = t(class extends s {
|
|
5
5
|
constructor(i) {
|
|
6
6
|
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
7
|
}
|
|
8
8
|
connectedCallback() {
|
|
9
|
-
const i =
|
|
9
|
+
const i = c();
|
|
10
10
|
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return o(
|
|
13
|
+
return o(d, { key: "cb54fb7ca0ded77690f44cbf794b2e192cf9c681", name: this.name, size: this.size, appearance: this.appearance, alt: this.alt, titleId: this.titleId });
|
|
14
14
|
}
|
|
15
15
|
get _el() {
|
|
16
16
|
return this;
|
|
@@ -19,13 +19,13 @@ const c = t(class extends s {
|
|
|
19
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
20
|
}
|
|
21
21
|
}, [1, "gids-icon", { name: [1], size: [1], appearance: [1], alt: [1], titleId: [1, "title-id"] }]);
|
|
22
|
-
function
|
|
22
|
+
function a() {
|
|
23
23
|
typeof customElements < "u" && ["gids-icon"].forEach(((i) => {
|
|
24
|
-
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i),
|
|
24
|
+
i === "gids-icon" && (customElements.get(e(i)) || customElements.define(e(i), n));
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
a();
|
|
28
28
|
export {
|
|
29
|
-
|
|
30
|
-
n
|
|
29
|
+
a as d,
|
|
30
|
+
n
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as
|
|
1
|
+
import { q as d, L as r, u as h, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { m as c, x as m, N as u } from "./p-D6lxqcxP-DWrZi1Xi.js";
|
|
3
3
|
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
4
4
|
const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
@@ -19,8 +19,8 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
19
19
|
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarMonthListClassNames: g, getGidsCalendarMonthListMonths: M } = b, x = r(class extends h {
|
|
20
20
|
constructor(t) {
|
|
21
21
|
super(), t !== !1 && this.__registerHost(), this.type = "default", this.disabledIndices = [], this.divider = !1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.handleCalendarMenuItemSelect = (s) => {
|
|
22
|
-
const { title: e, value: n, selectedIndex: i, disabled:
|
|
23
|
-
|
|
22
|
+
const { title: e, value: n, selectedIndex: i, disabled: o, id: a } = s.detail;
|
|
23
|
+
o || typeof e != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
24
24
|
this.suppressNextMenuClickSelection = !1;
|
|
25
25
|
})), this.applySelection({ id: a, month: e, monthInNumber: Number(n), disabled: !1, selectedIndex: i }));
|
|
26
26
|
}, this.handleMenuClick = (s) => {
|
|
@@ -28,7 +28,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
28
28
|
const e = s?.detail;
|
|
29
29
|
this.applySelection({ id: e.id, monthInNumber: Number(e.value), month: e.title, disabled: !1, selectedIndex: e.selectedIndex });
|
|
30
30
|
}, this.monthsList = () => M(), this.getSelectedItem = () => {
|
|
31
|
-
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((
|
|
31
|
+
const s = this.selectedMonthNumber, e = this.monthsList(), n = e.findIndex(((o) => o.value === s));
|
|
32
32
|
let i;
|
|
33
33
|
return n != null && n !== -1 && (i = e[n]), { foundItem: i, foundIndex: n };
|
|
34
34
|
}, this.isItemSelected = (s) => {
|
|
@@ -59,9 +59,9 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
const t = g();
|
|
62
|
-
return
|
|
62
|
+
return l("div", { key: "edfe08732e3f5a916c9c4b20d45aa60ee435bafb", class: t }, l(c, { key: "745227860a28c875576b70e5cbc8676bb4966ae2", type: this.type, supportingText: this.noOptionsText }, l(m, { key: "e428a8ff2525a0e2815d96938ef8e852b9275ba9", sectionLabel: "Months" }, this.monthsList().map(((s, e) => {
|
|
63
63
|
const n = `${e + 1}`, i = this.disabledIndices?.includes(e);
|
|
64
|
-
return
|
|
64
|
+
return l(u, { title: s.title, value: `${s.value}`, key: `${e.toString()}`, index: e, id: n, selected: this.isItemSelected(e), onPressDropdownItem: this.handleMenuClick, disabled: i, divider: this.divider, isPlaceholderItem: !1 });
|
|
65
65
|
})))));
|
|
66
66
|
}
|
|
67
67
|
get hostElement() {
|
|
@@ -70,7 +70,7 @@ const f = (t) => p("gids-calendar-month-list", t), I = () => {
|
|
|
70
70
|
}, [0, "gids-calendar-month-list", { type: [1], noOptionsText: [1, "no-options-text"], disabledIndices: [16], divider: [4], selectedMonthNumber: [2, "selected-month-number"], onSelectionMonthChange: [16] }]);
|
|
71
71
|
function C() {
|
|
72
72
|
typeof customElements < "u" && ["gids-calendar-month-list"].forEach(((t) => {
|
|
73
|
-
t === "gids-calendar-month-list" && (customElements.get(
|
|
73
|
+
t === "gids-calendar-month-list" && (customElements.get(d(t)) || customElements.define(d(t), x));
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
76
|
C();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as i, L as s, u as n, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { d
|
|
3
|
-
import { c as
|
|
4
|
-
const o = ({ seriesType: e, orientation: a }, r) =>
|
|
2
|
+
import { d } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
|
+
import { c as l } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const o = ({ seriesType: e, orientation: a }, r) => l("gids-chart-legend-item", {
|
|
5
5
|
// 'gids-chart-legend-item--series-1': seriesType === '1', // by default
|
|
6
6
|
"gids-chart-legend-item--series-2": e === "2",
|
|
7
7
|
"gids-chart-legend-item--series-3": e === "3",
|
|
@@ -26,7 +26,7 @@ const o = ({ seriesType: e, orientation: a }, r) => d("gids-chart-legend-item",
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const e = c({ seriesType: this.seriesType, orientation: this.orientation });
|
|
29
|
-
return t("div", { key: "
|
|
29
|
+
return t("div", { key: "43080c591c0fd7decf794c10b12c6ec423374aca", class: e }, t("div", { key: "52b09fe027b6ce228bafdeb1b0631ce1f3a9860f", class: this.orientation === "vertical" ? "gids-chart-legend-item__dot-wrapper-vertical" : "gids-chart-legend-item__dot-wrapper-horizontal" }, t(d, { key: "749d70e3b0d3d1117d7de2b3ce00ae76372c05b9", name: "new", alt: "new_icon", appearance: "filled" })), t("span", { key: "f6fd7ecf6d4dfcdafed4bf25dd3b763fffa78a96", class: "gids-chart-legend-item__label" }, t("slot", { key: "885035e521300c2d061b8aa41f0d4258caa22ce7" })));
|
|
30
30
|
}
|
|
31
31
|
static get watchers() {
|
|
32
32
|
return { orientation: [{ handleOrientationChange: 0 }], seriesType: [{ handleSeriesTypeChange: 0 }] };
|
|
@@ -42,6 +42,6 @@ function m() {
|
|
|
42
42
|
}
|
|
43
43
|
m();
|
|
44
44
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
h as d,
|
|
46
|
+
m as l
|
|
47
47
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as a, L as _, u as m, D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { p as b } from "./p-DMNS1d8v-CHF62UXm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { d as u } from "./p-qb1aWgjh-CzmMPIME.js";
|
|
4
|
+
import { l as v } from "./p-BYDimyG--DBCLrqDJ.js";
|
|
5
5
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
const f = ({ breakpoint: e }, r) => x("gids-pie-chart", {
|
|
7
7
|
"gids-pie-chart--breakpoint-mobile": e === "mobile"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { q as s, L as l, u as
|
|
2
|
-
import { o } from "./p-UVmSPzTd-
|
|
1
|
+
import { q as s, L as l, u as i, z as d, D as t, P as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { o } from "./p-UVmSPzTd-6vjXok6h.js";
|
|
3
3
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
|
-
const a = l(class extends
|
|
4
|
+
const a = l(class extends i {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select =
|
|
6
|
+
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select = d(this, "select"), this._toggle = this._toggle.bind(this);
|
|
7
7
|
}
|
|
8
8
|
handleSelctedChange(e) {
|
|
9
9
|
this.selected = e;
|
|
@@ -17,9 +17,9 @@ const a = l(class extends d {
|
|
|
17
17
|
this._el.selected = this.selected, this.select?.emit(e), this.selected = this.selected;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return t(n, { key: "
|
|
20
|
+
return t(n, { key: "60cd33c1303b2f0d79c359f79f77c5e0b2055c73" }, t("style", { key: "5780343ecee89c7f6df46aebae53895784314a71" }, `:host {
|
|
21
21
|
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
22
|
-
}`), t(o, { key: "
|
|
22
|
+
}`), t(o, { key: "03705a1d3fb0807af87d6e85083bf424c462f328", 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: "05e75b6a46032ddfe7448b81f5ac929105d20383" })));
|
|
23
23
|
}
|
|
24
24
|
_onlyHasLeadingIcon() {
|
|
25
25
|
const e = this._el.childNodes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as d, L as c, u as h, D as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { m as u, x as m, N as Y } from "./p-D6lxqcxP-DWrZi1Xi.js";
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
3
|
+
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const p = (e) => f("gids-calendar-year-list", e), g = (e) => {
|
|
5
5
|
const t = e.toString().trim();
|
|
6
6
|
if (!/^\d{4}$/.test(t))
|
|
7
7
|
return !1;
|
|
@@ -21,10 +21,10 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
21
21
|
return s;
|
|
22
22
|
}, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
|
-
getGidsCalendarYearListClassNames:
|
|
24
|
+
getGidsCalendarYearListClassNames: p,
|
|
25
25
|
getGidsCalendarYearListYears: I,
|
|
26
26
|
isValidFourDigitYear: g
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears:
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears: w, isValidFourDigitYear: l } = S, E = c(class extends h {
|
|
28
28
|
constructor(e) {
|
|
29
29
|
super(), e !== !1 && this.__registerHost(), this.type = "default", this.disabledIndices = [], this.divider = !1, this.newStartYear = (/* @__PURE__ */ new Date()).getFullYear(), this.newEndYear = (/* @__PURE__ */ new Date()).getFullYear() + 100, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.handleCalendarMenuItemSelect = (t) => {
|
|
30
30
|
const { title: s, value: a, selectedIndex: r, disabled: n, id: o } = t.detail;
|
|
@@ -35,7 +35,7 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
35
35
|
if (this.suppressNextMenuClickSelection) return;
|
|
36
36
|
const s = t?.detail;
|
|
37
37
|
this.applySelection({ id: s.id, year: Number(s.value), disabled: !1, selectedIndex: s.selectedIndex, startYear: this.newStartYear, endYear: this.newEndYear });
|
|
38
|
-
}, this.yearsList = () =>
|
|
38
|
+
}, this.yearsList = () => w({ startYear: this.newStartYear, endYear: this.newEndYear }), this.getSelectedItem = () => {
|
|
39
39
|
const t = this.selectedYear, s = this.yearsList(), a = s.findIndex(((n) => n.value === t));
|
|
40
40
|
let r;
|
|
41
41
|
return a != null && a !== -1 && (r = s[a]), { foundItem: r, foundIndex: a };
|
|
@@ -71,7 +71,7 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
const e = y();
|
|
74
|
-
return i("div", { key: "
|
|
74
|
+
return i("div", { key: "bfcd01860c33d9e76df2050ea70a1f3b2bfaf46c", class: e }, i(u, { key: "159e5afcf58334206f70bd5dde34d9d4aa8373f7", type: this.type, supportingText: this.noOptionsText }, i(m, { key: "8ba8e9441574b35f00faad1ccf151cdd543dab90", sectionLabel: "Years" }, this.yearsList().map(((t, s) => {
|
|
75
75
|
const a = `${s + 1}`, r = this.disabledIndices?.includes(t.value);
|
|
76
76
|
return i(Y, { title: t.title, value: `${t.value}`, key: `${s.toString()}`, index: s, id: a, selected: this.isItemSelected(s), onPressDropdownItem: this.handleMenuClick, disabled: r, divider: this.divider, isPlaceholderItem: !1 });
|
|
77
77
|
})))));
|
|
@@ -80,13 +80,13 @@ const f = (e) => p("gids-calendar-year-list", e), g = (e) => {
|
|
|
80
80
|
return this;
|
|
81
81
|
}
|
|
82
82
|
}, [0, "gids-calendar-year-list", { type: [1], noOptionsText: [1, "no-options-text"], disabledIndices: [16], divider: [4], selectedYear: [2, "selected-year"], startYear: [2, "start-year"], endYear: [2, "end-year"], onSelectionYearChange: [16], newStartYear: [32], newEndYear: [32] }]);
|
|
83
|
-
function
|
|
83
|
+
function b() {
|
|
84
84
|
typeof customElements < "u" && ["gids-calendar-year-list"].forEach(((e) => {
|
|
85
|
-
e === "gids-calendar-year-list" && (customElements.get(d(e)) || customElements.define(d(e),
|
|
85
|
+
e === "gids-calendar-year-list" && (customElements.get(d(e)) || customElements.define(d(e), E));
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
b();
|
|
89
89
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
E as l,
|
|
91
|
+
b as u
|
|
92
92
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { q as l, L as n, u as r, D as
|
|
1
|
+
import { q as l, L as n, u as r, D as a, P as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as h } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
3
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
getGidsFieldClassNames: g
|
|
8
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsFieldClassNames:
|
|
8
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsFieldClassNames: p } = u, f = n(class extends r {
|
|
9
9
|
constructor(t) {
|
|
10
10
|
super(), t !== !1 && this.__registerHost(), this.__attachShadow(), this.status = "implicit", this._hasLabel = !1, this._controlListenerTargets = [], this._controlTouched = !1, this._handleLabelSlotChange = () => {
|
|
11
11
|
this._hasLabel = (this._labelSlot?.assignedElements()?.length ?? 0) > 0;
|
|
@@ -53,10 +53,10 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
53
53
|
render() {
|
|
54
54
|
const t = this._hasStatusText(), e = this._controlValidationMessage !== void 0 ? this._controlValidationMessage : this._shouldRenderExplicitStatusText() ? this.statusText : void 0, s = this._getCurrentStatus(), i = ["gids-field__status-text"];
|
|
55
55
|
if (t) {
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const o = this._getStatusModifierClass(s, "gids-field__status-text");
|
|
57
|
+
o != null && i.push(o);
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return a(d, { key: "55afcede8d0a565f98b1cdd20293c9f885997d6c" }, a("div", { key: "4c9ce99475a4c38e5b8c62b2bef588eb48fcec28", class: p() }, a("div", { key: "4c254203e9d4414e59c2564e86119280a7f89186", class: "gids-field__header", hidden: !this._hasLabelContent() }, a("slot", { key: "3f8c6df5ac4098e821490edf0699d002ee8ca430", ref: this._setLabelSlot, name: "label", onSlotchange: this._handleControlSlotChange }), a("div", { key: "c2da3ba663158c54514d959e98ad2861fc64bd57", class: "gids-field__count", "aria-live": "polite" }, this.count)), a("div", { key: "da5091c74fb3df1146b4eecb4d7ee6537a322f32", class: "gids-field__control" }, a("slot", { key: "bc49fb537279473305d616f900d5df696d9c2c3c", ref: this._setControlSlot, onSlotchange: this._handleControlSlotChange })), a("p", { key: "326849f878b531e4695368f1f112ce6d36c3ef4d", class: "gids-field__supporting-text", hidden: !this._shouldShowHelperText() }, this.helperText), t ? a("p", { class: i.join(" "), role: "status", "aria-live": "polite" }, this._renderStatusIcon(s), e !== void 0 ? a("span", null, e) : null) : null));
|
|
60
60
|
}
|
|
61
61
|
_hasLabelContent() {
|
|
62
62
|
return this._hasLabel;
|
|
@@ -79,8 +79,8 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
79
79
|
if (e === void 0) return;
|
|
80
80
|
const s = ["gids-field__status-icon"], i = this._getStatusModifierClass(t, "gids-field__status-icon");
|
|
81
81
|
i != null && s.push(i);
|
|
82
|
-
let
|
|
83
|
-
return t === "error" && (
|
|
82
|
+
let o = t;
|
|
83
|
+
return t === "error" && (o = "danger"), t === "success" && (o = "positive"), a(h, { appearance: "filled", size: "sm", alt: "", name: e, class: s.join(" "), style: { "--gidsIcon-color": `var(--gids-color-icon-${o})` } });
|
|
84
84
|
}
|
|
85
85
|
_getCurrentStatus() {
|
|
86
86
|
return this._isImplicitStatus() && this._controlValidationMessage != null ? "error" : this.status ?? "implicit";
|
|
@@ -120,7 +120,7 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
120
120
|
if (e && t.name != null) {
|
|
121
121
|
const s = e.elements.namedItem(t.name);
|
|
122
122
|
if (s instanceof RadioNodeList) {
|
|
123
|
-
const i = Array.from(s).filter(((
|
|
123
|
+
const i = Array.from(s).filter(((o) => o instanceof HTMLInputElement && o.type === "radio" && this._el.contains(o)));
|
|
124
124
|
if (i.length > 0) return i;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -141,8 +141,8 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
141
141
|
if (e.nodeType !== Node.ELEMENT_NODE) continue;
|
|
142
142
|
const s = e, i = this._asTextControl(s);
|
|
143
143
|
if (i !== null) return i;
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
144
|
+
const o = s.querySelector("input, textarea");
|
|
145
|
+
if (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement) return o;
|
|
146
146
|
}
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
@@ -171,11 +171,11 @@ const g = (t) => _("gids-field", t), u = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
171
171
|
}, [257, "gids-field", { disabled: [516], count: [513], helperText: [513, "helper-text"], statusText: [513, "status-text"], status: [513], _controlValidationMessage: [32], _hasLabel: [32], reScanControl: [64] }, void 0, { status: [{ _handleStatusChange: 0 }] }]);
|
|
172
172
|
function m() {
|
|
173
173
|
typeof customElements < "u" && ["gids-field"].forEach(((t) => {
|
|
174
|
-
t === "gids-field" && (customElements.get(l(t)) || customElements.define(l(t),
|
|
174
|
+
t === "gids-field" && (customElements.get(l(t)) || customElements.define(l(t), f));
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
177
|
m();
|
|
178
178
|
export {
|
|
179
|
-
|
|
179
|
+
f as d,
|
|
180
180
|
m as h
|
|
181
181
|
};
|