@ganpatiinfo/gids-web-dom-reference 8.0.0 → 9.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/CHANGELOG.md +71 -0
- package/dist/components/GidsActionBar/GidsActionBar.d.ts +8 -0
- package/dist/components/GidsActionBar/GidsActionBar.d.ts.map +1 -0
- package/dist/components/GidsActionBar/GidsActionBar.js +29 -0
- package/dist/components/GidsActionBar/GidsActionBar.js.map +1 -0
- package/dist/components/GidsActivityGauge/GidsActivityGauge.d.ts +8 -0
- package/dist/components/GidsActivityGauge/GidsActivityGauge.d.ts.map +1 -0
- package/dist/components/GidsActivityGauge/GidsActivityGauge.js +17 -0
- package/dist/components/GidsActivityGauge/GidsActivityGauge.js.map +1 -0
- package/dist/components/GidsBarChart/GidsBarChart.d.ts +6 -0
- package/dist/components/GidsBarChart/GidsBarChart.d.ts.map +1 -0
- package/dist/components/GidsBarChart/GidsBarChart.js +19 -0
- package/dist/components/GidsBarChart/GidsBarChart.js.map +1 -0
- package/dist/components/GidsCalendar/GidsCalendar.d.ts +6 -0
- package/dist/components/GidsCalendar/GidsCalendar.d.ts.map +1 -0
- package/dist/components/GidsCalendar/GidsCalendar.js +36 -0
- package/dist/components/GidsCalendar/GidsCalendar.js.map +1 -0
- package/dist/components/GidsCalendarCell/GidsCalendarCell.d.ts +8 -0
- package/dist/components/GidsCalendarCell/GidsCalendarCell.d.ts.map +1 -0
- package/dist/components/GidsCalendarCell/GidsCalendarCell.js +55 -0
- package/dist/components/GidsCalendarCell/GidsCalendarCell.js.map +1 -0
- package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +6 -0
- package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.d.ts.map +1 -0
- package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.js +17 -0
- package/dist/components/GidsCalendarDayCell/GidsCalendarDayCell.js.map +1 -0
- package/dist/components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +13 -0
- package/dist/components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts.map +1 -0
- package/dist/components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.js +45 -0
- package/dist/components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.js.map +1 -0
- package/dist/components/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +6 -0
- package/dist/components/GidsCalendarMonthList/GidsCalendarMonthList.d.ts.map +1 -0
- package/dist/components/GidsCalendarMonthList/GidsCalendarMonthList.js +19 -0
- package/dist/components/GidsCalendarMonthList/GidsCalendarMonthList.js.map +1 -0
- package/dist/components/GidsCalendarYearList/GidsCalendarYearList.d.ts +6 -0
- package/dist/components/GidsCalendarYearList/GidsCalendarYearList.d.ts.map +1 -0
- package/dist/components/GidsCalendarYearList/GidsCalendarYearList.js +34 -0
- package/dist/components/GidsCalendarYearList/GidsCalendarYearList.js.map +1 -0
- package/dist/components/GidsChart/GidsChart.d.ts +8 -0
- package/dist/components/GidsChart/GidsChart.d.ts.map +1 -0
- package/dist/components/GidsChart/GidsChart.js +16 -0
- package/dist/components/GidsChart/GidsChart.js.map +1 -0
- package/dist/components/GidsChartLegend/GidsChartLegend.d.ts +8 -0
- package/dist/components/GidsChartLegend/GidsChartLegend.d.ts.map +1 -0
- package/dist/components/GidsChartLegend/GidsChartLegend.js +13 -0
- package/dist/components/GidsChartLegend/GidsChartLegend.js.map +1 -0
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.d.ts +8 -0
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.d.ts.map +1 -0
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.js +14 -0
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.js.map +1 -0
- package/dist/components/GidsChevronButton/GidsChevronButton.d.ts +7 -0
- package/dist/components/GidsChevronButton/GidsChevronButton.d.ts.map +1 -0
- package/dist/components/GidsChevronButton/GidsChevronButton.js +18 -0
- package/dist/components/GidsChevronButton/GidsChevronButton.js.map +1 -0
- package/dist/components/GidsDot/GidsDot.d.ts +6 -0
- package/dist/components/GidsDot/GidsDot.d.ts.map +1 -0
- package/dist/components/GidsDot/GidsDot.js +19 -0
- package/dist/components/GidsDot/GidsDot.js.map +1 -0
- package/dist/components/GidsDropdown/GidsDropdown.d.ts +15 -0
- package/dist/components/GidsDropdown/GidsDropdown.d.ts.map +1 -0
- package/dist/components/GidsDropdown/GidsDropdown.js +62 -0
- package/dist/components/GidsDropdown/GidsDropdown.js.map +1 -0
- package/dist/components/GidsDropdownField/GidsDropdownField.d.ts +10 -0
- package/dist/components/GidsDropdownField/GidsDropdownField.d.ts.map +1 -0
- package/dist/components/GidsDropdownField/GidsDropdownField.js +38 -0
- package/dist/components/GidsDropdownField/GidsDropdownField.js.map +1 -0
- package/dist/components/GidsDropdownItem/GidsDropdownItem.d.ts +1 -1
- package/dist/components/GidsDropdownItem/GidsDropdownItem.d.ts.map +1 -1
- package/dist/components/GidsDropdownItem/GidsDropdownItem.js +8 -3
- package/dist/components/GidsDropdownItem/GidsDropdownItem.js.map +1 -1
- package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +1 -1
- package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts.map +1 -1
- package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.js +15 -4
- package/dist/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.js.map +1 -1
- package/dist/components/GidsDropdownPicker/GidsDropdownPicker.d.ts +20 -0
- package/dist/components/GidsDropdownPicker/GidsDropdownPicker.d.ts.map +1 -0
- package/dist/components/GidsDropdownPicker/GidsDropdownPicker.js +62 -0
- package/dist/components/GidsDropdownPicker/GidsDropdownPicker.js.map +1 -0
- package/dist/components/GidsFilter/GidsFilter.d.ts +16 -0
- package/dist/components/GidsFilter/GidsFilter.d.ts.map +1 -0
- package/dist/components/GidsFilter/GidsFilter.js +49 -0
- package/dist/components/GidsFilter/GidsFilter.js.map +1 -0
- package/dist/components/GidsLevelGauge/GidsLevelGauge.d.ts +6 -0
- package/dist/components/GidsLevelGauge/GidsLevelGauge.d.ts.map +1 -0
- package/dist/components/GidsLevelGauge/GidsLevelGauge.js +17 -0
- package/dist/components/GidsLevelGauge/GidsLevelGauge.js.map +1 -0
- package/dist/components/GidsLineChart/GidsLineChart.d.ts +6 -0
- package/dist/components/GidsLineChart/GidsLineChart.d.ts.map +1 -0
- package/dist/components/GidsLineChart/GidsLineChart.js +19 -0
- package/dist/components/GidsLineChart/GidsLineChart.js.map +1 -0
- package/dist/components/GidsListItem/GidsListItem.d.ts.map +1 -1
- package/dist/components/GidsListItem/GidsListItem.js +30 -15
- package/dist/components/GidsListItem/GidsListItem.js.map +1 -1
- package/dist/components/GidsMenu/GidsMenu.d.ts.map +1 -1
- package/dist/components/GidsMenu/GidsMenu.js +0 -7
- package/dist/components/GidsMenu/GidsMenu.js.map +1 -1
- package/dist/components/GidsMenuGroup/GidsMenuGroup.d.ts.map +1 -1
- package/dist/components/GidsMenuGroup/GidsMenuGroup.js +0 -7
- package/dist/components/GidsMenuGroup/GidsMenuGroup.js.map +1 -1
- package/dist/components/GidsPageTitle/GidsPageTitle.d.ts +9 -0
- package/dist/components/GidsPageTitle/GidsPageTitle.d.ts.map +1 -0
- package/dist/components/GidsPageTitle/GidsPageTitle.js +32 -0
- package/dist/components/GidsPageTitle/GidsPageTitle.js.map +1 -0
- package/dist/components/GidsPieChart/GidsPieChart.d.ts +8 -0
- package/dist/components/GidsPieChart/GidsPieChart.d.ts.map +1 -0
- package/dist/components/GidsPieChart/GidsPieChart.js +16 -0
- package/dist/components/GidsPieChart/GidsPieChart.js.map +1 -0
- package/dist/components/GidsProgressCircle/GidsProgressCircle.d.ts +6 -0
- package/dist/components/GidsProgressCircle/GidsProgressCircle.d.ts.map +1 -0
- package/dist/components/GidsProgressCircle/GidsProgressCircle.js +17 -0
- package/dist/components/GidsProgressCircle/GidsProgressCircle.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/GidsActionBar/GidsActionBar.ts +67 -0
- package/src/components/GidsActivityGauge/GidsActivityGauge.ts +48 -0
- package/src/components/GidsBarChart/GidsBarChart.ts +47 -0
- package/src/components/GidsCalendar/GidsCalendar.ts +72 -0
- package/src/components/GidsCalendarCell/GidsCalendarCell.ts +95 -0
- package/src/components/GidsCalendarDayCell/GidsCalendarDayCell.ts +29 -0
- package/src/components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.ts +107 -0
- package/src/components/GidsCalendarMonthList/GidsCalendarMonthList.ts +56 -0
- package/src/components/GidsCalendarYearList/GidsCalendarYearList.ts +76 -0
- package/src/components/GidsChart/GidsChart.ts +41 -0
- package/src/components/GidsChartLegend/GidsChartLegend.ts +38 -0
- package/src/components/GidsChartLegendItem/GidsChartLegendItem.ts +40 -0
- package/src/components/GidsChevronButton/GidsChevronButton.ts +55 -0
- package/src/components/GidsDot/GidsDot.ts +42 -0
- package/src/components/GidsDropdown/GidsDropdown.ts +149 -0
- package/src/components/GidsDropdownField/GidsDropdownField.ts +106 -0
- package/src/components/GidsDropdownItem/GidsDropdownItem.ts +11 -3
- package/src/components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.ts +23 -3
- package/src/components/GidsDropdownPicker/GidsDropdownPicker.ts +144 -0
- package/src/components/GidsFilter/GidsFilter.ts +110 -0
- package/src/components/GidsLevelGauge/GidsLevelGauge.ts +46 -0
- package/src/components/GidsLineChart/GidsLineChart.ts +50 -0
- package/src/components/GidsListItem/GidsListItem.ts +39 -18
- package/src/components/GidsMenu/GidsMenu.ts +0 -8
- package/src/components/GidsMenuGroup/GidsMenuGroup.ts +0 -8
- package/src/components/GidsPageTitle/GidsPageTitle.ts +60 -0
- package/src/components/GidsPieChart/GidsPieChart.ts +43 -0
- package/src/components/GidsProgressCircle/GidsProgressCircle.ts +46 -0
- package/src/index.ts +23 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsListItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsListItem/GidsListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,oBAAoB,EAEpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAI9E,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB,CACjE,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,CACf;IACA,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpE,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,6BAA6B,CAAC,KAAK,IAAI,CAAC;CAC9E;AAED,eAAO,MAAM,eAAe,GAC3B,OAAO,oBAAoB,KACzB,
|
|
1
|
+
{"version":3,"file":"GidsListItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsListItem/GidsListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,oBAAoB,EAEpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAI9E,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB,CACjE,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,CACf;IACA,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACpE,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,6BAA6B,CAAC,KAAK,IAAI,CAAC;CAC9E;AAED,eAAO,MAAM,eAAe,GAC3B,OAAO,oBAAoB,KACzB,iBA8QF,CAAC"}
|
|
@@ -5,19 +5,20 @@ import { GidsDividerDom } from '../GidsDivider/GidsDivider';
|
|
|
5
5
|
import { GidsIconDom } from '../GidsIcon/GidsIcon';
|
|
6
6
|
const { getGidsListItemClassNames } = GidsListItemWebUtils;
|
|
7
7
|
export const GidsListItemDom = (props) => {
|
|
8
|
-
const { index,
|
|
8
|
+
const { id, index, defaultSelected, children, disabled = false, selected, editButton, onPressEditButton, onPressListItem, leadingAccessory, leadingSupport, leadingParagraph, trailingContent, trailingAccessory, trailingSupport, trailingParagraph, divider, extraClasses, name, value, isPlaceholderItem, } = props;
|
|
9
|
+
const isSelected = selected || defaultSelected;
|
|
9
10
|
const listItem = document.createElement('button');
|
|
10
11
|
listItem.type = 'button';
|
|
11
|
-
listItem.className = getGidsListItemClassNames({ disabled, selected }, extraClasses);
|
|
12
|
+
listItem.className = getGidsListItemClassNames({ disabled, selected: isSelected }, extraClasses);
|
|
12
13
|
listItem.setAttribute('role', 'list-item-option');
|
|
13
|
-
listItem.setAttribute('aria-selected',
|
|
14
|
+
listItem.setAttribute('aria-selected', isSelected ? 'true' : 'false');
|
|
15
|
+
listItem.setAttribute('id', id);
|
|
16
|
+
listItem.setAttribute('tabIndex', `${index}`);
|
|
17
|
+
listItem.setAttribute('is-placeholder-item', isPlaceholderItem ? 'true' : 'false');
|
|
14
18
|
listItem.disabled = disabled;
|
|
15
19
|
if (name) {
|
|
16
20
|
listItem.name = name;
|
|
17
21
|
}
|
|
18
|
-
if (typeof value === 'string') {
|
|
19
|
-
listItem.value = value;
|
|
20
|
-
}
|
|
21
22
|
const mainContainer = document.createElement('div');
|
|
22
23
|
mainContainer.className = 'gids-list-item__main-container';
|
|
23
24
|
if (editButton !== undefined &&
|
|
@@ -49,17 +50,17 @@ export const GidsListItemDom = (props) => {
|
|
|
49
50
|
leadingContentContainer.className =
|
|
50
51
|
'gids-list-item__leading-content-container';
|
|
51
52
|
if (children !== undefined && children !== null) {
|
|
53
|
+
const leadingLabel = document.createElement('span');
|
|
54
|
+
leadingLabel.className = disabled
|
|
55
|
+
? 'gids-list-item__leading-content-label gids-list-item__text-content-disabled'
|
|
56
|
+
: 'gids-list-item__leading-content-label';
|
|
52
57
|
if (typeof children === 'string') {
|
|
53
|
-
const leadingLabel = document.createElement('span');
|
|
54
|
-
leadingLabel.className = disabled
|
|
55
|
-
? 'gids-list-item__leading-content-label gids-list-item__text-content-disabled'
|
|
56
|
-
: 'gids-list-item__leading-content-label';
|
|
57
58
|
leadingLabel.textContent = children;
|
|
58
|
-
appendAsChildren(leadingContentContainer, leadingLabel);
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
|
-
appendAsChildren(
|
|
61
|
+
appendAsChildren(leadingLabel, children);
|
|
62
62
|
}
|
|
63
|
+
appendAsChildren(leadingContentContainer, leadingLabel);
|
|
63
64
|
}
|
|
64
65
|
if ((leadingSupport !== undefined && leadingSupport !== null) ||
|
|
65
66
|
(leadingParagraph !== undefined && leadingParagraph !== null)) {
|
|
@@ -149,7 +150,7 @@ export const GidsListItemDom = (props) => {
|
|
|
149
150
|
trailingAccessoryContainer.className = disabled
|
|
150
151
|
? 'gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled'
|
|
151
152
|
: 'gids-list-item__trailing-accessory-container';
|
|
152
|
-
if (
|
|
153
|
+
if (isSelected) {
|
|
153
154
|
trailingAccessoryContainer.append(GidsIconDom({
|
|
154
155
|
name: 'checkmark',
|
|
155
156
|
size: 'md',
|
|
@@ -164,7 +165,7 @@ export const GidsListItemDom = (props) => {
|
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
appendAsChildren(listItem, mainContainer);
|
|
167
|
-
if (divider && !
|
|
168
|
+
if (divider && !isSelected) {
|
|
168
169
|
const dividerWrapper = document.createElement('div');
|
|
169
170
|
dividerWrapper.className = 'gids-list-item__divider';
|
|
170
171
|
dividerWrapper.append(GidsDividerDom({
|
|
@@ -184,13 +185,27 @@ export const GidsListItemDom = (props) => {
|
|
|
184
185
|
composed: true,
|
|
185
186
|
detail: {
|
|
186
187
|
selectedIndex: index,
|
|
187
|
-
|
|
188
|
+
defaultSelected, // Toggles or passes current state
|
|
189
|
+
isPlaceholderItem,
|
|
188
190
|
},
|
|
189
191
|
});
|
|
190
192
|
// If your Storybook/wrapper expects the custom event directly in the callback:
|
|
191
193
|
onPressListItem(customEvent);
|
|
192
194
|
});
|
|
193
195
|
}
|
|
196
|
+
let newValue = value;
|
|
197
|
+
if (children) {
|
|
198
|
+
newValue = children;
|
|
199
|
+
}
|
|
200
|
+
if (typeof newValue === 'string') {
|
|
201
|
+
listItem.value = newValue;
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
const textContent = newValue?.textContent;
|
|
205
|
+
if (textContent) {
|
|
206
|
+
listItem.value = textContent;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
194
209
|
return listItem;
|
|
195
210
|
};
|
|
196
211
|
//# sourceMappingURL=GidsListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsListItem.js","sourceRoot":"","sources":["../../../src/components/GidsListItem/GidsListItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,oBAAoB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAc3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAC9B,KAA2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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,yBAAyB,CAAC;AAKjC,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,CACzD,WAAW,EACX,eAAe,CACf;IACA,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,GAAI,6FAOzB,gBAAgB,KAAG,cA4BrB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GidsMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { appendAsChildren, } from '../../utils/domUtils.js';
|
|
3
3
|
import { GidsHeadingDom } from '../GidsHeading/GidsHeading.js';
|
|
4
|
-
import { testDomChildrenValidity } from '../../utils/childrenValidationUtils.js';
|
|
5
4
|
const { getGidsMenuClassNames } = GidsMenuWebUtils;
|
|
6
5
|
export const GidsMenuDom = ({ children, extraClasses, heading, supportingText, supportingTextTypography, ...restProps }) => {
|
|
7
6
|
const menu = document.createElement('div');
|
|
@@ -17,12 +16,6 @@ export const GidsMenuDom = ({ children, extraClasses, heading, supportingText, s
|
|
|
17
16
|
...restProps,
|
|
18
17
|
}));
|
|
19
18
|
}
|
|
20
|
-
testDomChildrenValidity({
|
|
21
|
-
children,
|
|
22
|
-
classNameToBeValidated: 'gids-list-item',
|
|
23
|
-
childrenNameToBeValidated: 'GidsListItemDom',
|
|
24
|
-
currentComponentName: 'GidsMenu',
|
|
25
|
-
});
|
|
26
19
|
if (children !== undefined && children !== null) {
|
|
27
20
|
const childrenContainer = document.createElement('div');
|
|
28
21
|
childrenContainer.className = 'gids-menu__children';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMenu.js","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAGhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMenu.js","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAGhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,EAAE,qBAAqB,EAAE,GAAG,gBAAgB,CAAC;AASnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC3B,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,cAAc,EACd,wBAAwB,EACxB,GAAG,SAAS,EACM,EAAkB,EAAE;IACtC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAErD,IACC,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,EAAE,CAAC;QAC7D,CAAC,cAAc,KAAK,SAAS;YAC5B,cAAc,KAAK,IAAI;YACvB,cAAc,KAAK,EAAE,CAAC,EACtB,CAAC;QACF,IAAI,CAAC,MAAM,CACV,cAAc,CAAC;YACd,OAAO;YACP,cAAc;YACd,wBAAwB,EAAE,wBAAwB,IAAI,gBAAgB;YACtE,GAAG,SAAS;SACZ,CAAC,CACF,CAAC;IACH,CAAC;IAED,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACjD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACxD,iBAAiB,CAAC,SAAS,GAAG,qBAAqB,CAAC;QACpD,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;QAC9C,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMenuGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenuGroup/GidsMenuGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMenuGroup.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenuGroup/GidsMenuGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAKxE,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB,CAAC,WAAW,CAAC;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,GAAI,mDAK9B,qBAAqB,KAAG,cAwB1B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GidsMenuGroupWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { appendAsChildren } from '../../utils/domUtils.js';
|
|
3
3
|
import { GidsSpinnerDom } from '../GidsSpinner/GidsSpinner.js';
|
|
4
|
-
import { testDomChildrenValidity } from '../../utils/childrenValidationUtils.js';
|
|
5
4
|
const { getGidsMenuGroupClassNames } = GidsMenuGroupWebUtils;
|
|
6
5
|
export const GidsMenuGroupDom = ({ type = 'no-options', supportingText = 'No options', children, extraClasses, }) => {
|
|
7
6
|
const menuGroup = document.createElement('div');
|
|
@@ -17,12 +16,6 @@ export const GidsMenuGroupDom = ({ type = 'no-options', supportingText = 'No opt
|
|
|
17
16
|
noOptionText.textContent = supportingText;
|
|
18
17
|
appendAsChildren(menuGroup, noOptionText);
|
|
19
18
|
}
|
|
20
|
-
testDomChildrenValidity({
|
|
21
|
-
children,
|
|
22
|
-
classNameToBeValidated: 'gids-menu',
|
|
23
|
-
childrenNameToBeValidated: 'GidsMenuDom',
|
|
24
|
-
currentComponentName: 'GidsMenuGroup',
|
|
25
|
-
});
|
|
26
19
|
if (type === 'default' && children !== undefined && children !== null) {
|
|
27
20
|
appendAsChildren(menuGroup, children);
|
|
28
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMenuGroup.js","sourceRoot":"","sources":["../../../src/components/GidsMenuGroup/GidsMenuGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMenuGroup.js","sourceRoot":"","sources":["../../../src/components/GidsMenuGroup/GidsMenuGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,EAAE,0BAA0B,EAAE,GAAG,qBAAqB,CAAC;AAM7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAChC,IAAI,GAAG,YAAY,EACnB,cAAc,GAAG,YAAY,EAC7B,QAAQ,EACR,YAAY,GACW,EAAkB,EAAE;IAC3C,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAChD,SAAS,CAAC,SAAS,GAAG,0BAA0B,CAAC,EAAE,IAAI,EAAE,EAAE,YAAY,CAAC,CAAC;IAEzE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACxB,SAAS,CAAC,MAAM,CACf,cAAc,CAAC;YACd,aAAa,EAAE,IAAI;YACnB,IAAI,EAAE,IAAI;SACV,CAAC,CACF,CAAC;IACH,CAAC;IAED,IAAI,IAAI,KAAK,YAAY,EAAE,CAAC;QAC3B,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACpD,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;QAC1C,gBAAgB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,IAAI,KAAK,SAAS,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACvE,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GidsPageTitleWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { DomChildren, DomNodeOrString } from '../../utils/domUtils';
|
|
3
|
+
type GidsPageTitleBaseWebProps = GidsPageTitleWebProps<DomChildren, DomNodeOrString>;
|
|
4
|
+
export interface GidsPageTitleDomProps extends GidsPageTitleBaseWebProps {
|
|
5
|
+
extraClasses?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const GidsPageTitleDom: ({ level, children, leadingAccessory, trailingAccessory, extraClasses, }: GidsPageTitleDomProps) => HTMLDivElement;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=GidsPageTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/GidsPageTitle/GidsPageTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,sBAAsB,CAAC;AAI9B,KAAK,yBAAyB,GAAG,qBAAqB,CACrD,WAAW,EACX,eAAe,CACf,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,GAAI,yEAM9B,qBAAqB,KAAG,cAgC1B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GidsPageTitleWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { appendAsChildren, } from '../../utils/domUtils';
|
|
3
|
+
const { getGidsPageTitleClassNames } = GidsPageTitleWebUtils;
|
|
4
|
+
export const GidsPageTitleDom = ({ level = 'parent', children, leadingAccessory, trailingAccessory, extraClasses, }) => {
|
|
5
|
+
const pageTitle = document.createElement('div');
|
|
6
|
+
pageTitle.className = getGidsPageTitleClassNames(extraClasses);
|
|
7
|
+
if (leadingAccessory && level === 'child') {
|
|
8
|
+
const leadingAccContainer = document.createElement('div');
|
|
9
|
+
leadingAccContainer.className = 'gids-page-title__leading-accessory';
|
|
10
|
+
appendAsChildren(leadingAccContainer, leadingAccessory);
|
|
11
|
+
pageTitle.append(leadingAccContainer);
|
|
12
|
+
}
|
|
13
|
+
if (children) {
|
|
14
|
+
const h1El = document.createElement('h1');
|
|
15
|
+
h1El.className = 'gids-page-title__heading';
|
|
16
|
+
if (children instanceof Node) {
|
|
17
|
+
h1El.append(children);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
h1El.textContent = children;
|
|
21
|
+
}
|
|
22
|
+
appendAsChildren(pageTitle, h1El);
|
|
23
|
+
}
|
|
24
|
+
if (trailingAccessory) {
|
|
25
|
+
const trailingAccContainer = document.createElement('div');
|
|
26
|
+
trailingAccContainer.className = 'gids-page-title__trailing-accessory';
|
|
27
|
+
appendAsChildren(trailingAccContainer, trailingAccessory);
|
|
28
|
+
pageTitle.append(trailingAccContainer);
|
|
29
|
+
}
|
|
30
|
+
return pageTitle;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=GidsPageTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPageTitle.js","sourceRoot":"","sources":["../../../src/components/GidsPageTitle/GidsPageTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAGhB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,EAAE,0BAA0B,EAAE,GAAG,qBAAqB,CAAC;AAW7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAChC,KAAK,GAAG,QAAQ,EAChB,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,GACW,EAAkB,EAAE;IAC3C,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAChD,SAAS,CAAC,SAAS,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAE/D,IAAI,gBAAgB,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;QAC3C,MAAM,mBAAmB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC1D,mBAAmB,CAAC,SAAS,GAAG,oCAAoC,CAAC;QACrE,gBAAgB,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,CAAC;QACxD,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,0BAA0B,CAAC;QAE5C,IAAI,QAAQ,YAAY,IAAI,EAAE,CAAC;YAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACvB,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;QAC7B,CAAC;QAED,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,IAAI,iBAAiB,EAAE,CAAC;QACvB,MAAM,oBAAoB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC3D,oBAAoB,CAAC,SAAS,GAAG,qCAAqC,CAAC;QACvE,gBAAgB,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;QAC1D,SAAS,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GidsPieChartWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
type GidsPieChartBaseWebProps = GidsPieChartWebProps;
|
|
3
|
+
export interface GidsPieChartDomProps extends GidsPieChartBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsPieChartDom: ({ breakpoint, chartLoading, chartLoaderSize, chartLoadingSupportingText, chartLoadingTitle, legendVisible, size, chartData, extraClasses, }: GidsPieChartDomProps) => HTMLElement;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GidsPieChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPieChart.d.ts","sourceRoot":"","sources":["../../../src/components/GidsPieChart/GidsPieChart.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EAEpB,MAAM,8BAA8B,CAAC;AAItC,KAAK,wBAAwB,GAAG,oBAAoB,CAAC;AAIrD,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,GAAI,6IAU7B,oBAAoB,KAAG,WAiBzB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GidsPieChartWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsPieChartClassNames } = GidsPieChartWebUtils;
|
|
3
|
+
export const GidsPieChartDom = ({ breakpoint = 'desktop', chartLoading = false, chartLoaderSize, chartLoadingSupportingText, chartLoadingTitle, legendVisible, size = 'xxs', chartData = [], extraClasses, }) => {
|
|
4
|
+
const pieChart = document.createElement('gids-pie-chart');
|
|
5
|
+
pieChart.breakpoint = breakpoint;
|
|
6
|
+
pieChart.size = size;
|
|
7
|
+
pieChart.legendVisible = legendVisible;
|
|
8
|
+
pieChart.chartData = chartData;
|
|
9
|
+
pieChart.chartLoading = chartLoading;
|
|
10
|
+
pieChart.chartLoaderSize = chartLoaderSize;
|
|
11
|
+
pieChart.chartLoadingTitle = chartLoadingTitle;
|
|
12
|
+
pieChart.chartLoadingSupportingText = chartLoadingSupportingText;
|
|
13
|
+
pieChart.className = getGidsPieChartClassNames({ breakpoint }, extraClasses);
|
|
14
|
+
return pieChart;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=GidsPieChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsPieChart.js","sourceRoot":"","sources":["../../../src/components/GidsPieChart/GidsPieChart.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,oBAAoB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAU3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC/B,UAAU,GAAG,SAAS,EACtB,YAAY,GAAG,KAAK,EACpB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,aAAa,EACb,IAAI,GAAG,KAAK,EACZ,SAAS,GAAG,EAAE,EACd,YAAY,GACU,EAAe,EAAE;IACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CACtC,gBAAgB,CACO,CAAC;IAEzB,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,QAAQ,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,QAAQ,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;IAEjE,QAAQ,CAAC,SAAS,GAAG,yBAAyB,CAAC,EAAE,UAAU,EAAE,EAAE,YAAY,CAAC,CAAC;IAE7E,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GidsProgressCircleWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
export interface GidsProgressCircleDomProps extends GidsProgressCircleWebProps {
|
|
3
|
+
extraClasses?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const GidsProgressCircleDom: ({ label, shape, value, breakpoint, chartLoading, chartLoaderSize, chartLoadingSupportingText, chartLoadingTitle, size, extraClasses, }: GidsProgressCircleDomProps) => HTMLElement;
|
|
6
|
+
//# sourceMappingURL=GidsProgressCircle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProgressCircle.d.ts","sourceRoot":"","sources":["../../../src/components/GidsProgressCircle/GidsProgressCircle.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,0BAA0B,EAE1B,MAAM,8BAA8B,CAAC;AAMtC,MAAM,WAAW,0BAA2B,SAAQ,0BAA0B;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,GAAI,wIAWnC,0BAA0B,KAAG,WAqB/B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GidsProgressCircleWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsProgressCircleClassNames } = GidsProgressCircleWebUtils;
|
|
3
|
+
export const GidsProgressCircleDom = ({ label, shape = 'circle', value = 0, breakpoint = 'desktop', chartLoading = false, chartLoaderSize, chartLoadingSupportingText, chartLoadingTitle, size = 'xxs', extraClasses, }) => {
|
|
4
|
+
const progressCircle = document.createElement('gids-progress-circle');
|
|
5
|
+
progressCircle.breakpoint = breakpoint;
|
|
6
|
+
progressCircle.size = size;
|
|
7
|
+
progressCircle.label = label;
|
|
8
|
+
progressCircle.value = value;
|
|
9
|
+
progressCircle.shape = shape;
|
|
10
|
+
progressCircle.chartLoading = chartLoading;
|
|
11
|
+
progressCircle.chartLoaderSize = chartLoaderSize;
|
|
12
|
+
progressCircle.chartLoadingTitle = chartLoadingTitle;
|
|
13
|
+
progressCircle.chartLoadingSupportingText = chartLoadingSupportingText;
|
|
14
|
+
progressCircle.className = getGidsProgressCircleClassNames({ breakpoint }, extraClasses);
|
|
15
|
+
return progressCircle;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=GidsProgressCircle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProgressCircle.js","sourceRoot":"","sources":["../../../src/components/GidsProgressCircle/GidsProgressCircle.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,0BAA0B,GAC1B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,+BAA+B,EAAE,GAAG,0BAA0B,CAAC;AAQvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACrC,KAAK,EACL,KAAK,GAAG,QAAQ,EAChB,KAAK,GAAG,CAAC,EACT,UAAU,GAAG,SAAS,EACtB,YAAY,GAAG,KAAK,EACpB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,IAAI,GAAG,KAAK,EACZ,YAAY,GACgB,EAAe,EAAE;IAC7C,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAC5C,sBAAsB,CACO,CAAC;IAE/B,cAAc,CAAC,UAAU,GAAG,UAAU,CAAC;IACvC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC;IAC7B,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC;IAC7B,cAAc,CAAC,KAAK,GAAG,KAAK,CAAC;IAC7B,cAAc,CAAC,YAAY,GAAG,YAAY,CAAC;IAC3C,cAAc,CAAC,eAAe,GAAG,eAAe,CAAC;IACjD,cAAc,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IACrD,cAAc,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;IAEvE,cAAc,CAAC,SAAS,GAAG,+BAA+B,CACzD,EAAE,UAAU,EAAE,EACd,YAAY,CACZ,CAAC;IAEF,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,29 @@ export * from './components/GidsMenuGroup/GidsMenuGroup.js';
|
|
|
80
80
|
export * from './components/GidsDropdownItem/GidsDropdownItem.js';
|
|
81
81
|
export * from './components/GidsDropdownMenu/GidsDropdownMenu.js';
|
|
82
82
|
export * from './components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.js';
|
|
83
|
+
export * from './components/GidsDropdown/GidsDropdown.js';
|
|
84
|
+
export * from './components/GidsChevronButton/GidsChevronButton.js';
|
|
85
|
+
export * from './components/GidsDropdownField/GidsDropdownField.js';
|
|
86
|
+
export * from './components/GidsCalendarCell/GidsCalendarCell.js';
|
|
87
|
+
export * from './components/GidsDot/GidsDot.js';
|
|
88
|
+
export * from './components/GidsCalendarDayCell/GidsCalendarDayCell.js';
|
|
89
|
+
export * from './components/GidsCalendarMonthList/GidsCalendarMonthList.js';
|
|
90
|
+
export * from './components/GidsCalendarYearList/GidsCalendarYearList.js';
|
|
91
|
+
export * from './components/GidsDropdownPicker/GidsDropdownPicker.js';
|
|
92
|
+
export * from './components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.js';
|
|
93
|
+
export * from './components/GidsCalendar/GidsCalendar.js';
|
|
94
|
+
export * from './components/GidsPageTitle/GidsPageTitle.js';
|
|
95
|
+
export * from './components/GidsChartLegendItem/GidsChartLegendItem.js';
|
|
96
|
+
export * from './components/GidsChartLegend/GidsChartLegend.js';
|
|
97
|
+
export * from './components/GidsLineChart/GidsLineChart.js';
|
|
98
|
+
export * from './components/GidsBarChart/GidsBarChart.js';
|
|
99
|
+
export * from './components/GidsPieChart/GidsPieChart.js';
|
|
100
|
+
export * from './components/GidsLevelGauge/GidsLevelGauge.js';
|
|
101
|
+
export * from './components/GidsProgressCircle/GidsProgressCircle.js';
|
|
102
|
+
export * from './components/GidsActivityGauge/GidsActivityGauge.js';
|
|
103
|
+
export * from './components/GidsChart/GidsChart.js';
|
|
104
|
+
export * from './components/GidsFilter/GidsFilter.js';
|
|
105
|
+
export * from './components/GidsActionBar/GidsActionBar.js';
|
|
83
106
|
/**
|
|
84
107
|
* Utilities
|
|
85
108
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,uDAAuD,CAAC;AACtE,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc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C;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,qDAAqD,CAAC;AACpE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iEAAiE,CAAC;AAChF,cAAc,mEAAmE,CAAC;AAClF,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iCAAiC,CAAC;AAChD,cAAc,yDAAyD,CAAC;AACxE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,iEAAiE,CAAC;AAChF,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,yDAAyD,CAAC;AACxE,cAAc,iDAAiD,CAAC;AAChE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAE5D;;GAEG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -80,6 +80,29 @@ export * from './components/GidsMenuGroup/GidsMenuGroup.js';
|
|
|
80
80
|
export * from './components/GidsDropdownItem/GidsDropdownItem.js';
|
|
81
81
|
export * from './components/GidsDropdownMenu/GidsDropdownMenu.js';
|
|
82
82
|
export * from './components/GidsDropdownMenuGroup/GidsDropdownMenuGroup.js';
|
|
83
|
+
export * from './components/GidsDropdown/GidsDropdown.js';
|
|
84
|
+
export * from './components/GidsChevronButton/GidsChevronButton.js';
|
|
85
|
+
export * from './components/GidsDropdownField/GidsDropdownField.js';
|
|
86
|
+
export * from './components/GidsCalendarCell/GidsCalendarCell.js';
|
|
87
|
+
export * from './components/GidsDot/GidsDot.js';
|
|
88
|
+
export * from './components/GidsCalendarDayCell/GidsCalendarDayCell.js';
|
|
89
|
+
export * from './components/GidsCalendarMonthList/GidsCalendarMonthList.js';
|
|
90
|
+
export * from './components/GidsCalendarYearList/GidsCalendarYearList.js';
|
|
91
|
+
export * from './components/GidsDropdownPicker/GidsDropdownPicker.js';
|
|
92
|
+
export * from './components/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.js';
|
|
93
|
+
export * from './components/GidsCalendar/GidsCalendar.js';
|
|
94
|
+
export * from './components/GidsPageTitle/GidsPageTitle.js';
|
|
95
|
+
export * from './components/GidsChartLegendItem/GidsChartLegendItem.js';
|
|
96
|
+
export * from './components/GidsChartLegend/GidsChartLegend.js';
|
|
97
|
+
export * from './components/GidsLineChart/GidsLineChart.js';
|
|
98
|
+
export * from './components/GidsBarChart/GidsBarChart.js';
|
|
99
|
+
export * from './components/GidsPieChart/GidsPieChart.js';
|
|
100
|
+
export * from './components/GidsLevelGauge/GidsLevelGauge.js';
|
|
101
|
+
export * from './components/GidsProgressCircle/GidsProgressCircle.js';
|
|
102
|
+
export * from './components/GidsActivityGauge/GidsActivityGauge.js';
|
|
103
|
+
export * from './components/GidsChart/GidsChart.js';
|
|
104
|
+
export * from './components/GidsFilter/GidsFilter.js';
|
|
105
|
+
export * from './components/GidsActionBar/GidsActionBar.js';
|
|
83
106
|
/**
|
|
84
107
|
* Utilities
|
|
85
108
|
*/
|
package/dist/index.js.map
C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uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAE5D;;GAEG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-web-dom-reference",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "DOM for components reference implementations",
|
|
6
6
|
"homepage": "https://ganpatiinfo-design-system.onrender.com/",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"directory": "packages/private/web-dom-reference"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ganpatiinfo/gids-core-shared": "
|
|
28
|
-
"@ganpatiinfo/gids-web-shared": "
|
|
27
|
+
"@ganpatiinfo/gids-core-shared": "9.1.0",
|
|
28
|
+
"@ganpatiinfo/gids-web-shared": "9.1.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@ganpatiinfo/gids-web-theme-interface": "5.0.0",
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsActionBarWebProps,
|
|
3
|
+
GidsActionBarWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
|
|
6
|
+
const { getGidsActionBarClassNames } = GidsActionBarWebUtils;
|
|
7
|
+
|
|
8
|
+
type GidsActionBarBaseWebProps = GidsActionBarWebProps<Event>;
|
|
9
|
+
|
|
10
|
+
type GidsActionBarElement = HTMLElement & GidsActionBarBaseWebProps;
|
|
11
|
+
|
|
12
|
+
export interface GidsActionBarDomProps extends GidsActionBarBaseWebProps {
|
|
13
|
+
extraClasses?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const GidsActionBarDom = ({
|
|
17
|
+
actionGroup = false,
|
|
18
|
+
allFiltersTabVisible = false,
|
|
19
|
+
moreFiltersTabVisible = false,
|
|
20
|
+
clearAllFiltersVisible = true,
|
|
21
|
+
clearAllFiltersButtonAppearance = 'primary',
|
|
22
|
+
primaryFilters = [],
|
|
23
|
+
secondaryFilters = [],
|
|
24
|
+
filterSize = 'xs',
|
|
25
|
+
dropdownDividerVisible,
|
|
26
|
+
onToggleActionBarAllFilter,
|
|
27
|
+
onToggleActionBarDropdownFilter,
|
|
28
|
+
onToggleActionBarMoreFilter,
|
|
29
|
+
onToggleActionBarNoneFilter,
|
|
30
|
+
onDropdownSelectionActionBarFilterChange,
|
|
31
|
+
onMoreSelectionActionBarFilterChange,
|
|
32
|
+
onClearAllFiltersButton,
|
|
33
|
+
disabled,
|
|
34
|
+
allFiltersData,
|
|
35
|
+
moreFiltersData,
|
|
36
|
+
extraClasses,
|
|
37
|
+
}: GidsActionBarDomProps): HTMLElement => {
|
|
38
|
+
const actionBar = document.createElement(
|
|
39
|
+
'gids-action-bar',
|
|
40
|
+
) as GidsActionBarElement;
|
|
41
|
+
|
|
42
|
+
actionBar.actionGroup = actionGroup;
|
|
43
|
+
actionBar.allFiltersTabVisible = allFiltersTabVisible;
|
|
44
|
+
actionBar.moreFiltersTabVisible = moreFiltersTabVisible;
|
|
45
|
+
actionBar.clearAllFiltersVisible = clearAllFiltersVisible;
|
|
46
|
+
actionBar.clearAllFiltersButtonAppearance = clearAllFiltersButtonAppearance;
|
|
47
|
+
actionBar.primaryFilters = primaryFilters;
|
|
48
|
+
actionBar.secondaryFilters = secondaryFilters;
|
|
49
|
+
actionBar.allFiltersData = allFiltersData;
|
|
50
|
+
actionBar.moreFiltersData = moreFiltersData;
|
|
51
|
+
actionBar.filterSize = filterSize;
|
|
52
|
+
actionBar.dropdownDividerVisible = dropdownDividerVisible;
|
|
53
|
+
actionBar.disabled = disabled;
|
|
54
|
+
actionBar.onToggleActionBarAllFilter = onToggleActionBarAllFilter;
|
|
55
|
+
actionBar.onToggleActionBarDropdownFilter = onToggleActionBarDropdownFilter;
|
|
56
|
+
actionBar.onToggleActionBarMoreFilter = onToggleActionBarMoreFilter;
|
|
57
|
+
actionBar.onToggleActionBarNoneFilter = onToggleActionBarNoneFilter;
|
|
58
|
+
actionBar.onDropdownSelectionActionBarFilterChange =
|
|
59
|
+
onDropdownSelectionActionBarFilterChange;
|
|
60
|
+
actionBar.onMoreSelectionActionBarFilterChange =
|
|
61
|
+
onMoreSelectionActionBarFilterChange;
|
|
62
|
+
actionBar.onClearAllFiltersButton = onClearAllFiltersButton;
|
|
63
|
+
|
|
64
|
+
actionBar.className = getGidsActionBarClassNames(extraClasses);
|
|
65
|
+
|
|
66
|
+
return actionBar;
|
|
67
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsActivityGaugeWebProps,
|
|
3
|
+
GidsActivityGaugeWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
|
|
6
|
+
const { getGidsActivityGaugeClassNames } = GidsActivityGaugeWebUtils;
|
|
7
|
+
|
|
8
|
+
type GidsActivityGaugeBaseWebProps = GidsActivityGaugeWebProps;
|
|
9
|
+
|
|
10
|
+
type GidsActivityGaugeElement = HTMLElement & GidsActivityGaugeBaseWebProps;
|
|
11
|
+
|
|
12
|
+
export interface GidsActivityGaugeDomProps extends GidsActivityGaugeBaseWebProps {
|
|
13
|
+
extraClasses?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const GidsActivityGaugeDom = ({
|
|
17
|
+
label,
|
|
18
|
+
chartData = [],
|
|
19
|
+
legend = 'none',
|
|
20
|
+
breakpoint = 'desktop',
|
|
21
|
+
chartLoading = false,
|
|
22
|
+
chartLoaderSize,
|
|
23
|
+
chartLoadingSupportingText,
|
|
24
|
+
chartLoadingTitle,
|
|
25
|
+
size = 'xxs',
|
|
26
|
+
extraClasses,
|
|
27
|
+
}: GidsActivityGaugeDomProps): HTMLElement => {
|
|
28
|
+
const activityGauge = document.createElement(
|
|
29
|
+
'gids-activity-gauge',
|
|
30
|
+
) as GidsActivityGaugeElement;
|
|
31
|
+
|
|
32
|
+
activityGauge.breakpoint = breakpoint;
|
|
33
|
+
activityGauge.size = size;
|
|
34
|
+
activityGauge.legend = legend;
|
|
35
|
+
activityGauge.label = label;
|
|
36
|
+
activityGauge.chartData = chartData;
|
|
37
|
+
activityGauge.chartLoading = chartLoading;
|
|
38
|
+
activityGauge.chartLoaderSize = chartLoaderSize;
|
|
39
|
+
activityGauge.chartLoadingTitle = chartLoadingTitle;
|
|
40
|
+
activityGauge.chartLoadingSupportingText = chartLoadingSupportingText;
|
|
41
|
+
|
|
42
|
+
activityGauge.className = getGidsActivityGaugeClassNames(
|
|
43
|
+
{ breakpoint },
|
|
44
|
+
extraClasses,
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
return activityGauge;
|
|
48
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsBarChartWebProps,
|
|
3
|
+
GidsBarChartWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
|
|
6
|
+
const { getGidsBarChartClassNames } = GidsBarChartWebUtils;
|
|
7
|
+
|
|
8
|
+
type GidsBarChartElement = HTMLElement & GidsBarChartWebProps;
|
|
9
|
+
|
|
10
|
+
export interface GidsBarChartDomProps extends GidsBarChartWebProps {
|
|
11
|
+
extraClasses?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const GidsBarChartDom = ({
|
|
15
|
+
breakpoint = 'desktop',
|
|
16
|
+
legend = 'none',
|
|
17
|
+
chartData = [],
|
|
18
|
+
yAxisVisible = false,
|
|
19
|
+
xAxisLabel,
|
|
20
|
+
yAxisLabel,
|
|
21
|
+
dataPoints,
|
|
22
|
+
chartLoading,
|
|
23
|
+
chartLoaderSize,
|
|
24
|
+
chartLoadingTitle,
|
|
25
|
+
chartLoadingSupportingText,
|
|
26
|
+
extraClasses,
|
|
27
|
+
}: GidsBarChartDomProps): HTMLElement => {
|
|
28
|
+
const barChart = document.createElement(
|
|
29
|
+
'gids-bar-chart',
|
|
30
|
+
) as GidsBarChartElement;
|
|
31
|
+
|
|
32
|
+
barChart.breakpoint = breakpoint;
|
|
33
|
+
barChart.legend = legend;
|
|
34
|
+
barChart.chartData = chartData;
|
|
35
|
+
barChart.yAxisVisible = yAxisVisible;
|
|
36
|
+
barChart.xAxisLabel = xAxisLabel;
|
|
37
|
+
barChart.yAxisLabel = yAxisLabel;
|
|
38
|
+
barChart.dataPoints = dataPoints;
|
|
39
|
+
barChart.chartLoading = chartLoading;
|
|
40
|
+
barChart.chartLoaderSize = chartLoaderSize;
|
|
41
|
+
barChart.chartLoadingTitle = chartLoadingTitle;
|
|
42
|
+
barChart.chartLoadingSupportingText = chartLoadingSupportingText;
|
|
43
|
+
|
|
44
|
+
barChart.className = getGidsBarChartClassNames({ breakpoint }, extraClasses);
|
|
45
|
+
|
|
46
|
+
return barChart;
|
|
47
|
+
};
|