@pisell/private-materials 6.12.233 → 6.12.235
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.js +12 -12
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/TimeBar/index.js +8 -1
- package/es/components/bigSale/dialog.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
- package/es/components/bigSale/index.js +0 -1
- package/es/components/bigSale/templates/HDLKiosk/index.js +1 -0
- package/es/components/bigSale/templates/Kiosk/index.js +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +1 -1
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/index.js +0 -2
- package/es/plus/multiCurrencySettlement/index.js +1 -1
- package/es/plus/pisellReservation/PisellReservation.js +9 -4
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/pisellSalesManagement/index.js +3 -1
- package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
- package/es/plus/saleDetail/Base.js +0 -1
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/PrintAction.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/index.js +0 -1
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +0 -1
- package/es/plus/saleDetail/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/components/Invoice/ReceiptRenderer.js +3 -3
- package/es/plus/saleDetail/tmpl/B/index.js +0 -1
- package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- package/es/private-materials/lowcode/authmodal/meta.d.ts +1 -0
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +2 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/es/utils/posDateLocale.js +68 -0
- package/lib/components/bigSale/components/TimeBar/index.js +10 -0
- package/lib/components/bigSale/templates/HDLKiosk/index.js +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +2 -2
- package/lib/plus/pisellReservation/PisellReservation.js +9 -4
- package/lib/plus/pisellSalesManagement/index.js +3 -1
- package/lib/plus/saleDetail/tmpl/B/components/Invoice/ReceiptRenderer.js +3 -3
- package/lib/utils/posDateLocale.js +73 -0
- package/package.json +3 -3
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -53
|
@@ -5,6 +5,7 @@ const require_objectWithoutProperties = require("../../_virtual/_@oxc-project_ru
|
|
|
5
5
|
const require_useEngineContext = require("../../hooks/useEngineContext.js");
|
|
6
6
|
const require_index = require("../../utils/index.js");
|
|
7
7
|
const require_serve = require("../pisellSalesManagement/serve.js");
|
|
8
|
+
const require_posDateLocale = require("../../utils/posDateLocale.js");
|
|
8
9
|
const require_usePicoCodingOpenData = require("./hooks/usePicoCodingOpenData.js");
|
|
9
10
|
const require_useReservationPhoneGridInfiniteData = require("./hooks/useReservationPhoneGridInfiniteData.js");
|
|
10
11
|
const require_booking = require("../pisellSalesManagement/config/booking.js");
|
|
@@ -166,6 +167,9 @@ const PisellReservationCore = (props) => {
|
|
|
166
167
|
pisellosRef.current = pisellos;
|
|
167
168
|
const hasPisellosGetModule = typeof (pisellos === null || pisellos === void 0 ? void 0 : pisellos.getModule) === "function";
|
|
168
169
|
const engineLocale = (engineCtx === null || engineCtx === void 0 || (_engineCtx$engine = engineCtx.engine) === null || _engineCtx$engine === void 0 || (_engineCtx$engine = _engineCtx$engine.props) === null || _engineCtx$engine === void 0 ? void 0 : _engineCtx$engine.locale) || "zh-CN";
|
|
170
|
+
const shopCountryCode = require_posDateLocale.resolvePosCountryCode(engineCtx);
|
|
171
|
+
const weekStartsOn = require_posDateLocale.getPosWeekStartsOn(shopCountryCode);
|
|
172
|
+
const countryAdapterLocale = require_posDateLocale.getPosEnglishAdapterLocale(shopCountryCode);
|
|
169
173
|
const app = engineCtx === null || engineCtx === void 0 || (_engineCtx$appHelper2 = engineCtx.appHelper) === null || _engineCtx$appHelper2 === void 0 || (_engineCtx$appHelper2 = _engineCtx$appHelper2.utils) === null || _engineCtx$appHelper2 === void 0 || (_engineCtx$appHelper3 = _engineCtx$appHelper2.getApp) === null || _engineCtx$appHelper3 === void 0 ? void 0 : _engineCtx$appHelper3.call(_engineCtx$appHelper2);
|
|
170
174
|
const router = app === null || app === void 0 || (_app$router = app.router) === null || _app$router === void 0 || (_app$router$getRoutes = _app$router.getRoutes) === null || _app$router$getRoutes === void 0 ? void 0 : _app$router$getRoutes.call(_app$router);
|
|
171
175
|
const params = app === null || app === void 0 || (_app$history = app.history) === null || _app$history === void 0 || (_app$history$useParam = _app$history.useParams) === null || _app$history$useParam === void 0 ? void 0 : _app$history$useParam.call(_app$history);
|
|
@@ -188,8 +192,8 @@ const PisellReservationCore = (props) => {
|
|
|
188
192
|
const loc = String(engineLocale).toLowerCase();
|
|
189
193
|
if (loc.startsWith("zh-cn")) return "zh-cn";
|
|
190
194
|
if (loc.startsWith("zh-tw") || loc.startsWith("zh-hk")) return "zh-tw";
|
|
191
|
-
return "en";
|
|
192
|
-
}, [engineLocale]);
|
|
195
|
+
return countryAdapterLocale || "en";
|
|
196
|
+
}, [countryAdapterLocale, engineLocale]);
|
|
193
197
|
const operatingDayBoundary = (0, react.useMemo)(() => {
|
|
194
198
|
try {
|
|
195
199
|
var _engineCtx$appHelper4, _engineCtx$appHelper5, _engineCtx$appHelper6, _store$getDataByModel;
|
|
@@ -634,6 +638,7 @@ const PisellReservationCore = (props) => {
|
|
|
634
638
|
runtimeContext,
|
|
635
639
|
onCalendarViewportFirstPatch: handleCalendarViewportFirstPatch
|
|
636
640
|
});
|
|
641
|
+
const countryAwareCalendarSlotProps = (0, react.useMemo)(() => weekStartsOn === void 0 ? reservationCalendarSlotProps : require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, reservationCalendarSlotProps), {}, { weekStartsOn }), [reservationCalendarSlotProps, weekStartsOn]);
|
|
637
642
|
const floorMapMerged = require_useReservationFloorMapMerged.useReservationFloorMapMerged({
|
|
638
643
|
floorMapProp,
|
|
639
644
|
baseFloorConfig,
|
|
@@ -833,7 +838,7 @@ const PisellReservationCore = (props) => {
|
|
|
833
838
|
search: bookingChildProps.search,
|
|
834
839
|
batchActionBar: bookingChildProps.batchActionBar,
|
|
835
840
|
floorMap: floorMapMerged,
|
|
836
|
-
calendar:
|
|
841
|
+
calendar: countryAwareCalendarSlotProps,
|
|
837
842
|
resourceWall: reservationResourceWallSlotProps,
|
|
838
843
|
defaultBodyView: "floorMap",
|
|
839
844
|
bodyViewStorageKey,
|
|
@@ -849,7 +854,7 @@ const PisellReservationCore = (props) => {
|
|
|
849
854
|
patchSearchParams: floorDayBookingData.patchSearchParams,
|
|
850
855
|
operatingDayBoundary,
|
|
851
856
|
timelineRange: effectiveTimelineRange
|
|
852
|
-
}), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.ShellFrame, null, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.GridLayout, null), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.FloorMap, null), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.Calendar,
|
|
857
|
+
}), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.ShellFrame, null, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.GridLayout, null), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.FloorMap, null), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.Calendar, countryAwareCalendarSlotProps), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellRecordBoard.ResourceWall, null))), /* @__PURE__ */ react.default.createElement(require_ReservationNewReservationModal.ReservationNewReservationModal, {
|
|
853
858
|
ref: newReservationModalRef,
|
|
854
859
|
router,
|
|
855
860
|
app
|
|
@@ -4,6 +4,7 @@ const require_useEngineContext = require("../../hooks/useEngineContext.js");
|
|
|
4
4
|
const require_osQuery = require("../../utils/osQuery.js");
|
|
5
5
|
const require_index = require("../../utils/index.js");
|
|
6
6
|
const require_serve = require("./serve.js");
|
|
7
|
+
const require_posDateLocale = require("../../utils/posDateLocale.js");
|
|
7
8
|
const require_index$1 = require("../pisellSalesGrid/index.js");
|
|
8
9
|
const require_locales = require("./locales.js");
|
|
9
10
|
const require_usePerspectives = require("./hooks/usePerspectives.js");
|
|
@@ -90,7 +91,8 @@ const PisellSalesManagement = (props) => {
|
|
|
90
91
|
extParams,
|
|
91
92
|
externalKeyword: keyword
|
|
92
93
|
});
|
|
93
|
-
const
|
|
94
|
+
const countryAdapterLocale = require_posDateLocale.getPosEnglishAdapterLocale(require_posDateLocale.resolvePosCountryCode(context));
|
|
95
|
+
const adapterLocale = (context === null || context === void 0 || (_context$engine3 = context.engine) === null || _context$engine3 === void 0 || (_context$engine3 = _context$engine3.props) === null || _context$engine3 === void 0 ? void 0 : _context$engine3.locale) === "zh-CN" || (context === null || context === void 0 || (_context$engine4 = context.engine) === null || _context$engine4 === void 0 || (_context$engine4 = _context$engine4.props) === null || _context$engine4 === void 0 ? void 0 : _context$engine4.locale) === "zh-HK" ? "zh-cn" : (context === null || context === void 0 || (_context$engine5 = context.engine) === null || _context$engine5 === void 0 || (_context$engine5 = _context$engine5.props) === null || _context$engine5 === void 0 ? void 0 : _context$engine5.locale) === "en" || (context === null || context === void 0 || (_context$engine6 = context.engine) === null || _context$engine6 === void 0 || (_context$engine6 = _context$engine6.props) === null || _context$engine6 === void 0 ? void 0 : _context$engine6.locale) === "en-US" ? countryAdapterLocale || "en" : "zh-cn";
|
|
94
96
|
const rawLocale = (context === null || context === void 0 || (_context$engine7 = context.engine) === null || _context$engine7 === void 0 || (_context$engine7 = _context$engine7.props) === null || _context$engine7 === void 0 ? void 0 : _context$engine7.locale) || (typeof localStorage !== "undefined" ? localStorage.getItem("umi_locale") : null) || "en-US";
|
|
95
97
|
const materialsLocale = rawLocale === "zh" ? "zh-CN" : rawLocale;
|
|
96
98
|
return /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellConfigProvider, { locale: materialsLocale }, /* @__PURE__ */ react.default.createElement(_pisell_date_picker.LocalizationProvider, {
|
|
@@ -126,7 +126,7 @@ function isDiscountExtension(row) {
|
|
|
126
126
|
return /^\s*-/.test(String(row.value || ""));
|
|
127
127
|
}
|
|
128
128
|
function buildProductDetailRows(product, quantity, locale, indent, scaleCombinationQuantity = true) {
|
|
129
|
-
var _product$product_note;
|
|
129
|
+
var _product$base_price, _product$product_note;
|
|
130
130
|
const options = Array.isArray(product.options) ? product.options : Array.isArray(product.combinations_options) ? product.combinations_options : [];
|
|
131
131
|
const combinations = Array.isArray(product.combinations) ? product.combinations : Array.isArray(product.product_bundle) ? product.product_bundle : [];
|
|
132
132
|
const extensionRows = Array.isArray(product.extension_list) ? product.extension_list.filter((row) => !/^\s*\d+(?:\.\d+)?\s*@\s*.+\s+EACH\s*$/i.test(String((row === null || row === void 0 ? void 0 : row.item) || ""))) : [];
|
|
@@ -135,7 +135,7 @@ function buildProductDetailRows(product, quantity, locale, indent, scaleCombinat
|
|
|
135
135
|
const optionRows = buildOptionRows(options, quantity, indent + 1);
|
|
136
136
|
const optionTotal = product.options_total_price ? String(product.options_total_price) : require_receipt.sumReceiptMoney(optionRows.map((row) => row.value), product.original_price || product.price);
|
|
137
137
|
const originalTotal = product.total_original_price ? String(product.total_original_price) : require_receipt.multiplyReceiptMoney(product.original_price || product.price || "", quantity);
|
|
138
|
-
const
|
|
138
|
+
const authoritativeBasePrice = String((_product$base_price = product.base_price) !== null && _product$base_price !== void 0 ? _product$base_price : "").trim();
|
|
139
139
|
const productTotal = productDisplayTotal(product, quantity);
|
|
140
140
|
const showBasePrice = Boolean(originalTotal && (options.length || combinations.length || discountRows.length || require_receipt.receiptMoneyValuesDiffer(originalTotal, productTotal)));
|
|
141
141
|
const combinationTotals = combinations.map((combination) => {
|
|
@@ -157,7 +157,7 @@ function buildProductDetailRows(product, quantity, locale, indent, scaleCombinat
|
|
|
157
157
|
});
|
|
158
158
|
if (showBasePrice) rows.push({
|
|
159
159
|
item: label("Base price", locale),
|
|
160
|
-
value:
|
|
160
|
+
value: authoritativeBasePrice || require_receipt.subtractReceiptMoney(originalTotal, optionTotal ? [optionTotal] : []),
|
|
161
161
|
indent
|
|
162
162
|
});
|
|
163
163
|
if (options.length) {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.js");
|
|
2
|
+
let dayjs = require("dayjs");
|
|
3
|
+
dayjs = require_runtime.__toESM(dayjs);
|
|
4
|
+
let dayjs_locale_en_gb = require("dayjs/locale/en-gb");
|
|
5
|
+
dayjs_locale_en_gb = require_runtime.__toESM(dayjs_locale_en_gb);
|
|
6
|
+
//#region src/utils/posDateLocale.ts
|
|
7
|
+
dayjs.default.locale(dayjs_locale_en_gb.default, void 0, true);
|
|
8
|
+
const COUNTRY_WEEK_STARTS_ON = {
|
|
9
|
+
US: 0,
|
|
10
|
+
CA: 0,
|
|
11
|
+
AU: 1,
|
|
12
|
+
NZ: 1,
|
|
13
|
+
SG: 0,
|
|
14
|
+
HK: 0,
|
|
15
|
+
TW: 0,
|
|
16
|
+
CN: 1,
|
|
17
|
+
JP: 0,
|
|
18
|
+
KR: 0,
|
|
19
|
+
MY: 1,
|
|
20
|
+
GB: 1,
|
|
21
|
+
FR: 1,
|
|
22
|
+
IT: 1
|
|
23
|
+
};
|
|
24
|
+
const normalizeCountryCode = (value) => {
|
|
25
|
+
const countryCode = String(value !== null && value !== void 0 ? value : "").trim().toUpperCase();
|
|
26
|
+
return /^[A-Z]{2}$/.test(countryCode) ? countryCode : void 0;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Reads the current shop country from the POS host without using tax country.
|
|
30
|
+
* Invalid or unavailable host data returns an empty result so callers can keep
|
|
31
|
+
* their existing locale behaviour.
|
|
32
|
+
*/
|
|
33
|
+
function resolvePosCountryCode(engineContext) {
|
|
34
|
+
try {
|
|
35
|
+
var _engineContext$appHel, _utils$getStore, _utils$getStore$getSt, _utils$store, _utils$store$getState, _utils$getApp, _utils$getApp$getStor, _utils$getApp$getStor2, _hostState$global, _getData, _hostState$global2, _hostState$global3, _engineContext$appHel2, _engineContext$appHel3, _engineContext$appHel4, _engineContext$engine, _engineContext$engine2;
|
|
36
|
+
const utils = engineContext === null || engineContext === void 0 || (_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.utils;
|
|
37
|
+
const getData = utils === null || utils === void 0 ? void 0 : utils.getData;
|
|
38
|
+
const hostState = (utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 || (_utils$getStore$getSt = _utils$getStore.getState) === null || _utils$getStore$getSt === void 0 ? void 0 : _utils$getStore$getSt.call(_utils$getStore)) || (utils === null || utils === void 0 || (_utils$store = utils.store) === null || _utils$store === void 0 || (_utils$store$getState = _utils$store.getState) === null || _utils$store$getState === void 0 ? void 0 : _utils$store$getState.call(_utils$store));
|
|
39
|
+
const appCore = utils === null || utils === void 0 || (_utils$getApp = utils.getApp) === null || _utils$getApp === void 0 || (_utils$getApp = _utils$getApp.call(utils)) === null || _utils$getApp === void 0 || (_utils$getApp = _utils$getApp.data) === null || _utils$getApp === void 0 || (_utils$getApp = _utils$getApp.store) === null || _utils$getApp === void 0 || (_utils$getApp$getStor = _utils$getApp.getStore) === null || _utils$getApp$getStor === void 0 || (_utils$getApp$getStor = _utils$getApp$getStor.call(_utils$getApp)) === null || _utils$getApp$getStor === void 0 || (_utils$getApp$getStor2 = _utils$getApp$getStor.getDataByModel) === null || _utils$getApp$getStor2 === void 0 ? void 0 : _utils$getApp$getStor2.call(_utils$getApp$getStor, "core", "core");
|
|
40
|
+
const candidates = [
|
|
41
|
+
hostState === null || hostState === void 0 || (_hostState$global = hostState.global) === null || _hostState$global === void 0 || (_hostState$global = _hostState$global.shopDetail) === null || _hostState$global === void 0 ? void 0 : _hostState$global.country_code,
|
|
42
|
+
getData === null || getData === void 0 || (_getData = getData("shop_info")) === null || _getData === void 0 ? void 0 : _getData.country_code,
|
|
43
|
+
appCore === null || appCore === void 0 ? void 0 : appCore.country_code,
|
|
44
|
+
getData === null || getData === void 0 ? void 0 : getData("country_code"),
|
|
45
|
+
hostState === null || hostState === void 0 || (_hostState$global2 = hostState.global) === null || _hostState$global2 === void 0 || (_hostState$global2 = _hostState$global2.shop) === null || _hostState$global2 === void 0 ? void 0 : _hostState$global2.country_code,
|
|
46
|
+
hostState === null || hostState === void 0 || (_hostState$global3 = hostState.global) === null || _hostState$global3 === void 0 || (_hostState$global3 = _hostState$global3.globalConfig) === null || _hostState$global3 === void 0 ? void 0 : _hostState$global3.country_code,
|
|
47
|
+
engineContext === null || engineContext === void 0 || (_engineContext$appHel2 = engineContext.appHelper) === null || _engineContext$appHel2 === void 0 || (_engineContext$appHel2 = _engineContext$appHel2.constants) === null || _engineContext$appHel2 === void 0 ? void 0 : _engineContext$appHel2.countryCode,
|
|
48
|
+
engineContext === null || engineContext === void 0 || (_engineContext$appHel3 = engineContext.appHelper) === null || _engineContext$appHel3 === void 0 || (_engineContext$appHel3 = _engineContext$appHel3.constants) === null || _engineContext$appHel3 === void 0 ? void 0 : _engineContext$appHel3.country_code,
|
|
49
|
+
engineContext === null || engineContext === void 0 || (_engineContext$appHel4 = engineContext.appHelper) === null || _engineContext$appHel4 === void 0 || (_engineContext$appHel4 = _engineContext$appHel4.constants) === null || _engineContext$appHel4 === void 0 ? void 0 : _engineContext$appHel4.country,
|
|
50
|
+
engineContext === null || engineContext === void 0 || (_engineContext$engine = engineContext.engine) === null || _engineContext$engine === void 0 || (_engineContext$engine = _engineContext$engine.props) === null || _engineContext$engine === void 0 || (_engineContext$engine = _engineContext$engine.variables) === null || _engineContext$engine === void 0 ? void 0 : _engineContext$engine.countryCode,
|
|
51
|
+
engineContext === null || engineContext === void 0 || (_engineContext$engine2 = engineContext.engine) === null || _engineContext$engine2 === void 0 || (_engineContext$engine2 = _engineContext$engine2.props) === null || _engineContext$engine2 === void 0 || (_engineContext$engine2 = _engineContext$engine2.variables) === null || _engineContext$engine2 === void 0 ? void 0 : _engineContext$engine2.country_code
|
|
52
|
+
];
|
|
53
|
+
for (const value of candidates) {
|
|
54
|
+
const countryCode = normalizeCountryCode(value);
|
|
55
|
+
if (countryCode) return countryCode;
|
|
56
|
+
}
|
|
57
|
+
} catch (_unused) {}
|
|
58
|
+
}
|
|
59
|
+
/** Returns undefined for countries outside the explicitly supported POS list. */
|
|
60
|
+
function getPosWeekStartsOn(countryCode) {
|
|
61
|
+
const normalized = normalizeCountryCode(countryCode);
|
|
62
|
+
return normalized ? COUNTRY_WEEK_STARTS_ON[normalized] : void 0;
|
|
63
|
+
}
|
|
64
|
+
/** English Dayjs locale override; undefined means preserve the caller's locale. */
|
|
65
|
+
function getPosEnglishAdapterLocale(countryCode) {
|
|
66
|
+
const weekStartsOn = getPosWeekStartsOn(countryCode);
|
|
67
|
+
if (weekStartsOn === void 0) return void 0;
|
|
68
|
+
return weekStartsOn === 1 ? "en-gb" : "en";
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
exports.getPosEnglishAdapterLocale = getPosEnglishAdapterLocale;
|
|
72
|
+
exports.getPosWeekStartsOn = getPosWeekStartsOn;
|
|
73
|
+
exports.resolvePosCountryCode = resolvePosCountryCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.235",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"styled-components": "^6.0.0-rc.3",
|
|
71
71
|
"use-sync-external-store": "^1.6.0",
|
|
72
72
|
"@pisell/pi-payment-sdk": "0.0.3",
|
|
73
|
-
"@pisell/
|
|
73
|
+
"@pisell/utils": "3.0.4",
|
|
74
74
|
"@pisell/icon": "0.0.11",
|
|
75
75
|
"@pisell/date-picker": "3.0.10",
|
|
76
|
-
"@pisell/
|
|
76
|
+
"@pisell/materials": "6.12.62"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./serve/formResourcePage.js";
|
|
2
|
-
import "./floorRoomCard/mapRowToFloorRoomCardData.js";
|
|
3
|
-
import "./floorRoomCard/ReservationFloorRoomCard.js";
|
|
4
|
-
import "./floorMap/reservationMock.js";
|
|
5
|
-
import "./floorMap/floorPlanApi.js";
|
|
6
|
-
import "./reservationConstants.js";
|
|
7
|
-
import "./data/bookingToReservationTables.js";
|
|
8
|
-
import "./data/formResourceToReservationTables.js";
|
|
9
|
-
import "./data/salesEmbeddedResourceToTableRows.js";
|
|
10
|
-
import "./floorMap/reservationCards.js";
|
|
11
|
-
import "./PisellReservation.js";
|
|
12
|
-
import "./PisellReservationBookingPage.js";
|
|
13
|
-
import "./PisellVenueControlPage.js";
|
|
14
|
-
import "./PisellVenueWallPage.js";
|
|
15
|
-
import "./PisellReservationTablePage.js";
|
|
16
|
-
import "./components/SelectFloorMapResourceDialog.js";
|
|
17
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import "./hosts/createInstanceHostBridge.js";
|
|
2
|
-
import "./holderConfirm/createHolderConfirmBridge.js";
|
|
3
|
-
import "./giftSelect/createGiftSelectBridge.js";
|
|
4
|
-
import "./context/SalesSdkHostBridgesContext.js";
|
|
5
|
-
import "./utils/formatHolderOptions.js";
|
|
6
|
-
import "./utils/enrichCartLineHolderDisplay.js";
|
|
7
|
-
import "./context/SalesSdkHolderContext.js";
|
|
8
|
-
import "../multiCurrencySettlement/index.js";
|
|
9
|
-
import "./utils/appendPromotionTags.js";
|
|
10
|
-
import "./context/SalesSdkUIHostsContext.js";
|
|
11
|
-
import "./utils/runAddProductFlow.js";
|
|
12
|
-
import "./components/showAddToCartToast.js";
|
|
13
|
-
import "./utils/resolveAddProductDebounceKey.js";
|
|
14
|
-
import "./utils/productSkuOptions.js";
|
|
15
|
-
import "./utils/identity.js";
|
|
16
|
-
import "./utils/resolveInCartQuantityForAddToast.js";
|
|
17
|
-
import "./utils/addProductWithFlowDebounced.js";
|
|
18
|
-
import "./utils/customerAuthGate.js";
|
|
19
|
-
import "./utils/bookingDate.js";
|
|
20
|
-
import "./utils/holderSubmitValidation.js";
|
|
21
|
-
import "./utils/removeOrderProducts.js";
|
|
22
|
-
import "./selectors.js";
|
|
23
|
-
import "./utils/enrich.js";
|
|
24
|
-
import "./giftSelect/createOpenGiftSelectHost.js";
|
|
25
|
-
import "./utils/ensureHoldersBeforeSubmit.js";
|
|
26
|
-
import "./hooks/useSalesSdk.js";
|
|
27
|
-
import "./bookingEditService/BookingEditServiceDrawer.js";
|
|
28
|
-
import "./hosts/BookingEditHostRenderer.js";
|
|
29
|
-
import "./hosts/CustomerAuthHostRenderer.js";
|
|
30
|
-
import "./hooks/useSalesSdkCart.js";
|
|
31
|
-
import "./hooks/useSalesSdkCustomer.js";
|
|
32
|
-
import "./normalProductDetail/NormalProductDetailHostRenderer.js";
|
|
33
|
-
import "./hosts/createOpenBookingEditHost.js";
|
|
34
|
-
import "./hosts/createOpenMultiDaySelectHost.js";
|
|
35
|
-
import "./hosts/createOpenHolderSelectHost.js";
|
|
36
|
-
import "./hosts/createOpenCustomerAuthHost.js";
|
|
37
|
-
import "./demo/hosts/legacyOpenProductDetail.js";
|
|
38
|
-
import "./hosts/createCompositeOpenProductDetailHost.js";
|
|
39
|
-
import "./normalProductDetail/createOpenNormalProductDetailHost.js";
|
|
40
|
-
import "./normalProductDetail/createOpenBookingSelectionFlowHost.js";
|
|
41
|
-
import "./giftSelect/GiftSelectModal.js";
|
|
42
|
-
import "./giftSelect/GiftSelectHostRenderer.js";
|
|
43
|
-
import "./allergy/AllergySelectionModal.js";
|
|
44
|
-
import "./context/SalesSdkProvider.js";
|
|
45
|
-
import "./context/SalesSdkDishContext.js";
|
|
46
|
-
import "./context/SalesSdkBookingContext.js";
|
|
47
|
-
import "./hooks/useSalesSdkSummary.js";
|
|
48
|
-
import "./hooks/useSalesSdkProducts.js";
|
|
49
|
-
import "./demo/index.js";
|
|
50
|
-
import "./hooks/useSalesSdkDish.js";
|
|
51
|
-
import "./hooks/useCurrentSalesSdkDish.js";
|
|
52
|
-
import "./hooks/useSyncOsModule.js";
|
|
53
|
-
export {};
|