@vizzly/dashboard 0.7.1 → 0.7.2-dev-dba36cbd0af6b3bcb07804673072c6fb5fb27a1f
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/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +6 -12
- package/dist/dashboard/src/contexts/SessionContext/useSessionContext.d.ts +2 -0
- package/dist/dashboard/src/contexts/useDashboardAPI.d.ts +2 -1
- package/dist/dashboard/src/contexts/useDataConfigurationAndIdentity.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/shared-logic/src/AI/types.d.ts +25 -6
- package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +4 -3
- package/dist/shared-logic/src/Aggregate/constants.d.ts +26 -0
- package/dist/shared-logic/src/AreaChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/BarChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/BasicTable/constants.d.ts +3 -0
- package/dist/shared-logic/src/ComboChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/Component/allViewConstants.d.ts +1 -0
- package/dist/shared-logic/src/Component/sharedSchemas.d.ts +6 -5
- package/dist/shared-logic/src/ComponentInterface/constants.d.ts +63 -0
- package/dist/shared-logic/src/ComponentInterface/namespaces.d.ts +3 -0
- package/dist/shared-logic/src/ComponentInterface/types/ComponentInterfaceConfig.d.ts +18 -0
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +104 -0
- package/dist/shared-logic/src/ComponentInterface/types.d.ts +4 -4
- package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +2 -1
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +2 -1
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +2 -1
- package/dist/shared-logic/src/DashboardAPI/dashboardAPI.d.ts +1 -1
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +4 -5
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +5 -0
- package/dist/shared-logic/src/DataSet/types.d.ts +1 -0
- package/dist/shared-logic/src/DataTable/constants.d.ts +3 -0
- package/dist/shared-logic/src/DateTime/DateTimeFilterOptions.d.ts +84 -4
- package/dist/shared-logic/src/Display/Display.d.ts +2 -2
- package/dist/shared-logic/src/Display/upcast.d.ts +2 -1
- package/dist/shared-logic/src/Documentation/index.d.ts +1 -0
- package/dist/shared-logic/src/Documentation/joiToAiDefinition.d.ts +5 -0
- package/dist/shared-logic/src/Dumpable.d.ts +2 -1
- package/dist/shared-logic/src/Field/Field.d.ts +6 -3
- package/dist/shared-logic/src/Field/types.d.ts +1 -0
- package/dist/shared-logic/src/HorizontalBarChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/JSQueryEngine/getMeasuresForPostAggregateMaths.d.ts +3 -0
- package/dist/shared-logic/src/LineChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/MercatorMap/constants.d.ts +3 -0
- package/dist/shared-logic/src/PieChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/Progress/constants.d.ts +3 -0
- package/dist/shared-logic/src/QueryAttributes/QueryAttributes.d.ts +2 -1
- package/dist/shared-logic/src/QueryAttributes/constants.d.ts +54 -0
- package/dist/shared-logic/src/QueryEngine/types.d.ts +1 -1
- package/dist/shared-logic/src/QueryEngineConfig/supportedConstants.d.ts +121 -0
- package/dist/shared-logic/src/ScatterChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/SingleStat/constants.d.ts +3 -0
- package/dist/shared-logic/src/Theme/types.d.ts +27 -0
- package/dist/shared-logic/src/TimeDimension/constants.d.ts +34 -0
- package/dist/shared-logic/src/Translations/extract/buildJsonFile.d.ts +2 -0
- package/dist/shared-logic/src/Translations/extract/buildTypes.d.ts +1 -0
- package/dist/shared-logic/src/Translations/extract/extractPanelConfig.d.ts +3 -0
- package/dist/shared-logic/src/Translations/extract/extractSupportedConstant.d.ts +6 -0
- package/dist/shared-logic/src/Translations/extract/func.d.ts +5 -0
- package/dist/shared-logic/src/Translations/extract/index.d.ts +4 -0
- package/dist/shared-logic/src/Translations/extract/shared.d.ts +10 -0
- package/dist/shared-logic/src/Translations/textOverrideComponent.d.ts +30 -0
- package/dist/shared-logic/src/Translations/translateQueryEngineConfig.d.ts +3 -0
- package/dist/shared-logic/src/Translations/translation.schema.d.ts +2 -0
- package/dist/shared-logic/src/Translations/translation.types.d.ts +4748 -0
- package/dist/shared-logic/src/Translations/translations.d.ts +9 -0
- package/dist/shared-logic/src/Translations/types.d.ts +13 -0
- package/dist/shared-logic/src/Translations/validation.d.ts +1 -0
- package/dist/shared-logic/src/api/index.d.ts +3 -9
- package/dist/shared-logic/src/api/vizzly/aiActions.d.ts +18 -0
- package/dist/shared-logic/src/api/vizzly/aiHelpers/buildAIResponse.d.ts +5 -0
- package/dist/shared-logic/src/api/vizzly/aiHelpers/buildDataSets.d.ts +4 -0
- package/dist/shared-logic/src/api/vizzly/aiHelpers/checkAiResponseStatus.d.ts +3 -0
- package/dist/shared-logic/src/api/vizzly/aiHelpers/types.d.ts +23 -0
- package/dist/shared-logic/src/api/vizzly/aiHelpers/validateAndUpcastAIAttributes.d.ts +4 -0
- package/dist/shared-logic/src/api/vizzly/aiHelpers/view.d.ts +10 -0
- package/dist/shared-logic/src/api/vizzly/askAi.d.ts +2 -8
- package/dist/shared-logic/src/api/vizzly/askAiForQuestionSuggestions.d.ts +4 -0
- package/dist/shared-logic/src/errors/AIAborted.d.ts +4 -0
- package/dist/shared-logic/src/errors/AIContainsErrors.d.ts +4 -0
- package/dist/shared-logic/src/errors/AIFailedToFetch.d.ts +4 -0
- package/dist/shared-logic/src/errors/AIUsageLimitReached.d.ts +1 -1
- package/dist/shared-logic/src/errors/index.d.ts +5 -0
- package/dist/shared-logic/src/utils/stringHelper.d.ts +2 -1
- package/dist/shared-ui/src/base/Button/Button.d.ts +1 -0
- package/dist/shared-ui/src/base/ButtonGroup.d.ts +1 -1
- package/dist/shared-ui/src/base/Color/Swatch.d.ts +6 -0
- package/dist/shared-ui/src/base/CopyToClipboard/CopyButton.d.ts +4 -0
- package/dist/shared-ui/src/base/DateTime/DateOptionsPopup.d.ts +2 -0
- package/dist/shared-ui/src/base/DateTime/DateRangePicker.d.ts +2 -0
- package/dist/shared-ui/src/base/DateTime/DateTimeFilter.d.ts +3 -1
- package/dist/shared-ui/src/base/DateTime/DateTimeSelect.d.ts +5 -0
- package/dist/shared-ui/src/base/Dragging/useDropZone.d.ts +1 -1
- package/dist/shared-ui/src/base/Dropdown/Dropdown.styles.d.ts +1 -1
- package/dist/shared-ui/src/base/Dropdown/Dropdown.types.d.ts +2 -0
- package/dist/shared-ui/src/base/EmptyState/EmptyState.d.ts +1 -0
- package/dist/shared-ui/src/base/Icons/SVGs.d.ts +44 -1
- package/dist/shared-ui/src/base/Icons.d.ts +11 -0
- package/dist/shared-ui/src/base/InputWithAction.d.ts +30 -0
- package/dist/shared-ui/src/base/MultiSelect.d.ts +2 -0
- package/dist/shared-ui/src/base/Select/Control.d.ts +3 -0
- package/dist/shared-ui/src/base/Select/Control.styles.d.ts +3 -3
- package/dist/shared-ui/src/base/Select/Wrapper.d.ts +4 -0
- package/dist/shared-ui/src/base/Select.d.ts +4 -0
- package/dist/shared-ui/src/base/Table/Table.d.ts +2 -0
- package/dist/shared-ui/src/base/Table/TableComponents.d.ts +2 -0
- package/dist/shared-ui/src/base/classNames.d.ts +1 -0
- package/dist/shared-ui/src/base/layout/Grid.styles.d.ts +2 -0
- package/dist/shared-ui/src/base/layout/View.d.ts +2 -1
- package/dist/shared-ui/src/base/layout/View.styles.d.ts +1 -0
- package/dist/shared-ui/src/base/shared/ClearIcon.d.ts +2 -0
- package/dist/shared-ui/src/components/AI/AIEditor.d.ts +12 -0
- package/dist/shared-ui/src/components/AI/AIPrompts.d.ts +4 -0
- package/dist/shared-ui/src/components/AI/AIWindow.d.ts +12 -0
- package/dist/shared-ui/src/components/AI/Conversation.d.ts +23 -0
- package/dist/shared-ui/src/components/AI/ConversationOptions.d.ts +11 -0
- package/dist/shared-ui/src/components/AI/Typewriter.d.ts +14 -0
- package/dist/shared-ui/src/components/AdditionalFilter/labelWidth.d.ts +7 -0
- package/dist/shared-ui/src/components/ChartHelper.d.ts +3 -2
- package/dist/shared-ui/src/{library → components/Icons}/ComponentIcons.d.ts +3 -1
- package/dist/shared-ui/src/components/Icons/icons.func.d.ts +1 -0
- package/dist/shared-ui/src/components/Modals/DeleteModal.d.ts +1 -0
- package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +2 -0
- package/dist/shared-ui/src/components/Table/PrefixModal.d.ts +1 -1
- package/dist/shared-ui/src/contexts/AIProvider/context.d.ts +13 -0
- package/dist/shared-ui/src/contexts/AIProvider/types.d.ts +15 -0
- package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -1
- package/dist/shared-ui/src/contexts/DashboardBehaviour/logic.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardBehaviour/numberFormatOptions.d.ts +3 -3
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +13 -8
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +1 -0
- package/dist/shared-ui/src/examples/component-overrides/components.d.ts +3 -0
- package/dist/shared-ui/src/headlessui/hooks/use-disposables.d.ts +1 -1
- package/dist/shared-ui/src/headlessui/utils/disposables.d.ts +1 -1
- package/dist/shared-ui/src/hooks/useAIAction.d.ts +9 -0
- package/dist/shared-ui/src/hooks/useAiWindow.d.ts +21 -0
- package/dist/shared-ui/src/library/ComboBox.d.ts +4 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/MathModal/AggregateMath.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/buildInitOptions.d.ts +2 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/customMetricText.d.ts +13 -0
- package/dist/shared-ui/src/library/DataPanel/FilterInput/AttributesToFields.d.ts +3 -2
- package/dist/shared-ui/src/library/DataPanel/FilterInput/FilterInputForm.d.ts +3 -1
- package/dist/shared-ui/src/library/DataPanel/FilterInput/IndividualFilter.d.ts +2 -0
- package/dist/shared-ui/src/library/DataPanel/FilterInput.d.ts +2 -0
- package/dist/shared-ui/src/library/DataPanel/SortInput/buildInitValues.d.ts +2 -1
- package/dist/shared-ui/src/library/DisplayStatusReport.d.ts +5 -0
- package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -2
- package/dist/shared-ui/src/library/Editor.d.ts +0 -1
- package/dist/shared-ui/src/library/StylePanel/ConditionalFormatting/logic.d.ts +2 -1
- package/dist/shared-ui/src/library/effectHooks/useAutoScroll.d.ts +2 -0
- package/dist/shared-ui/src/library/effectHooks/useInitialAttributes.d.ts +2 -0
- package/dist/shared-ui/src/types.d.ts +59 -0
- package/package.json +2 -2
- package/dist/shared-logic/src/api/vizzly/askAi/types.d.ts +0 -2
- package/dist/shared-logic/src/api/vizzly/askAi/validateAndUpcast.d.ts +0 -5
- package/dist/shared-ui/src/hooks/useAi.d.ts +0 -14
- package/dist/shared-ui/src/library/VizzlyAI.d.ts +0 -13
- package/dist/shared-ui/src/library/VizzlyAI.styles.d.ts +0 -6
- /package/dist/shared-ui/src/library/{useHeight.d.ts → effectHooks/useHeight.d.ts} +0 -0
- /package/dist/shared-ui/src/library/{useWidth.d.ts → effectHooks/useWidth.d.ts} +0 -0
|
@@ -3,6 +3,7 @@ import { DateTimeField, NonDateTimeField, SupportedAggregateOption } from '../Fi
|
|
|
3
3
|
import { DataType } from './types';
|
|
4
4
|
import { QueryAttributes, SupportedOperators } from '../QueryAttributes/types';
|
|
5
5
|
import * as Aggregate from '../Aggregate';
|
|
6
|
+
import { SupportedAggregates } from '../Aggregate';
|
|
6
7
|
import { SupportedTimeTruncFunctions } from '../TimeDimension/types';
|
|
7
8
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
8
9
|
import { SupportedTransformationFunctions } from '../Functions/types';
|
|
@@ -21,7 +22,9 @@ export declare type OldField = {
|
|
|
21
22
|
}>;
|
|
22
23
|
supportedAggregateOptions?: string[];
|
|
23
24
|
};
|
|
24
|
-
export declare const upcastField: (maybeOldField: OldField, queryEngineConfig: QueryEngineConfig
|
|
25
|
+
export declare const upcastField: (maybeOldField: OldField, queryEngineConfig: QueryEngineConfig, options?: {
|
|
26
|
+
allowEmptyPublicName: boolean;
|
|
27
|
+
} | undefined) => DateTimeField | NonDateTimeField;
|
|
25
28
|
export declare const valueIsOrDataType: (value: unknown, dataType: DataType) => boolean;
|
|
26
29
|
export declare const parseValue: (raw: string | number | null | boolean | Date | string[], type: DataType) => string | number | boolean | Date | null;
|
|
27
30
|
export declare const parseBooleanFromString: (raw: string, type: DataType) => string | boolean;
|
|
@@ -80,9 +83,9 @@ export declare const getQueryFieldIdFromResultFieldId: (fieldIdOrDatumKey: strin
|
|
|
80
83
|
fieldId: string;
|
|
81
84
|
function: QueryAttributes.Aggregate;
|
|
82
85
|
};
|
|
83
|
-
export declare
|
|
86
|
+
export declare const listValidFunctionsForDataType: (field: {
|
|
84
87
|
dataType: DataType;
|
|
85
|
-
}, supportedTransformationFunctions: SupportedTransformationFunctions
|
|
88
|
+
}, supportedTransformationFunctions: SupportedTransformationFunctions | SupportedAggregates) => string[];
|
|
86
89
|
export declare const removeField: <T extends {
|
|
87
90
|
id: string;
|
|
88
91
|
}>(originalFields: T[], removeFields: (QueryAttributes.Dimension | QueryAttributes.Measure)[]) => T[];
|
|
@@ -2,10 +2,11 @@ import { DataType } from '../Field/types';
|
|
|
2
2
|
import { QueryAttributes, SupportedOperators } from './types';
|
|
3
3
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
4
|
import { ApproxAxisLabelCount, Component } from '../Component/types';
|
|
5
|
+
import { TextOverride } from '../Translations/types';
|
|
5
6
|
export declare const validOperatorsForField: (field: {
|
|
6
7
|
dataType: DataType;
|
|
7
8
|
}, queryEngineConfig: QueryEngineConfig) => string[];
|
|
8
|
-
export declare const aggregateName: (func: QueryAttributes.Aggregate) => string;
|
|
9
|
+
export declare const aggregateName: (func: QueryAttributes.Aggregate, textOverride: TextOverride) => string;
|
|
9
10
|
declare const vizzlyManagedOperators: SupportedOperators;
|
|
10
11
|
export declare const supportedOperators: (keys?: string[] | undefined) => SupportedOperators;
|
|
11
12
|
export declare const operatorToString: (operator: QueryAttributes.Operator) => string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const supportedOperatorsConstants: {
|
|
2
|
+
'>': {
|
|
3
|
+
publicName: string;
|
|
4
|
+
validDataTypes: string[];
|
|
5
|
+
};
|
|
6
|
+
'<': {
|
|
7
|
+
publicName: string;
|
|
8
|
+
validDataTypes: string[];
|
|
9
|
+
};
|
|
10
|
+
'<=': {
|
|
11
|
+
publicName: string;
|
|
12
|
+
validDataTypes: string[];
|
|
13
|
+
};
|
|
14
|
+
'>=': {
|
|
15
|
+
publicName: string;
|
|
16
|
+
validDataTypes: string[];
|
|
17
|
+
};
|
|
18
|
+
'!=': {
|
|
19
|
+
publicName: string;
|
|
20
|
+
validDataTypes: string[];
|
|
21
|
+
};
|
|
22
|
+
is_one_of: {
|
|
23
|
+
publicName: string;
|
|
24
|
+
validDataTypes: string[];
|
|
25
|
+
};
|
|
26
|
+
'=': {
|
|
27
|
+
publicName: string;
|
|
28
|
+
validDataTypes: string[];
|
|
29
|
+
};
|
|
30
|
+
is_not_one_of: {
|
|
31
|
+
publicName: string;
|
|
32
|
+
validDataTypes: string[];
|
|
33
|
+
};
|
|
34
|
+
starts_with: {
|
|
35
|
+
publicName: string;
|
|
36
|
+
validDataTypes: string[];
|
|
37
|
+
};
|
|
38
|
+
ends_with: {
|
|
39
|
+
publicName: string;
|
|
40
|
+
validDataTypes: string[];
|
|
41
|
+
};
|
|
42
|
+
contains_substring: {
|
|
43
|
+
publicName: string;
|
|
44
|
+
validDataTypes: string[];
|
|
45
|
+
};
|
|
46
|
+
does_not_contain_substring: {
|
|
47
|
+
publicName: string;
|
|
48
|
+
validDataTypes: string[];
|
|
49
|
+
};
|
|
50
|
+
array_contains: {
|
|
51
|
+
publicName: string;
|
|
52
|
+
validDataTypes: string[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Client } from '../VizzlyConfig/types';
|
|
2
|
-
export declare type ConfigSource = 'file' | 'environment' | 'github' | 's3' | 'vizzlyEncrypted';
|
|
2
|
+
export declare type ConfigSource = 'file' | 'environment' | 'github' | 's3' | 'vizzlyEncrypted' | 'customEndpoint';
|
|
3
3
|
export declare type ConfigSources = {
|
|
4
4
|
connection: 'environment';
|
|
5
5
|
dataSets: Array<ConfigSource>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare const ALL_SUPPORTED_CONSTANTS: ({
|
|
2
|
+
namespace: string;
|
|
3
|
+
constants: {
|
|
4
|
+
'>': {
|
|
5
|
+
publicName: string;
|
|
6
|
+
validDataTypes: string[];
|
|
7
|
+
};
|
|
8
|
+
'<': {
|
|
9
|
+
publicName: string;
|
|
10
|
+
validDataTypes: string[];
|
|
11
|
+
};
|
|
12
|
+
'<=': {
|
|
13
|
+
publicName: string;
|
|
14
|
+
validDataTypes: string[];
|
|
15
|
+
};
|
|
16
|
+
'>=': {
|
|
17
|
+
publicName: string;
|
|
18
|
+
validDataTypes: string[];
|
|
19
|
+
};
|
|
20
|
+
'!=': {
|
|
21
|
+
publicName: string;
|
|
22
|
+
validDataTypes: string[];
|
|
23
|
+
};
|
|
24
|
+
is_one_of: {
|
|
25
|
+
publicName: string;
|
|
26
|
+
validDataTypes: string[];
|
|
27
|
+
};
|
|
28
|
+
'=': {
|
|
29
|
+
publicName: string;
|
|
30
|
+
validDataTypes: string[];
|
|
31
|
+
};
|
|
32
|
+
is_not_one_of: {
|
|
33
|
+
publicName: string;
|
|
34
|
+
validDataTypes: string[];
|
|
35
|
+
};
|
|
36
|
+
starts_with: {
|
|
37
|
+
publicName: string;
|
|
38
|
+
validDataTypes: string[];
|
|
39
|
+
};
|
|
40
|
+
ends_with: {
|
|
41
|
+
publicName: string;
|
|
42
|
+
validDataTypes: string[];
|
|
43
|
+
};
|
|
44
|
+
contains_substring: {
|
|
45
|
+
publicName: string;
|
|
46
|
+
validDataTypes: string[];
|
|
47
|
+
};
|
|
48
|
+
does_not_contain_substring: {
|
|
49
|
+
publicName: string;
|
|
50
|
+
validDataTypes: string[];
|
|
51
|
+
};
|
|
52
|
+
array_contains: {
|
|
53
|
+
publicName: string;
|
|
54
|
+
validDataTypes: string[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
namespace: string;
|
|
59
|
+
constants: {
|
|
60
|
+
mean: {
|
|
61
|
+
publicName: string;
|
|
62
|
+
validDataTypes: string[];
|
|
63
|
+
};
|
|
64
|
+
sum: {
|
|
65
|
+
publicName: string;
|
|
66
|
+
validDataTypes: string[];
|
|
67
|
+
};
|
|
68
|
+
min: {
|
|
69
|
+
publicName: string;
|
|
70
|
+
validDataTypes: string[];
|
|
71
|
+
};
|
|
72
|
+
max: {
|
|
73
|
+
publicName: string;
|
|
74
|
+
validDataTypes: string[];
|
|
75
|
+
};
|
|
76
|
+
count: {
|
|
77
|
+
publicName: string;
|
|
78
|
+
validDataTypes: string[];
|
|
79
|
+
};
|
|
80
|
+
countDistinct: {
|
|
81
|
+
publicName: string;
|
|
82
|
+
validDataTypes: string[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
} | {
|
|
86
|
+
namespace: string;
|
|
87
|
+
constants: {
|
|
88
|
+
month: {
|
|
89
|
+
publicName: string;
|
|
90
|
+
dateFormat: string;
|
|
91
|
+
};
|
|
92
|
+
year: {
|
|
93
|
+
publicName: string;
|
|
94
|
+
dateFormat: string;
|
|
95
|
+
};
|
|
96
|
+
quarter: {
|
|
97
|
+
publicName: string;
|
|
98
|
+
dateFormat: string;
|
|
99
|
+
};
|
|
100
|
+
week: {
|
|
101
|
+
publicName: string;
|
|
102
|
+
dateFormat: string;
|
|
103
|
+
};
|
|
104
|
+
day: {
|
|
105
|
+
publicName: string;
|
|
106
|
+
dateFormat: string;
|
|
107
|
+
};
|
|
108
|
+
second: {
|
|
109
|
+
publicName: string;
|
|
110
|
+
dateFormat: string;
|
|
111
|
+
};
|
|
112
|
+
hour: {
|
|
113
|
+
publicName: string;
|
|
114
|
+
dateFormat: string;
|
|
115
|
+
};
|
|
116
|
+
minute: {
|
|
117
|
+
publicName: string;
|
|
118
|
+
dateFormat: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
})[];
|
|
@@ -31,6 +31,8 @@ export declare namespace VizzlyTheming {
|
|
|
31
31
|
library?: Library;
|
|
32
32
|
filters?: Filters;
|
|
33
33
|
header?: Header;
|
|
34
|
+
ai?: AI;
|
|
35
|
+
icons?: Icons;
|
|
34
36
|
}
|
|
35
37
|
interface Buttons {
|
|
36
38
|
primary?: ButtonType;
|
|
@@ -457,5 +459,30 @@ export declare namespace VizzlyTheming {
|
|
|
457
459
|
padding?: CSSProperties['padding'];
|
|
458
460
|
textAlign?: CSSProperties['textAlign'];
|
|
459
461
|
};
|
|
462
|
+
type AI = {
|
|
463
|
+
suggestions?: {
|
|
464
|
+
padding?: CSSProperties['padding'];
|
|
465
|
+
borderRadius?: CSSProperties['borderRadius'];
|
|
466
|
+
background?: CSSProperties['background'];
|
|
467
|
+
color?: CSSProperties['color'];
|
|
468
|
+
border?: CSSProperties['border'];
|
|
469
|
+
'&:hover'?: {
|
|
470
|
+
background?: CSSProperties['background'];
|
|
471
|
+
color?: CSSProperties['color'];
|
|
472
|
+
border?: CSSProperties['border'];
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
avatar?: {
|
|
476
|
+
color?: CSSProperties['color'];
|
|
477
|
+
background?: CSSProperties['color'];
|
|
478
|
+
border?: CSSProperties['border'];
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
type Icons = {
|
|
482
|
+
color?: CSSProperties['color'];
|
|
483
|
+
'&:hover'?: {
|
|
484
|
+
color?: CSSProperties['color'];
|
|
485
|
+
};
|
|
486
|
+
};
|
|
460
487
|
}
|
|
461
488
|
export declare type ThemeVersion = 1 | 2;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const timeDimensionsConstants: {
|
|
2
|
+
month: {
|
|
3
|
+
publicName: string;
|
|
4
|
+
dateFormat: string;
|
|
5
|
+
};
|
|
6
|
+
year: {
|
|
7
|
+
publicName: string;
|
|
8
|
+
dateFormat: string;
|
|
9
|
+
};
|
|
10
|
+
quarter: {
|
|
11
|
+
publicName: string;
|
|
12
|
+
dateFormat: string;
|
|
13
|
+
};
|
|
14
|
+
week: {
|
|
15
|
+
publicName: string;
|
|
16
|
+
dateFormat: string;
|
|
17
|
+
};
|
|
18
|
+
day: {
|
|
19
|
+
publicName: string;
|
|
20
|
+
dateFormat: string;
|
|
21
|
+
};
|
|
22
|
+
second: {
|
|
23
|
+
publicName: string;
|
|
24
|
+
dateFormat: string;
|
|
25
|
+
};
|
|
26
|
+
hour: {
|
|
27
|
+
publicName: string;
|
|
28
|
+
dateFormat: string;
|
|
29
|
+
};
|
|
30
|
+
minute: {
|
|
31
|
+
publicName: string;
|
|
32
|
+
dateFormat: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildKeyComments(fixedVariables: string[] | undefined, content: string, plurals: string[] | undefined, key: string, defaultValue: string): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExtractedKeys } from './shared';
|
|
2
|
+
interface Object {
|
|
3
|
+
publicName: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function extractSupportedConstant<T extends Record<string, Object>>(supportedConstant: T, namespace: string, uniqueKeys: Set<ExtractedKeys>): Set<ExtractedKeys> | null;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TextOverrideCall } from '.';
|
|
2
|
+
export declare function getTextOverrideArgKeys(textOverrideArgs: string): [string[], string[]];
|
|
3
|
+
export declare function removeDuplicates(set: Set<TextOverrideCall>, keyIndex: number): TextOverrideCall[];
|
|
4
|
+
export declare function extractTextOverrideCalls(fileName: string): TextOverrideCall[];
|
|
5
|
+
export declare function listFiles(type: 'ts' | 'tsx', dir: string, fileList?: string[]): string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const SECTION_KEYS: readonly ["title", "description", "data_panel", "format_panel"];
|
|
2
|
+
export declare type SectionKeys = typeof SECTION_KEYS[number];
|
|
3
|
+
export declare const PROPERTIES: string[];
|
|
4
|
+
export declare const CALL_TO_ACTION = "call_to_action";
|
|
5
|
+
export declare type ExtractedKeys = {
|
|
6
|
+
key: string;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
fixedVariables?: string[] | undefined;
|
|
9
|
+
plurals?: string[] | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentInterface } from '../ComponentInterface/types';
|
|
2
|
+
import { DataPanelSection } from '../DataPanelConfig/types';
|
|
3
|
+
import { TextOverride } from './types';
|
|
4
|
+
export declare const textOverrideComponent: (component: ComponentInterface<any>, textOverride?: TextOverride | undefined) => ComponentInterface<any>;
|
|
5
|
+
declare type Panel = {
|
|
6
|
+
namespace?: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
callToAction?: string;
|
|
11
|
+
subSection?: any;
|
|
12
|
+
x?: Panel & FormatPanel;
|
|
13
|
+
y?: Panel & FormatPanel;
|
|
14
|
+
};
|
|
15
|
+
declare type FormatPanel = {
|
|
16
|
+
axisTitle?: Panel;
|
|
17
|
+
count?: Panel;
|
|
18
|
+
format?: Panel;
|
|
19
|
+
postfix?: Panel;
|
|
20
|
+
prefix?: Panel;
|
|
21
|
+
};
|
|
22
|
+
declare type Result = {
|
|
23
|
+
key: string;
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
property: keyof DataPanelSection;
|
|
26
|
+
};
|
|
27
|
+
export declare function buildAxisLabels(namespaceTextOverride: TextOverride, formatPanelKey: string, panel: Panel): void;
|
|
28
|
+
export declare function buildSubSection(panel: Panel, namespaceTextOverride: TextOverride, dataPanelKey: string): any;
|
|
29
|
+
export declare function buildObject(panel: Panel): Result[];
|
|
30
|
+
export {};
|