@acrodata/gui 2.6.2 → 2.8.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.
Files changed (43) hide show
  1. package/button-toggle/button-toggle.d.ts +1 -3
  2. package/codearea/codearea-dialog.d.ts +1 -5
  3. package/codearea/codearea.d.ts +1 -5
  4. package/combobox/combobox.d.ts +2 -3
  5. package/esm2022/button-toggle/button-toggle.mjs +6 -6
  6. package/esm2022/codearea/codearea-dialog.mjs +16 -19
  7. package/esm2022/codearea/codearea.mjs +15 -14
  8. package/esm2022/combobox/combobox.mjs +6 -6
  9. package/esm2022/field-group/field-group.mjs +7 -7
  10. package/esm2022/file-uploader/file-uploader-config.mjs +7 -8
  11. package/esm2022/file-uploader/file-uploader.mjs +16 -13
  12. package/esm2022/fill/fill-picker.mjs +36 -31
  13. package/esm2022/fill/fill.mjs +8 -8
  14. package/esm2022/gui-form.mjs +9 -8
  15. package/esm2022/gui-icons.mjs +10 -15
  16. package/esm2022/gui-utils.mjs +6 -6
  17. package/esm2022/image-select/image-select.mjs +6 -6
  18. package/esm2022/input-number/input-number.mjs +6 -6
  19. package/esm2022/input-text/input-text.mjs +6 -6
  20. package/esm2022/select/select.mjs +6 -6
  21. package/esm2022/slider/slider.mjs +6 -6
  22. package/esm2022/switch/switch.mjs +6 -6
  23. package/esm2022/textarea/textarea.mjs +6 -6
  24. package/fesm2022/acrodata-gui.mjs +158 -159
  25. package/fesm2022/acrodata-gui.mjs.map +1 -1
  26. package/field-group/field-group.d.ts +1 -2
  27. package/file-uploader/file-uploader-config.d.ts +0 -1
  28. package/file-uploader/file-uploader.d.ts +3 -5
  29. package/fill/fill-picker.d.ts +9 -6
  30. package/fill/fill-picker.scss +1 -1
  31. package/fill/fill.d.ts +1 -2
  32. package/fill/fill.scss +1 -1
  33. package/gui-form.d.ts +1 -2
  34. package/gui-icons.d.ts +2 -5
  35. package/gui-utils.d.ts +1 -2
  36. package/image-select/image-select.d.ts +4 -5
  37. package/input-number/input-number.d.ts +1 -3
  38. package/input-text/input-text.d.ts +1 -3
  39. package/package.json +2 -2
  40. package/select/select.d.ts +1 -3
  41. package/slider/slider.d.ts +1 -3
  42. package/switch/switch.d.ts +1 -3
  43. package/textarea/textarea.d.ts +1 -3
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, DoCheck, KeyValueDiffers, OnInit } from '@angular/core';
1
+ import { DoCheck, OnInit } from '@angular/core';
2
2
  import { GuiControl } from '../interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class GuiFieldGroup implements OnInit, DoCheck {
@@ -6,7 +6,6 @@ export declare class GuiFieldGroup implements OnInit, DoCheck {
6
6
  private cdr;
7
7
  config: Partial<GuiControl>;
8
8
  private configDiffer?;
9
- constructor(differs: KeyValueDiffers, cdr: ChangeDetectorRef);
10
9
  ngOnInit(): void;
11
10
  ngDoCheck(): void;
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFieldGroup, never>;
@@ -8,7 +8,6 @@ export interface FileUploadResponseBody {
8
8
  }
9
9
  export declare class GuiFileUploaderConfig {
10
10
  protected http: HttpClient;
11
- constructor(http: HttpClient);
12
11
  /**
13
12
  * The file upload URL
14
13
  */
@@ -1,8 +1,6 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { GuiIconsRegistry } from '../gui-icons';
4
3
  import { GuiControl } from '../interface';
5
- import { GuiFileUploaderConfig } from './file-uploader-config';
6
4
  import * as i0 from "@angular/core";
7
5
  export type FileUploadType = 'image' | 'video' | 'audio' | '*';
8
6
  export interface FileUploadContent {
@@ -24,9 +22,9 @@ export declare class GuiFileUploader implements ControlValueAccessor, OnChanges
24
22
  fileUpload: FileUploadContent;
25
23
  private onChange;
26
24
  private onTouched;
27
- constructor(fileUploaderCfg: GuiFileUploaderConfig, cdr: ChangeDetectorRef, iconsRegistry: GuiIconsRegistry);
25
+ constructor();
28
26
  ngOnChanges(changes: SimpleChanges): void;
29
- writeValue(value: string): void;
27
+ writeValue(value: any): void;
30
28
  registerOnChange(fn: (value: string) => void): void;
31
29
  registerOnTouched(fn: () => void): void;
32
30
  setDisabledState(isDisabled: boolean): void;
@@ -1,7 +1,6 @@
1
- import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { ColorEvent } from 'ngx-color';
4
- import { GuiIconsRegistry } from '../gui-icons';
5
4
  import { GuiFillMode } from '../interface';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
@@ -12,12 +11,16 @@ export declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
12
11
  label: string;
13
12
  value: string;
14
13
  }[];
15
- selectedType: string;
14
+ selectedType: Exclude<GuiFillMode, 'all'>;
16
15
  colorFormat: 'hex' | 'rgb' | 'hsl' | 'hsv';
17
- value: string;
16
+ fillValue: {
17
+ solid: string;
18
+ gradient: string;
19
+ image: string;
20
+ };
18
21
  private onChange;
19
22
  private onTouched;
20
- constructor(cdr: ChangeDetectorRef, iconsRegistry: GuiIconsRegistry);
23
+ constructor();
21
24
  ngOnChanges(changes: SimpleChanges): void;
22
25
  writeValue(value: any): void;
23
26
  registerOnChange(fn: (value: string) => void): void;
@@ -26,9 +29,9 @@ export declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
26
29
  getColorFormat(): "rgb" | "hex" | "hsl" | "hsv";
27
30
  getTypeFromModel(value: string): void;
28
31
  getValueFromModel(value: string): void;
29
- setValueByType(): void;
30
32
  onTypeChange(): void;
31
33
  onColorChange(e: ColorEvent): void;
34
+ onSolidChange(): void;
32
35
  onGradientChange(): void;
33
36
  onImageChange(): void;
34
37
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFillPicker, never>;
@@ -1,7 +1,7 @@
1
1
  .gui-fill-picker {
2
2
  display: block;
3
3
  width: 15rem;
4
- border-radius: 0.25rem;
4
+ border-radius: 0.5rem;
5
5
  background-color: var(--mat-expansion-container-background-color);
6
6
  color: var(--mat-expansion-container-text-color);
7
7
  box-shadow:
package/fill/fill.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { GuiControl, GuiFillMode } from '../interface';
4
4
  import * as i0 from "@angular/core";
@@ -10,7 +10,6 @@ export declare class GuiFill implements ControlValueAccessor, OnChanges {
10
10
  value: string;
11
11
  private onChange;
12
12
  private onTouched;
13
- constructor(cdr: ChangeDetectorRef);
14
13
  ngOnChanges(changes: SimpleChanges): void;
15
14
  writeValue(value: any): void;
16
15
  registerOnChange(fn: (value: string) => void): void;
package/fill/fill.scss CHANGED
@@ -22,7 +22,7 @@
22
22
  border: 1px solid currentColor;
23
23
  border-top-left-radius: var(--mdc-filled-text-field-container-shape);
24
24
  border-bottom-left-radius: var(--mdc-filled-text-field-container-shape);
25
- opacity: 0.12;
25
+ opacity: 0.24;
26
26
  content: '';
27
27
 
28
28
  [dir='rtl'] & {
package/gui-form.d.ts CHANGED
@@ -2,7 +2,6 @@ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angu
2
2
  import { FormArray, FormGroup } from '@angular/forms';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { GuiControl, GuiFieldType, GuiFields, GuiTabsMode } from './interface';
5
- import { GuiIconsRegistry } from './gui-icons';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class GuiForm implements OnChanges, OnInit, OnDestroy {
8
7
  /**
@@ -25,7 +24,7 @@ export declare class GuiForm implements OnChanges, OnInit, OnDestroy {
25
24
  formSubscription: Subscription;
26
25
  controlSubscriptions: Subscription[];
27
26
  uid: string;
28
- constructor(iconsRegistry: GuiIconsRegistry);
27
+ constructor();
29
28
  ngOnChanges(changes: SimpleChanges): void;
30
29
  ngOnInit(): void;
31
30
  ngOnDestroy(): void;
package/gui-icons.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { MatIconRegistry } from '@angular/material/icon';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare const svgIcons: {
6
4
  horizontal: string;
@@ -25,9 +23,8 @@ export declare const GUI_ICONS_CONFIG: InjectionToken<GuiIconsConfig>;
25
23
  export declare class GuiIconsRegistry {
26
24
  private _iconRegistry;
27
25
  private _sanitizer;
28
- private _defaultIcons?;
29
- constructor(_iconRegistry: MatIconRegistry, _sanitizer: DomSanitizer, _defaultIcons?: GuiIconsConfig | undefined);
26
+ private _defaultIcons;
30
27
  add(...iconNames: GuiIconType[]): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiIconsRegistry, [null, null, { optional: true; }]>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<GuiIconsRegistry, never>;
32
29
  static ɵprov: i0.ɵɵInjectableDeclaration<GuiIconsRegistry>;
33
30
  }
package/gui-utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ElementRef, OnInit, PipeTransform } from '@angular/core';
1
+ import { OnInit, PipeTransform } from '@angular/core';
2
2
  import { GuiDefaultValue, GuiFields, GuiOperator } from './interface';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -27,7 +27,6 @@ export declare class GuiEjsPipe implements PipeTransform {
27
27
  export declare class GuiFlexDirective implements OnInit {
28
28
  private el;
29
29
  flex: number | undefined;
30
- constructor(el: ElementRef);
31
30
  ngOnInit(): void;
32
31
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFlexDirective, never>;
33
32
  static ɵdir: i0.ɵɵDirectiveDeclaration<GuiFlexDirective, "[flex]", never, { "flex": { "alias": "flex"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
1
+ import { AfterViewInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { MtxSelect } from '@ng-matero/extensions/select';
4
4
  import { GuiControl } from '../interface';
@@ -9,13 +9,12 @@ export declare class GuiImageSelect implements ControlValueAccessor, AfterViewIn
9
9
  config: Partial<GuiControl>;
10
10
  disabled: boolean;
11
11
  appendTo: string;
12
- value: unknown;
12
+ value: any;
13
13
  private onChange;
14
14
  private onTouched;
15
- constructor(cdr: ChangeDetectorRef);
16
15
  ngAfterViewInit(): void;
17
- writeValue(value: unknown): void;
18
- registerOnChange(fn: (value: unknown) => void): void;
16
+ writeValue(value: any): void;
17
+ registerOnChange(fn: (value: any) => void): void;
19
18
  registerOnTouched(fn: () => void): void;
20
19
  setDisabledState(isDisabled: boolean): void;
21
20
  onValueChange(): void;
@@ -1,4 +1,3 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
1
  import { ControlValueAccessor } from '@angular/forms';
3
2
  import { GuiControl } from '../interface';
4
3
  import * as i0 from "@angular/core";
@@ -9,8 +8,7 @@ export declare class GuiInputNumber implements ControlValueAccessor {
9
8
  value: number;
10
9
  private onChange;
11
10
  private onTouched;
12
- constructor(cdr: ChangeDetectorRef);
13
- writeValue(value: number): void;
11
+ writeValue(value: any): void;
14
12
  registerOnChange(fn: (value: number) => void): void;
15
13
  registerOnTouched(fn: () => void): void;
16
14
  setDisabledState(isDisabled: boolean): void;
@@ -1,4 +1,3 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
1
  import { ControlValueAccessor } from '@angular/forms';
3
2
  import { GuiControl } from '../interface';
4
3
  import * as i0 from "@angular/core";
@@ -9,8 +8,7 @@ export declare class GuiInputText implements ControlValueAccessor {
9
8
  value: string;
10
9
  private onChange;
11
10
  private onTouched;
12
- constructor(cdr: ChangeDetectorRef);
13
- writeValue(value: string): void;
11
+ writeValue(value: any): void;
14
12
  registerOnChange(fn: (value: string) => void): void;
15
13
  registerOnTouched(fn: () => void): void;
16
14
  setDisabledState(isDisabled: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrodata/gui",
3
- "version": "2.6.2",
3
+ "version": "2.8.0",
4
4
  "description": "JSON powered GUI for configurable panels.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@acrodata/code-editor": "^0.5.0",
45
- "@acrodata/gradient-picker": "^0.7.0",
45
+ "@acrodata/gradient-picker": "^0.8.0",
46
46
  "@acrodata/rnd-dialog": "^0.4.0",
47
47
  "tslib": "^2.3.0"
48
48
  },
@@ -1,4 +1,3 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
1
  import { ControlValueAccessor } from '@angular/forms';
3
2
  import { GuiBasicValue, GuiControl } from '../interface';
4
3
  import * as i0 from "@angular/core";
@@ -9,8 +8,7 @@ export declare class GuiSelect implements ControlValueAccessor {
9
8
  value: GuiBasicValue | GuiBasicValue[];
10
9
  private onChange;
11
10
  private onTouched;
12
- constructor(cdr: ChangeDetectorRef);
13
- writeValue(value: GuiBasicValue | GuiBasicValue[]): void;
11
+ writeValue(value: any): void;
14
12
  registerOnChange(fn: (value: GuiBasicValue | GuiBasicValue[]) => void): void;
15
13
  registerOnTouched(fn: () => void): void;
16
14
  setDisabledState(isDisabled: boolean): void;
@@ -1,4 +1,3 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
1
  import { ControlValueAccessor } from '@angular/forms';
3
2
  import { GuiControl } from '../interface';
4
3
  import * as i0 from "@angular/core";
@@ -11,8 +10,7 @@ export declare class GuiSlider implements ControlValueAccessor {
11
10
  maxValue: number;
12
11
  private onChange;
13
12
  private onTouched;
14
- constructor(cdr: ChangeDetectorRef);
15
- writeValue(value: number): void;
13
+ writeValue(value: any): void;
16
14
  registerOnChange(fn: (value: number | number[]) => void): void;
17
15
  registerOnTouched(fn: () => void): void;
18
16
  setDisabledState(isDisabled: boolean): void;
@@ -1,4 +1,3 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
1
  import { ControlValueAccessor } from '@angular/forms';
3
2
  import { GuiControl } from '../interface';
4
3
  import * as i0 from "@angular/core";
@@ -9,8 +8,7 @@ export declare class GuiSwitch implements ControlValueAccessor {
9
8
  value: boolean;
10
9
  private onChange;
11
10
  private onTouched;
12
- constructor(cdr: ChangeDetectorRef);
13
- writeValue(value: boolean): void;
11
+ writeValue(value: any): void;
14
12
  registerOnChange(fn: (value: boolean) => void): void;
15
13
  registerOnTouched(fn: () => void): void;
16
14
  setDisabledState(isDisabled: boolean): void;
@@ -1,4 +1,3 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
1
  import { GuiControl } from '../interface';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class GuiTextarea {
@@ -8,8 +7,7 @@ export declare class GuiTextarea {
8
7
  value: string;
9
8
  private onChange;
10
9
  private onTouched;
11
- constructor(cdr: ChangeDetectorRef);
12
- writeValue(value: string): void;
10
+ writeValue(value: any): void;
13
11
  registerOnChange(fn: (value: string) => void): void;
14
12
  registerOnTouched(fn: () => void): void;
15
13
  setDisabledState(isDisabled: boolean): void;