@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
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as u, u as h, z as c, C as f, D as i, q as s } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as m } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { a as b } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
4
|
+
import { r as p } from "./p-UxDcM-C5-Dr5d_WpJ.js";
|
|
5
|
+
import { h as g } from "./p-DNTv2BQ5-Bwgd30mM.js";
|
|
6
|
+
import { r as x } from "./p-BQ-ZnlnH-CUVdDHzX.js";
|
|
7
|
+
import { g as _ } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
7
8
|
const v = (e, t) => {
|
|
8
9
|
if (!(e === void 0 || t === void 0))
|
|
9
10
|
return `${e} / ${Math.max(t, 0)}`;
|
|
@@ -16,16 +17,16 @@ const v = (e, t) => {
|
|
|
16
17
|
default:
|
|
17
18
|
return "default";
|
|
18
19
|
}
|
|
19
|
-
},
|
|
20
|
+
}, n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
21
|
__proto__: null,
|
|
21
22
|
formatCharCount: v,
|
|
22
23
|
inputToGidsFieldStatus: T
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } =
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), { inputToGidsFieldStatus: y } = n, q = (e) => e === "implicit" || e === void 0 ? "implicit" : y(e), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
25
|
__proto__: null,
|
|
25
26
|
inputToGidsFieldStatus: q
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } =
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { formatCharCount: F } = n, { inputToGidsFieldStatus: O } = C, a = u(class extends h {
|
|
27
28
|
constructor(e) {
|
|
28
|
-
super(), e !== !1 && this.__registerHost(), this.gidsTextFieldClear =
|
|
29
|
+
super(), e !== !1 && this.__registerHost(), this.gidsTextFieldClear = c(this, "gidsTextFieldClear"), this.#e = _(), this._handleDismiss = () => {
|
|
29
30
|
const t = this.#t?.querySelector("input.gids-input__control");
|
|
30
31
|
t && (t.value = "", t.dispatchEvent(new globalThis.Event("input", { bubbles: !0 }))), this.value = "", this.gidsTextFieldClear.emit();
|
|
31
32
|
}, this._handleInput = (t) => {
|
|
@@ -49,8 +50,8 @@ const v = (e, t) => {
|
|
|
49
50
|
#e;
|
|
50
51
|
#t;
|
|
51
52
|
render() {
|
|
52
|
-
const { id: e, ...t } = this.inputProps ?? {},
|
|
53
|
-
return i("gids-field", { key: "
|
|
53
|
+
const { id: e, ...t } = this.inputProps ?? {}, l = e ?? this.#e, d = this.showClearButton && this.value !== void 0 && this.value.length > 0;
|
|
54
|
+
return i("gids-field", { key: "67703f015d57768e530aff47b206ff6716f35332", disabled: this.disabled, count: F(this.value?.length, this.maxLength), helperText: this.helperText, statusText: this.statusText, status: O(this.status) }, i(b, { key: "182405668848cdfe3960eef04a7862862fb42117", slot: "label", disabled: this.disabled, info: i("slot", { name: "info" }), fieldRequirement: this.fieldRequirement, fieldRequirementOptionalText: this.fieldRequirementOptionalText, fieldRequirementRequiredText: this.fieldRequirementRequiredText, isLabelSentence: this.isLabelSentence, htmlFor: l }, this.label), i("gids-input", { key: "f625d9ca7001879c392f55e806e7f080d7bb4185", ref: (o) => this.#t = o, appearance: this.appearance, status: this.status, loading: this.loading, value: this.value, defaultValue: this.defaultValue, name: this.name, required: this.required, disabled: this.disabled, readOnly: this.readOnly, leadingLabel: this.leadingLabel, trailingLabel: this.trailingLabel, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur, onInput: this._handleInput, inputProps: { ...t, type: this.type, id: l, maxLength: this.maxLength } }, i("slot", { key: "4283d3712a98973ccb96d57b3d6f9fc42a0ff04e", name: "leadingIcon" }), i("slot", { key: "c61b5a4a62ecf2002426d167155fd8687f84b99f", name: "leadingAccessory" }), d && i(p, { key: "61d1a7b396fa1a8bacce9ade90a36de46886b3c0", label: "clear text", slot: "trailingAccessory", size: "lg", onPressDismiss: this._handleDismiss }), i("slot", { key: "b1f35a7a5e7ffc719d86741033fdfc25ee20debc", name: "trailingIcon" })));
|
|
54
55
|
}
|
|
55
56
|
get _el() {
|
|
56
57
|
return this;
|
|
@@ -71,8 +72,8 @@ function r() {
|
|
|
71
72
|
}));
|
|
72
73
|
}
|
|
73
74
|
r();
|
|
74
|
-
const
|
|
75
|
+
const G = a, B = r;
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
G as GidsTextField,
|
|
78
|
+
B as defineCustomElement
|
|
78
79
|
};
|
|
@@ -1,46 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { i as h } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
|
-
const i = l(class extends n {
|
|
5
|
-
get selected() {
|
|
6
|
-
return this.#e ?? this.defaultSelected;
|
|
7
|
-
}
|
|
8
|
-
set selected(e) {
|
|
9
|
-
this.#e = e === void 0 ? void 0 : !!e;
|
|
10
|
-
}
|
|
11
|
-
constructor(e) {
|
|
12
|
-
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.select = d(this, "select"), this._toggle = this._toggle.bind(this);
|
|
13
|
-
}
|
|
14
|
-
#e;
|
|
15
|
-
connectedCallback() {
|
|
16
|
-
const e = h();
|
|
17
|
-
e !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(e);
|
|
18
|
-
}
|
|
19
|
-
_toggle() {
|
|
20
|
-
const e = !this.selected;
|
|
21
|
-
this._el.selected = e, this.select?.emit(e);
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
return t(a, { key: "56bc99780f392c4d5064eaa47819ee1ff0897c79" }, t("style", { key: "e330f982d625eeb7f72ede3f382231fb5791ec47" }, `:host {
|
|
25
|
-
display: ${this.width === "full" ? "block" : "inline-block"}
|
|
26
|
-
}`), t(c, { key: "ccef97603f645ba92fd4180263d2cbeff0a54a07", 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: "7094015cf47ef8d045955419aa43f03174145928" })));
|
|
27
|
-
}
|
|
28
|
-
_onlyHasLeadingIcon() {
|
|
29
|
-
const e = this._el.childNodes;
|
|
30
|
-
return e.length === 1 && e[0] instanceof window.Element && e[0].slot === "leadingIcon";
|
|
31
|
-
}
|
|
32
|
-
get _el() {
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
}, [257, "gids-toggle-button", { disabled: [516], appearance: [513], size: [513], width: [513], defaultSelected: [516, "default-selected"], selected: [6660] }]);
|
|
36
|
-
function o() {
|
|
37
|
-
typeof customElements < "u" && ["gids-toggle-button"].forEach(((e) => {
|
|
38
|
-
e === "gids-toggle-button" && (customElements.get(s(e)) || customElements.define(s(e), i));
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
o();
|
|
42
|
-
const u = i, m = o;
|
|
1
|
+
import { l as o, o as t } from "./p-DmLoB2Dn-D-FSoCvI.js";
|
|
2
|
+
const m = o, s = t;
|
|
43
3
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
4
|
+
m as GidsToggleButton,
|
|
5
|
+
s as defineCustomElement
|
|
46
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as n, u as l, D as e, F as s, q as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { g as r } from "./p-a3JfEYJp-DyhDK6VZ.js";
|
|
3
3
|
import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
4
4
|
import { o as h } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
@@ -38,7 +38,7 @@ const o = n(class extends l {
|
|
|
38
38
|
t && (t.removeEventListener("mouseenter", this.handleShowEvent), t.removeEventListener("focus", this.handleShowEvent), t.removeEventListener("mouseleave", this.handleHideEvent), t.removeEventListener("blur", this.handleHideEvent));
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return e(s, { key: "
|
|
41
|
+
return e(s, { key: "87da0ed1ded01cd47b54a7445df2ec4a1ce621b2" }, e("slot", { key: "31b07131bcd26021340d37cadc8aa01f59ad0262" }), e("span", { key: "03fa6ca6e6f3d9bfa2b319254a22a817091fa9b5", id: "tooltip", part: "tooltip", role: "tooltip" }, e("span", { key: "7affbdf276e42c78a4829b5c47854786b97af3bd", id: "arrow" }), this.tooltipText));
|
|
42
42
|
}
|
|
43
43
|
disconnectedCallback() {
|
|
44
44
|
this.cleanupEventListeners(), this.floatingElementManager?.destroy();
|
package/dist-bundled/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as y, V as A, S as u, U as G, W as P } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as E, n as x } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { o as
|
|
3
|
+
import { o as T } from "./p-B8kX8Vqv-trBz4jdS.js";
|
|
4
4
|
import { s as d } from "./assets-Drv1fXkA.js";
|
|
5
5
|
function i(e, r) {
|
|
6
6
|
d(e, r);
|
|
@@ -22,7 +22,7 @@ const c = (e) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
T as GidsFloatingElementType,
|
|
26
26
|
y as getAssetPath,
|
|
27
27
|
E as getConstructedGidsStylesheet,
|
|
28
28
|
x as refreshConstructedGidsStylesheet,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as n } from "./p-
|
|
3
|
-
import { l as
|
|
1
|
+
import { q as s, L as l, u, D as a, F as d } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { d as n } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
3
|
+
import { l as r } from "./p-CHGTBObD-EN4cCwtX.js";
|
|
4
4
|
const c = (e) => e.type === "hidden", f = (e) => {
|
|
5
5
|
if (!(e instanceof HTMLElement))
|
|
6
6
|
return !1;
|
|
@@ -54,9 +54,9 @@ const c = (e) => e.type === "hidden", f = (e) => {
|
|
|
54
54
|
this._el.removeEventListener("click", this._focusInput);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return a(
|
|
57
|
+
return a(d, { key: "013d4a68291d4a3897246142cd611a2bc442d6a3" }, a("slot", { key: "97f0d9030c5061b219cc35c409820b81e3d4098a", name: "leadingIcon" }), this.leadingLabel && a("span", { key: "2f8726384a877b0bee51579661f66f6e3da811e1", class: "gids-input__label" }, this.leadingLabel), a("slot", { key: "4843ddf9a10afba03ec0a552fd61cfddd3470749", name: "leadingAccessory" }), a("input", { key: "657559522ac7908ebb5dc27992cb50eb69d1fbd8", ...this.inputProps, ref: (e) => {
|
|
58
58
|
this.#t = e, this.#e.value !== void 0 && (this.#t.value = this.#e.value, delete this.#e.value), this.#e.defaultValue !== void 0 && (this.#t.defaultValue = this.#e.defaultValue, delete this.#e.defaultValue);
|
|
59
|
-
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "
|
|
59
|
+
}, class: "gids-input__control", name: this.name, disabled: this.disabled, readOnly: this.readOnly, required: this.required, onFocus: this._handleInputFocusAndBlur, onBlur: this._handleInputFocusAndBlur }), a("slot", { key: "c80c3ce3bf17f60e8f773b9c2f5dc25dacdf5446", name: "trailingAccessory" }), this.trailingLabel && a("span", { key: "f9ba8d097b660cdeaeacc0ac1ba970d3fa839fcc", class: "gids-input__label" }, this.trailingLabel), a("slot", { key: "35116e82425db12c08580460ac9c84f89faec71e", name: "trailingIcon" }), this.status === "incomplete" && a(n, { key: "2634986e80dfbbfb98b5a4dd95829e6af3b229a0", name: "warning", appearance: "filled", class: "gids-input__warning-icon" }), this.status === "complete" && a(n, { key: "63ab6b357df47d2d96ad6d3d33f22ab7864f395e", name: "positive", appearance: "filled", class: "gids-input__positive-icon" }), this.loading && a(r, { key: "1eb7af66b5005a6f8dea895c00f100e7cc6e7548", size: "md", indeterminate: !0 }));
|
|
60
60
|
}
|
|
61
61
|
get _el() {
|
|
62
62
|
return this;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { q as i, L as o, u as n, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { i as g } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
+
import { d as r } from "./p-Db62Pz3n-DpQjwBYb.js";
|
|
4
|
+
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
6
|
+
"gids-dot--disabled": a,
|
|
7
|
+
"gids-dot--subtle": s === "subtle" && !a,
|
|
8
|
+
"gids-dot--static-inverse": s === "static-inverse" && !a,
|
|
9
|
+
// sizes
|
|
10
|
+
// 'gids-dot--xs': size === 'xs', // default so no need
|
|
11
|
+
"gids-dot--sm": e === "sm",
|
|
12
|
+
"gids-dot--md": e === "md",
|
|
13
|
+
"gids-dot--lg": e === "lg",
|
|
14
|
+
"gids-dot--xl": e === "xl",
|
|
15
|
+
"gids-dot--2xl": e === "2xl",
|
|
16
|
+
"gids-dot--3xl": e === "3xl"
|
|
17
|
+
}, d), p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
getGidsDotClassNames: h
|
|
20
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDotClassNames: t } = p, C = o(class extends n {
|
|
21
|
+
constructor(s) {
|
|
22
|
+
super(), s !== !1 && this.__registerHost(), this.appearance = "subtle", this.size = "xs", this.disabled = !1, this.activeClasses = "";
|
|
23
|
+
}
|
|
24
|
+
handleExtraClassesAndSizeChange(s) {
|
|
25
|
+
this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, s);
|
|
26
|
+
}
|
|
27
|
+
handleAppearanceChange(s) {
|
|
28
|
+
this.appearance = s;
|
|
29
|
+
}
|
|
30
|
+
handleSizeChange(s) {
|
|
31
|
+
this.size = s;
|
|
32
|
+
}
|
|
33
|
+
handleDisabledChange(s) {
|
|
34
|
+
this.disabled = s;
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
const s = g();
|
|
38
|
+
s !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(s), this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
|
|
39
|
+
}
|
|
40
|
+
componentDidLoad() {
|
|
41
|
+
this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return l("gids-icon", { key: "1bd6ab72dde2a54f1836483ea5990426c3bfc9f7", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
|
|
45
|
+
}
|
|
46
|
+
get _el() {
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
static get watchers() {
|
|
50
|
+
return { extraClasses: [{ handleExtraClassesAndSizeChange: 0 }], appearance: [{ handleExtraClassesAndSizeChange: 0 }, { handleAppearanceChange: 0 }], size: [{ handleExtraClassesAndSizeChange: 0 }, { handleSizeChange: 0 }], disabled: [{ handleExtraClassesAndSizeChange: 0 }, { handleDisabledChange: 0 }] };
|
|
51
|
+
}
|
|
52
|
+
static get style() {
|
|
53
|
+
return ".gids-dot{display:flex;--gidsDotIcon-height:var(--gids-size-040);--gidsIcon-height:var(--gidsDotIcon-height);--gidsDotIcon-color:var(--gids-color-icon-subtle);--gidsIcon-color:var(--gidsDotIcon-color)}.gids-dot--sm{--gidsDotIcon-height:var(--gids-size-060)}.gids-dot--md{--gidsDotIcon-height:var(--gids-size-080)}.gids-dot--lg{--gidsDotIcon-height:var(--gids-size-100)}.gids-dot--xl{--gidsDotIcon-height:var(--gids-size-120)}.gids-dot--2xl{--gidsDotIcon-height:var(--gids-size-160)}.gids-dot--3xl{--gidsDotIcon-height:var(--gids-size-200)}.gids-dot--subtle{--gidsDotIcon-color:var(--gids-color-icon-subtle)}.gids-dot--static-inverse{--gidsDotIcon-color:var(--gids-color-icon-inverse)}.gids-dot--disabled{--gidsDotIcon-color:var(--gids-color-icon-disabled)}";
|
|
54
|
+
}
|
|
55
|
+
}, [0, "gids-dot", { extraClasses: [513, "extra-classes"], appearance: [513], size: [513], disabled: [516], activeClasses: [32] }, void 0, { extraClasses: [{ handleExtraClassesAndSizeChange: 0 }], appearance: [{ handleExtraClassesAndSizeChange: 0 }, { handleAppearanceChange: 0 }], size: [{ handleExtraClassesAndSizeChange: 0 }, { handleSizeChange: 0 }], disabled: [{ handleExtraClassesAndSizeChange: 0 }, { handleDisabledChange: 0 }] }]);
|
|
56
|
+
function b() {
|
|
57
|
+
typeof customElements < "u" && ["gids-dot", "gids-icon"].forEach(((s) => {
|
|
58
|
+
switch (s) {
|
|
59
|
+
case "gids-dot":
|
|
60
|
+
customElements.get(i(s)) || customElements.define(i(s), C);
|
|
61
|
+
break;
|
|
62
|
+
case "gids-icon":
|
|
63
|
+
customElements.get(i(s)) || r();
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
b();
|
|
68
|
+
export {
|
|
69
|
+
b as g,
|
|
70
|
+
C as h
|
|
71
|
+
};
|