@myparcel-dev/pdk-admin-js 1.14.2 → 2.0.0

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 (26) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/ChildProductSettings-s8z5afQ0.js +4 -0
  3. package/dist/Modals-WFWEKC20.js +4 -0
  4. package/dist/Notifications-mywk4f35.js +4 -0
  5. package/dist/OrderBox-CQNS7zO9.js +4 -0
  6. package/dist/OrderListItem-DH0iYnG8.js +4 -0
  7. package/dist/{OrderModeOrderListItem-Df7qzieL.js → OrderModeOrderListItem-CnEBPTEC.js} +20 -15
  8. package/dist/PluginSettings-ymxANIm1.js +4 -0
  9. package/dist/{PrintOptionsModalForm-mNOwCJGu.js → PrintOptionsModalForm-BUGvrOwt.js} +1 -1
  10. package/dist/ProductSettings-CEHnUs2T.js +4 -0
  11. package/dist/{ShipmentLabel.vue_vue_type_script_setup_true_lang-LyXmsMB7.js → ShipmentLabel.vue_vue_type_script_setup_true_lang-CmhEHRaP.js} +2 -2
  12. package/dist/{ShipmentModeOrderListItem-1Fj_y2ET.js → ShipmentModeOrderListItem-BVzk32iG.js} +2 -2
  13. package/dist/{ShipmentOptionsModalForm-BJLbTAxc.js → ShipmentOptionsModalForm-INoRc2Gs.js} +1 -1
  14. package/dist/{ShipmentTableBox-DHjYGaMy.js → ShipmentTableBox-CzmZ6Xt4.js} +1 -1
  15. package/dist/{index-Dp-JKnen.js → index-BfK2d6Yu.js} +1218 -623
  16. package/dist/index.js +164 -157
  17. package/package.json +2 -2
  18. package/src/__tests__/__snapshots__/exports.spec.ts.snap +8 -1
  19. package/tsconfig.base.json +3 -0
  20. package/dist/ChildProductSettings-BPyPkZXH.js +0 -4
  21. package/dist/Modals-9_68MyUT.js +0 -4
  22. package/dist/Notifications-D9VEVf0q.js +0 -4
  23. package/dist/OrderBox-DZEddeXm.js +0 -4
  24. package/dist/OrderListItem-SuUMLy47.js +0 -4
  25. package/dist/PluginSettings-BCJWQyay.js +0 -4
  26. package/dist/ProductSettings-BQXxM91a.js +0 -4
package/dist/index.js CHANGED
@@ -1,171 +1,178 @@
1
- import { Y, ap, aq, cs, S, ar, A, as, ct, J, ab, az, aA, aB, aC, aD, aE, aF, aG, aH, aJ, cu, aN, aO, aP, ac, at, ai, ad, cm, cn, a5, aR, aj, ag, ah, bI, bJ, ak, al, B, _, C, Z, cr, cp, am, cl, an, ao, cq, co, au, aT, aV, c5, aW, c6, c7, aS, aU, c8, c9, bM, bP, ca, bS, cb, cc, cd, ce, cf, bQ, bR, aX, aQ, bV, bW, ci, av, aw, ax, X, bX, V, W, a1, a0, $, bY, bZ, aY, bO, ay, aI, cg, cj, ch, R, c0, b_, c1, b$, bT, bU, bN, aZ, h, b0, b1, bD, bo, by, bE, bq, b2, b3, b3 as b32, aK, b4, b5, bt, bz, bF, bG, bH, bK, bL, aL, aM, b6, b7, b8, b9, I, ba, bb, bc, bd, a_, be, a$, H, u, bC, bu, bA, bf, n, bg, bh, bi, bj, br, bs, bk, bl, bm, bp, bv, bw, bx, bB, bn, ck, c3, c4, c2 } from "./index-Dp-JKnen.js";
1
+ import { Z, as, at, cz, S, au, A, av, cn, cA, J, ae, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aM, cB, aQ, aR, X, aS, co, af, aw, al, ag, c0, ct, cu, Y, a8, aU, am, aj, ak, bL, bM, an, ao, cm, B, _, C, $, cy, cw, ap, cs, aq, ar, cx, cv, ax, aW, aY, c9, aZ, ca, cb, aV, aX, cc, cd, bP, bS, ce, bV, cf, cg, ch, ci, cj, bT, bU, a_, aT, bY, bZ, cp, ay, az, aA, a2, b_, W, a4, a3, a1, a0, b$, c1, a$, bR, aB, aL, ck, cq, cl, R, c4, c2, c5, c3, bW, bX, bQ, b0, h, b3, b4, bG, br, bB, bH, bt, b5, b6, b6 as b62, aN, b7, b8, bw, bC, bI, bJ, bK, bN, bO, aO, aP, b9, ba, bb, bc, I, bd, be, bf, bg, b1, bh, b2, H, U, u, bF, bx, bD, bi, n, bj, bk, bl, bm, bu, bv, bn, bo, bp, bs, by, bz, bA, bE, bq, cr, c7, c8, c6 } from "./index-BfK2d6Yu.js";
2
2
  export {
3
- Y as ActionButton,
4
- ap as AdminAction,
5
- aq as AdminComponent,
6
- cs as AdminContextKey,
3
+ Z as ActionButton,
4
+ as as AdminAction,
5
+ at as AdminComponent,
6
+ cz as AdminContextKey,
7
7
  S as AdminIcon,
8
- ar as AdminInstanceContextKey,
8
+ au as AdminInstanceContextKey,
9
9
  A as AdminModalKey,
10
- as as AdminView,
11
- ct as BackendEndpoint,
10
+ av as AdminView,
11
+ cn as BOX_MODE_ACTIONS,
12
+ cA as BackendEndpoint,
12
13
  J as BulkSelectCheckbox,
13
- ab as ChildProductSettingsView,
14
- az as FORM_KEYS,
15
- aA as FORM_KEY_ACCOUNT_SETTINGS,
16
- aB as FORM_KEY_CHILD_PRODUCT_SETTINGS,
17
- aC as FORM_KEY_MODAL,
18
- aD as FORM_KEY_MODAL_PRINT_OPTIONS,
19
- aE as FORM_KEY_MODAL_RETURN_OPTIONS,
20
- aF as FORM_KEY_MODAL_SHIPMENT_OPTIONS,
21
- aG as FORM_KEY_PLUGIN_SETTINGS,
22
- aH as FORM_KEY_PRODUCT_SETTINGS,
23
- aJ as FormHook,
24
- cu as FrontendEndpoint,
25
- aN as INJECT_ADMIN_INSTANCE,
26
- aO as INJECT_GLOBAL_PDK_ADMIN,
27
- aP as LogLevel,
28
- ac as ModalsView,
29
- at as NotificationCategory,
30
- ai as NotificationContainer,
31
- ad as NotificationsView,
32
- cm as OrderBoxView,
33
- cn as OrderListItemView,
34
- a5 as PackageType,
35
- aR as PdkAdmin,
36
- aj as PlainElement,
37
- ag as PluginSettingsView,
38
- ah as ProductSettingsView,
39
- bI as QUERY_KEY_ORDER,
40
- bJ as QUERY_KEY_SHIPMENT,
41
- ak as ResetButton,
42
- al as ReturnsForm,
14
+ ae as ChildProductSettingsView,
15
+ aC as FORM_KEYS,
16
+ aD as FORM_KEY_ACCOUNT_SETTINGS,
17
+ aE as FORM_KEY_CHILD_PRODUCT_SETTINGS,
18
+ aF as FORM_KEY_MODAL,
19
+ aG as FORM_KEY_MODAL_PRINT_OPTIONS,
20
+ aH as FORM_KEY_MODAL_RETURN_OPTIONS,
21
+ aI as FORM_KEY_MODAL_SHIPMENT_OPTIONS,
22
+ aJ as FORM_KEY_PLUGIN_SETTINGS,
23
+ aK as FORM_KEY_PRODUCT_SETTINGS,
24
+ aM as FormHook,
25
+ cB as FrontendEndpoint,
26
+ aQ as INJECT_ADMIN_INSTANCE,
27
+ aR as INJECT_GLOBAL_PDK_ADMIN,
28
+ X as LIST_ITEM_MODE_ACTIONS,
29
+ aS as LogLevel,
30
+ co as MODAL_MODE_ACTIONS,
31
+ af as ModalsView,
32
+ aw as NotificationCategory,
33
+ al as NotificationContainer,
34
+ ag as NotificationsView,
35
+ c0 as ORDER_VIEW_IN_BACKOFFICE_ID,
36
+ ct as OrderBoxView,
37
+ cu as OrderListItemView,
38
+ Y as OrderMode,
39
+ a8 as PackageType,
40
+ aU as PdkAdmin,
41
+ am as PlainElement,
42
+ aj as PluginSettingsView,
43
+ ak as ProductSettingsView,
44
+ bL as QUERY_KEY_ORDER,
45
+ bM as QUERY_KEY_SHIPMENT,
46
+ an as ResetButton,
47
+ ao as ReturnsForm,
48
+ cm as STORE_MODE_ACTIONS,
43
49
  B as ShipmentBarcode,
44
50
  _ as ShipmentOptionsForm,
45
51
  C as ShipmentStatus,
46
- Z as Size,
47
- cr as SortType,
48
- cp as Status,
49
- am as StatusIndicator,
50
- cl as StopActionHandler,
51
- an as SubmitButton,
52
- ao as TabNavigation,
53
- cq as TriState,
54
- co as Variant,
55
- au as allAdminComponentNames,
56
- aT as createAdminConfig,
57
- aV as createFormElement,
58
- c5 as createHandlerWithParameters,
59
- aW as createLogger,
60
- c6 as createMutationHandler,
61
- c7 as createOrdersMutationHandler,
62
- aS as createPdkAdmin,
63
- aU as createPdkAdminPlugin,
64
- c8 as createQueryHandler,
65
- c9 as createShipmentsMutationHandler,
66
- bM as defineAction,
67
- bP as deleteAccountAction,
68
- ca as doMutate,
69
- bS as downloadLogsAction,
70
- cb as executeAction,
71
- cc as executeAfterHandle,
72
- cd as executeBeforeHandle,
73
- ce as executeHandler,
74
- cf as executeNextAction,
75
- bQ as fetchDynamicContextAction,
76
- bR as fetchPluginSettingsViewContextAction,
77
- aX as generateFieldId,
78
- aQ as getActionIdentifier,
79
- bV as modalCloseAction,
80
- bW as modalSubmitFormAction,
81
- ci as openOrPrintPdf,
82
- av as optionalAdminActionContainerComponentNames,
83
- aw as optionalAdminComponentNames,
84
- ax as optionalAdminPlainWrapperComponentNames,
85
- X as orderExportAction,
86
- bX as orderExportToShipmentsAction,
87
- V as orderViewInBackofficeAction,
88
- W as ordersEditAction,
89
- a1 as ordersExportPrintShipmentsAction,
90
- a0 as ordersFetchAction,
91
- $ as ordersPrintAction,
92
- bY as ordersUpdateAction,
93
- bZ as pluginSettingsUpdateAction,
94
- aY as prefixComponent,
95
- bO as refreshAccountAction,
96
- ay as requiredAdminComponentNames,
97
- aI as resolveFormComponent,
98
- cg as resolveOrderParameters,
99
- cj as resolvePrintParameters,
100
- ch as resolveQuerySuffix,
52
+ $ as Size,
53
+ cy as SortType,
54
+ cw as Status,
55
+ ap as StatusIndicator,
56
+ cs as StopActionHandler,
57
+ aq as SubmitButton,
58
+ ar as TabNavigation,
59
+ cx as TriState,
60
+ cv as Variant,
61
+ ax as allAdminComponentNames,
62
+ aW as createAdminConfig,
63
+ aY as createFormElement,
64
+ c9 as createHandlerWithParameters,
65
+ aZ as createLogger,
66
+ ca as createMutationHandler,
67
+ cb as createOrdersMutationHandler,
68
+ aV as createPdkAdmin,
69
+ aX as createPdkAdminPlugin,
70
+ cc as createQueryHandler,
71
+ cd as createShipmentsMutationHandler,
72
+ bP as defineAction,
73
+ bS as deleteAccountAction,
74
+ ce as doMutate,
75
+ bV as downloadLogsAction,
76
+ cf as executeAction,
77
+ cg as executeAfterHandle,
78
+ ch as executeBeforeHandle,
79
+ ci as executeHandler,
80
+ cj as executeNextAction,
81
+ bT as fetchDynamicContextAction,
82
+ bU as fetchPluginSettingsViewContextAction,
83
+ a_ as generateFieldId,
84
+ aT as getActionIdentifier,
85
+ bY as modalCloseAction,
86
+ bZ as modalSubmitFormAction,
87
+ cp as openOrPrintPdf,
88
+ ay as optionalAdminActionContainerComponentNames,
89
+ az as optionalAdminComponentNames,
90
+ aA as optionalAdminPlainWrapperComponentNames,
91
+ a2 as orderExportAction,
92
+ b_ as orderExportToShipmentsAction,
93
+ W as orderViewInBackofficeAction,
94
+ a4 as ordersEditAction,
95
+ a3 as ordersExportPrintShipmentsAction,
96
+ a1 as ordersFetchAction,
97
+ a0 as ordersPrintAction,
98
+ b$ as ordersUpdateAction,
99
+ c1 as pluginSettingsUpdateAction,
100
+ a$ as prefixComponent,
101
+ bR as refreshAccountAction,
102
+ aB as requiredAdminComponentNames,
103
+ aL as resolveFormComponent,
104
+ ck as resolveOrderParameters,
105
+ cq as resolvePrintParameters,
106
+ cl as resolveQuerySuffix,
101
107
  R as shipmentActions,
102
- c0 as shipmentsDeleteAction,
103
- b_ as shipmentsExportReturnAction,
104
- c1 as shipmentsPrintAction,
105
- b$ as shipmentsUpdateAction,
106
- bT as switchToAcceptanceApiAction,
107
- bU as switchToProductionApiAction,
108
- bN as updateAccountAction,
109
- aZ as useActionStore,
108
+ c4 as shipmentsDeleteAction,
109
+ c2 as shipmentsExportReturnAction,
110
+ c5 as shipmentsPrintAction,
111
+ c3 as shipmentsUpdateAction,
112
+ bW as switchToAcceptanceApiAction,
113
+ bX as switchToProductionApiAction,
114
+ bQ as updateAccountAction,
115
+ b0 as useActionStore,
110
116
  h as useAdminConfig,
111
- b0 as useAppInfo,
112
- b1 as useCheckboxGroupContext,
113
- bD as useCreateWebhooksMutation,
114
- bo as useDeleteAccountMutation,
115
- by as useDeleteShipmentsMutation,
116
- bE as useDeleteWebhooksMutation,
117
- bq as useDownloadLogsMutation,
118
- b2 as useDropOffInputContext,
119
- b3 as useDropdownButtonContext,
120
- b32 as useDropdownData,
121
- aK as useElement,
122
- b4 as useElementContext,
123
- b5 as useElementOptions,
124
- bt as useExportOrdersMutation,
125
- bz as useExportReturnMutation,
126
- bF as useFetchContextQuery,
127
- bG as useFetchOrdersQuery,
128
- bH as useFetchProductsQuery,
129
- bK as useFetchShipmentsQuery,
130
- bL as useFetchWebhooksQuery,
131
- aL as useForm,
132
- aM as useFormBuilder,
133
- b6 as useFormatter,
134
- b7 as useGlobalContext,
135
- b8 as useGlobalPdkAdmin,
136
- b9 as useInputWithOptionsContext,
117
+ b3 as useAppInfo,
118
+ b4 as useCheckboxGroupContext,
119
+ bG as useCreateWebhooksMutation,
120
+ br as useDeleteAccountMutation,
121
+ bB as useDeleteShipmentsMutation,
122
+ bH as useDeleteWebhooksMutation,
123
+ bt as useDownloadLogsMutation,
124
+ b5 as useDropOffInputContext,
125
+ b6 as useDropdownButtonContext,
126
+ b62 as useDropdownData,
127
+ aN as useElement,
128
+ b7 as useElementContext,
129
+ b8 as useElementOptions,
130
+ bw as useExportOrdersMutation,
131
+ bC as useExportReturnMutation,
132
+ bI as useFetchContextQuery,
133
+ bJ as useFetchOrdersQuery,
134
+ bK as useFetchProductsQuery,
135
+ bN as useFetchShipmentsQuery,
136
+ bO as useFetchWebhooksQuery,
137
+ aO as useForm,
138
+ aP as useFormBuilder,
139
+ b9 as useFormatter,
140
+ ba as useGlobalContext,
141
+ bb as useGlobalPdkAdmin,
142
+ bc as useInputWithOptionsContext,
137
143
  I as useLanguage,
138
- ba as useLoadMore,
139
- bb as useLogger,
140
- bc as useModalContext,
141
- bd as useModalElementContext,
142
- a_ as useModalStore,
143
- be as useMultiSelectInputContext,
144
- a$ as useNotificationStore,
144
+ bd as useLoadMore,
145
+ be as useLogger,
146
+ bf as useModalContext,
147
+ bg as useModalElementContext,
148
+ b1 as useModalStore,
149
+ bh as useMultiSelectInputContext,
150
+ b2 as useNotificationStore,
145
151
  H as useOrderData,
152
+ U as useOrderMode,
146
153
  u as useOrdersData,
147
- bC as usePdkMutation,
148
- bu as usePrintOrdersMutation,
149
- bA as usePrintShipmentsMutation,
150
- bf as useProductData,
154
+ bF as usePdkMutation,
155
+ bx as usePrintOrdersMutation,
156
+ bD as usePrintShipmentsMutation,
157
+ bi as useProductData,
151
158
  n as useQueryStore,
152
- bg as useRadioGroupContext,
153
- bh as useSelectInputContext,
154
- bi as useShippingMethodsInputContext,
155
- bj as useStoreQuery,
156
- br as useSwitchToAcceptanceApiMutation,
157
- bs as useSwitchToProductionApiMutation,
158
- bk as useTableContext,
159
- bl as useToggleInputContext,
160
- bm as useTriStateInputContext,
161
- bp as useUpdateAccountMutation,
162
- bv as useUpdateOrdersMutation,
163
- bw as useUpdatePluginSettingsMutation,
164
- bx as useUpdateProductSettingsMutation,
165
- bB as useUpdateShipmentsMutation,
166
- bn as useWeekdays,
167
- ck as waitForLabelPrompt,
168
- c3 as webhooksCreateAction,
169
- c4 as webhooksDeleteAction,
170
- c2 as webhooksFetchAction
159
+ bj as useRadioGroupContext,
160
+ bk as useSelectInputContext,
161
+ bl as useShippingMethodsInputContext,
162
+ bm as useStoreQuery,
163
+ bu as useSwitchToAcceptanceApiMutation,
164
+ bv as useSwitchToProductionApiMutation,
165
+ bn as useTableContext,
166
+ bo as useToggleInputContext,
167
+ bp as useTriStateInputContext,
168
+ bs as useUpdateAccountMutation,
169
+ by as useUpdateOrdersMutation,
170
+ bz as useUpdatePluginSettingsMutation,
171
+ bA as useUpdateProductSettingsMutation,
172
+ bE as useUpdateShipmentsMutation,
173
+ bq as useWeekdays,
174
+ cr as waitForLabelPrompt,
175
+ c7 as webhooksCreateAction,
176
+ c8 as webhooksDeleteAction,
177
+ c6 as webhooksFetchAction
171
178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myparcel-dev/pdk-admin-js",
3
- "version": "1.14.2",
3
+ "version": "2.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/myparcelnl/js-pdk.git",
@@ -29,7 +29,7 @@
29
29
  "test:update": "run ws:test:update \"$(pwd)\""
30
30
  },
31
31
  "dependencies": {
32
- "@myparcel-dev/pdk-admin": "^1.14.2"
32
+ "@myparcel-dev/pdk-admin": "^2.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
@@ -10,6 +10,7 @@ exports[`exports > exports from index.ts 1`] = `
10
10
  "AdminInstanceContextKey",
11
11
  "AdminModalKey",
12
12
  "AdminView",
13
+ "BOX_MODE_ACTIONS",
13
14
  "BackendEndpoint",
14
15
  "BulkSelectCheckbox",
15
16
  "ChildProductSettingsView",
@@ -26,13 +27,17 @@ exports[`exports > exports from index.ts 1`] = `
26
27
  "FrontendEndpoint",
27
28
  "INJECT_ADMIN_INSTANCE",
28
29
  "INJECT_GLOBAL_PDK_ADMIN",
30
+ "LIST_ITEM_MODE_ACTIONS",
29
31
  "LogLevel",
32
+ "MODAL_MODE_ACTIONS",
30
33
  "ModalsView",
31
34
  "NotificationCategory",
32
35
  "NotificationContainer",
33
36
  "NotificationsView",
37
+ "ORDER_VIEW_IN_BACKOFFICE_ID",
34
38
  "OrderBoxView",
35
39
  "OrderListItemView",
40
+ "OrderMode",
36
41
  "PackageType",
37
42
  "PdkAdmin",
38
43
  "PlainElement",
@@ -42,6 +47,7 @@ exports[`exports > exports from index.ts 1`] = `
42
47
  "QUERY_KEY_SHIPMENT",
43
48
  "ResetButton",
44
49
  "ReturnsForm",
50
+ "STORE_MODE_ACTIONS",
45
51
  "ShipmentBarcode",
46
52
  "ShipmentOptionsForm",
47
53
  "ShipmentStatus",
@@ -145,6 +151,7 @@ exports[`exports > exports from index.ts 1`] = `
145
151
  "useMultiSelectInputContext",
146
152
  "useNotificationStore",
147
153
  "useOrderData",
154
+ "useOrderMode",
148
155
  "useOrdersData",
149
156
  "usePdkMutation",
150
157
  "usePrintOrdersMutation",
@@ -186,9 +193,9 @@ exports[`exports > exports from testing.ts 1`] = `
186
193
  "mockDefaultEndpoints",
187
194
  "mockDefaultGlobalContext",
188
195
  "mockDefaultLogger",
189
- "mockDefaultPlatform",
190
196
  "mockDefaultPluginSettings",
191
197
  "mockDefaultPrintOptionsView",
198
+ "mockDefaultProposition",
192
199
  "mockDefaultShop",
193
200
  "mockDefaultTranslations",
194
201
  ]
@@ -1,4 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src"
5
+ },
3
6
  "include": ["./src"]
4
7
  }
@@ -1,4 +0,0 @@
1
- import { ab as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ac as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ad as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ae as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { af as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ag as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ah as _sfc_main } from "./index-Dp-JKnen.js";
2
- export {
3
- _sfc_main as default
4
- };