@myparcel-dev/pdk-admin-js 1.14.0 → 1.14.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/dist/ChildProductSettings-rOdhioOc.js +4 -0
- package/dist/Modals-C8V_zTNK.js +4 -0
- package/dist/Notifications-Bax2ygnw.js +4 -0
- package/dist/OrderBox-B901YmGC.js +4 -0
- package/dist/OrderListItem-CvN_Uz7u.js +4 -0
- package/dist/{OrderModeOrderListItem-CgftxQof.js → OrderModeOrderListItem-DdktQjCM.js} +2 -2
- package/dist/PluginSettings-FphY6rec.js +4 -0
- package/dist/{PrintOptionsModalForm-BorWxo9Z.js → PrintOptionsModalForm-f7Ze8uNa.js} +1 -1
- package/dist/ProductSettings-COt7oF2i.js +4 -0
- package/dist/{ShipmentLabel.vue_vue_type_script_setup_true_lang-CVj7ITBh.js → ShipmentLabel.vue_vue_type_script_setup_true_lang-jyif6XLw.js} +1 -1
- package/dist/{ShipmentModeOrderListItem-CIa8WC39.js → ShipmentModeOrderListItem-Ca1M2iy0.js} +2 -2
- package/dist/{ShipmentOptionsModalForm-BAN5q77A.js → ShipmentOptionsModalForm-ME-oncii.js} +1 -1
- package/dist/{ShipmentTableBox-DUn2BjJ0.js → ShipmentTableBox-C0q9qBg1.js} +1 -1
- package/dist/{index-CUc2E29U.js → index-CIMyA-y2.js} +23 -20
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/ChildProductSettings-BSk4lm0c.js +0 -4
- package/dist/Modals-YlWhSbGE.js +0 -4
- package/dist/Notifications-60U55jOc.js +0 -4
- package/dist/OrderBox-BHWFsLaz.js +0 -4
- package/dist/OrderListItem-DZVWCBvF.js +0 -4
- package/dist/PluginSettings-C4zULAXD.js +0 -4
- package/dist/ProductSettings-C4ztIyl6.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent, H as useOrderData, c as computed, t as toValue, U as instantiateAction, V as orderViewInBackofficeAction, P as instantiateActions, W as ordersEditAction, X as orderExportAction, 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 _sfc_main$3, Z as Size } from "./index-
|
|
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, c as computed, t as toValue, U as instantiateAction, V as orderViewInBackofficeAction, P as instantiateActions, W as ordersEditAction, X as orderExportAction, 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 _sfc_main$3, Z as Size } from "./index-CIMyA-y2.js";
|
|
2
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-jyif6XLw.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "OrderModeOrderListItem",
|
|
5
5
|
setup(__props) {
|
|
@@ -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-CIMyA-y2.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, a3 as useDigitalStampRanges, a4 as isOfType, a5 as _sfc_main$7, a6 as PackageTypeName, a as createBlock, a7 as useFetchCarrier, t as toValue, a8 as _sfc_main$8, M as Fragment, K as createTextVNode, H as useOrderData, h as useAdminConfig, G as normalizeClass, a9 as getDynamicTranslation, n as useQueryStore, p as useShipmentData, v as withCtx, B as _sfc_main$9, C as _sfc_main$a, aa as withModifiers } from "./index-
|
|
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, a3 as useDigitalStampRanges, a4 as isOfType, a5 as _sfc_main$7, a6 as PackageTypeName, a as createBlock, a7 as useFetchCarrier, t as toValue, a8 as _sfc_main$8, M as Fragment, K as createTextVNode, H as useOrderData, h as useAdminConfig, G as normalizeClass, a9 as getDynamicTranslation, n as useQueryStore, p as useShipmentData, v as withCtx, B as _sfc_main$9, C as _sfc_main$a, aa as withModifiers } from "./index-CIMyA-y2.js";
|
|
2
2
|
const _hoisted_1$4 = ["title", "textContent"];
|
|
3
3
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "DateRelative",
|
package/dist/{ShipmentModeOrderListItem-CIa8WC39.js → ShipmentModeOrderListItem-Ca1M2iy0.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent, h as useAdminConfig, H as useOrderData, c as computed, t as toValue, $ as ordersPrintAction, a0 as ordersFetchAction, X as orderExportAction, a1 as ordersExportPrintShipmentsAction, W 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, a2 as TransitionGroup, Z as Size } from "./index-
|
|
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, $ as ordersPrintAction, a0 as ordersFetchAction, X as orderExportAction, a1 as ordersExportPrintShipmentsAction, W 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, a2 as TransitionGroup, Z as Size } from "./index-CIMyA-y2.js";
|
|
2
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-jyif6XLw.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-CIMyA-y2.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-CIMyA-y2.js";
|
|
2
2
|
const useBulkSelectCheckbox = (options, emit) => {
|
|
3
3
|
const selected = ref({});
|
|
4
4
|
const bulkModel = computed({
|
|
@@ -19845,14 +19845,14 @@ const createCarrierField = (refs, inheritedDeliveryOptions) => {
|
|
|
19845
19845
|
}
|
|
19846
19846
|
});
|
|
19847
19847
|
};
|
|
19848
|
-
const createDigitalStampRangeField = (refs) => {
|
|
19848
|
+
const createDigitalStampRangeField = (refs, order) => {
|
|
19849
19849
|
var _a, _b;
|
|
19850
19850
|
const pluginSettings = usePluginSettings();
|
|
19851
|
-
const
|
|
19852
|
-
const orderData =
|
|
19851
|
+
const fallbackOrderData = order ? void 0 : toValue(useOrderData().order);
|
|
19852
|
+
const orderData = order ?? fallbackOrderData;
|
|
19853
19853
|
const { initialWeight, manualWeight } = (orderData == null ? void 0 : orderData.physicalProperties) ?? {};
|
|
19854
19854
|
const totalWeight = Number(initialWeight) + Number(pluginSettings.order.emptyDigitalStampWeight ?? 0);
|
|
19855
|
-
const { ranges, currentRange } = useDigitalStampRanges(orderData);
|
|
19855
|
+
const { ranges, currentRange } = useDigitalStampRanges(totalWeight, orderData);
|
|
19856
19856
|
const selectedValue = TriState.Inherit === manualWeight ? TriState.Inherit : get(refs, FIELD_MANUAL_WEIGHT, manualWeight) ?? ((_a = currentRange.value) == null ? void 0 : _a.value);
|
|
19857
19857
|
return defineFormField({
|
|
19858
19858
|
name: FIELD_MANUAL_WEIGHT,
|
|
@@ -19974,7 +19974,7 @@ const createShipmentOptionsForm = (orders) => {
|
|
|
19974
19974
|
createPackageTypeField(refs),
|
|
19975
19975
|
createDeliveryTypeField(refs),
|
|
19976
19976
|
createLabelAmountField(refs),
|
|
19977
|
-
createDigitalStampRangeField(refs),
|
|
19977
|
+
createDigitalStampRangeField(refs, order),
|
|
19978
19978
|
// Actual shipment options
|
|
19979
19979
|
createAgeCheckField(refs),
|
|
19980
19980
|
createSignatureField(refs),
|
|
@@ -20679,13 +20679,13 @@ const setupAdminApp = (app, appConfig) => {
|
|
|
20679
20679
|
app.directive("test", testIdDirective);
|
|
20680
20680
|
};
|
|
20681
20681
|
const renderMap = Object.freeze({
|
|
20682
|
-
[AdminView.ChildProductSettings]: async () => import("./ChildProductSettings-
|
|
20683
|
-
[AdminView.Modals]: async () => import("./Modals-
|
|
20684
|
-
[AdminView.Notifications]: async () => import("./Notifications-
|
|
20685
|
-
[AdminView.OrderBox]: async () => import("./OrderBox-
|
|
20686
|
-
[AdminView.OrderListItem]: async () => import("./OrderListItem-
|
|
20687
|
-
[AdminView.PluginSettings]: async () => import("./PluginSettings-
|
|
20688
|
-
[AdminView.ProductSettings]: async () => import("./ProductSettings-
|
|
20682
|
+
[AdminView.ChildProductSettings]: async () => import("./ChildProductSettings-rOdhioOc.js"),
|
|
20683
|
+
[AdminView.Modals]: async () => import("./Modals-C8V_zTNK.js"),
|
|
20684
|
+
[AdminView.Notifications]: async () => import("./Notifications-Bax2ygnw.js"),
|
|
20685
|
+
[AdminView.OrderBox]: async () => import("./OrderBox-B901YmGC.js"),
|
|
20686
|
+
[AdminView.OrderListItem]: async () => import("./OrderListItem-CvN_Uz7u.js"),
|
|
20687
|
+
[AdminView.PluginSettings]: async () => import("./PluginSettings-FphY6rec.js"),
|
|
20688
|
+
[AdminView.ProductSettings]: async () => import("./ProductSettings-COt7oF2i.js")
|
|
20689
20689
|
});
|
|
20690
20690
|
const renderViewComponent = async (componentName) => {
|
|
20691
20691
|
const renderMethod = renderMap[componentName];
|
|
@@ -21750,9 +21750,12 @@ const useShipmentData = (id) => {
|
|
|
21750
21750
|
shipment
|
|
21751
21751
|
};
|
|
21752
21752
|
};
|
|
21753
|
-
const useDigitalStampRanges = (weight) => {
|
|
21754
|
-
const
|
|
21755
|
-
const allRanges = computed(() =>
|
|
21753
|
+
const useDigitalStampRanges = (weight, order) => {
|
|
21754
|
+
const fallbackOrder = order ? null : useOrderData().order;
|
|
21755
|
+
const allRanges = computed(() => {
|
|
21756
|
+
var _a;
|
|
21757
|
+
return ((_a = toValue(order ?? fallbackOrder)) == null ? void 0 : _a.digitalStampRanges) ?? [];
|
|
21758
|
+
});
|
|
21756
21759
|
const ranges = computed(() => {
|
|
21757
21760
|
return allRanges.value.map((range) => ({
|
|
21758
21761
|
plainLabel: `${range.min}g – ${range.max}g`,
|
|
@@ -22834,7 +22837,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
22834
22837
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
22835
22838
|
__name: "ShipmentOptionsModal",
|
|
22836
22839
|
setup(__props) {
|
|
22837
|
-
const ShipmentOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentOptionsModalForm-
|
|
22840
|
+
const ShipmentOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentOptionsModalForm-ME-oncii.js"));
|
|
22838
22841
|
const pluginSettings = usePluginSettings();
|
|
22839
22842
|
const { orderMode } = pluginSettings.order;
|
|
22840
22843
|
const ordersData = computed(() => useOrdersData());
|
|
@@ -22872,7 +22875,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
22872
22875
|
__name: "PrintOptionsModal",
|
|
22873
22876
|
setup(__props) {
|
|
22874
22877
|
const modalKey = AdminModalKey.PrintOptions;
|
|
22875
|
-
const PrintOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./PrintOptionsModalForm-
|
|
22878
|
+
const PrintOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./PrintOptionsModalForm-f7Ze8uNa.js"));
|
|
22876
22879
|
const actionStore = useActionStore();
|
|
22877
22880
|
actionStore.register(modalSubmitFormAction);
|
|
22878
22881
|
const actions = instantiateActions([modalCloseAction, modalSubmitFormAction]);
|
|
@@ -23001,7 +23004,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23001
23004
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
23002
23005
|
__name: "OrderBox",
|
|
23003
23006
|
setup(__props) {
|
|
23004
|
-
const ShipmentTableBox = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentTableBox-
|
|
23007
|
+
const ShipmentTableBox = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentTableBox-C0q9qBg1.js"));
|
|
23005
23008
|
const queryStore = useQueryStore();
|
|
23006
23009
|
queryStore.registerContextQueries();
|
|
23007
23010
|
queryStore.registerOrderQueries();
|
|
@@ -23043,10 +23046,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23043
23046
|
__name: "OrderListItem",
|
|
23044
23047
|
setup(__props) {
|
|
23045
23048
|
const OrderModeOrderListItem = /* @__PURE__ */ defineAsyncComponent(() => {
|
|
23046
|
-
return import("./OrderModeOrderListItem-
|
|
23049
|
+
return import("./OrderModeOrderListItem-DdktQjCM.js");
|
|
23047
23050
|
});
|
|
23048
23051
|
const ShipmentModeOrderListItem = /* @__PURE__ */ defineAsyncComponent(() => {
|
|
23049
|
-
return import("./ShipmentModeOrderListItem-
|
|
23052
|
+
return import("./ShipmentModeOrderListItem-Ca1M2iy0.js");
|
|
23050
23053
|
});
|
|
23051
23054
|
const queryStore = useQueryStore();
|
|
23052
23055
|
queryStore.registerContextQueries();
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CIMyA-y2.js";
|
|
2
2
|
export {
|
|
3
3
|
Y as ActionButton,
|
|
4
4
|
ap as AdminAction,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myparcel-dev/pdk-admin-js",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
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.
|
|
32
|
+
"@myparcel-dev/pdk-admin": "^1.14.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
|
package/dist/Modals-YlWhSbGE.js
DELETED