@gooddata/sdk-ui-filters 9.10.0-alpha.9 → 10.0.0-alpha.2
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/esm/AttributeFilter/AttributeFilterProviders.d.ts.map +1 -1
- package/esm/AttributeFilter/AttributeFilterProviders.js +2 -2
- package/esm/AttributeFilter/AttributeFilterProviders.js.map +1 -1
- package/esm/AttributeFilter/Components/Dropdown/AttributeFilterDropdownBody.d.ts.map +1 -1
- package/esm/AttributeFilter/Components/Dropdown/AttributeFilterDropdownBody.js +3 -3
- package/esm/AttributeFilter/Components/Dropdown/AttributeFilterDropdownBody.js.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/AttributeFilterElementsSelect.d.ts.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/AttributeFilterElementsSelect.js +4 -4
- package/esm/AttributeFilter/Components/ElementsSelect/AttributeFilterElementsSelect.js.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/EmptyResult/AttributeFilterEmptyResult.d.ts +6 -0
- package/esm/AttributeFilter/Components/ElementsSelect/EmptyResult/AttributeFilterEmptyResult.d.ts.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/EmptyResult/AttributeFilterEmptyResult.js +3 -3
- package/esm/AttributeFilter/Components/ElementsSelect/EmptyResult/AttributeFilterEmptyResult.js.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/AttributeFilterStatusBar.d.ts +6 -0
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/AttributeFilterStatusBar.d.ts.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/AttributeFilterStatusBar.js +4 -2
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/AttributeFilterStatusBar.js.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/SingleSelectionAttributeFilterStatusBar.d.ts.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/SingleSelectionAttributeFilterStatusBar.js +4 -2
- package/esm/AttributeFilter/Components/ElementsSelect/StatusBar/SingleSelectionAttributeFilterStatusBar.js.map +1 -1
- package/esm/AttributeFilter/Components/ElementsSelect/types.d.ts +6 -0
- package/esm/AttributeFilter/Components/ElementsSelect/types.d.ts.map +1 -1
- package/esm/AttributeFilter/hooks/types.d.ts +6 -0
- package/esm/AttributeFilter/hooks/types.d.ts.map +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterController.d.ts.map +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterController.js +28 -7
- package/esm/AttributeFilter/hooks/useAttributeFilterController.js.map +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterControllerData.d.ts.map +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterControllerData.js +6 -0
- package/esm/AttributeFilter/hooks/useAttributeFilterControllerData.js.map +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterHandlerMethods.d.ts +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterHandlerState.d.ts +2 -2
- package/esm/AttributeFilter/hooks/useAttributeFilterHandlerState.d.ts.map +1 -1
- package/esm/AttributeFilter/hooks/useAttributeFilterHandlerState.js.map +1 -1
- package/esm/AttributeFilter/hooks/useResolveDependentDateFiltersInput.d.ts +6 -0
- package/esm/AttributeFilter/hooks/useResolveDependentDateFiltersInput.d.ts.map +1 -0
- package/esm/AttributeFilter/hooks/useResolveDependentDateFiltersInput.js +31 -0
- package/esm/AttributeFilter/hooks/useResolveDependentDateFiltersInput.js.map +1 -0
- package/esm/AttributeFilter/types.d.ts +7 -1
- package/esm/AttributeFilter/types.d.ts.map +1 -1
- package/esm/AttributeFilterHandler/internal/bridge.d.ts +3 -3
- package/esm/AttributeFilterHandler/internal/bridge.d.ts.map +1 -1
- package/esm/AttributeFilterHandler/internal/bridge.js.map +1 -1
- package/esm/AttributeFilterHandler/internal/loader.d.ts +3 -3
- package/esm/AttributeFilterHandler/internal/loader.d.ts.map +1 -1
- package/esm/AttributeFilterHandler/internal/loader.js.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/elements/elementsReducers.d.ts +2 -2
- package/esm/AttributeFilterHandler/internal/redux/elements/elementsReducers.d.ts.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/elements/elementsReducers.js.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/elements/elementsSelectors.d.ts +2 -2
- package/esm/AttributeFilterHandler/internal/redux/elements/elementsSelectors.d.ts.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/elements/elementsSelectors.js.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/init/initSaga.d.ts.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/init/initSaga.js +5 -2
- package/esm/AttributeFilterHandler/internal/redux/init/initSaga.js.map +1 -1
- package/esm/AttributeFilterHandler/internal/redux/store/rootReducers.d.ts +1 -1
- package/esm/AttributeFilterHandler/internal/redux/store/slice.d.ts +1 -1
- package/esm/AttributeFilterHandler/types/elementsLoader.d.ts +4 -4
- package/esm/AttributeFilterHandler/types/elementsLoader.d.ts.map +1 -1
- package/esm/sdk-ui-filters.d.ts +35 -3
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementsQueryOptionsElementsSpecification, IElementsQueryAttributeFilter } from "@gooddata/sdk-backend-spi";
|
|
2
|
-
import { IAttributeElement, IAttributeMetadataObject, IMeasure, IRelativeDateFilter, SortDirection, ObjRef } from "@gooddata/sdk-model";
|
|
2
|
+
import { IAttributeElement, IAttributeMetadataObject, IMeasure, IRelativeDateFilter, SortDirection, ObjRef, IAbsoluteDateFilter } from "@gooddata/sdk-model";
|
|
3
3
|
import { GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
4
4
|
import { CallbackRegistration, Correlation, AsyncOperationStatus, CallbackPayloadWithCorrelation, AttributeElementKey } from "./common.js";
|
|
5
5
|
/**
|
|
@@ -33,7 +33,7 @@ export interface ILoadElementsOptions {
|
|
|
33
33
|
order?: SortDirection;
|
|
34
34
|
limitingAttributeFilters?: IElementsQueryAttributeFilter[];
|
|
35
35
|
limitingMeasures?: IMeasure[];
|
|
36
|
-
limitingDateFilters?: IRelativeDateFilter[];
|
|
36
|
+
limitingDateFilters?: IRelativeDateFilter[] | IAbsoluteDateFilter[];
|
|
37
37
|
limitingValidationItems?: ObjRef[];
|
|
38
38
|
elements?: ElementsQueryOptionsElementsSpecification;
|
|
39
39
|
includeTotalCountWithoutFilters?: boolean;
|
|
@@ -195,7 +195,7 @@ export interface IAttributeElementLoader {
|
|
|
195
195
|
*
|
|
196
196
|
* @param filters - filters to use.
|
|
197
197
|
*/
|
|
198
|
-
setLimitingDateFilters(filters: IRelativeDateFilter[]): void;
|
|
198
|
+
setLimitingDateFilters(filters: (IRelativeDateFilter | IAbsoluteDateFilter)[]): void;
|
|
199
199
|
/**
|
|
200
200
|
* Returns the current offset used for the attribute element loads.
|
|
201
201
|
*/
|
|
@@ -227,7 +227,7 @@ export interface IAttributeElementLoader {
|
|
|
227
227
|
/**
|
|
228
228
|
* Returns the current date filters used to filter the attribute element loads.
|
|
229
229
|
*/
|
|
230
|
-
getLimitingDateFilters(): IRelativeDateFilter[];
|
|
230
|
+
getLimitingDateFilters(): (IRelativeDateFilter | IAbsoluteDateFilter)[];
|
|
231
231
|
/**
|
|
232
232
|
* Returns all attribute elements loaded by initialElementsPageLoad and nextElementsPageLoad methods.
|
|
233
233
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementsLoader.d.ts","sourceRoot":"","sources":["../../../src/AttributeFilterHandler/types/elementsLoader.ts"],"names":[],"mappings":"AACA,OAAO,EACH,yCAAyC,EACzC,6BAA6B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,QAAQ,EACR,mBAAmB,EACnB,aAAa,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"elementsLoader.d.ts","sourceRoot":"","sources":["../../../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G;AACH,MAAM,MAAM,8CAA8C,GAAG,OAAO,CAAC,8BAA8B,CAAC,GAChG,6BAA6B,CAAC;AAElC;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG,OAAO,CAAC,8BAA8B,CAAC,GAAG;IACjG,KAAK,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,6CAA6C,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAEpG;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG,8BAA8B,CAAC;AAElF;;;;GAIG;AACH,MAAM,MAAM,sCAAsC,GAAG,8BAA8B,CAAC;AAEpF;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG,8BAA8B,CAAC;IAC9E,KAAK,EAAE,gBAAgB,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,qCAAqC,GAAG,8BAA8B,CAAC"}
|
package/esm/sdk-ui-filters.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { DateString } from '@gooddata/sdk-model';
|
|
|
18
18
|
import { ElementsQueryOptionsElementsSpecification } from '@gooddata/sdk-backend-spi';
|
|
19
19
|
import { GoodDataSdkError } from '@gooddata/sdk-ui';
|
|
20
20
|
import { GranularityIntlKey as GranularityIntlKey_2 } from './constants/i18n.js';
|
|
21
|
+
import { IAbsoluteDateFilter } from '@gooddata/sdk-model';
|
|
21
22
|
import { IAbsoluteDateFilterForm } from '@gooddata/sdk-model';
|
|
22
23
|
import { IAbsoluteDateFilterPreset } from '@gooddata/sdk-model';
|
|
23
24
|
import { IAlignPoint } from '@gooddata/sdk-ui-kit';
|
|
@@ -27,6 +28,7 @@ import { IAttributeDisplayFormMetadataObject } from '@gooddata/sdk-model';
|
|
|
27
28
|
import { IAttributeElement } from '@gooddata/sdk-model';
|
|
28
29
|
import { IAttributeFilter } from '@gooddata/sdk-model';
|
|
29
30
|
import { IAttributeMetadataObject } from '@gooddata/sdk-model';
|
|
31
|
+
import { IDashboardDateFilter } from '@gooddata/sdk-model';
|
|
30
32
|
import { IDataSetMetadataObject } from '@gooddata/sdk-model';
|
|
31
33
|
import { IDateAndMessageTranslator as IDateAndMessageTranslator_2 } from './utils/Translations/Translators.js';
|
|
32
34
|
import { IDateFilter } from '@gooddata/sdk-model';
|
|
@@ -285,6 +287,12 @@ export declare type AttributeFilterControllerData = {
|
|
|
285
287
|
* Current validation items used to limit attribute filter elements.
|
|
286
288
|
*/
|
|
287
289
|
limitingValidationItems?: ObjRef[];
|
|
290
|
+
/**
|
|
291
|
+
* If true, AttributeFilter is filtering elements by dependent date filters.
|
|
292
|
+
*
|
|
293
|
+
* @beta
|
|
294
|
+
*/
|
|
295
|
+
isFilteredByDependentDateFilters?: boolean;
|
|
288
296
|
};
|
|
289
297
|
|
|
290
298
|
/**
|
|
@@ -761,7 +769,7 @@ export declare interface IAttributeElementLoader {
|
|
|
761
769
|
*
|
|
762
770
|
* @param filters - filters to use.
|
|
763
771
|
*/
|
|
764
|
-
setLimitingDateFilters(filters: IRelativeDateFilter[]): void;
|
|
772
|
+
setLimitingDateFilters(filters: (IRelativeDateFilter | IAbsoluteDateFilter)[]): void;
|
|
765
773
|
/**
|
|
766
774
|
* Returns the current offset used for the attribute element loads.
|
|
767
775
|
*/
|
|
@@ -793,7 +801,7 @@ export declare interface IAttributeElementLoader {
|
|
|
793
801
|
/**
|
|
794
802
|
* Returns the current date filters used to filter the attribute element loads.
|
|
795
803
|
*/
|
|
796
|
-
getLimitingDateFilters(): IRelativeDateFilter[];
|
|
804
|
+
getLimitingDateFilters(): (IRelativeDateFilter | IAbsoluteDateFilter)[];
|
|
797
805
|
/**
|
|
798
806
|
* Returns all attribute elements loaded by initialElementsPageLoad and nextElementsPageLoad methods.
|
|
799
807
|
*
|
|
@@ -1147,6 +1155,12 @@ export declare interface IAttributeFilterCoreProps {
|
|
|
1147
1155
|
* The property is supported only by some backend. The backends that do not support it will ignore it.
|
|
1148
1156
|
*/
|
|
1149
1157
|
validateElementsBy?: ObjRef[];
|
|
1158
|
+
/**
|
|
1159
|
+
* Specifies a dependent date filter that will be used to reduce options for for current attribute filter.
|
|
1160
|
+
*
|
|
1161
|
+
* @beta
|
|
1162
|
+
*/
|
|
1163
|
+
dependentDateFilters?: IDashboardDateFilter[];
|
|
1150
1164
|
/**
|
|
1151
1165
|
* Specify title for the attribute filter.
|
|
1152
1166
|
*
|
|
@@ -1773,6 +1787,12 @@ export declare interface IAttributeFilterElementsSelectProps {
|
|
|
1773
1787
|
* This enables "show filtered elements" option which manages showing filtered elements.
|
|
1774
1788
|
*/
|
|
1775
1789
|
enableShowingFilteredElements?: boolean;
|
|
1790
|
+
/**
|
|
1791
|
+
* Indicate that elements are filtered by dependent date filters
|
|
1792
|
+
*
|
|
1793
|
+
* @beta
|
|
1794
|
+
*/
|
|
1795
|
+
isFilteredByDependentDateFilters?: boolean;
|
|
1776
1796
|
/**
|
|
1777
1797
|
* Title of the attribute
|
|
1778
1798
|
* @remarks Used only when showing filtered elements is enabled.
|
|
@@ -1815,6 +1835,12 @@ export declare interface IAttributeFilterEmptyResultProps {
|
|
|
1815
1835
|
* Indicate that items are filtered or not
|
|
1816
1836
|
*/
|
|
1817
1837
|
isFilteredByParentFilters: boolean;
|
|
1838
|
+
/**
|
|
1839
|
+
* Indicate that items are filtered or not by dependent date filters
|
|
1840
|
+
*
|
|
1841
|
+
* @beta
|
|
1842
|
+
*/
|
|
1843
|
+
isFilteredByDependentDateFilters?: boolean;
|
|
1818
1844
|
/**
|
|
1819
1845
|
* Current search string
|
|
1820
1846
|
*/
|
|
@@ -2087,6 +2113,12 @@ export declare interface IAttributeFilterStatusBarProps {
|
|
|
2087
2113
|
* @remarks Use only when platform supports limiting validation items.
|
|
2088
2114
|
*/
|
|
2089
2115
|
isFilteredByLimitingValidationItems?: boolean;
|
|
2116
|
+
/**
|
|
2117
|
+
* Indicates if the elements are filtered by dependent date filters or not.
|
|
2118
|
+
*
|
|
2119
|
+
* @beta
|
|
2120
|
+
*/
|
|
2121
|
+
isFilteredByDependentDateFilters?: boolean;
|
|
2090
2122
|
/**
|
|
2091
2123
|
* List of parent filter titles that filter current elements.
|
|
2092
2124
|
*
|
|
@@ -2467,7 +2499,7 @@ export declare interface ILoadElementsOptions {
|
|
|
2467
2499
|
order?: SortDirection;
|
|
2468
2500
|
limitingAttributeFilters?: IElementsQueryAttributeFilter[];
|
|
2469
2501
|
limitingMeasures?: IMeasure[];
|
|
2470
|
-
limitingDateFilters?: IRelativeDateFilter[];
|
|
2502
|
+
limitingDateFilters?: IRelativeDateFilter[] | IAbsoluteDateFilter[];
|
|
2471
2503
|
limitingValidationItems?: ObjRef[];
|
|
2472
2504
|
elements?: ElementsQueryOptionsElementsSpecification;
|
|
2473
2505
|
includeTotalCountWithoutFilters?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-filters",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-alpha.2",
|
|
4
4
|
"description": "GoodData.UI SDK - Filter Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"ts-invariant": "^0.7.5",
|
|
48
48
|
"tslib": "^2.5.0",
|
|
49
49
|
"uuid": "^8.3.2",
|
|
50
|
-
"@gooddata/sdk-backend-spi": "
|
|
51
|
-
"@gooddata/sdk-
|
|
52
|
-
"@gooddata/sdk-
|
|
53
|
-
"@gooddata/
|
|
54
|
-
"@gooddata/
|
|
50
|
+
"@gooddata/sdk-backend-spi": "10.0.0-alpha.2",
|
|
51
|
+
"@gooddata/sdk-model": "10.0.0-alpha.2",
|
|
52
|
+
"@gooddata/sdk-ui-kit": "10.0.0-alpha.2",
|
|
53
|
+
"@gooddata/util": "10.0.0-alpha.2",
|
|
54
|
+
"@gooddata/sdk-ui": "10.0.0-alpha.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"typescript": "5.3.3",
|
|
102
102
|
"vitest": "1.0.4",
|
|
103
103
|
"vitest-dom": "0.1.1",
|
|
104
|
-
"@gooddata/reference-workspace": "
|
|
105
|
-
"@gooddata/sdk-backend-mockingbird": "
|
|
104
|
+
"@gooddata/reference-workspace": "10.0.0-alpha.2",
|
|
105
|
+
"@gooddata/sdk-backend-mockingbird": "10.0.0-alpha.2"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"clean": "rm -rf ci dist esm coverage *.log styles/css tsconfig.tsbuildinfo",
|