@myparcel-dev/pdk-admin-js 2.4.0 → 2.4.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/{OrderModeOrderListItem-1xm2eVpp.js → OrderModeOrderListItem-Bl0j88VV.js} +1 -1
- package/dist/{PrintOptionsModalForm-Bq0S_IxK.js → PrintOptionsModalForm-DzSWU0eT.js} +1 -1
- package/dist/{ShipmentModeOrderListItem-BCdV7uLr.js → ShipmentModeOrderListItem-CFy6K0Mg.js} +1 -1
- package/dist/{ShipmentOptionsModalForm-DeG4dNx8.js → ShipmentOptionsModalForm-Dqslsx-9.js} +1 -1
- package/dist/{ShipmentTableBox-DaQDpXTa.js → ShipmentTableBox-dPC_Cb6U.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/{shared-Cgo8b2fo.js → shared-dyJ_FTPr.js} +16 -7
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as unref, Bn as OrderMode, Cr as computed, Dr as createElementBlock, Er as createCommentVNode, Lr as openBlock, Qr as toValue, St as useOrderMode, Tr as createBlock, Vr as resolveComponent, Wr as withCtx, a as LIST_ITEM_MODE_ACTIONS, an as ActionButton_default, ht as useOrderData, jr as defineComponent, kr as createVNode, lr as Size, lt as instantiateActions, m as orderViewInBackofficeAction, t as ShipmentLabel_default, tn as DeliveryOptionsExcerpt_default, ut as instantiateAction, xr as Fragment, zr as renderList } from "./shared-
|
|
1
|
+
import { $r as unref, Bn as OrderMode, Cr as computed, Dr as createElementBlock, Er as createCommentVNode, Lr as openBlock, Qr as toValue, St as useOrderMode, Tr as createBlock, Vr as resolveComponent, Wr as withCtx, a as LIST_ITEM_MODE_ACTIONS, an as ActionButton_default, ht as useOrderData, jr as defineComponent, kr as createVNode, lr as Size, lt as instantiateActions, m as orderViewInBackofficeAction, t as ShipmentLabel_default, tn as DeliveryOptionsExcerpt_default, ut as instantiateAction, xr as Fragment, zr as renderList } from "./shared-dyJ_FTPr.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region ../admin/src/components/OrderListItem/OrderModeOrderListItem.vue
|
|
4
4
|
var OrderModeOrderListItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as unref, Er as createCommentVNode, Et as useContext, Fr as onMounted, Ht as generateFormFields, Lr as openBlock, Nn as Ne, Rn as xe, Tr as createBlock, Wn as AdminModalKey, Yr as ref, jr as defineComponent, qr as markRaw, vt as useAdminConfig, xt as usePluginSettings } from "./shared-
|
|
1
|
+
import { $r as unref, Er as createCommentVNode, Et as useContext, Fr as onMounted, Ht as generateFormFields, Lr as openBlock, Nn as Ne, Rn as xe, Tr as createBlock, Wn as AdminModalKey, Yr as ref, jr as defineComponent, qr as markRaw, vt as useAdminConfig, xt as usePluginSettings } from "./shared-dyJ_FTPr.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region ../admin/src/components/modals/PrintOptionsModalForm.vue
|
|
4
4
|
var PrintOptionsModalForm_default = /* @__PURE__ */ defineComponent({
|
package/dist/{ShipmentModeOrderListItem-BCdV7uLr.js → ShipmentModeOrderListItem-CFy6K0Mg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as unref, Cr as computed, Dr as createElementBlock, Er as createCommentVNode, Lr as openBlock, Qr as toValue, Tr as createBlock, Vr as resolveComponent, Wr as withCtx, _ as ordersFetchAction, f as orderExportAction, g as ordersExportPrintShipmentsAction, h as ordersEditAction, ht as useOrderData, jr as defineComponent, kr as createVNode, lr as Size, lt as instantiateActions, t as ShipmentLabel_default, tn as DeliveryOptionsExcerpt_default, v as ordersPrintAction, vr as TransitionGroup, vt as useAdminConfig, xr as Fragment, zr as renderList } from "./shared-
|
|
1
|
+
import { $r as unref, Cr as computed, Dr as createElementBlock, Er as createCommentVNode, Lr as openBlock, Qr as toValue, Tr as createBlock, Vr as resolveComponent, Wr as withCtx, _ as ordersFetchAction, f as orderExportAction, g as ordersExportPrintShipmentsAction, h as ordersEditAction, ht as useOrderData, jr as defineComponent, kr as createVNode, lr as Size, lt as instantiateActions, t as ShipmentLabel_default, tn as DeliveryOptionsExcerpt_default, v as ordersPrintAction, vr as TransitionGroup, vt as useAdminConfig, xr as Fragment, zr as renderList } from "./shared-dyJ_FTPr.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region ../admin/src/components/OrderListItem/ShipmentModeOrderListItem.vue
|
|
4
4
|
var ShipmentModeOrderListItem_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as unref, Bt as ShipmentOptionsForm_default, Cr as computed, Er as createCommentVNode, Lr as openBlock, Qr as toValue, Tr as createBlock, jr as defineComponent, mt as useOrdersData } from "./shared-
|
|
1
|
+
import { $r as unref, Bt as ShipmentOptionsForm_default, Cr as computed, Er as createCommentVNode, Lr as openBlock, Qr as toValue, Tr as createBlock, jr as defineComponent, mt as useOrdersData } from "./shared-dyJ_FTPr.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region ../admin/src/components/modals/ShipmentOptionsModalForm.vue
|
|
4
4
|
var ShipmentOptionsModalForm_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as isDef, $r as unref, Cr as computed, Dr as createElementBlock, Er as createCommentVNode, Hn as AdminIcon, Kr as isRef, Lr as openBlock, Lt as useLanguage, Or as createTextVNode, Qn as useVModel, Qr as toValue, Tr as createBlock, Ur as watch, Vr as resolveComponent, Vt as ShipmentBarcode_default, Wr as withCtx, Xr as toRaw, Yr as ref, Zr as toRefs, b as shipmentActions, bt as Format, ei as normalizeClass, ft as useShipmentData, gt as useLocalizedFormatter, ht as useOrderData, in as BulkSelectCheckbox_default, jr as defineComponent, kr as createVNode, kt as useQueryStore, lt as instantiateActions, ti as toDisplayString, vt as useAdminConfig, wr as createBaseVNode, xr as Fragment, zr as renderList, zt as ShipmentStatus_default } from "./shared-
|
|
1
|
+
import { $n as isDef, $r as unref, Cr as computed, Dr as createElementBlock, Er as createCommentVNode, Hn as AdminIcon, Kr as isRef, Lr as openBlock, Lt as useLanguage, Or as createTextVNode, Qn as useVModel, Qr as toValue, Tr as createBlock, Ur as watch, Vr as resolveComponent, Vt as ShipmentBarcode_default, Wr as withCtx, Xr as toRaw, Yr as ref, Zr as toRefs, b as shipmentActions, bt as Format, ei as normalizeClass, ft as useShipmentData, gt as useLocalizedFormatter, ht as useOrderData, in as BulkSelectCheckbox_default, jr as defineComponent, kr as createVNode, kt as useQueryStore, lt as instantiateActions, ti as toDisplayString, vt as useAdminConfig, wr as createBaseVNode, xr as Fragment, zr as renderList, zt as ShipmentStatus_default } from "./shared-dyJ_FTPr.js";
|
|
2
2
|
//#region ../admin/src/composables/components/useBulkSelectCheckbox.ts
|
|
3
3
|
var useBulkSelectCheckbox = (options, emit) => {
|
|
4
4
|
const selected = ref({});
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { $ as useFetchProductsQuery, $r as unref, $t as FORM_KEY_PRODUCT_SETTINGS, A as resolveOrderParameters, An as createPinia, Ar as defineAsyncComponent, At as downloadFileFromUrl, B as createMutationHandler, Bn as OrderMode, Br as renderSlot, Bt as ShipmentOptionsForm_default, C as shipmentsPrintAction, Ci as timeUntilStale, Cn as baseGetTag, Cr as computed, Ct as useLoading, D as openOrPrintPdf, Dn as createLogger, Dr as createElementBlock, Dt as useStoreContextQuery, E as waitForLabelPrompt, En as LogLevel, Er as createCommentVNode, F as executeHandler, Fn as c, Fr as onMounted, Ft as INJECT_GLOBAL_PDK_ADMIN, G as useDeleteWebhooksMutation, Gn as NotificationCategory, Gr as withDirectives, Gt as FORM_KEYS, H as doMutate, Hn as AdminIcon, Hr as resolveDynamicComponent, Ht as generateFormFields, I as StopActionHandler, In as je, Ir as onUnmounted, It as resetLanguageCache, J as usePrintShipmentsMutation, Jn as optionalAdminActionContainerComponentNames, Jr as reactive, Jt as FORM_KEY_MODAL, K as useCreateWebhooksMutation, Kn as AdminComponent, Kt as FORM_KEY_ACCOUNT_SETTINGS, L as createShipmentsMutationHandler, Ln as ne, Lr as openBlock, Lt as useLanguage, M as executeAction, Mn as M, Mr as h, Mt as formToBody, N as executeAfterHandle, Nn as Ne, Nr as inject, Nt as createFormElement, O as modalCloseAction, On as globalLogger, Or as createTextVNode, Ot as useStoreQuery, P as executeBeforeHandle, Pn as Xe, Pr as mergeProps, Pt as INJECT_ADMIN_INSTANCE, Q as useFetchShipmentsQuery, Qn as useVModel, Qr as toValue, Qt as FORM_KEY_PLUGIN_SETTINGS, R as createQueryHandler, Rn as xe, Rr as provide, Rt as fillShipmentsQueryData, S as shipmentsExportReturnAction, Si as replaceData, Sn as isObjectLike, Sr as KeepAlive, St as useOrderMode, T as resolvePrintParameters, Tn as freeGlobal, Tr as createBlock, Tt as useGlobalContext, U as resolveQuerySuffix, Un as AdminInstanceContextKey, Ur as watch, Ut as resolveFormComponent, V as createHandlerWithParameters, Vn as AdminAction, Vr as resolveComponent, Vt as ShipmentBarcode_default, W as defineAction, Wn as AdminModalKey, Wr as withCtx, Wt as defineFormField, X as useDeleteShipmentsMutation, Xn as optionalAdminPlainWrapperComponentNames, Xr as toRaw, Xt as FORM_KEY_MODAL_RETURN_OPTIONS, Y as useExportReturnMutation, Yn as optionalAdminComponentNames, Yr as ref, Yt as FORM_KEY_MODAL_PRINT_OPTIONS, Z as useFetchWebhooksQuery, Zn as requiredAdminComponentNames, Zr as toRefs, Zt as FORM_KEY_MODAL_SHIPMENT_OPTIONS, _ as ordersFetchAction, _i as matchQuery, _n as isIndex, _r as Transition, _t as useFormatter, a as LIST_ITEM_MODE_ACTIONS, ai as defaultLogger, an as ActionButton_default, ar as FrontendEndpoint, at as useUpdateOrdersMutation, b as shipmentActions, bi as parseQueryArgs, bn as isObject, br as vShow, bt as Format, c as webhooksCreateAction, ci as isCancelledError, cn as useNotificationStore, cr as TriState, ct as usePdkMutation, d as ORDER_VIEW_IN_BACKOFFICE_ID, di as functionalUpdate, dn as MapCache, dr as Variant, dt as createActionContext, ei as normalizeClass, en as NotificationContainer_default, er as PackageTypeName, et as useFetchOrdersQuery, f as orderExportAction, fi as getAbortController, fn as Map, fr as setupDevtoolsPlugin, g as ordersExportPrintShipmentsAction, gi as matchMutation, gn as baseAssignValue, gr as isQueryKey, gt as useLocalizedFormatter, h as ordersEditAction, hi as isServer, hn as eq, hr as getClientKey, ht as useOrderData, i as BOX_MODE_ACTIONS, ii as notifyManager, in as BulkSelectCheckbox_default, ir as BackendEndpoint, it as useUpdateProductSettingsMutation, j as executeNextAction, jn as Je, jr as defineComponent, jt as prefixComponent, k as modalSubmitFormAction, kn as getActionIdentifier, kr as createVNode, kt as useQueryStore, l as webhooksDeleteAction, li as onlineManager, ln as useActionStore, lr as Size, lt as instantiateActions, m as orderViewInBackofficeAction, mi as hashQueryKeyByOptions, mn as assignValue, mr as cloneDeepUnref, mt as useOrdersData, n as ProductSettings_default, ni as Mutation, nn as usePdkAdminApi, nr as partitionArray, nt as QUERY_KEY_SHIPMENT, o as MODAL_MODE_ACTIONS, oi as canFetch, on as setRequestHeadersProvider, or as AdminContextKey, ot as usePrintOrdersMutation, p as orderExportToShipmentsAction, pi as hashQueryKey, pn as ListCache, pr as useQueryClient, pt as useProductData, q as useUpdateShipmentsMutation, qn as allAdminComponentNames, qr as markRaw, qt as FORM_KEY_CHILD_PRODUCT_SETTINGS, ri as Removable, rn as PackageType_default, rr as toArray, rt as useFetchContextQuery, s as STORE_MODE_ACTIONS, si as createRetryer, sn as useModalStore, sr as SortType, st as useExportOrdersMutation, ti as toDisplayString, tr as isOfType, tt as QUERY_KEY_ORDER, u as webhooksFetchAction, ui as focusManager, un as get, ur as Status, ut as instantiateAction, v as ordersPrintAction, vi as noop, vn as defineProperty, vt as useAdminConfig, w as shipmentsUpdateAction, wi as Subscribable, wn as root, wr as createBaseVNode, wt as useInstanceContext, x as shipmentsDeleteAction, xi as partialMatchKey, xn as isArray, xr as Fragment, xt as usePluginSettings, y as ordersUpdateAction, yi as parseFilterArgs, yn as isFunction, yr as createApp, yt as useAdminInstance, z as createOrdersMutationHandler, zn as AdminView, zr as renderList, zt as ShipmentStatus_default } from "./shared-
|
|
2
|
+
import { $ as useFetchProductsQuery, $r as unref, $t as FORM_KEY_PRODUCT_SETTINGS, A as resolveOrderParameters, An as createPinia, Ar as defineAsyncComponent, At as downloadFileFromUrl, B as createMutationHandler, Bn as OrderMode, Br as renderSlot, Bt as ShipmentOptionsForm_default, C as shipmentsPrintAction, Ci as timeUntilStale, Cn as baseGetTag, Cr as computed, Ct as useLoading, D as openOrPrintPdf, Dn as createLogger, Dr as createElementBlock, Dt as useStoreContextQuery, E as waitForLabelPrompt, En as LogLevel, Er as createCommentVNode, F as executeHandler, Fn as c, Fr as onMounted, Ft as INJECT_GLOBAL_PDK_ADMIN, G as useDeleteWebhooksMutation, Gn as NotificationCategory, Gr as withDirectives, Gt as FORM_KEYS, H as doMutate, Hn as AdminIcon, Hr as resolveDynamicComponent, Ht as generateFormFields, I as StopActionHandler, In as je, Ir as onUnmounted, It as resetLanguageCache, J as usePrintShipmentsMutation, Jn as optionalAdminActionContainerComponentNames, Jr as reactive, Jt as FORM_KEY_MODAL, K as useCreateWebhooksMutation, Kn as AdminComponent, Kt as FORM_KEY_ACCOUNT_SETTINGS, L as createShipmentsMutationHandler, Ln as ne, Lr as openBlock, Lt as useLanguage, M as executeAction, Mn as M, Mr as h, Mt as formToBody, N as executeAfterHandle, Nn as Ne, Nr as inject, Nt as createFormElement, O as modalCloseAction, On as globalLogger, Or as createTextVNode, Ot as useStoreQuery, P as executeBeforeHandle, Pn as Xe, Pr as mergeProps, Pt as INJECT_ADMIN_INSTANCE, Q as useFetchShipmentsQuery, Qn as useVModel, Qr as toValue, Qt as FORM_KEY_PLUGIN_SETTINGS, R as createQueryHandler, Rn as xe, Rr as provide, Rt as fillShipmentsQueryData, S as shipmentsExportReturnAction, Si as replaceData, Sn as isObjectLike, Sr as KeepAlive, St as useOrderMode, T as resolvePrintParameters, Tn as freeGlobal, Tr as createBlock, Tt as useGlobalContext, U as resolveQuerySuffix, Un as AdminInstanceContextKey, Ur as watch, Ut as resolveFormComponent, V as createHandlerWithParameters, Vn as AdminAction, Vr as resolveComponent, Vt as ShipmentBarcode_default, W as defineAction, Wn as AdminModalKey, Wr as withCtx, Wt as defineFormField, X as useDeleteShipmentsMutation, Xn as optionalAdminPlainWrapperComponentNames, Xr as toRaw, Xt as FORM_KEY_MODAL_RETURN_OPTIONS, Y as useExportReturnMutation, Yn as optionalAdminComponentNames, Yr as ref, Yt as FORM_KEY_MODAL_PRINT_OPTIONS, Z as useFetchWebhooksQuery, Zn as requiredAdminComponentNames, Zr as toRefs, Zt as FORM_KEY_MODAL_SHIPMENT_OPTIONS, _ as ordersFetchAction, _i as matchQuery, _n as isIndex, _r as Transition, _t as useFormatter, a as LIST_ITEM_MODE_ACTIONS, ai as defaultLogger, an as ActionButton_default, ar as FrontendEndpoint, at as useUpdateOrdersMutation, b as shipmentActions, bi as parseQueryArgs, bn as isObject, br as vShow, bt as Format, c as webhooksCreateAction, ci as isCancelledError, cn as useNotificationStore, cr as TriState, ct as usePdkMutation, d as ORDER_VIEW_IN_BACKOFFICE_ID, di as functionalUpdate, dn as MapCache, dr as Variant, dt as createActionContext, ei as normalizeClass, en as NotificationContainer_default, er as PackageTypeName, et as useFetchOrdersQuery, f as orderExportAction, fi as getAbortController, fn as Map, fr as setupDevtoolsPlugin, g as ordersExportPrintShipmentsAction, gi as matchMutation, gn as baseAssignValue, gr as isQueryKey, gt as useLocalizedFormatter, h as ordersEditAction, hi as isServer, hn as eq, hr as getClientKey, ht as useOrderData, i as BOX_MODE_ACTIONS, ii as notifyManager, in as BulkSelectCheckbox_default, ir as BackendEndpoint, it as useUpdateProductSettingsMutation, j as executeNextAction, jn as Je, jr as defineComponent, jt as prefixComponent, k as modalSubmitFormAction, kn as getActionIdentifier, kr as createVNode, kt as useQueryStore, l as webhooksDeleteAction, li as onlineManager, ln as useActionStore, lr as Size, lt as instantiateActions, m as orderViewInBackofficeAction, mi as hashQueryKeyByOptions, mn as assignValue, mr as cloneDeepUnref, mt as useOrdersData, n as ProductSettings_default, ni as Mutation, nn as usePdkAdminApi, nr as partitionArray, nt as QUERY_KEY_SHIPMENT, o as MODAL_MODE_ACTIONS, oi as canFetch, on as setRequestHeadersProvider, or as AdminContextKey, ot as usePrintOrdersMutation, p as orderExportToShipmentsAction, pi as hashQueryKey, pn as ListCache, pr as useQueryClient, pt as useProductData, q as useUpdateShipmentsMutation, qn as allAdminComponentNames, qr as markRaw, qt as FORM_KEY_CHILD_PRODUCT_SETTINGS, ri as Removable, rn as PackageType_default, rr as toArray, rt as useFetchContextQuery, s as STORE_MODE_ACTIONS, si as createRetryer, sn as useModalStore, sr as SortType, st as useExportOrdersMutation, ti as toDisplayString, tr as isOfType, tt as QUERY_KEY_ORDER, u as webhooksFetchAction, ui as focusManager, un as get, ur as Status, ut as instantiateAction, v as ordersPrintAction, vi as noop, vn as defineProperty, vt as useAdminConfig, w as shipmentsUpdateAction, wi as Subscribable, wn as root, wr as createBaseVNode, wt as useInstanceContext, x as shipmentsDeleteAction, xi as partialMatchKey, xn as isArray, xr as Fragment, xt as usePluginSettings, y as ordersUpdateAction, yi as parseFilterArgs, yn as isFunction, yr as createApp, yt as useAdminInstance, z as createOrdersMutationHandler, zn as AdminView, zr as renderList, zt as ShipmentStatus_default } from "./shared-dyJ_FTPr.js";
|
|
3
3
|
//#region ../../node_modules/@tanstack/query-core/build/lib/query.mjs
|
|
4
4
|
var Query = class extends Removable {
|
|
5
5
|
constructor(config) {
|
|
@@ -2756,7 +2756,7 @@ var renderMap = Object.freeze({
|
|
|
2756
2756
|
[AdminView.OrderBox]: async () => Promise.resolve().then(() => OrderBox_exports),
|
|
2757
2757
|
[AdminView.OrderListItem]: async () => Promise.resolve().then(() => OrderListItem_exports),
|
|
2758
2758
|
[AdminView.PluginSettings]: async () => Promise.resolve().then(() => PluginSettings_exports),
|
|
2759
|
-
[AdminView.ProductSettings]: async () => import("./shared-
|
|
2759
|
+
[AdminView.ProductSettings]: async () => import("./shared-dyJ_FTPr.js").then((n) => n.r)
|
|
2760
2760
|
});
|
|
2761
2761
|
var renderViewComponent = async (componentName) => {
|
|
2762
2762
|
const renderMethod = renderMap[componentName];
|
|
@@ -3522,7 +3522,7 @@ var ChildProductSettings_default = ChildProductSettings_vue_vue_type_script_setu
|
|
|
3522
3522
|
var ShipmentOptionsModal_default = /* @__PURE__ */ defineComponent({
|
|
3523
3523
|
__name: "ShipmentOptionsModal",
|
|
3524
3524
|
setup(__props) {
|
|
3525
|
-
const ShipmentOptionsModalForm = defineAsyncComponent(() => import("./ShipmentOptionsModalForm-
|
|
3525
|
+
const ShipmentOptionsModalForm = defineAsyncComponent(() => import("./ShipmentOptionsModalForm-Dqslsx-9.js"));
|
|
3526
3526
|
const orderMode = useOrderMode();
|
|
3527
3527
|
const ordersData = computed(() => useOrdersData());
|
|
3528
3528
|
const orderIds = computed(() => toValue(ordersData).map((data) => toValue(data.order)?.externalIdentifier));
|
|
@@ -3553,7 +3553,7 @@ var PrintOptionsModal_default = /* @__PURE__ */ defineComponent({
|
|
|
3553
3553
|
__name: "PrintOptionsModal",
|
|
3554
3554
|
setup(__props) {
|
|
3555
3555
|
const modalKey = AdminModalKey.PrintOptions;
|
|
3556
|
-
const PrintOptionsModalForm = defineAsyncComponent(() => import("./PrintOptionsModalForm-
|
|
3556
|
+
const PrintOptionsModalForm = defineAsyncComponent(() => import("./PrintOptionsModalForm-DzSWU0eT.js"));
|
|
3557
3557
|
useActionStore().register(modalSubmitFormAction);
|
|
3558
3558
|
const actions = instantiateActions([modalCloseAction, modalSubmitFormAction]);
|
|
3559
3559
|
return (_ctx, _cache) => {
|
|
@@ -3649,7 +3649,7 @@ var ShipmentOptionsBox_default = /* @__PURE__ */ defineComponent({
|
|
|
3649
3649
|
var OrderBox_vue_vue_type_script_setup_true_lang_default = /*#__PURE__*/ defineComponent({
|
|
3650
3650
|
__name: "OrderBox",
|
|
3651
3651
|
setup(__props) {
|
|
3652
|
-
const ShipmentTableBox = defineAsyncComponent(() => import("./ShipmentTableBox-
|
|
3652
|
+
const ShipmentTableBox = defineAsyncComponent(() => import("./ShipmentTableBox-dPC_Cb6U.js"));
|
|
3653
3653
|
const queryStore = useQueryStore();
|
|
3654
3654
|
queryStore.registerContextQueries();
|
|
3655
3655
|
queryStore.registerOrderQueries();
|
|
@@ -3688,10 +3688,10 @@ var OrderListItem_vue_vue_type_script_setup_true_lang_default = /*#__PURE__*/ de
|
|
|
3688
3688
|
__name: "OrderListItem",
|
|
3689
3689
|
setup(__props) {
|
|
3690
3690
|
const OrderModeOrderListItem = defineAsyncComponent(() => {
|
|
3691
|
-
return import("./OrderModeOrderListItem-
|
|
3691
|
+
return import("./OrderModeOrderListItem-Bl0j88VV.js");
|
|
3692
3692
|
});
|
|
3693
3693
|
const ShipmentModeOrderListItem = defineAsyncComponent(() => {
|
|
3694
|
-
return import("./ShipmentModeOrderListItem-
|
|
3694
|
+
return import("./ShipmentModeOrderListItem-CFy6K0Mg.js");
|
|
3695
3695
|
});
|
|
3696
3696
|
const queryStore = useQueryStore();
|
|
3697
3697
|
queryStore.registerContextQueries();
|
|
@@ -13757,6 +13757,19 @@ var updateFieldsDefaults = (carrier, { form, name }, inheritedDeliveryOptions) =
|
|
|
13757
13757
|
};
|
|
13758
13758
|
//#endregion
|
|
13759
13759
|
//#region ../admin/src/forms/helpers/useFormCapabilities.ts
|
|
13760
|
+
var INSURANCE_FLOOR_TIERS = [
|
|
13761
|
+
1e4,
|
|
13762
|
+
25e3,
|
|
13763
|
+
5e4
|
|
13764
|
+
];
|
|
13765
|
+
var INSURANCE_STEP = 5e4;
|
|
13766
|
+
var buildInsuranceTiers = (min, max) => {
|
|
13767
|
+
if (min >= max) return [min];
|
|
13768
|
+
const tiers = [min, ...INSURANCE_FLOOR_TIERS.filter((tier) => tier > min && tier < max)];
|
|
13769
|
+
for (let tier = Math.max(min, INSURANCE_STEP) + INSURANCE_STEP; tier < max; tier += INSURANCE_STEP) tiers.push(tier);
|
|
13770
|
+
tiers.push(max);
|
|
13771
|
+
return [...new Set(tiers)];
|
|
13772
|
+
};
|
|
13760
13773
|
var useFormCapabilities = () => {
|
|
13761
13774
|
const queryStore = useQueryStore();
|
|
13762
13775
|
const dynamicContextQuery = queryStore.get(BackendEndpoint.FetchContext, AdminContextKey.Dynamic);
|
|
@@ -13792,15 +13805,11 @@ var useFormCapabilities = () => {
|
|
|
13792
13805
|
return Object.hasOwn(carrier?.options ?? {}, option);
|
|
13793
13806
|
};
|
|
13794
13807
|
const getInsuranceOptions = (form, formatter) => {
|
|
13795
|
-
const STEP_BELOW_THRESHOLD = 250;
|
|
13796
|
-
const STEP_ABOVE_THRESHOLD = 500;
|
|
13797
|
-
const STEP_THRESHOLD = 500;
|
|
13798
13808
|
const insuranceData = getCarrierCapabilitiesForShipment(form)?.options?.insurance;
|
|
13799
|
-
const min = insuranceData?.min?.amount
|
|
13800
|
-
const max = insuranceData?.max?.amount
|
|
13809
|
+
const min = insuranceData?.min?.amount ?? 0;
|
|
13810
|
+
const max = insuranceData?.max?.amount ?? 0;
|
|
13801
13811
|
if (max === 0) return [];
|
|
13802
|
-
const insurancePossibilities =
|
|
13803
|
-
for (let i = min; i <= max; i += i < STEP_THRESHOLD ? STEP_BELOW_THRESHOLD : STEP_ABOVE_THRESHOLD) insurancePossibilities.push(i * 100);
|
|
13812
|
+
const insurancePossibilities = buildInsuranceTiers(min, max);
|
|
13804
13813
|
return [{
|
|
13805
13814
|
label: "option_default",
|
|
13806
13815
|
value: TriState.Inherit
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myparcel-dev/pdk-admin-js",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.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": "^2.4.
|
|
32
|
+
"@myparcel-dev/pdk-admin": "^2.4.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
|