@ardium-ui/ui 3.3.0-alpha1 → 3.4.1
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/esm2022/lib/_internal/focusable-component.mjs +5 -5
- package/esm2022/lib/_internal/form-field-component.mjs +5 -27
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +5 -2
- package/esm2022/lib/_internal/ngmodel-component.mjs +57 -5
- package/esm2022/lib/_internal/selectable-list-component.mjs +10 -12
- package/esm2022/lib/checkbox/checkbox.component.mjs +2 -3
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +2 -4
- package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +3 -3
- package/esm2022/lib/file-inputs/file-input-base.mjs +3 -4
- package/esm2022/lib/form-field/form-field.component.mjs +7 -10
- package/esm2022/lib/form-field/form-field.defaults.mjs +2 -1
- package/esm2022/lib/form-field/form-field.module.mjs +25 -4
- package/esm2022/lib/form-field/horizontal-form-field.component.mjs +33 -0
- package/esm2022/lib/form-field/index.mjs +2 -1
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +12 -7
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +98 -21
- package/esm2022/lib/inputs/digit-input/digit-input.defaults.mjs +4 -1
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +79 -32
- package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +5 -4
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +3 -3
- package/esm2022/lib/inputs/input/input.component.mjs +3 -3
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +3 -3
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +3 -3
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +3 -3
- package/esm2022/lib/radio/radio/radio.component.mjs +77 -6
- package/esm2022/lib/radio/radio/radio.defaults.mjs +3 -3
- package/esm2022/lib/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/segment/segment.component.mjs +26 -4
- package/esm2022/lib/select/select.component.mjs +4 -4
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +2 -1
- package/esm2022/lib/table/table.component.mjs +1 -1
- package/fesm2022/ardium-ui-ui.mjs +431 -139
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/focusable-component.d.ts +1 -1
- package/lib/_internal/form-field-component.d.ts +4 -13
- package/lib/_internal/item-storages/simple-item-storage.d.ts +1 -0
- package/lib/_internal/ngmodel-component.d.ts +16 -3
- package/lib/_internal/selectable-list-component.d.ts +3 -4
- package/lib/checkbox/checkbox.component.d.ts +1 -2
- package/lib/checkbox-list/checkbox-list.component.d.ts +1 -2
- package/lib/file-inputs/file-input-base.d.ts +1 -2
- package/lib/form-field/form-field.component.d.ts +3 -3
- package/lib/form-field/form-field.defaults.d.ts +1 -0
- package/lib/form-field/form-field.module.d.ts +8 -7
- package/lib/form-field/horizontal-form-field.component.d.ts +19 -0
- package/lib/form-field/index.d.ts +1 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +3 -2
- package/lib/inputs/digit-input/digit-input.component.d.ts +19 -4
- package/lib/inputs/digit-input/digit-input.defaults.d.ts +4 -1
- package/lib/inputs/digit-input/digit-input.model.d.ts +2 -1
- package/lib/inputs/digit-input/digit-input.module.d.ts +2 -1
- package/lib/inputs/digit-input/digit-input.types.d.ts +3 -1
- package/lib/inputs/digit-input/digit-input.utils.d.ts +3 -0
- package/lib/radio/radio/radio.component.d.ts +41 -3
- package/lib/radio/radio/radio.defaults.d.ts +2 -2
- package/lib/radio/radio-group.component.d.ts +1 -2
- package/lib/slider/range-slider/range-slider.component.d.ts +1 -1
- package/package.json +1 -1
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/core.css +2 -0
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +10 -4
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +74 -9
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +15 -3
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +0 -5
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +0 -5
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +6 -3
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/simple-input.css +0 -5
- package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
- package/prebuilt-themes/default/segment.css +6 -3
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/themes/default/_mixins.scss +6 -4
- package/themes/default/core.scss +3 -0
- package/themes/default/form-field-frame.scss +5 -1
- package/themes/default/form-field.scss +63 -2
- package/themes/default/inputs/digit-input.scss +12 -0
- package/themes/default/inputs/file-input.scss +79 -85
- package/themes/default/inputs/input.scss +46 -52
- package/themes/default/inputs/simple-input.scss +12 -19
|
@@ -1,85 +1,79 @@
|
|
|
1
|
-
@use './shared' as inputMixin;
|
|
2
|
-
@use '../mixins' as defaultMixins;
|
|
3
|
-
@use '../clear-button' as CB;
|
|
4
|
-
@use '../coloring' as CM;
|
|
5
|
-
@use '../../variables' as ARD;
|
|
6
|
-
|
|
7
|
-
.ard-file-input-form-field-frame {
|
|
8
|
-
.ard-form-field-overlay {
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
.ard-file-input {
|
|
13
|
-
@include CM.typeColors();
|
|
14
|
-
@include inputMixin.genericInput();
|
|
15
|
-
padding: 0 0 0 0.375rem;
|
|
16
|
-
min-width: 10rem;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
gap: 0.125rem;
|
|
19
|
-
cursor: default;
|
|
20
|
-
border-radius: var(--ard-variant-border-radius);
|
|
21
|
-
|
|
22
|
-
*:not(button):not(ard-clear-button) {
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
user-select: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.ard-state-dragover {
|
|
28
|
-
outline: 2px solid var(--ard-cmpcl--content-light);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ard-file-input__value {
|
|
32
|
-
font-size: 92%;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
text-overflow: ellipsis;
|
|
35
|
-
max-height: 1.25rem;
|
|
36
|
-
}
|
|
37
|
-
.ard-browse-button {
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
height: calc(100% - 0.25rem);
|
|
40
|
-
margin: 0.125rem;
|
|
41
|
-
aspect-ratio: 1;
|
|
42
|
-
border: none;
|
|
43
|
-
background: none;
|
|
44
|
-
padding: 0;
|
|
45
|
-
position: relative;
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
outline: none;
|
|
50
|
-
|
|
51
|
-
.ard-focus-overlay {
|
|
52
|
-
@include defaultMixins.focus-overlay();
|
|
53
|
-
background: ARD.$overlay;
|
|
54
|
-
border-radius: 9999px;
|
|
55
|
-
}
|
|
56
|
-
&:hover {
|
|
57
|
-
.ard-focus-overlay {
|
|
58
|
-
opacity: 4%;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
&:focus {
|
|
62
|
-
.ard-focus-overlay {
|
|
63
|
-
opacity: 8%;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
&:active {
|
|
67
|
-
.ard-focus-overlay {
|
|
68
|
-
opacity: 12%;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
&:focus-visible {
|
|
72
|
-
.ard-focus-overlay {
|
|
73
|
-
opacity: 16%;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@include CB.clearButton();
|
|
79
|
-
}
|
|
80
|
-
.ard-disabled {
|
|
81
|
-
.ard-input {
|
|
82
|
-
pointer-events: none;
|
|
83
|
-
opacity: 50%;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
@use './shared' as inputMixin;
|
|
2
|
+
@use '../mixins' as defaultMixins;
|
|
3
|
+
@use '../clear-button' as CB;
|
|
4
|
+
@use '../coloring' as CM;
|
|
5
|
+
@use '../../variables' as ARD;
|
|
6
|
+
|
|
7
|
+
.ard-file-input-form-field-frame {
|
|
8
|
+
.ard-form-field-overlay {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.ard-file-input {
|
|
13
|
+
@include CM.typeColors();
|
|
14
|
+
@include inputMixin.genericInput();
|
|
15
|
+
padding: 0 0 0 0.375rem;
|
|
16
|
+
min-width: 10rem;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
gap: 0.125rem;
|
|
19
|
+
cursor: default;
|
|
20
|
+
border-radius: var(--ard-variant-border-radius);
|
|
21
|
+
|
|
22
|
+
*:not(button):not(ard-clear-button) {
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
user-select: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.ard-state-dragover {
|
|
28
|
+
outline: 2px solid var(--ard-cmpcl--content-light);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ard-file-input__value {
|
|
32
|
+
font-size: 92%;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
max-height: 1.25rem;
|
|
36
|
+
}
|
|
37
|
+
.ard-browse-button {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
height: calc(100% - 0.25rem);
|
|
40
|
+
margin: 0.125rem;
|
|
41
|
+
aspect-ratio: 1;
|
|
42
|
+
border: none;
|
|
43
|
+
background: none;
|
|
44
|
+
padding: 0;
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
outline: none;
|
|
50
|
+
|
|
51
|
+
.ard-focus-overlay {
|
|
52
|
+
@include defaultMixins.focus-overlay();
|
|
53
|
+
background: ARD.$overlay;
|
|
54
|
+
border-radius: 9999px;
|
|
55
|
+
}
|
|
56
|
+
&:hover {
|
|
57
|
+
.ard-focus-overlay {
|
|
58
|
+
opacity: 4%;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&:focus {
|
|
62
|
+
.ard-focus-overlay {
|
|
63
|
+
opacity: 8%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&:active {
|
|
67
|
+
.ard-focus-overlay {
|
|
68
|
+
opacity: 12%;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
&:focus-visible {
|
|
72
|
+
.ard-focus-overlay {
|
|
73
|
+
opacity: 16%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@include CB.clearButton();
|
|
79
|
+
}
|
|
@@ -1,52 +1,46 @@
|
|
|
1
|
-
@use './shared' as inputMixin;
|
|
2
|
-
@use '../mixins' as defaultMixins;
|
|
3
|
-
@use '../clear-button' as CB;
|
|
4
|
-
@use '../../variables' as ARD;
|
|
5
|
-
|
|
6
|
-
.ard-input {
|
|
7
|
-
@include inputMixin.genericInput();
|
|
8
|
-
padding: 0 0.375rem;
|
|
9
|
-
min-width: 10rem;
|
|
10
|
-
max-width: 100%;
|
|
11
|
-
|
|
12
|
-
@include CB.clearButton();
|
|
13
|
-
|
|
14
|
-
.ard-autocomplete {
|
|
15
|
-
opacity: 37.5%;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//! suggestions
|
|
19
|
-
.ard-input-suggestions-panel {
|
|
20
|
-
.ard-option {
|
|
21
|
-
padding: 0.375rem 0.625rem;
|
|
22
|
-
font-size: 1rem;
|
|
23
|
-
color: ARD.$text2;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
|
|
26
|
-
&.ard-option-highlighted {
|
|
27
|
-
background: ARD.$darken-overlay-light;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.ard-option-selected {
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
background: ARD.$darken-overlay-medium;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.ard-option-disabled {
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
opacity: 50%;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.ard-compact {
|
|
41
|
-
.ard-option {
|
|
42
|
-
padding: 0.25rem 0.5rem;
|
|
43
|
-
font-size: 0.9rem;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.ard-disabled {
|
|
48
|
-
.ard-input {
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
opacity: 50%;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
@use './shared' as inputMixin;
|
|
2
|
+
@use '../mixins' as defaultMixins;
|
|
3
|
+
@use '../clear-button' as CB;
|
|
4
|
+
@use '../../variables' as ARD;
|
|
5
|
+
|
|
6
|
+
.ard-input {
|
|
7
|
+
@include inputMixin.genericInput();
|
|
8
|
+
padding: 0 0.375rem;
|
|
9
|
+
min-width: 10rem;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
|
|
12
|
+
@include CB.clearButton();
|
|
13
|
+
|
|
14
|
+
.ard-autocomplete {
|
|
15
|
+
opacity: 37.5%;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//! suggestions
|
|
19
|
+
.ard-input-suggestions-panel {
|
|
20
|
+
.ard-option {
|
|
21
|
+
padding: 0.375rem 0.625rem;
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
color: ARD.$text2;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
|
|
26
|
+
&.ard-option-highlighted {
|
|
27
|
+
background: ARD.$darken-overlay-light;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.ard-option-selected {
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
background: ARD.$darken-overlay-medium;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.ard-option-disabled {
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
opacity: 50%;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.ard-compact {
|
|
41
|
+
.ard-option {
|
|
42
|
+
padding: 0.25rem 0.5rem;
|
|
43
|
+
font-size: 0.9rem;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
@use './shared' as inputMixin;
|
|
2
|
-
@use '../mixins' as defaultMixins;
|
|
3
|
-
@use '../clear-button' as CB;
|
|
4
|
-
|
|
5
|
-
.ard-simple-input {
|
|
6
|
-
@include inputMixin.genericInput();
|
|
7
|
-
padding: 0 0.375rem;
|
|
8
|
-
min-width: 10rem;
|
|
9
|
-
max-width: 100%;
|
|
10
|
-
|
|
11
|
-
@include CB.clearButton();
|
|
12
|
-
}
|
|
13
|
-
//! disabled state
|
|
14
|
-
.ard-disabled {
|
|
15
|
-
.ard-simple-input {
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
opacity: 50%;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@use './shared' as inputMixin;
|
|
2
|
+
@use '../mixins' as defaultMixins;
|
|
3
|
+
@use '../clear-button' as CB;
|
|
4
|
+
|
|
5
|
+
.ard-simple-input {
|
|
6
|
+
@include inputMixin.genericInput();
|
|
7
|
+
padding: 0 0.375rem;
|
|
8
|
+
min-width: 10rem;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
|
|
11
|
+
@include CB.clearButton();
|
|
12
|
+
}
|