@gooddata/sdk-ui-metric-component 0.0.0-stage → 11.65.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/NOTICE +71721 -0
- package/README.md +13 -2
- package/esm/MaqlEditor/components/ExpandableTooltip.d.ts +50 -0
- package/esm/MaqlEditor/components/ExpandableTooltip.d.ts.map +1 -0
- package/esm/MaqlEditor/components/ExpandableTooltip.js +150 -0
- package/esm/MaqlEditor/components/ExpandableTooltipContext.d.ts +10 -0
- package/esm/MaqlEditor/components/ExpandableTooltipContext.d.ts.map +1 -0
- package/esm/MaqlEditor/components/ExpandableTooltipContext.js +17 -0
- package/esm/MaqlEditor/components/hooks/useExpandableTooltip.d.ts +3 -0
- package/esm/MaqlEditor/components/hooks/useExpandableTooltip.d.ts.map +1 -0
- package/esm/MaqlEditor/components/hooks/useExpandableTooltip.js +10 -0
- package/esm/MaqlEditor/components/hooks/useOutsideEvents.d.ts +10 -0
- package/esm/MaqlEditor/components/hooks/useOutsideEvents.d.ts.map +1 -0
- package/esm/MaqlEditor/components/hooks/useOutsideEvents.js +43 -0
- package/esm/MaqlEditor/components/hooks/useRePosition.d.ts +20 -0
- package/esm/MaqlEditor/components/hooks/useRePosition.d.ts.map +1 -0
- package/esm/MaqlEditor/components/hooks/useRePosition.js +108 -0
- package/esm/MaqlEditor/components/hooks/utils.d.ts +4 -0
- package/esm/MaqlEditor/components/hooks/utils.d.ts.map +1 -0
- package/esm/MaqlEditor/components/hooks/utils.js +18 -0
- package/esm/MaqlEditor/hooks/useAutoformat.d.ts +3 -0
- package/esm/MaqlEditor/hooks/useAutoformat.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useAutoformat.js +15 -0
- package/esm/MaqlEditor/hooks/useCleanCallback.d.ts +4 -0
- package/esm/MaqlEditor/hooks/useCleanCallback.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useCleanCallback.js +12 -0
- package/esm/MaqlEditor/hooks/useCodeTheme.d.ts +3 -0
- package/esm/MaqlEditor/hooks/useCodeTheme.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useCodeTheme.js +48 -0
- package/esm/MaqlEditor/hooks/useCopyToClipboard.d.ts +3 -0
- package/esm/MaqlEditor/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useCopyToClipboard.js +16 -0
- package/esm/MaqlEditor/hooks/useMountCallback.d.ts +13 -0
- package/esm/MaqlEditor/hooks/useMountCallback.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useMountCallback.js +26 -0
- package/esm/MaqlEditor/hooks/useUpdateCallback.d.ts +19 -0
- package/esm/MaqlEditor/hooks/useUpdateCallback.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useUpdateCallback.js +63 -0
- package/esm/MaqlEditor/hooks/useValueCallbacks.d.ts +6 -0
- package/esm/MaqlEditor/hooks/useValueCallbacks.d.ts.map +1 -0
- package/esm/MaqlEditor/hooks/useValueCallbacks.js +14 -0
- package/esm/MaqlEditor/languageService/LanguageServiceContext.d.ts +13 -0
- package/esm/MaqlEditor/languageService/LanguageServiceContext.d.ts.map +1 -0
- package/esm/MaqlEditor/languageService/LanguageServiceContext.js +20 -0
- package/esm/MaqlEditor/maql/MaqlEditor.d.ts +30 -0
- package/esm/MaqlEditor/maql/MaqlEditor.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/MaqlEditor.js +42 -0
- package/esm/MaqlEditor/maql/MaqlEditor.styles.d.ts +8 -0
- package/esm/MaqlEditor/maql/MaqlEditor.styles.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/MaqlEditor.styles.js +154 -0
- package/esm/MaqlEditor/maql/MaqlEditor.tooltip.d.ts +36 -0
- package/esm/MaqlEditor/maql/MaqlEditor.tooltip.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/MaqlEditor.tooltip.js +187 -0
- package/esm/MaqlEditor/maql/constants.d.ts +2 -0
- package/esm/MaqlEditor/maql/constants.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/constants.js +2 -0
- package/esm/MaqlEditor/maql/formatter.d.ts +6 -0
- package/esm/MaqlEditor/maql/formatter.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/formatter.js +14 -0
- package/esm/MaqlEditor/maql/hooks/hover/doHover.d.ts +12 -0
- package/esm/MaqlEditor/maql/hooks/hover/doHover.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/hover/doHover.js +126 -0
- package/esm/MaqlEditor/maql/hooks/hover/useHoverEvent.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/hover/useHoverEvent.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/hover/useHoverEvent.js +32 -0
- package/esm/MaqlEditor/maql/hooks/useAutocomplete.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/useAutocomplete.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useAutocomplete.js +60 -0
- package/esm/MaqlEditor/maql/hooks/useDecoration.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/useDecoration.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useDecoration.js +73 -0
- package/esm/MaqlEditor/maql/hooks/useDocumentFormatting.d.ts +3 -0
- package/esm/MaqlEditor/maql/hooks/useDocumentFormatting.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useDocumentFormatting.js +29 -0
- package/esm/MaqlEditor/maql/hooks/useHover.d.ts +6 -0
- package/esm/MaqlEditor/maql/hooks/useHover.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useHover.js +77 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageConfiguration.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageConfiguration.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageConfiguration.js +21 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageService.d.ts +3 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageService.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageService.js +21 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageServiceInitializer.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageServiceInitializer.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useLanguageServiceInitializer.js +11 -0
- package/esm/MaqlEditor/maql/hooks/useMonaco.d.ts +21 -0
- package/esm/MaqlEditor/maql/hooks/useMonaco.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useMonaco.js +75 -0
- package/esm/MaqlEditor/maql/hooks/useSemanticHighlight.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/useSemanticHighlight.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useSemanticHighlight.js +33 -0
- package/esm/MaqlEditor/maql/hooks/useSyntaxHighlight.d.ts +2 -0
- package/esm/MaqlEditor/maql/hooks/useSyntaxHighlight.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useSyntaxHighlight.js +28 -0
- package/esm/MaqlEditor/maql/hooks/useValidation.d.ts +4 -0
- package/esm/MaqlEditor/maql/hooks/useValidation.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/hooks/useValidation.js +56 -0
- package/esm/MaqlEditor/maql/utils.d.ts +4 -0
- package/esm/MaqlEditor/maql/utils.d.ts.map +1 -0
- package/esm/MaqlEditor/maql/utils.js +6 -0
- package/esm/MaqlEditor/mock/monaco-shim.d.ts +2 -0
- package/esm/MaqlEditor/mock/monaco-shim.d.ts.map +1 -0
- package/esm/MaqlEditor/mock/monaco-shim.js +36 -0
- package/esm/MaqlEditor/monaco/MonacoEditor.d.ts +49 -0
- package/esm/MaqlEditor/monaco/MonacoEditor.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/MonacoEditor.js +71 -0
- package/esm/MaqlEditor/monaco/MonacoEditor.styles.d.ts +47 -0
- package/esm/MaqlEditor/monaco/MonacoEditor.styles.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/MonacoEditor.styles.js +427 -0
- package/esm/MaqlEditor/monaco/hooks/useAutofocus.d.ts +3 -0
- package/esm/MaqlEditor/monaco/hooks/useAutofocus.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/hooks/useAutofocus.js +33 -0
- package/esm/MaqlEditor/monaco/hooks/useDefaultValue.d.ts +3 -0
- package/esm/MaqlEditor/monaco/hooks/useDefaultValue.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/hooks/useDefaultValue.js +14 -0
- package/esm/MaqlEditor/monaco/hooks/useEditorInit.d.ts +3 -0
- package/esm/MaqlEditor/monaco/hooks/useEditorInit.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/hooks/useEditorInit.js +84 -0
- package/esm/MaqlEditor/monaco/hooks/useEditorOptions.d.ts +3 -0
- package/esm/MaqlEditor/monaco/hooks/useEditorOptions.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/hooks/useEditorOptions.js +51 -0
- package/esm/MaqlEditor/monaco/hooks/useMonaco.d.ts +3 -0
- package/esm/MaqlEditor/monaco/hooks/useMonaco.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/hooks/useMonaco.js +24 -0
- package/esm/MaqlEditor/monaco/monacoContributions.d.ts +74 -0
- package/esm/MaqlEditor/monaco/monacoContributions.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/monacoContributions.js +88 -0
- package/esm/MaqlEditor/monaco/monacoWorkers.d.ts +12 -0
- package/esm/MaqlEditor/monaco/monacoWorkers.d.ts.map +1 -0
- package/esm/MaqlEditor/monaco/monacoWorkers.js +63 -0
- package/esm/MaqlEditor/sql/SqlEditor.d.ts +21 -0
- package/esm/MaqlEditor/sql/SqlEditor.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/SqlEditor.js +45 -0
- package/esm/MaqlEditor/sql/SqlEditor.styles.d.ts +3 -0
- package/esm/MaqlEditor/sql/SqlEditor.styles.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/SqlEditor.styles.js +3 -0
- package/esm/MaqlEditor/sql/constants.d.ts +2 -0
- package/esm/MaqlEditor/sql/constants.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/constants.js +2 -0
- package/esm/MaqlEditor/sql/formatter.d.ts +6 -0
- package/esm/MaqlEditor/sql/formatter.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/formatter.js +17 -0
- package/esm/MaqlEditor/sql/hooks/useDocumentFormatting.d.ts +2 -0
- package/esm/MaqlEditor/sql/hooks/useDocumentFormatting.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/hooks/useDocumentFormatting.js +26 -0
- package/esm/MaqlEditor/sql/hooks/useLanguageConfiguration.d.ts +4 -0
- package/esm/MaqlEditor/sql/hooks/useLanguageConfiguration.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/hooks/useLanguageConfiguration.js +29 -0
- package/esm/MaqlEditor/sql/hooks/useMonaco.d.ts +14 -0
- package/esm/MaqlEditor/sql/hooks/useMonaco.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/hooks/useMonaco.js +26 -0
- package/esm/MaqlEditor/sql/hooks/useSyntaxHighlight.d.ts +2 -0
- package/esm/MaqlEditor/sql/hooks/useSyntaxHighlight.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/hooks/useSyntaxHighlight.js +796 -0
- package/esm/MaqlEditor/sql/utils.d.ts +4 -0
- package/esm/MaqlEditor/sql/utils.d.ts.map +1 -0
- package/esm/MaqlEditor/sql/utils.js +6 -0
- package/esm/MaqlEditor/statusBar/SuggestionStatusBar.d.ts +9 -0
- package/esm/MaqlEditor/statusBar/SuggestionStatusBar.d.ts.map +1 -0
- package/esm/MaqlEditor/statusBar/SuggestionStatusBar.js +38 -0
- package/esm/MaqlEditor/theme/default.d.ts +204 -0
- package/esm/MaqlEditor/theme/default.d.ts.map +1 -0
- package/esm/MaqlEditor/theme/default.js +223 -0
- package/esm/MaqlEditor/theme/styles.d.ts +411 -0
- package/esm/MaqlEditor/theme/styles.d.ts.map +1 -0
- package/esm/MaqlEditor/theme/styles.js +5 -0
- package/esm/MaqlEditor/theme/theme.d.ts +206 -0
- package/esm/MaqlEditor/theme/theme.d.ts.map +1 -0
- package/esm/MaqlEditor/theme/theme.js +9 -0
- package/esm/MetricComponent/ConflictContext/ConflictContext.d.ts +9 -0
- package/esm/MetricComponent/ConflictContext/ConflictContext.d.ts.map +1 -0
- package/esm/MetricComponent/ConflictContext/ConflictContext.js +9 -0
- package/esm/MetricComponent/ConflictContext/useConflictDetection.d.ts +8 -0
- package/esm/MetricComponent/ConflictContext/useConflictDetection.d.ts.map +1 -0
- package/esm/MetricComponent/ConflictContext/useConflictDetection.js +48 -0
- package/esm/MetricComponent/Content/EditMetricContent.d.ts +3 -0
- package/esm/MetricComponent/Content/EditMetricContent.d.ts.map +1 -0
- package/esm/MetricComponent/Content/EditMetricContent.data.d.ts +52 -0
- package/esm/MetricComponent/Content/EditMetricContent.data.d.ts.map +1 -0
- package/esm/MetricComponent/Content/EditMetricContent.data.js +12 -0
- package/esm/MetricComponent/Content/EditMetricContent.events.d.ts +9 -0
- package/esm/MetricComponent/Content/EditMetricContent.events.d.ts.map +1 -0
- package/esm/MetricComponent/Content/EditMetricContent.events.js +21 -0
- package/esm/MetricComponent/Content/EditMetricContent.js +27 -0
- package/esm/MetricComponent/DeleteMetric.d.ts +12 -0
- package/esm/MetricComponent/DeleteMetric.d.ts.map +1 -0
- package/esm/MetricComponent/DeleteMetric.events.d.ts +10 -0
- package/esm/MetricComponent/DeleteMetric.events.d.ts.map +1 -0
- package/esm/MetricComponent/DeleteMetric.events.js +24 -0
- package/esm/MetricComponent/DeleteMetric.js +8 -0
- package/esm/MetricComponent/DeleteMetricConfirmDialog/DeleteMetricConfirmDialog.d.ts +6 -0
- package/esm/MetricComponent/DeleteMetricConfirmDialog/DeleteMetricConfirmDialog.d.ts.map +1 -0
- package/esm/MetricComponent/DeleteMetricConfirmDialog/DeleteMetricConfirmDialog.js +19 -0
- package/esm/MetricComponent/EditMetric.d.ts +48 -0
- package/esm/MetricComponent/EditMetric.d.ts.map +1 -0
- package/esm/MetricComponent/EditMetric.events.d.ts +16 -0
- package/esm/MetricComponent/EditMetric.events.d.ts.map +1 -0
- package/esm/MetricComponent/EditMetric.events.js +55 -0
- package/esm/MetricComponent/EditMetric.js +30 -0
- package/esm/MetricComponent/FeaturesAndSettings/index.d.ts +18 -0
- package/esm/MetricComponent/FeaturesAndSettings/index.d.ts.map +1 -0
- package/esm/MetricComponent/FeaturesAndSettings/index.js +25 -0
- package/esm/MetricComponent/Form/CloseButton/CloseButton.d.ts +6 -0
- package/esm/MetricComponent/Form/CloseButton/CloseButton.d.ts.map +1 -0
- package/esm/MetricComponent/Form/CloseButton/CloseButton.js +14 -0
- package/esm/MetricComponent/Form/EditMetricCenterForm.d.ts +15 -0
- package/esm/MetricComponent/Form/EditMetricCenterForm.d.ts.map +1 -0
- package/esm/MetricComponent/Form/EditMetricCenterForm.js +157 -0
- package/esm/MetricComponent/Form/EditMetricContentForm.d.ts +45 -0
- package/esm/MetricComponent/Form/EditMetricContentForm.d.ts.map +1 -0
- package/esm/MetricComponent/Form/EditMetricContentForm.events.d.ts +13 -0
- package/esm/MetricComponent/Form/EditMetricContentForm.events.d.ts.map +1 -0
- package/esm/MetricComponent/Form/EditMetricContentForm.events.js +32 -0
- package/esm/MetricComponent/Form/EditMetricContentForm.js +106 -0
- package/esm/MetricComponent/Form/EditableRow/EditableRow.d.ts +16 -0
- package/esm/MetricComponent/Form/EditableRow/EditableRow.d.ts.map +1 -0
- package/esm/MetricComponent/Form/EditableRow/EditableRow.js +82 -0
- package/esm/MetricComponent/Form/EditableRow/EditableRowError.d.ts +13 -0
- package/esm/MetricComponent/Form/EditableRow/EditableRowError.d.ts.map +1 -0
- package/esm/MetricComponent/Form/EditableRow/EditableRowError.js +5 -0
- package/esm/MetricComponent/Form/EditableRow/InlineEditableValue.d.ts +27 -0
- package/esm/MetricComponent/Form/EditableRow/InlineEditableValue.d.ts.map +1 -0
- package/esm/MetricComponent/Form/EditableRow/InlineEditableValue.js +125 -0
- package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.d.ts +9 -0
- package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.events.d.ts +7 -0
- package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.events.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.events.js +11 -0
- package/esm/MetricComponent/Form/Footer/EditMetricContentFooter.js +63 -0
- package/esm/MetricComponent/Form/Footer/EditMetricSaveMessage.d.ts +8 -0
- package/esm/MetricComponent/Form/Footer/EditMetricSaveMessage.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Footer/EditMetricSaveMessage.js +22 -0
- package/esm/MetricComponent/Form/Header/EditMetricContentHeader.d.ts +28 -0
- package/esm/MetricComponent/Form/Header/EditMetricContentHeader.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/EditMetricContentHeader.events.d.ts +7 -0
- package/esm/MetricComponent/Form/Header/EditMetricContentHeader.events.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/EditMetricContentHeader.events.js +11 -0
- package/esm/MetricComponent/Form/Header/EditMetricContentHeader.js +48 -0
- package/esm/MetricComponent/Form/Header/LockedBubble.d.ts +3 -0
- package/esm/MetricComponent/Form/Header/LockedBubble.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/LockedBubble.js +14 -0
- package/esm/MetricComponent/Form/Header/MetricDescriptionField.d.ts +10 -0
- package/esm/MetricComponent/Form/Header/MetricDescriptionField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/MetricDescriptionField.js +24 -0
- package/esm/MetricComponent/Form/Header/MetricIdField.d.ts +9 -0
- package/esm/MetricComponent/Form/Header/MetricIdField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/MetricIdField.js +80 -0
- package/esm/MetricComponent/Form/Header/MetricTagsField.d.ts +8 -0
- package/esm/MetricComponent/Form/Header/MetricTagsField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/MetricTagsField.js +61 -0
- package/esm/MetricComponent/Form/Header/MetricTitleField.d.ts +8 -0
- package/esm/MetricComponent/Form/Header/MetricTitleField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/MetricTitleField.js +40 -0
- package/esm/MetricComponent/Form/Header/MetricTypeField.d.ts +8 -0
- package/esm/MetricComponent/Form/Header/MetricTypeField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/MetricTypeField.js +42 -0
- package/esm/MetricComponent/Form/Header/Usage/Usage.d.ts +13 -0
- package/esm/MetricComponent/Form/Header/Usage/Usage.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/Usage/Usage.js +68 -0
- package/esm/MetricComponent/Form/Header/Usage/UsageItems.d.ts +11 -0
- package/esm/MetricComponent/Form/Header/Usage/UsageItems.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/Usage/UsageItems.js +88 -0
- package/esm/MetricComponent/Form/Header/Usage/UsagesOverlay.d.ts +17 -0
- package/esm/MetricComponent/Form/Header/Usage/UsagesOverlay.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/Usage/UsagesOverlay.js +119 -0
- package/esm/MetricComponent/Form/Header/share/MetricAccessChip.d.ts +9 -0
- package/esm/MetricComponent/Form/Header/share/MetricAccessChip.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/share/MetricAccessChip.js +39 -0
- package/esm/MetricComponent/Form/Header/share/MetricShare.d.ts +17 -0
- package/esm/MetricComponent/Form/Header/share/MetricShare.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/share/MetricShare.js +36 -0
- package/esm/MetricComponent/Form/Header/share/useApplyMetricAccess.d.ts +10 -0
- package/esm/MetricComponent/Form/Header/share/useApplyMetricAccess.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Header/share/useApplyMetricAccess.js +39 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.d.ts +11 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorEditor.js +128 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.d.ts +9 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.events.d.ts +11 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.events.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.events.js +25 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorField.js +68 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.d.ts +14 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlEditorField/MaqlEditorHeader.js +84 -0
- package/esm/MetricComponent/Form/MaqlEditorField/suggestionDetailsFunctions.d.ts +3 -0
- package/esm/MetricComponent/Form/MaqlEditorField/suggestionDetailsFunctions.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlEditorField/suggestionDetailsFunctions.js +57 -0
- package/esm/MetricComponent/Form/MaqlEditorUtils/Placeholder.d.ts +8 -0
- package/esm/MetricComponent/Form/MaqlEditorUtils/Placeholder.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlEditorUtils/Placeholder.js +72 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlResult.d.ts +19 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlResult.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlResult.js +144 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlResultHeader.d.ts +23 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlResultHeader.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlResultHeader.js +54 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlSql.d.ts +8 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlSql.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlSql.js +54 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlSqlHeader.d.ts +10 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlSqlHeader.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/MaqlSqlHeader.js +46 -0
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.d.ts +15 -0
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelect.js +171 -0
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelectItem.d.ts +10 -0
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelectItem.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/components/AttributesSelectItem.js +23 -0
- package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.d.ts +11 -0
- package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.d.ts.map +1 -0
- package/esm/MetricComponent/Form/MaqlResult/components/LimitSelect.js +134 -0
- package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.d.ts +10 -0
- package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.d.ts.map +1 -0
- package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.events.d.ts +7 -0
- package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.events.d.ts.map +1 -0
- package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.events.js +12 -0
- package/esm/MetricComponent/Form/NumberFormat/EditMetricContentNumberFormat.js +83 -0
- package/esm/MetricComponent/Form/OtherMetrics/OtherMetricsContext.d.ts +13 -0
- package/esm/MetricComponent/Form/OtherMetrics/OtherMetricsContext.d.ts.map +1 -0
- package/esm/MetricComponent/Form/OtherMetrics/OtherMetricsContext.js +23 -0
- package/esm/MetricComponent/Form/OtherMetrics/useOtherMetrics.d.ts +3 -0
- package/esm/MetricComponent/Form/OtherMetrics/useOtherMetrics.d.ts.map +1 -0
- package/esm/MetricComponent/Form/OtherMetrics/useOtherMetrics.js +6 -0
- package/esm/MetricComponent/Form/PartHeader/PartHeader.d.ts +20 -0
- package/esm/MetricComponent/Form/PartHeader/PartHeader.d.ts.map +1 -0
- package/esm/MetricComponent/Form/PartHeader/PartHeader.js +90 -0
- package/esm/MetricComponent/Form/PartHeader/PartHeaderButton.d.ts +16 -0
- package/esm/MetricComponent/Form/PartHeader/PartHeaderButton.d.ts.map +1 -0
- package/esm/MetricComponent/Form/PartHeader/PartHeaderButton.js +29 -0
- package/esm/MetricComponent/Form/Prefixes/PrefixesContext.d.ts +12 -0
- package/esm/MetricComponent/Form/Prefixes/PrefixesContext.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Prefixes/PrefixesContext.js +10 -0
- package/esm/MetricComponent/Form/Prefixes/usePrefixes.d.ts +3 -0
- package/esm/MetricComponent/Form/Prefixes/usePrefixes.d.ts.map +1 -0
- package/esm/MetricComponent/Form/Prefixes/usePrefixes.js +6 -0
- package/esm/MetricComponent/Form/TestingFormProvider.d.ts +10 -0
- package/esm/MetricComponent/Form/TestingFormProvider.d.ts.map +1 -0
- package/esm/MetricComponent/Form/TestingFormProvider.js +7 -0
- package/esm/MetricComponent/Form/attribute.d.ts +3 -0
- package/esm/MetricComponent/Form/attribute.d.ts.map +1 -0
- package/esm/MetricComponent/Form/attribute.js +9 -0
- package/esm/MetricComponent/Form/data.d.ts +23 -0
- package/esm/MetricComponent/Form/data.d.ts.map +1 -0
- package/esm/MetricComponent/Form/data.js +12 -0
- package/esm/MetricComponent/Form/hooks/useCatalog.d.ts +9 -0
- package/esm/MetricComponent/Form/hooks/useCatalog.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useCatalog.js +72 -0
- package/esm/MetricComponent/Form/hooks/useExecute.d.ts +14 -0
- package/esm/MetricComponent/Form/hooks/useExecute.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useExecute.js +26 -0
- package/esm/MetricComponent/Form/hooks/useExplain.d.ts +10 -0
- package/esm/MetricComponent/Form/hooks/useExplain.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useExplain.js +50 -0
- package/esm/MetricComponent/Form/hooks/useInvalidFocus.d.ts +5 -0
- package/esm/MetricComponent/Form/hooks/useInvalidFocus.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useInvalidFocus.js +20 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormField.d.ts +10 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormField.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormField.js +16 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormStatus.d.ts +5 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormStatus.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormStatus.js +5 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormatState.d.ts +41 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormatState.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useMetricFormatState.js +50 -0
- package/esm/MetricComponent/Form/hooks/useMetricValidation.d.ts +11 -0
- package/esm/MetricComponent/Form/hooks/useMetricValidation.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useMetricValidation.js +53 -0
- package/esm/MetricComponent/Form/hooks/useTitleExistsCheck.d.ts +2 -0
- package/esm/MetricComponent/Form/hooks/useTitleExistsCheck.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useTitleExistsCheck.js +19 -0
- package/esm/MetricComponent/Form/hooks/useToggleWithCollapse.d.ts +4 -0
- package/esm/MetricComponent/Form/hooks/useToggleWithCollapse.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useToggleWithCollapse.js +16 -0
- package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.d.ts +2 -0
- package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useUniqIdGenerator.js +48 -0
- package/esm/MetricComponent/Form/hooks/useValidationScheme.d.ts +10 -0
- package/esm/MetricComponent/Form/hooks/useValidationScheme.d.ts.map +1 -0
- package/esm/MetricComponent/Form/hooks/useValidationScheme.js +17 -0
- package/esm/MetricComponent/Form/inlineMeasure.d.ts +3 -0
- package/esm/MetricComponent/Form/inlineMeasure.d.ts.map +1 -0
- package/esm/MetricComponent/Form/inlineMeasure.js +11 -0
- package/esm/MetricComponent/Form/maqlFieldFunctions.d.ts +17 -0
- package/esm/MetricComponent/Form/maqlFieldFunctions.d.ts.map +1 -0
- package/esm/MetricComponent/Form/maqlFieldFunctions.js +43 -0
- package/esm/MetricComponent/Form/validationSchema.d.ts +12 -0
- package/esm/MetricComponent/Form/validationSchema.d.ts.map +1 -0
- package/esm/MetricComponent/Form/validationSchema.js +123 -0
- package/esm/MetricComponent/IdChangeConfirmDialog/IdChangeConfirmDialog.d.ts +15 -0
- package/esm/MetricComponent/IdChangeConfirmDialog/IdChangeConfirmDialog.d.ts.map +1 -0
- package/esm/MetricComponent/IdChangeConfirmDialog/IdChangeConfirmDialog.js +75 -0
- package/esm/MetricComponent/ManageMetric.d.ts +38 -0
- package/esm/MetricComponent/ManageMetric.d.ts.map +1 -0
- package/esm/MetricComponent/ManageMetric.js +29 -0
- package/esm/MetricComponent/ManageMetrics.d.ts +23 -0
- package/esm/MetricComponent/ManageMetrics.d.ts.map +1 -0
- package/esm/MetricComponent/ManageMetrics.js +32 -0
- package/esm/MetricComponent/MetricService.d.ts +7 -0
- package/esm/MetricComponent/MetricService.d.ts.map +1 -0
- package/esm/MetricComponent/MetricService.js +7 -0
- package/esm/MetricComponent/MetricState/TabContent.d.ts +37 -0
- package/esm/MetricComponent/MetricState/TabContent.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/TabContent.js +21 -0
- package/esm/MetricComponent/MetricState/hooks/useChangeIdDialog.d.ts +23 -0
- package/esm/MetricComponent/MetricState/hooks/useChangeIdDialog.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useChangeIdDialog.js +68 -0
- package/esm/MetricComponent/MetricState/hooks/useDirtyChanged.d.ts +4 -0
- package/esm/MetricComponent/MetricState/hooks/useDirtyChanged.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useDirtyChanged.js +16 -0
- package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.d.ts +17 -0
- package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useOnChangeCallback.js +41 -0
- package/esm/MetricComponent/MetricState/hooks/useOnDeleteCallback.d.ts +5 -0
- package/esm/MetricComponent/MetricState/hooks/useOnDeleteCallback.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useOnDeleteCallback.js +9 -0
- package/esm/MetricComponent/MetricState/hooks/useOnSaveCallback.d.ts +6 -0
- package/esm/MetricComponent/MetricState/hooks/useOnSaveCallback.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useOnSaveCallback.js +9 -0
- package/esm/MetricComponent/MetricState/hooks/useSaveTab.d.ts +9 -0
- package/esm/MetricComponent/MetricState/hooks/useSaveTab.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useSaveTab.js +93 -0
- package/esm/MetricComponent/MetricState/hooks/useTabsData.d.ts +16 -0
- package/esm/MetricComponent/MetricState/hooks/useTabsData.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useTabsData.js +62 -0
- package/esm/MetricComponent/MetricState/hooks/useUnsavedChanges.d.ts +17 -0
- package/esm/MetricComponent/MetricState/hooks/useUnsavedChanges.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useUnsavedChanges.js +86 -0
- package/esm/MetricComponent/MetricState/hooks/useUpdateMetricData.d.ts +5 -0
- package/esm/MetricComponent/MetricState/hooks/useUpdateMetricData.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useUpdateMetricData.js +10 -0
- package/esm/MetricComponent/MetricState/hooks/useUpdateMetricTab.d.ts +6 -0
- package/esm/MetricComponent/MetricState/hooks/useUpdateMetricTab.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/hooks/useUpdateMetricTab.js +17 -0
- package/esm/MetricComponent/MetricState/metricState.data.d.ts +37 -0
- package/esm/MetricComponent/MetricState/metricState.data.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/metricState.data.js +13 -0
- package/esm/MetricComponent/MetricState/useMetricState.d.ts +27 -0
- package/esm/MetricComponent/MetricState/useMetricState.d.ts.map +1 -0
- package/esm/MetricComponent/MetricState/useMetricState.js +127 -0
- package/esm/MetricComponent/MetricsContext/MetricsContext.d.ts +11 -0
- package/esm/MetricComponent/MetricsContext/MetricsContext.d.ts.map +1 -0
- package/esm/MetricComponent/MetricsContext/MetricsContext.js +14 -0
- package/esm/MetricComponent/MetricsContext/useMetricsContext.d.ts +3 -0
- package/esm/MetricComponent/MetricsContext/useMetricsContext.d.ts.map +1 -0
- package/esm/MetricComponent/MetricsContext/useMetricsContext.js +6 -0
- package/esm/MetricComponent/MetricsState.d.ts +39 -0
- package/esm/MetricComponent/MetricsState.d.ts.map +1 -0
- package/esm/MetricComponent/MetricsState.js +73 -0
- package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.d.ts +12 -0
- package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.d.ts.map +1 -0
- package/esm/MetricComponent/MinimizedMetricComponent/MinimizedMetricComponent.js +110 -0
- package/esm/MetricComponent/MinimizedMetrics.d.ts +10 -0
- package/esm/MetricComponent/MinimizedMetrics.d.ts.map +1 -0
- package/esm/MetricComponent/MinimizedMetrics.js +19 -0
- package/esm/MetricComponent/MultipleMetricsState.d.ts +61 -0
- package/esm/MetricComponent/MultipleMetricsState.d.ts.map +1 -0
- package/esm/MetricComponent/MultipleMetricsState.js +53 -0
- package/esm/MetricComponent/UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.d.ts +14 -0
- package/esm/MetricComponent/UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.d.ts.map +1 -0
- package/esm/MetricComponent/UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.js +52 -0
- package/esm/MetricComponent/hooks/useDeleteCallbacks.d.ts +7 -0
- package/esm/MetricComponent/hooks/useDeleteCallbacks.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useDeleteCallbacks.js +52 -0
- package/esm/MetricComponent/hooks/useDirtyChanged.d.ts +2 -0
- package/esm/MetricComponent/hooks/useDirtyChanged.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useDirtyChanged.js +10 -0
- package/esm/MetricComponent/hooks/useEditCallbacks.d.ts +23 -0
- package/esm/MetricComponent/hooks/useEditCallbacks.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useEditCallbacks.js +107 -0
- package/esm/MetricComponent/hooks/useFocusedField.d.ts +4 -0
- package/esm/MetricComponent/hooks/useFocusedField.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useFocusedField.js +9 -0
- package/esm/MetricComponent/hooks/useIdCallbacks.d.ts +22 -0
- package/esm/MetricComponent/hooks/useIdCallbacks.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useIdCallbacks.js +46 -0
- package/esm/MetricComponent/hooks/useInitialValueMetric.d.ts +4 -0
- package/esm/MetricComponent/hooks/useInitialValueMetric.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useInitialValueMetric.js +12 -0
- package/esm/MetricComponent/hooks/useInitialValues.d.ts +3 -0
- package/esm/MetricComponent/hooks/useInitialValues.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useInitialValues.js +13 -0
- package/esm/MetricComponent/hooks/useMetricContentState.d.ts +38 -0
- package/esm/MetricComponent/hooks/useMetricContentState.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useMetricContentState.js +73 -0
- package/esm/MetricComponent/hooks/useMetricDelete.d.ts +3 -0
- package/esm/MetricComponent/hooks/useMetricDelete.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useMetricDelete.js +14 -0
- package/esm/MetricComponent/hooks/useMetricSave.d.ts +4 -0
- package/esm/MetricComponent/hooks/useMetricSave.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useMetricSave.js +52 -0
- package/esm/MetricComponent/hooks/useMetricUsage.d.ts +8 -0
- package/esm/MetricComponent/hooks/useMetricUsage.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useMetricUsage.js +21 -0
- package/esm/MetricComponent/hooks/useOnCloseOrCancel.d.ts +7 -0
- package/esm/MetricComponent/hooks/useOnCloseOrCancel.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useOnCloseOrCancel.js +26 -0
- package/esm/MetricComponent/hooks/useOnSaveUnchanged.d.ts +12 -0
- package/esm/MetricComponent/hooks/useOnSaveUnchanged.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useOnSaveUnchanged.js +30 -0
- package/esm/MetricComponent/hooks/useSaveAsClick.d.ts +6 -0
- package/esm/MetricComponent/hooks/useSaveAsClick.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useSaveAsClick.js +62 -0
- package/esm/MetricComponent/hooks/useSaveClick.d.ts +11 -0
- package/esm/MetricComponent/hooks/useSaveClick.d.ts.map +1 -0
- package/esm/MetricComponent/hooks/useSaveClick.js +47 -0
- package/esm/MetricComponent/metric/deleteInfo.d.ts +6 -0
- package/esm/MetricComponent/metric/deleteInfo.d.ts.map +1 -0
- package/esm/MetricComponent/metric/deleteInfo.js +6 -0
- package/esm/MetricComponent/metric/emptyMetric.d.ts +8 -0
- package/esm/MetricComponent/metric/emptyMetric.d.ts.map +1 -0
- package/esm/MetricComponent/metric/emptyMetric.js +13 -0
- package/esm/MetricComponent/metric/idChangeHelper.d.ts +5 -0
- package/esm/MetricComponent/metric/idChangeHelper.d.ts.map +1 -0
- package/esm/MetricComponent/metric/idChangeHelper.js +11 -0
- package/esm/MetricComponent/metric/idValidator.d.ts +3 -0
- package/esm/MetricComponent/metric/idValidator.d.ts.map +1 -0
- package/esm/MetricComponent/metric/idValidator.js +5 -0
- package/esm/MetricComponent/metric/metricHelpers.d.ts +29 -0
- package/esm/MetricComponent/metric/metricHelpers.d.ts.map +1 -0
- package/esm/MetricComponent/metric/metricHelpers.js +114 -0
- package/esm/MetricComponent/metric/nameGenerators.d.ts +13 -0
- package/esm/MetricComponent/metric/nameGenerators.d.ts.map +1 -0
- package/esm/MetricComponent/metric/nameGenerators.js +63 -0
- package/esm/MetricComponent/metric/prefixHelper.d.ts +7 -0
- package/esm/MetricComponent/metric/prefixHelper.d.ts.map +1 -0
- package/esm/MetricComponent/metric/prefixHelper.js +43 -0
- package/esm/MetricComponent/metric/saveInfo.d.ts +13 -0
- package/esm/MetricComponent/metric/saveInfo.d.ts.map +1 -0
- package/esm/MetricComponent/metric/saveInfo.js +10 -0
- package/esm/MetricComponent/metric/transformer.d.ts +5 -0
- package/esm/MetricComponent/metric/transformer.d.ts.map +1 -0
- package/esm/MetricComponent/metric/transformer.js +17 -0
- package/esm/index.d.ts +41 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +35 -0
- package/esm/shared/Form/Form.d.ts +25 -0
- package/esm/shared/Form/Form.d.ts.map +1 -0
- package/esm/shared/Form/Form.js +48 -0
- package/esm/shared/Form/FormApi.d.ts +8 -0
- package/esm/shared/Form/FormApi.d.ts.map +1 -0
- package/esm/shared/Form/FormApi.js +14 -0
- package/esm/shared/Form/FormContext.d.ts +52 -0
- package/esm/shared/Form/FormContext.d.ts.map +1 -0
- package/esm/shared/Form/FormContext.js +50 -0
- package/esm/shared/Form/data.d.ts +5 -0
- package/esm/shared/Form/data.d.ts.map +1 -0
- package/esm/shared/Form/data.js +6 -0
- package/esm/shared/Form/hooks/useChanged.d.ts +5 -0
- package/esm/shared/Form/hooks/useChanged.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useChanged.js +14 -0
- package/esm/shared/Form/hooks/useDirty.d.ts +3 -0
- package/esm/shared/Form/hooks/useDirty.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useDirty.js +9 -0
- package/esm/shared/Form/hooks/useFormHandlersInternal.d.ts +12 -0
- package/esm/shared/Form/hooks/useFormHandlersInternal.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useFormHandlersInternal.js +16 -0
- package/esm/shared/Form/hooks/useFormState.d.ts +4 -0
- package/esm/shared/Form/hooks/useFormState.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useFormState.js +33 -0
- package/esm/shared/Form/hooks/useFormStatusInternal.d.ts +32 -0
- package/esm/shared/Form/hooks/useFormStatusInternal.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useFormStatusInternal.js +34 -0
- package/esm/shared/Form/hooks/useInvalidFocusField.d.ts +3 -0
- package/esm/shared/Form/hooks/useInvalidFocusField.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useInvalidFocusField.js +8 -0
- package/esm/shared/Form/hooks/useMutations.d.ts +4 -0
- package/esm/shared/Form/hooks/useMutations.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useMutations.js +97 -0
- package/esm/shared/Form/hooks/useRealFocus.d.ts +5 -0
- package/esm/shared/Form/hooks/useRealFocus.d.ts.map +1 -0
- package/esm/shared/Form/hooks/useRealFocus.js +38 -0
- package/esm/shared/Form/useFormChanged.d.ts +2 -0
- package/esm/shared/Form/useFormChanged.d.ts.map +1 -0
- package/esm/shared/Form/useFormChanged.js +12 -0
- package/esm/shared/Form/useFormDefaults.d.ts +2 -0
- package/esm/shared/Form/useFormDefaults.d.ts.map +1 -0
- package/esm/shared/Form/useFormDefaults.js +7 -0
- package/esm/shared/Form/useFormDirty.d.ts +2 -0
- package/esm/shared/Form/useFormDirty.d.ts.map +1 -0
- package/esm/shared/Form/useFormDirty.js +13 -0
- package/esm/shared/Form/useFormErrors.d.ts +3 -0
- package/esm/shared/Form/useFormErrors.d.ts.map +1 -0
- package/esm/shared/Form/useFormErrors.js +18 -0
- package/esm/shared/Form/useFormField.d.ts +24 -0
- package/esm/shared/Form/useFormField.d.ts.map +1 -0
- package/esm/shared/Form/useFormField.js +60 -0
- package/esm/shared/Form/useFormFieldElementRef.d.ts +3 -0
- package/esm/shared/Form/useFormFieldElementRef.d.ts.map +1 -0
- package/esm/shared/Form/useFormFieldElementRef.js +10 -0
- package/esm/shared/Form/useFormHandlers.d.ts +8 -0
- package/esm/shared/Form/useFormHandlers.d.ts.map +1 -0
- package/esm/shared/Form/useFormHandlers.js +45 -0
- package/esm/shared/Form/useFormStatus.d.ts +3 -0
- package/esm/shared/Form/useFormStatus.d.ts.map +1 -0
- package/esm/shared/Form/useFormStatus.js +10 -0
- package/esm/shared/Form/useFormValues.d.ts +3 -0
- package/esm/shared/Form/useFormValues.d.ts.map +1 -0
- package/esm/shared/Form/useFormValues.js +11 -0
- package/esm/shared/Form/utils.d.ts +2 -0
- package/esm/shared/Form/utils.d.ts.map +1 -0
- package/esm/shared/Form/utils.js +5 -0
- package/esm/shared/GlobalLoading/GlobalLoading.d.ts +2 -0
- package/esm/shared/GlobalLoading/GlobalLoading.d.ts.map +1 -0
- package/esm/shared/GlobalLoading/GlobalLoading.js +15 -0
- package/esm/shared/MaqlPreview/MaqlPreview.d.ts +19 -0
- package/esm/shared/MaqlPreview/MaqlPreview.d.ts.map +1 -0
- package/esm/shared/MaqlPreview/MaqlPreview.js +107 -0
- package/esm/shared/MaqlPreview/backend/measureExpressionTokens.d.ts +18 -0
- package/esm/shared/MaqlPreview/backend/measureExpressionTokens.d.ts.map +1 -0
- package/esm/shared/MaqlPreview/backend/measureExpressionTokens.js +83 -0
- package/esm/shared/MaqlPreview/hooks/useMetricTokens.d.ts +8 -0
- package/esm/shared/MaqlPreview/hooks/useMetricTokens.d.ts.map +1 -0
- package/esm/shared/MaqlPreview/hooks/useMetricTokens.js +14 -0
- package/esm/shared/MetricTooltip/MetricTooltip.d.ts +14 -0
- package/esm/shared/MetricTooltip/MetricTooltip.d.ts.map +1 -0
- package/esm/shared/MetricTooltip/MetricTooltip.events.d.ts +9 -0
- package/esm/shared/MetricTooltip/MetricTooltip.events.d.ts.map +1 -0
- package/esm/shared/MetricTooltip/MetricTooltip.events.js +18 -0
- package/esm/shared/MetricTooltip/MetricTooltip.js +46 -0
- package/esm/shared/MetricTooltip/MetricTooltipContent.d.ts +12 -0
- package/esm/shared/MetricTooltip/MetricTooltipContent.d.ts.map +1 -0
- package/esm/shared/MetricTooltip/MetricTooltipContent.js +38 -0
- package/esm/shared/MetricTooltip/fixtures.d.ts +3 -0
- package/esm/shared/MetricTooltip/fixtures.d.ts.map +1 -0
- package/esm/shared/MetricTooltip/fixtures.js +16 -0
- package/esm/shared/Tabs/Tab.d.ts +31 -0
- package/esm/shared/Tabs/Tab.d.ts.map +1 -0
- package/esm/shared/Tabs/Tab.js +171 -0
- package/esm/shared/Tabs/Tabs.classes.d.ts +13 -0
- package/esm/shared/Tabs/Tabs.classes.d.ts.map +1 -0
- package/esm/shared/Tabs/Tabs.classes.js +13 -0
- package/esm/shared/Tabs/Tabs.d.ts +4 -0
- package/esm/shared/Tabs/Tabs.d.ts.map +1 -0
- package/esm/shared/Tabs/Tabs.data.d.ts +37 -0
- package/esm/shared/Tabs/Tabs.data.d.ts.map +1 -0
- package/esm/shared/Tabs/Tabs.data.js +4 -0
- package/esm/shared/Tabs/Tabs.js +195 -0
- package/esm/shared/Tabs/hooks/useChangeScroll.d.ts +2 -0
- package/esm/shared/Tabs/hooks/useChangeScroll.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useChangeScroll.js +19 -0
- package/esm/shared/Tabs/hooks/useMouseDownRepeat.d.ts +3 -0
- package/esm/shared/Tabs/hooks/useMouseDownRepeat.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useMouseDownRepeat.js +43 -0
- package/esm/shared/Tabs/hooks/useScrollByButtons.d.ts +9 -0
- package/esm/shared/Tabs/hooks/useScrollByButtons.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useScrollByButtons.js +76 -0
- package/esm/shared/Tabs/hooks/useScrollToActive.d.ts +2 -0
- package/esm/shared/Tabs/hooks/useScrollToActive.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useScrollToActive.js +36 -0
- package/esm/shared/Tabs/hooks/useTabCallbacks.d.ts +7 -0
- package/esm/shared/Tabs/hooks/useTabCallbacks.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useTabCallbacks.js +17 -0
- package/esm/shared/Tabs/hooks/useTabs.d.ts +24 -0
- package/esm/shared/Tabs/hooks/useTabs.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useTabs.js +130 -0
- package/esm/shared/Tabs/hooks/useTabsCallbacks.d.ts +8 -0
- package/esm/shared/Tabs/hooks/useTabsCallbacks.d.ts.map +1 -0
- package/esm/shared/Tabs/hooks/useTabsCallbacks.js +19 -0
- package/esm/shared/authentication/Authentication.d.ts +8 -0
- package/esm/shared/authentication/Authentication.d.ts.map +1 -0
- package/esm/shared/authentication/Authentication.js +51 -0
- package/esm/shared/backend/tigerContractExpiredHandler.d.ts +3 -0
- package/esm/shared/backend/tigerContractExpiredHandler.d.ts.map +1 -0
- package/esm/shared/backend/tigerContractExpiredHandler.js +19 -0
- package/esm/shared/backend/tigerNotAuthenticatedHandler.d.ts +9 -0
- package/esm/shared/backend/tigerNotAuthenticatedHandler.d.ts.map +1 -0
- package/esm/shared/backend/tigerNotAuthenticatedHandler.js +36 -0
- package/esm/shared/eventing/EventContext.d.ts +25 -0
- package/esm/shared/eventing/EventContext.d.ts.map +1 -0
- package/esm/shared/eventing/EventContext.js +35 -0
- package/esm/shared/eventing/events.d.ts +52 -0
- package/esm/shared/eventing/events.d.ts.map +1 -0
- package/esm/shared/eventing/events.js +56 -0
- package/esm/shared/eventing/functions/errorToTrackingData.d.ts +12 -0
- package/esm/shared/eventing/functions/errorToTrackingData.d.ts.map +1 -0
- package/esm/shared/eventing/functions/errorToTrackingData.js +10 -0
- package/esm/shared/eventing/useEvents.d.ts +10 -0
- package/esm/shared/eventing/useEvents.d.ts.map +1 -0
- package/esm/shared/eventing/useEvents.js +16 -0
- package/esm/shared/hooks/useApi.d.ts +4 -0
- package/esm/shared/hooks/useApi.d.ts.map +1 -0
- package/esm/shared/hooks/useApi.js +15 -0
- package/esm/shared/hooks/useFocus.d.ts +3 -0
- package/esm/shared/hooks/useFocus.d.ts.map +1 -0
- package/esm/shared/hooks/useFocus.js +55 -0
- package/esm/shared/hooks/usePromiseHandlerIndicator.d.ts +2 -0
- package/esm/shared/hooks/usePromiseHandlerIndicator.d.ts.map +1 -0
- package/esm/shared/hooks/usePromiseHandlerIndicator.js +11 -0
- package/esm/shared/hooks/useProp.d.ts +3 -0
- package/esm/shared/hooks/useProp.d.ts.map +1 -0
- package/esm/shared/hooks/useProp.js +15 -0
- package/esm/shared/links.d.ts +9 -0
- package/esm/shared/links.d.ts.map +1 -0
- package/esm/shared/links.js +9 -0
- package/esm/shared/metrics/MetricsReloadContext.d.ts +8 -0
- package/esm/shared/metrics/MetricsReloadContext.d.ts.map +1 -0
- package/esm/shared/metrics/MetricsReloadContext.js +14 -0
- package/esm/shared/metrics/functions/metricListData.d.ts +4 -0
- package/esm/shared/metrics/functions/metricListData.d.ts.map +1 -0
- package/esm/shared/metrics/functions/metricListData.js +29 -0
- package/esm/shared/metrics/useMetricListData.d.ts +29 -0
- package/esm/shared/metrics/useMetricListData.d.ts.map +1 -0
- package/esm/shared/metrics/useMetricListData.events.d.ts +12 -0
- package/esm/shared/metrics/useMetricListData.events.d.ts.map +1 -0
- package/esm/shared/metrics/useMetricListData.events.js +31 -0
- package/esm/shared/metrics/useMetricListData.js +52 -0
- package/esm/shared/metrics/useMetrics.d.ts +16 -0
- package/esm/shared/metrics/useMetrics.d.ts.map +1 -0
- package/esm/shared/metrics/useMetrics.js +34 -0
- package/esm/shared/metrics/useReloadMetrics.d.ts +3 -0
- package/esm/shared/metrics/useReloadMetrics.d.ts.map +1 -0
- package/esm/shared/metrics/useReloadMetrics.js +10 -0
- package/esm/shared/permissions.d.ts +10 -0
- package/esm/shared/permissions.d.ts.map +1 -0
- package/esm/shared/permissions.js +53 -0
- package/esm/shared/platform.d.ts +2 -0
- package/esm/shared/platform.d.ts.map +1 -0
- package/esm/shared/platform.js +4 -0
- package/esm/shared/theme/index.d.ts +416 -0
- package/esm/shared/theme/index.d.ts.map +1 -0
- package/esm/shared/theme/index.js +193 -0
- package/esm/tests/render.test.utils.d.ts +9 -0
- package/esm/tests/render.test.utils.d.ts.map +1 -0
- package/esm/tests/render.test.utils.js +18 -0
- package/esm/translations/IntlWrapper.d.ts +9 -0
- package/esm/translations/IntlWrapper.d.ts.map +1 -0
- package/esm/translations/IntlWrapper.js +11 -0
- package/esm/translations/de-DE.json +131 -0
- package/esm/translations/en-AU.json +131 -0
- package/esm/translations/en-GB.json +131 -0
- package/esm/translations/en-US.json +518 -0
- package/esm/translations/es-419.json +131 -0
- package/esm/translations/es-ES.json +131 -0
- package/esm/translations/fi-FI.json +131 -0
- package/esm/translations/fr-CA.json +131 -0
- package/esm/translations/fr-FR.json +131 -0
- package/esm/translations/id-ID.json +131 -0
- package/esm/translations/it-IT.json +131 -0
- package/esm/translations/ja-JP.json +131 -0
- package/esm/translations/ko-KR.json +131 -0
- package/esm/translations/nl-NL.json +131 -0
- package/esm/translations/pl-PL.json +131 -0
- package/esm/translations/pt-BR.json +131 -0
- package/esm/translations/pt-PT.json +131 -0
- package/esm/translations/ru-RU.json +131 -0
- package/esm/translations/sl-SI.json +131 -0
- package/esm/translations/th-TH.json +131 -0
- package/esm/translations/tr-TR.json +131 -0
- package/esm/translations/translations.d.ts +21 -0
- package/esm/translations/translations.d.ts.map +1 -0
- package/esm/translations/translations.js +89 -0
- package/esm/translations/uk-UA.json +131 -0
- package/esm/translations/vi-VN.json +131 -0
- package/esm/translations/zh-HK.json +131 -0
- package/esm/translations/zh-Hans.json +131 -0
- package/esm/translations/zh-Hant.json +131 -0
- package/package.json +116 -3
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
3
|
+
import { ConfirmDialog } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { makeStyles } from "../../shared/theme/index.js";
|
|
5
|
+
import { SaveNameMode } from "../Content/EditMetricContent.data.js";
|
|
6
|
+
const useStyles = makeStyles()(() => ({
|
|
7
|
+
root: {
|
|
8
|
+
wordBreak: "break-word",
|
|
9
|
+
".modalityPlugin-mask": {
|
|
10
|
+
zIndex: 5001,
|
|
11
|
+
},
|
|
12
|
+
".gd-dialog": {
|
|
13
|
+
maxWidth: "420px !important",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
warningArea: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
marginTop: "20px",
|
|
19
|
+
"&:first-child": {
|
|
20
|
+
marginTop: 0,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
warningIconArea: {
|
|
24
|
+
fontSize: "20px",
|
|
25
|
+
color: "#F28601",
|
|
26
|
+
},
|
|
27
|
+
warningSpace: {
|
|
28
|
+
margin: "0 20px",
|
|
29
|
+
width: 1,
|
|
30
|
+
background: "#DDE4EB",
|
|
31
|
+
},
|
|
32
|
+
warningTextArea: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
flexDirection: "column",
|
|
35
|
+
gap: "10px",
|
|
36
|
+
color: "#464E56",
|
|
37
|
+
},
|
|
38
|
+
warningTextAreaTitle: {
|
|
39
|
+
color: "#000000",
|
|
40
|
+
},
|
|
41
|
+
contentArea: {
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
gap: "10px",
|
|
45
|
+
},
|
|
46
|
+
}));
|
|
47
|
+
export function IdChangeConfirmDialog({ onClose, onCancel, onSubmit, metricId, newMetricId, metricIdChanged, conflicts, mode, }) {
|
|
48
|
+
const intl = useIntl();
|
|
49
|
+
const { classes, cx } = useStyles();
|
|
50
|
+
const conflictsOccurred = conflicts.conflictWith.length > 0;
|
|
51
|
+
const bothWarnings = conflictsOccurred && metricIdChanged;
|
|
52
|
+
return (_jsx(ConfirmDialog, { cancelButtonText: mode === SaveNameMode.saveAsNew
|
|
53
|
+
? intl.formatMessage({ id: "metricComponent.idChangeConfirmDialog.generated" }, {
|
|
54
|
+
id: conflicts.usableIds[0],
|
|
55
|
+
})
|
|
56
|
+
: intl.formatMessage({ id: "metricComponent.idChangeConfirmDialog.keep" }), onCancel: onCancel, onClose: onClose, submitButtonText: !bothWarnings && conflictsOccurred
|
|
57
|
+
? intl.formatMessage({ id: "metricComponent.idChangeConfirmDialog.submitOverwrite" })
|
|
58
|
+
: intl.formatMessage({ id: "metricComponent.idChangeConfirmDialog.submitChange" }), isSubmitDisabled: false, showProgressIndicator: false, onSubmit: onSubmit, headline: !bothWarnings && conflictsOccurred
|
|
59
|
+
? intl.formatMessage({ id: "metricComponent.idChangeConfirmDialog.headlineOverwrite" })
|
|
60
|
+
: intl.formatMessage({ id: "metricComponent.idChangeConfirmDialog.headline" }), containerClassName: cx(classes.root, "s-id_change_dialog"), children: _jsxs(_Fragment, { children: [metricIdChanged && (_jsx(WarningArea, { simple: !bothWarnings, title: _jsx(FormattedMessage, { id: "metricComponent.idChangeConfirmDialog.changeTitle" }), content: _jsx(FormattedMessage, { id: "metricComponent.idChangeConfirmDialog.change", values: {
|
|
61
|
+
metricId: metricId || newMetricId,
|
|
62
|
+
b: (chunks) => _jsx("b", { children: chunks }),
|
|
63
|
+
} }) })), conflictsOccurred && (_jsx(WarningArea, { simple: !bothWarnings, title: _jsx(FormattedMessage, { id: "metricComponent.idChangeConfirmDialog.conflictsTitle" }), content: _jsxs("div", { className: cx(classes.contentArea), children: [_jsx("div", { children: _jsx(FormattedMessage, { id: "metricComponent.idChangeConfirmDialog.conflicts", values: {
|
|
64
|
+
metricId: newMetricId || metricId,
|
|
65
|
+
conflicts: conflicts.conflictWith.join(", "),
|
|
66
|
+
b: (chunks) => _jsx("b", { children: chunks }),
|
|
67
|
+
} }) }), !metricIdChanged && (_jsx("div", { children: _jsx(FormattedMessage, { id: "metricComponent.idChangeConfirmDialog.conflicts.footer" }) }))] }) }))] }) }));
|
|
68
|
+
}
|
|
69
|
+
function WarningArea({ title, content, simple }) {
|
|
70
|
+
const { classes } = useStyles();
|
|
71
|
+
if (simple) {
|
|
72
|
+
return content;
|
|
73
|
+
}
|
|
74
|
+
return (_jsxs("div", { className: classes.warningArea, children: [_jsx("div", { className: classes.warningIconArea, children: _jsx("div", { className: "icon gd-icon-warning" }) }), _jsx("div", { className: classes.warningSpace }), _jsxs("div", { className: classes.warningTextArea, children: [_jsx("div", { className: classes.warningTextAreaTitle, children: title }), _jsx("div", { children: content })] })] }));
|
|
75
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type Ref } from "react";
|
|
2
|
+
import { type IInsight, type IMeasureMetadataObject, type IMetadataObject, type ISeparators, type IWorkspacePermissions } from "@gooddata/sdk-model";
|
|
3
|
+
import { type IPrefixes } from "./Form/Prefixes/PrefixesContext.js";
|
|
4
|
+
import { type IDeleteMetricInfo } from "./metric/deleteInfo.js";
|
|
5
|
+
import { type IMeasureDef, type IMeasureSetting } from "./metric/metricHelpers.js";
|
|
6
|
+
import { type ISaveMetricInfo } from "./metric/saveInfo.js";
|
|
7
|
+
export interface IManageMetricApi {
|
|
8
|
+
save: () => Promise<void>;
|
|
9
|
+
saveForce: () => Promise<void>;
|
|
10
|
+
close: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface IManageMetricProps {
|
|
13
|
+
locale?: string;
|
|
14
|
+
setting?: IMeasureSetting;
|
|
15
|
+
prefixes?: IPrefixes;
|
|
16
|
+
editingMetric?: IMeasureDef | false | null;
|
|
17
|
+
deletingMetric?: IMeasureDef | false | null;
|
|
18
|
+
onDelete?: (metric: IMeasureMetadataObject, info: IDeleteMetricInfo, err: Error | null) => void;
|
|
19
|
+
onSave?: (metric: IMeasureDef, info: ISaveMetricInfo, err: Error | null) => Promise<void> | void;
|
|
20
|
+
onDirtyChanged?: (dirty: boolean) => void;
|
|
21
|
+
onDeleteCancel?: () => void;
|
|
22
|
+
onEditCancel?: () => void;
|
|
23
|
+
onMetricsChange?: (metric: IMeasureDef) => void;
|
|
24
|
+
insightOpenType?: "external" | "internal";
|
|
25
|
+
onInsightClick?: (object: IInsight) => void;
|
|
26
|
+
metricOpenType?: "external" | "internal";
|
|
27
|
+
onMetricClick?: (object: IMetadataObject) => void;
|
|
28
|
+
permissions?: IWorkspacePermissions;
|
|
29
|
+
ref?: Ref<IManageMetricApi | undefined>;
|
|
30
|
+
isWhiteLabeled?: boolean;
|
|
31
|
+
separators?: ISeparators;
|
|
32
|
+
onSettingChange?: (setting: Partial<IMeasureSetting>) => void;
|
|
33
|
+
useReferences?: boolean;
|
|
34
|
+
currencyFormatOverride?: string | null;
|
|
35
|
+
enableMetricFormatOverrides?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const ManageMetric: import("react").ForwardRefExoticComponent<Omit<IManageMetricProps, "ref"> & import("react").RefAttributes<IManageMetricApi | undefined>>;
|
|
38
|
+
//# sourceMappingURL=ManageMetric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManageMetric.d.ts","sourceRoot":"","sources":["../../src/MetricComponent/ManageMetric.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAgC,MAAM,OAAO,CAAC;AAE/D,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC7B,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IAChG,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACjG,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACzC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,eAAO,MAAM,YAAY,0IA4FxB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2021-2026 GoodData Corporation
|
|
3
|
+
import { forwardRef, useRef, useState } from "react";
|
|
4
|
+
import { handler, useApi } from "../shared/hooks/useApi.js";
|
|
5
|
+
import { fullWorkspacePermissions } from "../shared/permissions.js";
|
|
6
|
+
import { DeleteMetric } from "./DeleteMetric.js";
|
|
7
|
+
import { EditMetric } from "./EditMetric.js";
|
|
8
|
+
export const ManageMetric = forwardRef(function ManageMetric({ locale, setting, prefixes, onSettingChange, permissions = fullWorkspacePermissions(), editingMetric, deletingMetric, onDelete, onSave, onDirtyChanged, onEditCancel, onDeleteCancel, onMetricsChange, metricOpenType, onMetricClick, insightOpenType, onInsightClick, isWhiteLabeled, separators, useReferences, currencyFormatOverride, enableMetricFormatOverrides, }, ref) {
|
|
9
|
+
const editMetricApi = useRef(undefined);
|
|
10
|
+
const [deleteMetric, setDeletingMetric] = useState(deletingMetric || null);
|
|
11
|
+
useApi(ref, {
|
|
12
|
+
close: handler(editMetricApi, (api) => api.close()),
|
|
13
|
+
save: handler(editMetricApi, (api) => api.save()),
|
|
14
|
+
saveForce: handler(editMetricApi, (api) => api.saveForce()),
|
|
15
|
+
}, [editMetricApi]);
|
|
16
|
+
return (_jsxs(_Fragment, { children: [editingMetric && (_jsx(EditMetric, { ref: editMetricApi, locale: locale, prefixes: prefixes, metric: editingMetric, setting: setting, permissions: permissions, onDelete: () => setDeletingMetric(editingMetric), onCancel: onEditCancel, onSave: onSave, onDirtyChanged: onDirtyChanged, onMetricsChange: onMetricsChange, insightOpenType: insightOpenType, onInsightClick: onInsightClick, metricOpenType: metricOpenType, onMetricClick: onMetricClick, isWhiteLabeled: isWhiteLabeled, separators: separators, currencyFormatOverride: currencyFormatOverride, enableMetricFormatOverrides: enableMetricFormatOverrides, onSettingChange: onSettingChange, useReferences: useReferences })), deleteMetric && (_jsx(DeleteMetric, { locale: locale, metric: deleteMetric, onDelete: (metric, refs, err) => {
|
|
17
|
+
if (!err) {
|
|
18
|
+
setDeletingMetric(null);
|
|
19
|
+
}
|
|
20
|
+
if (onDelete) {
|
|
21
|
+
onDelete(metric, refs, err);
|
|
22
|
+
}
|
|
23
|
+
}, onClose: () => {
|
|
24
|
+
setDeletingMetric(null);
|
|
25
|
+
if (onDeleteCancel) {
|
|
26
|
+
onDeleteCancel();
|
|
27
|
+
}
|
|
28
|
+
}, onMetricsChange: onMetricsChange }))] }));
|
|
29
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Ref } from "react";
|
|
2
|
+
import { type ISeparators, type IWorkspacePermissions } from "@gooddata/sdk-model";
|
|
3
|
+
import { type IPrefixes } from "./Form/Prefixes/PrefixesContext.js";
|
|
4
|
+
import { type CloseAllTabsResult } from "./MetricState/metricState.data.js";
|
|
5
|
+
export interface IManageMetricsProps {
|
|
6
|
+
ref?: Ref<IManageMetricsApi | undefined>;
|
|
7
|
+
locale?: string;
|
|
8
|
+
prefixes?: IPrefixes;
|
|
9
|
+
permissions?: IWorkspacePermissions;
|
|
10
|
+
isWhiteLabeled?: boolean;
|
|
11
|
+
separators?: ISeparators;
|
|
12
|
+
maximized?: boolean;
|
|
13
|
+
setMinimized: (minimized: boolean) => void;
|
|
14
|
+
setMaximized: (maximized: boolean) => void;
|
|
15
|
+
useReferences?: boolean;
|
|
16
|
+
currencyFormatOverride?: string | null;
|
|
17
|
+
enableMetricFormatOverrides?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface IManageMetricsApi {
|
|
20
|
+
saveAndCloseAll: () => Promise<CloseAllTabsResult>;
|
|
21
|
+
}
|
|
22
|
+
export declare const ManageMetrics: import("react").ForwardRefExoticComponent<Omit<IManageMetricsProps, "ref"> & import("react").RefAttributes<IManageMetricsApi | undefined>>;
|
|
23
|
+
//# sourceMappingURL=ManageMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManageMetrics.d.ts","sourceRoot":"","sources":["../../src/MetricComponent/ManageMetrics.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAA4C,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAQnF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAKpE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAI5E,MAAM,WAAW,mBAAmB;IAChC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,MAAM,WAAW,iBAAiB;IAC9B,eAAe,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,aAAa,4IAyGzB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2021-2026 GoodData Corporation
|
|
3
|
+
import { forwardRef, useContext, useRef, useState } from "react";
|
|
4
|
+
import { useApi } from "../shared/hooks/useApi.js";
|
|
5
|
+
import { TabState } from "../shared/Tabs/Tab.js";
|
|
6
|
+
import { IntlWrapper } from "../translations/IntlWrapper.js";
|
|
7
|
+
import { DeleteMetric } from "./DeleteMetric.js";
|
|
8
|
+
import { IdChangeConfirmDialog } from "./IdChangeConfirmDialog/IdChangeConfirmDialog.js";
|
|
9
|
+
import { MetricContextMode, MetricsContextProvider } from "./MetricsContext/MetricsContext.js";
|
|
10
|
+
import { MetricsState } from "./MetricsState.js";
|
|
11
|
+
import { MultipleMetricsContext } from "./MultipleMetricsState.js";
|
|
12
|
+
import { UnsavedChangesConfirmDialog } from "./UnsavedChangesConfirmDialog/UnsavedChangesConfirmDialog.js";
|
|
13
|
+
export const ManageMetrics = forwardRef(function ManageMetrics({ permissions, locale, prefixes, setMinimized, setMaximized, isWhiteLabeled, separators, maximized, useReferences, currencyFormatOverride, enableMetricFormatOverrides, }, ref) {
|
|
14
|
+
const contextProps = useContext(MultipleMetricsContext);
|
|
15
|
+
const { tabsProps, onMetricsChange, onDelete, unsavedChangesDialog, closeUnsavedChangesDialog, cancelUnsavedChangesDialog, saveUnsavedChangesDialog, closeAllTabs, changeIdDialog, cancelChangeId, saveChangeId, closeChangeId, } = contextProps;
|
|
16
|
+
const [deleteMetric, setDeletingMetric] = useState(null);
|
|
17
|
+
const editMetricApi = useRef(undefined);
|
|
18
|
+
useApi(ref, {
|
|
19
|
+
saveAndCloseAll: closeAllTabs,
|
|
20
|
+
}, [editMetricApi, closeAllTabs, tabsProps]);
|
|
21
|
+
return (_jsx(IntlWrapper, { locale: locale, children: _jsxs(MetricsContextProvider, { mode: MetricContextMode.Multiple, children: [_jsx(MetricsState, { ...contextProps, prefixes: prefixes, permissions: permissions, maximized: maximized, isWhiteLabeled: isWhiteLabeled, separators: separators, setMinimized: setMinimized, setMaximized: setMaximized, onDelete: (metric) => setDeletingMetric(metric), useReferences: useReferences, currencyFormatOverride: currencyFormatOverride, enableMetricFormatOverrides: enableMetricFormatOverrides }), deleteMetric && (_jsx(DeleteMetric, { locale: locale, metric: deleteMetric, onDelete: (metric, refs, err) => {
|
|
22
|
+
setDeletingMetric(null);
|
|
23
|
+
if (onDelete) {
|
|
24
|
+
onDelete(metric, refs, err);
|
|
25
|
+
}
|
|
26
|
+
}, onClose: () => {
|
|
27
|
+
setDeletingMetric(null);
|
|
28
|
+
}, onMetricsChange: onMetricsChange })), unsavedChangesDialog.showDialog && (_jsx(UnsavedChangesConfirmDialog, { metrics: unsavedChangesDialog.tabs.map((tab) => ({
|
|
29
|
+
metric: tab.data.current,
|
|
30
|
+
changed: Boolean(tab.states?.[TabState.Dirty]),
|
|
31
|
+
})), onClose: closeUnsavedChangesDialog, onCancel: cancelUnsavedChangesDialog, onSubmit: saveUnsavedChangesDialog })), changeIdDialog.visible && (_jsx(IdChangeConfirmDialog, { mode: changeIdDialog.saveMode, metricId: changeIdDialog.oldId, newMetricId: changeIdDialog.newId, metricIdChanged: changeIdDialog.idChanged, conflicts: changeIdDialog.conflicts, onClose: () => closeChangeId(), onCancel: () => cancelChangeId(), onSubmit: () => saveChangeId() }))] }) }));
|
|
32
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
import { type IFeaturesAndSettingsContext } from "./FeaturesAndSettings/index.js";
|
|
3
|
+
export interface IMetricServiceProps {
|
|
4
|
+
settings?: Partial<IFeaturesAndSettingsContext>;
|
|
5
|
+
}
|
|
6
|
+
export declare function MetricService({ children, settings }: PropsWithChildren<IMetricServiceProps>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=MetricService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricService.d.ts","sourceRoot":"","sources":["../../src/MetricComponent/MetricService.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,EAEH,KAAK,2BAA2B,EACnC,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACnD;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,QAAa,EAAE,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,2CAQhG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { LanguageServiceProvider } from "../MaqlEditor/languageService/LanguageServiceContext.js";
|
|
3
|
+
import { MetricsReloadContextProvider } from "../shared/metrics/MetricsReloadContext.js";
|
|
4
|
+
import { FeaturesAndSettingsContextProvider, } from "./FeaturesAndSettings/index.js";
|
|
5
|
+
export function MetricService({ children, settings = {} }) {
|
|
6
|
+
return (_jsx(FeaturesAndSettingsContextProvider, { ...settings, children: _jsx(MetricsReloadContextProvider, { children: _jsx(LanguageServiceProvider, { children: children }) }) }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type IInsight, type IMeasureMetadataObject, type IMetadataObject, type ISeparators, type IWorkspacePermissions } from "@gooddata/sdk-model";
|
|
2
|
+
import { type ITab } from "../../shared/Tabs/Tab.js";
|
|
3
|
+
import { type SaveNameMode } from "../Content/EditMetricContent.data.js";
|
|
4
|
+
import { type FormField } from "../Form/data.js";
|
|
5
|
+
import { type IPrefixes } from "../Form/Prefixes/PrefixesContext.js";
|
|
6
|
+
import { type IMeasureDef } from "../metric/metricHelpers.js";
|
|
7
|
+
import { type ISaveMetricInfo } from "../metric/saveInfo.js";
|
|
8
|
+
import { type IMetricInfo } from "./metricState.data.js";
|
|
9
|
+
interface ITabContentProps {
|
|
10
|
+
tab: ITab<IMetricInfo>;
|
|
11
|
+
generateNewId?: boolean;
|
|
12
|
+
focusedField?: FormField;
|
|
13
|
+
saveMode?: SaveNameMode;
|
|
14
|
+
locale?: string;
|
|
15
|
+
prefixes?: IPrefixes;
|
|
16
|
+
permissions?: IWorkspacePermissions;
|
|
17
|
+
updateTab: (tab: ITab<IMetricInfo>, props: Partial<ITab<IMetricInfo>>) => void;
|
|
18
|
+
updateData: (tab: ITab<IMetricInfo>, data: IMetricInfo) => void;
|
|
19
|
+
onSave?: (tab: ITab<IMetricInfo>, metric: IMeasureMetadataObject, info: ISaveMetricInfo, err: Error | null) => Promise<void> | void;
|
|
20
|
+
onDelete?: (tab: ITab<IMetricInfo>, metric: IMeasureMetadataObject) => void;
|
|
21
|
+
onMetricsChange?: (metric: IMeasureDef) => void;
|
|
22
|
+
activeInsight?: IInsight;
|
|
23
|
+
insightOpenType?: "external" | "internal";
|
|
24
|
+
onInsightClick?: (object: IInsight) => void;
|
|
25
|
+
metricOpenType?: "external" | "internal";
|
|
26
|
+
onMetricClick?: (object: IMetadataObject) => void;
|
|
27
|
+
onCancel?: (tab: ITab<IMetricInfo>) => void;
|
|
28
|
+
onValueChange?: (metric: IMeasureDef, valid: boolean) => void;
|
|
29
|
+
isWhiteLabeled?: boolean;
|
|
30
|
+
separators?: ISeparators;
|
|
31
|
+
useReferences?: boolean;
|
|
32
|
+
currencyFormatOverride?: string | null;
|
|
33
|
+
enableMetricFormatOverrides?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function TabContent({ tab, locale, prefixes, focusedField, generateNewId, saveMode, updateTab, onSave, updateData, onDelete, onMetricsChange, metricOpenType, onMetricClick, activeInsight, insightOpenType, onInsightClick, permissions, onCancel, onValueChange, isWhiteLabeled, separators, useReferences, currencyFormatOverride, enableMetricFormatOverrides, }: ITabContentProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=TabContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabContent.d.ts","sourceRoot":"","sources":["../../../src/MetricComponent/MetricState/TabContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAK7D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,UAAU,gBAAgB;IACtB,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,SAAS,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/E,UAAU,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAChE,MAAM,CAAC,EAAE,CACL,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EACtB,MAAM,EAAE,sBAAsB,EAC9B,IAAI,EAAE,eAAe,EACrB,GAAG,EAAE,KAAK,GAAG,IAAI,KAChB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC5E,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,eAAe,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACzC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,wBAAgB,UAAU,CAAC,EACvB,GAAG,EACH,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,EACR,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,QAAQ,EACR,aAAa,EACb,cAAc,EACd,UAAU,EACV,aAAa,EACb,sBAAsB,EACtB,2BAA2B,GAC9B,EAAE,gBAAgB,2CAgDlB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { EditMetric } from "../EditMetric.js";
|
|
3
|
+
import { useOnChangeCallback } from "./hooks/useOnChangeCallback.js";
|
|
4
|
+
import { useOnDeleteCallback } from "./hooks/useOnDeleteCallback.js";
|
|
5
|
+
import { useOnSaveCallback } from "./hooks/useOnSaveCallback.js";
|
|
6
|
+
export function TabContent({ tab, locale, prefixes, focusedField, generateNewId, saveMode, updateTab, onSave, updateData, onDelete, onMetricsChange, metricOpenType, onMetricClick, activeInsight, insightOpenType, onInsightClick, permissions, onCancel, onValueChange, isWhiteLabeled, separators, useReferences, currencyFormatOverride, enableMetricFormatOverrides, }) {
|
|
7
|
+
const { onChangeMetric, onChangeSetting, onChangeDraftAccess } = useOnChangeCallback({
|
|
8
|
+
tab,
|
|
9
|
+
updateTab,
|
|
10
|
+
updateData,
|
|
11
|
+
onValueChange,
|
|
12
|
+
});
|
|
13
|
+
const onSaveCallback = useOnSaveCallback(tab, onSave);
|
|
14
|
+
const onDeleteCallback = useOnDeleteCallback(tab, onDelete);
|
|
15
|
+
return (_jsx(EditMetric, { initial: tab.data.initial, metric: tab.data.current, draftAccess: tab.data.draftAccess, onDraftAccessChange: onChangeDraftAccess, setting: {
|
|
16
|
+
sqlOpen: tab.data.sqlOpen,
|
|
17
|
+
computedFor: tab.data.computedFor,
|
|
18
|
+
display: tab.data.display,
|
|
19
|
+
attributes: tab.data.attributes,
|
|
20
|
+
}, prefixes: prefixes, locale: locale, focusedField: focusedField, generateNewId: generateNewId, saveMode: saveMode, onMetricsChange: onMetricsChange, onCancel: () => onCancel?.(tab), activeInsight: activeInsight, insightOpenType: insightOpenType, onInsightClick: onInsightClick, metricOpenType: metricOpenType, onMetricClick: onMetricClick, onValueChange: onChangeMetric, onSettingChange: onChangeSetting, onSave: onSaveCallback, onDelete: onDeleteCallback, showCloseButton: false, permissions: permissions, isWhiteLabeled: isWhiteLabeled, separators: separators, useReferences: useReferences, currencyFormatOverride: currencyFormatOverride, enableMetricFormatOverrides: enableMetricFormatOverrides }));
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type MetricIdConflicts } from "../../ConflictContext/useConflictDetection.js";
|
|
2
|
+
import { SaveNameMode } from "../../Content/EditMetricContent.data.js";
|
|
3
|
+
export interface IChangeIdDialogProps {
|
|
4
|
+
saveMode: SaveNameMode | undefined;
|
|
5
|
+
oldId: string;
|
|
6
|
+
newId: string;
|
|
7
|
+
idChanged: boolean;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
conflicts: MetricIdConflicts;
|
|
10
|
+
resolver?: {
|
|
11
|
+
resolve: (newId: string) => void;
|
|
12
|
+
reject: () => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IUseChangeIdDialog {
|
|
16
|
+
changeIdDialog: IChangeIdDialogProps;
|
|
17
|
+
handleChangeId: (saveMode: SaveNameMode | undefined, oldId: string, newId: string, idChanged: boolean, conflicts: MetricIdConflicts) => Promise<string>;
|
|
18
|
+
cancelChangeId: () => void;
|
|
19
|
+
saveChangeId: () => void;
|
|
20
|
+
closeChangeId: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const useChangeIdDialog: () => IUseChangeIdDialog;
|
|
23
|
+
//# sourceMappingURL=useChangeIdDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChangeIdDialog.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useChangeIdDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CACvE;AAED,MAAM,WAAW,kBAAkB;IAC/B,cAAc,EAAE,oBAAoB,CAAC;IACrC,cAAc,EAAE,CACZ,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,iBAAiB,KAC3B,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,QAAO,kBA4EpC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
|
+
import { useCallback, useState } from "react";
|
|
3
|
+
import { SaveNameMode } from "../../Content/EditMetricContent.data.js";
|
|
4
|
+
export const useChangeIdDialog = () => {
|
|
5
|
+
const [changeIdDialog, setChangeIdDialog] = useState({
|
|
6
|
+
oldId: "",
|
|
7
|
+
newId: "",
|
|
8
|
+
visible: false,
|
|
9
|
+
idChanged: false,
|
|
10
|
+
conflicts: { conflictWith: [], usableIds: [] },
|
|
11
|
+
saveMode: undefined,
|
|
12
|
+
});
|
|
13
|
+
const handleChangeId = useCallback((saveMode, oldId, newId, idChanged, conflicts) => {
|
|
14
|
+
let resolver;
|
|
15
|
+
const promise = new Promise((resolve, reject) => {
|
|
16
|
+
resolver = { resolve, reject };
|
|
17
|
+
});
|
|
18
|
+
setChangeIdDialog({
|
|
19
|
+
oldId: oldId,
|
|
20
|
+
newId: newId,
|
|
21
|
+
visible: true,
|
|
22
|
+
resolver: resolver,
|
|
23
|
+
saveMode,
|
|
24
|
+
idChanged,
|
|
25
|
+
conflicts,
|
|
26
|
+
});
|
|
27
|
+
return promise;
|
|
28
|
+
}, []);
|
|
29
|
+
const cancelChangeId = useCallback(() => {
|
|
30
|
+
if (changeIdDialog.saveMode === SaveNameMode.saveAsNew) {
|
|
31
|
+
changeIdDialog.resolver?.resolve(changeIdDialog.conflicts.usableIds[0]);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
changeIdDialog.resolver?.resolve(changeIdDialog.oldId);
|
|
35
|
+
}
|
|
36
|
+
setChangeIdDialog({
|
|
37
|
+
saveMode: undefined,
|
|
38
|
+
oldId: "",
|
|
39
|
+
newId: "",
|
|
40
|
+
visible: false,
|
|
41
|
+
idChanged: false,
|
|
42
|
+
conflicts: { conflictWith: [], usableIds: [] },
|
|
43
|
+
});
|
|
44
|
+
}, [changeIdDialog]);
|
|
45
|
+
const saveChangeId = useCallback(() => {
|
|
46
|
+
changeIdDialog.resolver?.resolve(changeIdDialog.newId);
|
|
47
|
+
setChangeIdDialog({
|
|
48
|
+
saveMode: undefined,
|
|
49
|
+
oldId: "",
|
|
50
|
+
newId: "",
|
|
51
|
+
visible: false,
|
|
52
|
+
idChanged: false,
|
|
53
|
+
conflicts: { conflictWith: [], usableIds: [] },
|
|
54
|
+
});
|
|
55
|
+
}, [changeIdDialog]);
|
|
56
|
+
const closeChangeId = useCallback(() => {
|
|
57
|
+
changeIdDialog.resolver?.reject();
|
|
58
|
+
setChangeIdDialog({
|
|
59
|
+
saveMode: undefined,
|
|
60
|
+
oldId: "",
|
|
61
|
+
newId: "",
|
|
62
|
+
visible: false,
|
|
63
|
+
idChanged: false,
|
|
64
|
+
conflicts: { conflictWith: [], usableIds: [] },
|
|
65
|
+
});
|
|
66
|
+
}, [changeIdDialog]);
|
|
67
|
+
return { changeIdDialog, handleChangeId, cancelChangeId, saveChangeId, closeChangeId };
|
|
68
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ITab } from "../../../shared/Tabs/Tab.js";
|
|
2
|
+
import { type IMetricInfo } from "../metricState.data.js";
|
|
3
|
+
export declare function useDirtyChanged(tabs: Array<ITab<IMetricInfo>>, onDirtyChanged?: (dirty: boolean) => void): void;
|
|
4
|
+
//# sourceMappingURL=useDirtyChanged.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDirtyChanged.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useDirtyChanged.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,wBAAgB,eAAe,CAC3B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EAC9B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAC1C,IAAI,CAeN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// (C) 2022-2026 GoodData Corporation
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
export function useDirtyChanged(tabs, onDirtyChanged) {
|
|
4
|
+
const [dirty, setDirty] = useState(false);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
const isDirty = tabs.findIndex((tab) => tab.states?.dirty) !== -1;
|
|
7
|
+
if (isDirty != dirty) {
|
|
8
|
+
setDirty(isDirty);
|
|
9
|
+
}
|
|
10
|
+
}, [tabs, dirty]);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (onDirtyChanged) {
|
|
13
|
+
onDirtyChanged(dirty);
|
|
14
|
+
}
|
|
15
|
+
}, [dirty, onDirtyChanged]);
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type IObjectShareDraft } from "@gooddata/sdk-ui-ext";
|
|
2
|
+
import { type ITab } from "../../../shared/Tabs/Tab.js";
|
|
3
|
+
import { type IMeasureDef, type IMeasureSetting } from "../../metric/metricHelpers.js";
|
|
4
|
+
import { type IMetricInfo } from "../metricState.data.js";
|
|
5
|
+
interface IUseOnChangeCallbackParams {
|
|
6
|
+
tab: ITab<IMetricInfo>;
|
|
7
|
+
updateTab: (tab: ITab<IMetricInfo>, props: Partial<ITab<IMetricInfo>>) => void;
|
|
8
|
+
updateData: (tab: ITab<IMetricInfo>, data: IMetricInfo) => void;
|
|
9
|
+
onValueChange?: (metric: IMeasureDef, valid: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useOnChangeCallback: ({ tab, updateTab, updateData, onValueChange, }: IUseOnChangeCallbackParams) => {
|
|
12
|
+
onChangeMetric: (metric: IMeasureDef, valid: boolean) => void;
|
|
13
|
+
onChangeSetting: (setting: Partial<IMeasureSetting>) => void;
|
|
14
|
+
onChangeDraftAccess: (draftAccess: IObjectShareDraft | undefined) => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=useOnChangeCallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnChangeCallback.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useOnChangeCallback.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,KAAK,IAAI,EAAY,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D,UAAU,0BAA0B;IAChC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACvB,SAAS,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/E,UAAU,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAChE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,mBAAmB,mDAK7B,0BAA0B,KAAG;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;IAC7D,mBAAmB,EAAE,CAAC,WAAW,EAAE,iBAAiB,GAAG,SAAS,KAAK,IAAI,CAAC;CAiD7E,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// (C) 2021-2026 GoodData Corporation
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { isEqual } from "lodash-es";
|
|
4
|
+
import { TabState } from "../../../shared/Tabs/Tab.js";
|
|
5
|
+
import { emptyMetricWithId } from "../../metric/emptyMetric.js";
|
|
6
|
+
import { updateTabDataFromMetric, updateTabDataFromSetting, updateTabFromMetric } from "./useTabsData.js";
|
|
7
|
+
export const useOnChangeCallback = ({ tab, updateTab, updateData, onValueChange, }) => {
|
|
8
|
+
const onChangeMetric = useCallback((metric, valid) => {
|
|
9
|
+
const states = tab.states || {};
|
|
10
|
+
const { initial, current } = tab.data;
|
|
11
|
+
const isChanged = !isEqual(metric, initial);
|
|
12
|
+
const isUpdate = !isEqual(metric, current);
|
|
13
|
+
const isEmpty = isEqual(metric, emptyMetricWithId);
|
|
14
|
+
const isInvalid = !valid && !isEmpty;
|
|
15
|
+
updateTab(tab, updateTabFromMetric(tab, metric, isChanged, isInvalid));
|
|
16
|
+
if (states[TabState.Dirty] !== isChanged || states[TabState.Invalid] !== isInvalid) {
|
|
17
|
+
if (onValueChange) {
|
|
18
|
+
onValueChange(metric, valid);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else if (isUpdate) {
|
|
22
|
+
updateData(tab, updateTabDataFromMetric(tab.data, metric, true));
|
|
23
|
+
if (onValueChange) {
|
|
24
|
+
onValueChange(metric, valid);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, [updateTab, tab, updateData, onValueChange]);
|
|
28
|
+
const onChangeSetting = useCallback((setting) => {
|
|
29
|
+
updateData(tab, updateTabDataFromSetting(tab.data, setting));
|
|
30
|
+
}, [tab, updateData]);
|
|
31
|
+
// `updateTab`, not `updateData`: the latter mutates in place with no state update, so a
|
|
32
|
+
// reopened dialog would be handed the draft from before the change.
|
|
33
|
+
const onChangeDraftAccess = useCallback((draftAccess) => {
|
|
34
|
+
updateTab(tab, { data: { ...tab.data, draftAccess } });
|
|
35
|
+
}, [tab, updateTab]);
|
|
36
|
+
return {
|
|
37
|
+
onChangeMetric,
|
|
38
|
+
onChangeSetting,
|
|
39
|
+
onChangeDraftAccess,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type IMeasureMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
+
import { type ITab } from "../../../shared/Tabs/Tab.js";
|
|
3
|
+
import { type IMetricInfo } from "../metricState.data.js";
|
|
4
|
+
export declare const useOnDeleteCallback: (tab: ITab<IMetricInfo>, onDelete?: (tab: ITab<IMetricInfo>, metric: IMeasureMetadataObject) => void) => ((metric: IMeasureMetadataObject) => void);
|
|
5
|
+
//# sourceMappingURL=useOnDeleteCallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnDeleteCallback.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useOnDeleteCallback.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,mBAAmB,QACvB,IAAI,CAAC,WAAW,CAAC,aACX,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,sBAAsB,KAAK,IAAI,KAC5E,CAAC,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAS3C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IMeasureMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
+
import { type ITab } from "../../../shared/Tabs/Tab.js";
|
|
3
|
+
import { type ISaveMetricInfo } from "../../metric/saveInfo.js";
|
|
4
|
+
import { type IMetricInfo } from "../metricState.data.js";
|
|
5
|
+
export declare const useOnSaveCallback: (tab: ITab<IMetricInfo>, onSave?: (tab: ITab<IMetricInfo>, metric: IMeasureMetadataObject, info: ISaveMetricInfo, err: Error | null) => Promise<void> | void) => ((metric: IMeasureMetadataObject, info: ISaveMetricInfo, err: Error | null) => void);
|
|
6
|
+
//# sourceMappingURL=useOnSaveCallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnSaveCallback.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useOnSaveCallback.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,QACrB,IAAI,CAAC,WAAW,CAAC,WACb,CACL,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,EACtB,MAAM,EAAE,sBAAsB,EAC9B,IAAI,EAAE,eAAe,EACrB,GAAG,EAAE,KAAK,GAAG,IAAI,KAChB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,KAC1B,CAAC,CAAC,MAAM,EAAE,sBAAsB,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CASrF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IMeasureMetadataObject } from "@gooddata/sdk-model";
|
|
2
|
+
import { type ITab } from "../../../shared/Tabs/Tab.js";
|
|
3
|
+
import { type MetricIdConflicts } from "../../ConflictContext/useConflictDetection.js";
|
|
4
|
+
import { SaveNameMode } from "../../Content/EditMetricContent.data.js";
|
|
5
|
+
import { type IMeasureDef } from "../../metric/metricHelpers.js";
|
|
6
|
+
import { type ISaveMetricInfo } from "../../metric/saveInfo.js";
|
|
7
|
+
import { type IMetricInfo } from "../metricState.data.js";
|
|
8
|
+
export declare const useSaveTab: (handleChangeId: (saveMode: SaveNameMode | undefined, oldId: string, newId: string, changedId: boolean, conflicts: MetricIdConflicts) => Promise<string>, onMetricsChange?: (metric: IMeasureDef) => void, onSave?: (metric: IMeasureMetadataObject, info: ISaveMetricInfo, err: Error | null) => Promise<void> | void) => ((tab: ITab<IMetricInfo>) => Promise<IMeasureMetadataObject>);
|
|
9
|
+
//# sourceMappingURL=useSaveTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSaveTab.d.ts","sourceRoot":"","sources":["../../../../src/MetricComponent/MetricState/hooks/useSaveTab.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAKlE,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,+CAA+C,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAMvE,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,0BAA0B,CAAC;AAEtF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,UAAU,mBACH,CACZ,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,iBAAiB,KAC3B,OAAO,CAAC,MAAM,CAAC,oBACF,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,WACtC,CACL,MAAM,EAAE,sBAAsB,EAC9B,IAAI,EAAE,eAAe,EACrB,GAAG,EAAE,KAAK,GAAG,IAAI,KAChB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,KAC1B,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC,sBAAsB,CAAC,CA6E9D,CAAC"}
|