@acrodata/gui 3.0.0 → 3.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 +0 -1
- package/fesm2022/acrodata-gui.mjs +6 -26
- package/fesm2022/acrodata-gui.mjs.map +1 -1
- package/fill/fill-picker.scss +12 -97
- package/index.d.ts +1 -4
- package/package.json +3 -3
package/fill/fill-picker.scss
CHANGED
|
@@ -10,102 +10,13 @@
|
|
|
10
10
|
0 8px 16px 0 rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 0 1px 0 rgba(0, 0, 0, 0.12);
|
|
12
12
|
|
|
13
|
-
color-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
border-radius: 0;
|
|
21
|
-
font-family: inherit;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.saturation {
|
|
25
|
-
border-radius: 0.25rem;
|
|
26
|
-
box-shadow:
|
|
27
|
-
0 0 0 1px rgba(255, 255, 255, 0.12),
|
|
28
|
-
0 0 0 1px rgba(0, 0, 0, 0.12);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.chrome-body {
|
|
32
|
-
padding: 1rem 0 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.chrome-swatch {
|
|
36
|
-
box-shadow:
|
|
37
|
-
0 0 0 1px rgba(255, 255, 255, 0.12),
|
|
38
|
-
0 0 0 1px rgba(0, 0, 0, 0.12);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.chrome-active {
|
|
42
|
-
box-shadow: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.alpha-checkboard {
|
|
46
|
-
background-color: #fff;
|
|
47
|
-
border-radius: 2px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.alpha-gradient {
|
|
51
|
-
border-radius: 2px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.chrome-wrap {
|
|
55
|
-
gap: 0.75rem;
|
|
56
|
-
align-items: center;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.chrome-fields {
|
|
60
|
-
gap: 0.5rem;
|
|
61
|
-
margin: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.chrome-field {
|
|
65
|
-
padding: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.wrap {
|
|
69
|
-
width: 100%;
|
|
70
|
-
line-height: 1;
|
|
71
|
-
|
|
72
|
-
input {
|
|
73
|
-
background-color: transparent;
|
|
74
|
-
box-shadow: none !important;
|
|
75
|
-
color: var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface)) !important;
|
|
76
|
-
border: 1px solid var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline)) !important;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.chrome-toggle {
|
|
81
|
-
display: flex;
|
|
82
|
-
width: 1.5rem;
|
|
83
|
-
height: 1.5rem;
|
|
84
|
-
padding: 0.125rem;
|
|
85
|
-
border-radius: 2px;
|
|
86
|
-
|
|
87
|
-
&:hover {
|
|
88
|
-
background: rgba(0, 0, 0, 0.04);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.chrome-icon {
|
|
93
|
-
margin: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.chrome-toggle-svg {
|
|
97
|
-
width: 1.25rem;
|
|
98
|
-
height: 1.25rem;
|
|
99
|
-
border: none;
|
|
100
|
-
|
|
101
|
-
&:hover {
|
|
102
|
-
background: transparent;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
path {
|
|
106
|
-
fill: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
13
|
+
.color-picker {
|
|
14
|
+
--cp-container-width: auto;
|
|
15
|
+
--cp-container-padding: 0;
|
|
16
|
+
--cp-container-shape: 0;
|
|
17
|
+
--cp-container-elevation-shadow: none;
|
|
18
|
+
--cp-container-background-color: transparent;
|
|
19
|
+
--cp-container-text-color: var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));
|
|
109
20
|
}
|
|
110
21
|
|
|
111
22
|
.gradient-picker {
|
|
@@ -117,6 +28,10 @@
|
|
|
117
28
|
--gp-container-background-color: transparent;
|
|
118
29
|
--gp-container-text-color: var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));
|
|
119
30
|
--gp-input-background-color: var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant));
|
|
31
|
+
--gp-radio-button-selected-background-color: var(--mat-button-toggle-selected-state-background-color,
|
|
32
|
+
var(--mat-sys-secondary-container));
|
|
33
|
+
--gp-radio-button-selected-outline-color: var(--mat-button-toggle-divider-color,
|
|
34
|
+
var(--mat-sys-outline));
|
|
120
35
|
}
|
|
121
36
|
}
|
|
122
37
|
|
|
@@ -131,7 +46,7 @@
|
|
|
131
46
|
gap: 0.25rem;
|
|
132
47
|
border: none;
|
|
133
48
|
|
|
134
|
-
.mat-button-toggle-appearance-standard
|
|
49
|
+
.mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard {
|
|
135
50
|
border: none;
|
|
136
51
|
}
|
|
137
52
|
}
|
package/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import * as i15 from '@ng-matero/extensions/select';
|
|
|
19
19
|
import { MtxSelect } from '@ng-matero/extensions/select';
|
|
20
20
|
import * as rxjs from 'rxjs';
|
|
21
21
|
import { Subscription, Subject } from 'rxjs';
|
|
22
|
-
import { ColorEvent } from 'ngx-color';
|
|
23
22
|
import * as _codemirror_state from '@codemirror/state';
|
|
24
23
|
import { Extension } from '@codemirror/state';
|
|
25
24
|
import * as _acrodata_code_editor from '@acrodata/code-editor';
|
|
@@ -292,7 +291,6 @@ declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
|
|
|
292
291
|
value: string;
|
|
293
292
|
}[];
|
|
294
293
|
selectedType: Exclude<GuiFillMode, 'all'>;
|
|
295
|
-
colorFormat: 'hex' | 'rgb' | 'hsl' | 'hsv';
|
|
296
294
|
fillValue: {
|
|
297
295
|
solid: string;
|
|
298
296
|
gradient: string;
|
|
@@ -306,11 +304,10 @@ declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
|
|
|
306
304
|
registerOnChange(fn: (value: string) => void): void;
|
|
307
305
|
registerOnTouched(fn: () => void): void;
|
|
308
306
|
setDisabledState(isDisabled: boolean): void;
|
|
309
|
-
getColorFormat(): "hsl" | "rgb" | "hex" | "hsv";
|
|
310
307
|
getTypeFromModel(value: string): void;
|
|
311
308
|
getValueFromModel(value: string): void;
|
|
312
309
|
onTypeChange(): void;
|
|
313
|
-
onColorChange(
|
|
310
|
+
onColorChange(): void;
|
|
314
311
|
onSolidChange(): void;
|
|
315
312
|
onGradientChange(): void;
|
|
316
313
|
onImageChange(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acrodata/gui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "JSON powered GUI for configurable panels.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@ng-matero/extensions": ">=20.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@acrodata/code-editor": "^0.
|
|
43
|
-
"@acrodata/gradient-picker": "^0.
|
|
42
|
+
"@acrodata/code-editor": "^0.6.0",
|
|
43
|
+
"@acrodata/gradient-picker": "^0.12.0",
|
|
44
44
|
"@acrodata/rnd-dialog": "^0.4.0",
|
|
45
45
|
"tslib": "^2.3.0"
|
|
46
46
|
},
|