@vc-shell/framework 1.1.77 → 1.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/core/services/dashboard-service.ts +5 -11
  3. package/dist/core/services/dashboard-service.d.ts.map +1 -1
  4. package/dist/framework.js +2541 -2520
  5. package/dist/index.css +1 -1
  6. package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
  7. package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts +1 -0
  8. package/dist/shared/components/draggable-dashboard/composables/useDashboardGrid.d.ts.map +1 -1
  9. package/dist/shared/components/draggable-dashboard/composables/useLayoutPersistence.d.ts +1 -0
  10. package/dist/shared/components/draggable-dashboard/composables/useLayoutPersistence.d.ts.map +1 -1
  11. package/dist/shared/components/draggable-dashboard/composables/useWidgetLayout.d.ts +1 -0
  12. package/dist/shared/components/draggable-dashboard/composables/useWidgetLayout.d.ts.map +1 -1
  13. package/dist/tsconfig.tsbuildinfo +1 -1
  14. package/dist/ui/components/molecules/vc-field/vc-field.vue.d.ts.map +1 -1
  15. package/dist/ui/components/molecules/vc-radio-button/vc-radio-button.vue.d.ts.map +1 -1
  16. package/package.json +4 -4
  17. package/shared/components/draggable-dashboard/DraggableDashboard.vue +23 -0
  18. package/shared/components/draggable-dashboard/composables/useDashboardGrid.ts +25 -0
  19. package/shared/components/draggable-dashboard/composables/useLayoutPersistence.ts +10 -0
  20. package/shared/components/draggable-dashboard/composables/useWidgetLayout.ts +39 -0
  21. package/ui/components/molecules/vc-field/vc-field.vue +1 -6
  22. package/ui/components/molecules/vc-radio-button/vc-radio-button.vue +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableDashboard.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/draggable-dashboard/DraggableDashboard.vue"],"names":[],"mappings":";;;;;;AAknBA,wBAMG"}
1
+ {"version":3,"file":"DraggableDashboard.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/draggable-dashboard/DraggableDashboard.vue"],"names":[],"mappings":";;;;;;AAgqBA,wBAMG"}
@@ -16,5 +16,6 @@ export declare function useDashboardGrid(): {
16
16
  arrangeWidgetsInRows: (widgetsToArrange: IDashboardWidget[]) => void;
17
17
  initializeWithBuiltInPositions: () => boolean;
18
18
  initializeLayout: () => void;
19
+ handleNewWidget: (widget: IDashboardWidget) => void;
19
20
  };
20
21
  //# sourceMappingURL=useDashboardGrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDashboardGrid.d.ts","sourceRoot":"","sources":["../../../../../shared/components/draggable-dashboard/composables/useDashboardGrid.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAA2B,MAAM,UAAU,CAAC;AAS1E;;;;;;GAMG;AACH,wBAAgB,gBAAgB;;;;uBAmBN,MAAM;oCAOO,IAAI;sCASF,OAAO;6CASE,gBAAgB,EAAE,KAAG,IAAI;0CAS9B,OAAO;4BAOrB,IAAI;EA0BlC"}
1
+ {"version":3,"file":"useDashboardGrid.d.ts","sourceRoot":"","sources":["../../../../../shared/components/draggable-dashboard/composables/useDashboardGrid.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAA2B,MAAM,UAAU,CAAC;AAS1E;;;;;;GAMG;AACH,wBAAgB,gBAAgB;;;;uBAmBN,MAAM;oCAOO,IAAI;sCASF,OAAO;6CASE,gBAAgB,EAAE,KAAG,IAAI;0CAS9B,OAAO;4BAOrB,IAAI;8BA2BA,gBAAgB,KAAG,IAAI;EAwBzD"}
@@ -15,5 +15,6 @@ export declare function useLayoutPersistence(storageKey: string, updateCallback:
15
15
  }>(widgets: T[]) => boolean;
16
16
  clearSavedLayout: () => void;
17
17
  hasSavedLayout: () => boolean;
18
+ getSavedPositions: () => Record<string, DashboardWidgetPosition>;
18
19
  };
19
20
  //# sourceMappingURL=useLayoutPersistence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLayoutPersistence.d.ts","sourceRoot":"","sources":["../../../../../shared/components/draggable-dashboard/composables/useLayoutPersistence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,KAAK,IAAI;yBAUjD,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAAG,IAAI;iBAsBnD,CAAC,SAAS;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,WAAW,CAAC,EAAE,KAAG,OAAO;4BAyBvC,IAAI;0BAON,OAAO;EAUnC"}
1
+ {"version":3,"file":"useLayoutPersistence.d.ts","sourceRoot":"","sources":["../../../../../shared/components/draggable-dashboard/composables/useLayoutPersistence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,KAAK,IAAI;yBAUjD,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAAG,IAAI;iBAsBnD,CAAC,SAAS;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,WAAW,CAAC,EAAE,KAAG,OAAO;4BAkCvC,IAAI;0BAON,OAAO;6BAdJ,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;EAyBtE"}
@@ -10,5 +10,6 @@ export declare function useWidgetLayout(updatePositionCallback: (widgetId: strin
10
10
  findOptimalPosition: (widget: IDashboardWidget, occupiedCells: Set<string>, maxRows: number) => DashboardWidgetPosition;
11
11
  arrangeWidgetsInRows: (widgetsToArrange: IDashboardWidget[], allWidgets: IDashboardWidget[], layout: Map<string, DashboardWidgetPosition>) => void;
12
12
  initializeWithBuiltInPositions: (widgets: IDashboardWidget[], layout: Map<string, DashboardWidgetPosition>) => boolean;
13
+ placeNewWidgets: (newWidgets: IDashboardWidget[], allWidgets: IDashboardWidget[], layout: Map<string, DashboardWidgetPosition>) => void;
13
14
  };
14
15
  //# sourceMappingURL=useWidgetLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWidgetLayout.d.ts","sourceRoot":"","sources":["../../../../../shared/components/draggable-dashboard/composables/useWidgetLayout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAgB1E;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,KAAK,IAAI;+BAYzG,gBAAgB,WACf,gBAAgB,EAAE,UACnB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,uBAAuB;kCAiDhB,gBAAgB,iBACT,GAAG,CAAC,MAAM,CAAC,WACjB,MAAM,KACd,uBAAuB;6CA+CN,gBAAgB,EAAE,cACxB,gBAAgB,EAAE,UACtB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,IAAI;8CA4CI,gBAAgB,EAAE,UACnB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,OAAO;EA6EX"}
1
+ {"version":3,"file":"useWidgetLayout.d.ts","sourceRoot":"","sources":["../../../../../shared/components/draggable-dashboard/composables/useWidgetLayout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAgB1E;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,KAAK,IAAI;+BAYzG,gBAAgB,WACf,gBAAgB,EAAE,UACnB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,uBAAuB;kCAiDhB,gBAAgB,iBACT,GAAG,CAAC,MAAM,CAAC,WACjB,MAAM,KACd,uBAAuB;6CA+CN,gBAAgB,EAAE,cACxB,gBAAgB,EAAE,UACtB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,IAAI;8CA4CI,gBAAgB,EAAE,UACnB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,OAAO;kCA+EI,gBAAgB,EAAE,cAClB,gBAAgB,EAAE,UACtB,GAAG,CAAC,MAAM,EAAE,uBAAuB,CAAC,KAC3C,IAAI;EAkCR"}