bt-core-app 2.0.174 → 2.0.175
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/bt-core-app.js +2112 -2104
- package/dist/index.d.ts +6 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ export declare function appendUrl(originalVal?: string, additionalVal?: string,
|
|
|
120
120
|
export declare interface AuthItem {
|
|
121
121
|
children?: AuthItem[];
|
|
122
122
|
ignoreSuspension?: boolean;
|
|
123
|
-
permissions?:
|
|
123
|
+
permissions?: PermissionGroup | PermissionGroup[];
|
|
124
124
|
requiresAuth?: boolean;
|
|
125
125
|
subscriptions?: string[];
|
|
126
126
|
}
|
|
@@ -253,7 +253,7 @@ export declare interface BTAuth {
|
|
|
253
253
|
canView: (navName?: string) => boolean;
|
|
254
254
|
canViewPermit: (permit: string) => boolean;
|
|
255
255
|
credentials: RemovableRef<any>;
|
|
256
|
-
doShow: (subcodes?: string[], permissions?:
|
|
256
|
+
doShow: (subcodes?: string[], permissions?: PermissionGroup | PermissionGroup[], action?: 'view' | 'edit') => boolean;
|
|
257
257
|
doShowByNav: (navName?: string | AuthItem, includeChildren?: boolean) => boolean;
|
|
258
258
|
getAuthorizeUrl: (redirectPath?: string) => string;
|
|
259
259
|
getToken: (code?: string, state?: string) => Promise<void>;
|
|
@@ -1419,8 +1419,8 @@ export declare interface NavigationItem extends AuthItem {
|
|
|
1419
1419
|
name?: string;
|
|
1420
1420
|
/**the url path on top of the base microservice url */
|
|
1421
1421
|
path?: string;
|
|
1422
|
-
/**permissions that are required for this navItem. All these permissions must be met. */
|
|
1423
|
-
permissions?:
|
|
1422
|
+
/**permissions that are required for this navItem. All these permissions must be met. Must be either all strings or all string arrays */
|
|
1423
|
+
permissions?: PermissionGroup | PermissionGroup[];
|
|
1424
1424
|
/**for PLU stores only - defining what prop to cal window */
|
|
1425
1425
|
pluWindowProp?: string;
|
|
1426
1426
|
/**for PLU stores only - defining how many days to bunch requests in */
|
|
@@ -1500,6 +1500,8 @@ export declare interface PathOptions {
|
|
|
1500
1500
|
useLocalCache?: boolean;
|
|
1501
1501
|
}
|
|
1502
1502
|
|
|
1503
|
+
declare type PermissionGroup = string[];
|
|
1504
|
+
|
|
1503
1505
|
export declare interface PointerOrTouchEvent extends PointerEvent, TouchEvent {
|
|
1504
1506
|
}
|
|
1505
1507
|
|
package/package.json
CHANGED