@myparcel-dev/pdk-admin-js 2.2.1 → 2.2.2
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-CdVGTlr_.js +4 -0
- package/dist/Modals-CU-UeE9q.js +4 -0
- package/dist/Notifications-CAWeh0Vh.js +4 -0
- package/dist/OrderBox-DOYXgx0k.js +4 -0
- package/dist/OrderListItem-Dmwdu50_.js +4 -0
- package/dist/{OrderModeOrderListItem-BC8ujqnV.js → OrderModeOrderListItem-CFd4KMP0.js} +2 -2
- package/dist/PluginSettings-C21e7dx-.js +4 -0
- package/dist/{PrintOptionsModalForm-CPzlNB6P.js → PrintOptionsModalForm-DtMZSaYA.js} +1 -1
- package/dist/ProductSettings-CWhME5ZS.js +4 -0
- package/dist/{ShipmentLabel.vue_vue_type_script_setup_true_lang-CVwm9DCC.js → ShipmentLabel.vue_vue_type_script_setup_true_lang-B64y7wxc.js} +1 -1
- package/dist/{ShipmentModeOrderListItem-CG75Um12.js → ShipmentModeOrderListItem-CrIjcZ_N.js} +2 -2
- package/dist/{ShipmentOptionsModalForm-CFkr_En_.js → ShipmentOptionsModalForm-PRP4KK6X.js} +1 -1
- package/dist/{ShipmentTableBox-CKN2HkjR.js → ShipmentTableBox-CvaLrrLG.js} +1 -1
- package/dist/{index-BA37Jyqh.js → index-WNhwE7p9.js} +15 -15
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/ChildProductSettings-BuHi6Qtg.js +0 -4
- package/dist/Modals-jUqEo5zC.js +0 -4
- package/dist/Notifications-DxHJCM3w.js +0 -4
- package/dist/OrderBox-D7oI1aGH.js +0 -4
- package/dist/OrderListItem-73T1SMad.js +0 -4
- package/dist/PluginSettings-O6FZ_RPg.js +0 -4
- package/dist/ProductSettings-DseaZLeS.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-WNhwE7p9.js";
|
|
2
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-B64y7wxc.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-WNhwE7p9.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, 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-
|
|
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-WNhwE7p9.js";
|
|
2
2
|
const _hoisted_1$4 = ["title", "textContent"];
|
|
3
3
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "DateRelative",
|
package/dist/{ShipmentModeOrderListItem-CG75Um12.js → ShipmentModeOrderListItem-CrIjcZ_N.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-WNhwE7p9.js";
|
|
2
|
+
import { _ as _sfc_main$1, a as _sfc_main$2 } from "./ShipmentLabel.vue_vue_type_script_setup_true_lang-B64y7wxc.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-WNhwE7p9.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-WNhwE7p9.js";
|
|
2
2
|
const useBulkSelectCheckbox = (options, emit) => {
|
|
3
3
|
const selected = ref({});
|
|
4
4
|
const bulkModel = computed({
|
|
@@ -20632,9 +20632,9 @@ const useFormCapabilities = () => {
|
|
|
20632
20632
|
const STEP_ABOVE_THRESHOLD = 500;
|
|
20633
20633
|
const STEP_THRESHOLD = 500;
|
|
20634
20634
|
const carrier = getCarrierCapabilitiesForShipment(form);
|
|
20635
|
-
const insuranceData = (
|
|
20636
|
-
const min = ((_b = insuranceData.
|
|
20637
|
-
const max = ((_c = insuranceData.
|
|
20635
|
+
const insuranceData = (_a = carrier == null ? void 0 : carrier.options) == null ? void 0 : _a.insurance;
|
|
20636
|
+
const min = ((_b = insuranceData == null ? void 0 : insuranceData.min) == null ? void 0 : _b.amount) ? insuranceData.min.amount / 100 : 0;
|
|
20637
|
+
const max = ((_c = insuranceData == null ? void 0 : insuranceData.max) == null ? void 0 : _c.amount) ? insuranceData.max.amount / 100 : 0;
|
|
20638
20638
|
if (max === 0) return [];
|
|
20639
20639
|
const insurancePossibilities = [];
|
|
20640
20640
|
for (let i = min; i <= max; i += i < STEP_THRESHOLD ? STEP_BELOW_THRESHOLD : STEP_ABOVE_THRESHOLD) {
|
|
@@ -21250,13 +21250,13 @@ const setupAdminApp = (app, appConfig) => {
|
|
|
21250
21250
|
app.directive("test", testIdDirective);
|
|
21251
21251
|
};
|
|
21252
21252
|
const renderMap = Object.freeze({
|
|
21253
|
-
[AdminView.ChildProductSettings]: async () => import("./ChildProductSettings-
|
|
21254
|
-
[AdminView.Modals]: async () => import("./Modals-
|
|
21255
|
-
[AdminView.Notifications]: async () => import("./Notifications-
|
|
21256
|
-
[AdminView.OrderBox]: async () => import("./OrderBox-
|
|
21257
|
-
[AdminView.OrderListItem]: async () => import("./OrderListItem-
|
|
21258
|
-
[AdminView.PluginSettings]: async () => import("./PluginSettings-
|
|
21259
|
-
[AdminView.ProductSettings]: async () => import("./ProductSettings-
|
|
21253
|
+
[AdminView.ChildProductSettings]: async () => import("./ChildProductSettings-CdVGTlr_.js"),
|
|
21254
|
+
[AdminView.Modals]: async () => import("./Modals-CU-UeE9q.js"),
|
|
21255
|
+
[AdminView.Notifications]: async () => import("./Notifications-CAWeh0Vh.js"),
|
|
21256
|
+
[AdminView.OrderBox]: async () => import("./OrderBox-DOYXgx0k.js"),
|
|
21257
|
+
[AdminView.OrderListItem]: async () => import("./OrderListItem-Dmwdu50_.js"),
|
|
21258
|
+
[AdminView.PluginSettings]: async () => import("./PluginSettings-C21e7dx-.js"),
|
|
21259
|
+
[AdminView.ProductSettings]: async () => import("./ProductSettings-CWhME5ZS.js")
|
|
21260
21260
|
});
|
|
21261
21261
|
const renderViewComponent = async (componentName) => {
|
|
21262
21262
|
const renderMethod = renderMap[componentName];
|
|
@@ -23469,7 +23469,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
23469
23469
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
23470
23470
|
__name: "ShipmentOptionsModal",
|
|
23471
23471
|
setup(__props) {
|
|
23472
|
-
const ShipmentOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentOptionsModalForm-
|
|
23472
|
+
const ShipmentOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentOptionsModalForm-PRP4KK6X.js"));
|
|
23473
23473
|
const orderMode = useOrderMode();
|
|
23474
23474
|
const ordersData = computed(() => useOrdersData());
|
|
23475
23475
|
const orderIds = computed(() => toValue$1(ordersData).map((data) => {
|
|
@@ -23501,7 +23501,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
23501
23501
|
__name: "PrintOptionsModal",
|
|
23502
23502
|
setup(__props) {
|
|
23503
23503
|
const modalKey = AdminModalKey.PrintOptions;
|
|
23504
|
-
const PrintOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./PrintOptionsModalForm-
|
|
23504
|
+
const PrintOptionsModalForm = /* @__PURE__ */ defineAsyncComponent(() => import("./PrintOptionsModalForm-DtMZSaYA.js"));
|
|
23505
23505
|
const actionStore = useActionStore();
|
|
23506
23506
|
actionStore.register(modalSubmitFormAction);
|
|
23507
23507
|
const actions = instantiateActions([modalCloseAction, modalSubmitFormAction]);
|
|
@@ -23625,7 +23625,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23625
23625
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
23626
23626
|
__name: "OrderBox",
|
|
23627
23627
|
setup(__props) {
|
|
23628
|
-
const ShipmentTableBox = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentTableBox-
|
|
23628
|
+
const ShipmentTableBox = /* @__PURE__ */ defineAsyncComponent(() => import("./ShipmentTableBox-CvaLrrLG.js"));
|
|
23629
23629
|
const queryStore = useQueryStore();
|
|
23630
23630
|
queryStore.registerContextQueries();
|
|
23631
23631
|
queryStore.registerOrderQueries();
|
|
@@ -23666,10 +23666,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23666
23666
|
__name: "OrderListItem",
|
|
23667
23667
|
setup(__props) {
|
|
23668
23668
|
const OrderModeOrderListItem = /* @__PURE__ */ defineAsyncComponent(() => {
|
|
23669
|
-
return import("./OrderModeOrderListItem-
|
|
23669
|
+
return import("./OrderModeOrderListItem-CFd4KMP0.js");
|
|
23670
23670
|
});
|
|
23671
23671
|
const ShipmentModeOrderListItem = /* @__PURE__ */ defineAsyncComponent(() => {
|
|
23672
|
-
return import("./ShipmentModeOrderListItem-
|
|
23672
|
+
return import("./ShipmentModeOrderListItem-CrIjcZ_N.js");
|
|
23673
23673
|
});
|
|
23674
23674
|
const queryStore = useQueryStore();
|
|
23675
23675
|
queryStore.registerContextQueries();
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-WNhwE7p9.js";
|
|
2
2
|
export {
|
|
3
3
|
Z as ActionButton,
|
|
4
4
|
as as AdminAction,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myparcel-dev/pdk-admin-js",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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": "^2.2.
|
|
32
|
+
"@myparcel-dev/pdk-admin": "^2.2.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
|
package/dist/Modals-jUqEo5zC.js
DELETED