@configura/web-ui 2.2.0-alpha.1 → 2.2.0-alpha.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/.eslintrc.json +5 -5
- package/.postcssrc.json +8 -8
- package/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/components/CanvasWrapper.d.ts +9 -9
- package/dist/components/CanvasWrapper.js +8 -8
- package/dist/components/CfgPriceView.d.ts +6 -6
- package/dist/components/CfgPriceView.js +13 -13
- package/dist/components/ConfigurationActionsButtonRow.d.ts +14 -14
- package/dist/components/ConfigurationActionsButtonRow.js +16 -16
- package/dist/components/Configurator.d.ts +12 -12
- package/dist/components/Configurator.js +15 -15
- package/dist/components/ConfiguratorWrapper.d.ts +8 -8
- package/dist/components/ConfiguratorWrapper.js +5 -5
- package/dist/components/CurrencyPrice.d.ts +9 -9
- package/dist/components/CurrencyPrice.js +7 -7
- package/dist/components/ErrorContext.d.ts +2 -2
- package/dist/components/ErrorContext.js +2 -2
- package/dist/components/ExpandableHeadingRow.d.ts +15 -15
- package/dist/components/ExpandableHeadingRow.js +23 -23
- package/dist/components/Loading.d.ts +13 -13
- package/dist/components/Loading.js +20 -20
- package/dist/components/ProductInformation.d.ts +13 -13
- package/dist/components/ProductInformation.js +14 -14
- package/dist/components/ResetButton.d.ts +8 -8
- package/dist/components/ResetButton.js +7 -7
- package/dist/components/ShareView.d.ts +3 -3
- package/dist/components/ShareView.js +21 -21
- package/dist/components/TaskListView.d.ts +8 -8
- package/dist/components/TaskListView.js +69 -69
- package/dist/components/TaskStartView.d.ts +12 -12
- package/dist/components/TaskStartView.js +29 -29
- package/dist/components/icons/Checkmark.d.ts +6 -6
- package/dist/components/icons/Checkmark.js +12 -12
- package/dist/components/icons/Chevron.d.ts +7 -7
- package/dist/components/icons/Chevron.js +18 -18
- package/dist/components/icons/CircleXmarkIcon.d.ts +3 -3
- package/dist/components/icons/CircleXmarkIcon.js +8 -8
- package/dist/components/icons/DownloadIcon.d.ts +3 -3
- package/dist/components/icons/DownloadIcon.js +8 -8
- package/dist/components/icons/ErrorIcon.d.ts +3 -3
- package/dist/components/icons/ErrorIcon.js +8 -8
- package/dist/components/productConfiguration/CfgAdditionalProductView.d.ts +3 -3
- package/dist/components/productConfiguration/CfgAdditionalProductView.js +46 -46
- package/dist/components/productConfiguration/CfgCheckboxView.d.ts +4 -4
- package/dist/components/productConfiguration/CfgCheckboxView.js +7 -7
- package/dist/components/productConfiguration/CfgCheckboxesView.d.ts +4 -4
- package/dist/components/productConfiguration/CfgCheckboxesView.js +20 -20
- package/dist/components/productConfiguration/CfgConfigurationCommonView.d.ts +7 -7
- package/dist/components/productConfiguration/CfgConfigurationCommonView.js +8 -8
- package/dist/components/productConfiguration/CfgDropdownOptionView.d.ts +4 -4
- package/dist/components/productConfiguration/CfgDropdownOptionView.js +23 -23
- package/dist/components/productConfiguration/CfgDropdownView.d.ts +4 -4
- package/dist/components/productConfiguration/CfgDropdownView.js +23 -23
- package/dist/components/productConfiguration/CfgFeatureView.d.ts +72 -72
- package/dist/components/productConfiguration/CfgFeatureView.js +77 -77
- package/dist/components/productConfiguration/CfgGroupView.d.ts +4 -4
- package/dist/components/productConfiguration/CfgGroupView.js +7 -7
- package/dist/components/productConfiguration/CfgMiscFile.d.ts +4 -4
- package/dist/components/productConfiguration/CfgMiscFile.js +9 -9
- package/dist/components/productConfiguration/CfgMiscFiles.d.ts +4 -4
- package/dist/components/productConfiguration/CfgMiscFiles.js +5 -5
- package/dist/components/productConfiguration/CfgNote.d.ts +4 -4
- package/dist/components/productConfiguration/CfgNote.js +15 -15
- package/dist/components/productConfiguration/CfgNotes.d.ts +4 -4
- package/dist/components/productConfiguration/CfgNotes.js +5 -5
- package/dist/components/productConfiguration/CfgOptionCommonView.d.ts +6 -6
- package/dist/components/productConfiguration/CfgOptionCommonView.js +53 -53
- package/dist/components/productConfiguration/CfgOptionNumericView.d.ts +29 -29
- package/dist/components/productConfiguration/CfgOptionNumericView.js +132 -132
- package/dist/components/productConfiguration/CfgOptionPriceView.d.ts +9 -9
- package/dist/components/productConfiguration/CfgOptionPriceView.js +31 -31
- package/dist/components/productConfiguration/CfgProductConfigurationView.d.ts +24 -24
- package/dist/components/productConfiguration/CfgProductConfigurationView.js +50 -50
- package/dist/css/web-ui.css +1 -1
- package/dist/css/web-ui.css.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +29 -29
- package/dist/scss/_button.scss +52 -52
- package/dist/scss/_configurator.scss +132 -132
- package/dist/scss/_expandable.scss +38 -38
- package/dist/scss/_feature-item.scss +146 -146
- package/dist/scss/_forms.scss +44 -44
- package/dist/scss/_hr.scss +16 -16
- package/dist/scss/_loading.scss +98 -98
- package/dist/scss/_misc-file-and-note.scss +44 -44
- package/dist/scss/_mixins.scss +56 -56
- package/dist/scss/_option-tree.scss +29 -29
- package/dist/scss/_product-information.scss +63 -63
- package/dist/scss/_range-view.scss +39 -39
- package/dist/scss/_slider.scss +70 -70
- package/dist/scss/_tasks.scss +72 -72
- package/dist/scss/_themed.scss +156 -156
- package/dist/scss/_utilities.scss +22 -22
- package/dist/scss/_variables.scss +6 -6
- package/dist/scss/icons/_checkmark.scss +46 -46
- package/dist/scss/icons/_chevron.scss +62 -62
- package/dist/scss/icons/_circle-xmark-icon.scss +24 -24
- package/dist/scss/icons/_download-icon.scss +24 -24
- package/dist/scss/icons/_error-icon.scss +24 -24
- package/dist/scss/web-ui.scss +11 -11
- package/dist/useCatParams.d.ts +17 -17
- package/dist/useCatParams.js +29 -29
- package/dist/useObservable.d.ts +4 -4
- package/dist/useObservable.js +18 -18
- package/dist/useRerender.d.ts +1 -1
- package/dist/useRerender.js +5 -5
- package/dist/useResize.d.ts +6 -6
- package/dist/useResize.js +47 -47
- package/dist/useSelected.d.ts +2 -2
- package/dist/useSelected.js +13 -13
- package/dist/useUniqueId.d.ts +1 -1
- package/dist/useUniqueId.js +3 -3
- package/dist/utilities.d.ts +5 -5
- package/dist/utilities.js +1 -1
- package/package.json +3 -3
package/dist/scss/_mixins.scss
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
@mixin noButtonLook {
|
|
2
|
-
appearance: none;
|
|
3
|
-
font-family: inherit;
|
|
4
|
-
font-size: inherit;
|
|
5
|
-
color: inherit;
|
|
6
|
-
background: none;
|
|
7
|
-
border: none;
|
|
8
|
-
padding: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin focusOutline($focusOutlineInnerColor, $focusOutlineOuterColor) {
|
|
12
|
-
box-shadow: 0 0 0 0.075em $focusOutlineInnerColor, 0 0 0 0.2em $focusOutlineOuterColor;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin borderBox {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
&:before,
|
|
18
|
-
&:after {
|
|
19
|
-
box-sizing: inherit;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@mixin cfgRootStyles {
|
|
24
|
-
@include borderBox;
|
|
25
|
-
|
|
26
|
-
* {
|
|
27
|
-
@include borderBox;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin cfgDefaultFont {
|
|
32
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif,
|
|
33
|
-
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin cfgCheckAndRadio($color) {
|
|
37
|
-
align-items: center;
|
|
38
|
-
border: 0.2em solid $color;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex: 0 0 auto;
|
|
41
|
-
height: 2.2em;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
pointer-events: none;
|
|
44
|
-
user-select: none;
|
|
45
|
-
width: 2.2em;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@mixin cfgCheckbox($color) {
|
|
49
|
-
@include cfgCheckAndRadio($color);
|
|
50
|
-
border-radius: 0.3em;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@mixin cfgRadio($color) {
|
|
54
|
-
@include cfgCheckAndRadio($color);
|
|
55
|
-
border-radius: 50%;
|
|
56
|
-
}
|
|
1
|
+
@mixin noButtonLook {
|
|
2
|
+
appearance: none;
|
|
3
|
+
font-family: inherit;
|
|
4
|
+
font-size: inherit;
|
|
5
|
+
color: inherit;
|
|
6
|
+
background: none;
|
|
7
|
+
border: none;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin focusOutline($focusOutlineInnerColor, $focusOutlineOuterColor) {
|
|
12
|
+
box-shadow: 0 0 0 0.075em $focusOutlineInnerColor, 0 0 0 0.2em $focusOutlineOuterColor;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin borderBox {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
&:before,
|
|
18
|
+
&:after {
|
|
19
|
+
box-sizing: inherit;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin cfgRootStyles {
|
|
24
|
+
@include borderBox;
|
|
25
|
+
|
|
26
|
+
* {
|
|
27
|
+
@include borderBox;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin cfgDefaultFont {
|
|
32
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif,
|
|
33
|
+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin cfgCheckAndRadio($color) {
|
|
37
|
+
align-items: center;
|
|
38
|
+
border: 0.2em solid $color;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex: 0 0 auto;
|
|
41
|
+
height: 2.2em;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
user-select: none;
|
|
45
|
+
width: 2.2em;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@mixin cfgCheckbox($color) {
|
|
49
|
+
@include cfgCheckAndRadio($color);
|
|
50
|
+
border-radius: 0.3em;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin cfgRadio($color) {
|
|
54
|
+
@include cfgCheckAndRadio($color);
|
|
55
|
+
border-radius: 50%;
|
|
56
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web UI Option tree
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@use "mixins";
|
|
6
|
-
|
|
7
|
-
@mixin classes {
|
|
8
|
-
.cfgOptionTree {
|
|
9
|
-
@include mixins.cfgRootStyles;
|
|
10
|
-
|
|
11
|
-
list-style: none;
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
|
|
15
|
-
&--topLevel {
|
|
16
|
-
padding-left: 1.7em;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&--indent {
|
|
20
|
-
margin-left: 3.2em;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&--compThumb {
|
|
24
|
-
margin-left: 4.2em;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@content;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Web UI Option tree
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@use "mixins";
|
|
6
|
+
|
|
7
|
+
@mixin classes {
|
|
8
|
+
.cfgOptionTree {
|
|
9
|
+
@include mixins.cfgRootStyles;
|
|
10
|
+
|
|
11
|
+
list-style: none;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
|
|
15
|
+
&--topLevel {
|
|
16
|
+
padding-left: 1.7em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--indent {
|
|
20
|
+
margin-left: 3.2em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--compThumb {
|
|
24
|
+
margin-left: 4.2em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@content;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web UI Product information
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@use "sass:math";
|
|
6
|
-
@use "mixins";
|
|
7
|
-
|
|
8
|
-
@mixin classes($textColor) {
|
|
9
|
-
.cfgProductInfo {
|
|
10
|
-
@include mixins.cfgRootStyles;
|
|
11
|
-
|
|
12
|
-
color: $textColor;
|
|
13
|
-
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
|
|
17
|
-
&__top {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
flex: 1 1 auto;
|
|
21
|
-
min-width: 0;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
|
|
24
|
-
&--description {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__bottom {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
flex: 1 0 auto;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: flex-end;
|
|
36
|
-
max-width: 0.333333333;
|
|
37
|
-
min-width: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__name,
|
|
41
|
-
&__price {
|
|
42
|
-
display: block;
|
|
43
|
-
font-size: 1.6em;
|
|
44
|
-
font-weight: 600;
|
|
45
|
-
line-height: 1.33;
|
|
46
|
-
margin: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&__number {
|
|
50
|
-
font-size: 1.3em;
|
|
51
|
-
font-weight: 400;
|
|
52
|
-
line-height: 1.38;
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__taskbar {
|
|
57
|
-
display: flex;
|
|
58
|
-
gap: 5px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@content;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Web UI Product information
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
@use "mixins";
|
|
7
|
+
|
|
8
|
+
@mixin classes($textColor) {
|
|
9
|
+
.cfgProductInfo {
|
|
10
|
+
@include mixins.cfgRootStyles;
|
|
11
|
+
|
|
12
|
+
color: $textColor;
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
|
|
17
|
+
&__top {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
flex: 1 1 auto;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
|
|
24
|
+
&--description {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__bottom {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
flex: 1 0 auto;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: flex-end;
|
|
36
|
+
max-width: 0.333333333;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__name,
|
|
41
|
+
&__price {
|
|
42
|
+
display: block;
|
|
43
|
+
font-size: 1.6em;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
line-height: 1.33;
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__number {
|
|
50
|
+
font-size: 1.3em;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
line-height: 1.38;
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__taskbar {
|
|
57
|
+
display: flex;
|
|
58
|
+
gap: 5px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@content;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
@mixin classes($errorColor) {
|
|
2
|
-
.cfgRangeView {
|
|
3
|
-
&__inputs {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&__number-input {
|
|
9
|
-
font-size: 1.5em;
|
|
10
|
-
flex-grow: 1;
|
|
11
|
-
text-align: right;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&__unit-label {
|
|
15
|
-
font-size: 1.5em;
|
|
16
|
-
margin-left: 0.3em;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&__slider-input.cfgSlider {
|
|
20
|
-
margin-left: 1em;
|
|
21
|
-
flex-grow: 3;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__error {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
|
|
28
|
-
margin-top: 1em;
|
|
29
|
-
font-size: 1.5em;
|
|
30
|
-
color: $errorColor;
|
|
31
|
-
|
|
32
|
-
.cfgErrorIcon {
|
|
33
|
-
padding-right: 0.25em;
|
|
34
|
-
width: 1.25em;
|
|
35
|
-
height: 1em;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
@mixin classes($errorColor) {
|
|
2
|
+
.cfgRangeView {
|
|
3
|
+
&__inputs {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__number-input {
|
|
9
|
+
font-size: 1.5em;
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
text-align: right;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__unit-label {
|
|
15
|
+
font-size: 1.5em;
|
|
16
|
+
margin-left: 0.3em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__slider-input.cfgSlider {
|
|
20
|
+
margin-left: 1em;
|
|
21
|
+
flex-grow: 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__error {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
margin-top: 1em;
|
|
29
|
+
font-size: 1.5em;
|
|
30
|
+
color: $errorColor;
|
|
31
|
+
|
|
32
|
+
.cfgErrorIcon {
|
|
33
|
+
padding-right: 0.25em;
|
|
34
|
+
width: 1.25em;
|
|
35
|
+
height: 1em;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/scss/_slider.scss
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@use "mixins";
|
|
2
|
-
|
|
3
|
-
// The origins of this SCSS file is here:
|
|
4
|
-
// https://css-tricks.com/sliding-nightmare-understanding-range-input/
|
|
5
|
-
|
|
6
|
-
$trackHeight: 0.2em !default;
|
|
7
|
-
$thumbDiameter: 2.8em !default;
|
|
8
|
-
|
|
9
|
-
@mixin track($trackColor) {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
border: none;
|
|
12
|
-
height: $trackHeight;
|
|
13
|
-
background: $trackColor;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin thumb($thumbColor, $thumbShadowColor) {
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
border: none;
|
|
19
|
-
width: $thumbDiameter;
|
|
20
|
-
height: $thumbDiameter;
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
background: $thumbColor;
|
|
23
|
-
box-shadow: 0 0.15em 0.45em 0.05em $thumbShadowColor;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin classes($trackColor, $thumbColor, $thumbShadowColor) {
|
|
27
|
-
.cfgSlider {
|
|
28
|
-
@include mixins.cfgRootStyles;
|
|
29
|
-
|
|
30
|
-
&,
|
|
31
|
-
&::-webkit-slider-thumb {
|
|
32
|
-
-webkit-appearance: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
flex: 1;
|
|
36
|
-
margin: 0;
|
|
37
|
-
padding: 0;
|
|
38
|
-
min-height: $thumbDiameter;
|
|
39
|
-
background: transparent;
|
|
40
|
-
font: inherit;
|
|
41
|
-
|
|
42
|
-
&::-webkit-slider-runnable-track {
|
|
43
|
-
@include track($trackColor);
|
|
44
|
-
}
|
|
45
|
-
&::-moz-range-track {
|
|
46
|
-
@include track($trackColor);
|
|
47
|
-
}
|
|
48
|
-
&::-ms-track {
|
|
49
|
-
@include track($trackColor);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::-webkit-slider-thumb {
|
|
53
|
-
margin-top: 0.5 * ($trackHeight - $thumbDiameter);
|
|
54
|
-
@include thumb($thumbColor, $thumbShadowColor);
|
|
55
|
-
}
|
|
56
|
-
&::-moz-range-thumb {
|
|
57
|
-
@include thumb($thumbColor, $thumbShadowColor);
|
|
58
|
-
}
|
|
59
|
-
&::-ms-thumb {
|
|
60
|
-
margin-top: 0;
|
|
61
|
-
@include thumb($thumbColor, $thumbShadowColor);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&::-ms-tooltip {
|
|
65
|
-
display: none;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@content;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
@use "mixins";
|
|
2
|
+
|
|
3
|
+
// The origins of this SCSS file is here:
|
|
4
|
+
// https://css-tricks.com/sliding-nightmare-understanding-range-input/
|
|
5
|
+
|
|
6
|
+
$trackHeight: 0.2em !default;
|
|
7
|
+
$thumbDiameter: 2.8em !default;
|
|
8
|
+
|
|
9
|
+
@mixin track($trackColor) {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
border: none;
|
|
12
|
+
height: $trackHeight;
|
|
13
|
+
background: $trackColor;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin thumb($thumbColor, $thumbShadowColor) {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
border: none;
|
|
19
|
+
width: $thumbDiameter;
|
|
20
|
+
height: $thumbDiameter;
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
background: $thumbColor;
|
|
23
|
+
box-shadow: 0 0.15em 0.45em 0.05em $thumbShadowColor;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin classes($trackColor, $thumbColor, $thumbShadowColor) {
|
|
27
|
+
.cfgSlider {
|
|
28
|
+
@include mixins.cfgRootStyles;
|
|
29
|
+
|
|
30
|
+
&,
|
|
31
|
+
&::-webkit-slider-thumb {
|
|
32
|
+
-webkit-appearance: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
flex: 1;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
min-height: $thumbDiameter;
|
|
39
|
+
background: transparent;
|
|
40
|
+
font: inherit;
|
|
41
|
+
|
|
42
|
+
&::-webkit-slider-runnable-track {
|
|
43
|
+
@include track($trackColor);
|
|
44
|
+
}
|
|
45
|
+
&::-moz-range-track {
|
|
46
|
+
@include track($trackColor);
|
|
47
|
+
}
|
|
48
|
+
&::-ms-track {
|
|
49
|
+
@include track($trackColor);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::-webkit-slider-thumb {
|
|
53
|
+
margin-top: 0.5 * ($trackHeight - $thumbDiameter);
|
|
54
|
+
@include thumb($thumbColor, $thumbShadowColor);
|
|
55
|
+
}
|
|
56
|
+
&::-moz-range-thumb {
|
|
57
|
+
@include thumb($thumbColor, $thumbShadowColor);
|
|
58
|
+
}
|
|
59
|
+
&::-ms-thumb {
|
|
60
|
+
margin-top: 0;
|
|
61
|
+
@include thumb($thumbColor, $thumbShadowColor);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&::-ms-tooltip {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@content;
|
|
69
|
+
}
|
|
70
|
+
}
|
package/dist/scss/_tasks.scss
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
@use "mixins";
|
|
2
|
-
|
|
3
|
-
@mixin classes($borderColor, $linkColor) {
|
|
4
|
-
$preview-size: 4.8em;
|
|
5
|
-
$line-width: 0.1em;
|
|
6
|
-
$icon-size: 2em;
|
|
7
|
-
|
|
8
|
-
.cfgTaskList {
|
|
9
|
-
ul {
|
|
10
|
-
list-style-type: none;
|
|
11
|
-
padding: 0;
|
|
12
|
-
margin: 1em 0 0 0;
|
|
13
|
-
border-bottom: 0.1em solid $borderColor;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__item {
|
|
17
|
-
padding: 0 1.5em 0 1.7em;
|
|
18
|
-
margin-bottom: 1em;
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__preview {
|
|
24
|
-
border: 0.1em solid $borderColor;
|
|
25
|
-
border-radius: 10%;
|
|
26
|
-
width: $preview-size;
|
|
27
|
-
height: $preview-size;
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
|
|
30
|
-
img {
|
|
31
|
-
object-fit: cover;
|
|
32
|
-
position: relative;
|
|
33
|
-
left: 0.1 * $preview-size - $line-width;
|
|
34
|
-
top: 0.1 * $preview-size - $line-width;
|
|
35
|
-
width: 0.8 * $preview-size;
|
|
36
|
-
height: 0.8 * $preview-size;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__icon {
|
|
41
|
-
flex-shrink: 0;
|
|
42
|
-
width: $icon-size + 2em;
|
|
43
|
-
height: $icon-size;
|
|
44
|
-
padding-left: 1em;
|
|
45
|
-
padding-right: 1em;
|
|
46
|
-
|
|
47
|
-
.cfgLoadingSizer {
|
|
48
|
-
font-size: 0.75em;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&__status {
|
|
53
|
-
flex-grow: 1;
|
|
54
|
-
font-size: 1.5em;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__abort {
|
|
58
|
-
@include mixins.noButtonLook;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
width: $icon-size;
|
|
61
|
-
height: $icon-size;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&__restart {
|
|
66
|
-
@include mixins.noButtonLook;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
text-decoration: underline;
|
|
69
|
-
color: $linkColor;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
@use "mixins";
|
|
2
|
+
|
|
3
|
+
@mixin classes($borderColor, $linkColor) {
|
|
4
|
+
$preview-size: 4.8em;
|
|
5
|
+
$line-width: 0.1em;
|
|
6
|
+
$icon-size: 2em;
|
|
7
|
+
|
|
8
|
+
.cfgTaskList {
|
|
9
|
+
ul {
|
|
10
|
+
list-style-type: none;
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 1em 0 0 0;
|
|
13
|
+
border-bottom: 0.1em solid $borderColor;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__item {
|
|
17
|
+
padding: 0 1.5em 0 1.7em;
|
|
18
|
+
margin-bottom: 1em;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__preview {
|
|
24
|
+
border: 0.1em solid $borderColor;
|
|
25
|
+
border-radius: 10%;
|
|
26
|
+
width: $preview-size;
|
|
27
|
+
height: $preview-size;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
|
|
30
|
+
img {
|
|
31
|
+
object-fit: cover;
|
|
32
|
+
position: relative;
|
|
33
|
+
left: 0.1 * $preview-size - $line-width;
|
|
34
|
+
top: 0.1 * $preview-size - $line-width;
|
|
35
|
+
width: 0.8 * $preview-size;
|
|
36
|
+
height: 0.8 * $preview-size;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__icon {
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
width: $icon-size + 2em;
|
|
43
|
+
height: $icon-size;
|
|
44
|
+
padding-left: 1em;
|
|
45
|
+
padding-right: 1em;
|
|
46
|
+
|
|
47
|
+
.cfgLoadingSizer {
|
|
48
|
+
font-size: 0.75em;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__status {
|
|
53
|
+
flex-grow: 1;
|
|
54
|
+
font-size: 1.5em;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__abort {
|
|
58
|
+
@include mixins.noButtonLook;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
width: $icon-size;
|
|
61
|
+
height: $icon-size;
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__restart {
|
|
66
|
+
@include mixins.noButtonLook;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
text-decoration: underline;
|
|
69
|
+
color: $linkColor;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|