@luzmo/analytics-components-kit 1.0.8-beta.6 → 1.0.8-beta.7
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/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +1 -1
- package/components/viz-item-menu/viz-item-menu.d.ts +3 -0
- package/components/{viz-item-menu-Ht6bklNL.js → viz-item-menu-B7yRaSAU.js} +1 -1
- package/components/{viz-item-menu-XHh4qhtn.cjs → viz-item-menu-hLdU-02Q.cjs} +1 -1
- package/custom-elements.json +14 -0
- package/package.json +1 -1
- package/react/package.json +2 -2
- package/angular/README.md +0 -40
- package/angular/components/ai-chat-empty-state.ts +0 -98
- package/angular/components/ai-chat.ts +0 -440
- package/angular/components/ai-interaction-textarea.ts +0 -283
- package/angular/components/data-field-level.ts +0 -130
- package/angular/components/data-field-panel.ts +0 -256
- package/angular/components/data-field.ts +0 -130
- package/angular/components/data-fields-select.ts +0 -212
- package/angular/components/dataset-icon.ts +0 -83
- package/angular/components/dataset-selector-list.ts +0 -147
- package/angular/components/dataset-selector-row.ts +0 -198
- package/angular/components/display-settings-binning.ts +0 -92
- package/angular/components/display-settings-datetime.ts +0 -100
- package/angular/components/display-settings-grand-totals.ts +0 -92
- package/angular/components/display-settings-numeric.ts +0 -113
- package/angular/components/display-settings-period-over-period.ts +0 -107
- package/angular/components/display-settings.ts +0 -227
- package/angular/components/filter-expression-picker.ts +0 -168
- package/angular/components/filter-item.ts +0 -175
- package/angular/components/filter-parameter-picker.ts +0 -155
- package/angular/components/filter-value-picker-datetime.ts +0 -125
- package/angular/components/filter-value-picker-hierarchy.ts +0 -146
- package/angular/components/filter-value-picker-numeric.ts +0 -146
- package/angular/components/filter-value-picker.ts +0 -160
- package/angular/components/filters.ts +0 -209
- package/angular/components/formula-editor.ts +0 -229
- package/angular/components/formula-field.ts +0 -198
- package/angular/components/formula.ts +0 -170
- package/angular/components/interactive-viz-item.ts +0 -186
- package/angular/components/item-grid-item-actions-menu.ts +0 -113
- package/angular/components/item-grid.ts +0 -242
- package/angular/components/item-option-action-button-group.ts +0 -105
- package/angular/components/item-option-color-palette-picker.ts +0 -126
- package/angular/components/item-option-color-picker.ts +0 -134
- package/angular/components/item-option-color-range.ts +0 -168
- package/angular/components/item-option-guidelines.ts +0 -84
- package/angular/components/item-option-multi-language-field.ts +0 -133
- package/angular/components/item-option-number-field.ts +0 -161
- package/angular/components/item-option-panel.ts +0 -149
- package/angular/components/item-option-picker.ts +0 -120
- package/angular/components/item-option-position-picker.ts +0 -98
- package/angular/components/item-option-positions-number-field.ts +0 -140
- package/angular/components/item-option-radio-button-group.ts +0 -119
- package/angular/components/item-option-slider.ts +0 -126
- package/angular/components/item-option-switch.ts +0 -98
- package/angular/components/item-option-text-field.ts +0 -112
- package/angular/components/item-option.ts +0 -163
- package/angular/components/item-slot-drop-panel.ts +0 -236
- package/angular/components/item-slot-drop.ts +0 -231
- package/angular/components/item-slot-picker-panel.ts +0 -299
- package/angular/components/item-slot-picker.ts +0 -241
- package/angular/components/slot-menu-list.ts +0 -121
- package/angular/components/slot-menu.ts +0 -304
- package/angular/components/viz-item-menu.ts +0 -118
- package/angular/esm/components/ai-chat-empty-state.d.ts +0 -39
- package/angular/esm/components/ai-chat-empty-state.js +0 -99
- package/angular/esm/components/ai-chat.d.ts +0 -147
- package/angular/esm/components/ai-chat.js +0 -455
- package/angular/esm/components/ai-interaction-textarea.d.ts +0 -106
- package/angular/esm/components/ai-interaction-textarea.js +0 -305
- package/angular/esm/components/data-field-level.d.ts +0 -50
- package/angular/esm/components/data-field-level.js +0 -129
- package/angular/esm/components/data-field-panel.d.ts +0 -86
- package/angular/esm/components/data-field-panel.js +0 -268
- package/angular/esm/components/data-field.d.ts +0 -50
- package/angular/esm/components/data-field.js +0 -129
- package/angular/esm/components/data-fields-select.d.ts +0 -81
- package/angular/esm/components/data-fields-select.js +0 -227
- package/angular/esm/components/dataset-icon.d.ts +0 -34
- package/angular/esm/components/dataset-icon.js +0 -86
- package/angular/esm/components/dataset-selector-list.d.ts +0 -56
- package/angular/esm/components/dataset-selector-list.js +0 -155
- package/angular/esm/components/dataset-selector-row.d.ts +0 -70
- package/angular/esm/components/dataset-selector-row.js +0 -197
- package/angular/esm/components/display-settings-binning.d.ts +0 -37
- package/angular/esm/components/display-settings-binning.js +0 -91
- package/angular/esm/components/display-settings-datetime.d.ts +0 -40
- package/angular/esm/components/display-settings-datetime.js +0 -99
- package/angular/esm/components/display-settings-grand-totals.d.ts +0 -37
- package/angular/esm/components/display-settings-grand-totals.js +0 -91
- package/angular/esm/components/display-settings-numeric.d.ts +0 -45
- package/angular/esm/components/display-settings-numeric.js +0 -115
- package/angular/esm/components/display-settings-period-over-period.d.ts +0 -44
- package/angular/esm/components/display-settings-period-over-period.js +0 -107
- package/angular/esm/components/display-settings.d.ts +0 -83
- package/angular/esm/components/display-settings.js +0 -231
- package/angular/esm/components/filter-expression-picker.d.ts +0 -64
- package/angular/esm/components/filter-expression-picker.js +0 -179
- package/angular/esm/components/filter-item.d.ts +0 -63
- package/angular/esm/components/filter-item.js +0 -187
- package/angular/esm/components/filter-parameter-picker.d.ts +0 -56
- package/angular/esm/components/filter-parameter-picker.js +0 -151
- package/angular/esm/components/filter-value-picker-datetime.d.ts +0 -47
- package/angular/esm/components/filter-value-picker-datetime.js +0 -131
- package/angular/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
- package/angular/esm/components/filter-value-picker-hierarchy.js +0 -155
- package/angular/esm/components/filter-value-picker-numeric.d.ts +0 -53
- package/angular/esm/components/filter-value-picker-numeric.js +0 -155
- package/angular/esm/components/filter-value-picker.d.ts +0 -57
- package/angular/esm/components/filter-value-picker.js +0 -171
- package/angular/esm/components/filters.d.ts +0 -75
- package/angular/esm/components/filters.js +0 -215
- package/angular/esm/components/formula-editor.d.ts +0 -78
- package/angular/esm/components/formula-editor.js +0 -236
- package/angular/esm/components/formula-field.d.ts +0 -70
- package/angular/esm/components/formula-field.js +0 -209
- package/angular/esm/components/formula.d.ts +0 -60
- package/angular/esm/components/formula.js +0 -177
- package/angular/esm/components/interactive-viz-item.d.ts +0 -63
- package/angular/esm/components/interactive-viz-item.js +0 -188
- package/angular/esm/components/item-grid-item-actions-menu.d.ts +0 -45
- package/angular/esm/components/item-grid-item-actions-menu.js +0 -115
- package/angular/esm/components/item-grid.d.ts +0 -80
- package/angular/esm/components/item-grid.js +0 -245
- package/angular/esm/components/item-option-action-button-group.d.ts +0 -41
- package/angular/esm/components/item-option-action-button-group.js +0 -107
- package/angular/esm/components/item-option-color-palette-picker.d.ts +0 -48
- package/angular/esm/components/item-option-color-palette-picker.js +0 -131
- package/angular/esm/components/item-option-color-picker.d.ts +0 -51
- package/angular/esm/components/item-option-color-picker.js +0 -139
- package/angular/esm/components/item-option-color-range.d.ts +0 -66
- package/angular/esm/components/item-option-color-range.js +0 -179
- package/angular/esm/components/item-option-guidelines.d.ts +0 -34
- package/angular/esm/components/item-option-guidelines.js +0 -83
- package/angular/esm/components/item-option-multi-language-field.d.ts +0 -50
- package/angular/esm/components/item-option-multi-language-field.js +0 -139
- package/angular/esm/components/item-option-number-field.d.ts +0 -58
- package/angular/esm/components/item-option-number-field.js +0 -171
- package/angular/esm/components/item-option-panel.d.ts +0 -54
- package/angular/esm/components/item-option-panel.js +0 -155
- package/angular/esm/components/item-option-picker.d.ts +0 -46
- package/angular/esm/components/item-option-picker.js +0 -123
- package/angular/esm/components/item-option-position-picker.d.ts +0 -39
- package/angular/esm/components/item-option-position-picker.js +0 -99
- package/angular/esm/components/item-option-positions-number-field.d.ts +0 -54
- package/angular/esm/components/item-option-positions-number-field.js +0 -147
- package/angular/esm/components/item-option-radio-button-group.d.ts +0 -45
- package/angular/esm/components/item-option-radio-button-group.js +0 -123
- package/angular/esm/components/item-option-slider.d.ts +0 -46
- package/angular/esm/components/item-option-slider.js +0 -131
- package/angular/esm/components/item-option-switch.d.ts +0 -40
- package/angular/esm/components/item-option-switch.js +0 -99
- package/angular/esm/components/item-option-text-field.d.ts +0 -44
- package/angular/esm/components/item-option-text-field.js +0 -115
- package/angular/esm/components/item-option.d.ts +0 -58
- package/angular/esm/components/item-option.js +0 -171
- package/angular/esm/components/item-slot-drop-panel.d.ts +0 -82
- package/angular/esm/components/item-slot-drop-panel.js +0 -249
- package/angular/esm/components/item-slot-drop.d.ts +0 -77
- package/angular/esm/components/item-slot-drop.js +0 -227
- package/angular/esm/components/item-slot-picker-panel.d.ts +0 -97
- package/angular/esm/components/item-slot-picker-panel.js +0 -309
- package/angular/esm/components/item-slot-picker.d.ts +0 -86
- package/angular/esm/components/item-slot-picker.js +0 -259
- package/angular/esm/components/slot-menu-list.d.ts +0 -46
- package/angular/esm/components/slot-menu-list.js +0 -123
- package/angular/esm/components/slot-menu.d.ts +0 -104
- package/angular/esm/components/slot-menu.js +0 -300
- package/angular/esm/components/viz-item-menu.d.ts +0 -42
- package/angular/esm/components/viz-item-menu.js +0 -111
- package/angular/esm/index.d.ts +0 -109
- package/angular/esm/index.js +0 -217
- package/angular/index.ts +0 -223
- package/angular/package.json +0 -40
- package/angular/tsconfig.json +0 -36
- package/angular/type-fallbacks.d.ts +0 -0
- package/angular/utils/ai-prompt/attachments.d.ts +0 -10
- package/angular/utils/ai-prompt/dictation.d.ts +0 -50
- package/angular/utils/ai-prompt/image-upload.d.ts +0 -12
- package/angular/utils/ai-prompt/index.d.ts +0 -6
- package/angular/utils/ai-prompt/tests/attachments.test.d.ts +0 -1
- package/angular/utils/ai-prompt/tests/dictation.test.d.ts +0 -1
- package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +0 -1
- package/angular/utils/base/base.d.ts +0 -16
- package/angular/utils/base/focus-visible.d.ts +0 -29
- package/angular/utils/base/focusable.d.ts +0 -58
- package/angular/utils/base/index.d.ts +0 -5
- package/angular/utils/base/localized-mixin.d.ts +0 -22
- package/angular/utils/base/sized-mixin.d.ts +0 -17
- package/angular/utils/color/color-palettes.d.ts +0 -17
- package/angular/utils/color/extrapolate-color.d.ts +0 -1
- package/angular/utils/data/load-data-fields-for-datasets.d.ts +0 -22
- package/angular/utils/data-broker/index.d.ts +0 -263
- package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +0 -12
- package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +0 -1
- package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +0 -1
- package/angular/utils/drag/draggable.d.ts +0 -13
- package/angular/utils/drag/pragmatic-element-adapter.d.ts +0 -2
- package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +0 -1
- package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +0 -1
- package/angular/utils/filters/expressions.d.ts +0 -15
- package/angular/utils/filters/index.d.ts +0 -1
- package/angular/utils/formatter/calculate-duration.d.ts +0 -2
- package/angular/utils/formatter/decompose-numeric-format.d.ts +0 -11
- package/angular/utils/formatter/default-local-formats.d.ts +0 -20
- package/angular/utils/formatter/formats/cs.d.ts +0 -20
- package/angular/utils/formatter/formats/da.d.ts +0 -20
- package/angular/utils/formatter/formats/de.d.ts +0 -21
- package/angular/utils/formatter/formats/en-GB.d.ts +0 -21
- package/angular/utils/formatter/formats/en-US.d.ts +0 -1
- package/angular/utils/formatter/formats/en.d.ts +0 -1
- package/angular/utils/formatter/formats/es.d.ts +0 -54
- package/angular/utils/formatter/formats/fi.d.ts +0 -20
- package/angular/utils/formatter/formats/fr.d.ts +0 -54
- package/angular/utils/formatter/formats/he.d.ts +0 -20
- package/angular/utils/formatter/formats/hu.d.ts +0 -20
- package/angular/utils/formatter/formats/it.d.ts +0 -54
- package/angular/utils/formatter/formats/ja.d.ts +0 -20
- package/angular/utils/formatter/formats/ko.d.ts +0 -20
- package/angular/utils/formatter/formats/mk.d.ts +0 -20
- package/angular/utils/formatter/formats/nl.d.ts +0 -21
- package/angular/utils/formatter/formats/no.d.ts +0 -21
- package/angular/utils/formatter/formats/pl.d.ts +0 -20
- package/angular/utils/formatter/formats/pt.d.ts +0 -20
- package/angular/utils/formatter/formats/ru.d.ts +0 -20
- package/angular/utils/formatter/formats/sv.d.ts +0 -20
- package/angular/utils/formatter/formats/tr.d.ts +0 -21
- package/angular/utils/formatter/formats/zh-CN.d.ts +0 -20
- package/angular/utils/formatter/formats/zh-TW.d.ts +0 -20
- package/angular/utils/formatter/formatter.d.ts +0 -9
- package/angular/utils/formatter/get-dataset-name.d.ts +0 -2
- package/angular/utils/formatter/get-localized-name.d.ts +0 -4
- package/angular/utils/formatter/localize.d.ts +0 -3
- package/angular/utils/formatter/smart-datetime-formats.const.d.ts +0 -36
- package/angular/utils/formatter/tests/calculate-duration.test.d.ts +0 -1
- package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +0 -1
- package/angular/utils/formatter/tests/default-local-formats.test.d.ts +0 -1
- package/angular/utils/formatter/tests/formatter.test.d.ts +0 -1
- package/angular/utils/formatter/tests/get-localized-name.test.d.ts +0 -1
- package/angular/utils/formatter/tests/localize.test.d.ts +0 -1
- package/angular/utils/formula/base/formula-base.d.ts +0 -117
- package/angular/utils/formula/base/formula-input-base.d.ts +0 -62
- package/angular/utils/formula/codemirror/actions.d.ts +0 -47
- package/angular/utils/formula/codemirror/drop-cursor.d.ts +0 -15
- package/angular/utils/formula/codemirror/icon-element.d.ts +0 -7
- package/angular/utils/formula/codemirror/parser.d.ts +0 -16
- package/angular/utils/formula/codemirror/tests/actions.test.d.ts +0 -1
- package/angular/utils/formula/codemirror/theme.d.ts +0 -20
- package/angular/utils/formula/codemirror/widget.d.ts +0 -18
- package/angular/utils/formula/config/aggregations.d.ts +0 -9
- package/angular/utils/formula/config/build-datasets.d.ts +0 -10
- package/angular/utils/formula/config/expression-helpers.d.ts +0 -42
- package/angular/utils/formula/config/functions.d.ts +0 -3
- package/angular/utils/formula/config/groupings.d.ts +0 -9
- package/angular/utils/formula/config/regex.d.ts +0 -39
- package/angular/utils/formula/config/resolve-column-presentation.d.ts +0 -19
- package/angular/utils/formula/config/tests/build-datasets.test.d.ts +0 -1
- package/angular/utils/formula/config/validate-expression.d.ts +0 -19
- package/angular/utils/formula/load-formula-codemirror.d.ts +0 -4
- package/angular/utils/formula/render-explanation-tooltip.d.ts +0 -7
- package/angular/utils/formula/store/formula-display-store.d.ts +0 -93
- package/angular/utils/formula/store/formula-editor-context.d.ts +0 -8
- package/angular/utils/formula/store/formula-editor-store.d.ts +0 -46
- package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +0 -1
- package/angular/utils/formula/tests/validate-expression.test.d.ts +0 -1
- package/angular/utils/get-css-variable.d.ts +0 -1
- package/angular/utils/index.d.ts +0 -10
- package/angular/utils/localize/set-locale.d.ts +0 -7
- package/angular/utils/map-tile-providers/index.d.ts +0 -93
- package/angular/utils/set-nested-value.d.ts +0 -6
- package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +0 -7
- package/angular/utils/slot-content/render-calculation-label.d.ts +0 -7
- package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +0 -1
- package/angular/utils/slot-state/slot-context.d.ts +0 -4
- package/angular/utils/slot-state/slot-store.d.ts +0 -39
- package/angular/utils/store/base-store.d.ts +0 -158
- package/angular/utils/store/dashboard-store.d.ts +0 -49
- package/angular/utils/store/index.d.ts +0 -135
- package/angular/utils/store/item-store.d.ts +0 -33
- package/angular/utils/store/store-registry.d.ts +0 -170
- package/angular/utils/store/tests/dashboard-store.test.d.ts +0 -1
- package/angular/utils/store/tests/item-store.test.d.ts +0 -1
- package/angular/utils/store/tests/store-registry.test.d.ts +0 -1
- package/angular/utils/store/types.d.ts +0 -270
- package/angular/utils/switch-item/index.d.ts +0 -34
- package/angular/utils/switch-item/slot-role-classification.d.ts +0 -31
- package/angular/utils/switch-item/stories/switch-item.stories.d.ts +0 -17
- package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +0 -1
- package/angular/utils/switch-item/tests/switch-item.test.d.ts +0 -1
- package/angular/utils/tests/set-nested-value.test.d.ts +0 -1
- package/angular/utils/themes/bliss.d.ts +0 -2
- package/angular/utils/themes/classic-dark.d.ts +0 -2
- package/angular/utils/themes/classic.d.ts +0 -2
- package/angular/utils/themes/default-dark.d.ts +0 -2
- package/angular/utils/themes/default.d.ts +0 -2
- package/angular/utils/themes/index.d.ts +0 -4
- package/angular/utils/themes/orion.d.ts +0 -2
- package/angular/utils/themes/pinky.d.ts +0 -2
- package/angular/utils/themes/radiant.d.ts +0 -2
- package/angular/utils/themes/royale.d.ts +0 -2
- package/angular/utils/themes/seasonal.d.ts +0 -2
- package/angular/utils/themes/urban.d.ts +0 -2
- package/angular/utils/themes/vivid.d.ts +0 -2
- package/angular/utils/time/formats.const.d.ts +0 -4
- package/angular/utils/time/period-over-period-condition.const.d.ts +0 -8
- package/angular/utils/time/periods.const.d.ts +0 -15
- package/angular/utils/timezone/datetime-timezone.d.ts +0 -25
- package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +0 -1
- package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +0 -9
- package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +0 -30
- package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +0 -1
- package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +0 -1
- package/angular/utils/types/tests/type-check.test.d.ts +0 -1
- package/angular/utils/types/type-check.d.ts +0 -28
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCssVariableValue: (element: HTMLElement, variable: string) => string;
|
package/angular/utils/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { loadDataFieldsForDatasets } from './data/load-data-fields-for-datasets';
|
|
2
|
-
export { decomposeNumericFormat } from './formatter/decompose-numeric-format';
|
|
3
|
-
export { formatter } from './formatter/formatter';
|
|
4
|
-
export { localize } from './formatter/localize';
|
|
5
|
-
export { getLocale, setLocale, targetLocales } from './localize/set-locale';
|
|
6
|
-
export { switchItem } from './switch-item';
|
|
7
|
-
export * from './themes';
|
|
8
|
-
export { convertDatasetsToDataFields } from './transformations/convert-datasets-to-data-fields';
|
|
9
|
-
export { PeriodOverPeriodCondition } from './time/period-over-period-condition.const';
|
|
10
|
-
export { DATE_LEVEL_AND_ABOVE, getValueForFormatter, transformDateToTimezone } from './timezone/datetime-timezone';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const getLocale: (() => string) & {
|
|
2
|
-
_LIT_LOCALIZE_GET_LOCALE_?: never;
|
|
3
|
-
}, setLocale: ((newLocale: string) => Promise<void>) & {
|
|
4
|
-
_LIT_LOCALIZE_SET_LOCALE_?: never;
|
|
5
|
-
};
|
|
6
|
-
export { targetLocales } from './../../generated/locale-codes.js';
|
|
7
|
-
export { getLocale, setLocale };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export declare const mapVectorTileProviders: {
|
|
2
|
-
'No Tiles': {
|
|
3
|
-
name: string;
|
|
4
|
-
id: string;
|
|
5
|
-
url: string;
|
|
6
|
-
attribution: string;
|
|
7
|
-
rasterName: string;
|
|
8
|
-
};
|
|
9
|
-
Basic: {
|
|
10
|
-
name: string;
|
|
11
|
-
id: string;
|
|
12
|
-
url: string;
|
|
13
|
-
attribution: string;
|
|
14
|
-
rasterName: string;
|
|
15
|
-
};
|
|
16
|
-
Bright: {
|
|
17
|
-
name: string;
|
|
18
|
-
id: string;
|
|
19
|
-
url: string;
|
|
20
|
-
attribution: string;
|
|
21
|
-
rasterName: string;
|
|
22
|
-
};
|
|
23
|
-
Dark: {
|
|
24
|
-
name: string;
|
|
25
|
-
id: string;
|
|
26
|
-
url: string;
|
|
27
|
-
attribution: string;
|
|
28
|
-
rasterName: string;
|
|
29
|
-
};
|
|
30
|
-
Fiord: {
|
|
31
|
-
name: string;
|
|
32
|
-
id: string;
|
|
33
|
-
url: string;
|
|
34
|
-
attribution: string;
|
|
35
|
-
rasterName: string;
|
|
36
|
-
};
|
|
37
|
-
Liberty: {
|
|
38
|
-
name: string;
|
|
39
|
-
id: string;
|
|
40
|
-
url: string;
|
|
41
|
-
attribution: string;
|
|
42
|
-
rasterName: string;
|
|
43
|
-
};
|
|
44
|
-
Pastel: {
|
|
45
|
-
name: string;
|
|
46
|
-
id: string;
|
|
47
|
-
url: string;
|
|
48
|
-
attribution: string;
|
|
49
|
-
rasterName: string;
|
|
50
|
-
};
|
|
51
|
-
Positron: {
|
|
52
|
-
name: string;
|
|
53
|
-
id: string;
|
|
54
|
-
url: string;
|
|
55
|
-
attribution: string;
|
|
56
|
-
rasterName: string;
|
|
57
|
-
};
|
|
58
|
-
Streets: {
|
|
59
|
-
name: string;
|
|
60
|
-
id: string;
|
|
61
|
-
url: string;
|
|
62
|
-
attribution: string;
|
|
63
|
-
rasterName: string;
|
|
64
|
-
};
|
|
65
|
-
Toner: {
|
|
66
|
-
name: string;
|
|
67
|
-
id: string;
|
|
68
|
-
url: string;
|
|
69
|
-
attribution: string;
|
|
70
|
-
rasterName: string;
|
|
71
|
-
};
|
|
72
|
-
Topographique: {
|
|
73
|
-
name: string;
|
|
74
|
-
id: string;
|
|
75
|
-
url: string;
|
|
76
|
-
attribution: string;
|
|
77
|
-
rasterName: string;
|
|
78
|
-
};
|
|
79
|
-
Voyager: {
|
|
80
|
-
name: string;
|
|
81
|
-
id: string;
|
|
82
|
-
url: string;
|
|
83
|
-
attribution: string;
|
|
84
|
-
rasterName: string;
|
|
85
|
-
};
|
|
86
|
-
'3D buildings': {
|
|
87
|
-
name: string;
|
|
88
|
-
id: string;
|
|
89
|
-
url: string;
|
|
90
|
-
attribution: string;
|
|
91
|
-
rasterName: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Immutably set a value at a dot-delimited object path.
|
|
3
|
-
* Numeric path segments preserve or create arrays; missing, primitive, and null
|
|
4
|
-
* intermediate values are replaced with the container needed by the next segment.
|
|
5
|
-
*/
|
|
6
|
-
export declare const setNestedValue: (object: Record<string, unknown>, path: string, value: unknown) => Record<string, unknown>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SlotConfig } from '@luzmo/dashboard-contents-types';
|
|
2
|
-
import type { SlotContent } from '../../types/slot.types';
|
|
3
|
-
export declare const isAdHocFormula: (content: SlotContent | undefined) => boolean;
|
|
4
|
-
export declare const isAdHocExpression: (content: SlotContent | undefined) => boolean;
|
|
5
|
-
export declare const getAdHocExpression: (content: SlotContent | undefined) => string | undefined;
|
|
6
|
-
export declare const getSlotContentIdentityKey: (content: SlotContent | undefined) => string | undefined;
|
|
7
|
-
export declare const shouldSurfaceAsFormula: (content: SlotContent | undefined, slotConfiguration: SlotConfig) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TemplateResult } from 'lit';
|
|
2
|
-
import type { SlotContent } from '../../types/slot.types';
|
|
3
|
-
/**
|
|
4
|
-
* Renders the compact ad-hoc calculation label (icon + "Formula"/"Expression")
|
|
5
|
-
* shared by the slot picker, drop target and slot menu surfaces.
|
|
6
|
-
*/
|
|
7
|
-
export declare const renderAdHocCalculationLabel: (content: SlotContent | undefined) => TemplateResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SlotName, VizItemSlot, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
2
|
-
import type { SlotContent } from '../../types/slot.types';
|
|
3
|
-
import { PeriodOverPeriodCondition } from '../time/period-over-period-condition.const';
|
|
4
|
-
export declare class SlotStore {
|
|
5
|
-
/**
|
|
6
|
-
* Holds all contents for this item slot drop target.
|
|
7
|
-
*/
|
|
8
|
-
readonly slotContents: import("signal-polyfill").Signal.State<SlotContent[]>;
|
|
9
|
-
readonly slotsContents: import("signal-polyfill").Signal.State<VizItemSlot[]>;
|
|
10
|
-
readonly periodOverPeriodUiType: import("signal-polyfill").Signal.State<PeriodOverPeriodCondition | null>;
|
|
11
|
-
readonly linkedDataset: import("signal-polyfill").Signal.State<{
|
|
12
|
-
name: any;
|
|
13
|
-
id: string;
|
|
14
|
-
columns: any[];
|
|
15
|
-
}[]>;
|
|
16
|
-
private readonly _popEnabledChartTypes;
|
|
17
|
-
readonly activeSlotContents: import("signal-polyfill").Signal.Computed<SlotContent>;
|
|
18
|
-
/**
|
|
19
|
-
* Index of the content currently selected / active in a slot menu.
|
|
20
|
-
*/
|
|
21
|
-
readonly activeIndex: import("signal-polyfill").Signal.State<number>;
|
|
22
|
-
private isArrayColumnType;
|
|
23
|
-
setPeriodOverPeriodCondition(itemType: VizItemType, currentSlotContents: SlotContent): void;
|
|
24
|
-
private getUiConditionToApply;
|
|
25
|
-
private oldConditionalLogic;
|
|
26
|
-
/**
|
|
27
|
-
* Detects if there's a datetime column on Category or X-axis slots
|
|
28
|
-
*/
|
|
29
|
-
private hasDatetimeColumnOnCategoryOrXAxis;
|
|
30
|
-
/** Replace the full list (e.g. after dropping or re-ordering). */
|
|
31
|
-
setContents(contents: SlotContent[], slotName?: SlotName): void;
|
|
32
|
-
setFullContents(fullSlotsContents: VizItemSlot[]): void;
|
|
33
|
-
/** Change which item is considered active (e.g. user clicked in list). */
|
|
34
|
-
updateActive(index: number): void;
|
|
35
|
-
/** Update / overwrite a single content entry. */
|
|
36
|
-
updateContent(content: SlotContent, index?: number): void;
|
|
37
|
-
/** Remove one content entry by index. */
|
|
38
|
-
removeContent(index: number): void;
|
|
39
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base Store
|
|
3
|
-
*
|
|
4
|
-
* Abstract base class providing shared functionality for
|
|
5
|
-
* item and dashboard stores, including undo/redo, subscriptions, and sync helpers.
|
|
6
|
-
*/
|
|
7
|
-
import * as Y from 'yjs';
|
|
8
|
-
import type { BaseStoreConfig, ChangeSubscriber, LocalUpdatesSubscriber, StateSubscriber, SubscribeOptions, Unsubscribe } from './types';
|
|
9
|
-
/**
|
|
10
|
-
* Abstract base class for stores
|
|
11
|
-
*
|
|
12
|
-
* Provides shared functionality for undo/redo, subscriptions, and sync.
|
|
13
|
-
* Subclasses must implement state-specific initialization and accessors.
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class BaseStore<TState> {
|
|
16
|
-
/** Unique identifier for this store instance */
|
|
17
|
-
readonly id: string;
|
|
18
|
-
protected doc: Y.Doc;
|
|
19
|
-
protected undoManager: Y.UndoManager;
|
|
20
|
-
protected config: Required<Omit<BaseStoreConfig, 'peerId'>> & {
|
|
21
|
-
peerId?: bigint | `${number}`;
|
|
22
|
-
};
|
|
23
|
-
private stateSubscribers;
|
|
24
|
-
private changeSubscribers;
|
|
25
|
-
private localUpdatesSubscribers;
|
|
26
|
-
private isDestroyed;
|
|
27
|
-
/** Origin used for local changes (for undo tracking) */
|
|
28
|
-
protected static readonly LOCAL_ORIGIN = "local";
|
|
29
|
-
constructor(config?: BaseStoreConfig, storeId?: string);
|
|
30
|
-
/**
|
|
31
|
-
* Set up the undo manager with tracked types
|
|
32
|
-
* Called by subclasses after containers are initialized
|
|
33
|
-
*/
|
|
34
|
-
protected setupUndoManager(trackedTypes: Array<Y.Map<unknown> | Y.Array<unknown> | Y.Text>): void;
|
|
35
|
-
/**
|
|
36
|
-
* Set up internal change subscription to relay to external subscribers
|
|
37
|
-
*/
|
|
38
|
-
private setupChangeSubscription;
|
|
39
|
-
/**
|
|
40
|
-
* Notify all state subscribers with current state
|
|
41
|
-
*/
|
|
42
|
-
protected notifyStateSubscribers(): void;
|
|
43
|
-
/**
|
|
44
|
-
* Initialize the document containers with initial state
|
|
45
|
-
*/
|
|
46
|
-
protected abstract initializeContainers(initialState?: Partial<TState>): void;
|
|
47
|
-
/**
|
|
48
|
-
* Get the current state from containers
|
|
49
|
-
*/
|
|
50
|
-
abstract getState(): TState;
|
|
51
|
-
/**
|
|
52
|
-
* Undo the last operation
|
|
53
|
-
* @returns true if undo was performed
|
|
54
|
-
*/
|
|
55
|
-
undo(): boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Redo the last undone operation
|
|
58
|
-
* @returns true if redo was performed
|
|
59
|
-
*/
|
|
60
|
-
redo(): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Check if undo is available
|
|
63
|
-
*/
|
|
64
|
-
canUndo(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Check if redo is available
|
|
67
|
-
*/
|
|
68
|
-
canRedo(): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Clear the undo/redo history
|
|
71
|
-
*/
|
|
72
|
-
clearHistory(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Subscribe to state changes
|
|
75
|
-
* @param callback Function called with new state on changes
|
|
76
|
-
* @param options Subscription options
|
|
77
|
-
* @returns Unsubscribe function
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* // Default: fires with current state (deferred to next microtask)
|
|
82
|
-
* store.subscribe((state) => updateUI(state));
|
|
83
|
-
*
|
|
84
|
-
* // Skip initial callback, only receive future changes
|
|
85
|
-
* store.subscribe(handleChanges, { fireImmediately: false });
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
subscribe(callback: StateSubscriber<TState>, options?: SubscribeOptions): Unsubscribe;
|
|
89
|
-
/**
|
|
90
|
-
* Subscribe to raw change events
|
|
91
|
-
* @param callback Function called with change event
|
|
92
|
-
* @returns Unsubscribe function
|
|
93
|
-
*/
|
|
94
|
-
subscribeToChanges(callback: ChangeSubscriber): Unsubscribe;
|
|
95
|
-
/**
|
|
96
|
-
* Export updates since a given version
|
|
97
|
-
* @param since State vector (encoded as Uint8Array) to export from. If not provided, exports all updates.
|
|
98
|
-
* @returns Encoded updates as Uint8Array
|
|
99
|
-
*/
|
|
100
|
-
exportUpdates(since?: Uint8Array): Uint8Array;
|
|
101
|
-
/**
|
|
102
|
-
* Import updates from another peer
|
|
103
|
-
* @param updates Encoded updates from exportUpdates
|
|
104
|
-
*/
|
|
105
|
-
importUpdates(updates: Uint8Array): void;
|
|
106
|
-
/**
|
|
107
|
-
* Subscribe to local updates for broadcasting to other peers
|
|
108
|
-
* @param callback Function called with encoded updates
|
|
109
|
-
* @returns Unsubscribe function
|
|
110
|
-
*/
|
|
111
|
-
subscribeLocalUpdates(callback: LocalUpdatesSubscriber): Unsubscribe;
|
|
112
|
-
/**
|
|
113
|
-
* Export the full document as a snapshot
|
|
114
|
-
* @returns Encoded snapshot as Uint8Array
|
|
115
|
-
*/
|
|
116
|
-
exportSnapshot(): Uint8Array;
|
|
117
|
-
/**
|
|
118
|
-
* Import a snapshot, replacing current state
|
|
119
|
-
* @param snapshot Encoded snapshot from exportSnapshot
|
|
120
|
-
*/
|
|
121
|
-
importSnapshot(snapshot: Uint8Array): void;
|
|
122
|
-
/**
|
|
123
|
-
* Get the current version vector (for sync)
|
|
124
|
-
*/
|
|
125
|
-
getVersion(): Uint8Array;
|
|
126
|
-
/**
|
|
127
|
-
* Commit pending changes
|
|
128
|
-
* @param _message Optional commit message (not used in yjs, kept for API compatibility)
|
|
129
|
-
*/
|
|
130
|
-
commit(_message?: string): void;
|
|
131
|
-
/**
|
|
132
|
-
* Reset the store with optional new initial state
|
|
133
|
-
* @param initialState New initial state (optional)
|
|
134
|
-
*/
|
|
135
|
-
reset(initialState?: Partial<TState>): void;
|
|
136
|
-
/**
|
|
137
|
-
* Destroy the store and clean up resources
|
|
138
|
-
*/
|
|
139
|
-
destroy(): void;
|
|
140
|
-
/**
|
|
141
|
-
* Get the underlying document (for advanced use cases)
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
getDoc(): Y.Doc;
|
|
145
|
-
/**
|
|
146
|
-
* Get the peer ID of this store
|
|
147
|
-
*/
|
|
148
|
-
getPeerId(): string;
|
|
149
|
-
/**
|
|
150
|
-
* Deep clone a value using structuredClone
|
|
151
|
-
*/
|
|
152
|
-
protected clone<T>(value: T): T;
|
|
153
|
-
/**
|
|
154
|
-
* Execute a function within a transaction with local origin
|
|
155
|
-
* This ensures changes are tracked by the undo manager
|
|
156
|
-
*/
|
|
157
|
-
protected transact<T>(fn: () => T): T;
|
|
158
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard Store
|
|
3
|
-
*
|
|
4
|
-
* State store for dashboard with multiple items (charts/visualizations).
|
|
5
|
-
* Supports undo/redo at the dashboard level (affecting all items),
|
|
6
|
-
* multiple screen modes (desktop, tablet, mobile), and real-time collaboration.
|
|
7
|
-
*/
|
|
8
|
-
import type { DashboardState, DashboardStore as IDashboardStore, DashboardStoreConfig } from './types';
|
|
9
|
-
/**
|
|
10
|
-
* Create a new dashboard store
|
|
11
|
-
*
|
|
12
|
-
* @param initialState Initial dashboard state (optional)
|
|
13
|
-
* @param config Store configuration (optional)
|
|
14
|
-
* @param storeId Optional store ID (auto-generated UUID if not provided)
|
|
15
|
-
* @returns DashboardStore instance
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```typescript
|
|
19
|
-
* const store = createDashboardStore({
|
|
20
|
-
* version: '1.0.0',
|
|
21
|
-
* views: [{
|
|
22
|
-
* screenModus: 'desktop',
|
|
23
|
-
* options: { theme: { id: 'default' } },
|
|
24
|
-
* filters: [],
|
|
25
|
-
* items: [{
|
|
26
|
-
* id: 'item-1',
|
|
27
|
-
* type: 'bar-chart',
|
|
28
|
-
* position: { sizeX: 24, sizeY: 16, row: 0, col: 0 },
|
|
29
|
-
* options: {},
|
|
30
|
-
* slots: []
|
|
31
|
-
* }]
|
|
32
|
-
* }]
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* // Subscribe to changes
|
|
36
|
-
* store.subscribe((state) => {
|
|
37
|
-
* console.log('Dashboard changed:', state);
|
|
38
|
-
* });
|
|
39
|
-
*
|
|
40
|
-
* // Batch multiple changes into single undo step
|
|
41
|
-
* store.batchUpdate(() => {
|
|
42
|
-
* store.updateItemPosition('desktop', 'item-1', { row: 10 });
|
|
43
|
-
* store.updateItemOptions('desktop', 'item-1', { title: 'New Title' });
|
|
44
|
-
* });
|
|
45
|
-
*
|
|
46
|
-
* store.undo(); // Undoes both changes
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare function createDashboardStore(initialState?: Partial<DashboardState>, config?: DashboardStoreConfig, storeId?: string): IDashboardStore;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State Store
|
|
3
|
-
*
|
|
4
|
-
* State management utilities for item and dashboard state
|
|
5
|
-
* with undo/redo support and real-time collaboration capabilities.
|
|
6
|
-
*
|
|
7
|
-
* @module store
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* // Standalone item with undo/redo
|
|
12
|
-
* import { createItemStore } from '@luzmo/analytics-components-kit/utils/store';
|
|
13
|
-
*
|
|
14
|
-
* const itemStore = createItemStore({
|
|
15
|
-
* type: 'bar-chart',
|
|
16
|
-
* slots: [{ name: 'measure', content: [...] }],
|
|
17
|
-
* options: { display: { title: true } }
|
|
18
|
-
* });
|
|
19
|
-
*
|
|
20
|
-
* itemStore.subscribe((state) => {
|
|
21
|
-
* // Update UI with new state
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* itemStore.updateOption('display.title', false);
|
|
25
|
-
* itemStore.undo(); // Restores title to true
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* // Using the store registry
|
|
31
|
-
* import {
|
|
32
|
-
* registerItemStore,
|
|
33
|
-
* getStore
|
|
34
|
-
* } from '@luzmo/analytics-components-kit/utils/store';
|
|
35
|
-
*
|
|
36
|
-
* // Create and register stores
|
|
37
|
-
* const store = registerItemStore({ type: 'bar-chart' });
|
|
38
|
-
*
|
|
39
|
-
* // Use store ID in components
|
|
40
|
-
* element.storeId = store.id;
|
|
41
|
-
*
|
|
42
|
-
* // Retrieve store by ID anywhere in the app
|
|
43
|
-
* const sameStore = getStore(store.id);
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```typescript
|
|
48
|
-
* // Dashboard with real-time collaboration
|
|
49
|
-
* import { createDashboardStore } from '@luzmo/analytics-components-kit/utils/store';
|
|
50
|
-
*
|
|
51
|
-
* const dashboardStore = createDashboardStore(dashboardConfig);
|
|
52
|
-
*
|
|
53
|
-
* // Sync with other peers
|
|
54
|
-
* dashboardStore.subscribeLocalUpdates((updates) => {
|
|
55
|
-
* websocket.send(updates);
|
|
56
|
-
* });
|
|
57
|
-
*
|
|
58
|
-
* websocket.onmessage = (msg) => {
|
|
59
|
-
* dashboardStore.importUpdates(msg.data);
|
|
60
|
-
* };
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
import type { ItemState, ItemStoreConfig, ItemStore, DashboardState, DashboardStoreConfig, DashboardStore } from './types';
|
|
64
|
-
/**
|
|
65
|
-
* Promise that resolves immediately.
|
|
66
|
-
* Kept for API compatibility - yjs is pure JavaScript and doesn't require WASM initialization.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```typescript
|
|
70
|
-
* import { ready, createItemStore } from '@luzmo/analytics-components-kit/utils/store';
|
|
71
|
-
*
|
|
72
|
-
* await ready;
|
|
73
|
-
* const store = createItemStore({ type: 'bar-chart' });
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
export declare const ready: Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Execute a callback when the DOM is ready.
|
|
79
|
-
* Handles the ES module timing issue where DOMContentLoaded may have already fired.
|
|
80
|
-
*
|
|
81
|
-
* @param callback Function to execute when DOM is ready
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```typescript
|
|
85
|
-
* import { onReady, createItemStore } from '@luzmo/analytics-components-kit/utils/store';
|
|
86
|
-
*
|
|
87
|
-
* onReady(() => {
|
|
88
|
-
* const store = createItemStore({ type: 'bar-chart' });
|
|
89
|
-
* initializeApp(store);
|
|
90
|
-
* });
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
export declare function onReady(callback: () => void): void;
|
|
94
|
-
export { createItemStore } from './item-store';
|
|
95
|
-
export { createDashboardStore } from './dashboard-store';
|
|
96
|
-
/**
|
|
97
|
-
* Create an item store.
|
|
98
|
-
* This async version is kept for API compatibility.
|
|
99
|
-
* Since yjs is pure JavaScript, no async initialization is needed.
|
|
100
|
-
*
|
|
101
|
-
* @param initialState Initial item state (optional)
|
|
102
|
-
* @param config Store configuration (optional)
|
|
103
|
-
* @param storeId Optional store ID (auto-generated UUID if not provided)
|
|
104
|
-
* @returns Promise resolving to ItemStore instance
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* ```typescript
|
|
108
|
-
* const store = await createItemStoreAsync({
|
|
109
|
-
* type: 'bar-chart',
|
|
110
|
-
* options: { display: { title: true } }
|
|
111
|
-
* });
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
export declare function createItemStoreAsync(initialState?: Partial<ItemState>, config?: ItemStoreConfig, storeId?: string): Promise<ItemStore>;
|
|
115
|
-
/**
|
|
116
|
-
* Create a dashboard store.
|
|
117
|
-
* This async version is kept for API compatibility.
|
|
118
|
-
* Since yjs is pure JavaScript, no async initialization is needed.
|
|
119
|
-
*
|
|
120
|
-
* @param initialState Initial dashboard state (optional)
|
|
121
|
-
* @param config Store configuration (optional)
|
|
122
|
-
* @param storeId Optional store ID (auto-generated UUID if not provided)
|
|
123
|
-
* @returns Promise resolving to DashboardStore instance
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```typescript
|
|
127
|
-
* const store = await createDashboardStoreAsync({
|
|
128
|
-
* version: '1.0.0',
|
|
129
|
-
* views: [{ screenModus: 'desktop', options: {}, filters: [], items: [] }]
|
|
130
|
-
* });
|
|
131
|
-
* ```
|
|
132
|
-
*/
|
|
133
|
-
export declare function createDashboardStoreAsync(initialState?: Partial<DashboardState>, config?: DashboardStoreConfig, storeId?: string): Promise<DashboardStore>;
|
|
134
|
-
export { getStore, getItemStore, getDashboardStore, hasStore, getStoreIds, registerStore, registerItemStore, registerDashboardStore, removeStore, destroyStore, clearRegistry } from './store-registry';
|
|
135
|
-
export type { BaseStoreConfig, DashboardStoreConfig, ItemStoreConfig, ItemState, Slot, SlotContent, DashboardItemState, DashboardParameter, DashboardState, FilterConfig, ItemPosition, ScreenMode, TimezoneConfig, ViewOptions, ViewState, BaseStore, DashboardStore, ItemStore, ChangeSubscriber, LocalUpdatesSubscriber, StateSubscriber, SubscribeOptions, Unsubscribe } from './types';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item Store
|
|
3
|
-
*
|
|
4
|
-
* State store for standalone item (chart/visualization) with undo/redo support
|
|
5
|
-
* and real-time collaboration capabilities.
|
|
6
|
-
*/
|
|
7
|
-
import type { ItemState, ItemStore as IItemStore, ItemStoreConfig } from './types';
|
|
8
|
-
/**
|
|
9
|
-
* Create a new item store
|
|
10
|
-
*
|
|
11
|
-
* @param initialState Initial item state (optional)
|
|
12
|
-
* @param config Store configuration (optional)
|
|
13
|
-
* @param storeId Optional store ID (auto-generated UUID if not provided)
|
|
14
|
-
* @returns ItemStore instance
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* const store = createItemStore({
|
|
19
|
-
* type: 'bar-chart',
|
|
20
|
-
* slots: [{ name: 'measure', content: [...] }],
|
|
21
|
-
* options: { display: { title: true } },
|
|
22
|
-
* filters: []
|
|
23
|
-
* });
|
|
24
|
-
*
|
|
25
|
-
* store.subscribe((state) => {
|
|
26
|
-
* console.log('State changed:', state);
|
|
27
|
-
* });
|
|
28
|
-
*
|
|
29
|
-
* store.updateOption('display.title', false);
|
|
30
|
-
* store.undo(); // Restores display.title to true
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function createItemStore(initialState?: Partial<ItemState>, config?: ItemStoreConfig, storeId?: string): IItemStore;
|