@luzmo/analytics-components-kit 1.0.1-alpha.87 → 1.0.1-alpha.90
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/angular/components/display-settings-binning.component.ts +2 -2
- package/angular/components/display-settings-datetime.component.ts +2 -2
- package/angular/components/display-settings-grand-totals.component.ts +2 -2
- package/angular/components/display-settings-numeric.component.ts +2 -2
- package/angular/components/display-settings.component.ts +3 -3
- package/angular/components/draggable-data-item/index.ts +1 -0
- package/angular/components/draggable-data-item/types.ts +42 -0
- package/angular/components/draggable-data-item-level/index.ts +1 -0
- package/angular/components/draggable-data-item-level/types.ts +15 -0
- package/angular/components/draggable-data-item-level.component.ts +4 -10
- package/angular/components/draggable-data-item.component.ts +4 -10
- package/angular/components/droppable-slot/index.ts +1 -0
- package/angular/components/droppable-slot/types.ts +16 -0
- package/angular/components/droppable-slot.component.ts +5 -3
- package/angular/components/slot-menu/index.ts +1 -0
- package/angular/components/slot-menu/types.ts +31 -0
- package/angular/components/slot-menu-list.component.ts +2 -2
- package/angular/components/slot-menu.component.ts +3 -3
- package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
- package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
- package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
- package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
- package/angular/esm/components/display-settings.component.d.ts +3 -3
- package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
- package/angular/esm/components/draggable-data-item/index.js +1 -0
- package/angular/esm/components/draggable-data-item/types.d.ts +21 -0
- package/angular/esm/components/draggable-data-item/types.js +1 -0
- package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
- package/angular/esm/components/draggable-data-item-level/index.js +1 -0
- package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
- package/angular/esm/components/draggable-data-item-level/types.js +1 -0
- package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
- package/angular/esm/components/draggable-data-item-level.component.js +2 -17
- package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
- package/angular/esm/components/draggable-data-item.component.js +2 -17
- package/angular/esm/components/droppable-slot/index.d.ts +1 -0
- package/angular/esm/components/droppable-slot/index.js +1 -0
- package/angular/esm/components/droppable-slot/types.d.ts +9 -0
- package/angular/esm/components/droppable-slot/types.js +1 -0
- package/angular/esm/components/droppable-slot.component.d.ts +5 -4
- package/angular/esm/components/droppable-slot.component.js +7 -2
- package/angular/esm/components/slot-menu/index.d.ts +1 -0
- package/angular/esm/components/slot-menu/index.js +1 -0
- package/angular/esm/components/slot-menu/types.d.ts +25 -0
- package/angular/esm/components/slot-menu/types.js +1 -0
- package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
- package/angular/esm/components/slot-menu.component.d.ts +3 -3
- package/angular/esm/types.d.ts +9 -3
- package/angular/tsconfig.json +3 -0
- package/angular/types.ts +24 -3
- package/angular/utils/base/base.d.ts +16 -0
- package/angular/utils/base/focus-visible.d.ts +29 -0
- package/angular/utils/base/focusable.d.ts +58 -0
- package/angular/utils/base/index.d.ts +4 -0
- package/angular/utils/base/sized-mixin.d.ts +17 -0
- package/angular/utils/color/color-palettes.d.ts +17 -0
- package/angular/utils/color/extrapolate-color.d.ts +1 -0
- package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
- package/angular/utils/data-broker/index.d.ts +191 -0
- package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
- package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
- package/angular/utils/drag/draggable.d.ts +13 -0
- package/angular/utils/filters/expressions.d.ts +15 -0
- package/angular/utils/filters/index.d.ts +1 -0
- package/angular/utils/formatter/calculate-duration.d.ts +2 -0
- package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/angular/utils/formatter/default-local-formats.d.ts +20 -0
- package/angular/utils/formatter/formats/cs.d.ts +20 -0
- package/angular/utils/formatter/formats/da.d.ts +20 -0
- package/angular/utils/formatter/formats/de.d.ts +21 -0
- package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
- package/angular/utils/formatter/formats/en-US.d.ts +1 -0
- package/angular/utils/formatter/formats/en.d.ts +1 -0
- package/angular/utils/formatter/formats/es.d.ts +54 -0
- package/angular/utils/formatter/formats/fi.d.ts +20 -0
- package/angular/utils/formatter/formats/fr.d.ts +54 -0
- package/angular/utils/formatter/formats/he.d.ts +20 -0
- package/angular/utils/formatter/formats/hu.d.ts +20 -0
- package/angular/utils/formatter/formats/it.d.ts +54 -0
- package/angular/utils/formatter/formats/ja.d.ts +20 -0
- package/angular/utils/formatter/formats/ko.d.ts +20 -0
- package/angular/utils/formatter/formats/mk.d.ts +20 -0
- package/angular/utils/formatter/formats/nl.d.ts +21 -0
- package/angular/utils/formatter/formats/no.d.ts +21 -0
- package/angular/utils/formatter/formats/pl.d.ts +20 -0
- package/angular/utils/formatter/formats/pt.d.ts +20 -0
- package/angular/utils/formatter/formats/ru.d.ts +20 -0
- package/angular/utils/formatter/formats/sv.d.ts +20 -0
- package/angular/utils/formatter/formats/tr.d.ts +21 -0
- package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/angular/utils/formatter/formatter.d.ts +9 -0
- package/angular/utils/formatter/localize.d.ts +3 -0
- package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/angular/utils/get-css-variable.d.ts +1 -0
- package/angular/utils/index.d.ts +7 -0
- package/angular/utils/localize/set-locale.d.ts +7 -0
- package/angular/utils/map-tile-providers/index.d.ts +93 -0
- package/angular/utils/store/slot-context.d.ts +4 -0
- package/angular/utils/store/slot-store.d.ts +39 -0
- package/angular/utils/switch-item/index.d.ts +14 -0
- package/angular/utils/themes/bliss.d.ts +43 -0
- package/angular/utils/themes/classic-dark.d.ts +34 -0
- package/angular/utils/themes/classic.d.ts +43 -0
- package/angular/utils/themes/default-dark.d.ts +46 -0
- package/angular/utils/themes/default.d.ts +46 -0
- package/angular/utils/themes/index.d.ts +3 -0
- package/angular/utils/themes/orion.d.ts +44 -0
- package/angular/utils/themes/pinky.d.ts +42 -0
- package/angular/utils/themes/radiant.d.ts +42 -0
- package/angular/utils/themes/royale.d.ts +36 -0
- package/angular/utils/themes/seasonal.d.ts +43 -0
- package/angular/utils/themes/urban.d.ts +44 -0
- package/angular/utils/themes/vivid.d.ts +42 -0
- package/angular/utils/time/formats.const.d.ts +4 -0
- package/angular/utils/time/periods.const.d.ts +15 -0
- package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
- package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
- package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
- package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
- package/angular/utils/types/type-check.d.ts +7 -0
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -1
- package/components/display-settings/display-settings.d.ts +4 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
- package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +4 -4
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
- package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
- package/components/display-settings-numeric/index.cjs +10 -10
- package/components/display-settings-numeric/index.js +5 -5
- package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
- package/components/draggable-data-item/index.cjs +14 -22
- package/components/draggable-data-item/index.d.ts +1 -0
- package/components/draggable-data-item/index.js +80 -88
- package/components/draggable-data-item/types.d.ts +21 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
- package/components/draggable-data-item-level/index.cjs +13 -13
- package/components/draggable-data-item-level/index.js +84 -102
- package/components/draggable-data-item-level/types.d.ts +12 -0
- package/components/droppable-slot/droppable-slot.d.ts +4 -2
- package/components/droppable-slot/index.cjs +13 -13
- package/components/droppable-slot/index.d.ts +1 -0
- package/components/droppable-slot/index.js +198 -199
- package/components/droppable-slot/types.d.ts +9 -0
- package/components/{en-CtCctD2c.js → en-D3ihEGXg.js} +67 -67
- package/components/{en--a5SfjnM.cjs → en-DZcn_iz_.cjs} +1 -1
- package/components/{en-GB-CXVKFWyH.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CbNfyZMo.js → en-GB-ialeqj_z.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +8 -8
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-COd1d84B.cjs} +3 -3
- package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-CdwF98oh.js} +31 -31
- package/components/grid/index.cjs +1 -7
- package/components/grid/index.js +0 -7
- package/components/{index-BUal0r_D.cjs → index-BekTY3Em.cjs} +1 -1
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-3WsfvkZF.js → index-CqKpf0B8.js} +1 -1
- package/components/{index-BGb_wRRW.js → index-DNPULp4A.js} +177 -188
- package/components/index.cjs +1 -1
- package/components/index.js +26 -24
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +2 -2
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.d.ts +1 -0
- package/components/slot-menu/index.js +64 -69
- package/components/slot-menu/slot-menu.d.ts +7 -6
- package/components/slot-menu/types.d.ts +25 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +2 -2
- package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +129 -62
- package/custom-elements.json +123 -126
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +9 -3
- package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
- package/utils/data-broker/index.d.ts +69 -66
- package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
- package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
- package/utils/index.d.ts +2 -0
- package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
- package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
- package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
- package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
- package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
- package/components/index-D1Y5TRsH.cjs +0 -20
- package/utils/types/column.types.d.ts +0 -57
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import type { Column, Formula, JoinType } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the DataBroker
|
|
4
|
+
*/
|
|
5
|
+
export interface DataBrokerConfig {
|
|
6
|
+
apiVersion?: string;
|
|
7
|
+
apiUrl?: string;
|
|
8
|
+
authKey?: string;
|
|
9
|
+
authToken?: string;
|
|
10
|
+
staleTime?: number;
|
|
11
|
+
gcTime?: number;
|
|
12
|
+
retry?: number;
|
|
13
|
+
retryDelay?: (attempt: number) => number;
|
|
14
|
+
}
|
|
15
|
+
export interface DatasetListItem {
|
|
16
|
+
id: string;
|
|
17
|
+
name: Record<string, string>;
|
|
18
|
+
description?: Record<string, string>;
|
|
19
|
+
}
|
|
20
|
+
export interface DatasetColumnMetadata extends Pick<Column, 'id' | 'name' | 'description' | 'type' | 'subtype' | 'format' | 'lowestLevel' | 'expression' | 'joins' | 'duration_levels' | 'duration_format' | 'hierarchyLevels' | 'currency'> {
|
|
21
|
+
hidden?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type DatasetFormulaMetadata = Partial<Formula> & Pick<Formula, 'id' | 'name' | 'expression'> & {
|
|
24
|
+
hidden?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export interface DatasetMetadata extends DatasetListItem {
|
|
27
|
+
columns: DatasetColumnMetadata[];
|
|
28
|
+
formulas: DatasetFormulaMetadata[];
|
|
29
|
+
outgoingJoins?: JoinType[];
|
|
30
|
+
dateLoaded?: Date;
|
|
31
|
+
}
|
|
32
|
+
export type DatasetSummary = Pick<DatasetMetadata, 'id' | 'name' | 'columns'>;
|
|
33
|
+
interface ApiRequestInclude {
|
|
34
|
+
model: string;
|
|
35
|
+
attributes?: string[];
|
|
36
|
+
include?: ApiRequestInclude[];
|
|
37
|
+
separate?: boolean;
|
|
38
|
+
order?: [string, 'asc' | 'desc'][];
|
|
39
|
+
as?: string;
|
|
40
|
+
}
|
|
41
|
+
interface ApiRequestFindClause {
|
|
42
|
+
where?: Record<string, unknown>;
|
|
43
|
+
limit?: number;
|
|
44
|
+
offset?: number;
|
|
45
|
+
attributes?: string[];
|
|
46
|
+
include?: ApiRequestInclude[];
|
|
47
|
+
queries?: unknown[];
|
|
48
|
+
search?: {
|
|
49
|
+
match_types: string[];
|
|
50
|
+
keyphrase: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
interface ApiRequestPayload {
|
|
54
|
+
action: 'get';
|
|
55
|
+
version: string;
|
|
56
|
+
find?: ApiRequestFindClause;
|
|
57
|
+
key?: string;
|
|
58
|
+
token?: string;
|
|
59
|
+
}
|
|
60
|
+
interface PaginatedApiResponse<T> {
|
|
61
|
+
data: T[];
|
|
62
|
+
pagination: PaginationResult;
|
|
63
|
+
}
|
|
64
|
+
interface DatasetSearchResult {
|
|
65
|
+
data: DatasetListItem[];
|
|
66
|
+
pagination?: PaginationResult;
|
|
67
|
+
}
|
|
68
|
+
interface PaginationOptions {
|
|
69
|
+
offset?: number;
|
|
70
|
+
limit?: number;
|
|
71
|
+
}
|
|
72
|
+
interface PaginationResult {
|
|
73
|
+
offset: number;
|
|
74
|
+
limit: number;
|
|
75
|
+
total: number;
|
|
76
|
+
pages: number;
|
|
77
|
+
}
|
|
78
|
+
export interface PerformanceMetrics {
|
|
79
|
+
validating: number;
|
|
80
|
+
preparing: number;
|
|
81
|
+
queuing: number;
|
|
82
|
+
querying: number;
|
|
83
|
+
processing: number;
|
|
84
|
+
rows: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* DataBroker service for Luzmo API
|
|
88
|
+
* Provides methods to fetch and manipulate data from Luzmo REST API
|
|
89
|
+
*/
|
|
90
|
+
export declare class DataBroker {
|
|
91
|
+
private apiUrl;
|
|
92
|
+
private apiVersion;
|
|
93
|
+
private authKey;
|
|
94
|
+
private authToken;
|
|
95
|
+
private queryClient;
|
|
96
|
+
private static instance;
|
|
97
|
+
private availableDatasets;
|
|
98
|
+
constructor(config?: DataBrokerConfig);
|
|
99
|
+
/**
|
|
100
|
+
* Set API configuration
|
|
101
|
+
* @param config - API configuration
|
|
102
|
+
*/
|
|
103
|
+
configure(config?: DataBrokerConfig): void;
|
|
104
|
+
/**
|
|
105
|
+
* Initialize network status listeners
|
|
106
|
+
*/
|
|
107
|
+
private initNetworkListeners;
|
|
108
|
+
/**
|
|
109
|
+
* Get API headers
|
|
110
|
+
* @param additionalHeaders - Additional headers to include
|
|
111
|
+
* @returns Headers for API requests
|
|
112
|
+
*/
|
|
113
|
+
getHeaders(additionalHeaders?: Record<string, string>): Record<string, string>;
|
|
114
|
+
/**
|
|
115
|
+
* Make API request with advanced error handling
|
|
116
|
+
* Default method is POST and supports an optional JSON body
|
|
117
|
+
* @param endpoint - API endpoint
|
|
118
|
+
* @param jsonBody - Optional JSON body to send with request
|
|
119
|
+
* @param options - Additional fetch options
|
|
120
|
+
* @returns API response
|
|
121
|
+
* @throws {Error} If API request fails
|
|
122
|
+
*/
|
|
123
|
+
fetchApi<T>(endpoint: string, jsonBody?: ApiRequestPayload, options?: RequestInit): Promise<T>;
|
|
124
|
+
/**
|
|
125
|
+
* Fetch all available datasets with pagination support
|
|
126
|
+
* @param options - Pagination options
|
|
127
|
+
* @returns Paginated list of datasets
|
|
128
|
+
*/
|
|
129
|
+
fetchAllDatasets(options?: PaginationOptions): Promise<PaginatedApiResponse<DatasetListItem>>;
|
|
130
|
+
/**
|
|
131
|
+
* Search datasets by name or description
|
|
132
|
+
* @param query - Search query
|
|
133
|
+
* @returns List of matching datasets
|
|
134
|
+
*/
|
|
135
|
+
searchDatasets(query: string, options?: PaginationOptions): Promise<DatasetSearchResult>;
|
|
136
|
+
/**
|
|
137
|
+
* Fetches multiple datasets with their associated columns and formulas metadata
|
|
138
|
+
* @param datasetIds - Array of dataset IDs to fetch
|
|
139
|
+
* @returns Promise that resolves to an array of DatasetMetadata objects containing:
|
|
140
|
+
* - Basic dataset info (id, name, description)
|
|
141
|
+
* - Columns with metadata including joins, hierarchy levels, and currency info
|
|
142
|
+
* - Formulas with their expressions and currency associations
|
|
143
|
+
* @throws Error if datasetIds is empty or null
|
|
144
|
+
*/
|
|
145
|
+
fetchDatasetsWithColumnsAndFormulas(datasetIds: string[]): Promise<DatasetMetadata[]>;
|
|
146
|
+
/**
|
|
147
|
+
* Fetch data from a dataset with filtering
|
|
148
|
+
* @param datasetId - Dataset ID
|
|
149
|
+
* @param queryParams - Query parameters (filters, sort, etc.)
|
|
150
|
+
* @returns Dataset data
|
|
151
|
+
*/
|
|
152
|
+
fetchData(query: {
|
|
153
|
+
dimensions?: any[];
|
|
154
|
+
measures?: any[];
|
|
155
|
+
where?: any[];
|
|
156
|
+
order?: any[];
|
|
157
|
+
limit?: {
|
|
158
|
+
by: number;
|
|
159
|
+
offset: number;
|
|
160
|
+
};
|
|
161
|
+
options?: any;
|
|
162
|
+
}): Promise<{
|
|
163
|
+
data: any[][];
|
|
164
|
+
performance: PerformanceMetrics;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* Refresh all queries
|
|
168
|
+
*/
|
|
169
|
+
refreshAll(): void;
|
|
170
|
+
/**
|
|
171
|
+
* Invalidate cached data for a dataset
|
|
172
|
+
* @param datasetId - Dataset ID (optional)
|
|
173
|
+
*/
|
|
174
|
+
invalidateDatasetData(datasetId?: string): void;
|
|
175
|
+
/**
|
|
176
|
+
* Invalidate all cached data
|
|
177
|
+
*/
|
|
178
|
+
invalidateAll(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Create a singleton instance
|
|
181
|
+
* @param config - API configuration
|
|
182
|
+
* @returns Singleton instance
|
|
183
|
+
*/
|
|
184
|
+
static getInstance(config?: DataBrokerConfig): DataBroker;
|
|
185
|
+
fetchDatasetsRecursive(initialDatasetIds: string[]): Promise<DatasetMetadata[]>;
|
|
186
|
+
private postProcessDatasetMetadata;
|
|
187
|
+
getAvailableDatasets(): DatasetSummary[];
|
|
188
|
+
getLinkedDatasetsIds(datasetId: string): string[];
|
|
189
|
+
}
|
|
190
|
+
export declare const dataBroker: DataBroker;
|
|
191
|
+
export default DataBroker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconDefinition } from '@luzmo/icons';
|
|
2
|
+
import { ElementSize } from '@luzmo/lucero';
|
|
3
|
+
import type { DraggableDataItemData } from '../../components/draggable-data-item/types';
|
|
4
|
+
export type DataItemIconType = 'array[hierarchy]' | 'array[datetime]' | 'array[numeric]' | 'array[currency]' | 'array[duration]' | 'coordinates' | 'currency' | 'date' | 'datetime' | 'derived' | 'duration' | 'hierarchy' | 'image' | 'numeric' | 'spatial' | 'topography' | 'ipaddress' | 'formula';
|
|
5
|
+
export type IconSize = Extract<ElementSize, 's' | 'm' | 'l' | 'xl'>;
|
|
6
|
+
export declare const dataIconTree: Record<DataItemIconType, Record<IconSize, IconDefinition>>;
|
|
7
|
+
export declare const dataIconSizeByElementSize: Record<ElementSize, IconSize>;
|
|
8
|
+
export declare const normalizeDataIconSize: (size?: ElementSize) => IconSize;
|
|
9
|
+
export declare const calculateDataItemIcon: (data: Pick<DraggableDataItemData, "type" | "subtype" | "lowestLevel">, size?: ElementSize) => IconDefinition;
|
|
10
|
+
export declare const calculateDataItemSecondaryIcon: (data: Pick<DraggableDataItemData, "formulaId" | "columnId" | "expression">, size?: ElementSize) => IconDefinition | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DraggableOptions {
|
|
2
|
+
/** The element that will move */
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
/** Element that receives pointerdown to start drag */
|
|
5
|
+
handle: HTMLElement;
|
|
6
|
+
/** Optional element whose bounding box acts as clamp */
|
|
7
|
+
boundary?: HTMLElement | null;
|
|
8
|
+
/** Callback when drag starts */
|
|
9
|
+
onDragStart?: () => void;
|
|
10
|
+
/** Callback when drag ends */
|
|
11
|
+
onDragEnd?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function makeDraggable({ element, handle, boundary, onDragStart, onDragEnd }: DraggableOptions): () => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColumnSubtype, ColumnType } from '@luzmo/dashboard-contents-types';
|
|
2
|
+
export type FilterExpressionConfiguration = {
|
|
3
|
+
id: string;
|
|
4
|
+
key: FilterExpressionKey;
|
|
5
|
+
expression: FilterExpressionKey;
|
|
6
|
+
unit?: number;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
tiny: string;
|
|
10
|
+
type: ColumnType[];
|
|
11
|
+
subtype?: ColumnSubtype[];
|
|
12
|
+
};
|
|
13
|
+
export type FilterExpressionKey = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'to_date' | '? is null' | '? is not null';
|
|
14
|
+
export declare const filterExpressionsConfigurations: () => FilterExpressionConfiguration[];
|
|
15
|
+
export declare const getValidExpressions: (type?: ColumnType, subtype?: ColumnSubtype, isFormula?: boolean) => FilterExpressionConfiguration[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './expressions';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const DEFAULT_LOCAL_FORMATS: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
currency: string[];
|
|
3
|
+
date: string;
|
|
4
|
+
decimal: string;
|
|
5
|
+
thousands: string;
|
|
6
|
+
grouping: number[];
|
|
7
|
+
dateTime: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEFAULT_LOCAL_FORMATS as default } from '../default-local-formats';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEFAULT_LOCAL_FORMATS as default } from '../default-local-formats';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
smartDateFormats: ({
|
|
21
|
+
key: string;
|
|
22
|
+
lev1: string;
|
|
23
|
+
lev2: string;
|
|
24
|
+
lev3: string;
|
|
25
|
+
lev4: string;
|
|
26
|
+
lev5: string;
|
|
27
|
+
monthType: string;
|
|
28
|
+
longText: boolean;
|
|
29
|
+
weekday: boolean;
|
|
30
|
+
mmdd?: undefined;
|
|
31
|
+
separator?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
key: string;
|
|
34
|
+
lev1: string;
|
|
35
|
+
lev2: string;
|
|
36
|
+
lev3: string;
|
|
37
|
+
lev4: string;
|
|
38
|
+
lev5: string;
|
|
39
|
+
monthType: string;
|
|
40
|
+
mmdd: boolean;
|
|
41
|
+
separator: string;
|
|
42
|
+
longText?: undefined;
|
|
43
|
+
weekday?: undefined;
|
|
44
|
+
})[];
|
|
45
|
+
smartTimeFormats: {
|
|
46
|
+
key: string;
|
|
47
|
+
lev6: string;
|
|
48
|
+
lev7: string;
|
|
49
|
+
lev8: string;
|
|
50
|
+
lev9: string;
|
|
51
|
+
ampm: boolean;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
smartDateFormats: ({
|
|
21
|
+
key: string;
|
|
22
|
+
lev1: string;
|
|
23
|
+
lev2: string;
|
|
24
|
+
lev3: string;
|
|
25
|
+
lev4: string;
|
|
26
|
+
lev5: string;
|
|
27
|
+
monthType: string;
|
|
28
|
+
longText: boolean;
|
|
29
|
+
weekday: boolean;
|
|
30
|
+
mmdd?: undefined;
|
|
31
|
+
separator?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
key: string;
|
|
34
|
+
lev1: string;
|
|
35
|
+
lev2: string;
|
|
36
|
+
lev3: string;
|
|
37
|
+
lev4: string;
|
|
38
|
+
lev5: string;
|
|
39
|
+
monthType: string;
|
|
40
|
+
mmdd: boolean;
|
|
41
|
+
separator: string;
|
|
42
|
+
longText?: undefined;
|
|
43
|
+
weekday?: undefined;
|
|
44
|
+
})[];
|
|
45
|
+
smartTimeFormats: {
|
|
46
|
+
key: string;
|
|
47
|
+
lev6: string;
|
|
48
|
+
lev7: string;
|
|
49
|
+
lev8: string;
|
|
50
|
+
lev9: string;
|
|
51
|
+
ampm: boolean;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
smartDateFormats: ({
|
|
21
|
+
key: string;
|
|
22
|
+
lev1: string;
|
|
23
|
+
lev2: string;
|
|
24
|
+
lev3: string;
|
|
25
|
+
lev4: string;
|
|
26
|
+
lev5: string;
|
|
27
|
+
monthType: string;
|
|
28
|
+
longText: boolean;
|
|
29
|
+
weekday: boolean;
|
|
30
|
+
mmdd?: undefined;
|
|
31
|
+
separator?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
key: string;
|
|
34
|
+
lev1: string;
|
|
35
|
+
lev2: string;
|
|
36
|
+
lev3: string;
|
|
37
|
+
lev4: string;
|
|
38
|
+
lev5: string;
|
|
39
|
+
monthType: string;
|
|
40
|
+
mmdd: boolean;
|
|
41
|
+
separator: string;
|
|
42
|
+
longText?: undefined;
|
|
43
|
+
weekday?: undefined;
|
|
44
|
+
})[];
|
|
45
|
+
smartTimeFormats: {
|
|
46
|
+
key: string;
|
|
47
|
+
lev6: string;
|
|
48
|
+
lev7: string;
|
|
49
|
+
lev8: string;
|
|
50
|
+
lev9: string;
|
|
51
|
+
ampm: boolean;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
durationLongSuffix: string[];
|
|
17
|
+
durationShortSuffix: string[];
|
|
18
|
+
multi: string[];
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
decimal: string;
|
|
3
|
+
thousands: string;
|
|
4
|
+
grouping: number[];
|
|
5
|
+
currency: string[];
|
|
6
|
+
dateTime: string;
|
|
7
|
+
date: string;
|
|
8
|
+
dateSeparator: string;
|
|
9
|
+
time: string;
|
|
10
|
+
periods: string[];
|
|
11
|
+
days: string[];
|
|
12
|
+
shortDays: string[];
|
|
13
|
+
months: string[];
|
|
14
|
+
shortMonths: string[];
|
|
15
|
+
levels: string[];
|
|
16
|
+
shortLevels: string[];
|
|
17
|
+
durationLongSuffix: string[];
|
|
18
|
+
durationShortSuffix: string[];
|
|
19
|
+
multi: string[];
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|