@gooddata/sdk-ui-analytical-designer 11.70.0-alpha.2 → 11.70.0-alpha.3
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 +47 -47
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts +0 -4
- package/esm/components/buckets/MeasureDateFilterPicker.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterPicker.js +8 -3
- package/esm/components/buckets/MeasureDateFilterTitle.d.ts.map +1 -1
- package/esm/components/buckets/MeasureDateFilterTitle.js +5 -14
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts +2 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.js +6 -2
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts +2 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.js +2 -2
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts +6 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.js +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts +2 -2
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/Buttons/applyButtonHook.js +16 -8
- package/esm/components/filterBar/dateFilter/DateFilter.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/DateFilter.js +11 -3
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.d.ts +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.d.ts.map +1 -1
- package/esm/components/filterBar/dateFilter/FilterButton/SelectedPresetName.js +10 -16
- package/esm/models/date_filter.d.ts +1 -5
- package/esm/models/date_filter.d.ts.map +1 -1
- package/esm/models/date_filter.js +2 -13
- package/esm/models/empty_date_values_title.d.ts +15 -0
- package/esm/models/empty_date_values_title.d.ts.map +1 -0
- package/esm/models/empty_date_values_title.js +25 -0
- package/esm/models/metadata.d.ts +12 -6
- package/esm/models/metadata.d.ts.map +1 -1
- package/esm/models/metadata.js +30 -17
- package/esm/postMessageApi/sagas/api_token_origin_check.d.ts +23 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.d.ts.map +1 -0
- package/esm/postMessageApi/sagas/api_token_origin_check.js +58 -0
- package/esm/postMessageApi/sagas/api_token_received_saga.d.ts +10 -2
- package/esm/postMessageApi/sagas/api_token_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/api_token_received_saga.js +19 -2
- package/esm/postMessageApi/sagas/command_received_saga.d.ts +0 -6
- package/esm/postMessageApi/sagas/command_received_saga.d.ts.map +1 -1
- package/esm/postMessageApi/sagas/command_received_saga.js +14 -3
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts +0 -3
- package/esm/postMessageApi/sagas/incoming_command_sagas.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.d.ts +2 -3
- package/esm/sagas/catalog/catalog_saga.d.ts.map +1 -1
- package/esm/sagas/catalog/catalog_saga.js +26 -18
- package/esm/sagas/sagas.d.ts +0 -3
- package/esm/sagas/sagas.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.d.ts +23 -2
- package/esm/selectors/feature_flag_selector.d.ts.map +1 -1
- package/esm/selectors/feature_flag_selector.js +2 -0
- package/esm/selectors/report_visualization_selector.d.ts +4 -0
- package/esm/selectors/report_visualization_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.d.ts +2 -0
- package/esm/selectors/save_report_selector.d.ts.map +1 -1
- package/esm/selectors/save_report_selector.js +8 -6
- package/esm/store/catalog/catalog_reducer.d.ts +2 -1
- package/esm/store/catalog/catalog_reducer.d.ts.map +1 -1
- package/esm/store/catalog/catalog_reducer.js +3 -0
- package/esm/store/catalog/catalog_selector.d.ts +124 -0
- package/esm/store/catalog/catalog_selector.d.ts.map +1 -1
- package/esm/store/catalog/catalog_selector.js +6 -2
- package/esm/store/catalog/catalog_store_actions.d.ts +3 -4
- package/esm/store/catalog/catalog_store_actions.d.ts.map +1 -1
- package/esm/store/catalog/catalog_store_actions.js +1 -1
- package/esm/store/catalog/catalog_types.d.ts +2 -1
- package/esm/store/catalog/catalog_types.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.d.ts.map +1 -1
- package/esm/store/metric_editor/metric_editor_sagas.js +10 -2
- package/esm/translations/en-US.json +8 -0
- package/esm/utils/custom_mouse_backend.d.ts.map +1 -1
- package/esm/utils/custom_mouse_backend.js +9 -2
- package/esm/utils/sdkModelToADRep/FilterConverter.d.ts.map +1 -1
- package/esm/utils/sdkModelToADRep/FilterConverter.js +4 -1
- package/package.json +21 -21
package/NOTICE
CHANGED
|
@@ -3,11 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/sdk-ui-analytical-designer (11.70.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-ui-analytical-designer (11.70.0-alpha.3)
|
|
7
7
|
Package License: LicenseRef-LICENSE
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
-
Date generated: 2026-11-
|
|
10
|
-
Revision ID:
|
|
9
|
+
Date generated: 2026-11-23
|
|
10
|
+
Revision ID: 4230cf24920a004f6f287b5132f490ceb8c41164
|
|
11
11
|
|
|
12
12
|
This notice lists the components that @gooddata/sdk-ui-analytical-designer depends on, directly or through other
|
|
13
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -19,28 +19,28 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/api-client-tiger (11.70.0-alpha.
|
|
23
|
-
- @gooddata/sdk-backend-base (11.70.0-alpha.
|
|
24
|
-
- @gooddata/sdk-backend-spi (11.70.0-alpha.
|
|
25
|
-
- @gooddata/sdk-backend-tiger (11.70.0-alpha.
|
|
26
|
-
- @gooddata/sdk-code-convertors (11.70.0-alpha.
|
|
27
|
-
- @gooddata/sdk-code-schemas (11.70.0-alpha.
|
|
28
|
-
- @gooddata/sdk-embedding (11.70.0-alpha.
|
|
29
|
-
- @gooddata/sdk-maql-language-server (11.70.0-alpha.
|
|
30
|
-
- @gooddata/sdk-model (11.70.0-alpha.
|
|
31
|
-
- @gooddata/sdk-pluggable-application-model (11.70.0-alpha.
|
|
32
|
-
- @gooddata/sdk-ui (11.70.0-alpha.
|
|
33
|
-
- @gooddata/sdk-ui-charts (11.70.0-alpha.
|
|
34
|
-
- @gooddata/sdk-ui-ext (11.70.0-alpha.
|
|
35
|
-
- @gooddata/sdk-ui-filters (11.70.0-alpha.
|
|
36
|
-
- @gooddata/sdk-ui-geo (11.70.0-alpha.
|
|
37
|
-
- @gooddata/sdk-ui-kit (11.70.0-alpha.
|
|
38
|
-
- @gooddata/sdk-ui-metric-component (11.70.0-alpha.
|
|
39
|
-
- @gooddata/sdk-ui-pivot (11.70.0-alpha.
|
|
40
|
-
- @gooddata/sdk-ui-semantic-search (11.70.0-alpha.
|
|
41
|
-
- @gooddata/sdk-ui-theme-provider (11.70.0-alpha.
|
|
42
|
-
- @gooddata/sdk-ui-vis-commons (11.70.0-alpha.
|
|
43
|
-
- @gooddata/util (11.70.0-alpha.
|
|
22
|
+
- @gooddata/api-client-tiger (11.70.0-alpha.3) [MIT] — Transitive
|
|
23
|
+
- @gooddata/sdk-backend-base (11.70.0-alpha.3) [MIT] — Direct
|
|
24
|
+
- @gooddata/sdk-backend-spi (11.70.0-alpha.3) [MIT] — Direct
|
|
25
|
+
- @gooddata/sdk-backend-tiger (11.70.0-alpha.3) [MIT] — Direct
|
|
26
|
+
- @gooddata/sdk-code-convertors (11.70.0-alpha.3) [MIT] — Transitive
|
|
27
|
+
- @gooddata/sdk-code-schemas (11.70.0-alpha.3) [MIT] — Transitive
|
|
28
|
+
- @gooddata/sdk-embedding (11.70.0-alpha.3) [MIT] — Direct
|
|
29
|
+
- @gooddata/sdk-maql-language-server (11.70.0-alpha.3) [MIT] — Transitive
|
|
30
|
+
- @gooddata/sdk-model (11.70.0-alpha.3) [MIT] — Direct
|
|
31
|
+
- @gooddata/sdk-pluggable-application-model (11.70.0-alpha.3) [MIT] — Direct
|
|
32
|
+
- @gooddata/sdk-ui (11.70.0-alpha.3) [MIT] — Direct
|
|
33
|
+
- @gooddata/sdk-ui-charts (11.70.0-alpha.3) [LicenseRef-LICENSE] — Transitive
|
|
34
|
+
- @gooddata/sdk-ui-ext (11.70.0-alpha.3) [LicenseRef-LICENSE] — Direct
|
|
35
|
+
- @gooddata/sdk-ui-filters (11.70.0-alpha.3) [MIT] — Direct
|
|
36
|
+
- @gooddata/sdk-ui-geo (11.70.0-alpha.3) [LicenseRef-LICENSE] — Transitive
|
|
37
|
+
- @gooddata/sdk-ui-kit (11.70.0-alpha.3) [MIT] — Direct
|
|
38
|
+
- @gooddata/sdk-ui-metric-component (11.70.0-alpha.3) [LicenseRef-LICENSE] — Direct
|
|
39
|
+
- @gooddata/sdk-ui-pivot (11.70.0-alpha.3) [LicenseRef-LICENSE] — Direct
|
|
40
|
+
- @gooddata/sdk-ui-semantic-search (11.70.0-alpha.3) [MIT] — Direct
|
|
41
|
+
- @gooddata/sdk-ui-theme-provider (11.70.0-alpha.3) [MIT] — Direct
|
|
42
|
+
- @gooddata/sdk-ui-vis-commons (11.70.0-alpha.3) [MIT] — Transitive
|
|
43
|
+
- @gooddata/util (11.70.0-alpha.3) [MIT] — Direct
|
|
44
44
|
|
|
45
45
|
External components
|
|
46
46
|
- @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
|
|
@@ -480,7 +480,7 @@ Local GoodData SDK components
|
|
|
480
480
|
================================================================================
|
|
481
481
|
|
|
482
482
|
--------------------------------------------------------------------------------
|
|
483
|
-
Package Title: @gooddata/api-client-tiger (11.70.0-alpha.
|
|
483
|
+
Package Title: @gooddata/api-client-tiger (11.70.0-alpha.3)
|
|
484
484
|
Package Source: Local workspace
|
|
485
485
|
Package Depth: Transitive
|
|
486
486
|
--------------------------------------------------------------------------------
|
|
@@ -498,7 +498,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
498
498
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
499
499
|
|
|
500
500
|
--------------------------------------------------------------------------------
|
|
501
|
-
Package Title: @gooddata/sdk-backend-base (11.70.0-alpha.
|
|
501
|
+
Package Title: @gooddata/sdk-backend-base (11.70.0-alpha.3)
|
|
502
502
|
Package Source: Local workspace
|
|
503
503
|
Package Depth: Direct
|
|
504
504
|
--------------------------------------------------------------------------------
|
|
@@ -516,7 +516,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
516
516
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
517
517
|
|
|
518
518
|
--------------------------------------------------------------------------------
|
|
519
|
-
Package Title: @gooddata/sdk-backend-spi (11.70.0-alpha.
|
|
519
|
+
Package Title: @gooddata/sdk-backend-spi (11.70.0-alpha.3)
|
|
520
520
|
Package Source: Local workspace
|
|
521
521
|
Package Depth: Direct
|
|
522
522
|
--------------------------------------------------------------------------------
|
|
@@ -534,7 +534,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
534
534
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
535
535
|
|
|
536
536
|
--------------------------------------------------------------------------------
|
|
537
|
-
Package Title: @gooddata/sdk-backend-tiger (11.70.0-alpha.
|
|
537
|
+
Package Title: @gooddata/sdk-backend-tiger (11.70.0-alpha.3)
|
|
538
538
|
Package Source: Local workspace
|
|
539
539
|
Package Depth: Direct
|
|
540
540
|
--------------------------------------------------------------------------------
|
|
@@ -552,7 +552,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
552
552
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
553
553
|
|
|
554
554
|
--------------------------------------------------------------------------------
|
|
555
|
-
Package Title: @gooddata/sdk-code-convertors (11.70.0-alpha.
|
|
555
|
+
Package Title: @gooddata/sdk-code-convertors (11.70.0-alpha.3)
|
|
556
556
|
Package Source: Local workspace
|
|
557
557
|
Package Depth: Transitive
|
|
558
558
|
--------------------------------------------------------------------------------
|
|
@@ -570,7 +570,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
570
570
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
571
571
|
|
|
572
572
|
--------------------------------------------------------------------------------
|
|
573
|
-
Package Title: @gooddata/sdk-code-schemas (11.70.0-alpha.
|
|
573
|
+
Package Title: @gooddata/sdk-code-schemas (11.70.0-alpha.3)
|
|
574
574
|
Package Source: Local workspace
|
|
575
575
|
Package Depth: Transitive
|
|
576
576
|
--------------------------------------------------------------------------------
|
|
@@ -600,7 +600,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
600
600
|
SOFTWARE.
|
|
601
601
|
|
|
602
602
|
--------------------------------------------------------------------------------
|
|
603
|
-
Package Title: @gooddata/sdk-embedding (11.70.0-alpha.
|
|
603
|
+
Package Title: @gooddata/sdk-embedding (11.70.0-alpha.3)
|
|
604
604
|
Package Source: Local workspace
|
|
605
605
|
Package Depth: Direct
|
|
606
606
|
--------------------------------------------------------------------------------
|
|
@@ -618,7 +618,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
618
618
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
619
619
|
|
|
620
620
|
--------------------------------------------------------------------------------
|
|
621
|
-
Package Title: @gooddata/sdk-maql-language-server (11.70.0-alpha.
|
|
621
|
+
Package Title: @gooddata/sdk-maql-language-server (11.70.0-alpha.3)
|
|
622
622
|
Package Source: Local workspace
|
|
623
623
|
Package Depth: Transitive
|
|
624
624
|
--------------------------------------------------------------------------------
|
|
@@ -636,7 +636,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
636
636
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
637
637
|
|
|
638
638
|
--------------------------------------------------------------------------------
|
|
639
|
-
Package Title: @gooddata/sdk-model (11.70.0-alpha.
|
|
639
|
+
Package Title: @gooddata/sdk-model (11.70.0-alpha.3)
|
|
640
640
|
Package Source: Local workspace
|
|
641
641
|
Package Depth: Direct
|
|
642
642
|
--------------------------------------------------------------------------------
|
|
@@ -654,7 +654,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
654
654
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
655
655
|
|
|
656
656
|
--------------------------------------------------------------------------------
|
|
657
|
-
Package Title: @gooddata/sdk-pluggable-application-model (11.70.0-alpha.
|
|
657
|
+
Package Title: @gooddata/sdk-pluggable-application-model (11.70.0-alpha.3)
|
|
658
658
|
Package Source: Local workspace
|
|
659
659
|
Package Depth: Direct
|
|
660
660
|
--------------------------------------------------------------------------------
|
|
@@ -684,7 +684,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
684
684
|
SOFTWARE.
|
|
685
685
|
|
|
686
686
|
--------------------------------------------------------------------------------
|
|
687
|
-
Package Title: @gooddata/sdk-ui (11.70.0-alpha.
|
|
687
|
+
Package Title: @gooddata/sdk-ui (11.70.0-alpha.3)
|
|
688
688
|
Package Source: Local workspace
|
|
689
689
|
Package Depth: Direct
|
|
690
690
|
--------------------------------------------------------------------------------
|
|
@@ -702,7 +702,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
702
702
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
703
703
|
|
|
704
704
|
--------------------------------------------------------------------------------
|
|
705
|
-
Package Title: @gooddata/sdk-ui-charts (11.70.0-alpha.
|
|
705
|
+
Package Title: @gooddata/sdk-ui-charts (11.70.0-alpha.3)
|
|
706
706
|
Package Source: Local workspace
|
|
707
707
|
Package Depth: Transitive
|
|
708
708
|
--------------------------------------------------------------------------------
|
|
@@ -742,7 +742,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
742
742
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
743
743
|
|
|
744
744
|
--------------------------------------------------------------------------------
|
|
745
|
-
Package Title: @gooddata/sdk-ui-ext (11.70.0-alpha.
|
|
745
|
+
Package Title: @gooddata/sdk-ui-ext (11.70.0-alpha.3)
|
|
746
746
|
Package Source: Local workspace
|
|
747
747
|
Package Depth: Direct
|
|
748
748
|
--------------------------------------------------------------------------------
|
|
@@ -782,7 +782,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
782
782
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
783
783
|
|
|
784
784
|
--------------------------------------------------------------------------------
|
|
785
|
-
Package Title: @gooddata/sdk-ui-filters (11.70.0-alpha.
|
|
785
|
+
Package Title: @gooddata/sdk-ui-filters (11.70.0-alpha.3)
|
|
786
786
|
Package Source: Local workspace
|
|
787
787
|
Package Depth: Direct
|
|
788
788
|
--------------------------------------------------------------------------------
|
|
@@ -800,7 +800,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
800
800
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
801
801
|
|
|
802
802
|
--------------------------------------------------------------------------------
|
|
803
|
-
Package Title: @gooddata/sdk-ui-geo (11.70.0-alpha.
|
|
803
|
+
Package Title: @gooddata/sdk-ui-geo (11.70.0-alpha.3)
|
|
804
804
|
Package Source: Local workspace
|
|
805
805
|
Package Depth: Transitive
|
|
806
806
|
--------------------------------------------------------------------------------
|
|
@@ -840,7 +840,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
840
840
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
841
841
|
|
|
842
842
|
--------------------------------------------------------------------------------
|
|
843
|
-
Package Title: @gooddata/sdk-ui-kit (11.70.0-alpha.
|
|
843
|
+
Package Title: @gooddata/sdk-ui-kit (11.70.0-alpha.3)
|
|
844
844
|
Package Source: Local workspace
|
|
845
845
|
Package Depth: Direct
|
|
846
846
|
--------------------------------------------------------------------------------
|
|
@@ -858,7 +858,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
858
858
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
859
859
|
|
|
860
860
|
--------------------------------------------------------------------------------
|
|
861
|
-
Package Title: @gooddata/sdk-ui-metric-component (11.70.0-alpha.
|
|
861
|
+
Package Title: @gooddata/sdk-ui-metric-component (11.70.0-alpha.3)
|
|
862
862
|
Package Source: Local workspace
|
|
863
863
|
Package Depth: Direct
|
|
864
864
|
--------------------------------------------------------------------------------
|
|
@@ -898,7 +898,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
898
898
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
899
899
|
|
|
900
900
|
--------------------------------------------------------------------------------
|
|
901
|
-
Package Title: @gooddata/sdk-ui-pivot (11.70.0-alpha.
|
|
901
|
+
Package Title: @gooddata/sdk-ui-pivot (11.70.0-alpha.3)
|
|
902
902
|
Package Source: Local workspace
|
|
903
903
|
Package Depth: Direct
|
|
904
904
|
--------------------------------------------------------------------------------
|
|
@@ -938,7 +938,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
938
938
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
939
939
|
|
|
940
940
|
--------------------------------------------------------------------------------
|
|
941
|
-
Package Title: @gooddata/sdk-ui-semantic-search (11.70.0-alpha.
|
|
941
|
+
Package Title: @gooddata/sdk-ui-semantic-search (11.70.0-alpha.3)
|
|
942
942
|
Package Source: Local workspace
|
|
943
943
|
Package Depth: Direct
|
|
944
944
|
--------------------------------------------------------------------------------
|
|
@@ -956,7 +956,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
956
956
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
957
957
|
|
|
958
958
|
--------------------------------------------------------------------------------
|
|
959
|
-
Package Title: @gooddata/sdk-ui-theme-provider (11.70.0-alpha.
|
|
959
|
+
Package Title: @gooddata/sdk-ui-theme-provider (11.70.0-alpha.3)
|
|
960
960
|
Package Source: Local workspace
|
|
961
961
|
Package Depth: Direct
|
|
962
962
|
--------------------------------------------------------------------------------
|
|
@@ -974,7 +974,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
974
974
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
975
975
|
|
|
976
976
|
--------------------------------------------------------------------------------
|
|
977
|
-
Package Title: @gooddata/sdk-ui-vis-commons (11.70.0-alpha.
|
|
977
|
+
Package Title: @gooddata/sdk-ui-vis-commons (11.70.0-alpha.3)
|
|
978
978
|
Package Source: Local workspace
|
|
979
979
|
Package Depth: Transitive
|
|
980
980
|
--------------------------------------------------------------------------------
|
|
@@ -992,7 +992,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
992
992
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
993
993
|
|
|
994
994
|
--------------------------------------------------------------------------------
|
|
995
|
-
Package Title: @gooddata/util (11.70.0-alpha.
|
|
995
|
+
Package Title: @gooddata/util (11.70.0-alpha.3)
|
|
996
996
|
Package Source: Local workspace
|
|
997
997
|
Package Depth: Direct
|
|
998
998
|
--------------------------------------------------------------------------------
|
|
@@ -48,9 +48,5 @@ export interface IMeasureDateFilterPickerProps {
|
|
|
48
48
|
onApply: (filter: IDateFilterOption, additionalDateAttributeFilters: IAttributeFilter[], emptyDateValuesFilter: EmptyDateValuesFilterMode | undefined) => void;
|
|
49
49
|
onCancel: () => void;
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Metric date filter dropdown built from the same sections as the insight date filter picker in the filter
|
|
53
|
-
* bar, without over-time comparison.
|
|
54
|
-
*/
|
|
55
51
|
export declare function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDataset, dateDatasets, onDateDatasetChange, loadDateDatasets, isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility, relativeDateFilterPresets, dateDatasetRefsWithGranularities, dateFormat, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, activeCalendars, additionalDateAttributeFilters, areAdditionalDateFiltersSupported, emptyDateValuesFilter, onApply, onCancel, }: IMeasureDateFilterPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
56
52
|
//# sourceMappingURL=MeasureDateFilterPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureDateFilterPicker.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilterPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAGjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAE9E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAWlF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAU5F,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,kBAAkB,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACtD,YAAY,EAAE,sBAAsB,CAAC;IACrC,mBAAmB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClE,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,4BAA4B,EAAE,OAAO,CAAC;IACtC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,yBAAyB,EAAE,6BAA6B,CAAC;IACzD,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B,EAAE,OAAO,CAAC;IACvC,2BAA2B,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACpD;;;OAGG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,OAAO,EAAE,CACL,MAAM,EAAE,iBAAiB,EACzB,8BAA8B,EAAE,gBAAgB,EAAE,EAClD,qBAAqB,EAAE,yBAAyB,GAAG,SAAS,KAC3D,IAAI,CAAC;IACV,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"MeasureDateFilterPicker.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilterPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAGjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAE9E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAWlF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAU5F,MAAM,WAAW,6BAA6B;IAC1C;;OAEG;IACH,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,kBAAkB,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACtD,YAAY,EAAE,sBAAsB,CAAC;IACrC,mBAAmB,EAAE,CAAC,WAAW,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClE,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,4BAA4B,EAAE,OAAO,CAAC;IACtC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,yBAAyB,EAAE,6BAA6B,CAAC;IACzD,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B,EAAE,OAAO,CAAC;IACvC,2BAA2B,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACpD;;;OAGG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;IAClD,OAAO,EAAE,CACL,MAAM,EAAE,iBAAiB,EACzB,8BAA8B,EAAE,gBAAgB,EAAE,EAClD,qBAAqB,EAAE,yBAAyB,GAAG,SAAS,KAC3D,IAAI,CAAC;IACV,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAYD,wBAAgB,uBAAuB,CAAC,EACpC,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,gCAAgC,EAChC,yBAAyB,EACzB,gCAAgC,EAChC,UAAU,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,SAAS,EACT,eAAe,EACf,8BAAsD,EACtD,iCAAyC,EACzC,qBAAqB,EACrB,OAAO,EACP,QAAQ,GACX,EAAE,6BAA6B,2CAkI/B"}
|
|
@@ -20,6 +20,11 @@ const NO_ADDITIONAL_FILTERS = [];
|
|
|
20
20
|
* Metric date filter dropdown built from the same sections as the insight date filter picker in the filter
|
|
21
21
|
* bar, without over-time comparison.
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* The picker exists only with the improved metric date filter, which writes the empty values mode as the
|
|
25
|
+
* date filter's own handling, executed with include on any period.
|
|
26
|
+
*/
|
|
27
|
+
const IS_INCLUDE_WITH_PERIOD_ALLOWED = true;
|
|
23
28
|
export function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDataset, dateDatasets, onDateDatasetChange, loadDateDatasets, isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility, relativeDateFilterPresets, dateDatasetRefsWithGranularities, dateFormat, isTimeForAbsoluteRangeEnabled, isSecondsGranularityEnabled, weekStart, activeCalendars, additionalDateAttributeFilters = NO_ADDITIONAL_FILTERS, areAdditionalDateFiltersSupported = false, emptyDateValuesFilter, onApply, onCancel, }) {
|
|
24
29
|
const originalFilter = filter ?? NO_PERIOD;
|
|
25
30
|
const [selectedFilter, setSelectedFilter] = useState(originalFilter);
|
|
@@ -31,9 +36,9 @@ export function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDatase
|
|
|
31
36
|
const isSecondsForAbsoluteRangeEnabled = isSecondsGranularityEnabled &&
|
|
32
37
|
datasetRefWithGranularitiesHasSeconds(dateDatasetRefsWithGranularities, dateDataset.ref);
|
|
33
38
|
// Without a stored filter, switching the dataset alone changes nothing that could be applied.
|
|
34
|
-
const isChangeApplicable = useApplyButtonEnabled(selectedFilter, originalFilter, dateDataset, filter ? appliedDateDataset : dateDataset, OverTimeComparisonTypes.NOTHING, OverTimeComparisonTypes.NOTHING, [], [], selectedAdditionalDateFilters, additionalDateAttributeFilters, true, selectedEmptyDateValuesFilterMode, emptyDateValuesFilter);
|
|
39
|
+
const isChangeApplicable = useApplyButtonEnabled(selectedFilter, originalFilter, dateDataset, filter ? appliedDateDataset : dateDataset, OverTimeComparisonTypes.NOTHING, OverTimeComparisonTypes.NOTHING, [], [], selectedAdditionalDateFilters, additionalDateAttributeFilters, true, selectedEmptyDateValuesFilterMode, emptyDateValuesFilter, IS_INCLUDE_WITH_PERIOD_ALLOWED);
|
|
35
40
|
const isApplyEnabled = isChangeApplicable;
|
|
36
|
-
const applyButtonTooltip = useDisabledApplyButtonTooltip(selectedFilter.filterOption, OverTimeComparisonTypes.NOTHING, true, selectedEmptyDateValuesFilterMode);
|
|
41
|
+
const applyButtonTooltip = useDisabledApplyButtonTooltip(selectedFilter.filterOption, OverTimeComparisonTypes.NOTHING, true, selectedEmptyDateValuesFilterMode, IS_INCLUDE_WITH_PERIOD_ALLOWED);
|
|
37
42
|
const apply = () => {
|
|
38
43
|
if (isApplyEnabled) {
|
|
39
44
|
// like the filter bar, "Only" forces All time and drops the additional filters
|
|
@@ -59,5 +64,5 @@ export function MeasureDateFilterPicker({ filter, dateDataset, appliedDateDatase
|
|
|
59
64
|
dismissMigratedFilters();
|
|
60
65
|
}
|
|
61
66
|
};
|
|
62
|
-
return (_jsxs(_Fragment, { children: [_jsx(DateDatasetSection, { selectedDateDataset: dateDataset, dateDatasets: dateDatasets, onChange: handleDateDatasetChange, loadDateDatasets: loadDateDatasets, isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility }), _jsxs("div", { className: "adi-date-filter-body s-adi-date-filter-body", children: [_jsx(PresetsSection, { filter: selectedFilter, onChange: setSelectedFilter, onEdit: dismissMigratedFilters, relativeDateFilterPresets: relativeDateFilterPresets, dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, submitForm: apply, isDisabled: isOtherFiltersDisabled, activeCalendars: activeCalendars }), areAdditionalDateFiltersSupported ? (_jsx(AdditionalDateFilters, { dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: selectedAdditionalDateFilters, migratedAdditionalFilters: currentMigratedFilters, emptyDateValuesFilterMode: selectedEmptyDateValuesFilterMode, onFiltersUpdate: setSelectedAdditionalDateFilters, onMigratedFiltersDismiss: dismissMigratedFilters, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, isDisabled: isOtherFiltersDisabled, isAllTime: isAllTime, showDateGranularities: true })) : null] }), _jsxs("div", { className: "filter-picker-buttons", children: [_jsx(CancelButton, { onClick: onCancel }), _jsx(ApplyButton, { onClick: apply, isEnabled: isApplyEnabled, tooltip: applyButtonTooltip })] })] }));
|
|
67
|
+
return (_jsxs(_Fragment, { children: [_jsx(DateDatasetSection, { selectedDateDataset: dateDataset, dateDatasets: dateDatasets, onChange: handleDateDatasetChange, loadDateDatasets: loadDateDatasets, isDateDatasetsDropdownLoaded: isDateDatasetsDropdownLoaded, enableUnavailableItemsVisibility: enableUnavailableItemsVisibility }), _jsxs("div", { className: "adi-date-filter-body s-adi-date-filter-body", children: [_jsx(PresetsSection, { filter: selectedFilter, onChange: setSelectedFilter, onEdit: dismissMigratedFilters, relativeDateFilterPresets: relativeDateFilterPresets, dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, dateFormat: dateFormat, isTimeForAbsoluteRangeEnabled: isTimeForAbsoluteRangeEnabled, isSecondsForAbsoluteRangeEnabled: isSecondsForAbsoluteRangeEnabled, isSecondsGranularityEnabled: isSecondsGranularityEnabled, weekStart: weekStart, submitForm: apply, isDisabled: isOtherFiltersDisabled, activeCalendars: activeCalendars }), areAdditionalDateFiltersSupported ? (_jsx(AdditionalDateFilters, { dateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: selectedAdditionalDateFilters, migratedAdditionalFilters: currentMigratedFilters, emptyDateValuesFilterMode: selectedEmptyDateValuesFilterMode, onFiltersUpdate: setSelectedAdditionalDateFilters, onMigratedFiltersDismiss: dismissMigratedFilters, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, isDisabled: isOtherFiltersDisabled, isAllTime: isAllTime, isIncludeWithPeriodAllowed: IS_INCLUDE_WITH_PERIOD_ALLOWED, showDateGranularities: true })) : null] }), _jsxs("div", { className: "filter-picker-buttons", children: [_jsx(CancelButton, { onClick: onCancel }), _jsx(ApplyButton, { onClick: apply, isEnabled: isApplyEnabled, tooltip: applyButtonTooltip })] })] }));
|
|
63
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureDateFilterTitle.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilterTitle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeasureDateFilterTitle.d.ts","sourceRoot":"","sources":["../../../src/components/buckets/MeasureDateFilterTitle.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AACrG,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAK5F,MAAM,WAAW,4BAA4B;IACzC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,0BAA0B,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAC1D,oGAAoG;IACpG,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;CACzD;AAiED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,4BAA4B,2CAkBzE"}
|
|
@@ -5,20 +5,12 @@ import { isAllTimeDateFilterOption } from "@gooddata/sdk-model";
|
|
|
5
5
|
import { IntlWrapper } from "@gooddata/sdk-ui";
|
|
6
6
|
import { DateFilterHelpers } from "@gooddata/sdk-ui-filters";
|
|
7
7
|
import { ShortenedText, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { getPeriodTitleWithEmptyValues } from "../../models/empty_date_values_title.js";
|
|
8
9
|
import { getAdditionalDateFilterEntries } from "../filterBar/dateFilter/FilterButton/AdditionalDateFilters.js";
|
|
9
10
|
const tooltipAlignPoints = [{ align: "bc tc" }];
|
|
10
|
-
function
|
|
11
|
-
if (mode === "only") {
|
|
12
|
-
return emptyValuesLabel;
|
|
13
|
-
}
|
|
14
|
-
if (mode === "exclude" && isAllTime) {
|
|
15
|
-
return `${periodTitle} ${exceptLabel} ${emptyValuesLabel}`;
|
|
16
|
-
}
|
|
17
|
-
return periodTitle;
|
|
18
|
-
}
|
|
19
|
-
function Title({ filter: { filterOption, excludeCurrentPeriod }, attributeTitle, dateFormat, additionalFilterLines, emptyDateValuesFilterMode, emptyValuesLabel, exceptLabel, }) {
|
|
11
|
+
function Title({ filter: { filterOption, excludeCurrentPeriod }, attributeTitle, dateFormat, additionalFilterLines, withEmptyValues, }) {
|
|
20
12
|
const sdkIntl = useIntl();
|
|
21
|
-
const periodTitle =
|
|
13
|
+
const periodTitle = withEmptyValues(DateFilterHelpers.getDateFilterTitleUsingTranslator(DateFilterHelpers.applyExcludeCurrentPeriod(filterOption, excludeCurrentPeriod), sdkIntl, "full", dateFormat), isAllTimeDateFilterOption(filterOption));
|
|
22
14
|
const lines = [
|
|
23
15
|
attributeTitle ? `${attributeTitle}: ${periodTitle}` : periodTitle,
|
|
24
16
|
...additionalFilterLines,
|
|
@@ -40,7 +32,6 @@ function Title({ filter: { filterOption, excludeCurrentPeriod }, attributeTitle,
|
|
|
40
32
|
export function MeasureDateFilterTitle(props) {
|
|
41
33
|
const intl = useIntl();
|
|
42
34
|
const additionalFilterLines = getAdditionalDateFilterEntries(props.additionalDateFilterLabels ?? [], false, intl).map(({ name, value }) => `${name}: ${value}`);
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
return (_jsx(IntlWrapper, { locale: intl.locale, children: _jsx(Title, { ...props, additionalFilterLines: additionalFilterLines, emptyValuesLabel: emptyValuesLabel, exceptLabel: exceptLabel }) }));
|
|
35
|
+
const withEmptyValues = (periodTitle, isAllTime) => getPeriodTitleWithEmptyValues(periodTitle, isAllTime, props.emptyDateValuesFilterMode, intl);
|
|
36
|
+
return (_jsx(IntlWrapper, { locale: intl.locale, children: _jsx(Title, { ...props, additionalFilterLines: additionalFilterLines, withEmptyValues: withEmptyValues }) }));
|
|
46
37
|
}
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.d.ts
CHANGED
|
@@ -19,9 +19,10 @@ export interface IAdditionalDateAttributesProps {
|
|
|
19
19
|
isEmptyDateValuesFilterOpenOnInit?: boolean;
|
|
20
20
|
isDisabled?: boolean;
|
|
21
21
|
isAllTime?: boolean;
|
|
22
|
+
isIncludeWithPeriodAllowed?: boolean;
|
|
22
23
|
showDateGranularities?: boolean;
|
|
23
24
|
isEmptyDateValuesFilterAvailable?: boolean;
|
|
24
25
|
}
|
|
25
|
-
export declare function AdditionalDateAttributes({ selectedDateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, onSelect, onApply, onClose, onRemove, migratedAdditionalFilters, autoOpenedFilters, emptyDateValuesFilterMode, onEmptyDateValuesFilterModeChange, onEmptyDateValuesFilterAdd, onEmptyDateValuesFilterRemove, isEmptyDateValuesFilterOpenOnInit, isDisabled, isAllTime, showDateGranularities, isEmptyDateValuesFilterAvailable, }: IAdditionalDateAttributesProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function AdditionalDateAttributes({ selectedDateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, onSelect, onApply, onClose, onRemove, migratedAdditionalFilters, autoOpenedFilters, emptyDateValuesFilterMode, onEmptyDateValuesFilterModeChange, onEmptyDateValuesFilterAdd, onEmptyDateValuesFilterRemove, isEmptyDateValuesFilterOpenOnInit, isDisabled, isAllTime, isIncludeWithPeriodAllowed, showDateGranularities, isEmptyDateValuesFilterAvailable, }: IAdditionalDateAttributesProps): import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
export declare const getAvailableGranularityOptions: (selectedAdditionalDateAttributes: IAttributeFilter[], attributeGranularities: IGranularityOptionWithRefs[]) => IGranularityOption[];
|
|
27
28
|
//# sourceMappingURL=AdditionalDateAttributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalDateAttributes.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAGH,KAAK,kBAAkB,EAE1B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACpC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAClC,MAAM,iCAAiC,CAAC;AAOzC,MAAM,WAAW,8BAA8B;IAC3C,mBAAmB,EAAE,qBAAqB,CAAC;IAC3C,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,8BAA8B,EAAE,gBAAgB,EAAE,CAAC;IACnD,QAAQ,EAAE,CAAC,uBAAuB,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,iCAAiC,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7E,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,6BAA6B,EAAE,MAAM,IAAI,CAAC;IAC1C,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAwED,wBAAgB,wBAAwB,CAAC,EACrC,mBAAmB,EACnB,gCAAgC,EAChC,8BAA8B,EAC9B,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,6BAA6B,EAC7B,iCAAiC,EACjC,UAAU,EACV,SAAS,EACT,qBAA4B,EAC5B,gCAAuC,GAC1C,EAAE,8BAA8B,
|
|
1
|
+
{"version":3,"file":"AdditionalDateAttributes.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAGH,KAAK,kBAAkB,EAE1B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACpC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAClC,MAAM,iCAAiC,CAAC;AAOzC,MAAM,WAAW,8BAA8B;IAC3C,mBAAmB,EAAE,qBAAqB,CAAC;IAC3C,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,8BAA8B,EAAE,gBAAgB,EAAE,CAAC;IACnD,QAAQ,EAAE,CAAC,uBAAuB,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,iCAAiC,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7E,0BAA0B,EAAE,MAAM,IAAI,CAAC;IACvC,6BAA6B,EAAE,MAAM,IAAI,CAAC;IAC1C,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAwED,wBAAgB,wBAAwB,CAAC,EACrC,mBAAmB,EACnB,gCAAgC,EAChC,8BAA8B,EAC9B,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,6BAA6B,EAC7B,iCAAiC,EACjC,UAAU,EACV,SAAS,EACT,0BAA0B,EAC1B,qBAA4B,EAC5B,gCAAuC,GAC1C,EAAE,8BAA8B,2CAgEhC;AAED,eAAO,MAAM,8BAA8B,qCACL,gBAAgB,EAAE,0BAC5B,0BAA0B,EAAE,KACrD,kBAAkB,EAiBV,CAAC"}
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateAttributes.js
CHANGED
|
@@ -31,7 +31,7 @@ function AdditionalDateAttributeItem({ attributeFilter, attributeGranularities,
|
|
|
31
31
|
}
|
|
32
32
|
return (_jsx(DisableableFilterWrapper, { isDisabled: isDisabled, children: _jsx(AdditionalDateAttribute, { label: label, attributeFilter: attributeFilter, onApply: onApply, onRemove: onRemove, onClose: onCloseHandler, isAutoOpen: isAutoOpen }) }));
|
|
33
33
|
}
|
|
34
|
-
export function AdditionalDateAttributes({ selectedDateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, onSelect, onApply, onClose, onRemove, migratedAdditionalFilters, autoOpenedFilters, emptyDateValuesFilterMode, onEmptyDateValuesFilterModeChange, onEmptyDateValuesFilterAdd, onEmptyDateValuesFilterRemove, isEmptyDateValuesFilterOpenOnInit, isDisabled, isAllTime, showDateGranularities = true, isEmptyDateValuesFilterAvailable = true, }) {
|
|
34
|
+
export function AdditionalDateAttributes({ selectedDateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, onSelect, onApply, onClose, onRemove, migratedAdditionalFilters, autoOpenedFilters, emptyDateValuesFilterMode, onEmptyDateValuesFilterModeChange, onEmptyDateValuesFilterAdd, onEmptyDateValuesFilterRemove, isEmptyDateValuesFilterOpenOnInit, isDisabled, isAllTime, isIncludeWithPeriodAllowed, showDateGranularities = true, isEmptyDateValuesFilterAvailable = true, }) {
|
|
35
35
|
const attributeGranularities = dateDatasetRefsWithGranularities.find(({ ref }) => areObjRefsEqual(ref, selectedDateDataset?.ref))
|
|
36
36
|
?.attributes || [];
|
|
37
37
|
const granularities = showDateGranularities
|
|
@@ -47,7 +47,11 @@ export function AdditionalDateAttributes({ selectedDateDataset, dateDatasetRefsW
|
|
|
47
47
|
(emptyDateValuesFilterMode !== undefined || isSingleEmptyValuesMode);
|
|
48
48
|
return (_jsxs("div", { className: classNames("adi-additional-date-attributes", "s-adi-additional-date-attributes", {
|
|
49
49
|
"is-disabled": isDisabled,
|
|
50
|
-
}), children: [additionalDateAttributeFilters.map((attributeFilter) => (_jsx(AdditionalDateAttributeItem, { attributeFilter: attributeFilter, attributeGranularities: attributeGranularities, onApply: onApply, onRemove: onRemove, onClose: onClose, isAutoOpen: autoOpenedFilters.includes(attributeFilter.localIdentifier), isDisabled: isDisabled }, attributeFilter.localIdentifier))), isEmptyDateValuesFilterEnabled ? (_jsx(EmptyDateValuesFilter
|
|
50
|
+
}), children: [additionalDateAttributeFilters.map((attributeFilter) => (_jsx(AdditionalDateAttributeItem, { attributeFilter: attributeFilter, attributeGranularities: attributeGranularities, onApply: onApply, onRemove: onRemove, onClose: onClose, isAutoOpen: autoOpenedFilters.includes(attributeFilter.localIdentifier), isDisabled: isDisabled }, attributeFilter.localIdentifier))), isEmptyDateValuesFilterEnabled ? (_jsx(EmptyDateValuesFilter
|
|
51
|
+
// without a mode the backend default applies: include on All time, exclude with a period
|
|
52
|
+
, {
|
|
53
|
+
// without a mode the backend default applies: include on All time, exclude with a period
|
|
54
|
+
mode: emptyDateValuesFilterMode ?? (isAllTime === false ? "exclude" : "include"), onModeChange: onEmptyDateValuesFilterModeChange, onRemove: onEmptyDateValuesFilterRemove, openOnInit: isEmptyDateValuesFilterOpenOnInit, isAllTime: isAllTime, isIncludeWithPeriodAllowed: isIncludeWithPeriodAllowed, canRemove: !isSingleEmptyValuesMode })) : null, _jsx(AdditionalFilterResetWarning, { migratedAdditionalFiltersCount: migratedAdditionalFilters.length }), _jsx(DisableableFilterWrapper, { isDisabled: isDisabled, children: _jsx(AdditionalDateAttributesDropdown, { granularities: granularities, onGranularityChange: handleOnGranularityClick, isEmptyDateValuesFilterEnabled: isEmptyDateValuesFilterEnabled, onEmptyDateValuesFilterAdd: onEmptyDateValuesFilterAdd, isDisabled: isDisabled, isEmptyDateValuesFilterAvailable: isEmptyDateValuesFilterAvailable }) })] }));
|
|
51
55
|
}
|
|
52
56
|
export const getAvailableGranularityOptions = (selectedAdditionalDateAttributes, attributeGranularities) => attributeGranularities
|
|
53
57
|
.filter(({ dfRef }) => !selectedAdditionalDateAttributes.some(({ displayFormRef }) => areObjRefsEqual(displayFormRef, dfRef)))
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts
CHANGED
|
@@ -16,8 +16,9 @@ export interface IAdditionalDateFiltersProps {
|
|
|
16
16
|
onEmptyDateValuesFilterModeChange: (mode: EmptyDateValuesFilterMode | undefined) => void;
|
|
17
17
|
isDisabled?: boolean;
|
|
18
18
|
isAllTime?: boolean;
|
|
19
|
+
isIncludeWithPeriodAllowed?: boolean;
|
|
19
20
|
showDateGranularities?: boolean;
|
|
20
21
|
isEmptyDateValuesFilterAvailable?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export declare function AdditionalDateFilters({ dateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, migratedAdditionalFilters, emptyDateValuesFilterMode, onFiltersUpdate, onMigratedFiltersDismiss, onEmptyDateValuesFilterModeChange, isDisabled, isAllTime, showDateGranularities, isEmptyDateValuesFilterAvailable, }: IAdditionalDateFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function AdditionalDateFilters({ dateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, migratedAdditionalFilters, emptyDateValuesFilterMode, onFiltersUpdate, onMigratedFiltersDismiss, onEmptyDateValuesFilterModeChange, isDisabled, isAllTime, isIncludeWithPeriodAllowed, showDateGranularities, isEmptyDateValuesFilterAvailable, }: IAdditionalDateFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
//# sourceMappingURL=AdditionalDateFilters.d.ts.map
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionalDateFilters.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EAExB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAMxF,MAAM,WAAW,2BAA2B;IACxC,WAAW,EAAE,qBAAqB,CAAC;IACnC,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,8BAA8B,EAAE,gBAAgB,EAAE,CAAC;IACnD,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IACvD;;;OAGG;IACH,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,iCAAiC,EAAE,CAAC,IAAI,EAAE,yBAAyB,GAAG,SAAS,KAAK,IAAI,CAAC;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,wBAAgB,qBAAqB,CAAC,EAClC,WAAW,EACX,gCAAgC,EAChC,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,wBAAwB,EACxB,iCAAiC,EACjC,UAAU,EACV,SAAS,EACT,qBAAqB,EACrB,gCAAgC,GACnC,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AdditionalDateFilters.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EAExB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAMxF,MAAM,WAAW,2BAA2B;IACxC,WAAW,EAAE,qBAAqB,CAAC;IACnC,gCAAgC,EAAE,gCAAgC,EAAE,CAAC;IACrE,8BAA8B,EAAE,gBAAgB,EAAE,CAAC;IACnD,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,eAAe,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IACvD;;;OAGG;IACH,wBAAwB,EAAE,MAAM,IAAI,CAAC;IACrC,iCAAiC,EAAE,CAAC,IAAI,EAAE,yBAAyB,GAAG,SAAS,KAAK,IAAI,CAAC;IACzF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,wBAAgB,qBAAqB,CAAC,EAClC,WAAW,EACX,gCAAgC,EAChC,8BAA8B,EAC9B,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,wBAAwB,EACxB,iCAAiC,EACjC,UAAU,EACV,SAAS,EACT,0BAA0B,EAC1B,qBAAqB,EACrB,gCAAgC,GACnC,EAAE,2BAA2B,2CAmF7B"}
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/AdditionalDateFilters.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { AdditionalDateAttributes } from "./AdditionalDateAttributes.js";
|
|
5
5
|
const removeId = (id, ids) => ids.filter((itemId) => itemId !== id);
|
|
6
|
-
export function AdditionalDateFilters({ dateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, migratedAdditionalFilters, emptyDateValuesFilterMode, onFiltersUpdate, onMigratedFiltersDismiss, onEmptyDateValuesFilterModeChange, isDisabled, isAllTime, showDateGranularities, isEmptyDateValuesFilterAvailable, }) {
|
|
6
|
+
export function AdditionalDateFilters({ dateDataset, dateDatasetRefsWithGranularities, additionalDateAttributeFilters, migratedAdditionalFilters, emptyDateValuesFilterMode, onFiltersUpdate, onMigratedFiltersDismiss, onEmptyDateValuesFilterModeChange, isDisabled, isAllTime, isIncludeWithPeriodAllowed, showDateGranularities, isEmptyDateValuesFilterAvailable, }) {
|
|
7
7
|
const [autoOpenedFilters, setAutoOpenedFilters] = useState([]);
|
|
8
8
|
const [isEmptyDateValuesFilterOpenOnInit, setIsEmptyDateValuesFilterOpenOnInit] = useState(false);
|
|
9
9
|
const onFilterSelect = (filter) => {
|
|
@@ -49,5 +49,5 @@ export function AdditionalDateFilters({ dateDataset, dateDatasetRefsWithGranular
|
|
|
49
49
|
onEmptyDateValuesFilterModeChange(mode);
|
|
50
50
|
onMigratedFiltersDismiss();
|
|
51
51
|
};
|
|
52
|
-
return (_jsx(AdditionalDateAttributes, { selectedDateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: additionalDateAttributeFilters, onSelect: onFilterSelect, onApply: onFilterApply, onClose: onFilterClose, onRemove: onFilterRemove, migratedAdditionalFilters: migratedAdditionalFilters, autoOpenedFilters: autoOpenedFilters, emptyDateValuesFilterMode: emptyDateValuesFilterMode, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, onEmptyDateValuesFilterAdd: handleEmptyDateValuesFilterAdd, onEmptyDateValuesFilterRemove: handleEmptyDateValuesFilterRemove, isEmptyDateValuesFilterOpenOnInit: isEmptyDateValuesFilterOpenOnInit, isDisabled: isDisabled, isAllTime: isAllTime, showDateGranularities: showDateGranularities, isEmptyDateValuesFilterAvailable: isEmptyDateValuesFilterAvailable }));
|
|
52
|
+
return (_jsx(AdditionalDateAttributes, { selectedDateDataset: dateDataset, dateDatasetRefsWithGranularities: dateDatasetRefsWithGranularities, additionalDateAttributeFilters: additionalDateAttributeFilters, onSelect: onFilterSelect, onApply: onFilterApply, onClose: onFilterClose, onRemove: onFilterRemove, migratedAdditionalFilters: migratedAdditionalFilters, autoOpenedFilters: autoOpenedFilters, emptyDateValuesFilterMode: emptyDateValuesFilterMode, onEmptyDateValuesFilterModeChange: handleEmptyDateValuesFilterModeChange, onEmptyDateValuesFilterAdd: handleEmptyDateValuesFilterAdd, onEmptyDateValuesFilterRemove: handleEmptyDateValuesFilterRemove, isEmptyDateValuesFilterOpenOnInit: isEmptyDateValuesFilterOpenOnInit, isDisabled: isDisabled, isAllTime: isAllTime, isIncludeWithPeriodAllowed: isIncludeWithPeriodAllowed, showDateGranularities: showDateGranularities, isEmptyDateValuesFilterAvailable: isEmptyDateValuesFilterAvailable }));
|
|
53
53
|
}
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts
CHANGED
|
@@ -5,8 +5,13 @@ interface IEmptyDateValuesFilterProps {
|
|
|
5
5
|
onRemove: () => void;
|
|
6
6
|
openOnInit?: boolean;
|
|
7
7
|
isAllTime?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Include sent as the date filter's own empty values handling is executed with any period; the legacy
|
|
10
|
+
* representation supports it only with All time.
|
|
11
|
+
*/
|
|
12
|
+
isIncludeWithPeriodAllowed?: boolean;
|
|
8
13
|
canRemove?: boolean;
|
|
9
14
|
}
|
|
10
|
-
export declare function EmptyDateValuesFilter({ mode, onModeChange, onRemove, openOnInit, isAllTime, canRemove, }: IEmptyDateValuesFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function EmptyDateValuesFilter({ mode, onModeChange, onRemove, openOnInit, isAllTime, isIncludeWithPeriodAllowed, canRemove, }: IEmptyDateValuesFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
export {};
|
|
12
17
|
//# sourceMappingURL=EmptyDateValuesFilter.d.ts.map
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyDateValuesFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAOlG,UAAU,2BAA2B;IACjC,IAAI,EAAE,yBAAyB,CAAC;IAChC,YAAY,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAgBD,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,UAAkB,EAClB,SAAgB,EAChB,SAAgB,GACnB,EAAE,2BAA2B,2CA2J7B"}
|
|
1
|
+
{"version":3,"file":"EmptyDateValuesFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAOlG,UAAU,2BAA2B;IACjC,IAAI,EAAE,yBAAyB,CAAC;IAChC,YAAY,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAgBD,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,UAAkB,EAClB,SAAgB,EAChB,0BAAkC,EAClC,SAAgB,GACnB,EAAE,2BAA2B,2CA2J7B"}
|
package/esm/components/filterBar/dateFilter/AdditionalFiltersSection/EmptyDateValuesFilter.js
CHANGED
|
@@ -21,7 +21,7 @@ const stopOverlayPropagation = (e) => {
|
|
|
21
21
|
Object.defineProperty(evt, "target", { value: e.nativeEvent.target, enumerable: true });
|
|
22
22
|
document.documentElement.dispatchEvent(evt);
|
|
23
23
|
};
|
|
24
|
-
export function EmptyDateValuesFilter({ mode, onModeChange, onRemove, openOnInit = false, isAllTime = true, canRemove = true, }) {
|
|
24
|
+
export function EmptyDateValuesFilter({ mode, onModeChange, onRemove, openOnInit = false, isAllTime = true, isIncludeWithPeriodAllowed = false, canRemove = true, }) {
|
|
25
25
|
const intl = useIntl();
|
|
26
26
|
const listboxRef = useRef(null);
|
|
27
27
|
const getModeLabel = useCallback((filterMode) => {
|
|
@@ -36,7 +36,7 @@ export function EmptyDateValuesFilter({ mode, onModeChange, onRemove, openOnInit
|
|
|
36
36
|
return "";
|
|
37
37
|
}
|
|
38
38
|
}, [intl]);
|
|
39
|
-
const isIncludeDisabled = !isAllTime;
|
|
39
|
+
const isIncludeDisabled = !isAllTime && !isIncludeWithPeriodAllowed;
|
|
40
40
|
const listboxItems = useMemo(() => [
|
|
41
41
|
{
|
|
42
42
|
type: "interactive",
|
|
@@ -3,6 +3,6 @@ import { type DateFilterOption } from "@gooddata/sdk-ui-filters";
|
|
|
3
3
|
import { type IDecoratedDateDataset } from "../../../../models/decorated_date_dataset.js";
|
|
4
4
|
import { type EmptyDateValuesFilterMode, type IAttributeFilter } from "../../../../store/filter_bar/filter_bar_types.js";
|
|
5
5
|
import { type IDateFilterOption } from "../dateFilterOptionFactory.js";
|
|
6
|
-
export declare const useApplyButtonEnabled: (selectedFilter: IDateFilterOption, originalFilter: IDateFilterOption, selectedDateDataset: IDecoratedDateDataset, originalDateDataset: IDecoratedDateDataset, selectedTimeComparisonType: OverTimeComparisonType, originalTimeComparisonType: OverTimeComparisonType, selectedComparisonMeasures: string[], originalComparisonMeasures: string[], additionalDateFilters: IAttributeFilter[], originalAdditionalDateFilters: IAttributeFilter[], isValidDateDataset: boolean, selectedEmptyDateValuesFilterMode?: EmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode?: EmptyDateValuesFilterMode) => boolean;
|
|
7
|
-
export declare const useDisabledApplyButtonTooltip: (selectedFilter: DateFilterOption, selectedTimeComparisonType: OverTimeComparisonType, isValidDateDataset: boolean, selectedEmptyDateValuesFilterMode?: EmptyDateValuesFilterMode) => string | undefined;
|
|
6
|
+
export declare const useApplyButtonEnabled: (selectedFilter: IDateFilterOption, originalFilter: IDateFilterOption, selectedDateDataset: IDecoratedDateDataset, originalDateDataset: IDecoratedDateDataset, selectedTimeComparisonType: OverTimeComparisonType, originalTimeComparisonType: OverTimeComparisonType, selectedComparisonMeasures: string[], originalComparisonMeasures: string[], additionalDateFilters: IAttributeFilter[], originalAdditionalDateFilters: IAttributeFilter[], isValidDateDataset: boolean, selectedEmptyDateValuesFilterMode?: EmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode?: EmptyDateValuesFilterMode, isIncludeWithPeriodAllowed?: boolean) => boolean;
|
|
7
|
+
export declare const useDisabledApplyButtonTooltip: (selectedFilter: DateFilterOption, selectedTimeComparisonType: OverTimeComparisonType, isValidDateDataset: boolean, selectedEmptyDateValuesFilterMode?: EmptyDateValuesFilterMode, isIncludeWithPeriodAllowed?: boolean) => string | undefined;
|
|
8
8
|
//# sourceMappingURL=applyButtonHook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AACxF,OAAO,EACH,KAAK,gBAAgB,EAGxB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"applyButtonHook.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterBar/dateFilter/Buttons/applyButtonHook.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AACxF,OAAO,EACH,KAAK,gBAAgB,EAGxB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAoFvE,eAAO,MAAM,qBAAqB,mBACd,iBAAiB,kBACjB,iBAAiB,uBACZ,qBAAqB,uBACrB,qBAAqB,8BACd,sBAAsB,8BACtB,sBAAsB,8BACtB,MAAM,EAAE,8BACR,MAAM,EAAE,yBACb,gBAAgB,EAAE,iCACV,gBAAgB,EAAE,sBAC7B,OAAO,sCACS,yBAAyB,sCACzB,yBAAyB,kDAoChE,CAAC;AAEF,eAAO,MAAM,6BAA6B,mBACtB,gBAAgB,8BACJ,sBAAsB,sBAC9B,OAAO,sCACS,yBAAyB,6DA6BhE,CAAC"}
|
|
@@ -9,6 +9,11 @@ const isAllTimeSelectedAndTimeComparisonApplied = (selectedFilter, selectedTimeC
|
|
|
9
9
|
(OverTimeComparisonTypes.PREVIOUS_PERIOD === selectedTimeComparisonType ||
|
|
10
10
|
OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR === selectedTimeComparisonType);
|
|
11
11
|
const areSameMeasuresSelected = (selectedComparisonMeasures, originalComparisonMeasures) => _isEqual(selectedComparisonMeasures.slice().sort(), originalComparisonMeasures.slice().sort());
|
|
12
|
+
/**
|
|
13
|
+
* Include with a period works only as the date filter's own empty values handling; the legacy
|
|
14
|
+
* representation supports it with All time alone.
|
|
15
|
+
*/
|
|
16
|
+
const isEmptyValuesIncludeInvalid = (filterOption, mode, isIncludeWithPeriodAllowed) => mode === "include" && !isIncludeWithPeriodAllowed && !isAllTimeDateFilterOption(filterOption);
|
|
12
17
|
const isEndTimeAfterOrAtStartTime = (start, end) => moment(start) <= moment(end);
|
|
13
18
|
const isValidAbsoluteDateRange = (selectedFilter) => !isAbsoluteDateFilterOption(selectedFilter) ||
|
|
14
19
|
(selectedFilter.from !== undefined &&
|
|
@@ -16,6 +21,11 @@ const isValidAbsoluteDateRange = (selectedFilter) => !isAbsoluteDateFilterOption
|
|
|
16
21
|
isEndTimeAfterOrAtStartTime(selectedFilter.from, selectedFilter.to));
|
|
17
22
|
const isValidFloatingDateRange = (selectedFilter) => !isRelativeDateFilterOption(selectedFilter) ||
|
|
18
23
|
(selectedFilter.from !== undefined && selectedFilter.to !== undefined);
|
|
24
|
+
/**
|
|
25
|
+
* The mode as it is saved: include on All time is the default and is not stored, so it equals no mode.
|
|
26
|
+
* Any other mode is stored as chosen, so choosing it is a change even when it matches the backend default.
|
|
27
|
+
*/
|
|
28
|
+
const getStoredEmptyDateValuesFilterMode = (mode, filterOption) => mode === "include" && isAllTimeDateFilterOption(filterOption) ? undefined : mode;
|
|
19
29
|
const isDialogStateChanged = (selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode) => {
|
|
20
30
|
const isFilterSame = _isEqual(selectedFilter, originalFilter);
|
|
21
31
|
const isComparisonTypeSame = selectedTimeComparisonType === originalTimeComparisonType;
|
|
@@ -23,7 +33,8 @@ const isDialogStateChanged = (selectedFilter, originalFilter, selectedDateDatase
|
|
|
23
33
|
const isSameDateDataset = areObjRefsEqual(selectedDateDataset.ref, originalDateDataset?.ref);
|
|
24
34
|
const areComparisonMeasuresSame = areSameMeasuresSelected(selectedComparisonMeasures, originalComparisonMeasures);
|
|
25
35
|
const areAdditionalFiltersSame = _isEqual(additionalDateFilters, originalAdditionalDateFilters);
|
|
26
|
-
const isEmptyDateValuesFilterModeSame = (selectedEmptyDateValuesFilterMode
|
|
36
|
+
const isEmptyDateValuesFilterModeSame = getStoredEmptyDateValuesFilterMode(selectedEmptyDateValuesFilterMode, selectedFilter.filterOption) ===
|
|
37
|
+
getStoredEmptyDateValuesFilterMode(originalEmptyDateValuesFilterMode, originalFilter.filterOption);
|
|
27
38
|
return (!isFilterSame ||
|
|
28
39
|
!isComparisonTypeSame ||
|
|
29
40
|
!isSameDateDataset ||
|
|
@@ -31,14 +42,12 @@ const isDialogStateChanged = (selectedFilter, originalFilter, selectedDateDatase
|
|
|
31
42
|
!areAdditionalFiltersSame ||
|
|
32
43
|
!isEmptyDateValuesFilterModeSame);
|
|
33
44
|
};
|
|
34
|
-
export const useApplyButtonEnabled = (selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, isValidDateDataset, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode) => {
|
|
45
|
+
export const useApplyButtonEnabled = (selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, isValidDateDataset, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed = false) => {
|
|
35
46
|
const { filterOption } = selectedFilter;
|
|
36
47
|
const isSelectionDifferent = isDialogStateChanged(selectedFilter, originalFilter, selectedDateDataset, originalDateDataset, selectedTimeComparisonType, originalTimeComparisonType, selectedComparisonMeasures, originalComparisonMeasures, additionalDateFilters, originalAdditionalDateFilters, selectedEmptyDateValuesFilterMode, originalEmptyDateValuesFilterMode);
|
|
37
48
|
const ignoreTimeComparison = selectedTimeComparisonType === OverTimeComparisonTypes.NOTHING;
|
|
38
49
|
const isValidTimeComparison = isAllTimeSelectedAndTimeComparisonApplied(filterOption, selectedTimeComparisonType);
|
|
39
|
-
const
|
|
40
|
-
// "Include" empty values is only allowed when period is "All time"
|
|
41
|
-
const isInvalidEmptyValuesInclude = selectedEmptyDateValuesFilterMode === "include" && !isAllTime;
|
|
50
|
+
const isInvalidEmptyValuesInclude = isEmptyValuesIncludeInvalid(filterOption, selectedEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed);
|
|
42
51
|
return (isSelectionDifferent &&
|
|
43
52
|
isValidAbsoluteDateRange(filterOption) &&
|
|
44
53
|
isValidFloatingDateRange(filterOption) &&
|
|
@@ -46,12 +55,11 @@ export const useApplyButtonEnabled = (selectedFilter, originalFilter, selectedDa
|
|
|
46
55
|
!isValidTimeComparison &&
|
|
47
56
|
!isInvalidEmptyValuesInclude);
|
|
48
57
|
};
|
|
49
|
-
export const useDisabledApplyButtonTooltip = (selectedFilter, selectedTimeComparisonType, isValidDateDataset, selectedEmptyDateValuesFilterMode) => {
|
|
58
|
+
export const useDisabledApplyButtonTooltip = (selectedFilter, selectedTimeComparisonType, isValidDateDataset, selectedEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed = false) => {
|
|
50
59
|
const intl = useIntl();
|
|
51
60
|
const ignoreTimeComparison = selectedTimeComparisonType === OverTimeComparisonTypes.NOTHING;
|
|
52
61
|
const isAllTime = isAllTimeDateFilterOption(selectedFilter);
|
|
53
|
-
|
|
54
|
-
if (selectedEmptyDateValuesFilterMode === "include" && !isAllTime) {
|
|
62
|
+
if (isEmptyValuesIncludeInvalid(selectedFilter, selectedEmptyDateValuesFilterMode, isIncludeWithPeriodAllowed)) {
|
|
55
63
|
return intl.formatMessage({ id: "filter.date.empty_values.include.disabled_apply_tooltip" });
|
|
56
64
|
}
|
|
57
65
|
if (!isValidDateDataset && !ignoreTimeComparison) {
|