@open-tender/store 0.3.27 → 0.3.29
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/cjs/slices/kds.d.ts
CHANGED
|
@@ -223,6 +223,7 @@ export declare const selectKdsItemTypes: (state: AppState) => ItemTypes | null;
|
|
|
223
223
|
export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
|
|
224
224
|
export declare const selectKdsPrepStationId: (state: AppState) => number | null;
|
|
225
225
|
export declare const selectKdsPrepStation: (state: AppState) => PrepStation | null;
|
|
226
|
+
export declare const selectKdsPrepType: (state: AppState) => import("../types").KdsPrepType | null;
|
|
226
227
|
export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
|
|
227
228
|
export declare const selectKdsColumns: (state: AppState) => number;
|
|
228
229
|
export declare const selectKdsBoxes: (state: AppState) => number;
|
package/dist/cjs/slices/kds.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.kdsReducer = exports.selectKdsOrdersCounts = exports.selectKdsPrepStationOrders = void 0;
|
|
4
|
+
exports.selectKdsFutureOrders = exports.selectKdsCurrentCount = exports.selectKdsCurrentOrders = exports.selectKdsOrders = exports.selectKdsOrder = exports.selectKdsBusinessDate = exports.selectKdsView = exports.selectKdsPageIndex = exports.selectKdsPage = exports.selectKdsSummary = exports.selectKdsFontSize = exports.selectKdsCardWidth = exports.selectKdsBoxes = exports.selectKdsColumns = exports.selectKdsOrderType = exports.selectKdsPrepType = exports.selectKdsPrepStation = exports.selectKdsPrepStationId = exports.selectKdsPrepStations = exports.selectKdsItemTypes = exports.selectKds = exports.replaceKdsOrder = exports.setKdsOrder = exports.toggleKdsSummary = exports.setKdsSearch = exports.setKdsBusinessDate = exports.setKdsView = exports.setKdsPage = exports.setKdsFontSize = exports.setKdsCardWidth = exports.setKdsBoxes = exports.setKdsColumns = exports.setKdsOrderType = exports.setKdsPrepStationId = exports.setKdsPrepStations = exports.setKdsItemTypes = exports.resetkds = exports.kdsSlice = exports.completeTicket = exports.doneTicket = exports.resetTicket = exports.updateTicket = exports.printTicket = exports.resetTickets = exports.updateTickets = exports.printTickets = exports.printKdsOrder = exports.updateKdsOrder = exports.fetchKdsOrders = exports.KdsActionType = void 0;
|
|
5
|
+
exports.kdsReducer = exports.selectKdsOrdersCounts = exports.selectKdsPrepStationOrders = exports.selectKdsFutureCount = void 0;
|
|
6
6
|
var tslib_1 = require("tslib");
|
|
7
7
|
var toolkit_1 = require("@reduxjs/toolkit");
|
|
8
8
|
var types_1 = require("./types");
|
|
@@ -516,6 +516,11 @@ var selectKdsPrepStation = function (state) {
|
|
|
516
516
|
return (_a = prepStations.find(function (i) { return i.prep_station_id === prepStationId; })) !== null && _a !== void 0 ? _a : null;
|
|
517
517
|
};
|
|
518
518
|
exports.selectKdsPrepStation = selectKdsPrepStation;
|
|
519
|
+
var selectKdsPrepType = function (state) {
|
|
520
|
+
var prepStation = (0, exports.selectKdsPrepStation)(state);
|
|
521
|
+
return prepStation ? prepStation.prep_type : null;
|
|
522
|
+
};
|
|
523
|
+
exports.selectKdsPrepType = selectKdsPrepType;
|
|
519
524
|
var selectKdsOrderType = function (state) { return state.kds.orderType; };
|
|
520
525
|
exports.selectKdsOrderType = selectKdsOrderType;
|
|
521
526
|
var selectKdsColumns = function (state) { return state.kds.columns; };
|
|
@@ -6,10 +6,20 @@ export declare type Layout = {
|
|
|
6
6
|
footerHeight: string;
|
|
7
7
|
asideWidth: string;
|
|
8
8
|
sidebarWidth: string;
|
|
9
|
-
bigButtonHeight: string;
|
|
10
9
|
gutter: string;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
paddingLessGutter: string;
|
|
11
|
+
marginLessGutter: string;
|
|
12
|
+
bigButton: {
|
|
13
|
+
height: string;
|
|
14
|
+
};
|
|
15
|
+
nav: {
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
cards: {
|
|
20
|
+
padding: string;
|
|
21
|
+
tktMinHeight: string;
|
|
22
|
+
};
|
|
13
23
|
};
|
|
14
24
|
export declare type Font = {
|
|
15
25
|
fontFamily: string;
|
package/dist/esm/slices/kds.d.ts
CHANGED
|
@@ -223,6 +223,7 @@ export declare const selectKdsItemTypes: (state: AppState) => ItemTypes | null;
|
|
|
223
223
|
export declare const selectKdsPrepStations: (state: AppState) => PrepStations;
|
|
224
224
|
export declare const selectKdsPrepStationId: (state: AppState) => number | null;
|
|
225
225
|
export declare const selectKdsPrepStation: (state: AppState) => PrepStation | null;
|
|
226
|
+
export declare const selectKdsPrepType: (state: AppState) => import("../types").KdsPrepType | null;
|
|
226
227
|
export declare const selectKdsOrderType: (state: AppState) => KdsOrderType;
|
|
227
228
|
export declare const selectKdsColumns: (state: AppState) => number;
|
|
228
229
|
export declare const selectKdsBoxes: (state: AppState) => number;
|
package/dist/esm/slices/kds.js
CHANGED
|
@@ -507,6 +507,10 @@ export var selectKdsPrepStation = function (state) {
|
|
|
507
507
|
var _b = state.kds, prepStations = _b.prepStations, prepStationId = _b.prepStationId;
|
|
508
508
|
return (_a = prepStations.find(function (i) { return i.prep_station_id === prepStationId; })) !== null && _a !== void 0 ? _a : null;
|
|
509
509
|
};
|
|
510
|
+
export var selectKdsPrepType = function (state) {
|
|
511
|
+
var prepStation = selectKdsPrepStation(state);
|
|
512
|
+
return prepStation ? prepStation.prep_type : null;
|
|
513
|
+
};
|
|
510
514
|
export var selectKdsOrderType = function (state) { return state.kds.orderType; };
|
|
511
515
|
export var selectKdsColumns = function (state) { return state.kds.columns; };
|
|
512
516
|
export var selectKdsBoxes = function (state) { return state.kds.boxes; };
|
|
@@ -6,10 +6,20 @@ export declare type Layout = {
|
|
|
6
6
|
footerHeight: string;
|
|
7
7
|
asideWidth: string;
|
|
8
8
|
sidebarWidth: string;
|
|
9
|
-
bigButtonHeight: string;
|
|
10
9
|
gutter: string;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
paddingLessGutter: string;
|
|
11
|
+
marginLessGutter: string;
|
|
12
|
+
bigButton: {
|
|
13
|
+
height: string;
|
|
14
|
+
};
|
|
15
|
+
nav: {
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
cards: {
|
|
20
|
+
padding: string;
|
|
21
|
+
tktMinHeight: string;
|
|
22
|
+
};
|
|
13
23
|
};
|
|
14
24
|
export declare type Font = {
|
|
15
25
|
fontFamily: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|