@burdenoff/microfe-bigconsole 2026.1124.2 → 2026.1124.3
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/bigconsole/components/fleet/FleetChildrenPanel.d.ts +8 -0
- package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +127 -122
- package/dist/bigconsole/components/fleet/FleetCopySection.d.ts +5 -0
- package/dist/bigconsole/components/fleet/FleetCopySection.js +115 -118
- package/dist/bigconsole/components/fleet/FleetWidgetActions.d.ts +36 -0
- package/dist/bigconsole/components/fleet/FleetWidgetActions.js +82 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.js +146 -96
- package/dist/bigconsole/hooks/useFleetConfirm.d.ts +7 -0
- package/dist/bigconsole/hooks/useFleetConfirm.js +17 -0
- package/dist/bigconsole/hooks/useFleetWidgetActions.d.ts +10 -0
- package/dist/bigconsole/hooks/useFleetWidgetActions.js +41 -0
- package/dist/bigconsole/hooks/useOwnerBoundRun.d.ts +13 -18
- package/dist/bigconsole/hooks/useOwnerBoundRun.js +45 -30
- package/dist/bigconsole/hooks/useWidgetOperations.js +2 -0
- package/dist/bigconsole/pages/DashboardViewPage.js +303 -291
- package/dist/bigconsole/types/index.d.ts +4 -0
- package/dist/bigconsole/utils/fleetNotices.d.ts +12 -0
- package/dist/bigconsole/utils/fleetNotices.js +5 -0
- package/dist/bigconsole/utils/fleetWidgetMenu.d.ts +20 -0
- package/dist/bigconsole/utils/fleetWidgetMenu.js +13 -0
- package/dist/generated/wspace-operations.d.ts +54 -0
- package/dist/generated/wspace-operations.js +405 -95
- package/dist/generated/wspace-types.d.ts +395 -9
- package/package.json +1 -1
|
@@ -220,6 +220,10 @@ export interface Widget {
|
|
|
220
220
|
translations?: WidgetTranslation[];
|
|
221
221
|
actions?: WidgetAction[];
|
|
222
222
|
data?: Record<string, unknown> | null;
|
|
223
|
+
/** Fleet boards (BOFF-15410): the widget came from the master its board follows. */
|
|
224
|
+
isInherited?: boolean;
|
|
225
|
+
/** Fleet boards: it came from a master and this board's version differs from the master's. */
|
|
226
|
+
isOverridden?: boolean;
|
|
223
227
|
createdAt: string;
|
|
224
228
|
updatedAt: string;
|
|
225
229
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words for what a restore or a promotion could not carry over exactly (BOFF-15410), shared by the Children
|
|
3
|
+
* panel and the widget menu so the same notice never reads two ways.
|
|
4
|
+
*/
|
|
5
|
+
type Translate = (key: string, defaultValue: string, vars?: Record<string, string | number>) => string;
|
|
6
|
+
/** One thing the server could not carry over: the only kind today is a drilldown whose page the board lacks. */
|
|
7
|
+
export interface CarriedNotice {
|
|
8
|
+
code: string;
|
|
9
|
+
pageName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function restoreNoticeText(tr: Translate, notice: CarriedNotice): string;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/bigconsole/utils/fleetNotices.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e("bigconsole.fleet.copy.noticeDrilldown", "A widget's drilldown led to the page \"{{page}}\", which this board does not have, so it now opens the default page.", { page: t.pageName });
|
|
4
|
+
}
|
|
5
|
+
export { e as restoreNoticeText };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which fleet actions a widget's menu offers (BOFF-15410).
|
|
3
|
+
*
|
|
4
|
+
* Restore puts an inherited widget the board has edited back to the master's version, so it is offered only for
|
|
5
|
+
* a widget that came from the master and differs from it. Promote moves a widget the board added itself up to
|
|
6
|
+
* the master, so it is offered only on a board that follows a master, for a widget that did not come from it.
|
|
7
|
+
* A past view changes nothing, so it offers neither. The server applies the same rules and refuses the rest.
|
|
8
|
+
*/
|
|
9
|
+
export interface FleetMenuFacts {
|
|
10
|
+
isInherited?: boolean;
|
|
11
|
+
isOverridden?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface FleetMenuOffers {
|
|
14
|
+
restore: boolean;
|
|
15
|
+
promote: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function fleetMenuOffers(widget: FleetMenuFacts, board: {
|
|
18
|
+
isActiveCopy: boolean;
|
|
19
|
+
inPastView: boolean;
|
|
20
|
+
}): FleetMenuOffers;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/bigconsole/utils/fleetWidgetMenu.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (t.inPastView || !t.isActiveCopy) return {
|
|
4
|
+
restore: !1,
|
|
5
|
+
promote: !1
|
|
6
|
+
};
|
|
7
|
+
let n = e.isInherited === !0;
|
|
8
|
+
return {
|
|
9
|
+
restore: n && e.isOverridden === !0,
|
|
10
|
+
promote: !n
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export { e as fleetMenuOffers };
|
|
@@ -5596,6 +5596,21 @@ export type LinkDashboardToMasterMutation = {
|
|
|
5596
5596
|
linkStatus: Types.BigConsoleDashboardLinkStatus | null;
|
|
5597
5597
|
};
|
|
5598
5598
|
};
|
|
5599
|
+
export type PromoteWidgetToMasterMutationVariables = Exact<{
|
|
5600
|
+
widgetId: string | number;
|
|
5601
|
+
}>;
|
|
5602
|
+
export type PromoteWidgetToMasterMutation = {
|
|
5603
|
+
promoteWidgetToMaster: {
|
|
5604
|
+
widgetId: string;
|
|
5605
|
+
masterDashboardId: string;
|
|
5606
|
+
masterWidgetId: string;
|
|
5607
|
+
notices: Array<{
|
|
5608
|
+
code: Types.BigConsoleRestoreNoticeCode;
|
|
5609
|
+
pageName: string;
|
|
5610
|
+
widgetId: string;
|
|
5611
|
+
}>;
|
|
5612
|
+
};
|
|
5613
|
+
};
|
|
5599
5614
|
export type PushToCopiesMutationVariables = Exact<{
|
|
5600
5615
|
input: Types.BigConsolePushToCopiesInput;
|
|
5601
5616
|
}>;
|
|
@@ -5669,6 +5684,21 @@ export type RestoreDashboardToOriginalMutation = {
|
|
|
5669
5684
|
}>;
|
|
5670
5685
|
};
|
|
5671
5686
|
};
|
|
5687
|
+
export type RestoreWidgetToOriginalMutationVariables = Exact<{
|
|
5688
|
+
widgetId: string | number;
|
|
5689
|
+
}>;
|
|
5690
|
+
export type RestoreWidgetToOriginalMutation = {
|
|
5691
|
+
restoreWidgetToOriginal: {
|
|
5692
|
+
widgetId: string;
|
|
5693
|
+
dashboardId: string;
|
|
5694
|
+
masterDashboardId: string;
|
|
5695
|
+
notices: Array<{
|
|
5696
|
+
code: Types.BigConsoleRestoreNoticeCode;
|
|
5697
|
+
pageName: string;
|
|
5698
|
+
widgetId: string;
|
|
5699
|
+
}>;
|
|
5700
|
+
};
|
|
5701
|
+
};
|
|
5672
5702
|
export type SetDashboardAsMasterMutationVariables = Exact<{
|
|
5673
5703
|
id: string | number;
|
|
5674
5704
|
}>;
|
|
@@ -7588,6 +7618,8 @@ export type WidgetCoreFieldsFragment = {
|
|
|
7588
7618
|
cacheTTL: number | null;
|
|
7589
7619
|
metadata: Record<string, unknown> | null;
|
|
7590
7620
|
context: Record<string, unknown> | null;
|
|
7621
|
+
isInherited: boolean;
|
|
7622
|
+
isOverridden: boolean;
|
|
7591
7623
|
createdAt: string;
|
|
7592
7624
|
updatedAt: string;
|
|
7593
7625
|
positionResponsive: {
|
|
@@ -7640,6 +7672,8 @@ export type WidgetFullFieldsFragment = {
|
|
|
7640
7672
|
cacheTTL: number | null;
|
|
7641
7673
|
metadata: Record<string, unknown> | null;
|
|
7642
7674
|
context: Record<string, unknown> | null;
|
|
7675
|
+
isInherited: boolean;
|
|
7676
|
+
isOverridden: boolean;
|
|
7643
7677
|
createdAt: string;
|
|
7644
7678
|
updatedAt: string;
|
|
7645
7679
|
drilldown: {
|
|
@@ -7721,6 +7755,8 @@ export type WidgetListFieldsFragment = {
|
|
|
7721
7755
|
cacheTTL: number | null;
|
|
7722
7756
|
metadata: Record<string, unknown> | null;
|
|
7723
7757
|
context: Record<string, unknown> | null;
|
|
7758
|
+
isInherited: boolean;
|
|
7759
|
+
isOverridden: boolean;
|
|
7724
7760
|
createdAt: string;
|
|
7725
7761
|
updatedAt: string;
|
|
7726
7762
|
drilldown: {
|
|
@@ -7919,6 +7955,8 @@ export type CreateWidgetMutation = {
|
|
|
7919
7955
|
cacheTTL: number | null;
|
|
7920
7956
|
metadata: Record<string, unknown> | null;
|
|
7921
7957
|
context: Record<string, unknown> | null;
|
|
7958
|
+
isInherited: boolean;
|
|
7959
|
+
isOverridden: boolean;
|
|
7922
7960
|
createdAt: string;
|
|
7923
7961
|
updatedAt: string;
|
|
7924
7962
|
drilldown: {
|
|
@@ -8083,6 +8121,8 @@ export type DuplicateWidgetMutation = {
|
|
|
8083
8121
|
cacheTTL: number | null;
|
|
8084
8122
|
metadata: Record<string, unknown> | null;
|
|
8085
8123
|
context: Record<string, unknown> | null;
|
|
8124
|
+
isInherited: boolean;
|
|
8125
|
+
isOverridden: boolean;
|
|
8086
8126
|
createdAt: string;
|
|
8087
8127
|
updatedAt: string;
|
|
8088
8128
|
drilldown: {
|
|
@@ -8206,6 +8246,8 @@ export type MoveWidgetToPageMutation = {
|
|
|
8206
8246
|
cacheTTL: number | null;
|
|
8207
8247
|
metadata: Record<string, unknown> | null;
|
|
8208
8248
|
context: Record<string, unknown> | null;
|
|
8249
|
+
isInherited: boolean;
|
|
8250
|
+
isOverridden: boolean;
|
|
8209
8251
|
createdAt: string;
|
|
8210
8252
|
updatedAt: string;
|
|
8211
8253
|
drilldown: {
|
|
@@ -8405,6 +8447,8 @@ export type UpdateWidgetMutation = {
|
|
|
8405
8447
|
cacheTTL: number | null;
|
|
8406
8448
|
metadata: Record<string, unknown> | null;
|
|
8407
8449
|
context: Record<string, unknown> | null;
|
|
8450
|
+
isInherited: boolean;
|
|
8451
|
+
isOverridden: boolean;
|
|
8408
8452
|
createdAt: string;
|
|
8409
8453
|
updatedAt: string;
|
|
8410
8454
|
drilldown: {
|
|
@@ -8630,6 +8674,8 @@ export type GetWidgetQuery = {
|
|
|
8630
8674
|
cacheTTL: number | null;
|
|
8631
8675
|
metadata: Record<string, unknown> | null;
|
|
8632
8676
|
context: Record<string, unknown> | null;
|
|
8677
|
+
isInherited: boolean;
|
|
8678
|
+
isOverridden: boolean;
|
|
8633
8679
|
createdAt: string;
|
|
8634
8680
|
updatedAt: string;
|
|
8635
8681
|
drilldown: {
|
|
@@ -8816,6 +8862,8 @@ export type GetWidgetWithDataQuery = {
|
|
|
8816
8862
|
cacheTTL: number | null;
|
|
8817
8863
|
metadata: Record<string, unknown> | null;
|
|
8818
8864
|
context: Record<string, unknown> | null;
|
|
8865
|
+
isInherited: boolean;
|
|
8866
|
+
isOverridden: boolean;
|
|
8819
8867
|
createdAt: string;
|
|
8820
8868
|
updatedAt: string;
|
|
8821
8869
|
drilldown: {
|
|
@@ -9018,6 +9066,8 @@ export type ListWidgetsByDashboardQuery = {
|
|
|
9018
9066
|
cacheTTL: number | null;
|
|
9019
9067
|
metadata: Record<string, unknown> | null;
|
|
9020
9068
|
context: Record<string, unknown> | null;
|
|
9069
|
+
isInherited: boolean;
|
|
9070
|
+
isOverridden: boolean;
|
|
9021
9071
|
createdAt: string;
|
|
9022
9072
|
updatedAt: string;
|
|
9023
9073
|
drilldown: {
|
|
@@ -9101,6 +9151,8 @@ export type ListWidgetsForPageQuery = {
|
|
|
9101
9151
|
cacheTTL: number | null;
|
|
9102
9152
|
metadata: Record<string, unknown> | null;
|
|
9103
9153
|
context: Record<string, unknown> | null;
|
|
9154
|
+
isInherited: boolean;
|
|
9155
|
+
isOverridden: boolean;
|
|
9104
9156
|
createdAt: string;
|
|
9105
9157
|
updatedAt: string;
|
|
9106
9158
|
drilldown: {
|
|
@@ -9786,10 +9838,12 @@ export declare const GetFilterPresetsDocument: DocumentNode<GetFilterPresetsQuer
|
|
|
9786
9838
|
export declare const CreateLinkedCopyDocument: DocumentNode<CreateLinkedCopyMutation, CreateLinkedCopyMutationVariables>;
|
|
9787
9839
|
export declare const DetachDashboardDocument: DocumentNode<DetachDashboardMutation, DetachDashboardMutationVariables>;
|
|
9788
9840
|
export declare const LinkDashboardToMasterDocument: DocumentNode<LinkDashboardToMasterMutation, LinkDashboardToMasterMutationVariables>;
|
|
9841
|
+
export declare const PromoteWidgetToMasterDocument: DocumentNode<PromoteWidgetToMasterMutation, PromoteWidgetToMasterMutationVariables>;
|
|
9789
9842
|
export declare const PushToCopiesDocument: DocumentNode<PushToCopiesMutation, PushToCopiesMutationVariables>;
|
|
9790
9843
|
export declare const ResolveWidgetFlagDocument: DocumentNode<ResolveWidgetFlagMutation, ResolveWidgetFlagMutationVariables>;
|
|
9791
9844
|
export declare const RespondToDashboardLinkDocument: DocumentNode<RespondToDashboardLinkMutation, RespondToDashboardLinkMutationVariables>;
|
|
9792
9845
|
export declare const RestoreDashboardToOriginalDocument: DocumentNode<RestoreDashboardToOriginalMutation, RestoreDashboardToOriginalMutationVariables>;
|
|
9846
|
+
export declare const RestoreWidgetToOriginalDocument: DocumentNode<RestoreWidgetToOriginalMutation, RestoreWidgetToOriginalMutationVariables>;
|
|
9793
9847
|
export declare const SetDashboardAsMasterDocument: DocumentNode<SetDashboardAsMasterMutation, SetDashboardAsMasterMutationVariables>;
|
|
9794
9848
|
export declare const UnsetDashboardAsMasterDocument: DocumentNode<UnsetDashboardAsMasterMutation, UnsetDashboardAsMasterMutationVariables>;
|
|
9795
9849
|
export declare const FleetLinksDocument: DocumentNode<FleetLinksQuery, FleetLinksQueryVariables>;
|