@configura/web-ui 2.0.0-alpha.20 → 2.0.0-alpha.21

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.
Files changed (104) hide show
  1. package/.eslintrc.json +5 -18
  2. package/.postcssrc.json +8 -8
  3. package/LICENSE +201 -201
  4. package/README.md +1 -1
  5. package/dist/components/CanvasWrapper.d.ts +9 -9
  6. package/dist/components/CanvasWrapper.js +8 -8
  7. package/dist/components/CfgPriceView.d.ts +6 -6
  8. package/dist/components/CfgPriceView.js +13 -13
  9. package/dist/components/ConfigurationActionsButtonRow.d.ts +14 -14
  10. package/dist/components/ConfigurationActionsButtonRow.js +16 -16
  11. package/dist/components/Configurator.d.ts +12 -12
  12. package/dist/components/Configurator.js +15 -15
  13. package/dist/components/ConfiguratorWrapper.d.ts +8 -8
  14. package/dist/components/ConfiguratorWrapper.js +5 -5
  15. package/dist/components/CurrencyPrice.d.ts +9 -9
  16. package/dist/components/CurrencyPrice.js +7 -7
  17. package/dist/components/ErrorContext.d.ts +2 -2
  18. package/dist/components/ErrorContext.js +2 -2
  19. package/dist/components/ExpandableHeadingRow.d.ts +15 -15
  20. package/dist/components/ExpandableHeadingRow.js +21 -21
  21. package/dist/components/Loading.d.ts +13 -13
  22. package/dist/components/Loading.js +20 -20
  23. package/dist/components/ProductInformation.d.ts +13 -13
  24. package/dist/components/ProductInformation.js +14 -14
  25. package/dist/components/ResetButton.d.ts +8 -8
  26. package/dist/components/ResetButton.js +7 -7
  27. package/dist/components/ShareView.d.ts +3 -3
  28. package/dist/components/ShareView.js +21 -36
  29. package/dist/components/TaskListView.d.ts +8 -8
  30. package/dist/components/TaskListView.js +69 -69
  31. package/dist/components/TaskStartView.d.ts +12 -12
  32. package/dist/components/TaskStartView.js +29 -29
  33. package/dist/components/icons/Checkmark.d.ts +6 -6
  34. package/dist/components/icons/Checkmark.js +12 -12
  35. package/dist/components/icons/Chevron.d.ts +7 -7
  36. package/dist/components/icons/Chevron.js +18 -18
  37. package/dist/components/icons/CircleXmarkIcon.d.ts +3 -3
  38. package/dist/components/icons/CircleXmarkIcon.js +8 -8
  39. package/dist/components/icons/DownloadIcon.d.ts +3 -3
  40. package/dist/components/icons/DownloadIcon.js +8 -8
  41. package/dist/components/icons/ErrorIcon.d.ts +3 -3
  42. package/dist/components/icons/ErrorIcon.js +8 -8
  43. package/dist/components/productConfiguration/CfgAdditionalProductView.d.ts +3 -3
  44. package/dist/components/productConfiguration/CfgAdditionalProductView.js +42 -42
  45. package/dist/components/productConfiguration/CfgCheckboxView.d.ts +7 -7
  46. package/dist/components/productConfiguration/CfgCheckboxView.js +29 -29
  47. package/dist/components/productConfiguration/CfgCheckboxesView.d.ts +7 -7
  48. package/dist/components/productConfiguration/CfgCheckboxesView.js +18 -18
  49. package/dist/components/productConfiguration/CfgDropdownOptionView.d.ts +7 -7
  50. package/dist/components/productConfiguration/CfgDropdownOptionView.js +44 -44
  51. package/dist/components/productConfiguration/CfgDropdownView.d.ts +7 -7
  52. package/dist/components/productConfiguration/CfgDropdownView.js +20 -20
  53. package/dist/components/productConfiguration/CfgFeatureView.d.ts +31 -31
  54. package/dist/components/productConfiguration/CfgFeatureView.js +60 -60
  55. package/dist/components/productConfiguration/CfgGroupView.d.ts +4 -4
  56. package/dist/components/productConfiguration/CfgGroupView.js +7 -7
  57. package/dist/components/productConfiguration/CfgOptionFeaturesView.d.ts +3 -3
  58. package/dist/components/productConfiguration/CfgOptionFeaturesView.js +13 -13
  59. package/dist/components/productConfiguration/CfgOptionNumericView.d.ts +29 -29
  60. package/dist/components/productConfiguration/CfgOptionNumericView.js +132 -132
  61. package/dist/components/productConfiguration/CfgOptionPriceView.d.ts +9 -9
  62. package/dist/components/productConfiguration/CfgOptionPriceView.js +31 -31
  63. package/dist/components/productConfiguration/CfgProductConfigurationView.d.ts +22 -22
  64. package/dist/components/productConfiguration/CfgProductConfigurationView.js +47 -47
  65. package/dist/css/web-ui.css.map +1 -1
  66. package/dist/index.d.ts +29 -29
  67. package/dist/index.js +29 -29
  68. package/dist/scss/_button.scss +52 -52
  69. package/dist/scss/_configurator.scss +125 -125
  70. package/dist/scss/_expandable.scss +37 -37
  71. package/dist/scss/_feature-item.scss +137 -137
  72. package/dist/scss/_forms.scss +44 -44
  73. package/dist/scss/_hr.scss +16 -16
  74. package/dist/scss/_loading.scss +98 -98
  75. package/dist/scss/_mixins.scss +56 -56
  76. package/dist/scss/_option-tree.scss +29 -29
  77. package/dist/scss/_product-information.scss +53 -53
  78. package/dist/scss/_range-view.scss +39 -39
  79. package/dist/scss/_slider.scss +70 -70
  80. package/dist/scss/_tasks.scss +72 -72
  81. package/dist/scss/_themed.scss +154 -154
  82. package/dist/scss/_utilities.scss +21 -21
  83. package/dist/scss/_variables.scss +6 -6
  84. package/dist/scss/icons/_checkmark.scss +46 -46
  85. package/dist/scss/icons/_chevron.scss +62 -62
  86. package/dist/scss/icons/_circle-xmark-icon.scss +24 -24
  87. package/dist/scss/icons/_download-icon.scss +24 -24
  88. package/dist/scss/icons/_error-icon.scss +24 -24
  89. package/dist/scss/web-ui.scss +11 -11
  90. package/dist/useCatParams.d.ts +17 -17
  91. package/dist/useCatParams.js +29 -29
  92. package/dist/useObservable.d.ts +4 -4
  93. package/dist/useObservable.js +18 -18
  94. package/dist/useRerender.d.ts +1 -1
  95. package/dist/useRerender.js +5 -5
  96. package/dist/useResize.d.ts +6 -6
  97. package/dist/useResize.js +47 -47
  98. package/dist/useSelected.d.ts +2 -2
  99. package/dist/useSelected.js +13 -13
  100. package/dist/useUniqueId.d.ts +1 -1
  101. package/dist/useUniqueId.js +3 -3
  102. package/dist/utilities.d.ts +5 -5
  103. package/dist/utilities.js +1 -1
  104. package/package.json +3 -3
@@ -1,52 +1,52 @@
1
- /**
2
- * Web UI Product information
3
- */
4
- @use "mixins";
5
-
6
- @mixin styles($textColor, $borderColor, $focusOutlineInnerColor, $focusOutlineOuterColor) {
7
- @include mixins.cfgRootStyles;
8
- display: inline-block;
9
- background-color: transparent;
10
- color: $textColor;
11
- border-radius: 0.3em;
12
- border: 0.1em solid $borderColor;
13
- font-size: 1.3em;
14
- font-weight: 500;
15
- outline: none;
16
- padding: 0.4em 0.8em;
17
-
18
- &:focus {
19
- @include mixins.focusOutline($focusOutlineInnerColor, $focusOutlineOuterColor);
20
- }
21
- }
22
-
23
- @mixin classes(
24
- $textColor,
25
- $borderColor,
26
- $focusOutlineInnerColor,
27
- $focusOutlineOuterColor,
28
- $disabledTextColor,
29
- $disabledBorderColor
30
- ) {
31
- .cfgButton {
32
- @include styles($textColor, $borderColor, $focusOutlineInnerColor, $focusOutlineOuterColor);
33
-
34
- &[disabled] {
35
- @include styles(
36
- $disabledTextColor,
37
- $disabledBorderColor,
38
- $focusOutlineInnerColor,
39
- $focusOutlineOuterColor
40
- );
41
- }
42
- }
43
-
44
- .cfgButtonRow {
45
- @include mixins.cfgRootStyles;
46
- &__button {
47
- &:nth-child(n + 2) {
48
- margin-left: 1em;
49
- }
50
- }
51
- }
52
- }
1
+ /**
2
+ * Web UI Product information
3
+ */
4
+ @use "mixins";
5
+
6
+ @mixin styles($textColor, $borderColor, $focusOutlineInnerColor, $focusOutlineOuterColor) {
7
+ @include mixins.cfgRootStyles;
8
+ display: inline-block;
9
+ background-color: transparent;
10
+ color: $textColor;
11
+ border-radius: 0.3em;
12
+ border: 0.1em solid $borderColor;
13
+ font-size: 1.3em;
14
+ font-weight: 500;
15
+ outline: none;
16
+ padding: 0.4em 0.8em;
17
+
18
+ &:focus {
19
+ @include mixins.focusOutline($focusOutlineInnerColor, $focusOutlineOuterColor);
20
+ }
21
+ }
22
+
23
+ @mixin classes(
24
+ $textColor,
25
+ $borderColor,
26
+ $focusOutlineInnerColor,
27
+ $focusOutlineOuterColor,
28
+ $disabledTextColor,
29
+ $disabledBorderColor
30
+ ) {
31
+ .cfgButton {
32
+ @include styles($textColor, $borderColor, $focusOutlineInnerColor, $focusOutlineOuterColor);
33
+
34
+ &[disabled] {
35
+ @include styles(
36
+ $disabledTextColor,
37
+ $disabledBorderColor,
38
+ $focusOutlineInnerColor,
39
+ $focusOutlineOuterColor
40
+ );
41
+ }
42
+ }
43
+
44
+ .cfgButtonRow {
45
+ @include mixins.cfgRootStyles;
46
+ &__button {
47
+ &:nth-child(n + 2) {
48
+ margin-left: 1em;
49
+ }
50
+ }
51
+ }
52
+ }
@@ -1,125 +1,125 @@
1
- /**
2
- * Web UI Configurator
3
- */
4
-
5
- @use "mixins";
6
-
7
- @mixin classes($fontSize, $textColor, $grayTextColor, $headerUnderlineColor) {
8
- .cfgConfiguratorWrapper {
9
- @include mixins.cfgRootStyles;
10
- color: $textColor;
11
- display: flex;
12
- height: 85vh;
13
- flex-direction: column;
14
-
15
- @media screen and (orientation: landscape) {
16
- flex-direction: row;
17
- }
18
-
19
- .cfgTaskStart,
20
- .cfgShare,
21
- .cfgReset {
22
- margin-top: 0.5em;
23
- font-size: 1.2em;
24
- font-weight: 500;
25
-
26
- .cfgInput,
27
- .cfgFormSelect,
28
- button {
29
- padding: 0.5em;
30
- }
31
- }
32
-
33
- .cfgTaskStart {
34
- .cfgFormSelect {
35
- &::after {
36
- right: 0.5em;
37
- }
38
- }
39
- }
40
-
41
- .cfgShare .cfgInput,
42
- .cfgReset button {
43
- appearance: none;
44
- margin: 0;
45
-
46
- background-color: transparent;
47
- font-family: inherit;
48
- font-size: inherit;
49
- font-weight: inherit;
50
- cursor: inherit;
51
- line-height: inherit;
52
- outline: none;
53
- }
54
-
55
- .cfgShare {
56
- &__error {
57
- display: inline-block;
58
- .cfgErrorIcon {
59
- padding-left: 0.25em;
60
- margin-right: 0.75em;
61
- width: 1.25em;
62
- height: 1em;
63
- }
64
- }
65
- &__grayed {
66
- color: $grayTextColor;
67
- }
68
- }
69
- }
70
-
71
- .cfgCanvasWrapper {
72
- @include mixins.cfgRootStyles;
73
- position: relative;
74
- height: 50rem;
75
- user-select: none;
76
-
77
- flex: 1 1 auto;
78
- overflow: hidden;
79
-
80
- & canvas {
81
- outline: none;
82
- }
83
-
84
- @media screen and (orientation: landscape) {
85
- height: 100%;
86
- flex: 0 1 60%;
87
- }
88
- }
89
-
90
- .cfgConfigurator {
91
- @include mixins.cfgRootStyles;
92
- @include mixins.cfgDefaultFont;
93
- font-size: $fontSize;
94
- color: $textColor;
95
- min-width: 0;
96
-
97
- height: 100%;
98
- display: flex;
99
- flex-direction: column;
100
- flex: 0 0 50%;
101
- overflow: auto;
102
-
103
- @media screen and (orientation: landscape) {
104
- height: 100%;
105
- flex: 0 1 40%;
106
- }
107
- }
108
-
109
- .cfgConfiguratorHeader {
110
- border-bottom: 0.1em solid $headerUnderlineColor;
111
- padding: 1.7em 1.7em 1.9em;
112
- position: relative;
113
-
114
- &__actions {
115
- margin-top: 1em;
116
- }
117
- }
118
-
119
- .cfgConfiguratorTree {
120
- padding-top: 1em;
121
- padding-top: 0.5em;
122
- overflow-y: auto;
123
- -webkit-overflow-scrolling: touch;
124
- }
125
- }
1
+ /**
2
+ * Web UI Configurator
3
+ */
4
+
5
+ @use "mixins";
6
+
7
+ @mixin classes($fontSize, $textColor, $grayTextColor, $headerUnderlineColor) {
8
+ .cfgConfiguratorWrapper {
9
+ @include mixins.cfgRootStyles;
10
+ color: $textColor;
11
+ display: flex;
12
+ height: 85vh;
13
+ flex-direction: column;
14
+
15
+ @media screen and (orientation: landscape) {
16
+ flex-direction: row;
17
+ }
18
+
19
+ .cfgTaskStart,
20
+ .cfgShare,
21
+ .cfgReset {
22
+ margin-top: 0.5em;
23
+ font-size: 1.2em;
24
+ font-weight: 500;
25
+
26
+ .cfgInput,
27
+ .cfgFormSelect,
28
+ button {
29
+ padding: 0.5em;
30
+ }
31
+ }
32
+
33
+ .cfgTaskStart {
34
+ .cfgFormSelect {
35
+ &::after {
36
+ right: 0.5em;
37
+ }
38
+ }
39
+ }
40
+
41
+ .cfgShare .cfgInput,
42
+ .cfgReset button {
43
+ appearance: none;
44
+ margin: 0;
45
+
46
+ background-color: transparent;
47
+ font-family: inherit;
48
+ font-size: inherit;
49
+ font-weight: inherit;
50
+ cursor: inherit;
51
+ line-height: inherit;
52
+ outline: none;
53
+ }
54
+
55
+ .cfgShare {
56
+ &__error {
57
+ display: inline-block;
58
+ .cfgErrorIcon {
59
+ padding-left: 0.25em;
60
+ margin-right: 0.75em;
61
+ width: 1.25em;
62
+ height: 1em;
63
+ }
64
+ }
65
+ &__grayed {
66
+ color: $grayTextColor;
67
+ }
68
+ }
69
+ }
70
+
71
+ .cfgCanvasWrapper {
72
+ @include mixins.cfgRootStyles;
73
+ position: relative;
74
+ height: 50rem;
75
+ user-select: none;
76
+
77
+ flex: 1 1 auto;
78
+ overflow: hidden;
79
+
80
+ & canvas {
81
+ outline: none;
82
+ }
83
+
84
+ @media screen and (orientation: landscape) {
85
+ height: 100%;
86
+ flex: 0 1 60%;
87
+ }
88
+ }
89
+
90
+ .cfgConfigurator {
91
+ @include mixins.cfgRootStyles;
92
+ @include mixins.cfgDefaultFont;
93
+ font-size: $fontSize;
94
+ color: $textColor;
95
+ min-width: 0;
96
+
97
+ height: 100%;
98
+ display: flex;
99
+ flex-direction: column;
100
+ flex: 0 0 50%;
101
+ overflow: auto;
102
+
103
+ @media screen and (orientation: landscape) {
104
+ height: 100%;
105
+ flex: 0 1 40%;
106
+ }
107
+ }
108
+
109
+ .cfgConfiguratorHeader {
110
+ border-bottom: 0.1em solid $headerUnderlineColor;
111
+ padding: 1.7em 1.7em 1.9em;
112
+ position: relative;
113
+
114
+ &__actions {
115
+ margin-top: 1em;
116
+ }
117
+ }
118
+
119
+ .cfgConfiguratorTree {
120
+ padding-top: 1em;
121
+ padding-top: 0.5em;
122
+ overflow-y: auto;
123
+ -webkit-overflow-scrolling: touch;
124
+ }
125
+ }
@@ -1,37 +1,37 @@
1
- @use "mixins";
2
-
3
- @mixin classes {
4
- .cfgExpandableHeadingRow {
5
- @include mixins.cfgRootStyles;
6
- @include mixins.noButtonLook;
7
- align-items: stretch;
8
- display: flex;
9
- height: 3.9em;
10
- outline: 0;
11
- position: relative;
12
- width: 100%;
13
-
14
- &--expandable {
15
- cursor: pointer;
16
- }
17
-
18
- &__title {
19
- align-items: center;
20
- display: flex;
21
- flex: 1 1 auto;
22
- font-size: 1.5em;
23
- font-weight: 500;
24
- justify-content: flex-start;
25
- }
26
-
27
- &__icon {
28
- align-items: center;
29
- display: flex;
30
- flex: 0 0 5em;
31
- justify-content: center;
32
- padding: 0 1.5em;
33
- }
34
-
35
- @content;
36
- }
37
- }
1
+ @use "mixins";
2
+
3
+ @mixin classes {
4
+ .cfgExpandableHeadingRow {
5
+ @include mixins.cfgRootStyles;
6
+ @include mixins.noButtonLook;
7
+ align-items: stretch;
8
+ display: flex;
9
+ height: 3.9em;
10
+ outline: 0;
11
+ position: relative;
12
+ width: 100%;
13
+
14
+ &--expandable {
15
+ cursor: pointer;
16
+ }
17
+
18
+ &__title {
19
+ align-items: center;
20
+ display: flex;
21
+ flex: 1 1 auto;
22
+ font-size: 1.5em;
23
+ font-weight: 500;
24
+ justify-content: flex-start;
25
+ }
26
+
27
+ &__icon {
28
+ align-items: center;
29
+ display: flex;
30
+ flex: 0 0 5em;
31
+ justify-content: center;
32
+ padding: 0 1.5em;
33
+ }
34
+
35
+ @content;
36
+ }
37
+ }