@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.
Files changed (203) hide show
  1. package/angular/components/display-settings-binning.component.ts +2 -2
  2. package/angular/components/display-settings-datetime.component.ts +2 -2
  3. package/angular/components/display-settings-grand-totals.component.ts +2 -2
  4. package/angular/components/display-settings-numeric.component.ts +2 -2
  5. package/angular/components/display-settings.component.ts +3 -3
  6. package/angular/components/draggable-data-item/index.ts +1 -0
  7. package/angular/components/draggable-data-item/types.ts +42 -0
  8. package/angular/components/draggable-data-item-level/index.ts +1 -0
  9. package/angular/components/draggable-data-item-level/types.ts +15 -0
  10. package/angular/components/draggable-data-item-level.component.ts +4 -10
  11. package/angular/components/draggable-data-item.component.ts +4 -10
  12. package/angular/components/droppable-slot/index.ts +1 -0
  13. package/angular/components/droppable-slot/types.ts +16 -0
  14. package/angular/components/droppable-slot.component.ts +5 -3
  15. package/angular/components/slot-menu/index.ts +1 -0
  16. package/angular/components/slot-menu/types.ts +31 -0
  17. package/angular/components/slot-menu-list.component.ts +2 -2
  18. package/angular/components/slot-menu.component.ts +3 -3
  19. package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
  20. package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
  21. package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
  22. package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
  23. package/angular/esm/components/display-settings.component.d.ts +3 -3
  24. package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
  25. package/angular/esm/components/draggable-data-item/index.js +1 -0
  26. package/angular/esm/components/draggable-data-item/types.d.ts +21 -0
  27. package/angular/esm/components/draggable-data-item/types.js +1 -0
  28. package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
  29. package/angular/esm/components/draggable-data-item-level/index.js +1 -0
  30. package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
  31. package/angular/esm/components/draggable-data-item-level/types.js +1 -0
  32. package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
  33. package/angular/esm/components/draggable-data-item-level.component.js +2 -17
  34. package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
  35. package/angular/esm/components/draggable-data-item.component.js +2 -17
  36. package/angular/esm/components/droppable-slot/index.d.ts +1 -0
  37. package/angular/esm/components/droppable-slot/index.js +1 -0
  38. package/angular/esm/components/droppable-slot/types.d.ts +9 -0
  39. package/angular/esm/components/droppable-slot/types.js +1 -0
  40. package/angular/esm/components/droppable-slot.component.d.ts +5 -4
  41. package/angular/esm/components/droppable-slot.component.js +7 -2
  42. package/angular/esm/components/slot-menu/index.d.ts +1 -0
  43. package/angular/esm/components/slot-menu/index.js +1 -0
  44. package/angular/esm/components/slot-menu/types.d.ts +25 -0
  45. package/angular/esm/components/slot-menu/types.js +1 -0
  46. package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
  47. package/angular/esm/components/slot-menu.component.d.ts +3 -3
  48. package/angular/esm/types.d.ts +9 -3
  49. package/angular/tsconfig.json +3 -0
  50. package/angular/types.ts +24 -3
  51. package/angular/utils/base/base.d.ts +16 -0
  52. package/angular/utils/base/focus-visible.d.ts +29 -0
  53. package/angular/utils/base/focusable.d.ts +58 -0
  54. package/angular/utils/base/index.d.ts +4 -0
  55. package/angular/utils/base/sized-mixin.d.ts +17 -0
  56. package/angular/utils/color/color-palettes.d.ts +17 -0
  57. package/angular/utils/color/extrapolate-color.d.ts +1 -0
  58. package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  59. package/angular/utils/data-broker/index.d.ts +191 -0
  60. package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
  61. package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  62. package/angular/utils/drag/draggable.d.ts +13 -0
  63. package/angular/utils/filters/expressions.d.ts +15 -0
  64. package/angular/utils/filters/index.d.ts +1 -0
  65. package/angular/utils/formatter/calculate-duration.d.ts +2 -0
  66. package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
  67. package/angular/utils/formatter/default-local-formats.d.ts +20 -0
  68. package/angular/utils/formatter/formats/cs.d.ts +20 -0
  69. package/angular/utils/formatter/formats/da.d.ts +20 -0
  70. package/angular/utils/formatter/formats/de.d.ts +21 -0
  71. package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
  72. package/angular/utils/formatter/formats/en-US.d.ts +1 -0
  73. package/angular/utils/formatter/formats/en.d.ts +1 -0
  74. package/angular/utils/formatter/formats/es.d.ts +54 -0
  75. package/angular/utils/formatter/formats/fi.d.ts +20 -0
  76. package/angular/utils/formatter/formats/fr.d.ts +54 -0
  77. package/angular/utils/formatter/formats/he.d.ts +20 -0
  78. package/angular/utils/formatter/formats/hu.d.ts +20 -0
  79. package/angular/utils/formatter/formats/it.d.ts +54 -0
  80. package/angular/utils/formatter/formats/ja.d.ts +20 -0
  81. package/angular/utils/formatter/formats/ko.d.ts +20 -0
  82. package/angular/utils/formatter/formats/mk.d.ts +20 -0
  83. package/angular/utils/formatter/formats/nl.d.ts +21 -0
  84. package/angular/utils/formatter/formats/no.d.ts +21 -0
  85. package/angular/utils/formatter/formats/pl.d.ts +20 -0
  86. package/angular/utils/formatter/formats/pt.d.ts +20 -0
  87. package/angular/utils/formatter/formats/ru.d.ts +20 -0
  88. package/angular/utils/formatter/formats/sv.d.ts +20 -0
  89. package/angular/utils/formatter/formats/tr.d.ts +21 -0
  90. package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
  91. package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
  92. package/angular/utils/formatter/formatter.d.ts +9 -0
  93. package/angular/utils/formatter/localize.d.ts +3 -0
  94. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  95. package/angular/utils/get-css-variable.d.ts +1 -0
  96. package/angular/utils/index.d.ts +7 -0
  97. package/angular/utils/localize/set-locale.d.ts +7 -0
  98. package/angular/utils/map-tile-providers/index.d.ts +93 -0
  99. package/angular/utils/store/slot-context.d.ts +4 -0
  100. package/angular/utils/store/slot-store.d.ts +39 -0
  101. package/angular/utils/switch-item/index.d.ts +14 -0
  102. package/angular/utils/themes/bliss.d.ts +43 -0
  103. package/angular/utils/themes/classic-dark.d.ts +34 -0
  104. package/angular/utils/themes/classic.d.ts +43 -0
  105. package/angular/utils/themes/default-dark.d.ts +46 -0
  106. package/angular/utils/themes/default.d.ts +46 -0
  107. package/angular/utils/themes/index.d.ts +3 -0
  108. package/angular/utils/themes/orion.d.ts +44 -0
  109. package/angular/utils/themes/pinky.d.ts +42 -0
  110. package/angular/utils/themes/radiant.d.ts +42 -0
  111. package/angular/utils/themes/royale.d.ts +36 -0
  112. package/angular/utils/themes/seasonal.d.ts +43 -0
  113. package/angular/utils/themes/urban.d.ts +44 -0
  114. package/angular/utils/themes/vivid.d.ts +42 -0
  115. package/angular/utils/time/formats.const.d.ts +4 -0
  116. package/angular/utils/time/periods.const.d.ts +15 -0
  117. package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  118. package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  119. package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  120. package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  121. package/angular/utils/types/type-check.d.ts +7 -0
  122. package/components/ai-chat-message-assistant/index.cjs +1 -1
  123. package/components/ai-chat-message-assistant/index.js +0 -1
  124. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  125. package/components/{calculate-data-item-icon-CX4VW9Km.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
  126. package/components/dataset-selector-list/index.cjs +1 -1
  127. package/components/dataset-selector-list/index.js +1 -1
  128. package/components/display-settings/display-settings.d.ts +4 -2
  129. package/components/display-settings/index.cjs +1 -1
  130. package/components/display-settings/index.js +1 -1
  131. package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
  132. package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
  133. package/components/display-settings-datetime/index.cjs +1 -1
  134. package/components/display-settings-datetime/index.js +4 -4
  135. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
  136. package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
  137. package/components/display-settings-numeric/index.cjs +10 -10
  138. package/components/display-settings-numeric/index.js +5 -5
  139. package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
  140. package/components/draggable-data-item/index.cjs +14 -22
  141. package/components/draggable-data-item/index.d.ts +1 -0
  142. package/components/draggable-data-item/index.js +80 -88
  143. package/components/draggable-data-item/types.d.ts +21 -0
  144. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
  145. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
  146. package/components/draggable-data-item-level/index.cjs +13 -13
  147. package/components/draggable-data-item-level/index.js +84 -102
  148. package/components/draggable-data-item-level/types.d.ts +12 -0
  149. package/components/droppable-slot/droppable-slot.d.ts +4 -2
  150. package/components/droppable-slot/index.cjs +13 -13
  151. package/components/droppable-slot/index.d.ts +1 -0
  152. package/components/droppable-slot/index.js +198 -199
  153. package/components/droppable-slot/types.d.ts +9 -0
  154. package/components/{en-CtCctD2c.js → en-D3ihEGXg.js} +67 -67
  155. package/components/{en--a5SfjnM.cjs → en-DZcn_iz_.cjs} +1 -1
  156. package/components/{en-GB-CXVKFWyH.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  157. package/components/{en-GB-CbNfyZMo.js → en-GB-ialeqj_z.js} +1 -1
  158. package/components/filter-data-item-picker/index.cjs +1 -1
  159. package/components/filter-data-item-picker/index.js +1 -1
  160. package/components/filter-item/index.cjs +1 -1
  161. package/components/filter-item/index.js +8 -8
  162. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  163. package/components/filter-value-picker-hierarchy/index.js +1 -1
  164. package/components/filter-value-picker-numeric/index.cjs +1 -1
  165. package/components/filter-value-picker-numeric/index.js +1 -1
  166. package/components/{get-css-variable-CuDaWSjr.cjs → get-css-variable-COd1d84B.cjs} +3 -3
  167. package/components/{get-css-variable-DEf4GhTH.js → get-css-variable-CdwF98oh.js} +31 -31
  168. package/components/grid/index.cjs +1 -7
  169. package/components/grid/index.js +0 -7
  170. package/components/{index-BUal0r_D.cjs → index-BekTY3Em.cjs} +1 -1
  171. package/components/index-CFL6gmIu.cjs +20 -0
  172. package/components/{index-3WsfvkZF.js → index-CqKpf0B8.js} +1 -1
  173. package/components/{index-BGb_wRRW.js → index-DNPULp4A.js} +177 -188
  174. package/components/index.cjs +1 -1
  175. package/components/index.js +26 -24
  176. package/components/slot-contents-picker/index.cjs +1 -1
  177. package/components/slot-contents-picker/index.js +2 -2
  178. package/components/slot-menu/index.cjs +1 -1
  179. package/components/slot-menu/index.d.ts +1 -0
  180. package/components/slot-menu/index.js +64 -69
  181. package/components/slot-menu/slot-menu.d.ts +7 -6
  182. package/components/slot-menu/types.d.ts +25 -0
  183. package/components/slot-menu-list/index.cjs +1 -1
  184. package/components/slot-menu-list/index.js +2 -2
  185. package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
  186. package/components/utils.cjs +1 -1
  187. package/components/utils.js +129 -62
  188. package/custom-elements.json +123 -126
  189. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
  190. package/package.json +1 -1
  191. package/types.d.ts +9 -3
  192. package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  193. package/utils/data-broker/index.d.ts +69 -66
  194. package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
  195. package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  196. package/utils/index.d.ts +2 -0
  197. package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  198. package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  199. package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  200. package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  201. package/components/calculate-data-item-icon-C8CbsMQf.js +0 -139
  202. package/components/index-D1Y5TRsH.cjs +0 -20
  203. 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,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,2 @@
1
+ export declare function calculateDuration(value: number, inputLevel: number, outputLevel: number): number | undefined;
2
+ export declare function buildDurationString(value: number, content: any, selectedLevels: any, localFormats: any): string;
@@ -0,0 +1,11 @@
1
+ export declare function decomposeNumericFormat(format: string): {
2
+ fill: string;
3
+ align: string;
4
+ sign: string;
5
+ symbol: string;
6
+ zfill: string;
7
+ width: unknown;
8
+ comma: string;
9
+ precision: string;
10
+ typeFormat: string;
11
+ };
@@ -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;