cx 26.3.3 → 26.3.4
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/manifest.js +842 -842
- package/package.json +1 -1
- package/src/charts/variables.scss +1 -2
- package/src/util/scss/include.scss +69 -56
- package/src/widgets/drag-drop/variables.scss +1 -2
- package/src/widgets/form/variables.scss +1 -2
- package/src/widgets/grid/variables.scss +1 -2
- package/src/widgets/nav/Menu.variables.scss +1 -2
- package/src/widgets/nav/variables.scss +1 -2
- package/src/widgets/overlay/variables.scss +1 -2
- package/src/widgets/variables.scss +1 -2
package/package.json
CHANGED
|
@@ -36,8 +36,7 @@ $cx-default-chart-legend-entry-gap: 5px !default;
|
|
|
36
36
|
$cx-default-chart-legend-shape-color: rgba(128, 128, 128, 0.1) !default;
|
|
37
37
|
$cx-default-chart-legend-shape-stroke-width: 1px !default;
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
$cx-dependencies,
|
|
39
|
+
@include cx-register-dependencies(
|
|
41
40
|
(
|
|
42
41
|
"cx/charts/Bar": "cx/charts/palette",
|
|
43
42
|
"cx/charts/BarGraph": "cx/charts/palette",
|
|
@@ -1,56 +1,69 @@
|
|
|
1
|
-
@forward "colors";
|
|
2
|
-
@use "call-once" as *;
|
|
3
|
-
@use "colors" as *;
|
|
4
|
-
@use "sass:map";
|
|
5
|
-
|
|
6
|
-
$cx-include-all: true !default;
|
|
7
|
-
|
|
8
|
-
$cx-excluded: () !default;
|
|
9
|
-
$cx-used: null !default;
|
|
10
|
-
|
|
11
|
-
$cx-dependencies: () !default;
|
|
12
|
-
|
|
13
|
-
@
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
@
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
@if
|
|
41
|
-
@
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
$
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
1
|
+
@forward "colors";
|
|
2
|
+
@use "call-once" as *;
|
|
3
|
+
@use "colors" as *;
|
|
4
|
+
@use "sass:map";
|
|
5
|
+
|
|
6
|
+
$cx-include-all: true !default;
|
|
7
|
+
|
|
8
|
+
$cx-excluded: () !default;
|
|
9
|
+
$cx-used: null !default;
|
|
10
|
+
|
|
11
|
+
$cx-dependencies: () !default;
|
|
12
|
+
|
|
13
|
+
@mixin cx-register-dependencies($deps) {
|
|
14
|
+
$cx-dependencies: map.merge($cx-dependencies, $deps) !global;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
$cx-deps-resolved: false !default;
|
|
18
|
+
|
|
19
|
+
// Recursively add all transitive dependencies of $name into $used
|
|
20
|
+
@function cx-resolve-module-deps($name, $used) {
|
|
21
|
+
$deps: map.get($cx-dependencies, $name);
|
|
22
|
+
@if $deps != null {
|
|
23
|
+
@each $dep in $deps {
|
|
24
|
+
@if map.get($used, $dep) != true {
|
|
25
|
+
$used: map.merge(
|
|
26
|
+
$used,
|
|
27
|
+
(
|
|
28
|
+
$dep: true,
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
$used: cx-resolve-module-deps($dep, $used);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@return $used;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@function cx-should-include($name, $once: true) {
|
|
39
|
+
// Resolve dependencies once, on first call (after all deps are registered)
|
|
40
|
+
@if not $cx-deps-resolved and $cx-used != null {
|
|
41
|
+
@each $module in map.keys($cx-used) {
|
|
42
|
+
$cx-used: cx-resolve-module-deps($module, $cx-used) !global;
|
|
43
|
+
}
|
|
44
|
+
$cx-deps-resolved: true !global;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@return (
|
|
48
|
+
(map.get($cx-excluded, $name) != true) and
|
|
49
|
+
($cx-include-all or ($cx-used != null and map.get($cx-used, $name) == true))
|
|
50
|
+
)
|
|
51
|
+
and ($once != true or cx-call-once($name));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@function cx-included($name) {
|
|
55
|
+
@return cx-called-once($name);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin cx-widgets($names...) {
|
|
59
|
+
$cx-used: () !default !global;
|
|
60
|
+
|
|
61
|
+
@each $name in $names {
|
|
62
|
+
$cx-used: map.merge(
|
|
63
|
+
$cx-used,
|
|
64
|
+
(
|
|
65
|
+
$name: true,
|
|
66
|
+
)
|
|
67
|
+
) !global;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -91,8 +91,7 @@ $cx-default-input-tag-padding: cx-calc($cx-default-input-padding-top, -$cx-defau
|
|
|
91
91
|
@forward "./Radio.variables.scss";
|
|
92
92
|
@forward "./ColorPicker.variables.scss";
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
$cx-dependencies,
|
|
94
|
+
@include cx-register-dependencies(
|
|
96
95
|
(
|
|
97
96
|
"cx/widgets/Field": "cx/widgets/Label" "cx/widgets/Tooltip" "cx/widgets/ValidationError" "cx/widgets/HelpText",
|
|
98
97
|
"cx/widgets/DateTimeField": "cx/widgets/Field" "cx/widgets/DateTimePicker" "cx/widgets/Calendar"
|
|
@@ -40,8 +40,7 @@ $cx-grid-pagination-default-border-radius: null !default;
|
|
|
40
40
|
$cx-grid-pagination-default-outer-border-radius: $cx-default-border-radius !default;
|
|
41
41
|
$cx-grid-pagination-default-padding: $cx-default-box-padding-top cx-multiply(2, $cx-default-box-padding-top) !default;
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
$cx-dependencies,
|
|
43
|
+
@include cx-register-dependencies(
|
|
45
44
|
(
|
|
46
45
|
"cx/widgets/Grid": "cx/widgets/DragClone",
|
|
47
46
|
)
|
|
@@ -11,8 +11,7 @@ $cx-default-scroller-button-size: 20px !default;
|
|
|
11
11
|
@forward "Menu.variables";
|
|
12
12
|
@forward "Tab.variables";
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
$cx-dependencies,
|
|
14
|
+
@include cx-register-dependencies(
|
|
16
15
|
(
|
|
17
16
|
"cx/widgets/HScroller": "cx/widgets/Scroller",
|
|
18
17
|
"cx/widgets/VScroller": "cx/widgets/Scroller",
|
|
@@ -40,8 +40,7 @@ $cx-default-toast-padding: 10px !default;
|
|
|
40
40
|
// WINDOW
|
|
41
41
|
@forward "Window.variables";
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
$cx-dependencies,
|
|
43
|
+
@include cx-register-dependencies(
|
|
45
44
|
(
|
|
46
45
|
"cx/widgets/Overlay": "cx/widgets/captureMouse",
|
|
47
46
|
"cx/widgets/Dropdown": "cx/widgets/Overlay",
|
|
@@ -50,8 +50,7 @@ $cx-default-progressbar-indicator-background-color: rgba(#98d4ff, 0.8) !default;
|
|
|
50
50
|
@forward "drag-drop/variables";
|
|
51
51
|
@forward "overlay/variables";
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
include.$cx-dependencies,
|
|
53
|
+
@include include.cx-register-dependencies(
|
|
55
54
|
(
|
|
56
55
|
"cx/widgets/FlexRow": "cx/widgets/FlexBox",
|
|
57
56
|
"cx/widgets/FlexCol": "cx/widgets/FlexBox",
|