@sisense/sdk-ui 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +22 -423
- package/dist/ai.js +1825 -1771
- package/dist/analytics-composer.cjs +54 -54
- package/dist/analytics-composer.js +531 -510
- package/dist/derive-chart-family-7Fxxf6Sy.cjs +758 -0
- package/dist/derive-chart-family-CVwj-7u5.js +100883 -0
- package/dist/index.cjs +27 -858
- package/dist/index.js +11422 -10499
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -3
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/chatbot.d.ts +2 -2
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +13 -0
- package/dist/packages/sdk-ui/src/ai/index.d.ts +7 -4
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +12 -5
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +8 -4
- package/dist/packages/sdk-ui/src/analytics-composer/common/constants.d.ts +1 -0
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +11 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/chart/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/areamap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/geo-data-coloring-function.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/data-options.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/design-options.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap-map.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap-utils.d.ts +12 -0
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap.d.ts +5 -5
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/feature-styles-dictionary.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/use-geo-json.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/types.d.ts +35 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/column-chart/column-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data-options.d.ts +27 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/stackable/design-options.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +100 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -29
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +6 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +9 -8
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +14 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-widgets-layout.d.ts +14 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -2
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +7 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +8 -7
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/date-range-calculator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +3 -0
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +3 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +4 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +27 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/types.d.ts +14 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/members-list-select.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +18 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +3 -2
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-datetime-formatter.d.ts +2 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/common/granularities.d.ts +8 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-exclude-condition-form.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-is-within-condition-form.d.ts +10 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/datetime-condition-section.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-members-section.d.ts +12 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-range-section.d.ts +11 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-relative-section.d.ts +9 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +0 -5
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/numeric-condition-section.d.ts +1 -6
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +1 -3
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/types.d.ts +4 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +12 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/date-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +3 -2
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +9 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +8 -8
- package/dist/packages/sdk-ui/src/plugins-provider/plugins-context.d.ts +6 -6
- package/dist/packages/sdk-ui/src/plugins-provider/plugins-provider.d.ts +3 -3
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/props.d.ts +35 -15
- package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -16
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +16 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +40 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +80 -0
- package/dist/packages/sdk-ui/src/types.d.ts +52 -1
- package/dist/packages/sdk-ui/src/utils/generate-attribute-name.d.ts +2 -0
- package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +34 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +16 -5
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +35 -0
- package/dist/use-common-filters-BanIIIUW.js +28409 -0
- package/dist/use-common-filters-BeKQ1bKU.cjs +271 -0
- package/dist/{widget-composer-BrQ6SrZ6.js → widget-composer-4bEKHitq.js} +240 -234
- package/dist/widget-composer-NDI4zssI.cjs +316 -0
- package/package.json +10 -9
- package/dist/derive-chart-family-D3iN--j2.js +0 -44430
- package/dist/derive-chart-family-Tt7cIUck.cjs +0 -271
- package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +0 -12
- package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart-data/data-coloring/geo-data-coloring-function.d.ts +0 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +0 -3
- package/dist/packages/sdk-ui/src/charts/map-charts/areamap/areamap-utils.d.ts +0 -11
- package/dist/use-common-filters-CHBXz5rL.js +0 -83439
- package/dist/use-common-filters-Dd-gOMfB.cjs +0 -916
- package/dist/widget-composer-BHf4pbvI.cjs +0 -311
- /package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/alternative-country-names-dictionary.d.ts +0 -0
|
@@ -27,6 +27,10 @@ export declare const resources: {
|
|
|
27
27
|
filterAttributeNotFound: string;
|
|
28
28
|
highlightAttributeNotFound: string;
|
|
29
29
|
};
|
|
30
|
+
optionsTranslation: {
|
|
31
|
+
invalidStyleOptions: string;
|
|
32
|
+
invalidInternalDataOptions: string;
|
|
33
|
+
};
|
|
30
34
|
themeNotFound: string;
|
|
31
35
|
paletteNotFound: string;
|
|
32
36
|
chartTypeNotSupported: string;
|
|
@@ -84,6 +88,10 @@ export declare const resources: {
|
|
|
84
88
|
notAMembersFilter: string;
|
|
85
89
|
drilldownNoInitialDimension: string;
|
|
86
90
|
otherWidgetTypesNotSupported: string;
|
|
91
|
+
dataBrowser: {
|
|
92
|
+
dimensionNotFound: string;
|
|
93
|
+
attributeNotFound: string;
|
|
94
|
+
};
|
|
87
95
|
};
|
|
88
96
|
errorBoxText: string;
|
|
89
97
|
chartNoData: string;
|
|
@@ -267,6 +275,17 @@ export declare const resources: {
|
|
|
267
275
|
noAvailableDataTopics: string;
|
|
268
276
|
};
|
|
269
277
|
};
|
|
278
|
+
attribute: {
|
|
279
|
+
datetimeName: {
|
|
280
|
+
years: string;
|
|
281
|
+
quarters: string;
|
|
282
|
+
months: string;
|
|
283
|
+
weeks: string;
|
|
284
|
+
days: string;
|
|
285
|
+
hours: string;
|
|
286
|
+
minutes: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
270
289
|
filterEditor: {
|
|
271
290
|
buttons: {
|
|
272
291
|
apply: string;
|
|
@@ -279,11 +298,13 @@ export declare const resources: {
|
|
|
279
298
|
allowMultiSelection: string;
|
|
280
299
|
from: string;
|
|
281
300
|
to: string;
|
|
301
|
+
includeCurrent: string;
|
|
282
302
|
};
|
|
283
303
|
placeholders: {
|
|
284
304
|
selectFromList: string;
|
|
285
305
|
enterEntry: string;
|
|
286
306
|
enterValue: string;
|
|
307
|
+
select: string;
|
|
287
308
|
};
|
|
288
309
|
conditions: {
|
|
289
310
|
exclude: string;
|
|
@@ -301,11 +322,30 @@ export declare const resources: {
|
|
|
301
322
|
lessThanOrEqual: string;
|
|
302
323
|
greaterThan: string;
|
|
303
324
|
greaterThanOrEqual: string;
|
|
325
|
+
isWithin: string;
|
|
304
326
|
};
|
|
305
327
|
validationErrors: {
|
|
306
328
|
invalidNumber: string;
|
|
307
329
|
invalidNumericRange: string;
|
|
308
330
|
};
|
|
331
|
+
datetimeLevels: {
|
|
332
|
+
year: string;
|
|
333
|
+
quarter: string;
|
|
334
|
+
month: string;
|
|
335
|
+
week: string;
|
|
336
|
+
day: string;
|
|
337
|
+
aggrigatedHour: string;
|
|
338
|
+
aggrigatedMinutesRoundTo15: string;
|
|
339
|
+
};
|
|
340
|
+
relativeTypes: {
|
|
341
|
+
last: string;
|
|
342
|
+
this: string;
|
|
343
|
+
next: string;
|
|
344
|
+
};
|
|
345
|
+
datetimePositions: {
|
|
346
|
+
before: string;
|
|
347
|
+
after: string;
|
|
348
|
+
};
|
|
309
349
|
};
|
|
310
350
|
pivotTable: {
|
|
311
351
|
grandTotal: string;
|
|
@@ -331,6 +371,10 @@ export declare const resources: {
|
|
|
331
371
|
filterAttributeNotFound: string;
|
|
332
372
|
highlightAttributeNotFound: string;
|
|
333
373
|
};
|
|
374
|
+
optionsTranslation: {
|
|
375
|
+
invalidStyleOptions: string;
|
|
376
|
+
invalidInternalDataOptions: string;
|
|
377
|
+
};
|
|
334
378
|
themeNotFound: string;
|
|
335
379
|
paletteNotFound: string;
|
|
336
380
|
chartTypeNotSupported: string;
|
|
@@ -388,6 +432,10 @@ export declare const resources: {
|
|
|
388
432
|
notAMembersFilter: string;
|
|
389
433
|
drilldownNoInitialDimension: string;
|
|
390
434
|
otherWidgetTypesNotSupported: string;
|
|
435
|
+
dataBrowser: {
|
|
436
|
+
dimensionNotFound: string;
|
|
437
|
+
attributeNotFound: string;
|
|
438
|
+
};
|
|
391
439
|
};
|
|
392
440
|
errorBoxText: string;
|
|
393
441
|
chartNoData: string;
|
|
@@ -571,6 +619,17 @@ export declare const resources: {
|
|
|
571
619
|
noAvailableDataTopics: string;
|
|
572
620
|
};
|
|
573
621
|
};
|
|
622
|
+
attribute: {
|
|
623
|
+
datetimeName: {
|
|
624
|
+
years: string;
|
|
625
|
+
quarters: string;
|
|
626
|
+
months: string;
|
|
627
|
+
weeks: string;
|
|
628
|
+
days: string;
|
|
629
|
+
hours: string;
|
|
630
|
+
minutes: string;
|
|
631
|
+
};
|
|
632
|
+
};
|
|
574
633
|
filterEditor: {
|
|
575
634
|
buttons: {
|
|
576
635
|
apply: string;
|
|
@@ -583,11 +642,13 @@ export declare const resources: {
|
|
|
583
642
|
allowMultiSelection: string;
|
|
584
643
|
from: string;
|
|
585
644
|
to: string;
|
|
645
|
+
includeCurrent: string;
|
|
586
646
|
};
|
|
587
647
|
placeholders: {
|
|
588
648
|
selectFromList: string;
|
|
589
649
|
enterEntry: string;
|
|
590
650
|
enterValue: string;
|
|
651
|
+
select: string;
|
|
591
652
|
};
|
|
592
653
|
conditions: {
|
|
593
654
|
exclude: string;
|
|
@@ -605,11 +666,30 @@ export declare const resources: {
|
|
|
605
666
|
lessThanOrEqual: string;
|
|
606
667
|
greaterThan: string;
|
|
607
668
|
greaterThanOrEqual: string;
|
|
669
|
+
isWithin: string;
|
|
608
670
|
};
|
|
609
671
|
validationErrors: {
|
|
610
672
|
invalidNumber: string;
|
|
611
673
|
invalidNumericRange: string;
|
|
612
674
|
};
|
|
675
|
+
datetimeLevels: {
|
|
676
|
+
year: string;
|
|
677
|
+
quarter: string;
|
|
678
|
+
month: string;
|
|
679
|
+
week: string;
|
|
680
|
+
day: string;
|
|
681
|
+
aggrigatedHour: string;
|
|
682
|
+
aggrigatedMinutesRoundTo15: string;
|
|
683
|
+
};
|
|
684
|
+
relativeTypes: {
|
|
685
|
+
last: string;
|
|
686
|
+
this: string;
|
|
687
|
+
next: string;
|
|
688
|
+
};
|
|
689
|
+
datetimePositions: {
|
|
690
|
+
before: string;
|
|
691
|
+
after: string;
|
|
692
|
+
};
|
|
613
693
|
};
|
|
614
694
|
pivotTable: {
|
|
615
695
|
grandTotal: string;
|
|
@@ -7,11 +7,12 @@ import { ScatterMarkerSize } from './chart-options-processor/translations/scatte
|
|
|
7
7
|
import { CartesianChartType, ScatterChartType, CategoricalChartType, IndicatorChartType, TableType, AreamapChartType, BoxplotChartType, ScattermapChartType, RangeChartType, TableChartType } from './chart-options-processor/translations/types';
|
|
8
8
|
import { DataPointsEventHandler } from './props';
|
|
9
9
|
import { LegendPosition } from './chart-options-processor/translations/legend-section';
|
|
10
|
-
import { GeoDataElement, RawGeoDataElement } from './chart-data/types';
|
|
11
10
|
import { Coordinates } from './charts/map-charts/scattermap/types';
|
|
12
11
|
import { StyledColumn, StyledMeasureColumn, Hierarchy, HierarchyId } from '.';
|
|
13
12
|
import { HighchartsOptionsInternal } from './chart-options-processor/chart-options-service';
|
|
14
13
|
import { CSSProperties } from 'react';
|
|
14
|
+
import { GeoDataElement, RawGeoDataElement } from './chart/restructured-charts/areamap-chart/types';
|
|
15
|
+
import { TabCornerRadius, TabInterval, TabSize } from './widgets/tabber-widget';
|
|
15
16
|
export type { SortDirection, PivotRowsSort } from '@sisense/sdk-data';
|
|
16
17
|
export type { AppConfig } from './app/client-application';
|
|
17
18
|
export type { DateConfig } from './query/date-formats';
|
|
@@ -239,6 +240,8 @@ export interface BaseAxisStyleOptions {
|
|
|
239
240
|
/** Configuration for second Y axis */
|
|
240
241
|
y2Axis?: AxisLabel;
|
|
241
242
|
}
|
|
243
|
+
/** Style options for charts of cartesian family @internal */
|
|
244
|
+
export type CartesianStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions;
|
|
242
245
|
/** Configuration options that define functional style of the various elements of LineChart */
|
|
243
246
|
export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
244
247
|
/** Configuration that defines line width */
|
|
@@ -1499,3 +1502,51 @@ export type CustomTranslationObject = {
|
|
|
1499
1502
|
*/
|
|
1500
1503
|
namespace?: string;
|
|
1501
1504
|
};
|
|
1505
|
+
/**
|
|
1506
|
+
* Single Tabber Widget tab object without styling
|
|
1507
|
+
* @internal
|
|
1508
|
+
*/
|
|
1509
|
+
export type TabberTab = {
|
|
1510
|
+
displayWidgetIds: string[];
|
|
1511
|
+
title: string;
|
|
1512
|
+
};
|
|
1513
|
+
/**
|
|
1514
|
+
* Tabber widget DTO style property
|
|
1515
|
+
* @internal
|
|
1516
|
+
*/
|
|
1517
|
+
export type TabberDtoStyle = TabberStyleProps & {
|
|
1518
|
+
activeTab: string;
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* Configuration options that define style of the various elements of the Tabber component.
|
|
1522
|
+
* @internal
|
|
1523
|
+
*/
|
|
1524
|
+
export type TabberStyleOptions = {
|
|
1525
|
+
descriptionColor: string;
|
|
1526
|
+
selectedBkgColor: string;
|
|
1527
|
+
selectedColor: string;
|
|
1528
|
+
showDescription: boolean;
|
|
1529
|
+
showSeparators: boolean;
|
|
1530
|
+
showTitle: boolean;
|
|
1531
|
+
tabCornerRadius: TabCornerRadius;
|
|
1532
|
+
tabsAlignment: string;
|
|
1533
|
+
tabsInterval: TabInterval;
|
|
1534
|
+
tabsSize: TabSize;
|
|
1535
|
+
unselectedBkgColor: string;
|
|
1536
|
+
unselectedColor: string;
|
|
1537
|
+
useSelectedBkg: boolean;
|
|
1538
|
+
useUnselectedBkg: boolean;
|
|
1539
|
+
};
|
|
1540
|
+
/**
|
|
1541
|
+
* Configuration options that defined tabber look and feel, including tabs and active tab.
|
|
1542
|
+
* @internal
|
|
1543
|
+
*/
|
|
1544
|
+
export type TabberStyleProps = TabberStyleOptions & TabberConfig;
|
|
1545
|
+
/**
|
|
1546
|
+
* Tabber business logic configuration
|
|
1547
|
+
* @internal
|
|
1548
|
+
*/
|
|
1549
|
+
export type TabberConfig = {
|
|
1550
|
+
tabs: TabberTab[];
|
|
1551
|
+
activeTab: number;
|
|
1552
|
+
};
|
|
@@ -57,4 +57,38 @@ export type EmptyObject = Record<string, never>;
|
|
|
57
57
|
* type TRequiredB = WithRequiredProp<T, 'b'>; // { a: string; b: number; c?: boolean; }
|
|
58
58
|
*/
|
|
59
59
|
export type WithRequiredProp<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
60
|
+
/**
|
|
61
|
+
* Universal generic state for hooks that fetch data from the REST API.
|
|
62
|
+
*/
|
|
63
|
+
export type RestApiHookState<DataKey extends string, SuccessDataType extends AnyObject> = RestApiHookSuccessState<DataKey, SuccessDataType> | RestApiHookErrorState<DataKey> | RestApiHookLoadingState<DataKey>;
|
|
64
|
+
/** Success state of the REST API hook */
|
|
65
|
+
export type RestApiHookSuccessState<DataKey extends string, SuccessDataType extends AnyObject> = {
|
|
66
|
+
isLoading: false;
|
|
67
|
+
isError: false;
|
|
68
|
+
isSuccess: true;
|
|
69
|
+
error: undefined;
|
|
70
|
+
status: 'success';
|
|
71
|
+
} & {
|
|
72
|
+
[key in DataKey]: SuccessDataType;
|
|
73
|
+
};
|
|
74
|
+
/** Error state of the REST API hook */
|
|
75
|
+
export type RestApiHookErrorState<DataKey extends string> = {
|
|
76
|
+
isLoading: false;
|
|
77
|
+
isError: true;
|
|
78
|
+
isSuccess: false;
|
|
79
|
+
error: Error;
|
|
80
|
+
status: 'error';
|
|
81
|
+
} & {
|
|
82
|
+
[key in DataKey]: undefined;
|
|
83
|
+
};
|
|
84
|
+
/** Loading state of the REST API hook */
|
|
85
|
+
export type RestApiHookLoadingState<DataKey extends string> = {
|
|
86
|
+
isLoading: true;
|
|
87
|
+
isError: false;
|
|
88
|
+
isSuccess: false;
|
|
89
|
+
error: undefined;
|
|
90
|
+
status: 'loading';
|
|
91
|
+
} & {
|
|
92
|
+
[key in DataKey]: undefined;
|
|
93
|
+
};
|
|
60
94
|
export {};
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { ChartStyleOptions,
|
|
1
|
+
import { ChartStyleOptions, TableStyleOptions, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, GaugeIndicatorStyleOptions, PivotTableStyleOptions, SpaceSizes, RadiusSizes, ShadowsTypes, AlignmentTypes, WidgetStyleOptions, TextWidgetStyleOptions } from '../types';
|
|
2
2
|
import { WidgetSubtype, WidgetType, TableWidgetStyle, IndicatorWidgetStyle, PivotWidgetStyle, WidgetDesign, WidgetDto } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export type CartesianChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions;
|
|
7
3
|
export declare function extractTableChartStyleOptions(widgetStyle: TableWidgetStyle): TableStyleOptions;
|
|
8
4
|
export declare const getIndicatorTypeSpecificOptions: (widgetSubtype: WidgetSubtype, widgetStyle: IndicatorWidgetStyle) => NumericSimpleIndicatorStyleOptions | NumericBarIndicatorStyleOptions | GaugeIndicatorStyleOptions;
|
|
9
5
|
export declare function extractPivotTableStyleOptions(widgetStyle: PivotWidgetStyle): PivotTableStyleOptions;
|
|
10
6
|
export declare function extractStyleOptions<WType extends WidgetType>(widgetType: WType, widget: WidgetDto): ChartStyleOptions | TableStyleOptions | TextWidgetStyleOptions;
|
|
7
|
+
export declare const getFlattenWidgetDesign: (widgetDesign: WidgetDesign) => {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
spaceAround: SpaceSizes;
|
|
10
|
+
cornerRadius: RadiusSizes;
|
|
11
|
+
shadow: ShadowsTypes;
|
|
12
|
+
border: boolean;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
header: {
|
|
15
|
+
titleTextColor: string;
|
|
16
|
+
titleAlignment: AlignmentTypes;
|
|
17
|
+
dividerLine: boolean;
|
|
18
|
+
dividerLineColor: string;
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
11
22
|
/**
|
|
12
23
|
* Merges the widget style with the widget design
|
|
13
24
|
*
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TabberWidgetProps } from '../props';
|
|
2
|
+
/**
|
|
3
|
+
* Tabber widget tab size
|
|
4
|
+
* @group TabberWidget
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type TabSize = 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
8
|
+
/**
|
|
9
|
+
* Tabber widget tab interval
|
|
10
|
+
* @group TabberWidget
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export type TabInterval = 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
14
|
+
/**
|
|
15
|
+
* Tabber widget tab alignment
|
|
16
|
+
* @group TabberWidget
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export type TabAlignment = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
20
|
+
/**
|
|
21
|
+
* Tabber widget tab corner radius
|
|
22
|
+
* @group TabberWidget
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export type TabCornerRadius = 'SMALL' | 'MEDIUM' | 'LARGE' | 'NONE';
|
|
26
|
+
/**
|
|
27
|
+
* Visual representation of a Fusion's tabber widget
|
|
28
|
+
* @param styleOptions
|
|
29
|
+
* @param description
|
|
30
|
+
* @param props
|
|
31
|
+
* @constructor
|
|
32
|
+
* @group TabberWidget
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export declare const TabberWidget: ({ styleOptions, description, ...props }: TabberWidgetProps) => import("react/jsx-runtime").JSX.Element;
|