@myparcel-dev/pdk-admin-js 1.13.1 → 1.14.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.
@@ -0,0 +1,4 @@
1
+ import { ab as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { ac as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { ad as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { ae as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { af as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
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-SiWIX8OR.js";
2
- import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-ClJLu6Kd.js";
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-CUc2E29U.js";
2
+ import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-CVj7ITBh.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "OrderModeOrderListItem",
5
5
  setup(__props) {
@@ -0,0 +1,4 @@
1
+ import { ag as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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-SiWIX8OR.js";
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-CUc2E29U.js";
2
2
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "PrintOptionsModalForm",
4
4
  setup(__props) {
@@ -0,0 +1,4 @@
1
+ import { ah as _sfc_main } from "./index-CUc2E29U.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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-SiWIX8OR.js";
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-CUc2E29U.js";
2
2
  const _hoisted_1$4 = ["title", "textContent"];
3
3
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
4
4
  __name: "DateRelative",
@@ -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-SiWIX8OR.js";
2
- import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-ClJLu6Kd.js";
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-CUc2E29U.js";
2
+ import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-CVj7ITBh.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-SiWIX8OR.js";
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-CUc2E29U.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-SiWIX8OR.js";
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-CUc2E29U.js";
2
2
  const useBulkSelectCheckbox = (options, emit) => {
3
3
  const selected = ref({});
4
4
  const bulkModel = computed({
@@ -19702,6 +19702,7 @@ const ONLY_RECIPIENT = "onlyRecipient";
19702
19702
  const SAME_DAY_DELIVERY = "sameDayDelivery";
19703
19703
  const SIGNATURE = "signature";
19704
19704
  const INSURANCE = "insurance";
19705
+ const PRIORITY_DELIVERY = "priorityDelivery";
19705
19706
  const MANUAL_WEIGHT = "manualWeight";
19706
19707
  const PROP_OPTIONS = "options";
19707
19708
  const KEY_DESCRIPTION = "description";
@@ -19718,6 +19719,7 @@ const FIELD_ONLY_RECIPIENT = `${SHIPMENT_OPTIONS_PREFIX}.${ONLY_RECIPIENT}`;
19718
19719
  const FIELD_SAME_DAY_DELIVERY = `${SHIPMENT_OPTIONS_PREFIX}.${SAME_DAY_DELIVERY}`;
19719
19720
  const FIELD_SIGNATURE = `${SHIPMENT_OPTIONS_PREFIX}.${SIGNATURE}`;
19720
19721
  const FIELD_INSURANCE = `${SHIPMENT_OPTIONS_PREFIX}.${INSURANCE}`;
19722
+ const FIELD_PRIORITY_DELIVERY = `${SHIPMENT_OPTIONS_PREFIX}.${PRIORITY_DELIVERY}`;
19721
19723
  const FIELD_MANUAL_WEIGHT = `${PHYSICAL_PROPERTIES_PREFIX}.${MANUAL_WEIGHT}`;
19722
19724
  const FIELD_RECEIPT_CODE = `${SHIPMENT_OPTIONS_PREFIX}.${RECEIPT_CODE}`;
19723
19725
  const ALL_FIELDS = [
@@ -19726,6 +19728,7 @@ const ALL_FIELDS = [
19726
19728
  FIELD_DIRECT_RETURN,
19727
19729
  FIELD_HIDE_SENDER,
19728
19730
  FIELD_INSURANCE,
19731
+ FIELD_PRIORITY_DELIVERY,
19729
19732
  FIELD_LABEL_AMOUNT,
19730
19733
  FIELD_LARGE_FORMAT,
19731
19734
  FIELD_ONLY_RECIPIENT,
@@ -19921,6 +19924,12 @@ const createPackageTypeField = (refs) => {
19921
19924
  // options defined in afterUpdate of `createCarrierField`
19922
19925
  });
19923
19926
  };
19927
+ const createPriorityDeliveryField = (refs) => {
19928
+ return createShipmentOptionField(refs, FIELD_PRIORITY_DELIVERY, {
19929
+ visibleWhen: createHasShipmentOptionWatcher(PRIORITY_DELIVERY, false, isPackageTypeMailbox),
19930
+ disabledWhen: createHasShipmentOptionWatcher(PRIORITY_DELIVERY, true, isPackageTypeMailbox)
19931
+ });
19932
+ };
19924
19933
  const createSameDayDeliveryField = (refs) => {
19925
19934
  return createShipmentOptionField(refs, FIELD_SAME_DAY_DELIVERY);
19926
19935
  };
@@ -19975,7 +19984,8 @@ const createShipmentOptionsForm = (orders) => {
19975
19984
  createHideSenderField(refs),
19976
19985
  createSameDayDeliveryField(refs),
19977
19986
  createReceiptCodeField(refs),
19978
- createInsuranceField(refs)
19987
+ createInsuranceField(refs),
19988
+ createPriorityDeliveryField(refs)
19979
19989
  ]
19980
19990
  });
19981
19991
  };
@@ -20069,6 +20079,9 @@ const hasPostNlAgeCheck = (form) => {
20069
20079
  const carrier = getFormCarrierName(form);
20070
20080
  return CarrierName.PostNl === carrier && triStateFieldIsEnabled(form, FIELD_AGE_CHECK);
20071
20081
  };
20082
+ const isPackageTypeMailbox = (form) => {
20083
+ return PackageTypeName.Mailbox === form.getValue(FIELD_PACKAGE_TYPE);
20084
+ };
20072
20085
  const isPackageTypeSmallPackage = (form) => {
20073
20086
  return PackageTypeName.PackageSmall === form.getValue(FIELD_PACKAGE_TYPE);
20074
20087
  };
@@ -20666,13 +20679,13 @@ const setupAdminApp = (app, appConfig) => {
20666
20679
  app.directive("test", testIdDirective);
20667
20680
  };
20668
20681
  const renderMap = Object.freeze({
20669
- [AdminView.ChildProductSettings]: async () => import("./ChildProductSettings-CurZOxf8.js"),
20670
- [AdminView.Modals]: async () => import("./Modals-BdWHFEf7.js"),
20671
- [AdminView.Notifications]: async () => import("./Notifications-DWHWKJoV.js"),
20672
- [AdminView.OrderBox]: async () => import("./OrderBox-CSFLXCU2.js"),
20673
- [AdminView.OrderListItem]: async () => import("./OrderListItem-CmnUJ38N.js"),
20674
- [AdminView.PluginSettings]: async () => import("./PluginSettings-Dz4d65CI.js"),
20675
- [AdminView.ProductSettings]: async () => import("./ProductSettings-B2-TLNWL.js")
20682
+ [AdminView.ChildProductSettings]: async () => import("./ChildProductSettings-BSk4lm0c.js"),
20683
+ [AdminView.Modals]: async () => import("./Modals-YlWhSbGE.js"),
20684
+ [AdminView.Notifications]: async () => import("./Notifications-60U55jOc.js"),
20685
+ [AdminView.OrderBox]: async () => import("./OrderBox-BHWFsLaz.js"),
20686
+ [AdminView.OrderListItem]: async () => import("./OrderListItem-DZVWCBvF.js"),
20687
+ [AdminView.PluginSettings]: async () => import("./PluginSettings-C4zULAXD.js"),
20688
+ [AdminView.ProductSettings]: async () => import("./ProductSettings-C4ztIyl6.js")
20676
20689
  });
20677
20690
  const renderViewComponent = async (componentName) => {
20678
20691
  const renderMethod = renderMap[componentName];
@@ -22821,7 +22834,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22821
22834
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
22822
22835
  __name: "ShipmentOptionsModal",
22823
22836
  setup(__props) {
22824
- const ShipmentOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentOptionsModalForm-CyZrNUhT.js"));
22837
+ const ShipmentOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentOptionsModalForm-BAN5q77A.js"));
22825
22838
  const pluginSettings = usePluginSettings();
22826
22839
  const { orderMode } = pluginSettings.order;
22827
22840
  const ordersData = computed(() => useOrdersData());
@@ -22859,7 +22872,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22859
22872
  __name: "PrintOptionsModal",
22860
22873
  setup(__props) {
22861
22874
  const modalKey = AdminModalKey.PrintOptions;
22862
- const PrintOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./PrintOptionsModalForm-Bm0r9kro.js"));
22875
+ const PrintOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./PrintOptionsModalForm-BorWxo9Z.js"));
22863
22876
  const actionStore = useActionStore();
22864
22877
  actionStore.register(modalSubmitFormAction);
22865
22878
  const actions = instantiateActions([modalCloseAction, modalSubmitFormAction]);
@@ -22988,7 +23001,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22988
23001
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22989
23002
  __name: "OrderBox",
22990
23003
  setup(__props) {
22991
- const ShipmentTableBox = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentTableBox-BDH02d4T.js"));
23004
+ const ShipmentTableBox = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentTableBox-DUn2BjJ0.js"));
22992
23005
  const queryStore = useQueryStore();
22993
23006
  queryStore.registerContextQueries();
22994
23007
  queryStore.registerOrderQueries();
@@ -23030,10 +23043,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23030
23043
  __name: "OrderListItem",
23031
23044
  setup(__props) {
23032
23045
  const OrderModeOrderListItem = /* @__PURE__ */ defineAsyncComponent(() => {
23033
- return import("./OrderModeOrderListItem-D23NuWY-.js");
23046
+ return import("./OrderModeOrderListItem-CgftxQof.js");
23034
23047
  });
23035
23048
  const ShipmentModeOrderListItem = /* @__PURE__ */ defineAsyncComponent(() => {
23036
- return import("./ShipmentModeOrderListItem-D6g0eogy.js");
23049
+ return import("./ShipmentModeOrderListItem-CIa8WC39.js");
23037
23050
  });
23038
23051
  const queryStore = useQueryStore();
23039
23052
  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-SiWIX8OR.js";
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-CUc2E29U.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.13.1",
3
+ "version": "1.14.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.13.1"
32
+ "@myparcel-dev/pdk-admin": "^1.14.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
@@ -1,4 +0,0 @@
1
- import { ab as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ac as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ad as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ae as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { af as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ag as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { ah as _sfc_main } from "./index-SiWIX8OR.js";
2
- export {
3
- _sfc_main as default
4
- };