@vizzly/services 0.14.0 → 0.14.1-dev-e0ca0009df3e30e44abcabf4d846020c4205cc61
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/index.js +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +3 -1
- package/dist/shared-logic/src/AdditionalFilter/fromDashboardRequiredFilterGroups.d.ts +9 -0
- package/dist/shared-logic/src/Component/types.d.ts +7 -0
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +1 -0
- package/dist/shared-logic/src/Filter/combineFilters.d.ts +2 -0
- package/dist/shared-logic/src/Filter/index.d.ts +1 -0
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/Query/Query.d.ts +1 -1
- package/dist/shared-logic/src/Theme/types.d.ts +22 -0
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { AdditionalFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
|
|
2
1
|
import { DataSet } from '../../../../../shared-logic/src/DataSet/types';
|
|
3
2
|
import { QueryEngineConfig } from '../../../../../shared-logic/src/QueryEngineConfig/types';
|
|
4
3
|
import { PreparedQuery, Query as QueryType } from '../../../../../shared-logic/src/Query/types';
|
|
5
4
|
import { Result as ResultType } from '../../../../../shared-logic/src/Result/types';
|
|
5
|
+
import { QueryAttributes } from '../../../../../shared-logic/src/QueryAttributes/types';
|
|
6
6
|
import { VariableList } from '../../../../../shared-logic/src/Variables/types';
|
|
7
|
+
import { AdditionalFilter } from '../../../../../shared-logic/src/AdditionalFilter/types';
|
|
7
8
|
export declare const toQueries: (additionalFilter: AdditionalFilter, dataSets: DataSet[], queryEngineConfig: QueryEngineConfig, variables: VariableList) => {
|
|
8
9
|
queries: (QueryType | PreparedQuery)[];
|
|
9
10
|
resultFields: Array<ResultType.Field[]>;
|
|
10
11
|
};
|
|
12
|
+
export declare function getOptionsOrders(dataSetField: DataSet.Field): QueryAttributes.Order[] | [];
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { DataSet } from '../DataSet/types';
|
|
2
2
|
import { AdditionalFilter } from './types';
|
|
3
|
+
declare type GroupedFields = {
|
|
4
|
+
[key: string]: Array<{
|
|
5
|
+
publicName: string;
|
|
6
|
+
dataSetField: DataSet['fields'][number];
|
|
7
|
+
dataSetId: string;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
export declare const groupFilters: (dataSets: DataSet[]) => GroupedFields[string][];
|
|
3
11
|
export declare const fromDashboardRequiredFilterGroups: (dataSets: DataSet[]) => Array<AdditionalFilter>;
|
|
12
|
+
export {};
|
|
@@ -261,6 +261,7 @@ export declare namespace Component {
|
|
|
261
261
|
protectedFields?: Omit<ProtectedFields, 'dimension'>;
|
|
262
262
|
hiddenFields?: HiddenField[];
|
|
263
263
|
};
|
|
264
|
+
export type SingleStatDirectionOptions = 'horizontal' | 'vertical';
|
|
264
265
|
export type SingleStatAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'dimension' | 'timeDimension' | 'order'> & {
|
|
265
266
|
type: 'singleStat';
|
|
266
267
|
prefixes: {
|
|
@@ -273,6 +274,7 @@ export declare namespace Component {
|
|
|
273
274
|
[fieldIdAndAggregate: string]: string;
|
|
274
275
|
};
|
|
275
276
|
fontSize: string;
|
|
277
|
+
direction?: SingleStatDirectionOptions;
|
|
276
278
|
conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
|
|
277
279
|
deltaTimeDimension: QueryAttributes.TimeDimension | null;
|
|
278
280
|
parameters?: Parameters;
|
|
@@ -309,6 +311,7 @@ export declare namespace Component {
|
|
|
309
311
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
310
312
|
axisTitles?: AxisTitles;
|
|
311
313
|
};
|
|
314
|
+
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat';
|
|
312
315
|
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes;
|
|
313
316
|
export interface RenderTableCell {
|
|
314
317
|
viewId: string;
|
|
@@ -348,6 +351,10 @@ export declare namespace Component {
|
|
|
348
351
|
};
|
|
349
352
|
}
|
|
350
353
|
export type OnViewClick = TableOnViewClick | ChartOnViewClick;
|
|
354
|
+
export type OnViewClickQuery = (queries: Partial<Omit<QueryAttributes, 'dataSetId'>>) => Promise<QueryResponse | null>;
|
|
355
|
+
export type QueryResponse = {
|
|
356
|
+
results: (Result | null)[] | (any[][] | null)[] | null;
|
|
357
|
+
};
|
|
351
358
|
export type LabelFormatOptionsValues = Dictionary<string | number | string[] | null>;
|
|
352
359
|
export type LabelFormatOptions = {
|
|
353
360
|
fieldId: string;
|
|
@@ -4,7 +4,7 @@ export declare type HeadingSubSections = Section<'title'> | Section<'subject'>;
|
|
|
4
4
|
export declare type HeadingSection = Section<'heading'> & {
|
|
5
5
|
subSection: Array<HeadingSubSections>;
|
|
6
6
|
};
|
|
7
|
-
export declare type FormatSubSections = Section<'time'> | Section<'fontSize'>;
|
|
7
|
+
export declare type FormatSubSections = Section<'time'> | Section<'fontSize'> | Section<'direction'>;
|
|
8
8
|
export declare type FormatSection = Section<'format'> & {
|
|
9
9
|
subSection: Array<FormatSubSections>;
|
|
10
10
|
};
|
|
@@ -30,7 +30,7 @@ export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, da
|
|
|
30
30
|
query: PreparedQuery;
|
|
31
31
|
resultFields: Result.Field[];
|
|
32
32
|
};
|
|
33
|
-
export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[]) => QueryAttributes;
|
|
33
|
+
export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[], optionsOrders?: QueryAttributes.Order[]) => QueryAttributes;
|
|
34
34
|
export declare const requiredFields: (query: Query) => Array<string>;
|
|
35
35
|
export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;
|
|
36
36
|
export declare const toDataSetDashboardFilters: (dataSets: DataSet[], additionalFilters: AdditionalFilter[], dateFilterOptions: TimeRangeOptions) => DataSetDashboardFilters;
|
|
@@ -153,6 +153,11 @@ export declare namespace VizzlyTheming {
|
|
|
153
153
|
'&:focus'?: InputState;
|
|
154
154
|
'&:hover'?: InputState;
|
|
155
155
|
'&:focus:hover'?: InputState;
|
|
156
|
+
active?: InputState & {
|
|
157
|
+
'&:focus'?: InputState;
|
|
158
|
+
'&:hover'?: InputState;
|
|
159
|
+
'&:focus:hover'?: InputState;
|
|
160
|
+
};
|
|
156
161
|
}
|
|
157
162
|
type InputStyle = {
|
|
158
163
|
padding?: CSSProperties['padding'];
|
|
@@ -330,6 +335,7 @@ export declare namespace VizzlyTheming {
|
|
|
330
335
|
info?: AlertType;
|
|
331
336
|
warning?: AlertType;
|
|
332
337
|
critical?: AlertType;
|
|
338
|
+
guidance?: AlertType;
|
|
333
339
|
};
|
|
334
340
|
type AlertType = {
|
|
335
341
|
background?: CSSProperties['background'];
|
|
@@ -397,6 +403,10 @@ export declare namespace VizzlyTheming {
|
|
|
397
403
|
background?: CSSProperties['background'];
|
|
398
404
|
borderTop?: CSSProperties['borderTop'];
|
|
399
405
|
textTransform?: CSSProperties['textTransform'];
|
|
406
|
+
/**
|
|
407
|
+
* @deprecated TH padding has moved to tables.th.button.padding and tables.th.sort.padding
|
|
408
|
+
*/
|
|
409
|
+
padding?: CSSProperties['padding'];
|
|
400
410
|
inner?: TableTHInner;
|
|
401
411
|
first?: TableTHFirst;
|
|
402
412
|
last?: TableTHLast;
|
|
@@ -404,6 +414,8 @@ export declare namespace VizzlyTheming {
|
|
|
404
414
|
color?: CSSProperties['color'];
|
|
405
415
|
background?: CSSProperties['background'];
|
|
406
416
|
};
|
|
417
|
+
button?: TableTHButton;
|
|
418
|
+
sort?: TableTHButton;
|
|
407
419
|
group?: {
|
|
408
420
|
textTransform?: CSSProperties['textTransform'];
|
|
409
421
|
fontWeight?: CSSProperties['fontWeight'];
|
|
@@ -428,6 +440,16 @@ export declare namespace VizzlyTheming {
|
|
|
428
440
|
};
|
|
429
441
|
};
|
|
430
442
|
}
|
|
443
|
+
interface TableTHButton {
|
|
444
|
+
color?: CSSProperties['color'];
|
|
445
|
+
background?: CSSProperties['background'];
|
|
446
|
+
padding?: CSSProperties['padding'];
|
|
447
|
+
borderRadius?: CSSProperties['borderRadius'];
|
|
448
|
+
'&:hover'?: {
|
|
449
|
+
color?: CSSProperties['color'];
|
|
450
|
+
background?: CSSProperties['background'];
|
|
451
|
+
};
|
|
452
|
+
}
|
|
431
453
|
type TableTHFirst = {
|
|
432
454
|
borderLeft: CSSProperties['borderLeft'];
|
|
433
455
|
};
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fix-type-alias": "tsc-alias -p tsconfig.json",
|
|
27
27
|
"prepare": "yarn build"
|
|
28
28
|
},
|
|
29
|
-
"version": "0.14.
|
|
29
|
+
"version": "0.14.1-dev-e0ca0009df3e30e44abcabf4d846020c4205cc61",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vizzly/api-client": "0.0.38",
|
|
32
32
|
"@vizzly/joi": "^17.11.0",
|