@acrodata/gui 1.1.1 → 2.1.0
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/README.md +7 -6
- package/button-toggle/button-toggle.scss +5 -6
- package/esm2022/button-toggle/button-toggle.mjs +7 -8
- package/esm2022/button-toggle/icon.mjs +6 -6
- package/esm2022/field-group/field-group.mjs +5 -5
- package/esm2022/field-label/field-label.mjs +5 -5
- package/esm2022/file-uploader/file-uploader-config.mjs +3 -3
- package/esm2022/file-uploader/file-uploader.mjs +9 -8
- package/esm2022/fill/fill.mjs +9 -8
- package/esm2022/gui-form.mjs +7 -5
- package/esm2022/gui-icons.mjs +3 -3
- package/esm2022/gui-module.mjs +10 -5
- package/esm2022/gui-utils.mjs +7 -8
- package/esm2022/icon-button-wrapper/icon-button-wrapper.mjs +13 -0
- package/esm2022/image-select/image-select.mjs +7 -8
- package/esm2022/inline-group/inline-group.mjs +5 -5
- package/esm2022/input-number/input-number.mjs +7 -16
- package/esm2022/input-text/input-text.mjs +7 -16
- package/esm2022/interface.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/esm2022/select/select.mjs +7 -8
- package/esm2022/slider/slider.mjs +7 -8
- package/esm2022/switch/switch.mjs +7 -7
- package/esm2022/textarea/textarea.mjs +7 -16
- package/fesm2022/acrodata-gui.mjs +107 -123
- package/fesm2022/acrodata-gui.mjs.map +1 -1
- package/field-group/field-group.scss +4 -29
- package/field-label/field-label.scss +4 -4
- package/file-uploader/file-uploader.scss +6 -6
- package/fill/fill.scss +4 -4
- package/gui-form.scss +38 -41
- package/gui-module.d.ts +3 -2
- package/icon-button-wrapper/icon-button-wrapper.d.ts +5 -0
- package/icon-button-wrapper/icon-button-wrapper.scss +28 -0
- package/image-select/image-select.scss +10 -10
- package/inline-group/inline-group.scss +3 -3
- package/interface.d.ts +2 -6
- package/package.json +7 -7
- package/public-api.d.ts +1 -0
- package/select/select.scss +7 -7
- package/slider/slider.scss +6 -6
- package/switch/switch.scss +14 -7
- package/textarea/textarea.scss +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.gui-field-group {
|
|
2
2
|
display: flex;
|
|
3
|
-
padding:
|
|
3
|
+
padding: 0.25rem 0.5rem;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.gui-field {
|
|
7
|
-
--mat-form-field-container-text-size:
|
|
7
|
+
--mat-form-field-container-text-size: 0.75rem;
|
|
8
8
|
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
flex: 1;
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
.mat-mdc-text-field-wrapper,
|
|
20
20
|
.mat-mdc-form-field-hint-wrapper {
|
|
21
21
|
position: relative;
|
|
22
|
-
padding: 0
|
|
22
|
+
padding: 0 0.5rem;
|
|
23
23
|
border-radius: var(--mdc-filled-text-field-container-shape);
|
|
24
24
|
|
|
25
25
|
[dir='rtl'] & {
|
|
26
|
-
padding: 0
|
|
26
|
+
padding: 0 0.5rem;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -37,29 +37,4 @@
|
|
|
37
37
|
.mdc-line-ripple {
|
|
38
38
|
display: none;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
.mat-mdc-icon-button {
|
|
42
|
-
--mdc-icon-button-state-layer-size: 24px;
|
|
43
|
-
--mdc-icon-button-icon-size: 14px;
|
|
44
|
-
|
|
45
|
-
padding: 0;
|
|
46
|
-
|
|
47
|
-
.mat-mdc-button-touch-target {
|
|
48
|
-
width: var(--mdc-icon-button-state-layer-size);
|
|
49
|
-
height: var(--mdc-icon-button-state-layer-size);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// fix mat-form-field prefix icon
|
|
54
|
-
.mat-icon {
|
|
55
|
-
display: inline-flex;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
align-items: center;
|
|
58
|
-
padding: 0 !important;
|
|
59
|
-
|
|
60
|
-
svg {
|
|
61
|
-
width: 14px;
|
|
62
|
-
height: 14px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
40
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.gui-field-label {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
width:
|
|
4
|
-
height:
|
|
5
|
-
padding: 0
|
|
6
|
-
line-height:
|
|
3
|
+
width: 4rem;
|
|
4
|
+
height: 1.5rem;
|
|
5
|
+
padding: 0 0.25rem;
|
|
6
|
+
line-height: 1.5rem;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
white-space: nowrap;
|
|
9
9
|
text-overflow: ellipsis;
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
14
|
-
height:
|
|
15
|
-
margin:
|
|
16
|
-
padding:
|
|
14
|
+
height: 7.5rem;
|
|
15
|
+
margin: 0.25rem 0 0;
|
|
16
|
+
padding: 0.25rem;
|
|
17
17
|
background-color: var(--mdc-filled-text-field-container-color);
|
|
18
18
|
border: 1px solid transparent;
|
|
19
|
-
border-radius:
|
|
19
|
+
border-radius: 0.25rem;
|
|
20
20
|
|
|
21
21
|
&:hover,
|
|
22
22
|
&:focus-within {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.mat-icon svg {
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
44
|
+
width: 1.5rem;
|
|
45
|
+
height: 1.5rem;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
package/fill/fill.scss
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
.gui-color-block-empty {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
5
|
+
width: 1.5rem;
|
|
6
|
+
height: 1.5rem;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.gui-color-block-empty {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
linear-gradient(-45deg, #ccc 25%, transparent 25%),
|
|
15
15
|
linear-gradient(45deg, transparent 75%, #ccc 75%),
|
|
16
16
|
linear-gradient(-45deg, transparent 75%, #ccc 75%);
|
|
17
|
-
background-position: 0 0, 0
|
|
18
|
-
background-size:
|
|
17
|
+
background-position: 0 0, 0 0.25rem, 0.25rem -0.25rem, -0.25rem 0;
|
|
18
|
+
background-size: 0.5rem 0.5rem;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// use the pseudo-elements `::after` to simulate the border for color-block
|
package/gui-form.scss
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.gui-form {
|
|
2
|
-
--mat-expansion-header-text-size:
|
|
3
|
-
--mat-expansion-
|
|
4
|
-
--mat-expansion-header-
|
|
5
|
-
--mat-expansion-
|
|
2
|
+
--mat-expansion-header-text-size: 0.75rem;
|
|
3
|
+
--mat-expansion-header-collapsed-state-height: 2rem;
|
|
4
|
+
--mat-expansion-header-expanded-state-height: 2rem;
|
|
5
|
+
--mat-expansion-container-text-size: 0.75rem;
|
|
6
6
|
--mat-expansion-container-shape: 0;
|
|
7
7
|
|
|
8
8
|
position: relative;
|
|
9
9
|
display: block;
|
|
10
|
-
font-size:
|
|
10
|
+
font-size: 0.75rem;
|
|
11
11
|
|
|
12
12
|
.mat-expansion-panel {
|
|
13
13
|
box-shadow: none !important;
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.mat-expansion-panel-header {
|
|
21
|
-
padding: 0
|
|
21
|
+
padding: 0 0.75rem;
|
|
22
22
|
|
|
23
23
|
.mat-content {
|
|
24
24
|
align-items: center;
|
|
25
|
-
padding-right:
|
|
25
|
+
padding-right: 0.5rem;
|
|
26
26
|
|
|
27
27
|
[dir='rtl'] & {
|
|
28
28
|
padding-right: 0;
|
|
29
|
-
padding-left:
|
|
29
|
+
padding-left: 0.5rem;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
gui-field-label {
|
|
@@ -38,13 +38,21 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.mat-expansion-indicator
|
|
42
|
-
|
|
41
|
+
.mat-expansion-indicator {
|
|
42
|
+
svg {
|
|
43
|
+
width: 1.5rem;
|
|
44
|
+
height: 1.5rem;
|
|
45
|
+
margin: 0 -0.5rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::after {
|
|
49
|
+
vertical-align: 0.125rem;
|
|
50
|
+
}
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
.mat-mdc-tab-header {
|
|
46
|
-
--mat-tab-header-label-text-size:
|
|
47
|
-
--mdc-secondary-navigation-tab-container-height:
|
|
54
|
+
--mat-tab-header-label-text-size: 0.75rem;
|
|
55
|
+
--mdc-secondary-navigation-tab-container-height: 1.5rem;
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
.mat-mdc-tab-header-pagination {
|
|
@@ -53,25 +61,7 @@
|
|
|
53
61
|
|
|
54
62
|
.mat-mdc-tab {
|
|
55
63
|
min-width: auto;
|
|
56
|
-
padding: 0
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.mat-mdc-icon-button {
|
|
60
|
-
--mdc-icon-button-state-layer-size: 24px;
|
|
61
|
-
--mdc-icon-button-icon-size: 14px;
|
|
62
|
-
|
|
63
|
-
padding: 0;
|
|
64
|
-
|
|
65
|
-
.mat-mdc-button-touch-target {
|
|
66
|
-
width: var(--mdc-icon-button-state-layer-size);
|
|
67
|
-
height: var(--mdc-icon-button-state-layer-size);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.mat-icon {
|
|
71
|
-
display: inline-flex;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
align-items: center;
|
|
74
|
-
}
|
|
64
|
+
padding: 0 0.75rem;
|
|
75
65
|
}
|
|
76
66
|
}
|
|
77
67
|
|
|
@@ -79,14 +69,15 @@
|
|
|
79
69
|
display: flex;
|
|
80
70
|
align-items: center;
|
|
81
71
|
position: relative;
|
|
82
|
-
padding: 0
|
|
83
|
-
line-height:
|
|
72
|
+
padding: 0 0.75rem;
|
|
73
|
+
line-height: 1.5rem;
|
|
74
|
+
border-bottom: var(--mat-tab-header-divider-height) solid transparent;
|
|
84
75
|
|
|
85
76
|
&::before {
|
|
86
77
|
position: absolute;
|
|
87
78
|
left: 0;
|
|
88
|
-
width:
|
|
89
|
-
height:
|
|
79
|
+
width: 0.125rem;
|
|
80
|
+
height: 1rem;
|
|
90
81
|
background-color: var(--mat-expansion-header-text-color);
|
|
91
82
|
content: '';
|
|
92
83
|
|
|
@@ -98,7 +89,15 @@
|
|
|
98
89
|
}
|
|
99
90
|
|
|
100
91
|
.gui-list-item-title {
|
|
92
|
+
display: flex;
|
|
101
93
|
flex: 1;
|
|
94
|
+
padding: 0;
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
border: none;
|
|
97
|
+
font-size: inherit;
|
|
98
|
+
font-family: inherit;
|
|
99
|
+
letter-spacing: inherit;
|
|
100
|
+
line-height: inherit;
|
|
102
101
|
cursor: pointer;
|
|
103
102
|
|
|
104
103
|
.gui-list-item-active & {
|
|
@@ -108,9 +107,9 @@
|
|
|
108
107
|
|
|
109
108
|
.gui-menu {
|
|
110
109
|
.mat-mdc-tab-header {
|
|
111
|
-
--mdc-tab-indicator-active-indicator-shape:
|
|
110
|
+
--mdc-tab-indicator-active-indicator-shape: 0.25rem;
|
|
112
111
|
|
|
113
|
-
padding:
|
|
112
|
+
padding: 0.25rem;
|
|
114
113
|
background-color: var(--mdc-filled-text-field-container-color);
|
|
115
114
|
|
|
116
115
|
.mdc-tab__ripple::before {
|
|
@@ -119,17 +118,15 @@
|
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
.mat-mdc-tab-labels {
|
|
122
|
-
gap:
|
|
121
|
+
gap: 0.25rem;
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
.mdc-tab-indicator .mdc-tab-indicator__content {
|
|
126
125
|
height: 100%;
|
|
127
|
-
border-width: 0;
|
|
128
|
-
border-radius: var(--mdc-tab-indicator-active-indicator-shape);
|
|
129
126
|
background-color: var(--mdc-tab-indicator-active-indicator-color);
|
|
130
127
|
}
|
|
131
128
|
|
|
132
129
|
.mdc-tab-indicator--active .mdc-tab-indicator__content {
|
|
133
|
-
opacity: .24;
|
|
130
|
+
opacity: 0.24;
|
|
134
131
|
}
|
|
135
132
|
}
|
package/gui-module.d.ts
CHANGED
|
@@ -29,9 +29,10 @@ import * as i27 from "./inline-group/inline-group";
|
|
|
29
29
|
import * as i28 from "./image-select/image-select";
|
|
30
30
|
import * as i29 from "./textarea/textarea";
|
|
31
31
|
import * as i30 from "./file-uploader/file-uploader";
|
|
32
|
-
import * as i31 from "./
|
|
32
|
+
import * as i31 from "./icon-button-wrapper/icon-button-wrapper";
|
|
33
|
+
import * as i32 from "./gui-utils";
|
|
33
34
|
export declare class GuiModule {
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiModule, never>;
|
|
35
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GuiModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i2.FormsModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.MatSelectModule, typeof i6.MatSliderModule, typeof i7.MatSlideToggleModule, typeof i8.MatButtonToggleModule, typeof i9.MatIconModule, typeof i10.MatButtonModule, typeof i11.MatTabsModule, typeof i12.MatExpansionModule, typeof i13.MatTooltipModule, typeof i14.MtxColorpickerModule, typeof i15.MtxSelectModule, typeof i16.GuiForm, typeof i17.GuiInputText, typeof i18.GuiInputNumber, typeof i19.GuiSelect, typeof i20.GuiSwitch, typeof i21.GuiSlider, typeof i22.GuiIcon, typeof i23.GuiButtonToggle, typeof i24.GuiFill, typeof i25.GuiFieldGroup, typeof i26.GuiFieldLabel, typeof i27.GuiInlineGroup, typeof i28.GuiImageSelect, typeof i29.GuiTextarea, typeof i30.GuiFileUploader, typeof i31.GuiEjsPipe, typeof
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GuiModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i2.FormsModule, typeof i3.MatFormFieldModule, typeof i4.MatInputModule, typeof i5.MatSelectModule, typeof i6.MatSliderModule, typeof i7.MatSlideToggleModule, typeof i8.MatButtonToggleModule, typeof i9.MatIconModule, typeof i10.MatButtonModule, typeof i11.MatTabsModule, typeof i12.MatExpansionModule, typeof i13.MatTooltipModule, typeof i14.MtxColorpickerModule, typeof i15.MtxSelectModule, typeof i16.GuiForm, typeof i17.GuiInputText, typeof i18.GuiInputNumber, typeof i19.GuiSelect, typeof i20.GuiSwitch, typeof i21.GuiSlider, typeof i22.GuiIcon, typeof i23.GuiButtonToggle, typeof i24.GuiFill, typeof i25.GuiFieldGroup, typeof i26.GuiFieldLabel, typeof i27.GuiInlineGroup, typeof i28.GuiImageSelect, typeof i29.GuiTextarea, typeof i30.GuiFileUploader, typeof i31.GuiIconButtonWrapper, typeof i32.GuiEjsPipe, typeof i32.GuiFlexDirective], [typeof i16.GuiForm, typeof i17.GuiInputText, typeof i18.GuiInputNumber, typeof i19.GuiSelect, typeof i20.GuiSwitch, typeof i21.GuiSlider, typeof i22.GuiIcon, typeof i23.GuiButtonToggle, typeof i24.GuiFill, typeof i25.GuiFieldGroup, typeof i26.GuiFieldLabel, typeof i27.GuiInlineGroup, typeof i28.GuiImageSelect, typeof i29.GuiTextarea, typeof i30.GuiFileUploader, typeof i31.GuiIconButtonWrapper, typeof i32.GuiEjsPipe, typeof i32.GuiFlexDirective]>;
|
|
36
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<GuiModule>;
|
|
37
38
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GuiIconButtonWrapper {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuiIconButtonWrapper, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GuiIconButtonWrapper, "gui-icon-button-wrapper", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.gui-icon-button-wrapper {
|
|
2
|
+
line-height: 1;
|
|
3
|
+
|
|
4
|
+
.mat-mdc-icon-button {
|
|
5
|
+
--mdc-icon-button-state-layer-size: 1.5rem;
|
|
6
|
+
--mdc-icon-button-icon-size: 0.875rem;
|
|
7
|
+
|
|
8
|
+
padding: 0;
|
|
9
|
+
|
|
10
|
+
.mat-mdc-button-touch-target {
|
|
11
|
+
width: var(--mdc-icon-button-state-layer-size);
|
|
12
|
+
height: var(--mdc-icon-button-state-layer-size);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mat-icon {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
width: 1.5rem;
|
|
21
|
+
height: 1.5rem;
|
|
22
|
+
|
|
23
|
+
svg {
|
|
24
|
+
width: 0.875rem;
|
|
25
|
+
height: 0.875rem;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
%img {
|
|
2
2
|
height: 100%;
|
|
3
|
-
max-width:
|
|
3
|
+
max-width: 7.5rem;
|
|
4
4
|
object-fit: contain;
|
|
5
|
-
border-radius:
|
|
5
|
+
border-radius: 0.25rem;
|
|
6
6
|
background-color: var(--mat-option-hover-state-layer-color);
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
--mat-form-field-container-vertical-padding: 0;
|
|
11
11
|
|
|
12
12
|
.ng-select {
|
|
13
|
-
padding: 0
|
|
14
|
-
margin: 0 -
|
|
13
|
+
padding: 0 0.5rem;
|
|
14
|
+
margin: 0 -0.5rem;
|
|
15
15
|
|
|
16
16
|
.ng-value-container {
|
|
17
|
-
height:
|
|
17
|
+
height: 4rem;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.ng-value {
|
|
21
21
|
display: inline-flex;
|
|
22
22
|
align-items: center;
|
|
23
|
-
gap:
|
|
23
|
+
gap: 0.5rem;
|
|
24
24
|
height: 100%;
|
|
25
|
-
padding:
|
|
25
|
+
padding: 0.5rem 0;
|
|
26
26
|
|
|
27
27
|
img {
|
|
28
28
|
@extend %img;
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
.ng-option {
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
|
-
gap:
|
|
39
|
-
height:
|
|
40
|
-
padding:
|
|
38
|
+
gap: 0.5rem;
|
|
39
|
+
height: 4rem;
|
|
40
|
+
padding: 0.5rem;
|
|
41
41
|
|
|
42
42
|
img {
|
|
43
43
|
@extend %img;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.gui-inline-group {
|
|
2
2
|
display: flex;
|
|
3
|
-
padding:
|
|
3
|
+
padding: 0.25rem 0.5rem;
|
|
4
4
|
|
|
5
5
|
mat-hint {
|
|
6
6
|
width: 100%;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
display: inline-flex;
|
|
14
14
|
flex: 1;
|
|
15
15
|
flex-flow: row wrap;
|
|
16
|
-
margin: 0 -
|
|
16
|
+
margin: 0 -0.25rem;
|
|
17
17
|
|
|
18
18
|
>.gui-field-group,
|
|
19
19
|
>.gui-inline-group,
|
|
20
20
|
>.mat-expansion-panel,
|
|
21
21
|
>.gui-menu {
|
|
22
22
|
width: 100%;
|
|
23
|
-
padding: 0
|
|
23
|
+
padding: 0 0.25rem;
|
|
24
24
|
}
|
|
25
25
|
}
|
package/interface.d.ts
CHANGED
|
@@ -36,9 +36,7 @@ export interface GuiField {
|
|
|
36
36
|
mode?: GuiFillMode | GuiSliderMode | GuiTabsMode;
|
|
37
37
|
rows?: number;
|
|
38
38
|
}
|
|
39
|
-
export
|
|
40
|
-
[key: string]: GuiField;
|
|
41
|
-
}
|
|
39
|
+
export type GuiFields = Record<string, GuiField>;
|
|
42
40
|
export interface GuiFieldOption {
|
|
43
41
|
label: string;
|
|
44
42
|
value: string | number | boolean;
|
|
@@ -57,6 +55,4 @@ export interface GuiControl extends GuiField {
|
|
|
57
55
|
template?: Partial<GuiControl>;
|
|
58
56
|
selectedIndex?: number;
|
|
59
57
|
}
|
|
60
|
-
export
|
|
61
|
-
[key: string]: GuiControl;
|
|
62
|
-
}
|
|
58
|
+
export type GuiControls = Record<string, GuiControl>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acrodata/gui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "JSON powered GUI for configurable panels.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@angular/cdk": ">=
|
|
35
|
-
"@angular/common": ">=
|
|
36
|
-
"@angular/core": ">=
|
|
37
|
-
"@angular/forms": ">=
|
|
38
|
-
"@angular/material": ">=
|
|
39
|
-
"@ng-matero/extensions": ">=
|
|
34
|
+
"@angular/cdk": ">=18.0.0",
|
|
35
|
+
"@angular/common": ">=18.0.0",
|
|
36
|
+
"@angular/core": ">=18.0.0",
|
|
37
|
+
"@angular/forms": ">=18.0.0",
|
|
38
|
+
"@angular/material": ">=18.0.0",
|
|
39
|
+
"@ng-matero/extensions": ">=18.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './field-label/field-label';
|
|
|
7
7
|
export * from './file-uploader/file-uploader';
|
|
8
8
|
export * from './file-uploader/file-uploader-config';
|
|
9
9
|
export * from './fill/fill';
|
|
10
|
+
export * from './icon-button-wrapper/icon-button-wrapper';
|
|
10
11
|
export * from './image-select/image-select';
|
|
11
12
|
export * from './inline-group/inline-group';
|
|
12
13
|
export * from './input-number/input-number';
|
package/select/select.scss
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
.gui-select {
|
|
2
|
-
--mat-select-trigger-text-size:
|
|
3
|
-
--mat-option-label-text-size:
|
|
2
|
+
--mat-select-trigger-text-size: 0.75rem;
|
|
3
|
+
--mat-option-label-text-size: 0.75rem;
|
|
4
4
|
|
|
5
5
|
.mat-mdc-option {
|
|
6
6
|
min-height: var(--mat-option-label-text-line-height);
|
|
7
|
-
padding: 0
|
|
7
|
+
padding: 0 0.5rem !important;
|
|
8
8
|
|
|
9
9
|
.mat-pseudo-checkbox-full {
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: 0.5rem;
|
|
11
11
|
|
|
12
12
|
[dir='rtl'] & {
|
|
13
13
|
margin-right: 0;
|
|
14
|
-
margin-left:
|
|
14
|
+
margin-left: 0.5rem;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.mat-pseudo-checkbox {
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
20
|
+
width: 1rem;
|
|
21
|
+
height: 1rem;
|
|
22
22
|
border-width: 1px;
|
|
23
23
|
}
|
|
24
24
|
}
|
package/slider/slider.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.gui-slider {
|
|
2
2
|
.mat-mdc-slider {
|
|
3
|
-
--mdc-slider-handle-width:
|
|
4
|
-
--mdc-slider-handle-height:
|
|
5
|
-
--mdc-slider-inactive-track-height:
|
|
6
|
-
--mdc-slider-active-track-height:
|
|
3
|
+
--mdc-slider-handle-width: 0.75rem;
|
|
4
|
+
--mdc-slider-handle-height: 0.75rem;
|
|
5
|
+
--mdc-slider-inactive-track-height: 0.125rem;
|
|
6
|
+
--mdc-slider-active-track-height: 0.125rem;
|
|
7
7
|
|
|
8
8
|
flex: 3;
|
|
9
9
|
min-width: auto;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.mat-mdc-form-field {
|
|
39
|
-
margin-left:
|
|
39
|
+
margin-left: 0.375rem;
|
|
40
40
|
|
|
41
41
|
[dir='rtl'] & {
|
|
42
42
|
margin-left: 0;
|
|
43
|
-
margin-right:
|
|
43
|
+
margin-right: 0.375rem;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
input::-webkit-outer-spin-button,
|
package/switch/switch.scss
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
.gui-switch {
|
|
2
|
-
--mat-switch-unselected-handle-size: 14px;
|
|
3
|
-
--mat-switch-selected-handle-size: 14px;
|
|
4
|
-
--mat-switch-pressed-handle-size: 14px;
|
|
5
|
-
--mdc-switch-track-width: 28px;
|
|
6
|
-
--mdc-switch-handle-width: 14px;
|
|
7
|
-
--mdc-switch-state-layer-size: 24px;
|
|
8
|
-
|
|
9
2
|
.mat-mdc-slide-toggle {
|
|
3
|
+
--mat-switch-unselected-handle-size: 0.75rem;
|
|
4
|
+
--mat-switch-selected-handle-size: 0.75rem;
|
|
5
|
+
--mat-switch-pressed-handle-size: 0.75rem;
|
|
6
|
+
--mat-switch-selected-handle-horizontal-margin: 0;
|
|
7
|
+
--mat-switch-selected-pressed-handle-horizontal-margin: 0;
|
|
8
|
+
--mat-switch-unselected-handle-horizontal-margin: 0 0.125rem;
|
|
9
|
+
--mat-switch-unselected-pressed-handle-horizontal-margin: 0 0.125rem;
|
|
10
|
+
--mat-switch-track-outline-width: 1px;
|
|
11
|
+
--mdc-switch-track-width: 1.75rem;
|
|
12
|
+
--mdc-switch-track-height: 1rem;
|
|
13
|
+
--mdc-switch-track-shape: 0.5rem;
|
|
14
|
+
--mdc-switch-handle-width: 0.875rem;
|
|
15
|
+
--mdc-switch-state-layer-size: 1.5rem;
|
|
16
|
+
|
|
10
17
|
line-height: var(--mdc-switch-state-layer-size);
|
|
11
18
|
}
|
|
12
19
|
}
|