@acrodata/gui 3.0.1 → 3.2.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.
@@ -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-chrome {
14
- display: block;
15
-
16
- .chrome-picker {
17
- width: auto;
18
- background: none;
19
- box-shadow: none;
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 {
@@ -135,7 +46,7 @@
135
46
  gap: 0.25rem;
136
47
  border: none;
137
48
 
138
- .mat-button-toggle-appearance-standard + .mat-button-toggle-appearance-standard {
49
+ .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard {
139
50
  border: none;
140
51
  }
141
52
  }
@@ -36,7 +36,7 @@
36
36
  }
37
37
  }
38
38
 
39
- .ng-clear-wrapper .ng-clear {
39
+ .ng-clear {
40
40
  font-family: math;
41
41
  font-size: 12px;
42
42
  }
@@ -47,17 +47,15 @@
47
47
  }
48
48
 
49
49
  &.ng-dropdown-panel {
50
- .ng-dropdown-panel-items {
51
- .ng-option {
52
- display: flex;
53
- align-items: center;
54
- gap: 0.5rem;
55
- height: 4rem;
56
- padding: 0.5rem;
50
+ .ng-option {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 0.5rem;
54
+ height: 4rem;
55
+ padding: 0.5rem;
57
56
 
58
- img {
59
- @extend %img;
60
- }
57
+ img {
58
+ @extend %img;
61
59
  }
62
60
  }
63
61
  }
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnChanges, OnInit, OnDestroy, EventEmitter, SimpleChanges, DoCheck, AfterViewInit, ElementRef, PipeTransform, InjectionToken } from '@angular/core';
2
+ import { OnChanges, OnInit, OnDestroy, EventEmitter, SimpleChanges, DoCheck, ElementRef, PipeTransform, InjectionToken } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import * as i2 from '@angular/forms';
5
5
  import { FormGroup, FormArray, ControlValueAccessor } from '@angular/forms';
@@ -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(): "hex" | "rgb" | "hsl" | "hsv";
310
307
  getTypeFromModel(value: string): void;
311
308
  getValueFromModel(value: string): void;
312
309
  onTypeChange(): void;
313
- onColorChange(e: ColorEvent): void;
310
+ onColorChange(): void;
314
311
  onSolidChange(): void;
315
312
  onGradientChange(): void;
316
313
  onImageChange(): void;
@@ -345,7 +342,7 @@ declare class GuiInlineGroup {
345
342
  static ɵcmp: i0.ɵɵComponentDeclaration<GuiInlineGroup, "gui-inline-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], true, never>;
346
343
  }
347
344
 
348
- declare class GuiImageSelect implements ControlValueAccessor, AfterViewInit {
345
+ declare class GuiImageSelect implements ControlValueAccessor {
349
346
  private cdr;
350
347
  mtxSelect: MtxSelect;
351
348
  config: Partial<GuiControl>;
@@ -354,7 +351,6 @@ declare class GuiImageSelect implements ControlValueAccessor, AfterViewInit {
354
351
  value: any;
355
352
  private onChange;
356
353
  private onTouched;
357
- ngAfterViewInit(): void;
358
354
  writeValue(value: any): void;
359
355
  registerOnChange(fn: (value: any) => void): void;
360
356
  registerOnTouched(fn: () => void): void;
@@ -364,7 +360,7 @@ declare class GuiImageSelect implements ControlValueAccessor, AfterViewInit {
364
360
  static ɵcmp: i0.ɵɵComponentDeclaration<GuiImageSelect, "gui-image-select", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; }, {}, never, never, true, never>;
365
361
  }
366
362
 
367
- declare class GuiCombobox implements ControlValueAccessor, AfterViewInit {
363
+ declare class GuiCombobox implements ControlValueAccessor {
368
364
  private cdr;
369
365
  mtxSelect: MtxSelect;
370
366
  config: Partial<GuiControl>;
@@ -373,7 +369,6 @@ declare class GuiCombobox implements ControlValueAccessor, AfterViewInit {
373
369
  value: GuiBasicValue | GuiBasicValue[];
374
370
  private onChange;
375
371
  private onTouched;
376
- ngAfterViewInit(): void;
377
372
  writeValue(value: any): void;
378
373
  registerOnChange(fn: (value: GuiBasicValue | GuiBasicValue[]) => void): void;
379
374
  registerOnTouched(fn: () => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrodata/gui",
3
- "version": "3.0.1",
3
+ "version": "3.2.0",
4
4
  "description": "JSON powered GUI for configurable panels.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -36,11 +36,11 @@
36
36
  "@angular/core": ">=20.0.0",
37
37
  "@angular/forms": ">=20.0.0",
38
38
  "@angular/material": ">=20.0.0",
39
- "@ng-matero/extensions": ">=20.0.0"
39
+ "@ng-matero/extensions": ">=20.5.0"
40
40
  },
41
41
  "dependencies": {
42
- "@acrodata/code-editor": "^0.5.0",
43
- "@acrodata/gradient-picker": "^0.11.0",
42
+ "@acrodata/code-editor": "^0.6.0",
43
+ "@acrodata/gradient-picker": "^0.14.0",
44
44
  "@acrodata/rnd-dialog": "^0.4.0",
45
45
  "tslib": "^2.3.0"
46
46
  },