@ganpatiinfo/gids-core-web 14.0.0 → 15.0.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 +5386 -4888
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-advanced-tooltip.d.ts +1 -1
- package/dist/gids-advanced-tooltip.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +1 -1
- package/dist/gids-expansion-body-list-item.js +1 -1
- package/dist/gids-expansion-body-list.d.ts +1 -1
- package/dist/gids-expansion-body-list.js +1 -1
- package/dist/gids-expansion-group.d.ts +1 -1
- package/dist/gids-expansion-group.js +1 -1
- package/dist/gids-expansion.d.ts +1 -1
- package/dist/gids-expansion.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-md-table.d.ts +1 -1
- package/dist/gids-md-table.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-skeleton.d.ts +11 -0
- package/dist/gids-skeleton.js +1 -0
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-tab-item.d.ts +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.d.ts +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/gids-transfer-list.d.ts +11 -0
- package/dist/gids-transfer-list.js +1 -0
- package/dist/p-474lVBcu.js +1 -0
- package/dist/{p-_HwuS8vK.js → p-9NZjfY_u.js} +1 -1
- package/dist/{p-Bh8qYmAS.js → p-B0Nc9rVM.js} +1 -1
- package/dist/{p-Bab1qxsC.js → p-BF46eY8H.js} +1 -1
- package/dist/{p-jzl-rPxB.js → p-BKIsp763.js} +1 -1
- package/dist/{p-BVA1LAFM.js → p-BgvpzBUx.js} +1 -1
- package/dist/{p-BYt-9DKT.js → p-BtKwhIx5.js} +1 -1
- package/dist/{p-DAnkY5ik.js → p-CLm5opt9.js} +1 -1
- package/dist/{p-C_RW9IFo.js → p-CZxn31uZ.js} +1 -1
- package/dist/{p-CU5JIcEp.js → p-Cyant-dw.js} +1 -1
- package/dist/{p-Dan1sCNk.js → p-D7qanqNO.js} +1 -1
- package/dist/{p-CnVmK0dH.js → p-DGenc1qz.js} +1 -1
- package/dist/{p-D5DRatg0.js → p-DLauG0q8.js} +1 -1
- package/dist/{p-DMVCMnTe.js → p-DaqhrFRM.js} +1 -1
- package/dist/{p-BzzDNTlP.js → p-Db4qRSmH.js} +1 -1
- package/dist/{p-DslOQITw.js → p-Df5xaj-o.js} +1 -1
- package/dist/{p-1fMG8D4t.js → p-DhtEw_C2.js} +1 -1
- package/dist/{p-BV0jg2ix.js → p-DshXkAUj.js} +1 -1
- package/dist/{p-DUUxlY-K.js → p-Dvh4sPkD.js} +1 -1
- package/dist/p-Iqbf3Pja.js +1 -0
- package/dist/{p-CatvDz2b.js → p-MnCDY1k9.js} +1 -1
- package/dist/types/components/html/GidsCrossTable/GidsCrossTable.d.ts +17 -0
- package/dist/types/components/html/GidsCrossTableBody/GidsCrossTableBody.d.ts +12 -0
- package/dist/types/components/html/GidsCrossTableRow/GidsCrossTableRow.d.ts +12 -0
- package/dist/types/components/html/GidsDialog/GidsDialog.d.ts +12 -0
- package/dist/types/components/html/GidsMatrixTable/GidsMatrixTable.d.ts +20 -0
- package/dist/types/components/html/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +20 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +3 -3
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +3 -3
- package/dist/types/components/html/GidsTable/GidsTable.d.ts +1 -1
- package/dist/types/components/html/GidsTableFooter/GidsTableFooter.d.ts +3 -3
- package/dist/types/components/html/GidsTableFooterControl/GidsTableFooterControl.d.ts +1 -1
- package/dist/types/components/html/GidsTableHeader/GidsTableHeader.d.ts +1 -1
- package/dist/types/components/html/GidsTableRow/GidsTableRow.d.ts +1 -1
- package/dist/types/components/html/_GidsDialogControl/GidsDialogControl.d.ts +8 -0
- package/dist/types/components/webComponents/GidsSkeleton/GidsSkeleton.d.ts +11 -0
- package/dist/types/components/webComponents/GidsTransferList/GidsTransferList.d.ts +49 -0
- package/dist/types/components.d.ts +131 -2
- package/dist-bundled/es/gids-action-bar.js +28 -27
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +4 -4
- package/dist-bundled/es/gids-calendar-header-panel.js +3 -3
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +23 -23
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +11 -11
- package/dist-bundled/es/gids-chevron-button.js +10 -10
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +5 -5
- package/dist-bundled/es/gids-dropdown-picker.js +4 -4
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-expansion-body-list-item.js +3 -3
- package/dist-bundled/es/gids-expansion-body-list.js +2 -2
- package/dist-bundled/es/gids-expansion-group.js +12 -12
- package/dist-bundled/es/gids-expansion.js +6 -6
- package/dist-bundled/es/gids-field.js +3 -3
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-icon.js +3 -3
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-md-table.js +77 -77
- package/dist-bundled/es/gids-overflow-container.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +20 -20
- package/dist-bundled/es/gids-password-field.js +53 -53
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +1 -1
- package/dist-bundled/es/gids-skeleton.js +41 -0
- package/dist-bundled/es/gids-tab-item.js +10 -10
- package/dist-bundled/es/gids-tab.js +4 -4
- package/dist-bundled/es/gids-text-field.js +15 -15
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +1 -1
- package/dist-bundled/es/gids-transfer-list.js +196 -0
- package/dist-bundled/es/p-474lVBcu-B1f8x2o1.js +31 -0
- package/dist-bundled/es/{p-_HwuS8vK-C0w4T5rV.js → p-9NZjfY_u-CnjUEy1y.js} +2 -2
- package/dist-bundled/es/{p-Bh8qYmAS-DhSpwB20.js → p-B0Nc9rVM-SBit1KrF.js} +6 -6
- package/dist-bundled/es/{p-Bab1qxsC-BMbD0lEy.js → p-BF46eY8H-Xn8Fl9EI.js} +3 -3
- package/dist-bundled/es/{p-jzl-rPxB-CC735zJp.js → p-BKIsp763-CqL9MgyZ.js} +7 -7
- package/dist-bundled/es/{p-BVA1LAFM-DdsY_n8R.js → p-BgvpzBUx-iq-eKBVZ.js} +7 -7
- package/dist-bundled/es/{p-BYt-9DKT-DByyhIUd.js → p-BtKwhIx5-DTEmfdxe.js} +6 -6
- package/dist-bundled/es/{p-CHGTBObD-EN4cCwtX.js → p-CHGTBObD-D_K9_Tmh.js} +15 -15
- package/dist-bundled/es/{p-DAnkY5ik-ChPtRpOX.js → p-CLm5opt9-DlxkI38w.js} +2 -2
- package/dist-bundled/es/{p-C_RW9IFo-DNQqJS8t.js → p-CZxn31uZ-BBHM983b.js} +10 -10
- package/dist-bundled/es/{p-CoS0NuDU-CqmDcRWj.js → p-CoS0NuDU-ByDvQAzA.js} +1 -1
- package/dist-bundled/es/{p-CU5JIcEp-CuVpd-eZ.js → p-Cyant-dw-Ch2zYNkx.js} +7 -7
- package/dist-bundled/es/{p-Dan1sCNk-mWcyyplK.js → p-D7qanqNO-Dby5jSjA.js} +14 -14
- package/dist-bundled/es/{p-CnVmK0dH-CbmnN-RR.js → p-DGenc1qz-CMwVEtCm.js} +5 -5
- package/dist-bundled/es/{p-D5DRatg0-DtQL-DQg.js → p-DLauG0q8-CCUuzYl9.js} +6 -6
- package/dist-bundled/es/{p-DMNS1d8v-CHF62UXm.js → p-DMNS1d8v-BX8e_AsY.js} +14 -14
- package/dist-bundled/es/{p-DMVCMnTe-D4eJKJsj.js → p-DaqhrFRM-2PqBeu5o.js} +4 -4
- package/dist-bundled/es/{p-BzzDNTlP-BkSyrafk.js → p-Db4qRSmH-B5pzOeve.js} +8 -8
- package/dist-bundled/es/{p-Degg_WJz-BLua06el.js → p-Degg_WJz-ORZcjc8G.js} +1 -1
- package/dist-bundled/es/{p-DslOQITw-BfwtLWqG.js → p-Df5xaj-o-fxAXUmag.js} +7 -7
- package/dist-bundled/es/{p-Dg2yoUxw-Cca8ROd_.js → p-Dg2yoUxw-DliMstZy.js} +8 -8
- package/dist-bundled/es/{p-1fMG8D4t-CIEDM74u.js → p-DhtEw_C2-D_91JSPC.js} +3 -3
- package/dist-bundled/es/{p-BV0jg2ix-DI0fZl_6.js → p-DshXkAUj-DgCiQIA2.js} +1 -1
- package/dist-bundled/es/{p-DUUxlY-K-mypBhVt6.js → p-Dvh4sPkD-B-T5C03p.js} +1 -1
- package/dist-bundled/es/p-Iqbf3Pja-DuajY4uD.js +52 -0
- package/dist-bundled/es/{p-CatvDz2b-C-Hlv2Xb.js → p-MnCDY1k9-CgbTyJ5R.js} +9 -9
- package/dist-bundled/es/{p-UVmSPzTd-6vjXok6h.js → p-UVmSPzTd-CR1higgJ.js} +1 -1
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-advanced-tooltip.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 +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +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 +2 -2
- 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-expansion-body-list-item.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-group.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion.umd.js +1 -1
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- 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 +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-md-table.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 +1 -1
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-progress-circle.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-skeleton.umd.js +5 -0
- package/dist-bundled/umd/gids-tab-item.umd.js +2 -2
- package/dist-bundled/umd/gids-tab.umd.js +1 -1
- package/dist-bundled/umd/gids-text-field.umd.js +1 -1
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd/gids-transfer-list.umd.js +5 -0
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +20 -4
- package/dist/p-D6lxqcxP.js +0 -1
- package/dist-bundled/es/p-D6lxqcxP-C6BOC0kV.js +0 -74
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { L as b, u as _, D as a, P as x, q as p } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { p as T } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
+
import { v as L, b as C, _ as H } from "./p-Iqbf3Pja-DuajY4uD.js";
|
|
4
|
+
import { d as m } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
5
|
+
import { o } from "./p-UVmSPzTd-CR1higgJ.js";
|
|
6
|
+
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
7
|
+
const k = (t) => f("gids-checkbox-control", t), A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
getGidsCheckboxControlClassNames: k
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), M = ({ type: t }, e) => f("gids-menu-group", {
|
|
11
|
+
"gids-menu-group--default": t === "default",
|
|
12
|
+
// by default so no need to have this class
|
|
13
|
+
"gids-menu-group--no-options": t === "no-options",
|
|
14
|
+
"gids-menu-group--loading": t === "loading"
|
|
15
|
+
}, e), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
getGidsMenuGroupClassNames: M
|
|
18
|
+
}, Symbol.toStringTag, { value: "Module" })), w = (t) => f("gids-menu", t), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19
|
+
__proto__: null,
|
|
20
|
+
getGidsMenuClassNames: w
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), O = (t) => f("gids-transfer-list", t), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
getGidsTransferListClassNames: O
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsMenuGroupClassNames: G } = R, I = ({ type: t = "no-options", supportingText: e = "No options", class: s, ...n }, l) => a("div", { class: G({ type: t }, s), ...n }, t === "loading" ? a(T, { indeterminate: !0, size: "md" }) : null, t === "no-options" ? a("span", null, e) : null, t === "default" && l != null ? l : null), { getGidsMenuClassNames: V } = z, S = ({ heading: t, supportingText: e, level: s, supportingTextTypography: n, isHeaderDividerVisible: l = !1, class: i, ...r }, h) => a("div", { class: V(i), ...r }, t != null && t !== "" || e != null && e !== "" ? a(H, { heading: t, supportingText: e, level: s, supportingTextTypography: n ?? "eyebrow-medium" }) : null, l ? a("div", { class: "gids-menu__header-divider" }, a(C, { orientation: "horizontal" })) : void 0, h != null ? a("div", { class: "gids-menu__children" }, h) : null), { getGidsCheckboxControlClassNames: j } = A, c = ({ checked: t, defaultChecked: e, disabled: s, indeterminate: n, inputId: l, name: i, value: r, required: h, onChange: d, class: g, ...y }) => a("span", { class: j(g), ...y }, a("input", { class: "gids-checkbox-control__input", type: "checkbox", disabled: s, checked: t, defaultChecked: e, required: h, indeterminate: n, value: r, id: l, name: i, onChange: d }), a(m, { class: "gids-checkbox-control__check", name: "checkmark", alt: "", size: "sm" }), a(m, { class: "gids-checkbox-control__minus", name: "minus", alt: "", size: "sm" })), { getGidsTransferListClassNames: P } = D, u = b(class extends _ {
|
|
25
|
+
constructor(t) {
|
|
26
|
+
super(), t !== !1 && this.__registerHost(), this.leftListHeading = "Choices", this.rightListHeading = "Choosen", this.moveAllVisible = !1, this.transferListType = "basic", this.leftListItems = [], this.rightListItems = [], this.listsMaxHeight = "200px", this.leftListItemsState = [], this.rightListItemsState = [], this.tempLeftListItemsState = [], this.tempRightListItemsState = [];
|
|
27
|
+
}
|
|
28
|
+
handleListsMaxHeightChange(t) {
|
|
29
|
+
this.listsMaxHeight = t;
|
|
30
|
+
}
|
|
31
|
+
handleLeftListHeadingChange(t) {
|
|
32
|
+
this.leftListHeading = t;
|
|
33
|
+
}
|
|
34
|
+
handleRightListHeadingChange(t) {
|
|
35
|
+
this.rightListHeading = t;
|
|
36
|
+
}
|
|
37
|
+
handleMoveAllVisibilityChange(t) {
|
|
38
|
+
this.moveAllVisible = t;
|
|
39
|
+
}
|
|
40
|
+
handleTransferListTypeChange(t) {
|
|
41
|
+
this.transferListType = t;
|
|
42
|
+
}
|
|
43
|
+
handleLeftListItemsChange(t) {
|
|
44
|
+
this.leftListItems = t, this.setListItemsStates();
|
|
45
|
+
}
|
|
46
|
+
handleRightListItemsChange(t) {
|
|
47
|
+
this.rightListItems = t, this.setListItemsStates();
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
50
|
+
this.setListItemsStates();
|
|
51
|
+
}
|
|
52
|
+
setListItemsStates() {
|
|
53
|
+
this.leftListItemsState = this.leftListItems, this.rightListItemsState = this.rightListItems;
|
|
54
|
+
}
|
|
55
|
+
getListHeading(t) {
|
|
56
|
+
return t === "left" ? this.leftListHeading : this.rightListHeading;
|
|
57
|
+
}
|
|
58
|
+
getListSupportingText(t) {
|
|
59
|
+
let e = this?.tempLeftListItemsState ?? [], s = this?.leftListItemsState ?? [];
|
|
60
|
+
return t === "right" && (e = this?.tempRightListItemsState ?? [], s = this?.rightListItemsState ?? []), `${e.length} of ${s.length} selected`;
|
|
61
|
+
}
|
|
62
|
+
isAllItemsSelectedInList({ listSide: t }) {
|
|
63
|
+
const e = this.getStateListsItemsArr(t), s = this.getTempListsItemsArr(t);
|
|
64
|
+
return e.length > 0 && e.length === s.length;
|
|
65
|
+
}
|
|
66
|
+
isAtleastOneItemSelectedInList({ listSide: t }) {
|
|
67
|
+
const e = this.getStateListsItemsArr(t), s = this.getTempListsItemsArr(t);
|
|
68
|
+
return s.length > 0 && s.length < e.length;
|
|
69
|
+
}
|
|
70
|
+
renderListHeading(t) {
|
|
71
|
+
if ((this?.transferListType ?? "basic") !== "basic") {
|
|
72
|
+
const e = this.isAllItemsSelectedInList({ listSide: t }), s = this.isAtleastOneItemSelectedInList({ listSide: t });
|
|
73
|
+
return a("div", { class: "gids-transfer-list__menu-heading-container" }, a(c, { checked: e || s, onChange: (n) => this.selectUnselectAllItems({ event: n, listSide: t }), indeterminate: s }), a("div", { class: "gids-transfer-list__menu-heading-text-content-container" }, a("span", { class: "gids-transfer-list__heading-text" }, this.getListHeading(t)), a("span", { class: "gids-transfer-list__heading-support-text" }, this.getListSupportingText(t))));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
listItemSelection({ event: t, pressedIndex: e, listSide: s }) {
|
|
77
|
+
this.selectUnselectListItem({ event: t, pressedIndex: e, listSide: s });
|
|
78
|
+
}
|
|
79
|
+
onPressingListItem({ event: t, pressedIndex: e, listSide: s }) {
|
|
80
|
+
this.listItemSelection({ event: t, pressedIndex: e, listSide: s });
|
|
81
|
+
}
|
|
82
|
+
selectUnselectListItem({ event: t, pressedIndex: e, listSide: s }) {
|
|
83
|
+
const n = this.getStateListsItemsArr(s)[e];
|
|
84
|
+
let l = !1;
|
|
85
|
+
if (s === "left" && n) {
|
|
86
|
+
const i = this?.tempLeftListItemsState ?? [], r = i.findIndex(((h) => h?.id === n?.id));
|
|
87
|
+
r != null && r !== -1 ? (i.splice(r, 1), l = !1) : (i.push(n), l = !0), this.tempLeftListItemsState = i, this.leftListItemsState = this?.leftListItemsState ? [...this.leftListItemsState] : [];
|
|
88
|
+
} else if (s === "right" && n) {
|
|
89
|
+
const i = this?.tempRightListItemsState ?? [], r = i.findIndex(((h) => h?.id === n?.id));
|
|
90
|
+
r != null && r !== -1 ? (i.splice(r, 1), l = !1) : (i.push(n), l = !0), this.tempRightListItemsState = i, this.rightListItemsState = this?.rightListItemsState ? [...this.rightListItemsState] : [];
|
|
91
|
+
}
|
|
92
|
+
this.callOnTransferListSelectFunc({ event: t, isSelected: l, listSide: s, selectedIndexes: [e], selectionType: "single" });
|
|
93
|
+
}
|
|
94
|
+
isItemSelected({ id: t, listSide: e }) {
|
|
95
|
+
const s = this.getTempListsItemsArr(e);
|
|
96
|
+
return s.length > 0 && !!s.find(((n) => n?.id === t));
|
|
97
|
+
}
|
|
98
|
+
getStateListsItemsArr(t) {
|
|
99
|
+
let e = this?.leftListItemsState ?? [];
|
|
100
|
+
return t === "right" && (e = this?.rightListItemsState ?? []), e;
|
|
101
|
+
}
|
|
102
|
+
getTempListsItemsArr(t) {
|
|
103
|
+
let e = this?.tempLeftListItemsState ?? [];
|
|
104
|
+
return t === "right" && (e = this?.tempRightListItemsState ?? []), e;
|
|
105
|
+
}
|
|
106
|
+
selectUnselectAllItems({ event: t, listSide: e }) {
|
|
107
|
+
const s = this.getStateListsItemsArr(e), n = this.isAllItemsSelectedInList({ listSide: e }), l = this.isAtleastOneItemSelectedInList({ listSide: e });
|
|
108
|
+
e === "left" ? this.tempLeftListItemsState = n || l ? [] : [...s] : this.tempRightListItemsState = n || l ? [] : [...s];
|
|
109
|
+
const i = [];
|
|
110
|
+
n || l || s.map(((r, h) => {
|
|
111
|
+
i.push(h);
|
|
112
|
+
})), this.callOnTransferListSelectFunc({ event: t, isSelected: !n && !l, listSide: e, selectedIndexes: i, selectionType: "all" });
|
|
113
|
+
}
|
|
114
|
+
callOnTransferListSelectFunc({ event: t, isSelected: e, listSide: s, selectedIndexes: n, selectionType: l }) {
|
|
115
|
+
this.onTransferListSelect && this.onTransferListSelect({ originalEvent: t, originalLeftListItems: this?.leftListItems ?? [], originalRightListItems: this?.rightListItems ?? [], currentLeftListItems: this?.leftListItemsState ?? [], currentRightListItems: this?.rightListItemsState ?? [], leftListSelectedItems: this?.tempLeftListItemsState ?? [], rightListSelectedItems: this?.tempRightListItemsState ?? [], selectedIndexes: n, selectionType: l, listSide: s, isSelected: e });
|
|
116
|
+
}
|
|
117
|
+
movementButtonDisabled({ listSide: t, movementType: e }) {
|
|
118
|
+
if (t === "left") {
|
|
119
|
+
const s = this?.leftListItemsState && this.leftListItemsState.length > 0 ? this.leftListItemsState.length : 0;
|
|
120
|
+
if (e === "move-single") return !(s > 0 && (this?.tempLeftListItemsState && this.tempLeftListItemsState.length > 0 ? this.tempLeftListItemsState.length : 0) > 0);
|
|
121
|
+
if (e === "move-all") return !(s > 0);
|
|
122
|
+
} else if (t === "right") {
|
|
123
|
+
const s = this?.rightListItemsState && this.rightListItemsState.length > 0 ? this.rightListItemsState.length : 0;
|
|
124
|
+
if (e === "move-single") return !(s > 0 && (this?.tempRightListItemsState && this.tempRightListItemsState.length > 0 ? this.tempRightListItemsState.length : 0) > 0);
|
|
125
|
+
if (e === "move-all") return !(s > 0);
|
|
126
|
+
}
|
|
127
|
+
return !0;
|
|
128
|
+
}
|
|
129
|
+
callOnTransferAction({ transferTo: t, transferFrom: e, movementType: s, newTransferredItems: n }) {
|
|
130
|
+
this.onTransferAction && this.onTransferAction({ transferTo: t, transferFrom: e, originalLeftListItems: this?.leftListItems ?? [], originalRightListItems: this?.rightListItems ?? [], currentLeftListItems: this?.leftListItemsState ?? [], currentRightListItems: this?.rightListItemsState ?? [], leftListSelectedItems: this?.tempLeftListItemsState ?? [], rightListSelectedItems: this?.tempRightListItemsState ?? [], newTransferredItems: n, movementType: s });
|
|
131
|
+
}
|
|
132
|
+
clearListSystem({ event: t, listSide: e, movementType: s }) {
|
|
133
|
+
if (console.log("event", t), console.log("listSide", e), console.log("movementType", s), !this.movementButtonDisabled({ listSide: e, movementType: s })) {
|
|
134
|
+
if (e === "left") if (s === "move-single") {
|
|
135
|
+
const n = this?.tempLeftListItemsState ?? [], l = this?.leftListItemsState ?? [];
|
|
136
|
+
if (l.length > 0) {
|
|
137
|
+
const i = [];
|
|
138
|
+
l.map(((r) => {
|
|
139
|
+
n.find(((h) => h?.id === r?.id)) || i.push(r);
|
|
140
|
+
})), this.leftListItemsState = [...i];
|
|
141
|
+
}
|
|
142
|
+
this.tempLeftListItemsState = [];
|
|
143
|
+
} else s === "move-all" && (this.leftListItemsState = [], this.tempLeftListItemsState = []);
|
|
144
|
+
else if (e === "right") if (s === "move-single") {
|
|
145
|
+
const n = this?.tempRightListItemsState ?? [], l = this?.rightListItemsState ?? [];
|
|
146
|
+
if (l.length > 0) {
|
|
147
|
+
const i = [];
|
|
148
|
+
l.map(((r) => {
|
|
149
|
+
n.find(((h) => h?.id === r?.id)) || i.push(r);
|
|
150
|
+
})), this.rightListItemsState = [...i];
|
|
151
|
+
}
|
|
152
|
+
this.tempRightListItemsState = [];
|
|
153
|
+
} else s === "move-all" && (this.rightListItemsState = [], this.tempRightListItemsState = []);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
moveListItems({ event: t, listSide: e, movementType: s }) {
|
|
157
|
+
if (!this.movementButtonDisabled({ listSide: e, movementType: s })) {
|
|
158
|
+
const n = this?.leftListItemsState ?? [], l = this?.rightListItemsState ?? [], i = this?.tempLeftListItemsState ?? [], r = this?.tempRightListItemsState ?? [];
|
|
159
|
+
let h = [];
|
|
160
|
+
e === "left" ? s === "move-single" ? (this.rightListItemsState = [...i, ...l], h = [...i]) : s === "move-all" && (this.rightListItemsState = [...n, ...l], h = [...n]) : e === "right" && (s === "move-single" ? (this.leftListItemsState = [...r, ...n], h = [...r]) : s === "move-all" && (this.leftListItemsState = [...l, ...n], h = [...l])), this.clearListSystem({ event: t, listSide: e, movementType: s }), this.callOnTransferAction({ transferTo: e === "left" ? "right" : "left", transferFrom: e, movementType: s, newTransferredItems: h });
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
onItemsMovement({ event: t, listSide: e, movementType: s }) {
|
|
164
|
+
this.moveListItems({ event: t, listSide: e, movementType: s });
|
|
165
|
+
}
|
|
166
|
+
render() {
|
|
167
|
+
const t = P(), e = this?.leftListItemsState ?? [], s = this?.rightListItemsState ?? [], n = this.listsMaxHeight, l = this?.transferListType ?? "basic";
|
|
168
|
+
return a(x, { key: "aa8da731c2648ec4e359dbe5277fbf5947246276", class: t }, a("div", { key: "6dd5eefb717c7dea19165a218354e582a21ce11e", class: "gids-transfer-list__left-container" }, a(I, { key: "f89efe4c61e2b75b85b0038434b0424d23df354d", type: e.length > 0 ? "default" : "no-options" }, a(S, { key: "e3812b4b78c74daa2ed206c8a6928c1fb79984b1", heading: this.renderListHeading("left"), style: { "--gidsMenuChildren-max-height": n }, isHeaderDividerVisible: l !== "basic" }, e.map(((i, r) => {
|
|
169
|
+
const h = i?.id ? i.id : "" + (r + 1), d = this.isItemSelected({ id: h, listSide: "left" });
|
|
170
|
+
return a(L, { id: "" + h, index: r, leadingAccessory: a(c, { checked: d }), selected: d, onPressListItem: (g) => this.onPressingListItem({ event: g, pressedIndex: r, listSide: "left" }) }, i?.listLabel);
|
|
171
|
+
}))))), a("div", { key: "db9922210390697fbc27b061ec796d41cabdc430", class: "gids-transfer-list__middle-container" }, a(o, { key: "3ebb8dc86a3b549091303298aeb230935ca3d03d", leadingIcon: a(m, { name: "forward" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "left", movementType: "move-all" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "left", movementType: "move-all" }) }), a(o, { key: "56916d7cc482775f6071bbe18a0269efb65c487d", leadingIcon: a(m, { name: "chevron-right" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "left", movementType: "move-single" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "left", movementType: "move-single" }) }), a(o, { key: "7a6eb9be1734b750131d7ab22c8bdbc3dfeed0ca", leadingIcon: a(m, { name: "chevron-left" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "right", movementType: "move-single" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "right", movementType: "move-single" }) }), a(o, { key: "6dee55d6ee67c01d02e59b672f790261e4235445", leadingIcon: a(m, { name: "backward" }), appearance: "default", size: "sm", width: "full", disabled: this.movementButtonDisabled({ listSide: "right", movementType: "move-all" }), onClick: (i) => this.onItemsMovement({ event: i, listSide: "right", movementType: "move-all" }) })), a("div", { key: "f58004630c591ae4e776b34751a759b508218489", class: "gids-transfer-list__right-container" }, a(I, { key: "2fbdff5086fc1db0a6d7ef1373527f1d624dbdfb", type: s.length > 0 ? "default" : "no-options" }, a(S, { key: "851366bf08415c614931191b0aa4dee581a559d8", heading: this.renderListHeading("right"), style: { "--gidsMenuChildren-max-height": n }, isHeaderDividerVisible: l !== "basic" }, s.map(((i, r) => {
|
|
172
|
+
const h = i?.id ? i.id : "" + (r + 1), d = this.isItemSelected({ id: h, listSide: "right" });
|
|
173
|
+
return a(L, { id: "" + h, index: r, selected: d, leadingAccessory: a(c, { checked: d }), onPressListItem: (g) => this.onPressingListItem({ event: g, pressedIndex: r, listSide: "right" }) }, i?.listLabel);
|
|
174
|
+
}))))));
|
|
175
|
+
}
|
|
176
|
+
get hostElement() {
|
|
177
|
+
return this;
|
|
178
|
+
}
|
|
179
|
+
static get watchers() {
|
|
180
|
+
return { listsMaxHeight: [{ handleListsMaxHeightChange: 0 }], leftListHeading: [{ handleLeftListHeadingChange: 0 }], rightListHeading: [{ handleRightListHeadingChange: 0 }], moveAllVisible: [{ handleMoveAllVisibilityChange: 0 }], transferListType: [{ handleTransferListTypeChange: 0 }], leftListItems: [{ handleLeftListItemsChange: 0 }], rightListItems: [{ handleRightListItemsChange: 0 }] };
|
|
181
|
+
}
|
|
182
|
+
static get style() {
|
|
183
|
+
return ".gids-transfer-list{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-500)}.gids-transfer-list .gids-menu__children{max-height:var(--gidsMenuChildren-max-height);overflow:auto}.gids-transfer-list__left-container{display:flex;width:100%;flex-direction:column}.gids-transfer-list__middle-container{display:flex;width:15%;flex-direction:column;gap:var(--gids-gap-150)}.gids-transfer-list__right-container{display:flex;width:100%;flex-direction:column}.gids-transfer-list__menu-heading-container{display:flex;align-items:flex-start;justify-content:flex-start;gap:var(--gids-gap-100)}.gids-transfer-list__menu-heading-text-content-container{display:flex;flex-direction:column}.gids-transfer-list__heading-text{font-family:var(--gids-typography-heading-x-small__font-family);font-size:var(--gids-typography-heading-x-small__font-size);font-weight:var(--gids-typography-heading-x-small__font-weight);letter-spacing:var(--gids-typography-heading-x-small__letter-spacing);line-height:var(--gids-typography-heading-x-small__line-height);text-transform:var(--gids-typography-heading-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-heading-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle)}.gids-transfer-list__heading-support-text{font-family:var(--gids-typography-paragraph-medium__font-family);font-size:var(--gids-typography-paragraph-medium__font-size);font-weight:var(--gids-typography-paragraph-medium__font-weight);letter-spacing:var(--gids-typography-paragraph-medium__letter-spacing);line-height:var(--gids-typography-paragraph-medium__line-height);text-transform:var(--gids-typography-paragraph-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-medium__font-variant-caps, inherit);color:var(--gids-color-text-subtlest)}";
|
|
184
|
+
}
|
|
185
|
+
}, [0, "gids-transfer-list", { leftListHeading: [1, "left-list-heading"], rightListHeading: [1, "right-list-heading"], moveAllVisible: [4, "move-all-visible"], transferListType: [1, "transfer-list-type"], leftListItems: [16], rightListItems: [16], listsMaxHeight: [1, "lists-max-height"], onTransferAction: [16], onTransferListSelect: [16], leftListItemsState: [32], rightListItemsState: [32], tempLeftListItemsState: [32], tempRightListItemsState: [32] }, void 0, { listsMaxHeight: [{ handleListsMaxHeightChange: 0 }], leftListHeading: [{ handleLeftListHeadingChange: 0 }], rightListHeading: [{ handleRightListHeadingChange: 0 }], moveAllVisible: [{ handleMoveAllVisibilityChange: 0 }], transferListType: [{ handleTransferListTypeChange: 0 }], leftListItems: [{ handleLeftListItemsChange: 0 }], rightListItems: [{ handleRightListItemsChange: 0 }] }]);
|
|
186
|
+
function v() {
|
|
187
|
+
typeof customElements < "u" && ["gids-transfer-list"].forEach(((t) => {
|
|
188
|
+
t === "gids-transfer-list" && (customElements.get(p(t)) || customElements.define(p(t), u));
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
v();
|
|
192
|
+
const U = u, J = v;
|
|
193
|
+
export {
|
|
194
|
+
U as GidsTransferList,
|
|
195
|
+
J as defineCustomElement
|
|
196
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { D as t } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { p as y } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
+
import { _ as P, v as D } from "./p-Iqbf3Pja-DuajY4uD.js";
|
|
4
|
+
import { c as l } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
const I = (e) => l("gids-dropdown-item", e), S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
|
+
__proto__: null,
|
|
7
|
+
getGidsDropdownItemClassNames: I
|
|
8
|
+
}, Symbol.toStringTag, { value: "Module" })), x = ({ type: e }, o) => l("gids-dropdown-menu-group", {
|
|
9
|
+
"gids-dropdown-menu-group--default": e === "default",
|
|
10
|
+
// by default so no need to have this class
|
|
11
|
+
"gids-dropdown-menu-group--no-options": e === "no-options",
|
|
12
|
+
"gids-dropdown-menu-group--loading": e === "loading"
|
|
13
|
+
}, o), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
+
__proto__: null,
|
|
15
|
+
getGidsDropdownMenuGroupClassNames: x
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), C = (e) => l("gids-dropdown-menu", e), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
getGidsDropdownMenuClassNames: C
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownMenuGroupClassNames: N } = G, L = ({ type: e = "no-options", supportingText: o = "No options", class: n, ...s }, d) => t("div", { class: N({ type: e }, n), ...s }, e === "loading" ? t(y, { indeterminate: !0, size: "md" }) : null, e === "no-options" ? t("span", null, o) : null, e === "default" && d != null ? d : null), { getGidsDropdownMenuClassNames: T } = M, E = ({ sectionLabel: e, class: o, ...n }, s) => t("div", { class: T(o), ...n }, e != null && e !== "" ? t(P, { supportingText: e, supportingTextTypography: "eyebrow-medium" }) : null, s != null ? t("div", { class: "gids-dropdown-menu__children" }, s) : null), { getGidsDropdownItemClassNames: j } = S, $ = ({ id: e, title: o, class: n, selected: s = !1, disabled: d = !1, role: p = "list-item-option", value: r, name: m, onPressDropdownItem: c, index: i, defaultSelected: u, leadingAccessory: g, divider: f, isPlaceholderItem: a, ...w }) => {
|
|
20
|
+
const b = j(typeof n == "string" ? n : void 0);
|
|
21
|
+
return t(D, { id: e, index: i ?? 0, defaultSelected: u, selected: s, disabled: d, role: p, value: r, name: m, leadingAccessory: g, class: b, onPressListItem: (v) => {
|
|
22
|
+
if (v.defaultPrevented) return;
|
|
23
|
+
const _ = new CustomEvent("onPressDropdownItem", { bubbles: !0, composed: !0, detail: { id: e, title: o, value: r, disabled: d, selectedIndex: i, defaultSelected: u, isPlaceholderItem: a } });
|
|
24
|
+
c?.(_);
|
|
25
|
+
}, divider: f, isPlaceholderItem: a, ...w }, o);
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
L as a,
|
|
29
|
+
E as p,
|
|
30
|
+
$ as u
|
|
31
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as f, L as g, u as v, D as c } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as p } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
-
import { o as I } from "./p-
|
|
3
|
+
import { o as I } from "./p-DLauG0q8-CCUuzYl9.js";
|
|
4
4
|
import { c as y } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const S = ({ expanded: h }, e) => y("gids-filter", {
|
|
6
6
|
"gids-filter--expanded": h
|
|
@@ -142,7 +142,7 @@ const F = g((s = class extends v {
|
|
|
142
142
|
}
|
|
143
143
|
render() {
|
|
144
144
|
const e = this.expanded && this.isInteractive(), t = E({ expanded: e }), l = this.isMenuToggler(), i = typeof this.filterPickerId == "string" ? this.filterPickerId : void 0, n = i ? `${i}__menu` : void 0, r = this.selectedItemTitle ?? this.value ?? "", d = this.type === "more", a = this.type === "all", o = this.type === "none";
|
|
145
|
-
return c("div", { key: "
|
|
145
|
+
return c("div", { key: "3a2470421791364621087eba33ee9464ad67902c", class: t, "aria-control": n ?? "" }, c("gids-toggle-button", { key: "15d270fd1fbbc2c65307431672b4561f30029ed4", id: i, name: this.name, expanded: e, value: r, disabled: this.disabled, size: this.size, loading: this.loading, tabIndex: this.filterIndex, defaultSelected: this.filterDefaultSelected, selected: this.filterSelected, onSelect: this.handleFilterButtonClickToggle }, d || a ? c(p, { name: d ? "options" : "filter", size: this.size, appearance: "regular", alt: "", slot: "leadingIcon" }) : void 0, o || a ? r : void 0, l && !d ? c(p, { name: "chevron-down", size: this.size, appearance: "regular", alt: "", slot: "trailingIcon" }) : void 0), c("div", { key: "e9625588f0a95d33f3b059fdeff5e8509d3c64b7", class: "gids-filter__menu", id: n, role: "pickerbox", onClick: this.handleMenuClick }, c("slot", { key: "0a0aedee0a69f6bff60883c6b8706ea34306ca57", onSlotchange: () => this.evaluateSlottedMenuExistence() })));
|
|
146
146
|
}
|
|
147
147
|
get hostElement() {
|
|
148
148
|
return this;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { q as l, L as d, u as o, D as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { o as h } from "./p-UVmSPzTd-
|
|
2
|
+
import { o as h } from "./p-UVmSPzTd-CR1higgJ.js";
|
|
3
3
|
import { d as c } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
4
|
import { e as p } from "./p-ChV9xqsO-CJSPCx6p.js";
|
|
5
|
-
import {
|
|
6
|
-
import { u as b } from "./p-
|
|
7
|
-
import { h as m } from "./p-
|
|
5
|
+
import { c as u } from "./p-D7qanqNO-Dby5jSjA.js";
|
|
6
|
+
import { u as b } from "./p-CZxn31uZ-BBHM983b.js";
|
|
7
|
+
import { h as m } from "./p-Db4qRSmH-B5pzOeve.js";
|
|
8
8
|
import { c as k } from "./clsx-OuTLNxxd.js";
|
|
9
9
|
const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
10
10
|
const t = new Date(2e3, e - 1, 1);
|
|
@@ -130,7 +130,7 @@ const g = (e) => k("gids-calendar-header-panel", e), f = (e, a = "en-US") => {
|
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
132
|
const e = M(), a = this.expandedMonthPicker && this.isMonthPickerInteractive() && !this.expandedYearPicker, t = this.expandedYearPicker && this.isYearPickerInteractive() && !this.expandedMonthPicker, i = this.internalPreviousDisabled || this.previousDisabled, s = this.internalNextDisabled || this.nextDisabled;
|
|
133
|
-
return n("div", { key: "
|
|
133
|
+
return n("div", { key: "3e824f3aa58867e2d5f10edbfc79a9537ddef52e", class: e }, n(h, { key: "ee8399ff602d65712a281be09c21d2d9d23585cb", leadingIcon: n(c, { name: "arrow-left", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handlePreviousActionClick, disabled: i }), n("div", { key: "2ca66adc5feb98e8dd05bf2275340edefa2557d3", class: "gids-calendar-header-panel__main-container" }, n("gids-dropdown-picker", { key: "9574b933eb6a46102bfc89afb30e3f530343ea0a", expanded: a, appearance: this.appearance, size: "sm", value: `${this.panelMonthNumber}`, disabled: this.monthPickerDisabled }, n("gids-calendar-month-list", { key: "89a7aa1c01cbd24e5c7fafb97adb6fe12c7cdcfe", type: "default", selectedMonthNumber: this.panelMonthNumber, onSelectionMonthChange: this.handleMonthPickerMenuClick })), n("span", { key: "94de66a163baadf939c8ea4a33534a811b01e0f3", class: p("gids-calendar-header-panel__panel-value", { "gids-calendar-header-panel__panel-value-disabled": this.panelDisabled }) }, this.getPanelValue()), n("gids-dropdown-picker", { key: "a59f257d0d7088d3325a77d824c765c72a026a05", expanded: t, appearance: this.appearance, size: "sm", value: `${this.panelYear}`, disabled: this.yearPickerDisabled }, n("gids-calendar-year-list", { key: "edc0cc39b60026360730d07447d6f1f28d9bfca0", type: "default", selectedYear: this.panelYear, startYear: this.startYear ?? this.fallbackStartYear, endYear: this.endYear, onSelectionYearChange: this.handleYearPickerMenuClick }))), n(h, { key: "3b5e2b20a5d896b0b9a91de1bc29c621ff306c4c", leadingIcon: n(c, { name: "arrow-right", size: "md", appearance: "regular" }), appearance: this.appearance, size: "sm", width: "intrinsic", onClick: this.handleNextActionClick, disabled: s }));
|
|
134
134
|
}
|
|
135
135
|
get hostElement() {
|
|
136
136
|
return this;
|
|
@@ -161,7 +161,7 @@ function y() {
|
|
|
161
161
|
}
|
|
162
162
|
y();
|
|
163
163
|
export {
|
|
164
|
+
P as d,
|
|
164
165
|
v as m,
|
|
165
|
-
P as n,
|
|
166
166
|
y as u
|
|
167
167
|
};
|
|
@@ -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
|
-
import { p as b } from "./p-DMNS1d8v-
|
|
3
|
-
import {
|
|
4
|
-
import { l as v } from "./p-
|
|
2
|
+
import { p as b } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
+
import { o as u } from "./p-Df5xaj-o-fxAXUmag.js";
|
|
4
|
+
import { l as v } from "./p-DshXkAUj-DgCiQIA2.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"
|
|
@@ -4,7 +4,7 @@ import { c as y } from "./clsx-OuTLNxxd.js";
|
|
|
4
4
|
const u = (t) => y("gids-expansion-body-list-item", t), m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
5
|
__proto__: null,
|
|
6
6
|
getGidsExpansionBodyListItemClassNames: u
|
|
7
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsExpansionBodyListItemClassNames: x } = m,
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsExpansionBodyListItemClassNames: x } = m, f = g(class extends h {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(), t !== !1 && this.__registerHost(), this.displayTagVisible = !1, this.displayTagColor = "accent-5", this.displayTagSize = "xs", this.displayTagAppearance = "subtle", this.hasSubtitleItemListener = !1, this.hasSupportingTextItemListener = !1, this.handleSubtitleClick = (i) => {
|
|
10
10
|
this.applySubtitleSelection({ listItemId: this.listItemId, label: this.label, subtitle: this.subtitle, supportingText: this.supportingText, listItemPressedType: "subtitle", originalEvent: i });
|
|
@@ -65,7 +65,7 @@ const u = (t) => y("gids-expansion-body-list-item", t), m = /* @__PURE__ */ Obje
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const t = x(), i = this?.label, o = this?.subtitle, r = this?.supportingText, s = this.isValidLabel(), l = this.isValidSubtitle(), p = this.isValidSupportingText(), a = this.isDisplayTagVisible(), d = this?.displayTagLabel ?? "";
|
|
68
|
-
return e(c, { key: "
|
|
68
|
+
return e(c, { key: "46ee20fde0175d66474de6e39024d173ac0f9af8", class: t }, s || l || a ? e("div", { class: "gids-expansion-body-list-item__primary-container" }, s || a ? e("div", { class: "gids-expansion-body-list-item__primary-content" }, s ? e("span", { class: "gids-expansion-body-list-item__label" }, this.convertTextToUppercase(i)) : void 0, a ? e(b, { color: this.displayTagColor || "accent-5", label: d, size: this.displayTagSize, appearance: this.displayTagAppearance }) : void 0) : void 0, l ? e("button", { type: "button", class: "gids-expansion-body-list-item__subtitle", onClick: this.handleSubtitleClick }, o) : void 0) : void 0, p ? e("div", { class: "gids-expansion-body-list-item__secondary-container" }, e("button", { type: "button", class: "gids-expansion-body-list-item__supporting-text", onClick: this.handleSupportingTextClick }, this.convertTextToUppercase(r))) : void 0);
|
|
69
69
|
}
|
|
70
70
|
get hostElement() {
|
|
71
71
|
return this;
|
|
@@ -77,13 +77,13 @@ const u = (t) => y("gids-expansion-body-list-item", t), m = /* @__PURE__ */ Obje
|
|
|
77
77
|
return '.gids-expansion-body-list-item{display:flex;flex:1;gap:var(--gids-gap-400);padding-bottom:var(--gids-padding-vertical-edge-to-element-300);position:relative;cursor:default}.gids-expansion-body-list-item::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--gids-color-border-default);transition:background 0.3s ease-in-out;z-index:1}.gids-expansion-body-list-item::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(to right, transparent 0%, transparent 25%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 55%, transparent 75%, transparent 100%);opacity:0;transition:opacity 0.3s ease-in-out;z-index:2}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::after{background:linear-gradient(to right, var(--gids-color-border-default) 0%, var(--gids-color-border-default) 15%, var(--gids-color-background-selected-pressed) 45%, var(--gids-color-background-selected-pressed) 70%, var(--gids-color-border-default) 90%, var(--gids-color-border-default) 100%)}.gids-expansion-body-list-item:has(.gids-expansion-body-list-item__subtitle:hover)::before{opacity:1}.gids-expansion-body-list-item__primary-container{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1 0;gap:var(--gids-gap-150)}.gids-expansion-body-list-item__primary-content{display:flex;align-items:center;justify-content:center;gap:var(--gids-gap-200)}.gids-expansion-body-list-item__secondary-container{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end}.gids-expansion-body-list-item__label{font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle);cursor:default}.gids-expansion-body-list-item__subtitle{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-medium__font-family);font-size:var(--gids-typography-label-medium__font-size);font-weight:var(--gids-typography-label-medium__font-weight);letter-spacing:var(--gids-typography-label-medium__letter-spacing);line-height:var(--gids-typography-label-medium__line-height);text-transform:var(--gids-typography-label-medium__text-transform, inherit);font-variant-caps:var(--gids-typography-label-medium__font-variant-caps, inherit);color:var(--gids-color-text-default);cursor:pointer}.gids-expansion-body-list-item__supporting-text{margin:0;padding:0;appearance:none;border:none;background:none;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit);color:var(--gids-color-text-subtle);padding:var(--gids-padding-vertical-edge-to-element-050) var(--gids-padding-horizontal-edge-to-element-100);border-radius:var(--gids-border-radius-sm);cursor:pointer;transition:background-color 0.3s ease-in-out, color 0.3s ease-in-out}.gids-expansion-body-list-item__supporting-text:hover{background-color:var(--gids-color-background-brand-bold-hovered);color:var(--gids-color-text-inverse)}.gids-expansion-body-list-item__supporting-text:active{background-color:var(--gids-color-background-brand-bold-pressed);color:var(--gids-color-text-inverse)}';
|
|
78
78
|
}
|
|
79
79
|
}, [0, "gids-expansion-body-list-item", { listItemId: [1, "list-item-id"], label: [1], subtitle: [1], supportingText: [1, "supporting-text"], displayTagVisible: [4, "display-tag-visible"], displayTagColor: [1, "display-tag-color"], displayTagSize: [1, "display-tag-size"], displayTagAppearance: [1, "display-tag-appearance"], displayTagLabel: [1, "display-tag-label"], onSubtitlePress: [16], onSupportingTextPress: [16] }, void 0, { displayTagVisible: [{ handleDisplayTagVisibilityChange: 0 }], displayTagColor: [{ handleDisplayTagColorChange: 0 }], displayTagSize: [{ handleDisplayTagSizeChange: 0 }], displayTagAppearance: [{ handleDisplayTagAppearanceChange: 0 }] }]);
|
|
80
|
-
function
|
|
80
|
+
function v() {
|
|
81
81
|
typeof customElements < "u" && ["gids-expansion-body-list-item"].forEach(((t) => {
|
|
82
|
-
t === "gids-expansion-body-list-item" && (customElements.get(n(t)) || customElements.define(n(t),
|
|
82
|
+
t === "gids-expansion-body-list-item" && (customElements.get(n(t)) || customElements.define(n(t), f));
|
|
83
83
|
}));
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
v();
|
|
86
86
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
v as d,
|
|
88
|
+
f as r
|
|
89
89
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { q as b, L as A, u as D, D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
-
import { p as L } from "./p-DMNS1d8v-
|
|
3
|
-
import { _ as E } from "./p-
|
|
4
|
-
import {
|
|
5
|
-
import { l as
|
|
6
|
-
import { c as
|
|
7
|
-
const P = ({ breakpoint: e }, l) =>
|
|
2
|
+
import { p as L } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
3
|
+
import { _ as E } from "./p-Dvh4sPkD-B-T5C03p.js";
|
|
4
|
+
import { o as M } from "./p-Df5xaj-o-fxAXUmag.js";
|
|
5
|
+
import { l as I } from "./p-DshXkAUj-DgCiQIA2.js";
|
|
6
|
+
import { c as $ } from "./clsx-OuTLNxxd.js";
|
|
7
|
+
const P = ({ breakpoint: e }, l) => $("gids-bar-chart", {
|
|
8
8
|
"gids-bar-chart--breakpoint-mobile": e === "mobile"
|
|
9
9
|
}, l), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
10
|
__proto__: null,
|
|
@@ -118,7 +118,7 @@ function Y() {
|
|
|
118
118
|
customElements.get(b(e)) || M();
|
|
119
119
|
break;
|
|
120
120
|
case "gids-chart-legend-item":
|
|
121
|
-
customElements.get(b(e)) ||
|
|
121
|
+
customElements.get(b(e)) || I();
|
|
122
122
|
}
|
|
123
123
|
}));
|
|
124
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as l, L as u, u as p, D as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { d as m } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
3
|
-
import { r as g } from "./p-
|
|
3
|
+
import { r as g } from "./p-DGenc1qz-CMwVEtCm.js";
|
|
4
4
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
6
6
|
"gids-dropdown--expanded": e
|
|
@@ -12,7 +12,7 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
12
12
|
__proto__: null,
|
|
13
13
|
getGidsChevronButtonControlClassNames: f,
|
|
14
14
|
getGidsDropdownClassNames: v
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: I, getGidsChevronButtonControlClassNames:
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsDropdownClassNames: I, getGidsChevronButtonControlClassNames: E } = y, h = "gids-dropdown-item--active", b = u(class extends p {
|
|
16
16
|
constructor(e) {
|
|
17
17
|
super(), e !== !1 && this.__registerHost(), this.appearance = "default", this.expanded = !1, this.filterValue = "", this.isFilterEditing = !1, this.hasLeadingIcon = !1, this.hasLeadingAccessory = !1, this.activeIndex = -1, this.hasItemListener = !1, this.suppressNextMenuClickSelection = !1, this.hasDocumentListeners = !1, this.hasPendingControlRevalidation = !1, this.handleDropdownItemSelect = (t) => {
|
|
18
18
|
const { value: i, title: n, disabled: s, id: o, isPlaceholderItem: r } = t.detail;
|
|
@@ -213,8 +213,8 @@ const v = ({ expanded: e }, t) => c("gids-dropdown", {
|
|
|
213
213
|
render() {
|
|
214
214
|
const e = this.expanded && this.isInteractive(), t = I({ expanded: e }), i = this.getEnhancedInputProps(), n = typeof i.id == "string" ? i.id : void 0, s = n ? `${n}__menu` : void 0;
|
|
215
215
|
i.role = "combobox", i["aria-expanded"] = e ? "true" : "false", i["aria-haspopup"] = "listbox", i["aria-autocomplete"] = "list", s && (i["aria-controls"] = s);
|
|
216
|
-
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", r = e ? "true" : "false", d = a("button", { key: "
|
|
217
|
-
return a("div", { key: "
|
|
216
|
+
const o = this.isFilterEditing ? this.filterValue : this.selectedItemTitle ?? this.value ?? "", r = e ? "true" : "false", d = a("button", { key: "35d89661d85a8598572ff98383f08f9626e2daf0", class: E({ size: "lg" }), slot: "trailingAccessory", type: "button", onClick: this.handleChevronClickToggle, "aria-label": e ? "Collapse options" : "Expanded options", "aria-expanded": r, "aria-haspopup": "listbox", "aria-controls": s, disabled: this.disabled || this.readOnly, tabIndex: -1 }, a("span", { key: "61aa33caa3c33ddec50713f697c66414fb83cb9c", class: "gids-button__content" }, a(m, { key: "26a64c22901fdba21daa6cad35de6991b481a5c7", name: "chevron-vertical", alt: "" })));
|
|
217
|
+
return a("div", { key: "6675e14654eb5c6bda87c6ff34633882b1e3b20e", class: t }, a("gids-input", { key: "2bf2921699a55a6e67790ac15b6430755a6426e1", appearance: this.appearance, loading: this.loading, disabled: this.disabled, readOnly: this.readOnly, required: this.required, value: o, name: this.name, inputProps: i, onClick: this.handleInputClickToggle, onFocus: this.handleInputFocusAndBlur, onBlur: this.handleInputFocusAndBlur }, this.hasLeadingIcon && a("slot", { key: "69eaf25688c6d199298f8499c6a44d119189900e", name: "leadingIconDropdown", slot: "leadingIcon" }), this.hasLeadingAccessory && a("slot", { key: "5d13d954b33acb2cd246efd5fae42c73f489137d", name: "leadingAccessoryDropdown", slot: "leadingAccessory" }), d), a("div", { key: "bd0835e11b2c9cd45ae4730144b8b218a93fca6d", class: "gids-dropdown__menu", id: s, role: "listbox", onClick: this.handleMenuClick }, a("slot", { key: "e9ab0f9976cec22f1f8d149eb148f6598995104a" })));
|
|
218
218
|
}
|
|
219
219
|
get hostElement() {
|
|
220
220
|
return this;
|
|
@@ -230,7 +230,7 @@ function x() {
|
|
|
230
230
|
typeof customElements < "u" && ["gids-dropdown", "gids-input"].forEach(((e) => {
|
|
231
231
|
switch (e) {
|
|
232
232
|
case "gids-dropdown":
|
|
233
|
-
customElements.get(l(e)) || customElements.define(l(e),
|
|
233
|
+
customElements.get(l(e)) || customElements.define(l(e), b);
|
|
234
234
|
break;
|
|
235
235
|
case "gids-input":
|
|
236
236
|
customElements.get(l(e)) || g();
|
|
@@ -239,6 +239,6 @@ function x() {
|
|
|
239
239
|
}
|
|
240
240
|
x();
|
|
241
241
|
export {
|
|
242
|
-
|
|
242
|
+
b as c,
|
|
243
243
|
x as l
|
|
244
244
|
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
const f =
|
|
3
|
+
const c = 64, g = 10, u = c / 2 - g / 2, f = c / 2, a = 2 * Math.PI * u, h = `0 0 ${c} ${c}`, _ = (e = 0, t) => {
|
|
4
|
+
const n = typeof t == "number" && t > 0 ? t : 1, i = Math.max(0, Math.min(n, e)) / n * 100, o = (a * i / 100).toFixed(2), m = (a - parseFloat(o)).toFixed(2);
|
|
5
|
+
return `${o} ${m}`;
|
|
6
|
+
}, y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
calculateStrokeDasharray: _,
|
|
9
|
+
centerPosition: f,
|
|
10
|
+
circumference: a,
|
|
11
|
+
radius: u,
|
|
12
|
+
thickness: g,
|
|
13
|
+
viewBox: h
|
|
14
|
+
}, Symbol.toStringTag, { value: "Module" })), k = ({ size: e, indeterminate: t, value: n }, r) => x("gids-spinner-control", {
|
|
4
15
|
"gids-spinner-control--xs": e === "xs",
|
|
5
16
|
"gids-spinner-control--sm": e === "sm",
|
|
6
17
|
// 'gids-spinner-control--md': size === 'md',
|
|
@@ -8,21 +19,10 @@ const f = ({ size: e, indeterminate: t, value: n }, r) => x("gids-spinner-contro
|
|
|
8
19
|
"gids-spinner-control--xl": e === "xl",
|
|
9
20
|
"gids-spinner-control--2xl": e === "2xl",
|
|
10
21
|
"gids-spinner-control--determinate": t === !1
|
|
11
|
-
}, n, r),
|
|
22
|
+
}, n, r), v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12
23
|
__proto__: null,
|
|
13
|
-
getGidsSpinnerControlClassNames:
|
|
14
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15
|
-
const n = typeof t == "number" && t > 0 ? t : 1, i = Math.max(0, Math.min(n, e)) / n * 100, o = (a * i / 100).toFixed(2), m = (a - parseFloat(o)).toFixed(2);
|
|
16
|
-
return `${o} ${m}`;
|
|
17
|
-
}, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
-
__proto__: null,
|
|
19
|
-
calculateStrokeDasharray: k,
|
|
20
|
-
centerPosition: _,
|
|
21
|
-
circumference: a,
|
|
22
|
-
radius: u,
|
|
23
|
-
thickness: g,
|
|
24
|
-
viewBox: y
|
|
25
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsSpinnerControlClassNames: S } = h, { calculateStrokeDasharray: b, thickness: d, radius: p, centerPosition: s, viewBox: D } = v, P = ({ size: e, indeterminate: t, value: n, max: r, ...i }) => {
|
|
24
|
+
getGidsSpinnerControlClassNames: k
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsSpinnerControlClassNames: S } = v, { calculateStrokeDasharray: b, thickness: d, radius: p, centerPosition: s, viewBox: D } = y, P = ({ size: e, indeterminate: t, value: n, max: r, ...i }) => {
|
|
26
26
|
let o;
|
|
27
27
|
return t || (o = { strokeDashArray: b(n, r || 0), strokeDashoffset: "0" }), l("svg", { class: S({ size: e, indeterminate: t, value: n }), viewBox: D, ...i }, l("circle", { class: "gids-spinner-control__track", cx: s, cy: s, r: p, "stroke-width": d }), l("circle", { style: o, class: "gids-spinner-control__progress", cx: s, cy: s, r: p, "stroke-width": d }));
|
|
28
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as i, L as o, u as n, D as l } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as g } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import {
|
|
3
|
+
import { n as r } from "./p-Cyant-dw-Ch2zYNkx.js";
|
|
4
4
|
import { c } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
6
6
|
"gids-dot--disabled": a,
|
|
@@ -41,7 +41,7 @@ const h = ({ appearance: s, size: e, disabled: a }, d) => c("gids-dot", {
|
|
|
41
41
|
this.activeClasses = t({ size: this.size, appearance: this.appearance, disabled: this.disabled }, this.extraClasses);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return l("gids-icon", { key: "
|
|
44
|
+
return l("gids-icon", { key: "a204dacf153b91ff96a29edd42da79dcf5f839a6", class: this.activeClasses, name: "new", alt: "", appearance: "filled" });
|
|
45
45
|
}
|
|
46
46
|
get _el() {
|
|
47
47
|
return this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as d, L as
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
1
|
+
import { q as d, L as o, u as h, D as i } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { a as u, p as m, u as Y } from "./p-474lVBcu-B1f8x2o1.js";
|
|
3
|
+
import { c as p } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const f = (e) => p("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,16 +21,16 @@ const p = (e) => f("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: f,
|
|
25
25
|
getGidsCalendarYearListYears: I,
|
|
26
26
|
isValidFourDigitYear: g
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears: b, isValidFourDigitYear: l } = S, w =
|
|
27
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarYearListClassNames: y, getGidsCalendarYearListYears: b, isValidFourDigitYear: l } = S, w = o(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
|
-
const { title: s, value: a, selectedIndex: r, disabled: n, id:
|
|
30
|
+
const { title: s, value: a, selectedIndex: r, disabled: n, id: c } = t.detail;
|
|
31
31
|
n || typeof s != "string" || (this.suppressNextMenuClickSelection = !0, queueMicrotask((() => {
|
|
32
32
|
this.suppressNextMenuClickSelection = !1;
|
|
33
|
-
})), this.applySelection({ id:
|
|
33
|
+
})), this.applySelection({ id: c, year: Number(a), disabled: !1, selectedIndex: r, startYear: this.newStartYear, endYear: this.newEndYear }));
|
|
34
34
|
}, this.handleMenuClick = (t) => {
|
|
35
35
|
if (this.suppressNextMenuClickSelection) return;
|
|
36
36
|
const s = t?.detail;
|
|
@@ -71,7 +71,7 @@ const p = (e) => f("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: "faf7bc805275a5c8134768678c3362912bcd739f", class: e }, i(u, { key: "a087b75eb1af94caa8962e9ba6a8439f2ba7558d", type: this.type, supportingText: this.noOptionsText }, i(m, { key: "f7ebc9972e0240405ebdecab3c1274c0c15a53a9", 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
|
})))));
|
|
@@ -87,6 +87,6 @@ function E() {
|
|
|
87
87
|
}
|
|
88
88
|
E();
|
|
89
89
|
export {
|
|
90
|
-
w as
|
|
90
|
+
w as l,
|
|
91
91
|
E as u
|
|
92
92
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { q as c, L as _, u as y, D as e } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { r as m, e as f, d as v, H as x, F as b } from "./p-CaauwQNd-D6_PbcRr.js";
|
|
3
|
-
import { p as u } from "./p-DMNS1d8v-
|
|
3
|
+
import { p as u } from "./p-DMNS1d8v-BX8e_AsY.js";
|
|
4
4
|
import { c as w } from "./clsx-OuTLNxxd.js";
|
|
5
5
|
const z = ({ breakpoint: s }, t) => w("gids-progress-circle", {
|
|
6
6
|
"gids-progress-circle--breakpoint-mobile": s === "mobile"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as e, L as t, u as s, D as o } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as d } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { d as
|
|
4
|
-
const
|
|
3
|
+
import { d as a } from "./p-D4Pimu_8-ARSuGBs4.js";
|
|
4
|
+
const c = t(class extends s {
|
|
5
5
|
constructor(i) {
|
|
6
6
|
super(), i !== !1 && this.__registerHost(), this.__attachShadow();
|
|
7
7
|
}
|
|
@@ -10,7 +10,7 @@ const n = t(class extends s {
|
|
|
10
10
|
i !== void 0 && this._el.shadowRoot?.adoptedStyleSheets.push(i);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return o(
|
|
13
|
+
return o(a, { key: "3c0910dce9846dd72cf79f8af8aa5b974d59e3df", 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 n = 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 n() {
|
|
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), c));
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
n();
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
c as d,
|
|
30
30
|
n
|
|
31
31
|
};
|