@hotwax/dxp-components 1.15.3 → 1.15.5
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/lib/{index-a6513279.js → index-43b9aa81.js} +26 -16
- package/lib/{index-1e85fe2e.cjs → index-a96a85e6.cjs} +6 -6
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/{index9-5ac61beb.cjs → index9-4a4b5b1e.cjs} +1 -1
- package/lib/{index9-44ebb635.js → index9-63f341f8.js} +1 -1
- package/lib/{input-shims-7acd1dfd.js → input-shims-56be63bb.js} +1 -1
- package/lib/{input-shims-4ddebe41.cjs → input-shims-8b6cc2bc.cjs} +1 -1
- package/lib/{ios.transition-fb4ced79.cjs → ios.transition-323f52e5.cjs} +1 -1
- package/lib/{ios.transition-64a5ab05.js → ios.transition-64ab4dfb.js} +1 -1
- package/lib/{md.transition-63bf4ed1.cjs → md.transition-5a2499a3.cjs} +1 -1
- package/lib/{md.transition-a7db23df.js → md.transition-e532d81f.js} +1 -1
- package/lib/{status-tap-c4fd03db.cjs → status-tap-a3079cbe.cjs} +1 -1
- package/lib/{status-tap-28c58e14.js → status-tap-b2626494.js} +1 -1
- package/lib/store/productIdentification.d.ts +7 -6
- package/lib/store/productIdentification.d.ts.map +1 -1
- package/lib/{swipe-back-0df4c18f.cjs → swipe-back-37869c3a.cjs} +1 -1
- package/lib/{swipe-back-a38c83b7.js → swipe-back-6ef3eaf3.js} +1 -1
- package/package.json +1 -1
|
@@ -959,7 +959,7 @@ const useProductIdentificationStore = defineStore("productIdentification", {
|
|
|
959
959
|
primaryId: "",
|
|
960
960
|
secondaryId: ""
|
|
961
961
|
},
|
|
962
|
-
productIdentificationOptions: [
|
|
962
|
+
productIdentificationOptions: []
|
|
963
963
|
}),
|
|
964
964
|
getters: {
|
|
965
965
|
getProductIdentificationPref: (t) => t.productIdentificationPref,
|
|
@@ -986,6 +986,10 @@ const useProductIdentificationStore = defineStore("productIdentification", {
|
|
|
986
986
|
secondaryId: ""
|
|
987
987
|
};
|
|
988
988
|
this.productIdentificationPref = await productIdentificationContext.getProductIdentificationPref(t);
|
|
989
|
+
},
|
|
990
|
+
async prepareProductIdentifierOptions() {
|
|
991
|
+
const t = ["productId", "groupId", "groupName", "internalName", "parentProductName", "primaryProductCategoryName", "title"], e = await productIdentificationContext.fetchGoodIdentificationTypes("HC_GOOD_ID_TYPE"), r = (e == null ? void 0 : e.map((o) => o.goodIdentificationTypeId)) || [];
|
|
992
|
+
this.productIdentificationOptions = Array.from(/* @__PURE__ */ new Set([...t, ...r])).sort();
|
|
989
993
|
}
|
|
990
994
|
}
|
|
991
995
|
});
|
|
@@ -8757,7 +8761,7 @@ const activeAnimations = /* @__PURE__ */ new WeakMap(), createController$1 = (t)
|
|
|
8757
8761
|
/*!
|
|
8758
8762
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
8759
8763
|
*/
|
|
8760
|
-
const LIFECYCLE_WILL_ENTER = "ionViewWillEnter", LIFECYCLE_DID_ENTER = "ionViewDidEnter", LIFECYCLE_WILL_LEAVE = "ionViewWillLeave", LIFECYCLE_DID_LEAVE = "ionViewDidLeave", LIFECYCLE_WILL_UNLOAD = "ionViewWillUnload", iosTransitionAnimation = () => import("./ios.transition-
|
|
8764
|
+
const LIFECYCLE_WILL_ENTER = "ionViewWillEnter", LIFECYCLE_DID_ENTER = "ionViewDidEnter", LIFECYCLE_WILL_LEAVE = "ionViewWillLeave", LIFECYCLE_DID_LEAVE = "ionViewDidLeave", LIFECYCLE_WILL_UNLOAD = "ionViewWillUnload", iosTransitionAnimation = () => import("./ios.transition-64ab4dfb.js"), mdTransitionAnimation = () => import("./md.transition-e532d81f.js"), transition = (t) => new Promise((e, r) => {
|
|
8761
8765
|
writeTask(() => {
|
|
8762
8766
|
beforeTransition(t), runTransition(t).then((o) => {
|
|
8763
8767
|
o.animation && o.animation.destroy(), afterTransition(t), e(o);
|
|
@@ -10839,7 +10843,7 @@ const matches = (t, e, r) => !t || t.component !== e ? !1 : shallowEqualStringMa
|
|
|
10839
10843
|
this.ionNavWillLoad.emit();
|
|
10840
10844
|
}
|
|
10841
10845
|
async componentDidLoad() {
|
|
10842
|
-
this.didLoad = !0, this.rootChanged(), this.gesture = (await import("./swipe-back-
|
|
10846
|
+
this.didLoad = !0, this.rootChanged(), this.gesture = (await import("./swipe-back-6ef3eaf3.js")).createSwipeBackGesture(this.el, this.canStart.bind(this), this.onStart.bind(this), this.onMove.bind(this), this.onEnd.bind(this)), this.swipeGestureChanged();
|
|
10843
10847
|
}
|
|
10844
10848
|
connectedCallback() {
|
|
10845
10849
|
this.destroyed = !1;
|
|
@@ -13862,9 +13866,9 @@ const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-selec
|
|
|
13862
13866
|
componentDidLoad() {
|
|
13863
13867
|
rIC(async () => {
|
|
13864
13868
|
const e = isPlatform(window, "hybrid");
|
|
13865
|
-
if (config$1.getBoolean("_testing") || import("./index9-
|
|
13869
|
+
if (config$1.getBoolean("_testing") || import("./index9-63f341f8.js").then((o) => o.startTapClick(config$1)), config$1.getBoolean("statusTap", e) && import("./status-tap-b2626494.js").then((o) => o.startStatusTap()), config$1.getBoolean("inputShims", needInputShims())) {
|
|
13866
13870
|
const o = isPlatform(window, "ios") ? "ios" : "android";
|
|
13867
|
-
import("./input-shims-
|
|
13871
|
+
import("./input-shims-56be63bb.js").then((a) => a.startInputShims(config$1, o));
|
|
13868
13872
|
}
|
|
13869
13873
|
const r = await Promise.resolve().then(() => hardwareBackButton);
|
|
13870
13874
|
config$1.getBoolean("hardwareBackButton", e) ? r.startHardwareBackButton() : r.blockHardwareBackButton(), typeof window < "u" && Promise.resolve().then(() => keyboard2).then((o) => o.startKeyboardAssist(window)), import("./focus-visible-7660c2cd.js").then((o) => this.focusVisible = o.startFocusVisible());
|
|
@@ -37421,7 +37425,8 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37421
37425
|
}),
|
|
37422
37426
|
createVNode(unref(IonButton), {
|
|
37423
37427
|
onClick: c[0] || (c[0] = (u) => unref(goToOms)(r.value.value, o.value)),
|
|
37424
|
-
fill: "clear"
|
|
37428
|
+
fill: "clear",
|
|
37429
|
+
disabled: !unref(appContext).hasPermission(unref(appContext).Actions.APP_COMMERCE_VIEW)
|
|
37425
37430
|
}, {
|
|
37426
37431
|
default: withCtx(() => [
|
|
37427
37432
|
createTextVNode(toDisplayString$1(a.$t("Go to OMS")) + " ", 1),
|
|
@@ -37431,7 +37436,7 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37431
37436
|
}, null, 8, ["icon"])
|
|
37432
37437
|
]),
|
|
37433
37438
|
_: 1
|
|
37434
|
-
})
|
|
37439
|
+
}, 8, ["disabled"])
|
|
37435
37440
|
]),
|
|
37436
37441
|
_: 1
|
|
37437
37442
|
}));
|
|
@@ -37439,9 +37444,9 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37439
37444
|
}), _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
37440
37445
|
__name: "DxpProductIdentifier",
|
|
37441
37446
|
setup(t) {
|
|
37442
|
-
const e = useProductIdentificationStore(), r = appContext.config.globalProperties.$store, o = computed(() => r.getters["user/getCurrentEComStore"]), a = computed(() => e.getProductIdentificationPref), c = e.getProductIdentificationOptions;
|
|
37447
|
+
const e = useProductIdentificationStore(), r = appContext.config.globalProperties.$store, o = computed(() => r.getters["user/getCurrentEComStore"]), a = computed(() => e.getProductIdentificationPref), c = computed(() => e.getProductIdentificationOptions);
|
|
37443
37448
|
onMounted(() => {
|
|
37444
|
-
e.getIdentificationPref(o.value.productStoreId);
|
|
37449
|
+
e.prepareProductIdentifierOptions(), e.getIdentificationPref(o.value.productStoreId);
|
|
37445
37450
|
});
|
|
37446
37451
|
function u(d, p) {
|
|
37447
37452
|
e.setProductIdentificationPref(p, d, o.value.productStoreId);
|
|
@@ -37465,7 +37470,9 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37465
37470
|
]),
|
|
37466
37471
|
_: 1
|
|
37467
37472
|
}),
|
|
37468
|
-
createVNode(unref(IonItem),
|
|
37473
|
+
createVNode(unref(IonItem), {
|
|
37474
|
+
disabled: !unref(appContext).hasPermission(unref(appContext).Actions.APP_PRODUCT_IDENTIFIER_UPDATE)
|
|
37475
|
+
}, {
|
|
37469
37476
|
default: withCtx(() => [
|
|
37470
37477
|
createVNode(unref(IonSelect), {
|
|
37471
37478
|
label: d.$t("Primary"),
|
|
@@ -37475,7 +37482,7 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37475
37482
|
onIonChange: p[0] || (p[0] = (g) => u(g.detail.value, "primaryId"))
|
|
37476
37483
|
}, {
|
|
37477
37484
|
default: withCtx(() => [
|
|
37478
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
37485
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(c.value, (g) => (openBlock(), createBlock(unref(IonSelectOption), {
|
|
37479
37486
|
key: g,
|
|
37480
37487
|
value: g
|
|
37481
37488
|
}, {
|
|
@@ -37489,8 +37496,11 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37489
37496
|
}, 8, ["label", "value"])
|
|
37490
37497
|
]),
|
|
37491
37498
|
_: 1
|
|
37492
|
-
}),
|
|
37493
|
-
createVNode(unref(IonItem), {
|
|
37499
|
+
}, 8, ["disabled"]),
|
|
37500
|
+
createVNode(unref(IonItem), {
|
|
37501
|
+
lines: "none",
|
|
37502
|
+
disabled: !unref(appContext).hasPermission(unref(appContext).Actions.APP_PRODUCT_IDENTIFIER_UPDATE)
|
|
37503
|
+
}, {
|
|
37494
37504
|
default: withCtx(() => [
|
|
37495
37505
|
createVNode(unref(IonSelect), {
|
|
37496
37506
|
label: d.$t("Secondary"),
|
|
@@ -37500,7 +37510,7 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37500
37510
|
onIonChange: p[1] || (p[1] = (g) => u(g.detail.value, "secondaryId"))
|
|
37501
37511
|
}, {
|
|
37502
37512
|
default: withCtx(() => [
|
|
37503
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
37513
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(c.value, (g) => (openBlock(), createBlock(unref(IonSelectOption), {
|
|
37504
37514
|
key: g,
|
|
37505
37515
|
value: g
|
|
37506
37516
|
}, {
|
|
@@ -37520,7 +37530,7 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37520
37530
|
}, 8, ["label", "value"])
|
|
37521
37531
|
]),
|
|
37522
37532
|
_: 1
|
|
37523
|
-
})
|
|
37533
|
+
}, 8, ["disabled"])
|
|
37524
37534
|
]),
|
|
37525
37535
|
_: 1
|
|
37526
37536
|
}));
|
|
@@ -41777,7 +41787,7 @@ let dxpComponents = {
|
|
|
41777
41787
|
messages: e.localeMessages
|
|
41778
41788
|
}), t.use(pinia), t.use(i18n), t.use(IonicVue, {
|
|
41779
41789
|
mode: "md"
|
|
41780
|
-
}), t.component("DxpAppVersionInfo", _sfc_main$a), t.component("DxpGitBookSearch", _sfc_main$9), t.component("DxpImage", _sfc_main$8), t.component("DxpLanguageSwitcher", _sfc_main$7), t.component("DxpLogin", _sfc_main$6), t.component("DxpMenuFooterNavigation", _sfc_main$5), t.component("DxpOmsInstanceNavigator", _sfc_main$4), t.component("DxpProductIdentifier", _sfc_main$3), t.component("DxpShopifyImg", _sfc_main$2), t.component("DxpTimeZoneSwitcher", _sfc_main), t.component("DxpUserProfile", DxpUserProfile), showToast = e.showToast, loginContext.login = e.login, loginContext.logout = e.logout, loginContext.loader = e.loader, loginContext.appLoginUrl = e.appLoginUrl, imageContext.defaultImgUrl = e.defaultImgUrl, shopifyImgContext.defaultImgUrl = e.defaultImgUrl, userContext.setUserLocale = e.setUserLocale, userContext.setUserTimeZone = e.setUserTimeZone, userContext.getAvailableTimeZones = e.getAvailableTimeZones, productIdentificationContext.getProductIdentificationPref = e.getProductIdentificationPref, productIdentificationContext.setProductIdentificationPref = e.setProductIdentificationPref, notificationContext.addNotification = e.addNotification, notificationContext.appFirebaseConfig = e.appFirebaseConfig, notificationContext.appFirebaseVapidKey = e.appFirebaseVapidKey, notificationContext.storeClientRegistrationToken = e.storeClientRegistrationToken, gitBookContext.askQuery = e.askQuery, gitBookContext.getGitBookPage = e.getGitBookPage, gitBookContext.searchQuery = e.searchQuery, loginContext.getConfig = e.getConfig, loginContext.initialise = e.initialise, i18n.global.locale.value = useUserStore().getLocale, translate = i18n.global.t;
|
|
41790
|
+
}), t.component("DxpAppVersionInfo", _sfc_main$a), t.component("DxpGitBookSearch", _sfc_main$9), t.component("DxpImage", _sfc_main$8), t.component("DxpLanguageSwitcher", _sfc_main$7), t.component("DxpLogin", _sfc_main$6), t.component("DxpMenuFooterNavigation", _sfc_main$5), t.component("DxpOmsInstanceNavigator", _sfc_main$4), t.component("DxpProductIdentifier", _sfc_main$3), t.component("DxpShopifyImg", _sfc_main$2), t.component("DxpTimeZoneSwitcher", _sfc_main), t.component("DxpUserProfile", DxpUserProfile), showToast = e.showToast, loginContext.login = e.login, loginContext.logout = e.logout, loginContext.loader = e.loader, loginContext.appLoginUrl = e.appLoginUrl, imageContext.defaultImgUrl = e.defaultImgUrl, shopifyImgContext.defaultImgUrl = e.defaultImgUrl, userContext.setUserLocale = e.setUserLocale, userContext.setUserTimeZone = e.setUserTimeZone, userContext.getAvailableTimeZones = e.getAvailableTimeZones, productIdentificationContext.getProductIdentificationPref = e.getProductIdentificationPref, productIdentificationContext.setProductIdentificationPref = e.setProductIdentificationPref, productIdentificationContext.fetchGoodIdentificationTypes = e.fetchGoodIdentificationTypes, notificationContext.addNotification = e.addNotification, notificationContext.appFirebaseConfig = e.appFirebaseConfig, notificationContext.appFirebaseVapidKey = e.appFirebaseVapidKey, notificationContext.storeClientRegistrationToken = e.storeClientRegistrationToken, gitBookContext.askQuery = e.askQuery, gitBookContext.getGitBookPage = e.getGitBookPage, gitBookContext.searchQuery = e.searchQuery, loginContext.getConfig = e.getConfig, loginContext.initialise = e.initialise, appContext.Actions = e.Actions, appContext.hasPermission = e.hasPermission, i18n.global.locale.value = useUserStore().getLocale, translate = i18n.global.t;
|
|
41781
41791
|
}
|
|
41782
41792
|
};
|
|
41783
41793
|
export {
|