@ganpatiinfo/gids-core-web 10.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 +59 -0
- 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 +1 -1
- package/dist/gids-activity-gauge.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-field.d.ts +1 -1
- 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.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-level-gauge.js +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-notification.js +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-progress-circle.js +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-snackbar.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/index.js +1 -1
- package/dist/{p-DfFqFdmS.js → p-BQ-ZnlnH.js} +1 -1
- package/dist/{p-9_mrQ7ac.js → p-BZCJlqVe.js} +1 -1
- package/dist/p-Bf3p-DY2.js +1 -0
- package/dist/{p-CIP0xyhD.js → p-BpQB6ncp.js} +1 -1
- package/dist/p-CHGTBObD.js +1 -0
- package/dist/{p-CPSHPtGE.js → p-CP1wz2PI.js} +1 -1
- package/dist/{p-D93TNeOt.js → p-CQH7eAs3.js} +1 -1
- package/dist/{p-CJzporPT.js → p-CW7tw1Fb.js} +1 -1
- package/dist/{p-D_wcwB7E.js → p-CaauwQNd.js} +1 -1
- package/dist/p-Cn3-K5eR.js +1 -0
- package/dist/{p-quZYWCxU.js → p-CoS0NuDU.js} +1 -1
- package/dist/{p-BnL97lOW.js → p-D4Pimu_8.js} +1 -1
- package/dist/p-D6lxqcxP.js +1 -0
- package/dist/p-DMNS1d8v.js +1 -0
- package/dist/{p-BvYnawkJ.js → p-DNTv2BQ5.js} +1 -1
- package/dist/{p-tyIgTtUC.js → p-DPIK2ayL.js} +1 -1
- package/dist/{p-BiPAgxAQ.js → p-Db62Pz3n.js} +1 -1
- package/dist/{p-uqSjmNkw.js → p-Degg_WJz.js} +1 -1
- package/dist/{p-h6alWGT8.js → p-DfxTsSdZ.js} +1 -1
- 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-Bmb-HiXg.js → p-V48JyMbP.js} +1 -1
- package/dist/{p-B81J5HCC.js → p-mZJdpfOo.js} +1 -1
- package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
- package/dist/types/components.d.ts +260 -5
- package/dist-bundled/es/gids-action-bar.js +177 -0
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +4 -4
- package/dist-bundled/es/gids-calendar.js +22 -22
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +22 -22
- 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 +8 -8
- package/dist-bundled/es/gids-dropdown-picker.js +1 -1
- package/dist-bundled/es/gids-dropdown.js +4 -4
- 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 +4 -4
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-level-gauge.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +2 -2
- package/dist-bundled/es/gids-overlay-provider.js +12 -12
- package/dist-bundled/es/gids-password-field.js +36 -36
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +5 -5
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +2 -2
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +12 -12
- package/dist-bundled/es/gids-toggle-button.js +4 -44
- package/dist-bundled/es/gids-tooltip.js +5 -5
- package/dist-bundled/es/index.js +3 -3
- package/dist-bundled/es/{p-DfFqFdmS-DjI2pk-0.js → p-BQ-ZnlnH-CUVdDHzX.js} +6 -6
- package/dist-bundled/es/{p-9_mrQ7ac-If6e6cvJ.js → p-BZCJlqVe-BcSwze-q.js} +6 -6
- package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
- package/dist-bundled/es/{p-CIP0xyhD-D6y5soLj.js → p-BpQB6ncp-C2AWddf-.js} +11 -11
- package/dist-bundled/es/{p-DKsrt7dx-ImYLc4xz.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
- package/dist-bundled/es/{p-CPSHPtGE-C7baJgXR.js → p-CP1wz2PI-DhVAsHFS.js} +4 -4
- package/dist-bundled/es/{p-D93TNeOt-Vvshbux8.js → p-CQH7eAs3-BVowyVGn.js} +14 -14
- package/dist-bundled/es/{p-CJzporPT-I_OdjJsQ.js → p-CW7tw1Fb-DtJ5TwCU.js} +18 -18
- package/dist-bundled/es/{p-D_wcwB7E-d3jYxfod.js → p-CaauwQNd-D6_PbcRr.js} +1 -1
- package/dist-bundled/es/{p-BaO-kEWS-ZITkeP-j.js → p-Cn3-K5eR-tQ1EOnDF.js} +22 -20
- package/dist-bundled/es/{p-quZYWCxU-CPyWW0nv.js → p-CoS0NuDU-CqmDcRWj.js} +9 -9
- package/dist-bundled/es/{p-BnL97lOW-BO0p4EdC.js → p-D4Pimu_8-DfEGRQGf.js} +1 -1
- package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
- package/dist-bundled/es/{p-Dehss-X0-Di5vMgvd.js → p-DMNS1d8v-CHF62UXm.js} +3 -3
- package/dist-bundled/es/{p-BvYnawkJ-DohV9UNG.js → p-DNTv2BQ5-Bwgd30mM.js} +6 -6
- package/dist-bundled/es/{p-tyIgTtUC-C8jR4A5G.js → p-DPIK2ayL-DPEbctqo.js} +4 -4
- package/dist-bundled/es/{p-BiPAgxAQ-BtMBQpJY.js → p-Db62Pz3n-DpQjwBYb.js} +5 -5
- package/dist-bundled/es/{p-uqSjmNkw-Cz2T86sC.js → p-Degg_WJz-BLua06el.js} +3 -3
- package/dist-bundled/es/{p-h6alWGT8-CSY2g3c8.js → p-DfxTsSdZ-C2Afv1lS.js} +8 -8
- package/dist-bundled/es/{p-CRngHsR7-DL9wz3Z3.js → p-Dg2yoUxw-Cca8ROd_.js} +4 -4
- package/dist-bundled/es/p-DmLoB2Dn-D-FSoCvI.js +44 -0
- package/dist-bundled/es/{p-B_HaXpJZ-a2SDgQ0E.js → p-DoCwI_bx-BXHlZI7-.js} +7 -7
- package/dist-bundled/es/p-H1JIMJ2t-DEXp7M4I.js +152 -0
- package/dist-bundled/es/{p-BFHWXEeg-ByjSjz8i.js → p-JjN8U9B5-GeWjfJBY.js} +23 -21
- package/dist-bundled/es/{p-KxRqlvSh-JOFDmT0B.js → p-UVmSPzTd-DiTxS9kW.js} +8 -8
- package/dist-bundled/es/{p-DZWWuJac-DNQvnHAr.js → p-UxDcM-C5-Dr5d_WpJ.js} +2 -2
- package/dist-bundled/es/{p-Bmb-HiXg-MyHWdhpw.js → p-V48JyMbP-Bx-0od-Z.js} +12 -12
- package/dist-bundled/es/{p-B81J5HCC-Bkt2yXKi.js → p-mZJdpfOo-DicbKil0.js} +7 -7
- package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +3 -3
- 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 +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +2 -2
- package/dist-bundled/umd/gids-chart.umd.js +3 -3
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- 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 +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +2 -2
- 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 +8 -8
- package/package.json +20 -4
- package/dist/p-BFHWXEeg.js +0 -1
- package/dist/p-B_HaXpJZ.js +0 -1
- package/dist/p-BaO-kEWS.js +0 -1
- package/dist/p-CRngHsR7.js +0 -1
- package/dist/p-Ct3Ixgvf.js +0 -1
- package/dist/p-DKsrt7dx.js +0 -1
- package/dist/p-DZWWuJac.js +0 -1
- package/dist/p-Dehss-X0.js +0 -1
- package/dist/p-KxRqlvSh.js +0 -1
- package/dist/p-MgTlrSP_.js +0 -1
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +0 -646
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +0 -70
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { L as J, q as v, u as K, D as r } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { p as V, m as _, x as z, N as $ } from "./p-D6lxqcxP-DWrZi1Xi.js";
|
|
3
|
+
import { o as E } from "./p-UVmSPzTd-DiTxS9kW.js";
|
|
4
|
+
import { d as G } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
5
|
+
import { a as Q } from "./p-H1JIMJ2t-DEXp7M4I.js";
|
|
6
|
+
import { o as R } from "./p-DmLoB2Dn-D-FSoCvI.js";
|
|
7
|
+
import { c as U } from "./clsx-OuTLNxxd.js";
|
|
8
|
+
const W = (e) => U("gids-action-bar", e), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
|
+
__proto__: null,
|
|
10
|
+
getGidsActionBarClassNames: W
|
|
11
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsActionBarClassNames: Y } = X, N = J(class extends K {
|
|
12
|
+
constructor(e) {
|
|
13
|
+
super(), e !== !1 && this.__registerHost(), this.actionGroup = !1, this.allFiltersTabVisible = !1, this.moreFiltersTabVisible = !1, this.clearAllFiltersVisible = !0, this.clearAllFiltersButtonAppearance = "primary", this.primaryFilters = [], this.secondaryFilters = [], this.filterSize = "xs", this.disabled = !1, this.activeExpandedFilterId = void 0, this.handleAllFilterClick = (t) => {
|
|
14
|
+
const { id: l, filterId: a, title: d, value: f, disabled: p, selectedFilterMenuIndex: u, filterType: g, filterItemType: y, filterTitle: m, filterIndex: n, filterSelected: b, defaultSelected: F, hasFilterMenu: s, isPlaceholderItem: A } = t;
|
|
15
|
+
this.applyAllToggleSelection({ title: d, value: f, selectedFilterMenuIndex: u, filterType: g, filterItemType: y, filterTitle: m, filterIndex: n, hasFilterMenu: s, filterSelected: b, isPlaceholderItem: A, filterId: a, filterPickerId: l, filterDisabled: p, filterDefaultSelected: F || !1, selectedFilterMenuSectionIndex: void 0, filterPickerData: void 0 });
|
|
16
|
+
}, this.handleSecondaryFilterClick = (t) => {
|
|
17
|
+
const { id: l, filterId: a, title: d, value: f, disabled: p, selectedFilterMenuIndex: u, filterType: g, filterItemType: y, filterTitle: m, filterIndex: n, filterSelected: b, defaultSelected: F, hasFilterMenu: s, isPlaceholderItem: A } = t;
|
|
18
|
+
this.applySecondaryFilterToggleSelection({ title: d, value: f, selectedFilterMenuIndex: u, filterType: g, filterItemType: y, filterTitle: m, filterIndex: n, hasFilterMenu: s, filterSelected: b, isPlaceholderItem: A, filterId: a, filterPickerId: l, filterDisabled: p, filterDefaultSelected: F || !1, selectedFilterMenuSectionIndex: void 0, filterPickerData: void 0 });
|
|
19
|
+
}, this.applySecondaryFilterToggleSelection = (t) => {
|
|
20
|
+
this.setFilterPickerExpandedState(t?.filterId, { expanded: !1 }), this.applyNormalFiltersSelectedStateChange(t), this.onToggleActionBarNoneFilter && this.onToggleActionBarNoneFilter(t);
|
|
21
|
+
}, this.toggleDropdownFilter = ({ detail: t, filterId: l, pickerData: a }) => {
|
|
22
|
+
this.setFilterPickerExpandedState(l, t), this.onToggleActionBarDropdownFilter && this.onToggleActionBarDropdownFilter({ filterId: l, pickerData: a, ...t });
|
|
23
|
+
}, this.handleDropdownFilterMenuItemClick = ({ event: t, filterItemType: l, filterType: a, filterIndex: d, filterId: f, filterMenuSectionIndex: p }) => {
|
|
24
|
+
const u = t.detail, { id: g, defaultSelected: y, disabled: m, isPlaceholderItem: n, selectedIndex: b, title: F, value: s } = u;
|
|
25
|
+
this.applyDropdownFilterMenuItemSelection({ title: F, value: s, selectedFilterMenuIndex: b, filterType: a, filterItemType: l, filterTitle: F, filterIndex: d, hasFilterMenu: !0, filterSelected: !n, isPlaceholderItem: n, filterId: f, filterPickerId: g, filterDisabled: m, filterDefaultSelected: y || !1, selectedFilterMenuSectionIndex: p, filterPickerData: u });
|
|
26
|
+
}, this.applyDropdownFilterMenuItemSelection = (t) => {
|
|
27
|
+
this.applyDropdownFiltersSelectedStateChange(t), this.onDropdownSelectionActionBarFilterChange && this.onDropdownSelectionActionBarFilterChange(t);
|
|
28
|
+
}, this.applyDropdownFiltersSelectedStateChange = (t) => {
|
|
29
|
+
const l = this?.selectedFilters ? [...this.selectedFilters] : [];
|
|
30
|
+
if (l.length > 0) {
|
|
31
|
+
const a = l.findIndex(((d) => d.filterId === t?.filterId));
|
|
32
|
+
a != null && a !== -1 ? t?.isPlaceholderItem ? l.splice(a, 1) : l[a] = { ...t, filterPickerData: { ...t.filterPickerData } } : t?.isPlaceholderItem || l.push({ ...t, filterPickerData: { ...t.filterPickerData } });
|
|
33
|
+
} else t?.isPlaceholderItem || l.push({ ...t, filterPickerData: { ...t.filterPickerData } });
|
|
34
|
+
this.selectedFilters = l;
|
|
35
|
+
}, this.handleClearAllFiltersClick = (t) => {
|
|
36
|
+
this.selectedFilters = [], this.onClearAllFiltersButton && this.onClearAllFiltersButton(t);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
handleFilterSizeChange(e) {
|
|
40
|
+
this.filterSize = e;
|
|
41
|
+
}
|
|
42
|
+
handleDropdownDividerVisibilityChange(e) {
|
|
43
|
+
this.dropdownDividerVisible = e;
|
|
44
|
+
}
|
|
45
|
+
handlePrimaryFiltersChange(e) {
|
|
46
|
+
this.primaryFilters = e;
|
|
47
|
+
}
|
|
48
|
+
handleSecondaryFiltersChange(e) {
|
|
49
|
+
this.secondaryFilters = e;
|
|
50
|
+
}
|
|
51
|
+
handleAllFiltersDataChange(e) {
|
|
52
|
+
this.allFiltersData = e;
|
|
53
|
+
}
|
|
54
|
+
handleMoreFiltersValueChange(e) {
|
|
55
|
+
this.moreFiltersData = e;
|
|
56
|
+
}
|
|
57
|
+
handleDisabilityChange(e) {
|
|
58
|
+
this.disabled = e;
|
|
59
|
+
}
|
|
60
|
+
handleActionGroupChange(e) {
|
|
61
|
+
this.actionGroup = e;
|
|
62
|
+
}
|
|
63
|
+
handleClearAllFiltersButtonAppearanceChange(e) {
|
|
64
|
+
this.clearAllFiltersButtonAppearance = e;
|
|
65
|
+
}
|
|
66
|
+
connectedCallback() {
|
|
67
|
+
this.createAllFiltersData();
|
|
68
|
+
}
|
|
69
|
+
applyAllToggleSelection(e) {
|
|
70
|
+
this.setFilterPickerExpandedState(e?.filterId, { expanded: !1 }), this.applyNormalFiltersSelectedStateChange(e), this.onToggleActionBarAllFilter && this.onToggleActionBarAllFilter(e);
|
|
71
|
+
}
|
|
72
|
+
applyNormalFiltersSelectedStateChange(e) {
|
|
73
|
+
const t = this?.selectedFilters ? [...this.selectedFilters] : [];
|
|
74
|
+
if (t && t.length > 0) {
|
|
75
|
+
const l = t.findIndex(((a) => a.filterId === e?.filterId));
|
|
76
|
+
l != null && l !== -1 ? t.splice(l, 1) : e?.filterSelected && t.push({ ...e });
|
|
77
|
+
} else e?.filterSelected && t.push({ ...e });
|
|
78
|
+
this.selectedFilters = t;
|
|
79
|
+
}
|
|
80
|
+
isMoreFilterVisible() {
|
|
81
|
+
const e = this.moreFiltersData;
|
|
82
|
+
return !!(this.moreFiltersTabVisible && e && Object.keys(e).length > 0 && e?.filterPickerData && e.filterPickerData.length > 0);
|
|
83
|
+
}
|
|
84
|
+
isAllFilterVisible() {
|
|
85
|
+
return !!this.allFiltersTabVisible;
|
|
86
|
+
}
|
|
87
|
+
isAllFiltersTabDisabled() {
|
|
88
|
+
const e = this?.allFiltersData?.disabled;
|
|
89
|
+
return !(!this.disabled && !e);
|
|
90
|
+
}
|
|
91
|
+
isMoreFiltersTabDisabled() {
|
|
92
|
+
const e = this?.moreFiltersData?.disabled;
|
|
93
|
+
return !(!this.disabled && !e);
|
|
94
|
+
}
|
|
95
|
+
isActionGroup() {
|
|
96
|
+
const e = this.isMoreFilterVisible(), t = this?.secondaryFilters && this.secondaryFilters.length > 0, l = this?.actionGroup;
|
|
97
|
+
return !(!e && !t || !l);
|
|
98
|
+
}
|
|
99
|
+
createAllFiltersData() {
|
|
100
|
+
const e = this.allFiltersData;
|
|
101
|
+
e?.label && e.label !== "" || (this.allFiltersData = { ...this.allFiltersData, label: "All" });
|
|
102
|
+
}
|
|
103
|
+
getAllFiltersValue() {
|
|
104
|
+
return this.allFiltersData?.label ?? "All";
|
|
105
|
+
}
|
|
106
|
+
getSelectedFilter(e) {
|
|
107
|
+
return (this?.selectedFilters ?? []).find(((t) => t.filterId === e));
|
|
108
|
+
}
|
|
109
|
+
getSelectedDropdownFilterTitle(e) {
|
|
110
|
+
const t = this.getSelectedFilter(e);
|
|
111
|
+
if (t?.filterTitle) return t.filterTitle;
|
|
112
|
+
const l = (this?.primaryFilters ?? []).find(((p) => p?.filterId === e)), a = l?.filterPickerData ?? [], d = a?.[0]?.items?.[0];
|
|
113
|
+
let f = "";
|
|
114
|
+
return d?.isPlaceholderItem && d?.title && (f = d.title), f;
|
|
115
|
+
}
|
|
116
|
+
isNormalFilterSelected(e) {
|
|
117
|
+
return !!this.getSelectedFilter(e);
|
|
118
|
+
}
|
|
119
|
+
isDropdownFilterSelected(e) {
|
|
120
|
+
const t = this.getSelectedFilter(e), l = t?.filterPickerData;
|
|
121
|
+
return !(!l?.title && !l?.value || l?.isPlaceholderItem);
|
|
122
|
+
}
|
|
123
|
+
getSelectedFilterPickerData(e) {
|
|
124
|
+
return this.getSelectedFilter(e)?.filterPickerData;
|
|
125
|
+
}
|
|
126
|
+
setFilterPickerExpandedState(e, t) {
|
|
127
|
+
this.activeExpandedFilterId = t?.expanded ? e : void 0;
|
|
128
|
+
}
|
|
129
|
+
render() {
|
|
130
|
+
const e = Y(), t = this?.primaryFilters ?? [], l = this?.secondaryFilters ?? [], a = this.isMoreFilterVisible(), d = this.moreFiltersData, f = d?.filterPickerData ?? [], p = { disabled: this?.moreFiltersData?.disabled, filterDefaultSelected: this?.moreFiltersData?.filterDefaultSelected, loading: this?.moreFiltersData?.loading }, u = this.isAllFilterVisible(), g = this.getAllFiltersValue(), y = { defaultSelected: this?.allFiltersData?.defaultSelected, disabled: this?.allFiltersData?.disabled, loading: this?.allFiltersData?.loading }, m = this.dropdownDividerVisible, n = this.filterSize, b = this.isActionGroup(), F = this?.allFiltersData?.filterId && this.allFiltersData.filterId !== "" ? this.allFiltersData.filterId : `1_${g}_primary`, s = this?.moreFiltersData?.filterId && this.moreFiltersData.filterId !== "" ? this.moreFiltersData.filterId : l.length + 1 + "_more_secondary", A = "secondary", w = "more", M = l.length + 1, L = this.getSelectedDropdownFilterTitle(s);
|
|
131
|
+
return r("div", { key: "5488b75338374739aad8fbca04538fb7eb195cb8", class: e }, r("div", { key: "e91a050f2b0e0b6c43b2d9c3d5739690535df94b", class: "gids-action-bar__primary-filters" }, r(V, { key: "e90539d289a5ef842d17a31fef13d5efb71e1503", layout: "wrap" }, u ? r("gids-filter", { type: "all", filterId: F, filterIndex: 0, filterItemType: "primary", filterSelected: this.isNormalFilterSelected(F), value: g, ...y, disabled: this.isAllFiltersTabDisabled(), size: n, onFilterMenuItemChange: this.handleAllFilterClick }) : void 0, t.map(((i, o) => {
|
|
132
|
+
const S = i?.filterPickerData ?? [], c = i?.filterId && i.filterId !== "" ? i.filterId : o + 1 + "_primary", h = "primary", C = "none", T = this.getSelectedDropdownFilterTitle(c);
|
|
133
|
+
return r("gids-filter", { key: `${c}_${T}`, ...i, filterIndex: o + 1, filterId: c, disabled: i?.disabled || this.disabled, filterDefaultSelected: i?.filterDefaultSelected, filterSelected: this.isDropdownFilterSelected(c), type: C, filterItemType: h, title: T, value: T, size: n, expanded: this.activeExpandedFilterId === c, onToggle: (I) => this.toggleDropdownFilter({ detail: I, filterId: c, pickerData: S }) }, r(_, { type: "default" }, S.map(((I, k) => {
|
|
134
|
+
const x = I?.sectionLabel;
|
|
135
|
+
return r(z, { sectionLabel: x, key: "" + k }, (I?.items ?? []).map(((D, B) => {
|
|
136
|
+
const O = D?.isPlaceholderItem ?? !1, P = D?.id && D.id !== "" ? D.id : `${c}_s${k}_i${B}`, q = this.getSelectedFilterPickerData(c);
|
|
137
|
+
return r($, { key: P, id: P, index: B, title: D?.title, value: D?.value, disabled: D?.disabled, defaultSelected: D?.defaultSelected, isPlaceholderItem: O, selected: q?.id === P, divider: m, onPressDropdownItem: (H) => this.handleDropdownFilterMenuItemClick({ event: H, filterItemType: h, filterType: C, filterIndex: o, filterId: c, filterMenuSectionIndex: k }) });
|
|
138
|
+
})));
|
|
139
|
+
}))));
|
|
140
|
+
})), this.clearAllFiltersVisible && !b ? r(E, { size: this.filterSize, appearance: this.clearAllFiltersButtonAppearance, leadingIcon: r(G, { name: "cross", size: this.filterSize, slot: "leadingIcon" }), onClick: this.handleClearAllFiltersClick }) : void 0)), b ? r("div", { class: "gids-action-bar__secondary-filters" }, r(V, { layout: "wrap" }, l.map(((i, o) => {
|
|
141
|
+
const S = i?.filterId && i.filterId !== "" ? i.filterId : `${o + 1}_${i?.label}_secondary`;
|
|
142
|
+
return r("gids-filter", { key: "" + (t.length + o + 1), ...i, filterIndex: o, filterId: S, disabled: i?.disabled || this.disabled, filterDefaultSelected: i?.defaultSelected, type: "none", filterItemType: "secondary", value: i?.label, size: n, filterSelected: this.isNormalFilterSelected(S), onFilterMenuItemChange: this.handleSecondaryFilterClick });
|
|
143
|
+
})), a ? r("gids-filter", { key: `${s}_${L}`, type: w, filterItemType: A, filterIndex: M, filterId: s, ...p, disabled: this.isMoreFiltersTabDisabled(), filterSelected: this.isDropdownFilterSelected(s), size: n, expanded: this.activeExpandedFilterId === s }, r(_, { type: "default" }, f.map(((i, o) => {
|
|
144
|
+
const S = i?.items ?? [], c = i?.sectionLabel;
|
|
145
|
+
return r(z, { sectionLabel: c, key: "" + o }, S.map(((h, C) => {
|
|
146
|
+
const T = h?.isPlaceholderItem ?? !1, I = h?.id && h.id !== "" ? h.id : `${s}_s${o}_i${C}`, k = this.getSelectedFilterPickerData(s);
|
|
147
|
+
return r($, { key: I, id: I, index: C, title: h?.title, value: h?.value, disabled: h?.disabled, isPlaceholderItem: T, selected: k?.id === I, defaultSelected: h?.defaultSelected, divider: m, onPressDropdownItem: (x) => this.handleDropdownFilterMenuItemClick({ event: x, filterItemType: A, filterType: w, filterIndex: M, filterId: s, filterMenuSectionIndex: o }) });
|
|
148
|
+
})));
|
|
149
|
+
})))) : void 0, this.clearAllFiltersVisible ? r(E, { size: this.filterSize, appearance: this.clearAllFiltersButtonAppearance, leadingIcon: r(G, { name: "cross", size: this.filterSize, slot: "leadingIcon" }), onClick: this.handleClearAllFiltersClick }) : void 0)) : void 0);
|
|
150
|
+
}
|
|
151
|
+
static get watchers() {
|
|
152
|
+
return { filterSize: [{ handleFilterSizeChange: 0 }], dropdownDividerVisible: [{ handleDropdownDividerVisibilityChange: 0 }], primaryFilters: [{ handlePrimaryFiltersChange: 0 }], secondaryFilters: [{ handleSecondaryFiltersChange: 0 }], allFiltersData: [{ handleAllFiltersDataChange: 0 }], moreFiltersData: [{ handleMoreFiltersValueChange: 0 }], disabled: [{ handleDisabilityChange: 0 }], actionGroup: [{ handleActionGroupChange: 0 }], clearAllFiltersButtonAppearance: [{ handleClearAllFiltersButtonAppearanceChange: 0 }] };
|
|
153
|
+
}
|
|
154
|
+
static get style() {
|
|
155
|
+
return ".gids-action-bar{display:flex;align-items:flex-start;justify-content:space-between;width:100%;gap:var(--gids-gap-600);align-self:stretch}.gids-action-bar__primary-filters{display:flex;align-items:center;justify-content:flex-start;flex:1 0 0}.gids-action-bar__secondary-filters{display:flex;align-items:center;justify-content:flex-end}";
|
|
156
|
+
}
|
|
157
|
+
}, [0, "gids-action-bar", { actionGroup: [4, "action-group"], allFiltersTabVisible: [4, "all-filters-tab-visible"], moreFiltersTabVisible: [4, "more-filters-tab-visible"], clearAllFiltersVisible: [4, "clear-all-filters-visible"], clearAllFiltersButtonAppearance: [1, "clear-all-filters-button-appearance"], primaryFilters: [16], secondaryFilters: [16], allFiltersData: [16], moreFiltersData: [16], filterSize: [1, "filter-size"], dropdownDividerVisible: [4, "dropdown-divider-visible"], disabled: [4], onToggleActionBarAllFilter: [16], onToggleActionBarDropdownFilter: [16], onToggleActionBarMoreFilter: [16], onToggleActionBarNoneFilter: [16], onDropdownSelectionActionBarFilterChange: [16], onMoreSelectionActionBarFilterChange: [16], onClearAllFiltersButton: [16], selectedFilters: [32], activeExpandedFilterId: [32] }, void 0, { filterSize: [{ handleFilterSizeChange: 0 }], dropdownDividerVisible: [{ handleDropdownDividerVisibilityChange: 0 }], primaryFilters: [{ handlePrimaryFiltersChange: 0 }], secondaryFilters: [{ handleSecondaryFiltersChange: 0 }], allFiltersData: [{ handleAllFiltersDataChange: 0 }], moreFiltersData: [{ handleMoreFiltersValueChange: 0 }], disabled: [{ handleDisabilityChange: 0 }], actionGroup: [{ handleActionGroupChange: 0 }], clearAllFiltersButtonAppearance: [{ handleClearAllFiltersButtonAppearanceChange: 0 }] }]);
|
|
158
|
+
function j() {
|
|
159
|
+
typeof customElements < "u" && ["gids-action-bar", "gids-filter", "gids-toggle-button"].forEach(((e) => {
|
|
160
|
+
switch (e) {
|
|
161
|
+
case "gids-action-bar":
|
|
162
|
+
customElements.get(v(e)) || customElements.define(v(e), N);
|
|
163
|
+
break;
|
|
164
|
+
case "gids-filter":
|
|
165
|
+
customElements.get(v(e)) || Q();
|
|
166
|
+
break;
|
|
167
|
+
case "gids-toggle-button":
|
|
168
|
+
customElements.get(v(e)) || R();
|
|
169
|
+
}
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
j();
|
|
173
|
+
const se = N, de = j;
|
|
174
|
+
export {
|
|
175
|
+
se as GidsActionBar,
|
|
176
|
+
de as defineCustomElement
|
|
177
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as e, g as a } from "./p-
|
|
2
|
-
const
|
|
1
|
+
import { u as e, g as a } from "./p-BpQB6ncp-C2AWddf-.js";
|
|
2
|
+
const s = e, n = a;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsCalendarHeaderPanel,
|
|
5
|
+
n as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as e, u as
|
|
2
|
-
const
|
|
1
|
+
import { l as e, u as t } from "./p-CW7tw1Fb-DtJ5TwCU.js";
|
|
2
|
+
const a = e, o = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
a as GidsCalendarYearList,
|
|
5
|
+
o as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { u as Y } from "./p-
|
|
5
|
-
import { g as k } from "./p-
|
|
6
|
-
import {
|
|
7
|
-
import { d as x } from "./p-
|
|
8
|
-
import { c as
|
|
9
|
-
const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) =>
|
|
1
|
+
import { L as P, u as D, D as d, q as c } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { r as S, g as M } from "./p-BpQB6ncp-C2AWddf-.js";
|
|
3
|
+
import { c as N } from "./p-V48JyMbP-Bx-0od-Z.js";
|
|
4
|
+
import { u as Y } from "./p-CW7tw1Fb-DtJ5TwCU.js";
|
|
5
|
+
import { g as k } from "./p-BZCJlqVe-BcSwze-q.js";
|
|
6
|
+
import { h as w } from "./p-JjN8U9B5-GeWjfJBY.js";
|
|
7
|
+
import { d as x } from "./p-Db62Pz3n-DpQjwBYb.js";
|
|
8
|
+
import { c as f } from "./clsx-OuTLNxxd.js";
|
|
9
|
+
const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => f("gids-calendar-cell", {
|
|
10
10
|
"gids-calendar-cell--selected": t && !e && !a,
|
|
11
11
|
"gids-calendar-cell--today": a && !e && !r,
|
|
12
12
|
"gids-calendar-cell--label-non-effective": n === "non-effective",
|
|
@@ -22,10 +22,10 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => b(
|
|
|
22
22
|
}, l), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
23
|
__proto__: null,
|
|
24
24
|
getGidsCalendarCellClassNames: _
|
|
25
|
-
}, Symbol.toStringTag, { value: "Module" })), A = (e) =>
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), A = (e) => f("gids-calendar-day-cell", e), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
26
|
__proto__: null,
|
|
27
27
|
getGidsCalendarDayCellClassNames: A
|
|
28
|
-
}, Symbol.toStringTag, { value: "Module" })), $ = ({ width: e }, t) =>
|
|
28
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = ({ width: e }, t) => f("gids-calendar", {
|
|
29
29
|
"gids-calendar--width-fixed": e === "fixed",
|
|
30
30
|
"gids-calendar--width-intrinsic": e === "intrinsic"
|
|
31
31
|
}, t), T = ({ currentMonth: e, currentYear: t }) => {
|
|
@@ -33,12 +33,12 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => b(
|
|
|
33
33
|
return [];
|
|
34
34
|
const a = t, n = e - 1, r = new Date(a, n, 1).getDay(), l = new Date(a, n + 1, 0).getDate(), g = new Date(a, n, 0).getDate(), o = [], h = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
35
35
|
for (let s = r - 1; s >= 0; s--) {
|
|
36
|
-
const i = g - s, u = n === 0 ? 12 : n,
|
|
36
|
+
const i = g - s, u = n === 0 ? 12 : n, b = `${n === 0 ? a - 1 : a}-${String(u).padStart(2, "0")}-${String(i).padStart(2, "0")}`;
|
|
37
37
|
o.push({
|
|
38
38
|
day: i,
|
|
39
39
|
isCurrentMonth: !1,
|
|
40
|
-
dateString:
|
|
41
|
-
isToday: h ===
|
|
40
|
+
dateString: b,
|
|
41
|
+
isToday: h === b
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
for (let s = 1; s <= l; s++) {
|
|
@@ -61,14 +61,14 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => b(
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
return o;
|
|
64
|
-
}, H = () => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
64
|
+
}, H = () => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
65
|
__proto__: null,
|
|
66
66
|
generateCalendarDays: T,
|
|
67
67
|
generateCalendarWeekdays: H,
|
|
68
68
|
getGidsCalendarClassNames: $
|
|
69
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarCellClassNames:
|
|
69
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsCalendarCellClassNames: V } = E, C = ({ label: e, dot: t, disabled: a, selected: n, today: r, onPressCalendarCell: l, class: g, role: o = "gridcell", cellType: h = "effective", ...m }) => {
|
|
70
70
|
const s = !a && h === "effective";
|
|
71
|
-
return d("button", { class:
|
|
71
|
+
return d("button", { class: V({ disabled: a, selected: n, today: r, cellType: h, dot: t }, g), type: "button", role: o, "aria-selected": n ? "true" : "false", disabled: a, onClick: (i) => {
|
|
72
72
|
if (i.defaultPrevented || a || !s) return;
|
|
73
73
|
const u = new CustomEvent("onPressCalendarCell", { bubbles: !0, composed: !0, detail: { cellValue: e, selected: n, disabled: a, dot: t, today: r } });
|
|
74
74
|
l && l(u);
|
|
@@ -76,7 +76,7 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => b(
|
|
|
76
76
|
let i = "subtle";
|
|
77
77
|
return n && !a && (i = "static-inverse"), i;
|
|
78
78
|
})(), disabled: a, size: "xs" }) : null);
|
|
79
|
-
}, { getGidsCalendarDayCellClassNames:
|
|
79
|
+
}, { getGidsCalendarDayCellClassNames: j } = O, G = ({ id: e, label: t, class: a, ...n }) => d(C, { ...n, id: e, label: t, name: t, dot: !1, disabled: !1, selected: !1, today: !1, cellType: "non-effective", class: j(a) }), { getGidsCalendarClassNames: z, generateCalendarDays: I, generateCalendarWeekdays: W } = L, { getCalendarMonthNameViaMonthNumber: q } = S, v = P(class extends D {
|
|
80
80
|
constructor(e) {
|
|
81
81
|
super(), e !== !1 && this.__registerHost(), this.width = "intrinsic", this.panelActionsAppearance = "primary", this.dotVisibleDates = [], this.monthPickerDisabled = !1, this.yearPickerDisabled = !1, this.previousDisabled = !1, this.nextDisabled = !1, this.panelDisabled = !1, this.currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1, this.currentYear = (/* @__PURE__ */ new Date()).getFullYear(), this.handleCHPOnPreviousActionEvent = (t) => {
|
|
82
82
|
t && (this.setLocalStates({ monthNumber: t.monthNumber, year: t.year }), this.onPreviousChange && this.onPreviousChange(t));
|
|
@@ -102,12 +102,12 @@ const _ = ({ disabled: e, selected: t, today: a, cellType: n, dot: r }, l) => b(
|
|
|
102
102
|
}
|
|
103
103
|
handleDateCellClick({ event: e, dateStr: t, isCurrentMonth: a }) {
|
|
104
104
|
if (e?.detail?.disabled) return;
|
|
105
|
-
const r = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], l =
|
|
105
|
+
const r = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], l = q(this.currentMonth);
|
|
106
106
|
this.onSelectionCalendarCell && this.onSelectionCalendarCell({ currentActivePanelState: { monthNumber: this.currentMonth, year: this.currentYear, month: l, panelValue: `${l} ${this.currentYear}` }, date: t, isCurrentMonth: a, selected: !0, today: r === t, dotVisibleDates: this.dotVisibleDates ?? [] });
|
|
107
107
|
}
|
|
108
108
|
render() {
|
|
109
|
-
const e = I({ currentYear: this.currentYear, currentMonth: this.currentMonth }), t = W(), a =
|
|
110
|
-
return d("div", { key: "
|
|
109
|
+
const e = I({ currentYear: this.currentYear, currentMonth: this.currentMonth }), t = W(), a = z({ width: this.width });
|
|
110
|
+
return d("div", { key: "c2ea7d80305333995ae64525aa8aea441ee608e2", class: a }, d("gids-calendar-header-panel", { key: "5331e43e9e2c91767b94100ce6cea5cf0e9f1afe", appearance: this.panelActionsAppearance, startYear: this.startYear, endYear: this.endYear, monthPickerDisabled: this.monthPickerDisabled, yearPickerDisabled: this.yearPickerDisabled, previousDisabled: this.previousDisabled, nextDisabled: this.nextDisabled, panelDisabled: this.panelDisabled, selectedMonthNumber: this.currentMonth, selectedYear: this.currentYear, onPanelMonthChange: this.handleCHPOnPanelMonthChangeEvent, onPanelYearChange: this.handleCHPOnPanelYearChangeEvent, onNextChange: this.handleCHPOnNextActionEvent, onPreviousChange: this.handleCHPOnPreviousActionEvent }), d("div", { key: "59e02ed20a285cd6d8f28132ec56f96548ef4bcc", class: "gids-calendar__weekdays-grid" }, t.map(((n) => d(G, { label: n })))), d("div", { key: "d6cba0bf0a15a393ffb56865fd9f57af5f6086ca", class: "gids-calendar__days-grid" }, e.map(((n) => {
|
|
111
111
|
const r = this.selectedDate === n.dateString, l = this.dotVisibleDates?.includes(n.dateString);
|
|
112
112
|
return d(C, { label: n.day + "", today: n.isToday, selected: r, dot: l, cellType: "effective", disabled: !n.isCurrentMonth, onPressCalendarCell: (g) => this.handleDateCellClick({ event: g, dateStr: n.dateString, isCurrentMonth: n.isCurrentMonth }) });
|
|
113
113
|
}))));
|
|
@@ -126,7 +126,7 @@ function y() {
|
|
|
126
126
|
customElements.get(c(e)) || customElements.define(c(e), v);
|
|
127
127
|
break;
|
|
128
128
|
case "gids-calendar-header-panel":
|
|
129
|
-
customElements.get(c(e)) ||
|
|
129
|
+
customElements.get(c(e)) || M();
|
|
130
130
|
break;
|
|
131
131
|
case "gids-calendar-month-list":
|
|
132
132
|
customElements.get(c(e)) || N();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { l as e, d as t } from "./p-mZJdpfOo-DicbKil0.js";
|
|
2
|
+
const s = e, o = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsChartLegendItem,
|
|
5
|
+
o as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e,
|
|
2
|
-
const
|
|
1
|
+
import { r as e, o as r } from "./p-DoCwI_bx-BXHlZI7-.js";
|
|
2
|
+
const s = e, t = r;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsChartLegend,
|
|
5
|
+
t as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as o, c as y, b
|
|
3
|
-
import { d as v } from "./p-
|
|
4
|
-
import { g as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { h as
|
|
8
|
-
import { g as
|
|
9
|
-
import { c as E } from "./p-
|
|
10
|
-
import { d as D } from "./p-
|
|
1
|
+
import { L as u, u as m, D as a, q as n } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { r as o, c as y, b, a as T, C } from "./p-CaauwQNd-D6_PbcRr.js";
|
|
3
|
+
import { d as v } from "./p-DfxTsSdZ-C2Afv1lS.js";
|
|
4
|
+
import { g as f } from "./p-CP1wz2PI-DhVAsHFS.js";
|
|
5
|
+
import { o as k } from "./p-DoCwI_bx-BXHlZI7-.js";
|
|
6
|
+
import { d as _ } from "./p-mZJdpfOo-DicbKil0.js";
|
|
7
|
+
import { h as A } from "./p-Degg_WJz-BLua06el.js";
|
|
8
|
+
import { g as P } from "./p-CQH7eAs3-BVowyVGn.js";
|
|
9
|
+
import { c as E } from "./p-DPIK2ayL-DPEbctqo.js";
|
|
10
|
+
import { d as D } from "./p-CoS0NuDU-CqmDcRWj.js";
|
|
11
11
|
import { c as x } from "./clsx-OuTLNxxd.js";
|
|
12
12
|
const G = (r) => x("gids-chart", r), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
13
|
__proto__: null,
|
|
14
14
|
getGidsChartClassNames: G
|
|
15
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartClassNames:
|
|
15
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsChartClassNames: L } = I, c = u(class extends m {
|
|
16
16
|
constructor(r) {
|
|
17
17
|
super(), r !== !1 && this.__registerHost(), this.breakpoint = "desktop", this.chartType = "line-chart", this.getChartTypes = () => ["line-chart", "bar-chart", "pie-chart", "activity-gauge", "level-gauge", "progress-circle", "radar-chart"], this.isChartTypeValid = () => {
|
|
18
18
|
const i = this.getChartTypes(), e = this.chartType;
|
|
@@ -55,10 +55,10 @@ const G = (r) => x("gids-chart", r), I = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
55
55
|
this.chartType = r;
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
if (!this.isChartTypeValid()) return a("div", { class: "gids-chart__no-data" }, a(o, { title: y, supportingText:
|
|
58
|
+
if (!this.isChartTypeValid()) return a("div", { class: "gids-chart__no-data" }, a(o, { title: y, supportingText: b(this.getChartTypes().join(", ")) }));
|
|
59
59
|
const r = this.isChartDataValid(), i = this.getChartTypeText();
|
|
60
|
-
if (!r) return a("div", { class: "gids-activity-gauge__no-data" }, a(o, { title:
|
|
61
|
-
const e =
|
|
60
|
+
if (!r) return a("div", { class: "gids-activity-gauge__no-data" }, a(o, { title: T, supportingText: C(i) }));
|
|
61
|
+
const e = L(), t = this.chartType, s = this.barChartProps, h = this.pieChartProps, l = this.activityGaugeProps, d = this.levelGaugeProps, p = this.progressCircleProps;
|
|
62
62
|
return a("div", { class: e }, t === "line-chart" ? a("gids-line-chart", { ...this.lineChartProps, breakpoint: this.breakpoint }) : null, t === "bar-chart" ? a("gids-bar-chart", { ...s, breakpoint: this.breakpoint }) : null, t === "pie-chart" ? a("gids-pie-chart", { ...h, breakpoint: this.breakpoint }) : null, t === "activity-gauge" ? a("gids-activity-gauge", { ...l, breakpoint: this.breakpoint }) : null, t === "level-gauge" ? a("gids-level-gauge", { ...d, breakpoint: this.breakpoint }) : null, t === "progress-circle" ? a("gids-progress-circle", { ...p, breakpoint: this.breakpoint }) : null, t === "radar-chart" ? a("div", { class: "gids-chart__no-data" }, a(o, { title: "Coming Soon!", supportingText: "Radar chart is under progress. This will be available in next major version of GIDS." })) : null);
|
|
63
63
|
}
|
|
64
64
|
static get watchers() {
|
|
@@ -78,19 +78,19 @@ function g() {
|
|
|
78
78
|
customElements.get(n(r)) || v();
|
|
79
79
|
break;
|
|
80
80
|
case "gids-bar-chart":
|
|
81
|
-
customElements.get(n(r)) ||
|
|
81
|
+
customElements.get(n(r)) || f();
|
|
82
82
|
break;
|
|
83
83
|
case "gids-chart-legend":
|
|
84
|
-
customElements.get(n(r)) ||
|
|
84
|
+
customElements.get(n(r)) || k();
|
|
85
85
|
break;
|
|
86
86
|
case "gids-chart-legend-item":
|
|
87
|
-
customElements.get(n(r)) ||
|
|
87
|
+
customElements.get(n(r)) || _();
|
|
88
88
|
break;
|
|
89
89
|
case "gids-level-gauge":
|
|
90
|
-
customElements.get(n(r)) ||
|
|
90
|
+
customElements.get(n(r)) || A();
|
|
91
91
|
break;
|
|
92
92
|
case "gids-line-chart":
|
|
93
|
-
customElements.get(n(r)) ||
|
|
93
|
+
customElements.get(n(r)) || P();
|
|
94
94
|
break;
|
|
95
95
|
case "gids-pie-chart":
|
|
96
96
|
customElements.get(n(r)) || E();
|
|
@@ -101,8 +101,8 @@ function g() {
|
|
|
101
101
|
}));
|
|
102
102
|
}
|
|
103
103
|
g();
|
|
104
|
-
const
|
|
104
|
+
const q = c, z = g;
|
|
105
105
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
q as GidsChart,
|
|
107
|
+
z as defineCustomElement
|
|
108
108
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as r, u as d, z as l, D as s, q as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
2
|
import { i as c } from "./p-B2zUuNXz-BLBgQDu7.js";
|
|
3
|
-
import { d as h } from "./p-
|
|
3
|
+
import { d as h } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
4
4
|
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
const
|
|
5
|
+
const b = ({ size: e }, o) => g("gids-chevron-button", {
|
|
6
6
|
// 'gids-chevron-button--xs': size === 'xs', // By default xs
|
|
7
7
|
"gids-chevron-button--sm": e === "sm",
|
|
8
8
|
"gids-chevron-button--md": e === "md",
|
|
9
9
|
"gids-chevron-button--lg": e === "lg"
|
|
10
|
-
}, o),
|
|
10
|
+
}, o), u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
11
|
__proto__: null,
|
|
12
|
-
getGidsChevronButtonClassNames:
|
|
13
|
-
}, Symbol.toStringTag, { value: "Module" })), { getGidsChevronButtonClassNames: t } =
|
|
12
|
+
getGidsChevronButtonClassNames: b
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), { getGidsChevronButtonClassNames: t } = u, i = r(class extends d {
|
|
14
14
|
constructor(e) {
|
|
15
15
|
super(), e !== !1 && this.__registerHost(), this.__attachShadow(), this.gidsChevronButton = l(this, "gidsChevronButton"), this.activeClasses = "", this.size = "xs";
|
|
16
16
|
}
|
|
@@ -31,7 +31,7 @@ const u = ({ size: e }, o) => g("gids-chevron-button", {
|
|
|
31
31
|
this.activeClasses = t({ size: this.size }, this.extraClasses);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return s("button", { key: "
|
|
34
|
+
return s("button", { key: "dd10979a904980892fbb220bfe6da96375414eda", class: this.activeClasses, slot: "trailingAccessory", type: "button", onClick: (e) => this.gidsChevronButton.emit(e), "aria-label": this?.ariaLabel ?? "", "aria-expanded": this?.ariaExpanded ?? "", "aria-haspopup": this?.ariaHaspopup ?? "", "aria-controls": this?.ariaControls ?? "", disabled: this.disabled, tabIndex: -1 }, s("span", { key: "629b4c694e59bcd6c6c0d5ab86845dba8afb055b", class: "gids-button__content" }, s(h, { key: "770618c0d5e45311be0aa155813226b66bb14a77", name: "chevron-vertical", alt: "" })));
|
|
35
35
|
}
|
|
36
36
|
get _el() {
|
|
37
37
|
return this;
|
|
@@ -49,8 +49,8 @@ function n() {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
n();
|
|
52
|
-
const
|
|
52
|
+
const z = i, f = n;
|
|
53
53
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
z as GidsChevronButton,
|
|
55
|
+
f as defineCustomElement
|
|
56
56
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { l } from "./p-
|
|
4
|
-
import { h } from "./p-
|
|
5
|
-
import { r as u } from "./p-
|
|
6
|
-
import { g as c } from "./p-
|
|
7
|
-
const i = n(class extends
|
|
1
|
+
import { L as n, u as r, D as s, q as a } from "./p-Bf3p-DY2-CPqEc-vc.js";
|
|
2
|
+
import { a as d } from "./p-Dg2yoUxw-Cca8ROd_.js";
|
|
3
|
+
import { c as l } from "./p-Cn3-K5eR-tQ1EOnDF.js";
|
|
4
|
+
import { h } from "./p-DNTv2BQ5-Bwgd30mM.js";
|
|
5
|
+
import { r as u } from "./p-BQ-ZnlnH-CUVdDHzX.js";
|
|
6
|
+
import { g as c } from "./p-D4Pimu_8-DfEGRQGf.js";
|
|
7
|
+
const i = n(class extends r {
|
|
8
8
|
constructor(e) {
|
|
9
9
|
super(), e !== !1 && this.__registerHost(), this.internals = this.attachInternals(), this.appearance = "default", this.expanded = !1, this.#e = c(), this.handleSelectionChange = (t) => {
|
|
10
10
|
this.value = t.value, this.syncFormValue(t.value), this.onSelectionChange?.(t);
|
|
@@ -51,7 +51,7 @@ const i = n(class extends d {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const e = this.inputProps?.id ?? this.#e, t = { ...this.inputProps, id: e, placeholder: this.inputProps?.placeholder ?? "Please select an option" };
|
|
54
|
-
return s("gids-field", { key: "
|
|
54
|
+
return s("gids-field", { key: "e6a0a13ea0e4af7eed1fe4fdf4a75a0cc2e25781", disabled: this.disabled, helperText: this.helperText, statusText: this.statusText, status: this.status }, this.label !== void 0 ? s(d, { slot: "label", disabled: this.disabled, htmlFor: e, fieldRequirement: this.required ? "required" : void 0 }, this.label) : null, s("gids-dropdown", { key: "8bc3cc97ae4c0aca628ec4b23886084e1e640235", appearance: this.appearance, expanded: this.expanded, inputProps: t, disabled: this.disabled, readOnly: this.readOnly, loading: this.loading, value: this.value, name: this.name, onSelectionChange: this.handleSelectionChange, onFocus: this.handleDropdownFocusAndBlur, onBlur: this.handleDropdownFocusAndBlur, required: this.required }, s("slot", { key: "fc99a57e26453a285f0f0b9f229b6cd51807308d", name: "leadingIconDropdown" }), s("slot", { key: "97ef4d59ff8b845879ac34f3b32e47f8e8174fd2", name: "leadingAccessoryDropdown" }), s("slot", { key: "0b61c948bf3e1419e4db201fb3b659666e112fbf" })));
|
|
55
55
|
}
|
|
56
56
|
static get formAssociated() {
|
|
57
57
|
return !0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { l as o, c as e } from "./p-Cn3-K5eR-tQ1EOnDF.js";
|
|
2
|
+
const s = o, t = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
s as GidsDropdown,
|
|
5
|
+
t as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { c as o, d as e } from "./p-Db62Pz3n-DpQjwBYb.js";
|
|
2
|
+
const t = o, m = e;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
t as GidsIcon,
|
|
5
|
+
m as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as e, h as
|
|
2
|
-
const
|
|
1
|
+
import { d as e, h as o } from "./p-Degg_WJz-BLua06el.js";
|
|
2
|
+
const t = e, m = o;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
t as GidsLevelGauge,
|
|
5
|
+
m as defineCustomElement
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
const
|
|
1
|
+
import { d as e, g as t } from "./p-CQH7eAs3-BVowyVGn.js";
|
|
2
|
+
const r = e, s = t;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
r as GidsLineChart,
|
|
5
|
+
s as defineCustomElement
|
|
6
6
|
};
|