@natoora-libs/drawer-menu 0.1.8-remove-groups-and-sites → 0.1.9
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/package.json +1 -1
- package/dist/index.d.cts +0 -110
- package/dist/index.d.ts +0 -110
package/package.json
CHANGED
package/dist/index.d.cts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
interface LeftDrawerProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
enabledFeatures: string[];
|
|
7
|
-
pinnedApps: Record<string, boolean>;
|
|
8
|
-
user: {
|
|
9
|
-
profile_picture: string;
|
|
10
|
-
first_name: string;
|
|
11
|
-
last_name: string;
|
|
12
|
-
username: string;
|
|
13
|
-
};
|
|
14
|
-
reloadOnNavigate?: boolean;
|
|
15
|
-
handleOpen: () => void;
|
|
16
|
-
handleClose: () => void;
|
|
17
|
-
onLogout: () => void;
|
|
18
|
-
onTogglePinnedApp: (name: string, new_value: boolean) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const LeftDrawer: ({ enabledFeatures, pinnedApps, open, user, reloadOnNavigate, handleClose, handleOpen, onLogout, onTogglePinnedApp, }: LeftDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
type PinnedItemsProps = {
|
|
23
|
-
enabledFeatures: string[];
|
|
24
|
-
pinnedApps: Record<string, boolean>;
|
|
25
|
-
};
|
|
26
|
-
declare const PinnedItems: ({ enabledFeatures, pinnedApps, }: PinnedItemsProps) => react_jsx_runtime.JSX.Element;
|
|
27
|
-
|
|
28
|
-
interface DrawerAppChild {
|
|
29
|
-
name: string;
|
|
30
|
-
routeName: string;
|
|
31
|
-
pinned: string;
|
|
32
|
-
url: string;
|
|
33
|
-
featureName?: string;
|
|
34
|
-
}
|
|
35
|
-
declare const useGetDrawerAppList: (enabledFeatures: string[]) => {
|
|
36
|
-
userSettingsUrl: string;
|
|
37
|
-
drawerAppList: {
|
|
38
|
-
apps: {
|
|
39
|
-
children: DrawerAppChild[] | undefined;
|
|
40
|
-
name: string;
|
|
41
|
-
routeName: string;
|
|
42
|
-
featureNames: string[];
|
|
43
|
-
pinned: string | null;
|
|
44
|
-
icon: ReactElement;
|
|
45
|
-
url: string;
|
|
46
|
-
}[];
|
|
47
|
-
groupName: string;
|
|
48
|
-
}[];
|
|
49
|
-
navigateTo: (url: string) => void | Promise<void>;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
declare const featureNames: {
|
|
53
|
-
readonly ACCOUNTS: "accounts";
|
|
54
|
-
readonly ADMIN: "admin";
|
|
55
|
-
readonly AIRCALL: "aircall";
|
|
56
|
-
readonly BULK_UPDATE: "product_bulk_update";
|
|
57
|
-
readonly CONTENT_MANAGEMENT: "content_management";
|
|
58
|
-
readonly CUSTOMERS: "customers";
|
|
59
|
-
readonly GOODS_IN: "goods_in";
|
|
60
|
-
readonly KANBAN: "kanban_cards";
|
|
61
|
-
readonly PRODUCTION_MANAGEMENT: "production_management";
|
|
62
|
-
readonly LOCATIONS: "locations";
|
|
63
|
-
readonly NOTIFICATIONS: "notifications";
|
|
64
|
-
readonly OPS_METRICS: "ops_metrics";
|
|
65
|
-
readonly ORDERS: "orders";
|
|
66
|
-
readonly PICKING_STATIONS: "picking_stations";
|
|
67
|
-
readonly PRICE_LIST: "price_list";
|
|
68
|
-
readonly PRODUCTS: "products";
|
|
69
|
-
readonly PROMO_CODES: "promo_codes";
|
|
70
|
-
readonly PURCHASE_ORDERS: "purchase_orders";
|
|
71
|
-
readonly QUALITY_CONTROL: "quality_control";
|
|
72
|
-
readonly REPORTS: "reports";
|
|
73
|
-
readonly RETAIL: "retail";
|
|
74
|
-
readonly RETURNS: "returns";
|
|
75
|
-
readonly SEARCH_CATEGORIES: "search_categories";
|
|
76
|
-
readonly SERVICE_DELIVERY: "service_delivery";
|
|
77
|
-
readonly SPECIAL_PRICES: "special_prices";
|
|
78
|
-
readonly STOCK: "stock";
|
|
79
|
-
readonly STOCK_MOVEMENTS: "stock_movements";
|
|
80
|
-
readonly SUPPLIERS: "suppliers";
|
|
81
|
-
readonly SUPPLIER_PRICES: "supplier_prices";
|
|
82
|
-
readonly USER_MANAGEMENT: "users";
|
|
83
|
-
};
|
|
84
|
-
declare function featuresAreEnabled({ enabledFeatures, featureNames, requireAll, }: {
|
|
85
|
-
enabledFeatures: string[];
|
|
86
|
-
featureNames: string[];
|
|
87
|
-
requireAll?: boolean;
|
|
88
|
-
}): boolean;
|
|
89
|
-
|
|
90
|
-
declare const uiFeatureNames: {
|
|
91
|
-
PURCHASE_ORDERS_REGIONS: string;
|
|
92
|
-
SUPPLIER_PORTAL_TAB: string;
|
|
93
|
-
SUPPLIER_PRICING_SECTION: string;
|
|
94
|
-
CUSTOMER_ESTIMATED_BASKET_SETTING: string;
|
|
95
|
-
ORDER_ISSUE_REPORTING: string;
|
|
96
|
-
CUSTOMER_PAYMENTS_SECTION: string;
|
|
97
|
-
CUSTOMER_DASHBOARD_TAB: string;
|
|
98
|
-
CUSTOMER_DETAILS_TAB: string;
|
|
99
|
-
CUSTOMER_TRANSPORT_TAB: string;
|
|
100
|
-
CUSTOMER_FINANCE_TAB: string;
|
|
101
|
-
CUSTOMER_ACTIVITY_TAB: string;
|
|
102
|
-
CUSTOMER_APP_TAB: string;
|
|
103
|
-
CUSTOMER_STANDING_ORDERS_TAB: string;
|
|
104
|
-
CUSTOMER_SUBSTITUTIONS_TAB: string;
|
|
105
|
-
CUSTOMER_PREFERENCES_TAB: string;
|
|
106
|
-
PRODUCT_PREFERENCES_SECTION: string;
|
|
107
|
-
};
|
|
108
|
-
declare const uiFeaturesAreEnabled: (enabledUIFeatures: string[] | undefined, feature: string) => boolean | undefined;
|
|
109
|
-
|
|
110
|
-
export { LeftDrawer, PinnedItems, featureNames, featuresAreEnabled, uiFeatureNames, uiFeaturesAreEnabled, useGetDrawerAppList };
|
package/dist/index.d.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
interface LeftDrawerProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
enabledFeatures: string[];
|
|
7
|
-
pinnedApps: Record<string, boolean>;
|
|
8
|
-
user: {
|
|
9
|
-
profile_picture: string;
|
|
10
|
-
first_name: string;
|
|
11
|
-
last_name: string;
|
|
12
|
-
username: string;
|
|
13
|
-
};
|
|
14
|
-
reloadOnNavigate?: boolean;
|
|
15
|
-
handleOpen: () => void;
|
|
16
|
-
handleClose: () => void;
|
|
17
|
-
onLogout: () => void;
|
|
18
|
-
onTogglePinnedApp: (name: string, new_value: boolean) => void;
|
|
19
|
-
}
|
|
20
|
-
declare const LeftDrawer: ({ enabledFeatures, pinnedApps, open, user, reloadOnNavigate, handleClose, handleOpen, onLogout, onTogglePinnedApp, }: LeftDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
-
|
|
22
|
-
type PinnedItemsProps = {
|
|
23
|
-
enabledFeatures: string[];
|
|
24
|
-
pinnedApps: Record<string, boolean>;
|
|
25
|
-
};
|
|
26
|
-
declare const PinnedItems: ({ enabledFeatures, pinnedApps, }: PinnedItemsProps) => react_jsx_runtime.JSX.Element;
|
|
27
|
-
|
|
28
|
-
interface DrawerAppChild {
|
|
29
|
-
name: string;
|
|
30
|
-
routeName: string;
|
|
31
|
-
pinned: string;
|
|
32
|
-
url: string;
|
|
33
|
-
featureName?: string;
|
|
34
|
-
}
|
|
35
|
-
declare const useGetDrawerAppList: (enabledFeatures: string[]) => {
|
|
36
|
-
userSettingsUrl: string;
|
|
37
|
-
drawerAppList: {
|
|
38
|
-
apps: {
|
|
39
|
-
children: DrawerAppChild[] | undefined;
|
|
40
|
-
name: string;
|
|
41
|
-
routeName: string;
|
|
42
|
-
featureNames: string[];
|
|
43
|
-
pinned: string | null;
|
|
44
|
-
icon: ReactElement;
|
|
45
|
-
url: string;
|
|
46
|
-
}[];
|
|
47
|
-
groupName: string;
|
|
48
|
-
}[];
|
|
49
|
-
navigateTo: (url: string) => void | Promise<void>;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
declare const featureNames: {
|
|
53
|
-
readonly ACCOUNTS: "accounts";
|
|
54
|
-
readonly ADMIN: "admin";
|
|
55
|
-
readonly AIRCALL: "aircall";
|
|
56
|
-
readonly BULK_UPDATE: "product_bulk_update";
|
|
57
|
-
readonly CONTENT_MANAGEMENT: "content_management";
|
|
58
|
-
readonly CUSTOMERS: "customers";
|
|
59
|
-
readonly GOODS_IN: "goods_in";
|
|
60
|
-
readonly KANBAN: "kanban_cards";
|
|
61
|
-
readonly PRODUCTION_MANAGEMENT: "production_management";
|
|
62
|
-
readonly LOCATIONS: "locations";
|
|
63
|
-
readonly NOTIFICATIONS: "notifications";
|
|
64
|
-
readonly OPS_METRICS: "ops_metrics";
|
|
65
|
-
readonly ORDERS: "orders";
|
|
66
|
-
readonly PICKING_STATIONS: "picking_stations";
|
|
67
|
-
readonly PRICE_LIST: "price_list";
|
|
68
|
-
readonly PRODUCTS: "products";
|
|
69
|
-
readonly PROMO_CODES: "promo_codes";
|
|
70
|
-
readonly PURCHASE_ORDERS: "purchase_orders";
|
|
71
|
-
readonly QUALITY_CONTROL: "quality_control";
|
|
72
|
-
readonly REPORTS: "reports";
|
|
73
|
-
readonly RETAIL: "retail";
|
|
74
|
-
readonly RETURNS: "returns";
|
|
75
|
-
readonly SEARCH_CATEGORIES: "search_categories";
|
|
76
|
-
readonly SERVICE_DELIVERY: "service_delivery";
|
|
77
|
-
readonly SPECIAL_PRICES: "special_prices";
|
|
78
|
-
readonly STOCK: "stock";
|
|
79
|
-
readonly STOCK_MOVEMENTS: "stock_movements";
|
|
80
|
-
readonly SUPPLIERS: "suppliers";
|
|
81
|
-
readonly SUPPLIER_PRICES: "supplier_prices";
|
|
82
|
-
readonly USER_MANAGEMENT: "users";
|
|
83
|
-
};
|
|
84
|
-
declare function featuresAreEnabled({ enabledFeatures, featureNames, requireAll, }: {
|
|
85
|
-
enabledFeatures: string[];
|
|
86
|
-
featureNames: string[];
|
|
87
|
-
requireAll?: boolean;
|
|
88
|
-
}): boolean;
|
|
89
|
-
|
|
90
|
-
declare const uiFeatureNames: {
|
|
91
|
-
PURCHASE_ORDERS_REGIONS: string;
|
|
92
|
-
SUPPLIER_PORTAL_TAB: string;
|
|
93
|
-
SUPPLIER_PRICING_SECTION: string;
|
|
94
|
-
CUSTOMER_ESTIMATED_BASKET_SETTING: string;
|
|
95
|
-
ORDER_ISSUE_REPORTING: string;
|
|
96
|
-
CUSTOMER_PAYMENTS_SECTION: string;
|
|
97
|
-
CUSTOMER_DASHBOARD_TAB: string;
|
|
98
|
-
CUSTOMER_DETAILS_TAB: string;
|
|
99
|
-
CUSTOMER_TRANSPORT_TAB: string;
|
|
100
|
-
CUSTOMER_FINANCE_TAB: string;
|
|
101
|
-
CUSTOMER_ACTIVITY_TAB: string;
|
|
102
|
-
CUSTOMER_APP_TAB: string;
|
|
103
|
-
CUSTOMER_STANDING_ORDERS_TAB: string;
|
|
104
|
-
CUSTOMER_SUBSTITUTIONS_TAB: string;
|
|
105
|
-
CUSTOMER_PREFERENCES_TAB: string;
|
|
106
|
-
PRODUCT_PREFERENCES_SECTION: string;
|
|
107
|
-
};
|
|
108
|
-
declare const uiFeaturesAreEnabled: (enabledUIFeatures: string[] | undefined, feature: string) => boolean | undefined;
|
|
109
|
-
|
|
110
|
-
export { LeftDrawer, PinnedItems, featureNames, featuresAreEnabled, uiFeatureNames, uiFeaturesAreEnabled, useGetDrawerAppList };
|