@myparcel-dev/pdk-admin-js 1.14.2 → 2.0.1
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/CHANGELOG.md +19 -0
- package/dist/ChildProductSettings-d3SnKpPH.js +4 -0
- package/dist/Modals-fANUi3cL.js +4 -0
- package/dist/Notifications-yRVDhiMo.js +4 -0
- package/dist/OrderBox-Bw7VnSow.js +4 -0
- package/dist/OrderListItem-DY4TK4DN.js +4 -0
- package/dist/{OrderModeOrderListItem-Df7qzieL.js → OrderModeOrderListItem-B72YhSTX.js} +20 -15
- package/dist/PluginSettings-BzUwmDgk.js +4 -0
- package/dist/{PrintOptionsModalForm-mNOwCJGu.js → PrintOptionsModalForm-DC-Y2NQg.js} +1 -1
- package/dist/ProductSettings-BbWcPXUU.js +4 -0
- package/dist/{ShipmentLabel.vue_vue_type_script_setup_true_lang-LyXmsMB7.js → ShipmentLabel.vue_vue_type_script_setup_true_lang-CyQhsc5w.js} +2 -2
- package/dist/{ShipmentModeOrderListItem-1Fj_y2ET.js → ShipmentModeOrderListItem-DF_ORvSm.js} +2 -2
- package/dist/{ShipmentOptionsModalForm-BJLbTAxc.js → ShipmentOptionsModalForm-BWjYWg9h.js} +1 -1
- package/dist/{ShipmentTableBox-DHjYGaMy.js → ShipmentTableBox-syVRwjqM.js} +1 -1
- package/dist/{index-Dp-JKnen.js → index-BT1nHhjw.js} +1180 -584
- package/dist/index.js +164 -157
- package/package.json +3 -3
- package/src/__tests__/__snapshots__/exports.spec.ts.snap +8 -1
- package/tsconfig.base.json +3 -0
- package/dist/ChildProductSettings-BPyPkZXH.js +0 -4
- package/dist/Modals-9_68MyUT.js +0 -4
- package/dist/Notifications-D9VEVf0q.js +0 -4
- package/dist/OrderBox-DZEddeXm.js +0 -4
- package/dist/OrderListItem-SuUMLy47.js +0 -4
- package/dist/PluginSettings-BCJWQyay.js +0 -4
- package/dist/ProductSettings-BQXxM91a.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- MONOWEAVE:BELOW -->
|
|
4
4
|
|
|
5
|
+
## [2.0.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-js@2.0.0...@myparcel-dev/pdk-admin-js@2.0.1) "@myparcel-dev/pdk-admin-js" (2026-07-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [2.0.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-js@1.14.2...@myparcel-dev/pdk-admin-js@2.0.0) "@myparcel-dev/pdk-admin-js" (2026-06-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* drive admin shipment options and checkout from the PDK capabilities API (#346)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* drive admin shipment options and checkout from the PDK capabilities API ([#346](https://github.com/myparcelnl/js-pdk/issues/346)) ([f62b934](https://github.com/myparcelnl/js-pdk/commit/f62b9348d4f4316da28dbb97e4c335fc8aa9df80)), closes [myparcelnl/pdk#459](https://github.com/myparcelnl/pdk/issues/459) [myparcelnl/pdk#459](https://github.com/myparcelnl/pdk/issues/459) [myparcelnl/pdk#459](https://github.com/myparcelnl/pdk/issues/459)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
5
24
|
## [1.13.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin-js@1.13.0...@myparcel-dev/pdk-admin-js@1.13.1) "@myparcel-dev/pdk-admin-js" (2026-02-05)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -1,40 +1,45 @@
|
|
|
1
|
-
import { d as defineComponent, H as useOrderData, c as computed, t as toValue,
|
|
2
|
-
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { d as defineComponent, H as useOrderData, U as useOrderMode, c as computed, t as toValue, V as instantiateAction, W as orderViewInBackofficeAction, P as instantiateActions, X as LIST_ITEM_MODE_ACTIONS, s as resolveComponent, o as openBlock, L as createElementBlock, a as createBlock, b as unref, e as createCommentVNode, M as Fragment, O as renderList, y as createVNode, v as withCtx, Y as OrderMode, Z as _sfc_main$3, $ as Size } from "./index-BT1nHhjw.js";
|
|
2
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-CyQhsc5w.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "OrderModeOrderListItem",
|
|
5
5
|
setup(__props) {
|
|
6
|
-
var _a;
|
|
7
6
|
const { query, order } = useOrderData();
|
|
7
|
+
const orderMode = useOrderMode();
|
|
8
8
|
const data = computed(() => toValue(query.data));
|
|
9
9
|
const shipments = computed(() => {
|
|
10
|
-
var
|
|
11
|
-
return ((
|
|
10
|
+
var _a;
|
|
11
|
+
return ((_a = toValue(data)) == null ? void 0 : _a.shipments) ?? [];
|
|
12
12
|
});
|
|
13
13
|
const showExportedOrderAction = instantiateAction(orderViewInBackofficeAction);
|
|
14
|
-
const orderActions =
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const orderActions = computed(
|
|
15
|
+
() => {
|
|
16
|
+
var _a;
|
|
17
|
+
return instantiateActions(LIST_ITEM_MODE_ACTIONS[orderMode.value], {
|
|
18
|
+
orderIds: (_a = order.value) == null ? void 0 : _a.externalIdentifier
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
);
|
|
17
22
|
return (_ctx, _cache) => {
|
|
18
|
-
var
|
|
23
|
+
var _a;
|
|
19
24
|
const _component_PdkLink = resolveComponent("PdkLink");
|
|
20
25
|
const _component_PdkButtonGroup = resolveComponent("PdkButtonGroup");
|
|
21
26
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
22
27
|
shipments.value.length === 0 ? (openBlock(), createBlock(unref(_sfc_main$1), { key: 0 })) : createCommentVNode("", true),
|
|
23
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(((
|
|
24
|
-
var
|
|
28
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(((_a = data.value) == null ? void 0 : _a.shipments) ?? [], (shipment) => {
|
|
29
|
+
var _a2;
|
|
25
30
|
return openBlock(), createBlock(_sfc_main$2, {
|
|
26
|
-
key: `${(
|
|
31
|
+
key: `${(_a2 = data.value) == null ? void 0 : _a2.externalIdentifier}_${shipment.id}`,
|
|
27
32
|
"shipment-id": shipment.id
|
|
28
33
|
}, null, 8, ["shipment-id"]);
|
|
29
34
|
}), 128)),
|
|
30
35
|
createVNode(_component_PdkButtonGroup, null, {
|
|
31
36
|
default: withCtx(() => {
|
|
32
|
-
var
|
|
37
|
+
var _a2;
|
|
33
38
|
return [
|
|
34
|
-
((
|
|
39
|
+
unref(orderMode) === unref(OrderMode).OrderV1 && ((_a2 = unref(order)) == null ? void 0 : _a2.exported) ? (openBlock(), createBlock(_component_PdkLink, {
|
|
35
40
|
key: 0,
|
|
36
41
|
action: unref(showExportedOrderAction)
|
|
37
|
-
}, null, 8, ["action"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(
|
|
42
|
+
}, null, 8, ["action"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(orderActions.value, (action) => {
|
|
38
43
|
return openBlock(), createBlock(unref(_sfc_main$3), {
|
|
39
44
|
key: action.id,
|
|
40
45
|
action,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, f as useContext, g as usePluginSettings, h as useAdminConfig, r as ref, i as onMounted, m as markRaw, N as Ne, A as AdminModalKey, j as generateFormFields, o as openBlock, a as createBlock, b as unref, x as xe, e as createCommentVNode } from "./index-
|
|
1
|
+
import { d as defineComponent, f as useContext, g as usePluginSettings, h as useAdminConfig, r as ref, i as onMounted, m as markRaw, N as Ne, A as AdminModalKey, j as generateFormFields, o as openBlock, a as createBlock, b as unref, x as xe, e as createCommentVNode } from "./index-BT1nHhjw.js";
|
|
2
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "PrintOptionsModalForm",
|
|
4
4
|
setup(__props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, l as useLocalizedFormatter, c as computed, F as Format, o as openBlock, L as createElementBlock, E as toDisplayString, I as useLanguage, s as resolveComponent, y as createVNode, D as createBaseVNode, b as unref, e as createCommentVNode, k as toRefs,
|
|
1
|
+
import { d as defineComponent, l as useLocalizedFormatter, c as computed, F as Format, o as openBlock, L as createElementBlock, E as toDisplayString, I as useLanguage, s as resolveComponent, y as createVNode, D as createBaseVNode, b as unref, e as createCommentVNode, k as toRefs, a6 as useDigitalStampRanges, a7 as isOfType, a8 as _sfc_main$7, a9 as PackageTypeName, a as createBlock, aa as useFetchCarrier, t as toValue, ab as _sfc_main$8, M as Fragment, K as createTextVNode, H as useOrderData, h as useAdminConfig, G as normalizeClass, ac as getDynamicTranslation, n as useQueryStore, p as useShipmentData, v as withCtx, B as _sfc_main$9, C as _sfc_main$a, ad as withModifiers } from "./index-BT1nHhjw.js";
|
|
2
2
|
const _hoisted_1$4 = ["title", "textContent"];
|
|
3
3
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "DateRelative",
|
|
@@ -92,7 +92,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
setup(__props) {
|
|
93
93
|
const props = __props;
|
|
94
94
|
const propRefs = toRefs(props);
|
|
95
|
-
const carriersQuery = useFetchCarrier(propRefs.carrier.value.
|
|
95
|
+
const carriersQuery = useFetchCarrier(propRefs.carrier.value.carrier);
|
|
96
96
|
const carrierData = computed(() => toValue(carriersQuery.data));
|
|
97
97
|
return (_ctx, _cache) => {
|
|
98
98
|
return openBlock(), createElementBlock(Fragment, null, [
|
package/dist/{ShipmentModeOrderListItem-1Fj_y2ET.js → ShipmentModeOrderListItem-DF_ORvSm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent, h as useAdminConfig, H as useOrderData, c as computed, t as toValue,
|
|
2
|
-
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { d as defineComponent, h as useAdminConfig, H as useOrderData, c as computed, t as toValue, a0 as ordersPrintAction, a1 as ordersFetchAction, a2 as orderExportAction, a3 as ordersExportPrintShipmentsAction, a4 as ordersEditAction, P as instantiateActions, s as resolveComponent, o as openBlock, L as createElementBlock, a as createBlock, b as unref, e as createCommentVNode, y as createVNode, v as withCtx, M as Fragment, O as renderList, a5 as TransitionGroup, $ as Size } from "./index-BT1nHhjw.js";
|
|
2
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-CyQhsc5w.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "ShipmentModeOrderListItem",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent, c as computed, u as useOrdersData, t as toValue, o as openBlock, a as createBlock, b as unref, _ as _sfc_main$1, e as createCommentVNode } from "./index-
|
|
1
|
+
import { d as defineComponent, c as computed, u as useOrdersData, t as toValue, o as openBlock, a as createBlock, b as unref, _ as _sfc_main$1, e as createCommentVNode } from "./index-BT1nHhjw.js";
|
|
2
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "ShipmentOptionsModalForm",
|
|
4
4
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ref, c as computed, w as watch, d as defineComponent, k as toRefs, h as useAdminConfig, l as useLocalizedFormatter, n as useQueryStore, p as useShipmentData, q as useVModel, F as Format, s as resolveComponent, o as openBlock, a as createBlock, v as withCtx, y as createVNode, b as unref, z as isRef, B as _sfc_main$3, C as _sfc_main$4, D as createBaseVNode, E as toDisplayString, G as normalizeClass, H as useOrderData, t as toValue, I as useLanguage, J as _sfc_main$5, K as createTextVNode, L as createElementBlock, M as Fragment, O as renderList, P as instantiateActions, Q as toRaw, R as shipmentActions, S as AdminIcon, e as createCommentVNode, T as isDef } from "./index-
|
|
1
|
+
import { r as ref, c as computed, w as watch, d as defineComponent, k as toRefs, h as useAdminConfig, l as useLocalizedFormatter, n as useQueryStore, p as useShipmentData, q as useVModel, F as Format, s as resolveComponent, o as openBlock, a as createBlock, v as withCtx, y as createVNode, b as unref, z as isRef, B as _sfc_main$3, C as _sfc_main$4, D as createBaseVNode, E as toDisplayString, G as normalizeClass, H as useOrderData, t as toValue, I as useLanguage, J as _sfc_main$5, K as createTextVNode, L as createElementBlock, M as Fragment, O as renderList, P as instantiateActions, Q as toRaw, R as shipmentActions, S as AdminIcon, e as createCommentVNode, T as isDef } from "./index-BT1nHhjw.js";
|
|
2
2
|
const useBulkSelectCheckbox = (options, emit) => {
|
|
3
3
|
const selected = ref({});
|
|
4
4
|
const bulkModel = computed({
|