@gooddata/sdk-ui-analytical-designer 11.71.0-alpha.3 → 11.71.0-alpha.4
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/NOTICE +45 -45
- package/esm/components/buckets/MeasureDateFilter.d.ts +4 -2
- package/esm/components/buckets/MeasureDateFilter.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilter.js +5 -3
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts +4 -2
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterPicker.js +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +32 -17
- package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilter.js +3 -4
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts +8 -4
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdown.js +13 -6
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts +4 -3
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/DatePresetsDropdownButton.js +2 -2
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts +6 -2
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/PresetSection/PresetsSection.js +16 -5
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.d.ts +4 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonSection.js +2 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts +4 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdown.js +2 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.d.ts +4 -2
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/TimeComparisonSection/TimeComparisonTypesDropdownItem.js +11 -11
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts +6 -1
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/dateFilterOptionFactory.js +14 -0
- package/esm/components/filterBar/dateFilter/selectors.d.ts +94 -3
- package/esm/components/filterBar/dateFilter/selectors.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/selectors.js +3 -0
- package/esm/components/filterBar/dateFilter/types.d.ts +3 -1
- package/esm/components/filterBar/dateFilter/types.d.ts.map +1 -1
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +3 -9
- package/esm/models/period.d.ts +6 -0
- package/esm/models/period.d.ts.map +1 -1
- package/esm/models/period.js +14 -0
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts +2 -2
- package/esm/postMessageApi/sagas/control_filtering_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/control_filtering_saga.js +22 -5
- package/esm/store/bucket_filters/bucket_filters_operations.d.ts.map +1 -1
- package/esm/store/bucket_filters/bucket_filters_operations.js +9 -8
- package/esm/translations/en-US.json +12 -0
- package/package.json +21 -21
- package/esm/components/dialog_utils.d.ts +0 -19
- package/esm/components/dialog_utils.d.ts.map +0 -1
- package/esm/components/dialog_utils.js +0 -25
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.d.ts +0 -22
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.d.ts.map +0 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.js +0 -85
- package/esm/components/sort/fragments/ChartSortFragment.d.ts +0 -24
- package/esm/components/sort/fragments/ChartSortFragment.d.ts.map +0 -1
- package/esm/components/sort/fragments/ChartSortFragment.js +0 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-analytical-designer",
|
|
3
|
-
"version": "11.71.0-alpha.
|
|
3
|
+
"version": "11.71.0-alpha.4",
|
|
4
4
|
"description": "Analytical Designer UI library — core components, sagas, reducers, and application logic",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": {
|
|
@@ -59,21 +59,21 @@
|
|
|
59
59
|
"reselect": "5.1.1",
|
|
60
60
|
"uuid": "11.1.1",
|
|
61
61
|
"web-vitals": "3.5.2",
|
|
62
|
-
"@gooddata/sdk-backend-base": "11.71.0-alpha.
|
|
63
|
-
"@gooddata/sdk-backend-spi": "11.71.0-alpha.
|
|
64
|
-
"@gooddata/sdk-backend-tiger": "11.71.0-alpha.
|
|
65
|
-
"@gooddata/sdk-embedding": "11.71.0-alpha.
|
|
66
|
-
"@gooddata/sdk-
|
|
67
|
-
"@gooddata/sdk-
|
|
68
|
-
"@gooddata/sdk-
|
|
69
|
-
"@gooddata/sdk-ui-
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/
|
|
75
|
-
"@gooddata/sdk-ui-theme-provider": "11.71.0-alpha.
|
|
76
|
-
"@gooddata/
|
|
62
|
+
"@gooddata/sdk-backend-base": "11.71.0-alpha.4",
|
|
63
|
+
"@gooddata/sdk-backend-spi": "11.71.0-alpha.4",
|
|
64
|
+
"@gooddata/sdk-backend-tiger": "11.71.0-alpha.4",
|
|
65
|
+
"@gooddata/sdk-embedding": "11.71.0-alpha.4",
|
|
66
|
+
"@gooddata/sdk-ui": "11.71.0-alpha.4",
|
|
67
|
+
"@gooddata/sdk-model": "11.71.0-alpha.4",
|
|
68
|
+
"@gooddata/sdk-pluggable-application-model": "11.71.0-alpha.4",
|
|
69
|
+
"@gooddata/sdk-ui-ext": "11.71.0-alpha.4",
|
|
70
|
+
"@gooddata/sdk-ui-filters": "11.71.0-alpha.4",
|
|
71
|
+
"@gooddata/sdk-ui-metric-component": "11.71.0-alpha.4",
|
|
72
|
+
"@gooddata/sdk-ui-pivot": "11.71.0-alpha.4",
|
|
73
|
+
"@gooddata/sdk-ui-kit": "11.71.0-alpha.4",
|
|
74
|
+
"@gooddata/util": "11.71.0-alpha.4",
|
|
75
|
+
"@gooddata/sdk-ui-theme-provider": "11.71.0-alpha.4",
|
|
76
|
+
"@gooddata/sdk-ui-semantic-search": "11.71.0-alpha.4"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@microsoft/api-extractor": "7.59.2",
|
|
@@ -114,11 +114,11 @@
|
|
|
114
114
|
"stylelint": "16.26.1",
|
|
115
115
|
"typescript": "7.0.2",
|
|
116
116
|
"vitest": "5.0.4",
|
|
117
|
-
"@gooddata/eslint-config": "11.71.0-alpha.
|
|
118
|
-
"@gooddata/
|
|
119
|
-
"@gooddata/
|
|
120
|
-
"@gooddata/
|
|
121
|
-
"@gooddata/
|
|
117
|
+
"@gooddata/eslint-config": "11.71.0-alpha.4",
|
|
118
|
+
"@gooddata/i18n-toolkit": "11.71.0-alpha.4",
|
|
119
|
+
"@gooddata/oxlint-config": "11.71.0-alpha.4",
|
|
120
|
+
"@gooddata/stylelint-config": "11.71.0-alpha.4",
|
|
121
|
+
"@gooddata/sdk-backend-mockingbird": "11.71.0-alpha.4"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"react": ">=18",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type ComponentType } from "react";
|
|
2
|
-
import { type RenderResult } from "@testing-library/react";
|
|
3
|
-
import { withIntl } from "../utils/with_intl.js";
|
|
4
|
-
export declare function getDialogSubmitButton(wrapper: Element): Element;
|
|
5
|
-
export declare function dialogClickSubmit(wrapper: Element): void;
|
|
6
|
-
export declare function dialogClickCancel(wrapper: Element): void;
|
|
7
|
-
export declare function dialogEnterSubmit(wrapper: Element, inputClassName?: string): void;
|
|
8
|
-
export interface IDialogRenderResult extends RenderResult {
|
|
9
|
-
/**
|
|
10
|
-
* Re-renders the very same tree - the dialog keeps its mounted component instances. Use it to
|
|
11
|
-
* replay what the app does when a dialog is hidden and shown again (the selector value changes,
|
|
12
|
-
* the component itself is never unmounted).
|
|
13
|
-
*/
|
|
14
|
-
rerenderSame: () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function createRendererFor(Dialog: ComponentType): (props?: Record<string, unknown> & {
|
|
17
|
-
intl?: Parameters<typeof withIntl>[1];
|
|
18
|
-
}) => IDialogRenderResult;
|
|
19
|
-
//# sourceMappingURL=dialog_utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog_utils.d.ts","sourceRoot":"","sources":["../../src/components/dialog_utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,wBAAwB,CAAC;AAI9E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,QAEjD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,QAEjD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,SAAgB,QAEjF;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACrD;;;;OAIG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,wBAAgB,iBAAiB,CAC7B,MAAM,EAAE,aAAa,GACtB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,KAAK,mBAAmB,CAUtG"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { fireEvent, render } from "@testing-library/react";
|
|
3
|
-
import { ConfirmDialogBase } from "@gooddata/sdk-ui-kit";
|
|
4
|
-
import { withIntl } from "../utils/with_intl.js";
|
|
5
|
-
import { withRedux } from "../utils/with_redux.js";
|
|
6
|
-
export function getDialogSubmitButton(wrapper) {
|
|
7
|
-
return wrapper.querySelector(".s-dialog-submit-button");
|
|
8
|
-
}
|
|
9
|
-
export function dialogClickSubmit(wrapper) {
|
|
10
|
-
fireEvent.click(getDialogSubmitButton(wrapper));
|
|
11
|
-
}
|
|
12
|
-
export function dialogClickCancel(wrapper) {
|
|
13
|
-
fireEvent.click(wrapper.querySelector(".s-dialog-cancel-button"));
|
|
14
|
-
}
|
|
15
|
-
export function dialogEnterSubmit(wrapper, inputClassName = ".input-text") {
|
|
16
|
-
fireEvent.keyDown(wrapper.querySelector(inputClassName), { key: "Enter", keyCode: 13, which: 13 });
|
|
17
|
-
}
|
|
18
|
-
export function createRendererFor(Dialog) {
|
|
19
|
-
return (props = {}) => {
|
|
20
|
-
const WrappedComponent = withIntl(withRedux(Dialog), props.intl);
|
|
21
|
-
const renderElement = () => _jsx(WrappedComponent, { ConfirmDialog: ConfirmDialogBase, ...props });
|
|
22
|
-
const result = render(renderElement());
|
|
23
|
-
return { ...result, rerenderSame: () => result.rerender(renderElement()) };
|
|
24
|
-
};
|
|
25
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare class AdditionalDateAttributesFragment {
|
|
2
|
-
container: HTMLElement;
|
|
3
|
-
constructor(container: HTMLElement);
|
|
4
|
-
getAdditionalDateFilters: () => NodeListOf<Element>;
|
|
5
|
-
getAdditionalDateFilter: (granularity: string) => Element | null;
|
|
6
|
-
getAdditionalDateFilterRemoveButton: (granularity: string) => Element | null;
|
|
7
|
-
removeAdditionalDateFilter: (granularity: string) => void;
|
|
8
|
-
getGranularitiesDropdownButton: () => Element | null;
|
|
9
|
-
clickOnGranularitiesDropdownButton: () => void;
|
|
10
|
-
getGranularitiesDropdown: () => Element | null;
|
|
11
|
-
getGranularityOptions: () => NodeListOf<Element>;
|
|
12
|
-
getGranularityOption: (granularity: string) => Element | null;
|
|
13
|
-
selectGranularity: (granularity: string) => void;
|
|
14
|
-
getWarningPanel: () => "multiple" | "none" | "single";
|
|
15
|
-
getEmptyValuesFilter: () => Element | null;
|
|
16
|
-
getEmptyValuesFilterButton: () => Element | null;
|
|
17
|
-
getEmptyValuesFilterRemoveButton: () => Element | null;
|
|
18
|
-
removeEmptyValuesFilter: () => void;
|
|
19
|
-
getEmptyValuesFilterDropdownItem: () => Element | null;
|
|
20
|
-
addEmptyValuesFilter: () => void;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=AdditionalDateAttributes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalDateAttributes.d.ts","sourceRoot":"","sources":["../../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/fragments/AdditionalDateAttributes.tsx"],"names":[],"mappings":"AAgBA,qBAAa,gCAAgC;IAClC,SAAS,EAAE,WAAW,CAAC;IAE9B,YAAY,SAAS,EAAE,WAAW,EAEjC;IAEM,wBAAwB,4BAE7B;IAEK,uBAAuB,gBAAiB,MAAM,oBAEnD;IAEK,mCAAmC,gBAAiB,MAAM,oBAI/D;IAEK,0BAA0B,gBAAiB,MAAM,UAEtD;IAEK,8BAA8B,uBAEnC;IAEK,kCAAkC,aAEvC;IAEK,wBAAwB,uBAE7B;IAEK,qBAAqB,4BAE1B;IAEK,oBAAoB,gBAAiB,MAAM,oBAEhD;IAEK,iBAAiB,gBAAiB,MAAM,UAI7C;IAEK,eAAe,uCAQpB;IAEK,oBAAoB,uBAEzB;IAEK,0BAA0B,uBAE/B;IAEK,gCAAgC,uBAErC;IAEK,uBAAuB,aAK5B;IAEK,gCAAgC,uBAErC;IAEK,oBAAoB,aAMzB;CACL"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import { fireEvent } from "@testing-library/react";
|
|
3
|
-
const ADDITIONAL_DATE_ATTRIBUTE_SELECTOR = ".s-adi-additional-date-attribute";
|
|
4
|
-
const REMOVE_ADDITIONAL_DATE_ATTRIBUTE_SELECTOR = ".s-remove-attribute-filter";
|
|
5
|
-
const GRANULARITIES_DROPDOWN_BUTTON_SELECTOR = ".s-adi-additional-date-granularities-dropdown-button";
|
|
6
|
-
const GRANULARITIES_DROPDOWN_SELECTOR = ".s-adi-additional-date-granularities-dropdown";
|
|
7
|
-
const GRANULARITY_OPTION_SELECTOR = ".s-granularity-item";
|
|
8
|
-
const SINGLE_FILTER_MIGRATED_WARNING_SELECTOR = ".s-additional-filter-reset-warning";
|
|
9
|
-
const MULTIPLE_FILTERS_MIGRATED_WARNING_SELECTOR = ".s-additional-filter-reset-warnings";
|
|
10
|
-
const EMPTY_VALUES_FILTER_SELECTOR = ".s-adi-empty-values-filter";
|
|
11
|
-
const EMPTY_VALUES_FILTER_BUTTON_SELECTOR = ".s-adi-empty-values-filter-button";
|
|
12
|
-
const EMPTY_VALUES_FILTER_REMOVE_SELECTOR = ".s-remove-empty-values-filter";
|
|
13
|
-
const EMPTY_VALUES_FILTER_DROPDOWN_ITEM_SELECTOR = ".s-adi-empty-values-filter-item";
|
|
14
|
-
export class AdditionalDateAttributesFragment {
|
|
15
|
-
container;
|
|
16
|
-
constructor(container) {
|
|
17
|
-
this.container = container;
|
|
18
|
-
}
|
|
19
|
-
getAdditionalDateFilters = () => {
|
|
20
|
-
return this.container.querySelectorAll(ADDITIONAL_DATE_ATTRIBUTE_SELECTOR);
|
|
21
|
-
};
|
|
22
|
-
getAdditionalDateFilter = (granularity) => {
|
|
23
|
-
return this.container.querySelector(`${ADDITIONAL_DATE_ATTRIBUTE_SELECTOR}-${granularity}`);
|
|
24
|
-
};
|
|
25
|
-
getAdditionalDateFilterRemoveButton = (granularity) => {
|
|
26
|
-
return this.getAdditionalDateFilter(granularity).querySelector(REMOVE_ADDITIONAL_DATE_ATTRIBUTE_SELECTOR);
|
|
27
|
-
};
|
|
28
|
-
removeAdditionalDateFilter = (granularity) => {
|
|
29
|
-
fireEvent.click(this.getAdditionalDateFilterRemoveButton(granularity));
|
|
30
|
-
};
|
|
31
|
-
getGranularitiesDropdownButton = () => {
|
|
32
|
-
return this.container.querySelector(GRANULARITIES_DROPDOWN_BUTTON_SELECTOR);
|
|
33
|
-
};
|
|
34
|
-
clickOnGranularitiesDropdownButton = () => {
|
|
35
|
-
fireEvent.click(this.getGranularitiesDropdownButton());
|
|
36
|
-
};
|
|
37
|
-
getGranularitiesDropdown = () => {
|
|
38
|
-
return document.querySelector(GRANULARITIES_DROPDOWN_SELECTOR);
|
|
39
|
-
};
|
|
40
|
-
getGranularityOptions = () => {
|
|
41
|
-
return this.getGranularitiesDropdown().querySelectorAll(GRANULARITY_OPTION_SELECTOR);
|
|
42
|
-
};
|
|
43
|
-
getGranularityOption = (granularity) => {
|
|
44
|
-
return this.getGranularitiesDropdown().querySelector(`.s-${granularity}`);
|
|
45
|
-
};
|
|
46
|
-
selectGranularity = (granularity) => {
|
|
47
|
-
this.clickOnGranularitiesDropdownButton();
|
|
48
|
-
const granularityOption = this.getGranularityOption(granularity);
|
|
49
|
-
fireEvent.click(granularityOption);
|
|
50
|
-
};
|
|
51
|
-
getWarningPanel = () => {
|
|
52
|
-
if (this.container.querySelector(MULTIPLE_FILTERS_MIGRATED_WARNING_SELECTOR)) {
|
|
53
|
-
return "multiple";
|
|
54
|
-
}
|
|
55
|
-
if (this.container.querySelector(SINGLE_FILTER_MIGRATED_WARNING_SELECTOR)) {
|
|
56
|
-
return "single";
|
|
57
|
-
}
|
|
58
|
-
return "none";
|
|
59
|
-
};
|
|
60
|
-
getEmptyValuesFilter = () => {
|
|
61
|
-
return this.container.querySelector(EMPTY_VALUES_FILTER_SELECTOR);
|
|
62
|
-
};
|
|
63
|
-
getEmptyValuesFilterButton = () => {
|
|
64
|
-
return this.container.querySelector(EMPTY_VALUES_FILTER_BUTTON_SELECTOR);
|
|
65
|
-
};
|
|
66
|
-
getEmptyValuesFilterRemoveButton = () => {
|
|
67
|
-
return this.container.querySelector(EMPTY_VALUES_FILTER_REMOVE_SELECTOR);
|
|
68
|
-
};
|
|
69
|
-
removeEmptyValuesFilter = () => {
|
|
70
|
-
const removeButton = this.getEmptyValuesFilterRemoveButton();
|
|
71
|
-
if (removeButton) {
|
|
72
|
-
fireEvent.click(removeButton);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
getEmptyValuesFilterDropdownItem = () => {
|
|
76
|
-
return document.querySelector(EMPTY_VALUES_FILTER_DROPDOWN_ITEM_SELECTOR);
|
|
77
|
-
};
|
|
78
|
-
addEmptyValuesFilter = () => {
|
|
79
|
-
this.clickOnGranularitiesDropdownButton();
|
|
80
|
-
const item = this.getEmptyValuesFilterDropdownItem();
|
|
81
|
-
if (item) {
|
|
82
|
-
fireEvent.click(item);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare class ButtonFragment {
|
|
2
|
-
container: HTMLElement;
|
|
3
|
-
button: HTMLButtonElement;
|
|
4
|
-
constructor(container: HTMLElement, button: HTMLButtonElement);
|
|
5
|
-
isEnabled(): boolean;
|
|
6
|
-
getText(): string;
|
|
7
|
-
click(): void;
|
|
8
|
-
hasBubble(): boolean;
|
|
9
|
-
hasIcon(iconClassName: string): boolean;
|
|
10
|
-
}
|
|
11
|
-
declare class DialogFragment {
|
|
12
|
-
dialog: HTMLElement;
|
|
13
|
-
constructor(dialog: HTMLElement);
|
|
14
|
-
isOpen(): boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class ChartSortFragment {
|
|
17
|
-
container: HTMLElement;
|
|
18
|
-
constructor(container: HTMLElement);
|
|
19
|
-
exists(): boolean;
|
|
20
|
-
getButton(): ButtonFragment;
|
|
21
|
-
getDialog(): DialogFragment;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=ChartSortFragment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartSortFragment.d.ts","sourceRoot":"","sources":["../../../../src/components/sort/fragments/ChartSortFragment.ts"],"names":[],"mappings":"AAIA,cAAM,cAAc;IACT,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,iBAAiB,CAAC;IAEjC,YAAY,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAG5D;IAEM,SAAS,YAEf;IAEM,OAAO,WAEb;IAEM,KAAK,SAEX;IAEM,SAAS,YAEf;IAEM,OAAO,CAAC,aAAa,EAAE,MAAM,WAEnC;CACJ;AAED,cAAM,cAAc;IACT,MAAM,EAAE,WAAW,CAAC;IAE3B,YAAY,MAAM,EAAE,WAAW,EAE9B;IAEM,MAAM,YAEZ;CACJ;AAED,qBAAa,iBAAiB;IACnB,SAAS,EAAE,WAAW,CAAC;IAE9B,YAAY,SAAS,EAAE,WAAW,EAEjC;IAEM,MAAM,YAEZ;IAEM,SAAS,mBAEf;IAEM,SAAS,mBAEf;CACJ"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { fireEvent } from "@testing-library/react";
|
|
3
|
-
class ButtonFragment {
|
|
4
|
-
container;
|
|
5
|
-
button;
|
|
6
|
-
constructor(container, button) {
|
|
7
|
-
this.container = container;
|
|
8
|
-
this.button = button;
|
|
9
|
-
}
|
|
10
|
-
isEnabled() {
|
|
11
|
-
return !this.button.classList.contains("disabled");
|
|
12
|
-
}
|
|
13
|
-
getText() {
|
|
14
|
-
return this.button.textContent;
|
|
15
|
-
}
|
|
16
|
-
click() {
|
|
17
|
-
fireEvent.click(this.button);
|
|
18
|
-
}
|
|
19
|
-
hasBubble() {
|
|
20
|
-
return !!this.container.querySelector(".s-chart-sort-button-bubble");
|
|
21
|
-
}
|
|
22
|
-
hasIcon(iconClassName) {
|
|
23
|
-
return !!this.button.querySelector(`.${iconClassName}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
class DialogFragment {
|
|
27
|
-
dialog;
|
|
28
|
-
constructor(dialog) {
|
|
29
|
-
this.dialog = dialog;
|
|
30
|
-
}
|
|
31
|
-
isOpen() {
|
|
32
|
-
return !!this.dialog;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export class ChartSortFragment {
|
|
36
|
-
container;
|
|
37
|
-
constructor(container) {
|
|
38
|
-
this.container = container;
|
|
39
|
-
}
|
|
40
|
-
exists() {
|
|
41
|
-
return !!this.container.querySelector(".s-chart-sort");
|
|
42
|
-
}
|
|
43
|
-
getButton() {
|
|
44
|
-
return new ButtonFragment(this.container, this.container.querySelector(".s-chart-sort-button"));
|
|
45
|
-
}
|
|
46
|
-
getDialog() {
|
|
47
|
-
return new DialogFragment(document.querySelector(".s-sort-charting-dropdown"));
|
|
48
|
-
}
|
|
49
|
-
}
|