cx 26.0.6 → 26.0.9
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/build/charts/Bar.scss +29 -0
- package/build/charts/BarGraph.scss +29 -0
- package/build/charts/BubbleGraph.scss +32 -0
- package/build/charts/Column.scss +29 -0
- package/build/charts/ColumnGraph.scss +30 -0
- package/build/charts/Gridlines.scss +25 -0
- package/build/charts/Legend.scss +50 -0
- package/build/charts/LegendEntry.scss +29 -0
- package/build/charts/LineGraph.d.ts +11 -0
- package/build/charts/LineGraph.js +1 -0
- package/build/charts/LineGraph.scss +25 -0
- package/build/charts/Marker.scss +44 -0
- package/build/charts/MarkerLine.scss +20 -0
- package/build/charts/PieChart.scss +29 -0
- package/build/charts/Range.scss +20 -0
- package/build/charts/RangeMarker.scss +17 -0
- package/build/charts/ScatterGraph.scss +24 -0
- package/build/charts/Swimlane.scss +16 -0
- package/build/charts/Swimlanes.scss +16 -0
- package/build/charts/axis/Axis.scss +23 -0
- package/build/charts/axis/CategoryAxis.scss +35 -0
- package/build/charts/axis/NumericAxis.scss +35 -0
- package/build/charts/axis/TimeAxis.scss +34 -0
- package/build/charts/axis/index.scss +5 -0
- package/build/charts/axis/variables.scss +3 -0
- package/build/charts/index.scss +22 -0
- package/build/charts/palette.scss +97 -0
- package/build/charts/variables.scss +22 -0
- package/build/global.scss +14 -0
- package/build/index.scss +6 -0
- package/build/jsx-runtime.d.ts +3 -2
- package/build/svg/Svg.scss +28 -0
- package/build/svg/index.scss +9 -0
- package/build/ui/index.scss +2 -0
- package/build/ui/layout/LabelsLeftLayout.scss +47 -0
- package/build/ui/layout/LabelsTopLayout.scss +65 -0
- package/build/ui/layout/index.scss +3 -0
- package/build/ui/layout/variables.scss +2 -0
- package/build/ui/variables.scss +2 -0
- package/build/util/addEventListenerWithOptions.d.ts +2 -2
- package/build/util/call-once.scss +7 -0
- package/build/util/index.scss +11 -0
- package/build/util/scss/add-rules.scss +40 -0
- package/build/util/scss/calc.scss +45 -0
- package/build/util/scss/call-once.scss +13 -0
- package/build/util/scss/clockwise.scss +49 -0
- package/build/util/scss/colors.scss +10 -0
- package/build/util/scss/deep-get.scss +12 -0
- package/build/util/scss/deep-merge.scss +21 -0
- package/build/util/scss/divide.scss +3 -0
- package/build/util/scss/include.scss +48 -0
- package/build/util/scss/index.scss +9 -0
- package/build/variables.scss +217 -0
- package/build/widgets/Button.scss +119 -0
- package/build/widgets/Button.variables.scss +117 -0
- package/build/widgets/CxCredit.scss +39 -0
- package/build/widgets/FlexBox.scss +148 -0
- package/build/widgets/Heading.scss +40 -0
- package/build/widgets/HighlightedSearchText.scss +20 -0
- package/build/widgets/Icon.scss +22 -0
- package/build/widgets/List.scss +93 -0
- package/build/widgets/ProgressBar.scss +51 -0
- package/build/widgets/Resizer.scss +44 -0
- package/build/widgets/Section.scss +56 -0
- package/build/widgets/animations.scss +11 -0
- package/build/widgets/drag-drop/DragClone.scss +36 -0
- package/build/widgets/drag-drop/DragHandle.scss +19 -0
- package/build/widgets/drag-drop/DragSource.scss +27 -0
- package/build/widgets/drag-drop/DropZone.scss +77 -0
- package/build/widgets/drag-drop/index.scss +4 -0
- package/build/widgets/drag-drop/variables.scss +15 -0
- package/build/widgets/form/Calendar.scss +199 -0
- package/build/widgets/form/Calendar.variables.scss +64 -0
- package/build/widgets/form/Checkbox.scss +129 -0
- package/build/widgets/form/Checkbox.variables.scss +40 -0
- package/build/widgets/form/ColorField.scss +98 -0
- package/build/widgets/form/ColorPicker.scss +285 -0
- package/build/widgets/form/ColorPicker.variables.scss +22 -0
- package/build/widgets/form/DateTimeField.scss +92 -0
- package/build/widgets/form/DateTimePicker.scss +47 -0
- package/build/widgets/form/Field.scss +164 -0
- package/build/widgets/form/HelpText.scss +24 -0
- package/build/widgets/form/Label.scss +38 -0
- package/build/widgets/form/LookupField.scss +221 -0
- package/build/widgets/form/MonthField.scss +100 -0
- package/build/widgets/form/MonthPicker.scss +125 -0
- package/build/widgets/form/NumberField.scss +63 -0
- package/build/widgets/form/Radio.scss +123 -0
- package/build/widgets/form/Radio.variables.scss +46 -0
- package/build/widgets/form/Select.scss +101 -0
- package/build/widgets/form/Slider.scss +121 -0
- package/build/widgets/form/Switch.scss +142 -0
- package/build/widgets/form/TextArea.scss +45 -0
- package/build/widgets/form/TextField.scss +57 -0
- package/build/widgets/form/UploadButton.scss +49 -0
- package/build/widgets/form/ValidationError.scss +23 -0
- package/build/widgets/form/Wheel.scss +152 -0
- package/build/widgets/form/index.scss +24 -0
- package/build/widgets/form/variables.scss +355 -0
- package/build/widgets/grid/Grid.scss +640 -0
- package/build/widgets/grid/Pagination.scss +115 -0
- package/build/widgets/grid/TreeNode.scss +90 -0
- package/build/widgets/grid/index.scss +4 -0
- package/build/widgets/grid/variables.scss +137 -0
- package/build/widgets/index.scss +16 -0
- package/build/widgets/nav/Link.scss +20 -0
- package/build/widgets/nav/Menu.scss +76 -0
- package/build/widgets/nav/Menu.variables.scss +25 -0
- package/build/widgets/nav/MenuItem.d.ts +1 -0
- package/build/widgets/nav/MenuItem.scss +130 -0
- package/build/widgets/nav/Scroller.scss +148 -0
- package/build/widgets/nav/Tab.scss +82 -0
- package/build/widgets/nav/Tab.variables.scss +84 -0
- package/build/widgets/nav/cover.scss +22 -0
- package/build/widgets/nav/index.scss +6 -0
- package/build/widgets/nav/variables.scss +27 -0
- package/build/widgets/overlay/Dropdown.scss +186 -0
- package/build/widgets/overlay/Overlay.scss +68 -0
- package/build/widgets/overlay/Toast.scss +164 -0
- package/build/widgets/overlay/Tooltip.scss +177 -0
- package/build/widgets/overlay/Window.scss +129 -0
- package/build/widgets/overlay/Window.variables.scss +62 -0
- package/build/widgets/overlay/captureMouse.scss +13 -0
- package/build/widgets/overlay/index.scss +15 -0
- package/build/widgets/overlay/variables.scss +85 -0
- package/build/widgets/variables.scss +146 -0
- package/build.js +4 -0
- package/dist/charts.js +1 -0
- package/dist/manifest.js +876 -770
- package/package.json +4 -2
- package/src/charts/LineGraph.tsx +14 -0
- package/src/jsx-runtime.ts +8 -5
- package/src/util/addEventListenerWithOptions.ts +41 -41
- package/src/widgets/nav/MenuItem.tsx +1 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
|
|
4
|
+
@mixin cx-datetimefield(
|
|
5
|
+
$name: 'datetimefield',
|
|
6
|
+
$input-state-style-map: $cx-std-field-state-style-map,
|
|
7
|
+
$placeholder: $cx-input-placeholder,
|
|
8
|
+
$empty-text: $cx-empty-text,
|
|
9
|
+
$clear-state-style-map: $cx-clear-state-style-map,
|
|
10
|
+
$left-icon-state-style-map: $cx-input-left-icon-state-style-map,
|
|
11
|
+
$right-icon-state-style-map: $cx-input-right-icon-state-style-map,
|
|
12
|
+
$icon-size: $cx-default-input-icon-size,
|
|
13
|
+
$width: $cx-default-input-width,
|
|
14
|
+
$besm: $cx-besm
|
|
15
|
+
) {
|
|
16
|
+
$block: map.get($besm, block);
|
|
17
|
+
$element: map.get($besm, element);
|
|
18
|
+
$state: map.get($besm, state);
|
|
19
|
+
|
|
20
|
+
.#{$block}#{$name} {
|
|
21
|
+
@include cxb-field($besm, $input-state-style-map, $width: $width, $input: true);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
$padding: cx-get-state-rule($input-state-style-map, default, 'padding');
|
|
25
|
+
|
|
26
|
+
.#{$element}#{$name}-input {
|
|
27
|
+
@include cxe-field-input($besm, $input-state-style-map,
|
|
28
|
+
$placeholder: $placeholder,
|
|
29
|
+
$overrides: (
|
|
30
|
+
default: (
|
|
31
|
+
padding: cx-top($padding) cx-calc(cx-right($padding), $cx-default-clear-size) cx-bottom($padding) cx-calc(2 * cx-left($padding), $icon-size)
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$element}#{$name}-clear {
|
|
38
|
+
@include cxe-field-button($besm, $clear-state-style-map);
|
|
39
|
+
|
|
40
|
+
.#{$state}focus > & {
|
|
41
|
+
@include cx-add-state-rules($clear-state-style-map, focus);
|
|
42
|
+
}
|
|
43
|
+
.#{$state}error > & {
|
|
44
|
+
@include cx-add-state-rules($clear-state-style-map, error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.#{$element}#{$name}-left-icon {
|
|
49
|
+
@include cxe-field-button($besm, cx-deep-map-merge($left-icon-state-style-map, (
|
|
50
|
+
default: (
|
|
51
|
+
cursor: pointer
|
|
52
|
+
)
|
|
53
|
+
)));
|
|
54
|
+
|
|
55
|
+
.#{$state}disabled > & {
|
|
56
|
+
@include cx-add-state-rules($input-state-style-map, disabled);
|
|
57
|
+
border-width: 0;
|
|
58
|
+
}
|
|
59
|
+
.#{$state}focus > & {
|
|
60
|
+
@include cx-add-state-rules($left-icon-state-style-map, focus);
|
|
61
|
+
}
|
|
62
|
+
.#{$state}error > & {
|
|
63
|
+
@include cx-add-state-rules($left-icon-state-style-map, error);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.#{$element}#{$name}-right-icon {
|
|
68
|
+
@include cxe-field-button($besm, $right-icon-state-style-map);
|
|
69
|
+
.#{$state}disabled > & {
|
|
70
|
+
@include cx-add-state-rules($input-state-style-map, disabled);
|
|
71
|
+
border-width: 0;
|
|
72
|
+
}
|
|
73
|
+
.#{$state}focus > & {
|
|
74
|
+
@include cx-add-state-rules($right-icon-state-style-map, focus);
|
|
75
|
+
}
|
|
76
|
+
.#{$state}error > & {
|
|
77
|
+
@include cx-add-state-rules($right-icon-state-style-map, error);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.#{$element}#{$name}-icon {
|
|
82
|
+
@include cxe-field-button-icon($besm, $icon-size);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.#{$element}#{$name}-empty-text {
|
|
86
|
+
@include cxe-field-empty-text($empty-text);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@if (cx-should-include('cx/widgets/DateTimeField')) {
|
|
91
|
+
@include cx-datetimefield();
|
|
92
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-datetimepicker(
|
|
4
|
+
$name: 'datetimepicker',
|
|
5
|
+
$dtp-font-size: $cx-default-font-size,
|
|
6
|
+
$dtp-background-color: $cx-default-datetimepicker-background-color,
|
|
7
|
+
$dtp-border-width: $cx-default-datetimepicker-border-width,
|
|
8
|
+
$dtp-border-radius: $cx-default-datetimepicker-border-radius,
|
|
9
|
+
$dtp-border-color: $cx-default-datetimepicker-border-color,
|
|
10
|
+
$dtp-padding: $cx-default-datetimepicker-padding,
|
|
11
|
+
$tool-size: $cx-default-input-tool-size,
|
|
12
|
+
$icon-size: $cx-default-input-icon-size,
|
|
13
|
+
$besm: $cx-besm
|
|
14
|
+
) {
|
|
15
|
+
$block: map.get($besm, block);
|
|
16
|
+
$element: map.get($besm, element);
|
|
17
|
+
$state: map.get($besm, state);
|
|
18
|
+
$mod: map.get($besm, mod);
|
|
19
|
+
|
|
20
|
+
.#{$block}#{$name} {
|
|
21
|
+
background: $dtp-background-color;
|
|
22
|
+
border-style: solid;
|
|
23
|
+
border-width: $dtp-border-width;
|
|
24
|
+
border-radius: $dtp-border-radius;
|
|
25
|
+
border-color: $dtp-border-color;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
padding: $dtp-padding;
|
|
29
|
+
user-select: none;
|
|
30
|
+
font-size: $dtp-font-size;
|
|
31
|
+
|
|
32
|
+
&:focus {
|
|
33
|
+
outline: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include cx-wheel-elements($name+'-wheel', $tool-size, $icon-size, $besm);
|
|
38
|
+
|
|
39
|
+
.#{$element}#{$name}-spacer {
|
|
40
|
+
width: 20px;
|
|
41
|
+
display: inline-block;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@if (cx-should-include('cx/widgets/DateTimePicker')) {
|
|
46
|
+
@include cx-datetimepicker();
|
|
47
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cxb-field($besm, $state-style-map, $input: true, $box: false, $width: null) {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
|
|
8
|
+
$line-height: cx-get-state-rule($state-style-map, default, "line-height", 1.2em);
|
|
9
|
+
$padding: cx-get-state-rule($state-style-map, default, "padding", 0);
|
|
10
|
+
$border-width: cx-get-state-rule($state-style-map, default, "border-width", 1px);
|
|
11
|
+
|
|
12
|
+
@if $input {
|
|
13
|
+
width: $width;
|
|
14
|
+
line-height: 0;
|
|
15
|
+
height: cx-calc(
|
|
16
|
+
$line-height,
|
|
17
|
+
cx-top($padding),
|
|
18
|
+
cx-bottom($padding),
|
|
19
|
+
cx-top($border-width),
|
|
20
|
+
cx-bottom($border-width)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
//font: cx-get-state-rule($state-style-map, default, 'font');
|
|
24
|
+
//font-size: cx-get-state-rule($state-style-map, default, 'font-size');
|
|
25
|
+
//
|
|
26
|
+
//height: calc(#{$line-height} + #{cx-top($padding) + cx-bottom($padding)} + #{cx-top($border-width) + cx-bottom($border-width)});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@if ($box) {
|
|
30
|
+
line-height: $line-height;
|
|
31
|
+
padding: $padding;
|
|
32
|
+
border-width: $border-width;
|
|
33
|
+
border-style: solid;
|
|
34
|
+
border-color: transparent;
|
|
35
|
+
|
|
36
|
+
//other optional rules which could affect height
|
|
37
|
+
font: cx-get-state-rule($state-style-map, default, "font");
|
|
38
|
+
font-size: cx-get-state-rule($state-style-map, default, "font-size");
|
|
39
|
+
height: cx-get-state-rule($state-style-map, default, "height");
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
$state: map.get($besm, state);
|
|
43
|
+
|
|
44
|
+
&.#{$state}view-mode {
|
|
45
|
+
line-height: $line-height;
|
|
46
|
+
padding: $padding;
|
|
47
|
+
border-width: $border-width;
|
|
48
|
+
border-style: solid;
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin cxe-field-input($besm, $state-style-map, $overrides: null, $placeholder: null, $width: 100%, $input: true) {
|
|
54
|
+
$state: map.get($besm, state);
|
|
55
|
+
|
|
56
|
+
$styles: cx-deep-map-merge($state-style-map, $overrides);
|
|
57
|
+
|
|
58
|
+
$line-height: cx-get-state-rule($styles, default, "line-height", 1.2em);
|
|
59
|
+
$padding: cx-get-state-rule($styles, default, "padding", 0);
|
|
60
|
+
$border-width: cx-get-state-rule($styles, default, "border-width", 1px);
|
|
61
|
+
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
|
|
64
|
+
@if $input {
|
|
65
|
+
width: $width;
|
|
66
|
+
height: 100%; //cx-calc($line-height, cx-top($padding), cx-bottom($padding), cx-top($border-width), cx-bottom($border-width));
|
|
67
|
+
|
|
68
|
+
@if ($cx-use-box-line-height-fix) {
|
|
69
|
+
//100% line-height fix - inputs work better in all browser, especially in Firefox
|
|
70
|
+
$styles: cx-deep-map-merge(
|
|
71
|
+
$styles,
|
|
72
|
+
(
|
|
73
|
+
default: (
|
|
74
|
+
line-height: cx-calc($line-height, cx-top($padding), cx-bottom($padding)),
|
|
75
|
+
padding: 0 cx-right($padding) 0 cx-left($padding),
|
|
76
|
+
),
|
|
77
|
+
)
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include cx-add-state-rules($styles, default);
|
|
83
|
+
|
|
84
|
+
&:hover {
|
|
85
|
+
@include cx-add-state-rules($styles, hover);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:focus {
|
|
89
|
+
@include cx-add-state-rules($styles, focus);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@if $input {
|
|
93
|
+
&:disabled {
|
|
94
|
+
@include cx-add-state-rules($styles, disabled);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:read-only {
|
|
98
|
+
@include cx-add-state-rules($styles, read-only);
|
|
99
|
+
}
|
|
100
|
+
} @else {
|
|
101
|
+
.#{$state}disabled > & {
|
|
102
|
+
@include cx-add-state-rules($styles, disabled);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.#{$state}error > & {
|
|
107
|
+
@include cx-add-state-rules($styles, error);
|
|
108
|
+
|
|
109
|
+
&:focus {
|
|
110
|
+
@include cx-add-state-rules($styles, error-focus);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@if $input {
|
|
115
|
+
&::-webkit-input-placeholder {
|
|
116
|
+
@include cx-add-rules($placeholder);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&::-moz-placeholder {
|
|
120
|
+
@include cx-add-rules($placeholder);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:-ms-input-placeholder {
|
|
124
|
+
@include cx-add-rules($placeholder);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::-ms-clear {
|
|
128
|
+
width: 0;
|
|
129
|
+
height: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin cxe-field-button($besm, $state-style-map) {
|
|
135
|
+
display: block;
|
|
136
|
+
position: absolute;
|
|
137
|
+
|
|
138
|
+
@include cx-add-state-rules($state-style-map, default);
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
@include cx-add-state-rules($state-style-map, hover);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:active {
|
|
145
|
+
@include cx-add-state-rules($state-style-map, active);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@mixin cxe-field-button-icon($besm, $size) {
|
|
150
|
+
display: block;
|
|
151
|
+
position: absolute;
|
|
152
|
+
left: 50%;
|
|
153
|
+
top: 50%;
|
|
154
|
+
margin-top: -$size * 0.5;
|
|
155
|
+
margin-left: -$size * 0.5;
|
|
156
|
+
height: $size;
|
|
157
|
+
width: $size;
|
|
158
|
+
line-height: $size;
|
|
159
|
+
text-align: center;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@mixin cxe-field-empty-text($empty-text) {
|
|
163
|
+
@include cx-add-rules($empty-text);
|
|
164
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-helptext(
|
|
4
|
+
$name: 'helptext',
|
|
5
|
+
$besm: $cx-besm
|
|
6
|
+
) {
|
|
7
|
+
$block: map.get($besm, block);
|
|
8
|
+
$element: map.get($besm, element);
|
|
9
|
+
$state: map.get($besm, state);
|
|
10
|
+
$mod: map.get($besm, mod);
|
|
11
|
+
|
|
12
|
+
.#{$block}#{$name} {
|
|
13
|
+
font-size: smaller;
|
|
14
|
+
opacity: 0.8;
|
|
15
|
+
|
|
16
|
+
&.#{$mod}block {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@if (cx-should-include('cx/widgets/HelpText')) {
|
|
23
|
+
@include cx-helptext();
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-label(
|
|
4
|
+
$name: 'label',
|
|
5
|
+
$state-style-map: $cx-label-state-style-map,
|
|
6
|
+
$besm: $cx-besm
|
|
7
|
+
) {
|
|
8
|
+
$block: map.get($besm, block);
|
|
9
|
+
$element: map.get($besm, element);
|
|
10
|
+
$state: map.get($besm, state);
|
|
11
|
+
$mod: map.get($besm, mod);
|
|
12
|
+
|
|
13
|
+
.#{$block}label {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
|
|
16
|
+
@include cx-add-state-rules($state-style-map, default);
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
@include cx-add-state-rules($state-style-map, hover);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:active {
|
|
23
|
+
@include cx-add-state-rules($state-style-map, active);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.#{$state}disabled {
|
|
27
|
+
@include cx-add-state-rules($state-style-map, disabled);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$element}label-asterisk {
|
|
32
|
+
color: $cx-default-label-asterisk-color;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@if (cx-should-include('cx/widgets/Label')) {
|
|
37
|
+
@include cx-label();
|
|
38
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-lookupfield(
|
|
4
|
+
$name: "lookupfield",
|
|
5
|
+
$state-style-map: $cx-std-field-state-style-map,
|
|
6
|
+
$placeholder: $cx-input-placeholder,
|
|
7
|
+
$empty-text: $cx-empty-text,
|
|
8
|
+
$left-icon-state-style-map: $cx-input-left-icon-state-style-map,
|
|
9
|
+
$clear-state-style-map: $cx-clear-state-style-map,
|
|
10
|
+
$tool-state-style-map: $cx-input-right-icon-state-style-map,
|
|
11
|
+
$icon-size: $cx-default-input-icon-size,
|
|
12
|
+
$width: $cx-default-input-width,
|
|
13
|
+
$tag-state-style-map: $cx-input-tag-state-style-map,
|
|
14
|
+
$tag-clear-state-style-map: $cx-input-tag-clear-state-style-map,
|
|
15
|
+
$besm: $cx-besm
|
|
16
|
+
) {
|
|
17
|
+
$block: map.get($besm, block);
|
|
18
|
+
$element: map.get($besm, element);
|
|
19
|
+
$state: map.get($besm, state);
|
|
20
|
+
|
|
21
|
+
$padding: cx-get-state-rule($state-style-map, default, padding);
|
|
22
|
+
$border-radius-offset: round(cx-get-state-rule($tag-state-style-map, default, border-radius) * 0.25);
|
|
23
|
+
|
|
24
|
+
.#{$block}#{$name} {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
width: $width;
|
|
27
|
+
font: cx-get-state-rule($state-style-map, default, "font");
|
|
28
|
+
font-size: cx-get-state-rule($state-style-map, default, "font-size");
|
|
29
|
+
|
|
30
|
+
@include cxb-field($besm, $state-style-map, $input: false);
|
|
31
|
+
|
|
32
|
+
&.#{$state}multiple {
|
|
33
|
+
min-width: $cx-default-input-width;
|
|
34
|
+
width: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.#{$state}readonly {
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
|
|
40
|
+
& > .#{$element}#{$name}-input {
|
|
41
|
+
padding-right: cx-right($padding);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$element}#{$name}-input {
|
|
47
|
+
@include cxe-field-input(
|
|
48
|
+
$besm,
|
|
49
|
+
$state-style-map,
|
|
50
|
+
$placeholder: $placeholder,
|
|
51
|
+
$input: false,
|
|
52
|
+
$overrides: (
|
|
53
|
+
default: (
|
|
54
|
+
height: 100%,
|
|
55
|
+
text-overflow: null,
|
|
56
|
+
padding: cx-top($padding)
|
|
57
|
+
cx-calc(cx-right($padding), $cx-default-clear-size, $cx-default-input-tag-spacing) cx-bottom($padding)
|
|
58
|
+
cx-left($padding),
|
|
59
|
+
)
|
|
60
|
+
)
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
.#{$state}multiple > & {
|
|
64
|
+
padding: 0 cx-calc(cx-right($padding), $cx-default-clear-size, $cx-default-input-tag-spacing)
|
|
65
|
+
$cx-default-input-tag-spacing 0;
|
|
66
|
+
align-items: center;
|
|
67
|
+
flex-wrap: wrap;
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.#{$state}single > & {
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
display: block;
|
|
76
|
+
flex-basis: 0%;
|
|
77
|
+
flex-grow: 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.#{$state}icon > & {
|
|
81
|
+
padding-left: cx-calc(2 * cx-left($padding), $icon-size);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.#{$element}#{$name}-tag {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
position: relative;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
|
|
90
|
+
@include cx-add-state-rules($tag-state-style-map, default);
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
@include cx-add-state-rules($tag-state-style-map, hover);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.#{$state}readonly {
|
|
97
|
+
padding-right: cx-right($padding);
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$element}#{$name}-placeholder {
|
|
103
|
+
color: $cx-default-input-placeholder-color;
|
|
104
|
+
|
|
105
|
+
.#{$block}#{$name}.#{$state}multiple & {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
margin: $cx-default-input-tag-spacing 0 0 $cx-default-input-tag-spacing;
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
padding: cx-calc(cx-top($cx-default-input-padding), -$cx-default-input-tag-spacing)
|
|
110
|
+
cx-calc(cx-right($cx-default-input-padding), -$cx-default-input-tag-spacing)
|
|
111
|
+
cx-calc(cx-bottom($cx-default-input-padding), -$cx-default-input-tag-spacing)
|
|
112
|
+
cx-calc(cx-left($cx-default-input-padding), -$cx-default-input-tag-spacing);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.#{$element}#{$name}-tag-value {
|
|
117
|
+
padding: 0 cx-calc($cx-default-input-tag-spacing, $border-radius-offset);
|
|
118
|
+
display: inline-block;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.#{$element}#{$name}-tag-clear {
|
|
122
|
+
@include cxe-field-button($besm, $tag-clear-state-style-map);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.#{$element}#{$name}-lookup-options {
|
|
126
|
+
padding: 0;
|
|
127
|
+
margin: 0;
|
|
128
|
+
min-width: 100%;
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.#{$element}#{$name}-query {
|
|
133
|
+
@include cxe-field-input(
|
|
134
|
+
$besm,
|
|
135
|
+
$state-style-map,
|
|
136
|
+
$placeholder: $placeholder,
|
|
137
|
+
$width: calc(100% - 10px),
|
|
138
|
+
$overrides: (
|
|
139
|
+
default: (
|
|
140
|
+
margin: 5px,
|
|
141
|
+
flex: 0 0 auto,
|
|
142
|
+
height: auto,
|
|
143
|
+
)
|
|
144
|
+
)
|
|
145
|
+
);
|
|
146
|
+
//put query field down when placed up
|
|
147
|
+
.#{$state}place-up-right &,
|
|
148
|
+
.#{$state}place-up &,
|
|
149
|
+
.#{$state}place-up-left & {
|
|
150
|
+
order: 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{$element}#{$name}-dropdown {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
height: 100%;
|
|
158
|
+
|
|
159
|
+
&:focus {
|
|
160
|
+
outline: none;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.#{$element}#{$name}-message {
|
|
165
|
+
font-size: smaller;
|
|
166
|
+
padding: 10px;
|
|
167
|
+
color: gray;
|
|
168
|
+
font-style: italic;
|
|
169
|
+
|
|
170
|
+
&.#{$state}error {
|
|
171
|
+
color: #9e2f2d;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.#{$element}#{$name}-scroll-container {
|
|
176
|
+
overflow: auto;
|
|
177
|
+
flex: 1 1 auto;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.#{$element}#{$name}-clear {
|
|
181
|
+
@include cxe-field-button($besm, $clear-state-style-map);
|
|
182
|
+
|
|
183
|
+
.#{$state}focus > & {
|
|
184
|
+
@include cx-add-state-rules($clear-state-style-map, focus);
|
|
185
|
+
}
|
|
186
|
+
.#{$state}error > & {
|
|
187
|
+
@include cx-add-state-rules($clear-state-style-map, error);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.#{$element}#{$name}-tool {
|
|
192
|
+
@include cxe-field-button($besm, $tool-state-style-map);
|
|
193
|
+
|
|
194
|
+
.#{$state}disabled > & {
|
|
195
|
+
border-width: 0;
|
|
196
|
+
@include cx-add-state-rules($state-style-map, disabled);
|
|
197
|
+
}
|
|
198
|
+
.#{$state}focus > & {
|
|
199
|
+
@include cx-add-state-rules($tool-state-style-map, focus);
|
|
200
|
+
}
|
|
201
|
+
.#{$state}error > & {
|
|
202
|
+
@include cx-add-state-rules($tool-state-style-map, error);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.#{$element}#{$name}-left-icon {
|
|
207
|
+
@include cxe-field-button($besm, $left-icon-state-style-map);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.#{$element}#{$name}-icon {
|
|
211
|
+
@include cxe-field-button-icon($besm, $icon-size);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.#{$element}#{$name}-empty-text {
|
|
215
|
+
@include cxe-field-empty-text($empty-text);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@if (cx-should-include("cx/widgets/LookupField")) {
|
|
220
|
+
@include cx-lookupfield();
|
|
221
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
@mixin cx-monthfield(
|
|
4
|
+
$name: 'monthfield',
|
|
5
|
+
$state-style-map: $cx-std-field-state-style-map,
|
|
6
|
+
$placeholder: $cx-input-placeholder,
|
|
7
|
+
$empty-text: $cx-empty-text,
|
|
8
|
+
$clear-state-style-map: $cx-clear-state-style-map,
|
|
9
|
+
$left-icon-state-style-map: $cx-input-left-icon-state-style-map,
|
|
10
|
+
$right-icon-state-style-map: $cx-input-right-icon-state-style-map,
|
|
11
|
+
$icon-size: $cx-default-input-icon-size,
|
|
12
|
+
$width: $cx-default-input-width,
|
|
13
|
+
$besm: $cx-besm
|
|
14
|
+
) {
|
|
15
|
+
$block: map.get($besm, block);
|
|
16
|
+
$element: map.get($besm, element);
|
|
17
|
+
$state: map.get($besm, state);
|
|
18
|
+
|
|
19
|
+
.#{$block}#{$name} {
|
|
20
|
+
@include cxb-field(
|
|
21
|
+
$besm,
|
|
22
|
+
$state-style-map,
|
|
23
|
+
$width: $width
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
$padding: cx-get-state-rule($state-style-map, default, 'padding');
|
|
28
|
+
|
|
29
|
+
.#{$element}#{$name}-input {
|
|
30
|
+
@include cxe-field-input(
|
|
31
|
+
$besm,
|
|
32
|
+
$state-style-map,
|
|
33
|
+
$placeholder: $placeholder,
|
|
34
|
+
$overrides: (
|
|
35
|
+
default: (
|
|
36
|
+
padding: cx-top($padding) cx-calc(cx-right($padding), $cx-default-clear-size) cx-bottom($padding) cx-calc(2 * cx-left($padding), $icon-size)
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$element}#{$name}-clear {
|
|
43
|
+
@include cxe-field-button($besm, $clear-state-style-map);
|
|
44
|
+
|
|
45
|
+
.#{$state}focus > & {
|
|
46
|
+
@include cx-add-state-rules($clear-state-style-map, focus);
|
|
47
|
+
}
|
|
48
|
+
.#{$state}error > & {
|
|
49
|
+
@include cx-add-state-rules($clear-state-style-map, error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.#{$element}#{$name}-left-icon {
|
|
54
|
+
@include cxe-field-button($besm, cx-deep-map-merge($left-icon-state-style-map, (
|
|
55
|
+
default: (
|
|
56
|
+
cursor: pointer
|
|
57
|
+
)
|
|
58
|
+
)));
|
|
59
|
+
|
|
60
|
+
.#{$state}disabled > & {
|
|
61
|
+
@include cx-add-state-rules($state-style-map, disabled);
|
|
62
|
+
border-width: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$state}focus > & {
|
|
66
|
+
@include cx-add-state-rules($left-icon-state-style-map, focus);
|
|
67
|
+
}
|
|
68
|
+
.#{$state}error > & {
|
|
69
|
+
@include cx-add-state-rules($left-icon-state-style-map, error);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.#{$element}#{$name}-right-icon {
|
|
74
|
+
@include cxe-field-button($besm, $right-icon-state-style-map);
|
|
75
|
+
|
|
76
|
+
.#{$state}disabled > & {
|
|
77
|
+
@include cx-add-state-rules($state-style-map, disabled);
|
|
78
|
+
border-width: 0;
|
|
79
|
+
}
|
|
80
|
+
.#{$state}focus > & {
|
|
81
|
+
@include cx-add-state-rules($right-icon-state-style-map, focus);
|
|
82
|
+
}
|
|
83
|
+
.#{$state}error > & {
|
|
84
|
+
@include cx-add-state-rules($right-icon-state-style-map, error);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.#{$element}#{$name}-icon {
|
|
89
|
+
@include cxe-field-button-icon($besm, $icon-size);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.#{$element}#{$name}-empty-text {
|
|
93
|
+
@include cxe-field-empty-text($empty-text);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@if (cx-should-include('cx/widgets/MonthField')) {
|
|
98
|
+
@include cx-monthfield();
|
|
99
|
+
}
|
|
100
|
+
|