@gooddata/sdk-ui-dashboard 11.33.0-alpha.5 → 11.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/index.d.ts +15 -10
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +8 -6
- package/esm/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeMeasureValueFilterModeHandler.d.ts +5 -0
- package/esm/model/commandHandlers/dashboard/changeMeasureValueFilterModeHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/changeMeasureValueFilterModeHandler.js +22 -0
- package/esm/model/commandHandlers/dashboard/changeMeasureValueFilterModeHandler.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts +13 -0
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.js +28 -0
- package/esm/model/commandHandlers/dashboard/common/parameterHydration.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts +3 -3
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +12 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +30 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js +8 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadDashboardParameters.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +3 -2
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.js +11 -0
- package/esm/model/commandHandlers/dashboard/saveAsDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js +18 -7
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/measureValueFilter/addMeasureValueFilterHandler.d.ts +5 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/addMeasureValueFilterHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/addMeasureValueFilterHandler.js +57 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/addMeasureValueFilterHandler.js.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterConditionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterConditionHandler.js +7 -3
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterConditionHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterTitleHandler.d.ts +5 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterTitleHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterTitleHandler.js +25 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/changeMeasureValueFilterTitleHandler.js.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/moveMeasureValueFilterHandler.d.ts +5 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/moveMeasureValueFilterHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/moveMeasureValueFilterHandler.js +29 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/moveMeasureValueFilterHandler.js.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/removeMeasureValueFilterHandler.d.ts +5 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/removeMeasureValueFilterHandler.d.ts.map +1 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/removeMeasureValueFilterHandler.js +20 -0
- package/esm/model/commandHandlers/filterContext/measureValueFilter/removeMeasureValueFilterHandler.js.map +1 -0
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +10 -0
- package/esm/model/commandHandlers/index.js.map +1 -1
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/dashboard.d.ts +31 -0
- package/esm/model/commands/dashboard.d.ts.map +1 -1
- package/esm/model/commands/dashboard.js +17 -0
- package/esm/model/commands/dashboard.js.map +1 -1
- package/esm/model/commands/filters.d.ts +145 -0
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +100 -0
- package/esm/model/commands/filters.js.map +1 -1
- package/esm/model/commands/index.d.ts +3 -3
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/events/base.d.ts +1 -1
- package/esm/model/events/base.d.ts.map +1 -1
- package/esm/model/events/base.js.map +1 -1
- package/esm/model/events/filters.d.ts +168 -0
- package/esm/model/events/filters.d.ts.map +1 -1
- package/esm/model/events/filters.js +104 -0
- package/esm/model/events/filters.js.map +1 -1
- package/esm/model/events/index.d.ts +2 -2
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js.map +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +5 -0
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +20 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogReducers.d.ts +5 -1
- package/esm/model/store/catalog/catalogReducers.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogReducers.js +4 -0
- package/esm/model/store/catalog/catalogReducers.js.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts +27 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +27 -1
- package/esm/model/store/catalog/catalogSelectors.js.map +1 -1
- package/esm/model/store/catalog/catalogState.d.ts +18 -1
- package/esm/model/store/catalog/catalogState.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogState.js +1 -0
- package/esm/model/store/catalog/catalogState.js.map +1 -1
- package/esm/model/store/catalog/index.d.ts +1 -0
- package/esm/model/store/catalog/index.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +6 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/dashboardStore.d.ts +2 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +2 -0
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/meta/metaSelectors.d.ts +12 -1
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +39 -7
- package/esm/model/store/meta/metaSelectors.js.map +1 -1
- package/esm/model/store/parameters/index.d.ts +13 -0
- package/esm/model/store/parameters/index.d.ts.map +1 -0
- package/esm/model/store/parameters/index.js +15 -0
- package/esm/model/store/parameters/index.js.map +1 -0
- package/esm/model/store/parameters/parametersReducers.d.ts +47 -0
- package/esm/model/store/parameters/parametersReducers.d.ts.map +1 -0
- package/esm/model/store/parameters/parametersReducers.js +37 -0
- package/esm/model/store/parameters/parametersReducers.js.map +1 -0
- package/esm/model/store/parameters/parametersSelectors.d.ts +68 -0
- package/esm/model/store/parameters/parametersSelectors.d.ts.map +1 -0
- package/esm/model/store/parameters/parametersSelectors.js +123 -0
- package/esm/model/store/parameters/parametersSelectors.js.map +1 -0
- package/esm/model/store/parameters/parametersState.d.ts +29 -0
- package/esm/model/store/parameters/parametersState.d.ts.map +1 -0
- package/esm/model/store/parameters/parametersState.js +5 -0
- package/esm/model/store/parameters/parametersState.js.map +1 -0
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts +39 -2
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +111 -5
- package/esm/model/store/tabs/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts +10 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +22 -5
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextState.d.ts +14 -3
- package/esm/model/store/tabs/filterContext/filterContextState.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextState.js.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +15 -6
- package/esm/model/store/tabs/filterContext/filterContextUtils.js.map +1 -1
- package/esm/model/store/tabs/index.d.ts +18 -2
- package/esm/model/store/tabs/index.d.ts.map +1 -1
- package/esm/model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsReducers.d.ts +1 -1
- package/esm/model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.d.ts +0 -10
- package/esm/model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.js +4 -14
- package/esm/model/store/tabs/measureValueFilterConfigs/measureValueFilterConfigsSelectors.js.map +1 -1
- package/esm/model/store/types.d.ts +6 -0
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.d.ts.map +1 -1
- package/esm/plugins/customizationApis/customizationBuilder.js +3 -0
- package/esm/plugins/customizationApis/customizationBuilder.js.map +1 -1
- package/esm/plugins/customizationApis/filtersCustomizer.d.ts +3 -0
- package/esm/plugins/customizationApis/filtersCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/filtersCustomizer.js +7 -0
- package/esm/plugins/customizationApis/filtersCustomizer.js.map +1 -1
- package/esm/plugins/customizationApis/measureValueFiltersCustomizer.d.ts +17 -0
- package/esm/plugins/customizationApis/measureValueFiltersCustomizer.d.ts.map +1 -0
- package/esm/plugins/customizationApis/measureValueFiltersCustomizer.js +73 -0
- package/esm/plugins/customizationApis/measureValueFiltersCustomizer.js.map +1 -0
- package/esm/plugins/customizer.d.ts +33 -1
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/presentation/automationFilters/components/AutomationFiltersSelect.d.ts.map +1 -1
- package/esm/presentation/automationFilters/components/AutomationFiltersSelect.js +6 -1
- package/esm/presentation/automationFilters/components/AutomationFiltersSelect.js.map +1 -1
- package/esm/presentation/dragAndDrop/DeleteDropZone.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/DeleteDropZone.js +2 -17
- package/esm/presentation/dragAndDrop/DeleteDropZone.js.map +1 -1
- package/esm/presentation/dragAndDrop/DraggableChipSource.d.ts +15 -0
- package/esm/presentation/dragAndDrop/DraggableChipSource.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/DraggableChipSource.js +14 -0
- package/esm/presentation/dragAndDrop/DraggableChipSource.js.map +1 -0
- package/esm/presentation/dragAndDrop/FilterDeleteOverlay.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/FilterDeleteOverlay.js +2 -17
- package/esm/presentation/dragAndDrop/FilterDeleteOverlay.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZone.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZone.js +2 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZone.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.js +18 -11
- package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DefaultMeasureValueFilterDraggingComponent.d.ts +5 -0
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DefaultMeasureValueFilterDraggingComponent.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DefaultMeasureValueFilterDraggingComponent.js +19 -0
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DefaultMeasureValueFilterDraggingComponent.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.d.ts +3 -7
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.js +14 -9
- package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.d.ts +15 -0
- package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.js +21 -0
- package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.js.map +1 -0
- package/esm/presentation/dragAndDrop/types.d.ts +30 -5
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.js +12 -0
- package/esm/presentation/dragAndDrop/types.js.map +1 -1
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.d.ts +12 -0
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.js +35 -0
- package/esm/presentation/dragAndDrop/useFilterDeleteDrop.js.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +94 -20
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/MetricListItem.d.ts +10 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/MetricListItem.d.ts.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/MetricListItem.js +25 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/MetricListItem.js.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.d.ts +28 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.d.ts.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.js +84 -0
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/useMetricDropdownItems.js.map +1 -0
- package/esm/presentation/filterBar/attributeFilter/types.d.ts +9 -3
- package/esm/presentation/filterBar/attributeFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +23 -9
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.d.ts +2 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js +8 -7
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarItem.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +6 -3
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/types.d.ts +1 -1
- package/esm/presentation/filterBar/filterBar/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts +2 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +22 -10
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js.map +1 -1
- package/esm/presentation/filterBar/filterSelectionTypes.d.ts +5 -0
- package/esm/presentation/filterBar/filterSelectionTypes.d.ts.map +1 -0
- package/esm/presentation/filterBar/filterSelectionTypes.js +3 -0
- package/esm/presentation/filterBar/filterSelectionTypes.js.map +1 -0
- package/esm/presentation/filterBar/measureValueFilter/CustomDropdownActions.d.ts +29 -0
- package/esm/presentation/filterBar/measureValueFilter/CustomDropdownActions.d.ts.map +1 -0
- package/esm/presentation/filterBar/measureValueFilter/CustomDropdownActions.js +24 -0
- package/esm/presentation/filterBar/measureValueFilter/CustomDropdownActions.js.map +1 -0
- package/esm/presentation/filterBar/measureValueFilter/DefaultDashboardMeasureValueFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/measureValueFilter/DefaultDashboardMeasureValueFilter.js +147 -55
- package/esm/presentation/filterBar/measureValueFilter/DefaultDashboardMeasureValueFilter.js.map +1 -1
- package/esm/presentation/filterBar/measureValueFilter/MeasureValueFilterConfiguration.d.ts +21 -0
- package/esm/presentation/filterBar/measureValueFilter/MeasureValueFilterConfiguration.d.ts.map +1 -0
- package/esm/presentation/filterBar/measureValueFilter/MeasureValueFilterConfiguration.js +21 -0
- package/esm/presentation/filterBar/measureValueFilter/MeasureValueFilterConfiguration.js.map +1 -0
- package/esm/presentation/filterBar/measureValueFilter/types.d.ts +1 -1
- package/esm/presentation/filterBar/measureValueFilter/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/parameterFilter/AddFilterMenu.d.ts +8 -0
- package/esm/presentation/filterBar/parameterFilter/AddFilterMenu.d.ts.map +1 -0
- package/esm/presentation/filterBar/parameterFilter/AddFilterMenu.js +40 -0
- package/esm/presentation/filterBar/parameterFilter/AddFilterMenu.js.map +1 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts +15 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.d.ts.map +1 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js +37 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterFilter.js.map +1 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.d.ts +15 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.d.ts.map +1 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.js +37 -0
- package/esm/presentation/filterBar/parameterFilter/DashboardParameterPicker.js.map +1 -0
- package/esm/presentation/filterBar/utils.d.ts +1 -1
- package/esm/presentation/filterBar/utils.d.ts.map +1 -1
- package/esm/presentation/filterBar/utils.js +17 -3
- package/esm/presentation/filterBar/utils.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/ContentDragPreview.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/ContentDragPreview.js +4 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/ContentDragPreview.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +24 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +24 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +6 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +675 -18
- package/package.json +20 -20
- package/styles/css/filterBar.css +12 -43
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +169 -75
- package/styles/css/main.css.map +1 -1
- package/styles/scss/filterBar.scss +15 -68
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { dashboardAttributeFilterItemLocalIdentifier } from "@gooddata/sdk-model";
|
|
4
|
-
import { moveAttributeFilter, moveDateFilter } from "../../../model/commands/filters.js";
|
|
3
|
+
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, } from "@gooddata/sdk-model";
|
|
4
|
+
import { moveAttributeFilter, moveDateFilter, moveMeasureValueFilter, } from "../../../model/commands/filters.js";
|
|
5
5
|
import { useDashboardDispatch } from "../../../model/react/DashboardStoreProvider.js";
|
|
6
6
|
import { getDropZoneDebugStyle } from "../debug.js";
|
|
7
|
-
import { isAttributeFilterDraggableItem, isAttributeFilterPlaceholderDraggableItem, isDateFilterDraggableItem, } from "../types.js";
|
|
7
|
+
import { isAttributeFilterDraggableItem, isAttributeFilterPlaceholderDraggableItem, isDateFilterDraggableItem, isMeasureValueFilterDraggableItem, } from "../types.js";
|
|
8
8
|
import { useDashboardDrop } from "../useDashboardDrop.js";
|
|
9
9
|
function getIgnoreIndexes(placement, position, targetIndex) {
|
|
10
10
|
if (placement === "outside") {
|
|
@@ -19,30 +19,37 @@ export function DraggableFilterDropZoneHint({ placement = "inside", hintPosition
|
|
|
19
19
|
const dispatch = useDashboardDispatch();
|
|
20
20
|
const inactiveIndexes = getIgnoreIndexes(placement, hintPosition, targetIndex);
|
|
21
21
|
const [{ canDrop, isOver }, dropRef] = useDashboardDrop(acceptPlaceholder
|
|
22
|
-
? ["attributeFilter", "dateFilter", "attributeFilter-placeholder"]
|
|
22
|
+
? ["attributeFilter", "dateFilter", "attributeFilter-placeholder", "measureValueFilter"]
|
|
23
23
|
: "attributeFilter", {
|
|
24
24
|
canDrop: (item) => {
|
|
25
|
-
if (isAttributeFilterDraggableItem(item) ||
|
|
25
|
+
if (isAttributeFilterDraggableItem(item) ||
|
|
26
|
+
isDateFilterDraggableItem(item) ||
|
|
27
|
+
isMeasureValueFilterDraggableItem(item)) {
|
|
26
28
|
return !inactiveIndexes.includes(item.filterIndex);
|
|
27
29
|
}
|
|
28
30
|
return isAttributeFilterPlaceholderDraggableItem(item);
|
|
29
31
|
},
|
|
30
32
|
drop: (item) => {
|
|
31
33
|
const targetIndexPositionCorrection = placement === "inside" && hintPosition === "next" ? 1 : 0;
|
|
34
|
+
const getMoveIndex = (originalIndex) => {
|
|
35
|
+
const originalPositionCorrection = originalIndex < targetIndex ? -1 : 0;
|
|
36
|
+
return targetIndex + targetIndexPositionCorrection + originalPositionCorrection;
|
|
37
|
+
};
|
|
32
38
|
if (isAttributeFilterDraggableItem(item)) {
|
|
33
39
|
const identifier = dashboardAttributeFilterItemLocalIdentifier(item.filter);
|
|
34
|
-
const
|
|
35
|
-
const originalPositionCorrection = originalIndex < targetIndex ? -1 : 0;
|
|
36
|
-
const index = targetIndex + targetIndexPositionCorrection + originalPositionCorrection;
|
|
40
|
+
const index = getMoveIndex(item.filterIndex);
|
|
37
41
|
dispatch(moveAttributeFilter(identifier, index));
|
|
38
42
|
}
|
|
39
43
|
if (isDateFilterDraggableItem(item)) {
|
|
40
44
|
const ref = item.filter.dateFilter.dataSet;
|
|
41
|
-
const
|
|
42
|
-
const originalPositionCorrection = originalIndex < targetIndex ? -1 : 0;
|
|
43
|
-
const index = targetIndex + targetIndexPositionCorrection + originalPositionCorrection;
|
|
45
|
+
const index = getMoveIndex(item.filterIndex);
|
|
44
46
|
dispatch(moveDateFilter(ref, index));
|
|
45
47
|
}
|
|
48
|
+
if (isMeasureValueFilterDraggableItem(item)) {
|
|
49
|
+
const localIdentifier = dashboardFilterLocalIdentifier(item.filter);
|
|
50
|
+
const index = getMoveIndex(item.filterIndex);
|
|
51
|
+
dispatch(moveMeasureValueFilter(localIdentifier, index));
|
|
52
|
+
}
|
|
46
53
|
if (isAttributeFilterPlaceholderDraggableItem(item) && onAddAttributePlaceholder) {
|
|
47
54
|
const index = targetIndex + targetIndexPositionCorrection;
|
|
48
55
|
return onAddAttributePlaceholder(index);
|
package/esm/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableFilterDropZoneHint.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,
|
|
1
|
+
{"version":3,"file":"DraggableFilterDropZoneHint.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableFilterDropZone/DraggableFilterDropZoneHint.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EACH,2CAA2C,EAC3C,8BAA8B,GACjC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,mBAAmB,EACnB,cAAc,EACd,sBAAsB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AAI,CAAC,EAAE,CAAC;gBAC1C,MAAM,eAAe,GAAG,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAE,CAAC;gBACrE,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC7C,QAAQ,CAAC,sBAAsB,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC;YAC7D,CAAC;YAED,IAAI,yCAAyC,CAAC,IAAI,CAAC,IAAI,yBAAyB,EAAE,CAAC;gBAC/E,MAAM,KAAK,GAAG,WAAW,GAAG,6BAA6B,CAAC;gBAC1D,OAAO,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAC5C,CAAC;QAAA,CACJ;KACJ,EACD,CAAC,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,CAC1D,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,IAAI,MAAM,CAAC;IACnC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC;IAE1B,MAAM,SAAS,GAAG,EAAE,CAAC,sBAAsB,EAAE,YAAY,EAAE;QACvD,OAAO,EAAE,SAAS,KAAK,SAAS;QAChC,MAAM,EAAE,QAAQ;KACnB,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,OAAO,CACH,cACI,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,OAAqD,YAEzD,QAAQ,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,WAAW,GAAG,CAAC,CAAC,CAAC,IAAI,GAC9C,CACT,CAAC;AAAA,CACL"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type MeasureValueFilterDraggableItem } from "../types.js";
|
|
2
|
+
export declare function DefaultMeasureValueFilterDraggingComponent({ item }: {
|
|
3
|
+
item: MeasureValueFilterDraggableItem;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=DefaultMeasureValueFilterDraggingComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultMeasureValueFilterDraggingComponent.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableMeasureValueFilter/DefaultMeasureValueFilterDraggingComponent.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAEnE,wBAAgB,0CAA0C,CAAC,EACvD,IAAI,EACP,EAAE;IACC,IAAI,EAAE,+BAA+B,CAAC;CACzC,2CA0BA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { areObjRefsEqual, objRefToString } from "@gooddata/sdk-model";
|
|
5
|
+
import { IconDragHandle, ShortenedText } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
7
|
+
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
8
|
+
import { selectCatalogMeasures } from "../../../model/store/catalog/catalogSelectors.js";
|
|
9
|
+
export function DefaultMeasureValueFilterDraggingComponent({ item, }) {
|
|
10
|
+
const theme = useTheme();
|
|
11
|
+
const measures = useDashboardSelector(selectCatalogMeasures);
|
|
12
|
+
const { measure, title } = item.filter.dashboardMeasureValueFilter;
|
|
13
|
+
const catalogMeasure = useMemo(() => measures.find((m) => areObjRefsEqual(m.measure.ref, measure)), [measure, measures]);
|
|
14
|
+
const measureTitle = title ?? catalogMeasure?.measure.title ?? objRefToString(measure);
|
|
15
|
+
return (_jsxs("div", { className: "measure-value-filter-button attribute-filter-button is-dragging", children: [
|
|
16
|
+
_jsx(IconDragHandle, { width: 7, height: 26, className: "drag-handle-icon", color: theme?.palette?.complementary?.c5 }), _jsx("div", { className: "button-content", children: _jsx("div", { className: "button-title", children: _jsx(ShortenedText, { children: measureTitle }) }) })
|
|
17
|
+
] }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=DefaultMeasureValueFilterDraggingComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultMeasureValueFilterDraggingComponent.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableMeasureValueFilter/DefaultMeasureValueFilterDraggingComponent.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAGzF,MAAM,UAAU,0CAA0C,CAAC,EACvD,IAAI,GAGP,EAAE;IACC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,QAAQ,GAAG,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;IAC7D,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC;IAEnE,MAAM,cAAc,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EACnE,CAAC,OAAO,EAAE,QAAQ,CAAC,CACtB,CAAC;IACF,MAAM,YAAY,GAAG,KAAK,IAAI,cAAc,EAAE,OAAO,CAAC,KAAK,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;IAEvF,OAAO,CACH,eAAK,SAAS,EAAC,iEAAiE;YAC5E,KAAC,cAAc,IACX,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,EAAE,EACV,SAAS,EAAC,kBAAkB,EAC5B,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,GAC1C,EACF,cAAK,SAAS,EAAC,gBAAgB,YAC3B,cAAK,SAAS,EAAC,cAAc,YACzB,KAAC,aAAa,cAAE,YAAY,GAAiB,GAC3C,GACJ;YACJ,CACT,CAAC;AAAA,CACL"}
|
package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.d.ts
CHANGED
|
@@ -6,16 +6,12 @@ type DraggableMeasureValueFilterProps = {
|
|
|
6
6
|
autoOpen: boolean;
|
|
7
7
|
readonly: boolean;
|
|
8
8
|
FilterComponent: CustomDashboardMeasureValueFilterComponent;
|
|
9
|
-
onMeasureValueFilterChanged: (filter: IDashboardMeasureValueFilter, conditions: MeasureValueFilterCondition[] | undefined) => void;
|
|
9
|
+
onMeasureValueFilterChanged: (filter: IDashboardMeasureValueFilter, conditions: MeasureValueFilterCondition[] | undefined, isWorkingSelectionChange?: boolean) => void;
|
|
10
10
|
onMeasureValueFilterAdded: (index: number) => void;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* Mirrors {@link DraggableAttributeFilter} so MVF chips occupy a real slot in
|
|
14
|
-
* list with proper neighbor drop targets.
|
|
15
|
-
* "measureValueFilter" drag type and the corresponding `moveMeasureValueFilter` model
|
|
16
|
-
* command are not implemented yet (TODO CQ-2286). Until that lands, MVFs render in the
|
|
17
|
-
* correct position and neighboring attribute/date drops resolve to correct indices, but
|
|
18
|
-
* the MVF chip cannot itself be reordered via drag.
|
|
13
|
+
* Mirrors {@link DraggableAttributeFilter} so MVF chips occupy a real draggable slot in
|
|
14
|
+
* the filter list with proper neighbor drop targets.
|
|
19
15
|
*
|
|
20
16
|
* @internal
|
|
21
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableMeasureValueFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DraggableMeasureValueFilter.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,4BAA4B,EAAE,KAAK,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAK1G,OAAO,EAAE,KAAK,0CAA0C,EAAE,MAAM,6CAA6C,CAAC;AAI9G,KAAK,gCAAgC,GAAG;IACpC,MAAM,EAAE,4BAA4B,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,0CAA0C,CAAC;IAC5D,2BAA2B,EAAE,CACzB,MAAM,EAAE,4BAA4B,EACpC,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,wBAAwB,CAAC,EAAE,OAAO,KACjC,IAAI,CAAC;IACV,yBAAyB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,EACxC,eAAe,EACf,MAAM,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,2BAA2B,EAC3B,yBAAyB,EAC5B,EAAE,gCAAgC,2CAsDlC"}
|
package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2026 GoodData Corporation
|
|
3
2
|
import classNames from "classnames";
|
|
4
3
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
5
4
|
import { selectIsInEditMode } from "../../../model/store/renderMode/renderModeSelectors.js";
|
|
6
5
|
import { selectCanAddMoreFilters } from "../../../model/store/tabs/filterContext/filterContextSelectors.js";
|
|
7
6
|
import { DraggableFilterDropZoneHint } from "../draggableFilterDropZone/DraggableFilterDropZoneHint.js";
|
|
7
|
+
import { useDashboardDrag } from "../useDashboardDrag.js";
|
|
8
8
|
/**
|
|
9
|
-
* Mirrors {@link DraggableAttributeFilter} so MVF chips occupy a real slot in
|
|
10
|
-
* list with proper neighbor drop targets.
|
|
11
|
-
* "measureValueFilter" drag type and the corresponding `moveMeasureValueFilter` model
|
|
12
|
-
* command are not implemented yet (TODO CQ-2286). Until that lands, MVFs render in the
|
|
13
|
-
* correct position and neighboring attribute/date drops resolve to correct indices, but
|
|
14
|
-
* the MVF chip cannot itself be reordered via drag.
|
|
9
|
+
* Mirrors {@link DraggableAttributeFilter} so MVF chips occupy a real draggable slot in
|
|
10
|
+
* the filter list with proper neighbor drop targets.
|
|
15
11
|
*
|
|
16
12
|
* @internal
|
|
17
13
|
*/
|
|
18
14
|
export function DraggableMeasureValueFilter({ FilterComponent, filter, filterIndex, autoOpen, readonly, onMeasureValueFilterChanged, onMeasureValueFilterAdded, }) {
|
|
19
15
|
const isInEditMode = useDashboardSelector(selectIsInEditMode);
|
|
16
|
+
const [{ isDragging }, dragRef] = useDashboardDrag({
|
|
17
|
+
dragItem: {
|
|
18
|
+
type: "measureValueFilter",
|
|
19
|
+
filter,
|
|
20
|
+
filterIndex,
|
|
21
|
+
},
|
|
22
|
+
canDrag: isInEditMode,
|
|
23
|
+
}, [filter, filterIndex, isInEditMode]);
|
|
20
24
|
const canAddMoreFilters = useDashboardSelector(selectCanAddMoreFilters);
|
|
21
|
-
const showDropZones = isInEditMode;
|
|
25
|
+
const showDropZones = isInEditMode && !isDragging;
|
|
22
26
|
return (_jsxs("div", { className: "draggable-measure-value-filter", children: [showDropZones ? (_jsx(DraggableFilterDropZoneHint, { hintPosition: "prev", targetIndex: filterIndex, onAddAttributePlaceholder: onMeasureValueFilterAdded, acceptPlaceholder: canAddMoreFilters })) : null, _jsx("div", { className: classNames("dash-filters-notdate", "dash-filters-mvf", {
|
|
23
27
|
"dash-filter-is-edit-mode": isInEditMode,
|
|
24
|
-
|
|
28
|
+
"is-dragging": isDragging,
|
|
29
|
+
}), ref: dragRef, children: _jsx(FilterComponent, { autoOpen: autoOpen, filter: filter, filterIndex: filterIndex, readonly: readonly, onMeasureValueFilterChanged: onMeasureValueFilterChanged }) }), showDropZones ? (_jsx(DraggableFilterDropZoneHint, { hintPosition: "next", targetIndex: filterIndex, onAddAttributePlaceholder: onMeasureValueFilterAdded, acceptPlaceholder: canAddMoreFilters })) : null] }));
|
|
25
30
|
}
|
|
26
31
|
//# sourceMappingURL=DraggableMeasureValueFilter.js.map
|
package/esm/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableMeasureValueFilter.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DraggableMeasureValueFilter.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableMeasureValueFilter/DraggableMeasureValueFilter.tsx"],"names":[],"mappings":";AAIA,OAAO,UAAU,MAAM,YAAY,CAAC;AAIpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,mEAAmE,CAAC;AAE5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AACxG,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAgB1D;;;;;GAKG;AACH,MAA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iB,GACtC,CACL,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AAAA,CACL"}
|
package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ParameterDraggableItem } from "../types.js";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export interface IParameterDraggingComponentProps {
|
|
6
|
+
itemType: "parameter";
|
|
7
|
+
item: ParameterDraggableItem;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders the floating preview of a parameter chip while it is being dragged.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function DefaultParameterDraggingComponent({ item }: IParameterDraggingComponentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
//# sourceMappingURL=DefaultParameterDraggingComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultParameterDraggingComponent.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,QAAQ,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,sBAAsB,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,IAAI,EAAE,EAAE,gCAAgC,kDAkB3F"}
|
package/esm/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { ParameterControlButton } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
5
|
+
import { selectCatalogParameterByRef } from "../../../model/store/catalog/catalogSelectors.js";
|
|
6
|
+
import { selectDashboardParameterEntryByRef } from "../../../model/store/parameters/parametersSelectors.js";
|
|
7
|
+
/**
|
|
8
|
+
* Renders the floating preview of a parameter chip while it is being dragged.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export function DefaultParameterDraggingComponent({ item }) {
|
|
13
|
+
const entry = useDashboardSelector(selectDashboardParameterEntryByRef(item.ref));
|
|
14
|
+
const workspaceParameter = useDashboardSelector(selectCatalogParameterByRef(item.ref));
|
|
15
|
+
if (entry?.runtimeOverride === undefined) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const name = entry.parameter.label ?? workspaceParameter?.title ?? "";
|
|
19
|
+
return (_jsx(ParameterControlButton, { name: name, value: entry.runtimeOverride, isActive: false, isDraggable: true, isDragging: true }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=DefaultParameterDraggingComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultParameterDraggingComponent.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableParameterFilter/DefaultParameterDraggingComponent.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,kCAAkC,EAAE,MAAM,wDAAwD,CAAC;AAW5G;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAAC,EAAE,IAAI,EAAoC,EAAE;IAC1F,MAAM,KAAK,GAAG,oBAAoB,CAAC,kCAAkC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACjF,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,2BAA2B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAEvF,IAAI,KAAK,EAAE,eAAe,KAAK,SAAS,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,kBAAkB,EAAE,KAAK,IAAI,EAAE,CAAC;IACtE,OAAO,CACH,KAAC,sBAAsB,IACnB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,CAAC,eAAe,EAC5B,QAAQ,EAAE,KAAK,EACf,WAAW,QACX,UAAU,SACZ,CACL,CAAC;AAAA,CACL"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ComponentType, type ReactElement } from "react";
|
|
2
|
-
import { type DashboardAttributeFilterItem, type IDashboardDateFilter, type IFilter, type IInsight, type IKpi } from "@gooddata/sdk-model";
|
|
2
|
+
import { type DashboardAttributeFilterItem, type IDashboardDateFilter, type IDashboardMeasureValueFilter, type IFilter, type IInsight, type IKpi, type ObjRef } from "@gooddata/sdk-model";
|
|
3
3
|
import { type ICustomWidget } from "../../model/types/layoutTypes.js";
|
|
4
4
|
import { type ILayoutItemPath, type ILayoutSectionPath } from "../../types.js";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
export type DraggableContentItemType = "attributeFilter" | "dateFilter" | "attributeFilter-placeholder" | "insightListItem" | "insight" | "insight-placeholder" | "kpi" | "kpi-placeholder" | "richText" | "richTextListItem" | "visualizationSwitcher" | "visualizationSwitcherListItem" | "dashboardLayout" | "dashboardLayoutListItem" | "custom";
|
|
8
|
+
export type DraggableContentItemType = "attributeFilter" | "dateFilter" | "parameter" | "measureValueFilter" | "attributeFilter-placeholder" | "insightListItem" | "insight" | "insight-placeholder" | "kpi" | "kpi-placeholder" | "richText" | "richTextListItem" | "visualizationSwitcher" | "visualizationSwitcherListItem" | "dashboardLayout" | "dashboardLayoutListItem" | "custom";
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
@@ -29,7 +29,7 @@ export type AttributeFilterDraggableItem = {
|
|
|
29
29
|
/**
|
|
30
30
|
* @internal
|
|
31
31
|
*/
|
|
32
|
-
export declare function isAttributeFilterDraggableItem(item:
|
|
32
|
+
export declare function isAttributeFilterDraggableItem(item: DraggableContentItem): item is AttributeFilterDraggableItem;
|
|
33
33
|
/**
|
|
34
34
|
* @internal
|
|
35
35
|
*/
|
|
@@ -41,7 +41,30 @@ export type DateFilterDraggableItem = {
|
|
|
41
41
|
/**
|
|
42
42
|
* @internal
|
|
43
43
|
*/
|
|
44
|
-
export declare function isDateFilterDraggableItem(item:
|
|
44
|
+
export declare function isDateFilterDraggableItem(item: DraggableContentItem): item is DateFilterDraggableItem;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export type ParameterDraggableItem = {
|
|
49
|
+
type: "parameter";
|
|
50
|
+
ref: ObjRef;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export declare function isParameterDraggableItem(item: DraggableContentItem): item is ParameterDraggableItem;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
export type MeasureValueFilterDraggableItem = {
|
|
60
|
+
type: "measureValueFilter";
|
|
61
|
+
filter: IDashboardMeasureValueFilter;
|
|
62
|
+
filterIndex: number;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
export declare function isMeasureValueFilterDraggableItem(item: DraggableContentItem): item is MeasureValueFilterDraggableItem;
|
|
45
68
|
/**
|
|
46
69
|
* @internal
|
|
47
70
|
*/
|
|
@@ -213,7 +236,7 @@ export type CustomDraggableItem = {
|
|
|
213
236
|
/**
|
|
214
237
|
* @internal
|
|
215
238
|
*/
|
|
216
|
-
export type DraggableContentItem = AttributeFilterDraggableItem | AttributeFilterPlaceholderDraggableItem | DateFilterDraggableItem | InsightDraggableItem | InsightDraggableListItem | InsightPlaceholderDraggableItem | KpiDraggableItem | KpiPlaceholderDraggableItem | RichTextDraggableItem | RichTextDraggableListItem | VisualizationSwitcherDraggableItem | VisualizationSwitcherDraggableListItem | DashboardLayoutDraggableItem | DashboardLayoutDraggableListItem | CustomWidgetDraggableItem | CustomDraggableItem;
|
|
239
|
+
export type DraggableContentItem = AttributeFilterDraggableItem | AttributeFilterPlaceholderDraggableItem | DateFilterDraggableItem | ParameterDraggableItem | MeasureValueFilterDraggableItem | InsightDraggableItem | InsightDraggableListItem | InsightPlaceholderDraggableItem | KpiDraggableItem | KpiPlaceholderDraggableItem | RichTextDraggableItem | RichTextDraggableListItem | VisualizationSwitcherDraggableItem | VisualizationSwitcherDraggableListItem | DashboardLayoutDraggableItem | DashboardLayoutDraggableListItem | CustomWidgetDraggableItem | CustomDraggableItem;
|
|
217
240
|
/**
|
|
218
241
|
* @internal
|
|
219
242
|
*/
|
|
@@ -236,6 +259,8 @@ export type DraggableItemTypeMapping = DraggableItemComponentTypeMapping & Dragg
|
|
|
236
259
|
export type DraggableItemComponentTypeMapping = {
|
|
237
260
|
attributeFilter: AttributeFilterDraggableItem;
|
|
238
261
|
dateFilter: DateFilterDraggableItem;
|
|
262
|
+
measureValueFilter: MeasureValueFilterDraggableItem;
|
|
263
|
+
parameter: ParameterDraggableItem;
|
|
239
264
|
"attributeFilter-placeholder": AttributeFilterPlaceholderDraggableItem;
|
|
240
265
|
insight: InsightDraggableItem;
|
|
241
266
|
insightListItem: InsightDraggableListItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EACH,KAAK,4B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AAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,aAAa,CAAC,iCAAiC,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAC9C,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,aAAa,CAAC,iCAAiC,CAAC,CAAC"}
|
|
@@ -17,6 +17,18 @@ export function isAttributeFilterDraggableItem(item) {
|
|
|
17
17
|
export function isDateFilterDraggableItem(item) {
|
|
18
18
|
return item.type === "dateFilter";
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export function isParameterDraggableItem(item) {
|
|
24
|
+
return item.type === "parameter";
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export function isMeasureValueFilterDraggableItem(item) {
|
|
30
|
+
return item.type === "measureValueFilter";
|
|
31
|
+
}
|
|
20
32
|
/**
|
|
21
33
|
* @internal
|
|
22
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/types.ts"],"names":[],"mappings":"AAAA,qCAAqC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/types.ts"],"names":[],"mappings":"AAAA,qCAAqC;AA2CrC;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,IAAY,EAAqC;IACzF,OAAO,IAAI,KAAK,wBAAwB,IAAI,IAAI,KAAK,yBAAyB,CAAC;AAAA,CAClF;AAgBD;;GA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
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare function useFilterDeleteDrop(): [{
|
|
7
|
+
isOver: boolean;
|
|
8
|
+
canDrop: boolean;
|
|
9
|
+
itemType: import("./types.js").DraggableItemType;
|
|
10
|
+
item: import("./types.js").AttributeFilterDraggableItem | import("./types.js").DateFilterDraggableItem | import("./types.js").MeasureValueFilterDraggableItem | import("./types.js").ParameterDraggableItem;
|
|
11
|
+
}, import("@evil-internetmann/react-dnd").ConnectDropTarget];
|
|
12
|
+
//# sourceMappingURL=useFilterDeleteDrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterDeleteDrop.d.ts","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/useFilterDeleteDrop.ts"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,wBAAgB,mBAAmB;;;;;6DAsBlC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { dashboardAttributeFilterItemLocalIdentifier, dashboardFilterLocalIdentifier, } from "@gooddata/sdk-model";
|
|
3
|
+
import { removeAttributeFilter, removeDateFilter, removeMeasureValueFilter, } from "../../model/commands/filters.js";
|
|
4
|
+
import { useDashboardDispatch } from "../../model/react/DashboardStoreProvider.js";
|
|
5
|
+
import { parametersActions } from "../../model/store/parameters/index.js";
|
|
6
|
+
import { isAttributeFilterDraggableItem, isDateFilterDraggableItem, isMeasureValueFilterDraggableItem, isParameterDraggableItem, } from "./types.js";
|
|
7
|
+
import { useDashboardDrop } from "./useDashboardDrop.js";
|
|
8
|
+
/**
|
|
9
|
+
* Drop target used for deleting supported dashboard items via drag-and-drop.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export function useFilterDeleteDrop() {
|
|
14
|
+
const dispatch = useDashboardDispatch();
|
|
15
|
+
return useDashboardDrop(["attributeFilter", "dateFilter", "parameter", "measureValueFilter"], {
|
|
16
|
+
drop: (item) => {
|
|
17
|
+
if (isAttributeFilterDraggableItem(item)) {
|
|
18
|
+
const identifier = dashboardAttributeFilterItemLocalIdentifier(item.filter);
|
|
19
|
+
dispatch(removeAttributeFilter(identifier));
|
|
20
|
+
}
|
|
21
|
+
else if (isDateFilterDraggableItem(item)) {
|
|
22
|
+
const dataSet = item.filter.dateFilter.dataSet;
|
|
23
|
+
dispatch(removeDateFilter(dataSet));
|
|
24
|
+
}
|
|
25
|
+
else if (isMeasureValueFilterDraggableItem(item)) {
|
|
26
|
+
const identifier = dashboardFilterLocalIdentifier(item.filter);
|
|
27
|
+
dispatch(removeMeasureValueFilter(identifier));
|
|
28
|
+
}
|
|
29
|
+
else if (isParameterDraggableItem(item)) {
|
|
30
|
+
dispatch(parametersActions.removeParameter({ ref: item.ref }));
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
}, [dispatch]);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=useFilterDeleteDrop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterDeleteDrop.js","sourceRoot":"","sources":["../../../src/presentation/dragAndDrop/useFilterDeleteDrop.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EACH,2CAA2C,EAC3C,8BAA8B,GACjC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EACH,8BAA8B,EAC9B,yBAAyB,EACzB,iCAAiC,EACjC,wBAAwB,GAC3B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,GAAG;IAClC,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IACxC,OAAO,gBAAgB,CACnB,CAAC,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,oBAAoB,CAAC,EACpE;QACI,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;YACZ,IAAI,8BAA8B,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvC,MAAM,UAAU,GAAG,2CAA2C,CAAC,IAAI,CAAC,MAAM,CAAE,CAAC;gBAC7E,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC;YAChD,CAAC;iBAAM,IAAI,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,OAAQ,CAAC;gBAChD,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;YACxC,CAAC;iBAAM,IAAI,iCAAiC,CAAC,IAAI,CAAC,EAAE,CAAC;gBACjD,MAAM,UAAU,GAAG,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAE,CAAC;gBAChE,QAAQ,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC;YACnD,CAAC;iBAAM,IAAI,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxC,QAAQ,CAAC,iBAAiB,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACnE,CAAC;QAAA,CACJ;KACJ,EACD,CAAC,QAAQ,CAAC,CACb,CAAC;AAAA,CACL"}
|
package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { type IDashboardAttributeFilterPlaceholderProps } from "../types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export declare function AttributesDropdown({ id, className, bodyClassName, onClose, onOpen, onSelect, attributes, dateDatasets, openOnInit, DropdownButtonComponent, DropdownTitleComponent, renderNoData, overlayPositionType, getCustomItemTitle, accessibilityConfig, returnFocusTo }: IDashboardAttributeFilterPlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function AttributesDropdown({ id, className, bodyClassName, onClose, onOpen, onSelect, attributes, dateDatasets, measures, openOnInit, DropdownButtonComponent, DropdownTitleComponent, renderNoData, overlayPositionType, getCustomItemTitle, accessibilityConfig, returnFocusTo }: IDashboardAttributeFilterPlaceholderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=AttributesDropdown.d.ts.map
|
package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributesDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AttributesDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.tsx"],"names":[],"mappings":"AA+BA,OAAO,EAAE,KAAK,yCAAyC,EAAE,MAAM,aAAa,CAAC;AAmF7E;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAC/B,EAAE,EACF,SAAS,EACT,aAAa,EACb,OAAO,EACP,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,QAAa,EACb,UAAiB,EACjB,uBAAkD,EAClD,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EAChB,EAAE,yCAAyC,2CAsR3C"}
|