@feedmepos/mf-common 1.29.35 → 1.29.36-dev.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/{CustomAttributesForm-ca38881a.js → CustomAttributesForm-d3091ffa.js} +1 -1
- package/dist/{ItemSelector-9c3692d5.js → ItemSelector-5ff6e919.js} +21791 -18283
- package/dist/{RestaurantSelector-350bc12f.js → RestaurantSelector-5cfbbb1d.js} +1 -1
- package/dist/api/index.d.ts +21 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/{app-db99e674.js → app-176a4dba.js} +16483 -15792
- package/dist/app.d.ts +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +32 -30
- package/dist/components/AllBusinessDialog.vue.d.ts.map +1 -1
- package/dist/components/FoodCourtSelectList.vue.d.ts +8 -0
- package/dist/components/FoodCourtSelectList.vue.d.ts.map +1 -0
- package/dist/components/MyFoodCourtDialog.vue.d.ts +15 -0
- package/dist/components/MyFoodCourtDialog.vue.d.ts.map +1 -0
- package/dist/components/Portal/BusinessDialogMobile.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -1
- package/dist/components/Portal/index.vue.d.ts.map +1 -1
- package/dist/components/UserInfo/index.vue.d.ts.map +1 -1
- package/dist/composables/useContextSelector.d.ts +23 -0
- package/dist/composables/useContextSelector.d.ts.map +1 -0
- package/dist/composables/usePaginatedFoodCourts.d.ts +214 -0
- package/dist/composables/usePaginatedFoodCourts.d.ts.map +1 -0
- package/dist/i18n.d.ts +140 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/router/context.d.ts +11 -0
- package/dist/router/context.d.ts.map +1 -0
- package/dist/router/query.d.ts.map +1 -1
- package/dist/store.d.ts +73 -5
- package/dist/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/utils/businessStorage.d.ts +17 -0
- package/dist/utils/businessStorage.d.ts.map +1 -1
- package/dist/utils/foodCourtMembers.d.ts +18 -0
- package/dist/utils/foodCourtMembers.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -1,12 +1,29 @@
|
|
|
1
|
+
/** The portal's top-level context: a business (with its restaurants) or a food court. */
|
|
2
|
+
export type PortalContextType = "business" | "foodCourt";
|
|
1
3
|
export declare const businessStorage: {
|
|
4
|
+
/**
|
|
5
|
+
* The URL wins over the cache, so a link carrying `foodCourtId` or `businessId`
|
|
6
|
+
* opens in that context regardless of what this browser used last. The portal
|
|
7
|
+
* never writes both; if a link has both, `businessId` wins, matching the shell
|
|
8
|
+
* bootstrap that selects a `businessId` + `country` pair for embedding hosts.
|
|
9
|
+
*/
|
|
10
|
+
getContextType: () => PortalContextType;
|
|
2
11
|
getBusinessId: () => string | null;
|
|
3
12
|
setBusinessId: (businessId: string) => void;
|
|
4
13
|
getRestaurantId: () => string | null;
|
|
5
14
|
setRestaurantId: (restaurantId: string) => void;
|
|
15
|
+
getFoodCourtId: () => string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Enters the food court context. The cached business stays in storage so the
|
|
18
|
+
* portal can fall back to it, but leaves the URL: a URL carries one context.
|
|
19
|
+
*/
|
|
20
|
+
setFoodCourtId: (foodCourtId: string) => void;
|
|
6
21
|
getCountry: () => string | null;
|
|
7
22
|
setCountry: (country: string) => void;
|
|
8
23
|
clearBusinessId: () => void;
|
|
9
24
|
clearCountry: () => void;
|
|
10
25
|
clearRestaurantId: () => void;
|
|
26
|
+
/** Leaves the food court context and returns to the business one. */
|
|
27
|
+
clearFoodCourtId: () => void;
|
|
11
28
|
};
|
|
12
29
|
//# sourceMappingURL=businessStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/businessStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"businessStorage.d.ts","sourceRoot":"","sources":["../../../src/utils/businessStorage.ts"],"names":[],"mappings":"AAQA,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,WAAW,CAAA;AA6CxD,eAAO,MAAM,eAAe;IAC1B;;;;;OAKG;0BACiB,iBAAiB;;gCAST,MAAM;;oCASF,MAAM;;IAOtC;;;OAGG;kCAC2B,MAAM;;0BASd,MAAM;;;;IAgB5B,qEAAqE;;CAMtE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FdoFoodCourtMemberV2 } from "@feedmepos/entity/ordering";
|
|
2
|
+
export interface FoodCourtMemberGroups {
|
|
3
|
+
active: FdoFoodCourtMemberV2[];
|
|
4
|
+
invited: FdoFoodCourtMemberV2[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The restaurants currently in a food court: joined ones, and invites still
|
|
8
|
+
* pending. Declined, revoked and removed rows are history, and an invite past
|
|
9
|
+
* `inviteExpiresAt` counts as expired although the service never stores that.
|
|
10
|
+
*/
|
|
11
|
+
export declare function groupFoodCourtMembers(members: FdoFoodCourtMemberV2[], now?: number): FoodCourtMemberGroups;
|
|
12
|
+
/**
|
|
13
|
+
* What a member row is called. A member carries only its restaurant's id, and the
|
|
14
|
+
* portal cannot read restaurants of other businesses, so the stall's own name in
|
|
15
|
+
* this court comes first, then its unit number.
|
|
16
|
+
*/
|
|
17
|
+
export declare function foodCourtMemberTitle(member: FdoFoodCourtMemberV2): string;
|
|
18
|
+
//# sourceMappingURL=foodCourtMembers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foodCourtMembers.d.ts","sourceRoot":"","sources":["../../../src/utils/foodCourtMembers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAEtE,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,oBAAoB,EAAE,CAAA;IAC9B,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC;AAmBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,oBAAoB,EAAE,EAC/B,GAAG,SAAa,GACf,qBAAqB,CAMvB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAEzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-common",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.36-dev.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
"@casl/ability": "^3.2.0",
|
|
20
20
|
"@feedmepos/auth": "1.3.1",
|
|
21
21
|
"@feedmepos/core": "2.15.21",
|
|
22
|
-
"@feedmepos/menu": "1.7.7",
|
|
23
|
-
"@feedmepos/i18n": "0.3.1",
|
|
24
22
|
"@feedmepos/custom-attributes": "0.0.1-rc.4",
|
|
23
|
+
"@feedmepos/entity": "0.0.29",
|
|
24
|
+
"@feedmepos/i18n": "0.3.1",
|
|
25
|
+
"@feedmepos/menu": "1.7.7",
|
|
25
26
|
"@feedmepos/ui-library": "1.10.17",
|
|
26
27
|
"@feedmepos/vue-client-monitoring": "0.1.0-beta.6",
|
|
27
28
|
"@vue/devtools-api": "^6.5.0",
|