@orderingstack/front-components-product-configurator 1.0.0 → 1.0.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/components/Counter/Counter.d.ts +11 -0
- package/dist/components/Counter/Counter.d.ts.map +1 -0
- package/dist/components/Counter/index.d.ts +3 -0
- package/dist/components/Counter/index.d.ts.map +1 -0
- package/dist/components/DisplayState/DisplayState.d.ts +2 -0
- package/dist/components/DisplayState/DisplayState.d.ts.map +1 -0
- package/dist/components/DisplayState/index.d.ts +3 -0
- package/dist/components/DisplayState/index.d.ts.map +1 -0
- package/dist/components/GroupStateInfo/GroupStateInfo.d.ts +9 -0
- package/dist/components/GroupStateInfo/GroupStateInfo.d.ts.map +1 -0
- package/dist/components/GroupStateInfo/index.d.ts +3 -0
- package/dist/components/GroupStateInfo/index.d.ts.map +1 -0
- package/dist/components/InfoLine/InfoLine.d.ts +8 -0
- package/dist/components/InfoLine/InfoLine.d.ts.map +1 -0
- package/dist/components/InfoLine/index.d.ts +3 -0
- package/dist/components/InfoLine/index.d.ts.map +1 -0
- package/dist/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts +8 -0
- package/dist/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts.map +1 -0
- package/dist/components/MenuItemsDispatcher/index.d.ts +3 -0
- package/dist/components/MenuItemsDispatcher/index.d.ts.map +1 -0
- package/dist/components/MenuItemsDispatcher/useMenuItemsDispatcher.d.ts +6 -0
- package/dist/components/MenuItemsDispatcher/useMenuItemsDispatcher.d.ts.map +1 -0
- package/dist/components/MenuOptions/MenuOptions.d.ts +10 -0
- package/dist/components/MenuOptions/MenuOptions.d.ts.map +1 -0
- package/dist/components/MenuOptions/MenuOptionsDefaultUI.d.ts +3 -0
- package/dist/components/MenuOptions/MenuOptionsDefaultUI.d.ts.map +1 -0
- package/dist/components/MenuOptions/index.d.ts +3 -0
- package/dist/components/MenuOptions/index.d.ts.map +1 -0
- package/dist/components/MenuOptions/useMenuOptions.d.ts +10 -0
- package/dist/components/MenuOptions/useMenuOptions.d.ts.map +1 -0
- package/dist/components/MenuProduct/MenuProduct.d.ts +11 -0
- package/dist/components/MenuProduct/MenuProduct.d.ts.map +1 -0
- package/dist/components/MenuProduct/index.d.ts +3 -0
- package/dist/components/MenuProduct/index.d.ts.map +1 -0
- package/dist/components/MenuProduct/useMenuProduct.d.ts +19 -0
- package/dist/components/MenuProduct/useMenuProduct.d.ts.map +1 -0
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts +3 -0
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts.map +1 -0
- package/dist/components/MenuProductRoot/MenuProductRootDefaultShitUI.d.ts +9 -0
- package/dist/components/MenuProductRoot/MenuProductRootDefaultShitUI.d.ts.map +1 -0
- package/dist/components/MenuProductRoot/index.d.ts +3 -0
- package/dist/components/MenuProductRoot/index.d.ts.map +1 -0
- package/dist/components/Price/Price.d.ts +11 -0
- package/dist/components/Price/Price.d.ts.map +1 -0
- package/dist/components/Price/index.d.ts +3 -0
- package/dist/components/Price/index.d.ts.map +1 -0
- package/dist/components/ProductConfigurator/ProductConfiguratorNew.d.ts +3 -0
- package/dist/components/ProductConfigurator/ProductConfiguratorNew.d.ts.map +1 -0
- package/dist/components/ProductConfigurator/useProductConfigurator.d.ts +15 -0
- package/dist/components/ProductConfigurator/useProductConfigurator.d.ts.map +1 -0
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts +12 -0
- package/dist/components/SimpleCheckbox/SimpleCheckbox.d.ts.map +1 -0
- package/dist/components/SimpleCheckbox/index.d.ts +3 -0
- package/dist/components/SimpleCheckbox/index.d.ts.map +1 -0
- package/dist/components/SimpleRadio/SimpleRadio.d.ts +13 -0
- package/dist/components/SimpleRadio/SimpleRadio.d.ts.map +1 -0
- package/dist/components/SimpleRadio/index.d.ts +3 -0
- package/dist/components/SimpleRadio/index.d.ts.map +1 -0
- package/dist/components/SubmitRow/SubmitRow.d.ts +13 -0
- package/dist/components/SubmitRow/SubmitRow.d.ts.map +1 -0
- package/dist/components/SubmitRow/index.d.ts +3 -0
- package/dist/components/SubmitRow/index.d.ts.map +1 -0
- package/dist/context/Components.d.ts +13 -0
- package/dist/context/Components.d.ts.map +1 -0
- package/dist/hooks/useEmitFilter.d.ts +3 -0
- package/dist/hooks/useEmitFilter.d.ts.map +1 -0
- package/dist/hooks/useExpand.d.ts +6 -0
- package/dist/hooks/useExpand.d.ts.map +1 -0
- package/dist/hooks/useValidate.d.ts +6 -0
- package/dist/hooks/useValidate.d.ts.map +1 -0
- package/dist/hooks/useWindow.d.ts +11 -0
- package/dist/hooks/useWindow.d.ts.map +1 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +704 -151
- package/dist/index.es.js.map +1 -1
- package/dist/state/expandedItems.d.ts +10 -0
- package/dist/state/expandedItems.d.ts.map +1 -0
- package/dist/state/filter.d.ts +13 -0
- package/dist/state/filter.d.ts.map +1 -0
- package/dist/state/index.d.ts +7 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/validate.d.ts +27 -0
- package/dist/state/validate.d.ts.map +1 -0
- package/dist/translations/dictionary.d.ts +65 -0
- package/dist/translations/dictionary.d.ts.map +1 -0
- package/dist/translations/i18n.d.ts +2 -0
- package/dist/translations/i18n.d.ts.map +1 -0
- package/dist/types/index.d.ts +126 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/cleanSelected.d.ts +3 -0
- package/dist/utils/cleanSelected.d.ts.map +1 -0
- package/dist/utils/countPrice.d.ts +4 -0
- package/dist/utils/countPrice.d.ts.map +1 -0
- package/dist/utils/filter.d.ts +9 -0
- package/dist/utils/filter.d.ts.map +1 -0
- package/dist/utils/formatPrice.d.ts +8 -0
- package/dist/utils/formatPrice.d.ts.map +1 -0
- package/dist/utils/formatValues.d.ts +4 -0
- package/dist/utils/formatValues.d.ts.map +1 -0
- package/dist/utils/getContext.d.ts +4 -0
- package/dist/utils/getContext.d.ts.map +1 -0
- package/dist/utils/getProduct.d.ts +6 -0
- package/dist/utils/getProduct.d.ts.map +1 -0
- package/dist/utils/getSelCtxCntFromSelectedState.d.ts +4 -0
- package/dist/utils/getSelCtxCntFromSelectedState.d.ts.map +1 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/validate.d.ts +5 -0
- package/dist/utils/validate.d.ts.map +1 -0
- package/dist/utils/validationMessagesToRefactor.d.ts +9 -0
- package/dist/utils/validationMessagesToRefactor.d.ts.map +1 -0
- package/dist/views/Modal/Modal.d.ts +8 -0
- package/dist/views/Modal/Modal.d.ts.map +1 -0
- package/dist/views/Modal/index.d.ts +3 -0
- package/dist/views/Modal/index.d.ts.map +1 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +7 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GetState, SetState } from 'zustand';
|
|
2
|
+
import { StoreState } from '.';
|
|
3
|
+
export interface IExpandedSlice {
|
|
4
|
+
toggleExpanded: (selCtx: string, id: string, parentCtx: string) => void;
|
|
5
|
+
resetExpanded: () => void;
|
|
6
|
+
expanded: any;
|
|
7
|
+
}
|
|
8
|
+
declare const createExpandedSlice: (set: SetState<StoreState>, get: GetState<StoreState>) => IExpandedSlice;
|
|
9
|
+
export default createExpandedSlice;
|
|
10
|
+
//# sourceMappingURL=expandedItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expandedItems.d.ts","sourceRoot":"","sources":["expandedItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AAE9B,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IACvE,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,QAAA,MAAM,mBAAmB,QAClB,SAAS,UAAU,CAAC,OACpB,SAAS,UAAU,CAAC,KACxB,cAgBD,CAAA;AAEF,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IProductEmit, IProductStateFilter, IProductStateSelected } from '@orderingstack/ordering-types';
|
|
2
|
+
import { SetState } from 'zustand';
|
|
3
|
+
import { StoreState } from '.';
|
|
4
|
+
export interface IFilterSlice {
|
|
5
|
+
filter: IProductStateFilter;
|
|
6
|
+
initialSelected: IProductStateSelected;
|
|
7
|
+
setFilter: (fltCtx: string, emit: IProductEmit) => void;
|
|
8
|
+
setInitialFilter: (filter: IProductStateFilter) => void;
|
|
9
|
+
setInitialSelected: (selected: IProductStateSelected) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const createFilterSlice: (set: SetState<StoreState>) => IFilterSlice;
|
|
12
|
+
export default createFilterSlice;
|
|
13
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["filter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AAE9B,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,mBAAmB,CAAA;IAC3B,eAAe,EAAE,qBAAqB,CAAA;IACtC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACvD,gBAAgB,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACvD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAA;CAC9D;AAED,QAAA,MAAM,iBAAiB,QAAS,SAAS,UAAU,CAAC,KAAG,YA0BrD,CAAA;AAEF,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IFilterSlice } from './filter';
|
|
2
|
+
import { IValidationSlice } from './validate';
|
|
3
|
+
import { IExpandedSlice } from './expandedItems';
|
|
4
|
+
export declare type StoreState = IFilterSlice & IValidationSlice & IExpandedSlice;
|
|
5
|
+
declare const useStore: import("zustand").UseBoundStore<StoreState, import("zustand").StoreApi<StoreState>>;
|
|
6
|
+
export default useStore;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAA0B,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC1D,OAA8B,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACpE,OAA4B,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErE,oBAAY,UAAU,GAAG,YAAY,GAAG,gBAAgB,GAAG,cAAc,CAAA;AAEzE,QAAA,MAAM,QAAQ,qFAiBL,CAAA;AAET,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Attrs } from '../types';
|
|
2
|
+
import { GetState, SetState } from 'zustand';
|
|
3
|
+
import { StoreState } from '.';
|
|
4
|
+
interface IValidationMapParams {
|
|
5
|
+
productSelCtx: string;
|
|
6
|
+
attrs: Attrs;
|
|
7
|
+
actualQtyCnt: number;
|
|
8
|
+
actualSelCnt: number;
|
|
9
|
+
isPassedFiltering: boolean;
|
|
10
|
+
nestedLvl: number;
|
|
11
|
+
parentKind: string;
|
|
12
|
+
parentSelCtx: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IValidationSlice {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
validationMap: any;
|
|
17
|
+
isOnSubmitted: boolean;
|
|
18
|
+
currency: string;
|
|
19
|
+
refreshFormDt: string;
|
|
20
|
+
setValidationMap: (params: IValidationMapParams) => void;
|
|
21
|
+
setInitialValidate: () => void;
|
|
22
|
+
setIsOnSubmittedOnTrue: () => void;
|
|
23
|
+
refreshForm: () => void;
|
|
24
|
+
}
|
|
25
|
+
declare const createValidationSlice: (set: SetState<StoreState>, get: GetState<StoreState>) => IValidationSlice;
|
|
26
|
+
export default createValidationSlice;
|
|
27
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AAM9B,UAAU,oBAAoB;IAC5B,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,KAAK,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;CACrB;AACD,MAAM,WAAW,gBAAgB;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAChB,aAAa,EAAE,GAAG,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACxD,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAC9B,sBAAsB,EAAE,MAAM,IAAI,CAAA;IAClC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB;AAED,QAAA,MAAM,qBAAqB,QACpB,SAAS,UAAU,CAAC,OACpB,SAAS,UAAU,CAAC,KACxB,gBAkGD,CAAA;AAEF,eAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export const PL: {
|
|
2
|
+
'OS.ProductConfigurator.Selected.Message.From': string;
|
|
3
|
+
'OS.ProductConfigurator.Selected.Message.UpTo': string;
|
|
4
|
+
'OS.ProductConfigurator.Selected.Message.Choose': string;
|
|
5
|
+
'OS.ProductConfigurator.Selected.Message.Options': string;
|
|
6
|
+
'OS.ProductConfigurator.Selected.Message.OneOption': string;
|
|
7
|
+
'OS.ProductConfigurator.Quantity.Message.UpTo': string;
|
|
8
|
+
'OS.ProductConfigurator.Quantity.Message.From': string;
|
|
9
|
+
'OS.ProductConfigurator.Quantity.Message.Max': string;
|
|
10
|
+
'OS.ProductConfigurator.Quantity.Message.Quantity': string;
|
|
11
|
+
'OS.ProductConfigurator.Quantity.Message.OneOption': string;
|
|
12
|
+
'OS.ProductConfigurator.Add': string;
|
|
13
|
+
'OS.ProductConfigurator.Back': string;
|
|
14
|
+
'OS.ProductConfigurator.ShowMore': string;
|
|
15
|
+
'OS.ProductConfigurator.ShowLess': string;
|
|
16
|
+
};
|
|
17
|
+
export const EN: {
|
|
18
|
+
'OS.ProductConfigurator.Selected.Message.From': string;
|
|
19
|
+
'OS.ProductConfigurator.Selected.Message.UpTo': string;
|
|
20
|
+
'OS.ProductConfigurator.Selected.Message.Choose': string;
|
|
21
|
+
'OS.ProductConfigurator.Selected.Message.Options': string;
|
|
22
|
+
'OS.ProductConfigurator.Selected.Message.OneOption': string;
|
|
23
|
+
'OS.ProductConfigurator.Quantity.Message.UpTo': string;
|
|
24
|
+
'OS.ProductConfigurator.Quantity.Message.From': string;
|
|
25
|
+
'OS.ProductConfigurator.Quantity.Message.Max': string;
|
|
26
|
+
'OS.ProductConfigurator.Quantity.Message.Quantity': string;
|
|
27
|
+
'OS.ProductConfigurator.Quantity.Message.OneOption': string;
|
|
28
|
+
'OS.ProductConfigurator.Add': string;
|
|
29
|
+
'OS.ProductConfigurator.Back': string;
|
|
30
|
+
'OS.ProductConfigurator.ShowMore': string;
|
|
31
|
+
'OS.ProductConfigurator.ShowLess': string;
|
|
32
|
+
};
|
|
33
|
+
export const DE: {
|
|
34
|
+
'OS.ProductConfigurator.Selected.Message.From': string;
|
|
35
|
+
'OS.ProductConfigurator.Selected.Message.UpTo': string;
|
|
36
|
+
'OS.ProductConfigurator.Selected.Message.Choose': string;
|
|
37
|
+
'OS.ProductConfigurator.Selected.Message.Options': string;
|
|
38
|
+
'OS.ProductConfigurator.Selected.Message.OneOption': string;
|
|
39
|
+
'OS.ProductConfigurator.Quantity.Message.UpTo': string;
|
|
40
|
+
'OS.ProductConfigurator.Quantity.Message.From': string;
|
|
41
|
+
'OS.ProductConfigurator.Quantity.Message.Max': string;
|
|
42
|
+
'OS.ProductConfigurator.Quantity.Message.Quantity': string;
|
|
43
|
+
'OS.ProductConfigurator.Quantity.Message.OneOption': string;
|
|
44
|
+
'OS.ProductConfigurator.Add': string;
|
|
45
|
+
'OS.ProductConfigurator.Back': string;
|
|
46
|
+
'OS.ProductConfigurator.ShowMore': string;
|
|
47
|
+
'OS.ProductConfigurator.ShowLess': string;
|
|
48
|
+
};
|
|
49
|
+
export const CS: {
|
|
50
|
+
'OS.ProductConfigurator.Selected.Message.From': string;
|
|
51
|
+
'OS.ProductConfigurator.Selected.Message.UpTo': string;
|
|
52
|
+
'OS.ProductConfigurator.Selected.Message.Choose': string;
|
|
53
|
+
'OS.ProductConfigurator.Selected.Message.Options': string;
|
|
54
|
+
'OS.ProductConfigurator.Selected.Message.OneOption': string;
|
|
55
|
+
'OS.ProductConfigurator.Quantity.Message.UpTo': string;
|
|
56
|
+
'OS.ProductConfigurator.Quantity.Message.From': string;
|
|
57
|
+
'OS.ProductConfigurator.Quantity.Message.Max': string;
|
|
58
|
+
'OS.ProductConfigurator.Quantity.Message.Quantity': string;
|
|
59
|
+
'OS.ProductConfigurator.Quantity.Message.OneOption': string;
|
|
60
|
+
'OS.ProductConfigurator.Add': string;
|
|
61
|
+
'OS.ProductConfigurator.Back': string;
|
|
62
|
+
'OS.ProductConfigurator.ShowMore': string;
|
|
63
|
+
'OS.ProductConfigurator.ShowLess': string;
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["dictionary.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAgBC;AAED;;;;;;;;;;;;;;;EAiBC;AAED;;;;;;;;;;;;;;;EAiBC;AAED;;;;;;;;;;;;;;;EAiBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["i18n.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import hamburgerProduct from '../../__mocks__/hamburger-w-zestawie.json';
|
|
2
|
+
import comboBurger from '../../__mocks__/burger-combo-complex.json';
|
|
3
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
4
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
5
|
+
export interface IMenuProductRootUIProps {
|
|
6
|
+
product: IProduct;
|
|
7
|
+
countedProductPrice: number;
|
|
8
|
+
productQuantity: number;
|
|
9
|
+
showDebugState?: boolean;
|
|
10
|
+
children: JSX.Element;
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
increaseProductQuantity: () => void;
|
|
13
|
+
decreaseProductQuantity: () => void;
|
|
14
|
+
handleOnSubmit: () => void;
|
|
15
|
+
handleGoBack: () => void;
|
|
16
|
+
handleClose?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface IMenuOptionsUIProps {
|
|
19
|
+
optionsItem: IProduct;
|
|
20
|
+
parentSelCtx: string;
|
|
21
|
+
selected: any;
|
|
22
|
+
isOnSubmitted: boolean;
|
|
23
|
+
actualQtyCnt: number;
|
|
24
|
+
actualSelCnt: number;
|
|
25
|
+
children: JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export interface IMenuProductUIProps {
|
|
28
|
+
product: IProduct;
|
|
29
|
+
nestedLvl: number;
|
|
30
|
+
registerProps: UseFormRegisterReturn;
|
|
31
|
+
inputId: string;
|
|
32
|
+
radioInputValue: string;
|
|
33
|
+
isRadio: boolean;
|
|
34
|
+
isCheckbox: boolean;
|
|
35
|
+
isCounter: boolean;
|
|
36
|
+
isDecrementEnabled: boolean;
|
|
37
|
+
isIncrementEnabled: boolean;
|
|
38
|
+
isChecked: boolean;
|
|
39
|
+
isCheckboxEnabled: boolean;
|
|
40
|
+
counterValue: number;
|
|
41
|
+
handleCounterIncrementQty: () => void;
|
|
42
|
+
handleCounterDecrementQty: () => void;
|
|
43
|
+
children: JSX.Element;
|
|
44
|
+
}
|
|
45
|
+
export declare enum MainView {
|
|
46
|
+
FULL_PAGE = "FULL_PAGE",
|
|
47
|
+
MODAL = "MODAL"
|
|
48
|
+
}
|
|
49
|
+
export interface Attrs {
|
|
50
|
+
selMin?: string;
|
|
51
|
+
selMax?: string;
|
|
52
|
+
qtyMin?: string;
|
|
53
|
+
qtyMax?: string;
|
|
54
|
+
vital?: boolean;
|
|
55
|
+
allowMultiple?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare enum ProductTypes {
|
|
58
|
+
SIMPLE = "SIMPLE",
|
|
59
|
+
COMPLEX = "COMPLEX",
|
|
60
|
+
QUANTITY = "QUANTITY"
|
|
61
|
+
}
|
|
62
|
+
export declare enum ContextType {
|
|
63
|
+
SELECT = "selCtx",
|
|
64
|
+
FILTER = "fltCtx"
|
|
65
|
+
}
|
|
66
|
+
export declare enum ProductKinds {
|
|
67
|
+
OPTIONS = "3e/group/options",
|
|
68
|
+
CONFIG = "3e/group/config",
|
|
69
|
+
PRODUCT = "3e/product"
|
|
70
|
+
}
|
|
71
|
+
export declare type TProductConfigurator = {
|
|
72
|
+
product: Product;
|
|
73
|
+
mainView: MainView;
|
|
74
|
+
subProductsView?: string;
|
|
75
|
+
mainColor?: string;
|
|
76
|
+
mainFont?: string;
|
|
77
|
+
lang?: string;
|
|
78
|
+
tenantConfig?: any;
|
|
79
|
+
venueConfig?: any;
|
|
80
|
+
};
|
|
81
|
+
export declare type TView = {
|
|
82
|
+
product: Product;
|
|
83
|
+
subProductsView?: string;
|
|
84
|
+
mainColor?: string;
|
|
85
|
+
mainFont?: string;
|
|
86
|
+
lang?: string;
|
|
87
|
+
tenantConfig?: any;
|
|
88
|
+
venueConfig?: any;
|
|
89
|
+
isModal?: boolean;
|
|
90
|
+
showDebugState?: boolean;
|
|
91
|
+
handleAddToCart: (obj: any) => void;
|
|
92
|
+
handleGoBack: () => void;
|
|
93
|
+
};
|
|
94
|
+
export declare type TExtra = {
|
|
95
|
+
productName: string;
|
|
96
|
+
price: string;
|
|
97
|
+
};
|
|
98
|
+
export declare type Product = typeof hamburgerProduct | typeof comboBurger;
|
|
99
|
+
export declare type TProductItem = any;
|
|
100
|
+
export declare type TSimpleRadioWithImage = {
|
|
101
|
+
productName: string;
|
|
102
|
+
price: string;
|
|
103
|
+
size?: string;
|
|
104
|
+
};
|
|
105
|
+
export declare enum SelMinSelMaxStatus {
|
|
106
|
+
OK = "OK",
|
|
107
|
+
TOO_MUCH = "TOO_MUCH",
|
|
108
|
+
NOT_ENOUGHT = "NOT_ENOUGHT",
|
|
109
|
+
IGNORE = "IGNORE"
|
|
110
|
+
}
|
|
111
|
+
export interface IValidationSelCtx {
|
|
112
|
+
parentSelCtx: string;
|
|
113
|
+
disableAddCounter: Attrs;
|
|
114
|
+
disableInput: boolean;
|
|
115
|
+
isSelCntAllowedToIncrement: boolean;
|
|
116
|
+
isQtyCntAllowedToIncrement: boolean;
|
|
117
|
+
parentKind: string;
|
|
118
|
+
nestedLvl: number;
|
|
119
|
+
isPassedFiltering: boolean;
|
|
120
|
+
isValid: boolean;
|
|
121
|
+
debug: any;
|
|
122
|
+
}
|
|
123
|
+
export interface IValidationSelCtxMap {
|
|
124
|
+
[selCtx: string]: IValidationSelCtx;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cleanSelected.d.ts","sourceRoot":"","sources":["cleanSelected.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,aAAc,GAAG,QAkB1C,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,GAAG,QAE3C,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare const countPrice: (formState: any, mainProduct: IProduct) => number;
|
|
3
|
+
export declare const countComplexProductPrice: (product: IProduct) => string | undefined;
|
|
4
|
+
//# sourceMappingURL=countPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countPrice.d.ts","sourceRoot":"","sources":["countPrice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAIxD,eAAO,MAAM,UAAU,cACV,GAAG,eACD,QAAQ,WAyBtB,CAAA;AAED,eAAO,MAAM,wBAAwB,YAAa,QAAQ,uBAMzD,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IProduct, IProductStateFilter } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare const validateProductFilter: (product: IProduct, stateFilter: IProductStateFilter) => boolean;
|
|
3
|
+
export declare const getProductToChangeInForm: (product: IProduct, isFilterValidated: boolean) => {
|
|
4
|
+
productsToSelect: IProduct[];
|
|
5
|
+
productsToUnselect: IProduct[];
|
|
6
|
+
};
|
|
7
|
+
export declare const unselectProductsInForm: (productsToUnselect: IProduct[], setValueInForm: any) => void;
|
|
8
|
+
export declare const selectProductsInForm: (productToUnselect: IProduct[], setValueInForm: any, initialSelectedState: any) => void;
|
|
9
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAG7E,eAAO,MAAM,qBAAqB,YACvB,QAAQ,eACJ,mBAAmB,YAcjC,CAAA;AAED,eAAO,MAAM,wBAAwB,YAC1B,QAAQ,qBACE,OAAO;;;CAuB3B,CAAA;AAED,eAAO,MAAM,sBAAsB,uBACb,QAAQ,EAAE,kBACd,GAAG,SAKpB,CAAA;AAED,eAAO,MAAM,oBAAoB,sBACZ,QAAQ,EAAE,kBACb,GAAG,wBACG,GAAG,SAW1B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Dinero from 'dinero.js';
|
|
2
|
+
export declare const formatPrice: (price: string | number, currency?: Dinero.Currency) => string;
|
|
3
|
+
export declare const formatPriceWithMinPrice: (finalPrice: string | number, minPrice: string, mainProductCnt?: number) => {
|
|
4
|
+
displayPriceFrom: boolean;
|
|
5
|
+
formattedEndPriceWithPriceMin: string;
|
|
6
|
+
formattedEndPrice: string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=formatPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatPrice.d.ts","sourceRoot":"","sources":["formatPrice.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,eAAO,MAAM,WAAW,UACf,MAAM,GAAG,MAAM,aACZ,OAAO,QAAQ,WAU1B,CAAA;AAED,eAAO,MAAM,uBAAuB,eACtB,MAAM,GAAG,MAAM,YACjB,MAAM;;;;CAcjB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const encodeValue: (key: string, value: any) => any;
|
|
2
|
+
export declare const decodeValue: (key: string, value: any) => any;
|
|
3
|
+
export declare const iterateOverObject: (obj: any, cb: (key: string, value: any) => any) => any;
|
|
4
|
+
//# sourceMappingURL=formatValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatValues.d.ts","sourceRoot":"","sources":["formatValues.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,QAAS,MAAM,SAAS,GAAG,QAElD,CAAA;AAED,eAAO,MAAM,WAAW,QAAS,MAAM,SAAS,GAAG,QAElD,CAAA;AAsBD,eAAO,MAAM,iBAAiB,QACvB,GAAG,YACE,MAAM,SAAS,GAAG,KAAK,GAAG,QAUrC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Product, ContextType } from 'types';
|
|
2
|
+
export declare const getContext: (contextName: string, contextType: ContextType, product: Product) => any;
|
|
3
|
+
export declare const getContexts: (contextName: string, contextType: ContextType, product: Product) => any[];
|
|
4
|
+
//# sourceMappingURL=getContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContext.d.ts","sourceRoot":"","sources":["getContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAE5C,eAAO,MAAM,UAAU,gBACR,MAAM,eACN,WAAW,WACf,OAAO,QAWjB,CAAA;AAED,eAAO,MAAM,WAAW,gBACT,MAAM,eACN,WAAW,WACf,OAAO,UAkBjB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
import { ContextType } from 'types';
|
|
3
|
+
export declare const getProductFromContextName: (productId: string, contextName: string, contextType: ContextType, mainProduct: IProduct) => IProduct | null;
|
|
4
|
+
export declare const getProductFromManyContext: (productId: string, contexts: any[]) => any[];
|
|
5
|
+
export declare const getProduct: (productId: string, context: any) => any;
|
|
6
|
+
//# sourceMappingURL=getProduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProduct.d.ts","sourceRoot":"","sources":["getProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAGnC,eAAO,MAAM,yBAAyB,cACzB,MAAM,eACJ,MAAM,eACN,WAAW,eACX,QAAQ,oBAYtB,CAAA;AAED,eAAO,MAAM,yBAAyB,cACzB,MAAM,YACP,GAAG,EAAE,UAUhB,CAAA;AAED,eAAO,MAAM,UAAU,cAAe,MAAM,WAAW,GAAG,QAoBzD,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IProduct, IProductStateSelected } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare const getSelCtxCntFromSelectedState: (selCtx: string, actualSelectedState: IProductStateSelected, items?: IProduct[]) => number[];
|
|
3
|
+
export declare const getItemQtyFromSelectedState: (item: IProduct, actualSelectedState: IProductStateSelected) => number;
|
|
4
|
+
//# sourceMappingURL=getSelCtxCntFromSelectedState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSelCtxCntFromSelectedState.d.ts","sourceRoot":"","sources":["getSelCtxCntFromSelectedState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE/E,eAAO,MAAM,6BAA6B,WAChC,MAAM,uBACO,qBAAqB,UAClC,QAAQ,EAAE,aA2BnB,CAAA;AAED,eAAO,MAAM,2BAA2B,SAChC,QAAQ,uBACO,qBAAqB,WAI3C,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
export declare function classNames(...classes: unknown[]): string;
|
|
3
|
+
export declare const isZeroString: (value: string) => boolean;
|
|
4
|
+
export declare const isApiBooleanTrue: (value?: boolean | string) => boolean;
|
|
5
|
+
export declare const getInputType: (selMin: string | undefined, selMax: string | undefined, allowMultiple: boolean | undefined) => string;
|
|
6
|
+
export declare const scrollToId: (id: string) => void;
|
|
7
|
+
export declare const getOptionsKindId: (contextName: string) => string;
|
|
8
|
+
export declare const getItemImage: (item: IProduct) => string;
|
|
9
|
+
export declare const isVisible: (item: IProduct) => boolean;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,wBAAgB,UAAU,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,YAAY,UAAW,MAAM,KAAG,OAK5C,CAAA;AAED,eAAO,MAAM,gBAAgB,WAAY,OAAO,GAAG,MAAM,KAAG,OAK3D,CAAA;AAED,eAAO,MAAM,YAAY,WACf,MAAM,GAAG,SAAS,UAClB,MAAM,GAAG,SAAS,iBACX,OAAO,GAAG,SAAS,KACjC,MAOF,CAAA;AAED,eAAO,MAAM,UAAU,OAAQ,MAAM,SAOpC,CAAA;AAED,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,KAAG,MAEtD,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,QAAQ,WAI1C,CAAA;AAED,eAAO,MAAM,SAAS,SAAU,QAAQ,YAOvC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
2
|
+
import { IValidationSelCtxMap } from 'types';
|
|
3
|
+
export declare const isInputEnabled: (item: IProduct, validationMap: IValidationSelCtxMap) => boolean;
|
|
4
|
+
export declare const isInputCounterIncrementEnabled: (item: IProduct, itemActualQty: number, validationMap: IValidationSelCtxMap) => boolean;
|
|
5
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAgB,MAAM,OAAO,CAAA;AAE1D,eAAO,MAAM,cAAc,SACnB,QAAQ,iBACC,oBAAoB,YAapC,CAAA;AAED,eAAO,MAAM,8BAA8B,SACnC,QAAQ,iBACC,MAAM,iBACN,oBAAoB,YAiBpC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const getQtyMessageAndStatus: (qtyMin: string | undefined, qtyMax: string | undefined, chosenQtyCnt: number, t: any) => {
|
|
2
|
+
message: string;
|
|
3
|
+
validationStatus: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const getSelMessageAndStatus: (selMin: string | undefined, selMax: string | undefined, chosenSelCnt: number, t: any) => {
|
|
6
|
+
message: string;
|
|
7
|
+
validationStatus: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=validationMessagesToRefactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validationMessagesToRefactor.d.ts","sourceRoot":"","sources":["validationMessagesToRefactor.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,CAAA;AAG1B,eAAO,MAAM,sBAAsB,WACzB,MAAM,GAAG,SAAS,UAClB,MAAM,GAAG,SAAS,gBACZ,MAAM,KACjB,GAAG;;;CAsCP,CAAA;AAGD,eAAO,MAAM,sBAAsB,WACzB,MAAM,GAAG,SAAS,UAClB,MAAM,GAAG,SAAS,gBACZ,MAAM,KACjB,GAAG;;;CAuCP,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.tsx"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,eAkFrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/front-components-product-configurator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -26,19 +26,21 @@
|
|
|
26
26
|
"i18next-browser-languagedetector": "^6.1.3",
|
|
27
27
|
"i18next-http-backend": "^1.3.2",
|
|
28
28
|
"lodash-es": "^4.17.21",
|
|
29
|
-
"react": "^17.0.2",
|
|
30
|
-
"react-dom": "^17.0.2",
|
|
31
29
|
"react-hook-form": "^7.24.1",
|
|
32
30
|
"react-i18next": "^11.15.4",
|
|
33
|
-
"react-spring": "^9.5.2",
|
|
34
31
|
"zustand": "^3.6.9"
|
|
35
32
|
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": "^17.0.2",
|
|
35
|
+
"react-dom": "^17.0.2",
|
|
36
|
+
"react-spring": "^9.5.2"
|
|
37
|
+
},
|
|
36
38
|
"devDependencies": {
|
|
37
39
|
"@babel/core": "^7.16.7",
|
|
38
40
|
"@babel/preset-env": "^7.16.8",
|
|
39
41
|
"@babel/preset-react": "^7.16.7",
|
|
40
42
|
"@babel/preset-typescript": "^7.16.7",
|
|
41
|
-
"@orderingstack/ordering-types": "
|
|
43
|
+
"@orderingstack/ordering-types": "1.0.13",
|
|
42
44
|
"@storybook/addon-actions": "^6.4.12",
|
|
43
45
|
"@storybook/addon-essentials": "^6.4.12",
|
|
44
46
|
"@storybook/addon-links": "^6.4.12",
|