@hotwax/dxp-components 1.15.4 → 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-97d1be48.js → index-43b9aa81.js} +14 -10
- package/lib/{index-d06b7739.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-6ed53489.cjs → index9-4a4b5b1e.cjs} +1 -1
- package/lib/{index9-4ed9368b.js → index9-63f341f8.js} +1 -1
- package/lib/{input-shims-f446e377.js → input-shims-56be63bb.js} +1 -1
- package/lib/{input-shims-f674af1b.cjs → input-shims-8b6cc2bc.cjs} +1 -1
- package/lib/{ios.transition-83710d8d.cjs → ios.transition-323f52e5.cjs} +1 -1
- package/lib/{ios.transition-ca6ea50c.js → ios.transition-64ab4dfb.js} +1 -1
- package/lib/{md.transition-79ffd9bb.cjs → md.transition-5a2499a3.cjs} +1 -1
- package/lib/{md.transition-921897ed.js → md.transition-e532d81f.js} +1 -1
- package/lib/{status-tap-98b78ae1.cjs → status-tap-a3079cbe.cjs} +1 -1
- package/lib/{status-tap-d40565fa.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-e6ab8794.cjs → swipe-back-37869c3a.cjs} +1 -1
- package/lib/{swipe-back-cfbc0910.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());
|
|
@@ -37440,9 +37444,9 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37440
37444
|
}), _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
37441
37445
|
__name: "DxpProductIdentifier",
|
|
37442
37446
|
setup(t) {
|
|
37443
|
-
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);
|
|
37444
37448
|
onMounted(() => {
|
|
37445
|
-
e.getIdentificationPref(o.value.productStoreId);
|
|
37449
|
+
e.prepareProductIdentifierOptions(), e.getIdentificationPref(o.value.productStoreId);
|
|
37446
37450
|
});
|
|
37447
37451
|
function u(d, p) {
|
|
37448
37452
|
e.setProductIdentificationPref(p, d, o.value.productStoreId);
|
|
@@ -37478,7 +37482,7 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37478
37482
|
onIonChange: p[0] || (p[0] = (g) => u(g.detail.value, "primaryId"))
|
|
37479
37483
|
}, {
|
|
37480
37484
|
default: withCtx(() => [
|
|
37481
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
37485
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(c.value, (g) => (openBlock(), createBlock(unref(IonSelectOption), {
|
|
37482
37486
|
key: g,
|
|
37483
37487
|
value: g
|
|
37484
37488
|
}, {
|
|
@@ -37506,7 +37510,7 @@ const initialiseFirebaseApp = async (t, e, r, o) => {
|
|
|
37506
37510
|
onIonChange: p[1] || (p[1] = (g) => u(g.detail.value, "secondaryId"))
|
|
37507
37511
|
}, {
|
|
37508
37512
|
default: withCtx(() => [
|
|
37509
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
37513
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(c.value, (g) => (openBlock(), createBlock(unref(IonSelectOption), {
|
|
37510
37514
|
key: g,
|
|
37511
37515
|
value: g
|
|
37512
37516
|
}, {
|
|
@@ -41783,7 +41787,7 @@ let dxpComponents = {
|
|
|
41783
41787
|
messages: e.localeMessages
|
|
41784
41788
|
}), t.use(pinia), t.use(i18n), t.use(IonicVue, {
|
|
41785
41789
|
mode: "md"
|
|
41786
|
-
}), 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, appContext.Actions = e.Actions, appContext.hasPermission = e.hasPermission, 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;
|
|
41787
41791
|
}
|
|
41788
41792
|
};
|
|
41789
41793
|
export {
|