@configura/web-ui 2.0.0-alpha.9 → 2.1.0-alpha.0
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 +5 -0
- package/dist/components/ExpandableHeadingRow.js +9 -7
- package/dist/components/ResetButton.d.ts +9 -0
- package/dist/components/ResetButton.js +7 -0
- package/dist/components/ShareView.d.ts +4 -0
- package/dist/components/ShareView.js +21 -0
- package/dist/components/productConfiguration/CfgAdditionalProductView.js +7 -3
- package/dist/components/productConfiguration/CfgCheckboxView.d.ts +2 -5
- package/dist/components/productConfiguration/CfgCheckboxView.js +4 -26
- package/dist/components/productConfiguration/CfgCheckboxesView.d.ts +2 -5
- package/dist/components/productConfiguration/CfgCheckboxesView.js +4 -2
- package/dist/components/productConfiguration/CfgConfigurationCommonView.d.ts +8 -0
- package/dist/components/productConfiguration/CfgConfigurationCommonView.js +8 -0
- package/dist/components/productConfiguration/CfgDropdownOptionView.d.ts +2 -5
- package/dist/components/productConfiguration/CfgDropdownOptionView.js +16 -37
- package/dist/components/productConfiguration/CfgDropdownView.d.ts +2 -5
- package/dist/components/productConfiguration/CfgDropdownView.js +8 -5
- package/dist/components/productConfiguration/CfgFeatureView.d.ts +47 -6
- package/dist/components/productConfiguration/CfgFeatureView.js +20 -4
- package/dist/components/productConfiguration/CfgMiscFile.d.ts +5 -0
- package/dist/components/productConfiguration/CfgMiscFile.js +9 -0
- package/dist/components/productConfiguration/CfgMiscFiles.d.ts +5 -0
- package/dist/components/productConfiguration/CfgMiscFiles.js +5 -0
- package/dist/components/productConfiguration/CfgNote.d.ts +5 -0
- package/dist/components/productConfiguration/CfgNote.js +15 -0
- package/dist/components/productConfiguration/CfgNotes.d.ts +5 -0
- package/dist/components/productConfiguration/CfgNotes.js +5 -0
- package/dist/components/productConfiguration/CfgOptionCommonView.d.ts +7 -0
- package/dist/components/productConfiguration/CfgOptionCommonView.js +48 -0
- package/dist/components/productConfiguration/CfgOptionPriceView.js +6 -4
- package/dist/components/productConfiguration/CfgProductConfigurationView.js +4 -1
- package/dist/css/web-ui.css +1 -1
- package/dist/css/web-ui.css.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/scss/_configurator.scss +47 -3
- package/dist/scss/_expandable.scss +1 -0
- package/dist/scss/_feature-item.scss +5 -0
- package/dist/scss/_forms.scss +2 -0
- package/dist/scss/_misc-file-and-note.scss +44 -0
- package/dist/scss/_product-information.scss +4 -0
- package/dist/scss/_themed.scss +8 -1
- package/dist/useCatParams.d.ts +5 -5
- package/dist/useUniqueId.js +1 -5
- package/package.json +3 -3
- package/dist/components/productConfiguration/CfgOptionFeaturesView.d.ts +0 -4
- package/dist/components/productConfiguration/CfgOptionFeaturesView.js +0 -13
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use "mixins";
|
|
2
|
+
|
|
3
|
+
@mixin classes($grayTextColor, $linkColor) {
|
|
4
|
+
.cfgMiscFiles,
|
|
5
|
+
.cfgNotes {
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cfgMiscFiles {
|
|
12
|
+
&__item {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
margin-top: 1em;
|
|
16
|
+
margin-bottom: 1em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__link {
|
|
20
|
+
display: block;
|
|
21
|
+
|
|
22
|
+
color: $linkColor;
|
|
23
|
+
font-size: 1.4em;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cfgNotes {
|
|
29
|
+
&__item:not(:last-child) {
|
|
30
|
+
margin-bottom: -0.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__body {
|
|
34
|
+
white-space: pre-wrap;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
|
|
37
|
+
color: $grayTextColor;
|
|
38
|
+
font-size: 1.5em;
|
|
39
|
+
|
|
40
|
+
margin-bottom: 1em;
|
|
41
|
+
margin-right: 3em;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/dist/scss/_themed.scss
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@use "feature-item";
|
|
13
13
|
@use "hr";
|
|
14
14
|
@use "loading";
|
|
15
|
+
@use "misc-file-and-note";
|
|
15
16
|
@use "option-tree";
|
|
16
17
|
@use "product-information";
|
|
17
18
|
@use "range-view";
|
|
@@ -115,7 +116,12 @@ $themes: (
|
|
|
115
116
|
);
|
|
116
117
|
@include chevron.classes(map.get($ct, "chevronActive"), map.get($ct, "chevronPassive"));
|
|
117
118
|
@include circle-xmark-icon.classes(map.get($ct, "icon"));
|
|
118
|
-
@include configurator.classes(
|
|
119
|
+
@include configurator.classes(
|
|
120
|
+
$baseFontSize,
|
|
121
|
+
map.get($ct, "text"),
|
|
122
|
+
map.get($ct, "grayText"),
|
|
123
|
+
map.get($ct, "divider")
|
|
124
|
+
);
|
|
119
125
|
@include download-icon.classes(map.get($ct, "link"));
|
|
120
126
|
@include expandable.classes;
|
|
121
127
|
@include error-icon.classes(map.get($ct, "error"));
|
|
@@ -137,6 +143,7 @@ $themes: (
|
|
|
137
143
|
map.get($ct, "overlayBackground"),
|
|
138
144
|
$overlayingZIndex
|
|
139
145
|
);
|
|
146
|
+
@include misc-file-and-note.classes(map.get($ct, "grayText"), map.get($ct, "link"));
|
|
140
147
|
@include option-tree.classes;
|
|
141
148
|
@include product-information.classes(map.get($ct, "text"));
|
|
142
149
|
@include range-view.classes(map.get($ct, "error"));
|
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.
|
|
3
|
+
"version": "2.1.0-alpha.0",
|
|
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.
|
|
35
|
+
"@configura/web-api": "2.1.0-alpha.0"
|
|
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": "883ad6e31a55f05124dd0a6b2047c36ef6e6cea1"
|
|
68
68
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CfgFeatureView, forwardProps } from "./CfgFeatureView.js";
|
|
3
|
-
export const CfgOptionFeaturesView = (props) => {
|
|
4
|
-
const { option } = props;
|
|
5
|
-
const { features, selected } = option;
|
|
6
|
-
if (!selected) {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
if (features.length === 0) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
return (React.createElement("ul", { className: "cfgOptionTree cfgOptionTree--subLevel cfgOptionTree--indent" }, features.map((f) => (React.createElement(CfgFeatureView, Object.assign({ feature: f, key: f.key }, forwardProps(props)))))));
|
|
13
|
-
};
|