react-semaphor 0.1.152 → 0.1.154
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/chunks/{dashboard-controls-D5-Gvqxv.js → dashboard-controls-BQN37S-Z.js} +3 -3
- package/dist/chunks/{dashboard-controls-B1NaD9-0.js → dashboard-controls-CfwJmqIk.js} +1 -1
- package/dist/chunks/{dashboard-export-dialog-zg4nHWb1.js → dashboard-export-dialog-Bk40DbBa.js} +3 -3
- package/dist/chunks/{dashboard-export-dialog-DO1S0OC6.js → dashboard-export-dialog-CleOul_2.js} +1 -1
- package/dist/chunks/{dashboard-json-B3nbAdX_.js → dashboard-json-DoH7BzSp.js} +1 -1
- package/dist/chunks/{dashboard-json-CSw6MLJx.js → dashboard-json-DvDujj0u.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-Bgg70XCK.js → edit-dashboard-visual-6Dbv7mp-.js} +25 -35
- package/dist/chunks/{edit-dashboard-visual-rWMERjeo.js → edit-dashboard-visual-DHRzXa1_.js} +27 -32
- package/dist/chunks/{editor-action-buttons-BoZhsC0f.js → editor-action-buttons-B9rrfO6d.js} +2 -2
- package/dist/chunks/{editor-action-buttons-SmPDO28X.js → editor-action-buttons-D7XJarSH.js} +1 -1
- package/dist/chunks/{index-DQz6FBS5.js → index-4FLL7B4z.js} +240 -230
- package/dist/chunks/{index-CwRSeOKZ.js → index-B57nSymH.js} +27144 -26848
- package/dist/chunks/{resource-management-panel-dAVa6T7t.js → resource-management-panel-DJ7ZIbbt.js} +2 -2
- package/dist/chunks/{resource-management-panel-BK2lxhja.js → resource-management-panel-DdtlZ9Cm.js} +1 -1
- package/dist/chunks/{use-visual-utils-Dcw4d_Do.js → use-visual-utils-BX99ssnb.js} +1 -1
- package/dist/chunks/{use-visual-utils-D19rZuzJ.js → use-visual-utils-CuGAdqrL.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +39 -0
- package/dist/types/main.d.ts +41 -0
- package/dist/types/surfboard.d.ts +39 -0
- package/dist/types/types.d.ts +39 -0
- package/package.json +1 -1
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-4FLL7B4z.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -647,6 +647,14 @@ declare interface FilterCondition {
|
|
|
647
647
|
value: FilterValue;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
+
/**
|
|
651
|
+
* Display mode for individual filters
|
|
652
|
+
* - 'canvas': Filter displayed as a draggable card on the dashboard canvas
|
|
653
|
+
* - 'toolbar': Filter displayed in the compact toolbar
|
|
654
|
+
* - 'inherit': Use the dashboard's filterLayout.displayMode setting (default)
|
|
655
|
+
*/
|
|
656
|
+
declare type FilterDisplayMode = 'canvas' | 'toolbar' | 'inherit';
|
|
657
|
+
|
|
650
658
|
declare type FilterForBetween = BaseFilter & {
|
|
651
659
|
operation: 'between' | 'not between';
|
|
652
660
|
values: [number, number];
|
|
@@ -686,6 +694,24 @@ declare interface FilterGroup {
|
|
|
686
694
|
groups: FilterGroup[];
|
|
687
695
|
}
|
|
688
696
|
|
|
697
|
+
/**
|
|
698
|
+
* Filter layout settings for controlling how dashboard filters are displayed
|
|
699
|
+
*/
|
|
700
|
+
export declare type FilterLayoutSettings = {
|
|
701
|
+
/**
|
|
702
|
+
* Display mode for filters
|
|
703
|
+
* - 'canvas': Filters displayed as draggable/resizable cards on the dashboard canvas (default)
|
|
704
|
+
* - 'toolbar': Filters displayed in a compact horizontal toolbar below dashboard controls
|
|
705
|
+
*/
|
|
706
|
+
displayMode?: 'canvas' | 'toolbar';
|
|
707
|
+
/**
|
|
708
|
+
* Whether the toolbar should wrap filters to multiple lines
|
|
709
|
+
* - false: Horizontal scroll when filters overflow (default)
|
|
710
|
+
* - true: Wrap to multiple lines
|
|
711
|
+
*/
|
|
712
|
+
toolbarWrap?: boolean;
|
|
713
|
+
};
|
|
714
|
+
|
|
689
715
|
declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
|
|
690
716
|
|
|
691
717
|
declare type FilterOnClick = {
|
|
@@ -1401,6 +1427,7 @@ export declare type TDashboard = {
|
|
|
1401
1427
|
globalCacheConfig?: CacheConfig;
|
|
1402
1428
|
emailSettings?: EmailSettings;
|
|
1403
1429
|
defaultFilterValues?: TFilterValue[];
|
|
1430
|
+
filterLayout?: FilterLayoutSettings;
|
|
1404
1431
|
};
|
|
1405
1432
|
|
|
1406
1433
|
export declare type TDataColumn = {
|
|
@@ -1481,6 +1508,18 @@ declare type TFilter = {
|
|
|
1481
1508
|
customFilterPreferences?: TCustomFilterPreferences;
|
|
1482
1509
|
/** Whether to show the label above the filter (default: true) */
|
|
1483
1510
|
showLabel?: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* Width in pixels when displayed in toolbar mode.
|
|
1513
|
+
* Defaults vary by filter type (160px for dropdowns, 220px for date ranges, etc.)
|
|
1514
|
+
*/
|
|
1515
|
+
toolbarWidth?: number;
|
|
1516
|
+
/**
|
|
1517
|
+
* Display mode for this filter
|
|
1518
|
+
* - 'canvas': Always show as draggable card on canvas
|
|
1519
|
+
* - 'toolbar': Always show in toolbar
|
|
1520
|
+
* - 'inherit': Use dashboard's filterLayout.displayMode setting (default)
|
|
1521
|
+
*/
|
|
1522
|
+
displayMode?: FilterDisplayMode;
|
|
1484
1523
|
};
|
|
1485
1524
|
|
|
1486
1525
|
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -88,8 +88,10 @@ declare type Actions_2 = {
|
|
|
88
88
|
setShowDashboardJSON: (show: boolean) => void;
|
|
89
89
|
setIsVisualEditing: (editing: boolean) => void;
|
|
90
90
|
setShowFilters: (show: boolean) => void;
|
|
91
|
+
setFilterLayout: (settings: Partial<FilterLayoutSettings>) => void;
|
|
91
92
|
addFilter: (filter: TFilter) => void;
|
|
92
93
|
removeFilter: (filterId: string) => void;
|
|
94
|
+
reorderFilters: (orderedFilterIds: string[]) => void;
|
|
93
95
|
updateFilter: (filter: TFilter) => void;
|
|
94
96
|
updateFilterId: (filterId: string, newId: string) => void;
|
|
95
97
|
setFilterDefaultValues: (filterId: string, defaultValues: (string | number)[] | undefined) => void;
|
|
@@ -1341,6 +1343,14 @@ export declare interface FilterCondition {
|
|
|
1341
1343
|
value: FilterValue;
|
|
1342
1344
|
}
|
|
1343
1345
|
|
|
1346
|
+
/**
|
|
1347
|
+
* Display mode for individual filters
|
|
1348
|
+
* - 'canvas': Filter displayed as a draggable card on the dashboard canvas
|
|
1349
|
+
* - 'toolbar': Filter displayed in the compact toolbar
|
|
1350
|
+
* - 'inherit': Use the dashboard's filterLayout.displayMode setting (default)
|
|
1351
|
+
*/
|
|
1352
|
+
declare type FilterDisplayMode = 'canvas' | 'toolbar' | 'inherit';
|
|
1353
|
+
|
|
1344
1354
|
declare type FilterForBetween = BaseFilter & {
|
|
1345
1355
|
operation: 'between' | 'not between';
|
|
1346
1356
|
values: [number, number];
|
|
@@ -1380,6 +1390,24 @@ export declare interface FilterGroup {
|
|
|
1380
1390
|
groups: FilterGroup[];
|
|
1381
1391
|
}
|
|
1382
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* Filter layout settings for controlling how dashboard filters are displayed
|
|
1395
|
+
*/
|
|
1396
|
+
export declare type FilterLayoutSettings = {
|
|
1397
|
+
/**
|
|
1398
|
+
* Display mode for filters
|
|
1399
|
+
* - 'canvas': Filters displayed as draggable/resizable cards on the dashboard canvas (default)
|
|
1400
|
+
* - 'toolbar': Filters displayed in a compact horizontal toolbar below dashboard controls
|
|
1401
|
+
*/
|
|
1402
|
+
displayMode?: 'canvas' | 'toolbar';
|
|
1403
|
+
/**
|
|
1404
|
+
* Whether the toolbar should wrap filters to multiple lines
|
|
1405
|
+
* - false: Horizontal scroll when filters overflow (default)
|
|
1406
|
+
* - true: Wrap to multiple lines
|
|
1407
|
+
*/
|
|
1408
|
+
toolbarWrap?: boolean;
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1383
1411
|
declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
|
|
1384
1412
|
|
|
1385
1413
|
declare type FilterOnClick = {
|
|
@@ -2396,6 +2424,7 @@ export declare type TDashboard = {
|
|
|
2396
2424
|
globalCacheConfig?: CacheConfig;
|
|
2397
2425
|
emailSettings?: EmailSettings;
|
|
2398
2426
|
defaultFilterValues?: TFilterValue[];
|
|
2427
|
+
filterLayout?: FilterLayoutSettings;
|
|
2399
2428
|
};
|
|
2400
2429
|
|
|
2401
2430
|
export declare type TDataColumn = {
|
|
@@ -2476,6 +2505,18 @@ export declare type TFilter = {
|
|
|
2476
2505
|
customFilterPreferences?: TCustomFilterPreferences;
|
|
2477
2506
|
/** Whether to show the label above the filter (default: true) */
|
|
2478
2507
|
showLabel?: boolean;
|
|
2508
|
+
/**
|
|
2509
|
+
* Width in pixels when displayed in toolbar mode.
|
|
2510
|
+
* Defaults vary by filter type (160px for dropdowns, 220px for date ranges, etc.)
|
|
2511
|
+
*/
|
|
2512
|
+
toolbarWidth?: number;
|
|
2513
|
+
/**
|
|
2514
|
+
* Display mode for this filter
|
|
2515
|
+
* - 'canvas': Always show as draggable card on canvas
|
|
2516
|
+
* - 'toolbar': Always show in toolbar
|
|
2517
|
+
* - 'inherit': Use dashboard's filterLayout.displayMode setting (default)
|
|
2518
|
+
*/
|
|
2519
|
+
displayMode?: FilterDisplayMode;
|
|
2479
2520
|
};
|
|
2480
2521
|
|
|
2481
2522
|
export declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
|
@@ -650,6 +650,14 @@ declare interface FilterCondition {
|
|
|
650
650
|
value: FilterValue;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
+
/**
|
|
654
|
+
* Display mode for individual filters
|
|
655
|
+
* - 'canvas': Filter displayed as a draggable card on the dashboard canvas
|
|
656
|
+
* - 'toolbar': Filter displayed in the compact toolbar
|
|
657
|
+
* - 'inherit': Use the dashboard's filterLayout.displayMode setting (default)
|
|
658
|
+
*/
|
|
659
|
+
declare type FilterDisplayMode = 'canvas' | 'toolbar' | 'inherit';
|
|
660
|
+
|
|
653
661
|
declare type FilterForBetween = BaseFilter & {
|
|
654
662
|
operation: 'between' | 'not between';
|
|
655
663
|
values: [number, number];
|
|
@@ -689,6 +697,24 @@ declare interface FilterGroup {
|
|
|
689
697
|
groups: FilterGroup[];
|
|
690
698
|
}
|
|
691
699
|
|
|
700
|
+
/**
|
|
701
|
+
* Filter layout settings for controlling how dashboard filters are displayed
|
|
702
|
+
*/
|
|
703
|
+
export declare type FilterLayoutSettings = {
|
|
704
|
+
/**
|
|
705
|
+
* Display mode for filters
|
|
706
|
+
* - 'canvas': Filters displayed as draggable/resizable cards on the dashboard canvas (default)
|
|
707
|
+
* - 'toolbar': Filters displayed in a compact horizontal toolbar below dashboard controls
|
|
708
|
+
*/
|
|
709
|
+
displayMode?: 'canvas' | 'toolbar';
|
|
710
|
+
/**
|
|
711
|
+
* Whether the toolbar should wrap filters to multiple lines
|
|
712
|
+
* - false: Horizontal scroll when filters overflow (default)
|
|
713
|
+
* - true: Wrap to multiple lines
|
|
714
|
+
*/
|
|
715
|
+
toolbarWrap?: boolean;
|
|
716
|
+
};
|
|
717
|
+
|
|
692
718
|
declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
|
|
693
719
|
|
|
694
720
|
declare type FilterOnClick = {
|
|
@@ -1406,6 +1432,7 @@ export declare type TDashboard = {
|
|
|
1406
1432
|
globalCacheConfig?: CacheConfig;
|
|
1407
1433
|
emailSettings?: EmailSettings;
|
|
1408
1434
|
defaultFilterValues?: TFilterValue[];
|
|
1435
|
+
filterLayout?: FilterLayoutSettings;
|
|
1409
1436
|
};
|
|
1410
1437
|
|
|
1411
1438
|
export declare type TDataColumn = {
|
|
@@ -1486,6 +1513,18 @@ declare type TFilter = {
|
|
|
1486
1513
|
customFilterPreferences?: TCustomFilterPreferences;
|
|
1487
1514
|
/** Whether to show the label above the filter (default: true) */
|
|
1488
1515
|
showLabel?: boolean;
|
|
1516
|
+
/**
|
|
1517
|
+
* Width in pixels when displayed in toolbar mode.
|
|
1518
|
+
* Defaults vary by filter type (160px for dropdowns, 220px for date ranges, etc.)
|
|
1519
|
+
*/
|
|
1520
|
+
toolbarWidth?: number;
|
|
1521
|
+
/**
|
|
1522
|
+
* Display mode for this filter
|
|
1523
|
+
* - 'canvas': Always show as draggable card on canvas
|
|
1524
|
+
* - 'toolbar': Always show in toolbar
|
|
1525
|
+
* - 'inherit': Use dashboard's filterLayout.displayMode setting (default)
|
|
1526
|
+
*/
|
|
1527
|
+
displayMode?: FilterDisplayMode;
|
|
1489
1528
|
};
|
|
1490
1529
|
|
|
1491
1530
|
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -644,6 +644,14 @@ declare interface FilterCondition {
|
|
|
644
644
|
value: FilterValue;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
+
/**
|
|
648
|
+
* Display mode for individual filters
|
|
649
|
+
* - 'canvas': Filter displayed as a draggable card on the dashboard canvas
|
|
650
|
+
* - 'toolbar': Filter displayed in the compact toolbar
|
|
651
|
+
* - 'inherit': Use the dashboard's filterLayout.displayMode setting (default)
|
|
652
|
+
*/
|
|
653
|
+
declare type FilterDisplayMode = 'canvas' | 'toolbar' | 'inherit';
|
|
654
|
+
|
|
647
655
|
declare type FilterForBetween = BaseFilter & {
|
|
648
656
|
operation: 'between' | 'not between';
|
|
649
657
|
values: [number, number];
|
|
@@ -683,6 +691,24 @@ declare interface FilterGroup {
|
|
|
683
691
|
groups: FilterGroup[];
|
|
684
692
|
}
|
|
685
693
|
|
|
694
|
+
/**
|
|
695
|
+
* Filter layout settings for controlling how dashboard filters are displayed
|
|
696
|
+
*/
|
|
697
|
+
export declare type FilterLayoutSettings = {
|
|
698
|
+
/**
|
|
699
|
+
* Display mode for filters
|
|
700
|
+
* - 'canvas': Filters displayed as draggable/resizable cards on the dashboard canvas (default)
|
|
701
|
+
* - 'toolbar': Filters displayed in a compact horizontal toolbar below dashboard controls
|
|
702
|
+
*/
|
|
703
|
+
displayMode?: 'canvas' | 'toolbar';
|
|
704
|
+
/**
|
|
705
|
+
* Whether the toolbar should wrap filters to multiple lines
|
|
706
|
+
* - false: Horizontal scroll when filters overflow (default)
|
|
707
|
+
* - true: Wrap to multiple lines
|
|
708
|
+
*/
|
|
709
|
+
toolbarWrap?: boolean;
|
|
710
|
+
};
|
|
711
|
+
|
|
686
712
|
declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
|
|
687
713
|
|
|
688
714
|
declare type FilterOnClick = {
|
|
@@ -1398,6 +1424,7 @@ export declare type TDashboard = {
|
|
|
1398
1424
|
globalCacheConfig?: CacheConfig;
|
|
1399
1425
|
emailSettings?: EmailSettings;
|
|
1400
1426
|
defaultFilterValues?: TFilterValue[];
|
|
1427
|
+
filterLayout?: FilterLayoutSettings;
|
|
1401
1428
|
};
|
|
1402
1429
|
|
|
1403
1430
|
export declare type TDataColumn = {
|
|
@@ -1478,6 +1505,18 @@ declare type TFilter = {
|
|
|
1478
1505
|
customFilterPreferences?: TCustomFilterPreferences;
|
|
1479
1506
|
/** Whether to show the label above the filter (default: true) */
|
|
1480
1507
|
showLabel?: boolean;
|
|
1508
|
+
/**
|
|
1509
|
+
* Width in pixels when displayed in toolbar mode.
|
|
1510
|
+
* Defaults vary by filter type (160px for dropdowns, 220px for date ranges, etc.)
|
|
1511
|
+
*/
|
|
1512
|
+
toolbarWidth?: number;
|
|
1513
|
+
/**
|
|
1514
|
+
* Display mode for this filter
|
|
1515
|
+
* - 'canvas': Always show as draggable card on canvas
|
|
1516
|
+
* - 'toolbar': Always show in toolbar
|
|
1517
|
+
* - 'inherit': Use dashboard's filterLayout.displayMode setting (default)
|
|
1518
|
+
*/
|
|
1519
|
+
displayMode?: FilterDisplayMode;
|
|
1481
1520
|
};
|
|
1482
1521
|
|
|
1483
1522
|
declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForDate;
|