@acrodata/gui 3.4.0 → 3.5.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/fesm2022/acrodata-gui.mjs +44 -27
- package/fesm2022/acrodata-gui.mjs.map +1 -1
- package/fill/fill.scss +15 -3
- package/package.json +2 -2
- package/types/acrodata-gui.d.ts +13 -7
package/fill/fill.scss
CHANGED
|
@@ -3,9 +3,20 @@
|
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: 1.5rem;
|
|
5
5
|
height: 1.5rem;
|
|
6
|
+
padding: 0;
|
|
7
|
+
border: none;
|
|
6
8
|
background-color: #fff;
|
|
7
9
|
background-image: conic-gradient(transparent 25%, #ccc 25% 50%, transparent 50% 75%, #ccc 75%);
|
|
8
10
|
background-size: 0.5rem 0.5rem;
|
|
11
|
+
outline: none;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
|
|
14
|
+
&:hover,
|
|
15
|
+
&:focus {
|
|
16
|
+
.gui-color-block-bg::after {
|
|
17
|
+
opacity: 0.4;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
9
20
|
}
|
|
10
21
|
|
|
11
22
|
.gui-color-block-bg {
|
|
@@ -15,15 +26,16 @@
|
|
|
15
26
|
|
|
16
27
|
// use the pseudo-elements `::after` to simulate the border for color-block
|
|
17
28
|
&::after {
|
|
29
|
+
content: '';
|
|
18
30
|
display: inline-block;
|
|
19
31
|
width: 100%;
|
|
20
32
|
height: 100%;
|
|
21
33
|
box-sizing: border-box;
|
|
22
|
-
border: 1px solid
|
|
34
|
+
border: 1px solid #fff;
|
|
23
35
|
border-top-left-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));
|
|
24
36
|
border-bottom-left-radius: var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
mix-blend-mode: difference;
|
|
38
|
+
opacity: 0.2;
|
|
27
39
|
|
|
28
40
|
[dir='rtl'] & {
|
|
29
41
|
border-radius: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acrodata/gui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "JSON powered GUI for configurable panels.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@acrodata/code-editor": "^0.6.0",
|
|
43
|
-
"@acrodata/gradient-picker": "^0.
|
|
43
|
+
"@acrodata/gradient-picker": "^0.15.0",
|
|
44
44
|
"@acrodata/rnd-dialog": "^0.7.0",
|
|
45
45
|
"tslib": "^2.3.0"
|
|
46
46
|
},
|
package/types/acrodata-gui.d.ts
CHANGED
|
@@ -15,16 +15,16 @@ import * as i11 from '@angular/material/tabs';
|
|
|
15
15
|
import * as i12 from '@angular/material/expansion';
|
|
16
16
|
import * as i13 from '@angular/material/tooltip';
|
|
17
17
|
import * as i14 from '@ng-matero/extensions/colorpicker';
|
|
18
|
+
import { MtxColorpicker } from '@ng-matero/extensions/colorpicker';
|
|
18
19
|
import * as i15 from '@ng-matero/extensions/select';
|
|
19
20
|
import { MtxSelect } from '@ng-matero/extensions/select';
|
|
20
21
|
import * as rxjs from 'rxjs';
|
|
21
22
|
import { Subscription, Subject } from 'rxjs';
|
|
22
|
-
import * as _codemirror_state from '@codemirror/state';
|
|
23
|
-
import { Extension } from '@codemirror/state';
|
|
24
23
|
import * as _acrodata_code_editor from '@acrodata/code-editor';
|
|
25
24
|
import { Setup, Theme } from '@acrodata/code-editor';
|
|
26
25
|
import * as _codemirror_language from '@codemirror/language';
|
|
27
26
|
import { LanguageDescription } from '@codemirror/language';
|
|
27
|
+
import { Extension } from '@codemirror/state';
|
|
28
28
|
import { HttpClient } from '@angular/common/http';
|
|
29
29
|
|
|
30
30
|
type GuiFieldType = 'group' | 'inline' | 'tabs' | 'tab' | 'menu' | 'menuItem' | 'text' | 'number' | 'switch' | 'slider' | 'fill' | 'select' | 'buttonToggle' | 'imageSelect' | 'combobox' | 'textarea' | 'codearea' | 'hidden' | 'image' | 'video' | 'audio' | 'file';
|
|
@@ -266,6 +266,7 @@ declare class GuiButtonToggle implements ControlValueAccessor {
|
|
|
266
266
|
|
|
267
267
|
declare class GuiFill implements ControlValueAccessor, OnChanges {
|
|
268
268
|
private cdr;
|
|
269
|
+
colorpicker?: MtxColorpicker;
|
|
269
270
|
config: Partial<GuiControl>;
|
|
270
271
|
disabled: boolean;
|
|
271
272
|
type: GuiFillMode;
|
|
@@ -278,6 +279,7 @@ declare class GuiFill implements ControlValueAccessor, OnChanges {
|
|
|
278
279
|
registerOnTouched(fn: () => void): void;
|
|
279
280
|
setDisabledState(isDisabled: boolean): void;
|
|
280
281
|
onValueChange(): void;
|
|
282
|
+
openColorPicker(e: PointerEvent): void;
|
|
281
283
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiFill, never>;
|
|
282
284
|
static ɵcmp: i0.ɵɵComponentDeclaration<GuiFill, "gui-fill", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
283
285
|
}
|
|
@@ -286,6 +288,7 @@ declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
|
|
|
286
288
|
private cdr;
|
|
287
289
|
disabled: boolean;
|
|
288
290
|
type: GuiFillMode;
|
|
291
|
+
valueChangeComplete: EventEmitter<string>;
|
|
289
292
|
types: {
|
|
290
293
|
label: string;
|
|
291
294
|
value: string;
|
|
@@ -307,12 +310,13 @@ declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
|
|
|
307
310
|
getTypeFromModel(value: string): void;
|
|
308
311
|
getValueFromModel(value: string): void;
|
|
309
312
|
onTypeChange(): void;
|
|
310
|
-
onColorChange(): void;
|
|
311
313
|
onSolidChange(): void;
|
|
314
|
+
onSolidChangeComplete(): void;
|
|
312
315
|
onGradientChange(): void;
|
|
316
|
+
onGradientChangeComplete(): void;
|
|
313
317
|
onImageChange(): void;
|
|
314
318
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiFillPicker, never>;
|
|
315
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GuiFillPicker, "gui-fill-picker", never, { "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GuiFillPicker, "gui-fill-picker", never, { "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "valueChangeComplete": "valueChangeComplete"; }, never, never, true, never>;
|
|
316
320
|
}
|
|
317
321
|
|
|
318
322
|
declare class GuiFieldGroup implements OnInit, DoCheck {
|
|
@@ -404,6 +408,7 @@ interface GuiCodeareaDialogData {
|
|
|
404
408
|
readonly?: boolean;
|
|
405
409
|
language?: string;
|
|
406
410
|
title?: string;
|
|
411
|
+
extensions?: Extension[];
|
|
407
412
|
}
|
|
408
413
|
declare class GuiCodeareaDialog {
|
|
409
414
|
private dialogRef;
|
|
@@ -413,7 +418,6 @@ declare class GuiCodeareaDialog {
|
|
|
413
418
|
private codeareaCfg;
|
|
414
419
|
get languages(): _codemirror_language.LanguageDescription[];
|
|
415
420
|
get theme(): _acrodata_code_editor.Theme;
|
|
416
|
-
get extensions(): _codemirror_state.Extension[];
|
|
417
421
|
langDesc: _codemirror_language.LanguageDescription | undefined;
|
|
418
422
|
title: string;
|
|
419
423
|
lineWrapping: boolean;
|
|
@@ -439,10 +443,12 @@ declare class GuiCodearea implements ControlValueAccessor {
|
|
|
439
443
|
get language(): string;
|
|
440
444
|
set language(value: string);
|
|
441
445
|
private _language;
|
|
446
|
+
get extensions(): Extension[];
|
|
447
|
+
set extensions(value: Extension[]);
|
|
448
|
+
private _extensions;
|
|
442
449
|
get languages(): _codemirror_language.LanguageDescription[];
|
|
443
450
|
get theme(): _acrodata_code_editor.Theme;
|
|
444
451
|
get dialogData(): GuiCodeareaDialogData;
|
|
445
|
-
get extensions(): _codemirror_state.Extension[];
|
|
446
452
|
value: string;
|
|
447
453
|
private oldValue;
|
|
448
454
|
lineWrapping: boolean;
|
|
@@ -457,7 +463,7 @@ declare class GuiCodearea implements ControlValueAccessor {
|
|
|
457
463
|
onExpand(): void;
|
|
458
464
|
toggleLineWrapping(): void;
|
|
459
465
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiCodearea, never>;
|
|
460
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GuiCodearea, "gui-codearea", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "setup": { "alias": "setup"; "required": false; }; "height": { "alias": "height"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, {}, never, never, true, never>;
|
|
466
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GuiCodearea, "gui-codearea", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "setup": { "alias": "setup"; "required": false; }; "height": { "alias": "height"; "required": false; }; "language": { "alias": "language"; "required": false; }; "extensions": { "alias": "extensions"; "required": false; }; }, {}, never, never, true, never>;
|
|
461
467
|
}
|
|
462
468
|
|
|
463
469
|
declare class GuiCodeareaToolbar {
|