@configura/web-ui 2.0.0-alpha.18 → 2.0.0-alpha.20
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/.eslintrc.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": ["@typescript-eslint"],
|
|
4
|
+
"extends": [
|
|
5
|
+
"eslint:recommended",
|
|
6
|
+
"plugin:@typescript-eslint/recommended",
|
|
7
|
+
"prettier"
|
|
8
|
+
|
|
9
|
+
// TODO: Type-checking rules require a proper tsconfig-file to work,
|
|
10
|
+
// pointed at by the parserOption.project setting.
|
|
11
|
+
//
|
|
12
|
+
//"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
|
13
|
+
]
|
|
14
|
+
//"rules": { "@typescript-eslint/no-floating-promises": "error" }
|
|
15
|
+
//"parserOptions": {
|
|
16
|
+
// "project": "./tsconfig.json"
|
|
17
|
+
//}
|
|
18
|
+
}
|
|
@@ -10,14 +10,15 @@ export const CfgOptionPriceView = (props) => {
|
|
|
10
10
|
switch (upchargeDisplayMode) {
|
|
11
11
|
case UpchargeDisplayMode.None:
|
|
12
12
|
return null;
|
|
13
|
-
case UpchargeDisplayMode.Price:
|
|
13
|
+
case UpchargeDisplayMode.Price: {
|
|
14
14
|
const { upcharge } = option;
|
|
15
15
|
if (upcharge === undefined || upcharge === 0) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
return (React.createElement("div", { className: "cfgFeatureItemOption__price" },
|
|
19
19
|
React.createElement(CurrencyPrice, { currency: currency, language: lang, price: upcharge, fractionDigits: fractionDigits })));
|
|
20
|
-
|
|
20
|
+
}
|
|
21
|
+
default: {
|
|
21
22
|
const { priceChangeAtSelectChange } = option;
|
|
22
23
|
if (priceChangeAtSelectChange === undefined || priceChangeAtSelectChange === 0) {
|
|
23
24
|
return null;
|
|
@@ -25,5 +26,6 @@ export const CfgOptionPriceView = (props) => {
|
|
|
25
26
|
return (React.createElement("div", { className: "cfgFeatureItemOption__price" },
|
|
26
27
|
priceChangeAtSelectChange < 0 ? "-" : "+",
|
|
27
28
|
React.createElement(CurrencyPrice, { currency: currency, language: lang, price: Math.abs(priceChangeAtSelectChange), fractionDigits: fractionDigits })));
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
};
|
package/dist/useCatParams.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DtoCatalogueParamsWithCid, DtoCatalogueParamsWithCidAndLang, DtoProductParamsWithCid, DtoProductParamsWithCidAndLang } from "@configura/web-api";
|
|
2
2
|
/**
|
|
3
3
|
* Returns a memozied version of the catParams
|
|
4
4
|
*/
|
|
5
|
-
export declare function useMemoCatalogueParams(catParams:
|
|
5
|
+
export declare function useMemoCatalogueParams(catParams: DtoCatalogueParamsWithCid): DtoCatalogueParamsWithCid;
|
|
6
6
|
/**
|
|
7
7
|
* Returns a memozied version of the catParams
|
|
8
8
|
*/
|
|
9
|
-
export declare function useMemoCatalogueParamsWithLang(catParams:
|
|
9
|
+
export declare function useMemoCatalogueParamsWithLang(catParams: DtoCatalogueParamsWithCidAndLang): DtoCatalogueParamsWithCidAndLang;
|
|
10
10
|
/**
|
|
11
11
|
* Returns a memozied version of the prodParams
|
|
12
12
|
*/
|
|
13
|
-
export declare function useMemoProductParams(prodParams:
|
|
13
|
+
export declare function useMemoProductParams(prodParams: DtoProductParamsWithCid): DtoProductParamsWithCid;
|
|
14
14
|
/**
|
|
15
15
|
* Returns a memozied version of the prodParams
|
|
16
16
|
*/
|
|
17
|
-
export declare function useMemoProductParamsWithLang(prodParams:
|
|
17
|
+
export declare function useMemoProductParamsWithLang(prodParams: DtoProductParamsWithCidAndLang): DtoProductParamsWithCidAndLang;
|
|
18
18
|
//# sourceMappingURL=useCatParams.d.ts.map
|
package/dist/useUniqueId.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-ui",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@configura/web-api": "2.0.0-alpha.
|
|
35
|
+
"@configura/web-api": "2.0.0-alpha.20"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/preset-env": "^7.14.4",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "74b8fd6c45f392b9133843b409f7662dbf93c47e"
|
|
68
68
|
}
|