bt-core-app 1.4.38 → 1.4.39

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/index.d.ts CHANGED
@@ -69,13 +69,29 @@ export declare type BladeDensity = 'default' | 'comfortable' | 'compact';
69
69
 
70
70
  export declare type BladeMode = 'new' | 'view' | 'edit';
71
71
 
72
+ export declare interface BladeProps {
73
+ bladeID?: string;
74
+ bladeName?: string;
75
+ density?: BladeDensity;
76
+ mobileBreakpoint?: number;
77
+ variant?: BladeVariant;
78
+ }
79
+
80
+ /**
81
+ Inline: merges toolbars | much more compact | hides navigation
82
+ Page: shows navigation and page settings
83
+ Blade: shows blade minimize, maximize, close, and pins as a column
84
+ Free-moving: show blade as draggable and resizable with minimize, maximize, and close and pinning
85
+ */
86
+ export declare type BladeVariant = 'page' | 'blade' | 'freestyle' | 'inline';
87
+
72
88
  /**
73
89
  Inline: merges toolbars | much more compact | hides navigation
74
90
  Page: shows navigation and page settings
75
91
  Blade: shows blade minimize, maximize, close, and pins as a column
76
92
  Free-moving: show blade as draggable and resizable with minimize, maximize, and close and pinning
77
93
  */
78
- export declare type BladeVariant = 'page' | 'blade' | 'freestyle' | 'inline' | 'pane';
94
+ declare type BladeVariant_2 = 'page' | 'blade' | 'freestyle' | 'inline' | 'pane';
79
95
 
80
96
  export declare interface BTActions {
81
97
  actionLoadingMsg: ShallowRef<string | undefined>;
@@ -539,7 +555,6 @@ export declare interface ItemProps {
539
555
  item?: any;
540
556
  itemID?: string;
541
557
  loadingMsg?: string;
542
- mode?: BladeMode;
543
558
  nav?: string;
544
559
  onCanDelete?: (item: any) => boolean;
545
560
  onCanDeleteAsync?: OnCanDoAsync;
@@ -1038,6 +1053,11 @@ export declare function useAuth(): BTAuth;
1038
1053
 
1039
1054
  export declare function useAuthUrl(): string;
1040
1055
 
1056
+ export declare function useBladeUI(bladeProps: BladeProps, blade: Ref<ComponentPublicInstance | null>, handle: Ref<ComponentPublicInstance | null>): {
1057
+ isMobile: Ref<boolean>;
1058
+ variant: Ref<BladeVariant | undefined>;
1059
+ };
1060
+
1041
1061
  export declare function useCosmetics(): BTCosmetics;
1042
1062
 
1043
1063
  export declare interface UseCosmeticsOptions<T extends BaseCosmeticTheme> {
@@ -1174,7 +1194,7 @@ export declare interface UseItemOptions {
1174
1194
  * @param options
1175
1195
  */
1176
1196
  export declare function useList(props: ListProps, emit?: ListEvents, options?: UseListOptions): {
1177
- add: (variant: BladeVariant) => void;
1197
+ add: (variant: BladeVariant_2) => void;
1178
1198
  asyncItems: Ref<any[]>;
1179
1199
  currentPage: Ref<number>;
1180
1200
  deleteItem: (dItem: MaybeRefOrGetter<any>) => void;
@@ -1239,7 +1259,7 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
1239
1259
  restoreItem: (dItem: MaybeRefOrGetter<any>) => void;
1240
1260
  searchString: Ref<string | undefined>;
1241
1261
  selectedFilters: Ref<number[]>;
1242
- selectItem: (rItem: any, variant: BladeVariant) => void;
1262
+ selectItem: (rItem: any, variant: BladeVariant_2) => void;
1243
1263
  showError: ShallowRef<boolean>;
1244
1264
  showInactive: Ref<boolean>;
1245
1265
  showSearch: ShallowRef<boolean>;
@@ -1313,8 +1333,8 @@ export declare function usePWA(): BTPWA;
1313
1333
 
1314
1334
  export declare function useResizable(target: MaybeRefOrGetter_2<ComponentPublicInstance | null>, options?: UseResizeOptions): {
1315
1335
  resizingIsOn: Ref<boolean>;
1316
- turnResizingOn: (handles?: ResizeHandle[], variant?: BladeVariant) => void;
1317
- turnResizingOff: (variant?: BladeVariant | undefined) => void;
1336
+ turnResizingOn: (handles?: ResizeHandle[], variant?: BladeVariant_2) => void;
1337
+ turnResizingOff: (variant?: BladeVariant_2 | undefined) => void;
1318
1338
  };
1319
1339
 
1320
1340
  export declare interface UseResizeOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.38",
3
+ "version": "1.4.39",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {