@acrodata/gui 0.5.0 → 1.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.
Files changed (47) hide show
  1. package/README.md +26 -14
  2. package/button-toggle/button-toggle.d.ts +1 -1
  3. package/button-toggle/button-toggle.scss +1 -0
  4. package/button-toggle/icon.d.ts +1 -1
  5. package/esm2022/button-toggle/button-toggle.mjs +23 -15
  6. package/esm2022/button-toggle/icon.mjs +16 -11
  7. package/esm2022/field-group/field-group.mjs +7 -8
  8. package/esm2022/field-label/field-label.mjs +6 -7
  9. package/esm2022/file-uploader/file-uploader-config.mjs +9 -6
  10. package/esm2022/file-uploader/file-uploader.mjs +27 -15
  11. package/esm2022/fill/fill.mjs +25 -14
  12. package/esm2022/gui-form.mjs +57 -29
  13. package/esm2022/gui-icons.mjs +40 -10
  14. package/esm2022/gui-module.mjs +35 -35
  15. package/esm2022/gui-utils.mjs +10 -8
  16. package/esm2022/image-select/image-select.mjs +23 -14
  17. package/esm2022/inline-group/inline-group.mjs +6 -7
  18. package/esm2022/input-number/input-number.mjs +21 -13
  19. package/esm2022/input-text/input-text.mjs +21 -13
  20. package/esm2022/public-api.mjs +2 -1
  21. package/esm2022/select/select.mjs +23 -14
  22. package/esm2022/slider/slider.mjs +25 -14
  23. package/esm2022/switch/switch.mjs +12 -13
  24. package/esm2022/textarea/textarea.mjs +21 -13
  25. package/fesm2022/acrodata-gui.mjs +592 -443
  26. package/fesm2022/acrodata-gui.mjs.map +1 -1
  27. package/field-group/field-group.d.ts +1 -1
  28. package/field-label/field-label.d.ts +1 -1
  29. package/file-uploader/file-uploader.d.ts +4 -3
  30. package/fill/fill.d.ts +1 -1
  31. package/gui-form.d.ts +3 -1
  32. package/gui-form.scss +1 -2
  33. package/gui-icons.d.ts +28 -1
  34. package/gui-module.d.ts +32 -35
  35. package/gui-utils.d.ts +2 -2
  36. package/image-select/image-select.d.ts +1 -1
  37. package/image-select/image-select.scss +2 -0
  38. package/inline-group/inline-group.d.ts +1 -1
  39. package/input-number/input-number.d.ts +1 -1
  40. package/input-text/input-text.d.ts +1 -1
  41. package/package.json +8 -8
  42. package/public-api.d.ts +1 -0
  43. package/select/select.d.ts +1 -1
  44. package/slider/slider.d.ts +1 -1
  45. package/switch/switch.d.ts +1 -1
  46. package/switch/switch.scss +7 -7
  47. package/textarea/textarea.d.ts +1 -1
@@ -10,5 +10,5 @@ export declare class GuiFieldGroup implements OnInit, DoCheck {
10
10
  ngOnInit(): void;
11
11
  ngDoCheck(): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFieldGroup, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiFieldGroup, "gui-field-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiFieldGroup, "gui-field-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], true, never>;
14
14
  }
@@ -8,5 +8,5 @@ export declare class GuiFieldLabel implements OnChanges {
8
8
  styless: boolean;
9
9
  ngOnChanges(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFieldLabel, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiFieldLabel, "gui-field-label", never, { "config": { "alias": "config"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiFieldLabel, "gui-field-label", never, { "config": { "alias": "config"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
12
12
  }
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { GuiFileUploaderConfig } from './file-uploader-config';
3
+ import { GuiIconsRegistry } from '../gui-icons';
4
4
  import { GuiControl } from '../interface';
5
+ import { GuiFileUploaderConfig } from './file-uploader-config';
5
6
  import * as i0 from "@angular/core";
6
7
  export type FileUploadType = 'image' | 'video' | 'audio' | '*';
7
8
  export interface FileUploadContent {
@@ -23,7 +24,7 @@ export declare class GuiFileUploader implements ControlValueAccessor, OnChanges
23
24
  file: FileUploadContent;
24
25
  private onChange;
25
26
  private onTouched;
26
- constructor(fileUploaderCfg: GuiFileUploaderConfig, cdr: ChangeDetectorRef);
27
+ constructor(fileUploaderCfg: GuiFileUploaderConfig, cdr: ChangeDetectorRef, iconsRegistry: GuiIconsRegistry);
27
28
  ngOnChanges(changes: SimpleChanges): void;
28
29
  writeValue(value: string): void;
29
30
  registerOnChange(fn: (value: string) => void): void;
@@ -35,5 +36,5 @@ export declare class GuiFileUploader implements ControlValueAccessor, OnChanges
35
36
  onBlur(): void;
36
37
  onClear(): void;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFileUploader, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiFileUploader, "gui-file-uploader", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "fileChange": "fileChange"; }, never, never, false, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiFileUploader, "gui-file-uploader", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "fileChange": "fileChange"; }, never, never, true, never>;
39
40
  }
package/fill/fill.d.ts CHANGED
@@ -16,5 +16,5 @@ export declare class GuiFill implements ControlValueAccessor {
16
16
  setDisabledState(isDisabled: boolean): void;
17
17
  onValueChange(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFill, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiFill, "gui-fill", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiFill, "gui-fill", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
20
20
  }
package/gui-form.d.ts CHANGED
@@ -2,6 +2,7 @@ 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';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class GuiForm implements OnChanges, OnInit, OnDestroy {
7
8
  /**
@@ -24,6 +25,7 @@ export declare class GuiForm implements OnChanges, OnInit, OnDestroy {
24
25
  formSubscription: Subscription;
25
26
  controlSubscriptions: Subscription[];
26
27
  uid: string;
28
+ constructor(iconsRegistry: GuiIconsRegistry);
27
29
  ngOnChanges(changes: SimpleChanges): void;
28
30
  ngOnInit(): void;
29
31
  ngOnDestroy(): void;
@@ -66,5 +68,5 @@ export declare class GuiForm implements OnChanges, OnInit, OnDestroy {
66
68
  */
67
69
  changeTabsMode(e: MouseEvent, tabs: GuiControl, mode?: GuiTabsMode): void;
68
70
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiForm, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiForm, "gui-form", never, { "form": { "alias": "form"; "required": false; }; "config": { "alias": "config"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, false, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiForm, "gui-form", never, { "form": { "alias": "form"; "required": false; }; "config": { "alias": "config"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, true, never>;
70
72
  }
package/gui-form.scss CHANGED
@@ -3,14 +3,13 @@
3
3
  --mat-expansion-container-text-size: 12px;
4
4
  --mat-expansion-header-collapsed-state-height: 32px;
5
5
  --mat-expansion-header-expanded-state-height: 32px;
6
+ --mat-expansion-container-shape: 0;
6
7
 
7
8
  position: relative;
8
9
  display: block;
9
10
  font-size: 12px;
10
11
 
11
12
  .mat-expansion-panel {
12
- --mat-expansion-container-shape: 0;
13
-
14
13
  box-shadow: none !important;
15
14
  }
16
15
 
package/gui-icons.d.ts CHANGED
@@ -1,3 +1,30 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { MatIconRegistry } from '@angular/material/icon';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ import * as i0 from "@angular/core";
1
5
  export declare const svgIcons: {
2
- [key: string]: string;
6
+ horizontal: string;
7
+ vertical: string;
8
+ add: string;
9
+ delete: string;
10
+ copy: string;
11
+ link: string;
12
+ clear: string;
13
+ file: string;
14
+ upload: string;
3
15
  };
16
+ export type GuiIconType = keyof typeof svgIcons;
17
+ export type GuiIconsConfig = {
18
+ [k in GuiIconType]: string;
19
+ };
20
+ /** Injection token that can be used to provide the default icons. */
21
+ export declare const GUI_ICONS_CONFIG: InjectionToken<GuiIconsConfig>;
22
+ export declare class GuiIconsRegistry {
23
+ private _iconRegistry;
24
+ private _sanitizer;
25
+ private _defaultIcons?;
26
+ constructor(_iconRegistry: MatIconRegistry, _sanitizer: DomSanitizer, _defaultIcons?: GuiIconsConfig | undefined);
27
+ add(...iconNames: GuiIconType[]): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<GuiIconsRegistry, [null, null, { optional: true; }]>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<GuiIconsRegistry>;
30
+ }
package/gui-module.d.ts CHANGED
@@ -1,40 +1,37 @@
1
- import { DomSanitizer } from '@angular/platform-browser';
2
- import { MatIconRegistry } from '@angular/material/icon';
3
1
  import * as i0 from "@angular/core";
4
- import * as i1 from "./gui-form";
5
- import * as i2 from "./input-text/input-text";
6
- import * as i3 from "./input-number/input-number";
7
- import * as i4 from "./select/select";
8
- import * as i5 from "./switch/switch";
9
- import * as i6 from "./slider/slider";
10
- import * as i7 from "./button-toggle/icon";
11
- import * as i8 from "./button-toggle/button-toggle";
12
- import * as i9 from "./fill/fill";
13
- import * as i10 from "./field-group/field-group";
14
- import * as i11 from "./field-label/field-label";
15
- import * as i12 from "./inline-group/inline-group";
16
- import * as i13 from "./image-select/image-select";
17
- import * as i14 from "./textarea/textarea";
18
- import * as i15 from "./file-uploader/file-uploader";
19
- import * as i16 from "./gui-utils";
20
- import * as i17 from "@angular/common";
21
- import * as i18 from "@angular/forms";
22
- import * as i19 from "@angular/material/form-field";
23
- import * as i20 from "@angular/material/input";
24
- import * as i21 from "@angular/material/select";
25
- import * as i22 from "@angular/material/slider";
26
- import * as i23 from "@angular/material/slide-toggle";
27
- import * as i24 from "@angular/material/button-toggle";
28
- import * as i25 from "@angular/material/icon";
29
- import * as i26 from "@angular/material/button";
30
- import * as i27 from "@angular/material/tabs";
31
- import * as i28 from "@angular/material/expansion";
32
- import * as i29 from "@angular/material/tooltip";
33
- import * as i30 from "@ng-matero/extensions/colorpicker";
34
- import * as i31 from "@ng-matero/extensions/select";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "@angular/material/form-field";
5
+ import * as i4 from "@angular/material/input";
6
+ import * as i5 from "@angular/material/select";
7
+ import * as i6 from "@angular/material/slider";
8
+ import * as i7 from "@angular/material/slide-toggle";
9
+ import * as i8 from "@angular/material/button-toggle";
10
+ import * as i9 from "@angular/material/icon";
11
+ import * as i10 from "@angular/material/button";
12
+ import * as i11 from "@angular/material/tabs";
13
+ import * as i12 from "@angular/material/expansion";
14
+ import * as i13 from "@angular/material/tooltip";
15
+ import * as i14 from "@ng-matero/extensions/colorpicker";
16
+ import * as i15 from "@ng-matero/extensions/select";
17
+ import * as i16 from "./gui-form";
18
+ import * as i17 from "./input-text/input-text";
19
+ import * as i18 from "./input-number/input-number";
20
+ import * as i19 from "./select/select";
21
+ import * as i20 from "./switch/switch";
22
+ import * as i21 from "./slider/slider";
23
+ import * as i22 from "./button-toggle/icon";
24
+ import * as i23 from "./button-toggle/button-toggle";
25
+ import * as i24 from "./fill/fill";
26
+ import * as i25 from "./field-group/field-group";
27
+ import * as i26 from "./field-label/field-label";
28
+ import * as i27 from "./inline-group/inline-group";
29
+ import * as i28 from "./image-select/image-select";
30
+ import * as i29 from "./textarea/textarea";
31
+ import * as i30 from "./file-uploader/file-uploader";
32
+ import * as i31 from "./gui-utils";
35
33
  export declare class GuiModule {
36
- constructor(iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
37
34
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiModule, never>;
38
- static ɵmod: i0.ɵɵNgModuleDeclaration<GuiModule, [typeof i1.GuiForm, typeof i2.GuiInputText, typeof i3.GuiInputNumber, typeof i4.GuiSelect, typeof i5.GuiSwitch, typeof i6.GuiSlider, typeof i7.GuiIcon, typeof i8.GuiButtonToggle, typeof i9.GuiFill, typeof i10.GuiFieldGroup, typeof i11.GuiFieldLabel, typeof i12.GuiInlineGroup, typeof i13.GuiImageSelect, typeof i14.GuiTextarea, typeof i15.GuiFileUploader, typeof i16.GuiEjsPipe, typeof i16.GuiFlexDirective], [typeof i17.CommonModule, typeof i18.ReactiveFormsModule, typeof i18.FormsModule, typeof i19.MatFormFieldModule, typeof i20.MatInputModule, typeof i21.MatSelectModule, typeof i22.MatSliderModule, typeof i23.MatSlideToggleModule, typeof i24.MatButtonToggleModule, typeof i25.MatIconModule, typeof i26.MatButtonModule, typeof i27.MatTabsModule, typeof i28.MatExpansionModule, typeof i29.MatTooltipModule, typeof i30.MtxColorpickerModule, typeof i31.MtxSelectModule], [typeof i1.GuiForm, typeof i2.GuiInputText, typeof i3.GuiInputNumber, typeof i4.GuiSelect, typeof i5.GuiSwitch, typeof i6.GuiSlider, typeof i7.GuiIcon, typeof i8.GuiButtonToggle, typeof i9.GuiFill, typeof i10.GuiFieldGroup, typeof i11.GuiFieldLabel, typeof i12.GuiInlineGroup, typeof i13.GuiImageSelect, typeof i14.GuiTextarea, typeof i15.GuiFileUploader, typeof i16.GuiEjsPipe, typeof i16.GuiFlexDirective]>;
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 i31.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.GuiEjsPipe, typeof i31.GuiFlexDirective]>;
39
36
  static ɵinj: i0.ɵɵInjectorDeclaration<GuiModule>;
40
37
  }
package/gui-utils.d.ts CHANGED
@@ -22,7 +22,7 @@ export declare function ejsTmpl(str: string, data: any): any;
22
22
  export declare class GuiEjsPipe implements PipeTransform {
23
23
  transform(value: string, data?: {}): string;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiEjsPipe, never>;
25
- static ɵpipe: i0.ɵɵPipeDeclaration<GuiEjsPipe, "ejs", false>;
25
+ static ɵpipe: i0.ɵɵPipeDeclaration<GuiEjsPipe, "ejs", true>;
26
26
  }
27
27
  export declare class GuiFlexDirective implements OnInit {
28
28
  private el;
@@ -30,7 +30,7 @@ export declare class GuiFlexDirective implements OnInit {
30
30
  constructor(el: ElementRef);
31
31
  ngOnInit(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiFlexDirective, never>;
33
- static ɵdir: i0.ɵɵDirectiveDeclaration<GuiFlexDirective, "[flex]", never, { "flex": { "alias": "flex"; "required": false; }; }, {}, never, never, false, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<GuiFlexDirective, "[flex]", never, { "flex": { "alias": "flex"; "required": false; }; }, {}, never, never, true, never>;
34
34
  }
35
35
  export declare function compareValues(a: GuiDefaultValue, b: GuiDefaultValue, operator: GuiOperator): boolean;
36
36
  export declare function getValueByPath(obj: Record<string, any>, path: string): Record<string, any> | undefined;
@@ -20,5 +20,5 @@ export declare class GuiImageSelect implements ControlValueAccessor, AfterViewIn
20
20
  setDisabledState(isDisabled: boolean): void;
21
21
  onValueChange(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiImageSelect, never>;
23
- 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, false, never>;
23
+ 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>;
24
24
  }
@@ -7,6 +7,8 @@
7
7
  }
8
8
 
9
9
  .gui-image-select {
10
+ --mat-form-field-container-vertical-padding: 0;
11
+
10
12
  .ng-select {
11
13
  padding: 0 8px;
12
14
  margin: 0 -8px;
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class GuiInlineGroup {
4
4
  config: Partial<GuiControl>;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiInlineGroup, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiInlineGroup, "gui-inline-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiInlineGroup, "gui-inline-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], true, never>;
7
7
  }
@@ -16,5 +16,5 @@ export declare class GuiInputNumber implements ControlValueAccessor {
16
16
  setDisabledState(isDisabled: boolean): void;
17
17
  onValueChange(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiInputNumber, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiInputNumber, "gui-input-number", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiInputNumber, "gui-input-number", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
20
20
  }
@@ -16,5 +16,5 @@ export declare class GuiInputText implements ControlValueAccessor {
16
16
  setDisabledState(isDisabled: boolean): void;
17
17
  onValueChange(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiInputText, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiInputText, "gui-input-text", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiInputText, "gui-input-text", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
20
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@acrodata/gui",
3
- "version": "0.5.0",
4
- "description": "A lightweight GUI library for Angular",
3
+ "version": "1.1.0",
4
+ "description": "JSON powered GUI for configurable panels.",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,12 +31,12 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@angular/cdk": ">=16.0.0",
35
- "@angular/common": ">=16.0.0",
36
- "@angular/core": ">=16.0.0",
37
- "@angular/forms": ">=16.0.0",
38
- "@angular/material": ">=16.0.0",
39
- "@ng-matero/extensions": ">=16.0.0"
34
+ "@angular/cdk": ">=17.0.0",
35
+ "@angular/common": ">=17.0.0",
36
+ "@angular/core": ">=17.0.0",
37
+ "@angular/forms": ">=17.0.0",
38
+ "@angular/material": ">=17.0.0",
39
+ "@ng-matero/extensions": ">=17.0.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -16,4 +16,5 @@ export * from './slider/slider';
16
16
  export * from './switch/switch';
17
17
  export * from './textarea/textarea';
18
18
  export * from './gui-utils';
19
+ export * from './gui-icons';
19
20
  export * from './interface';
@@ -16,5 +16,5 @@ export declare class GuiSelect implements ControlValueAccessor {
16
16
  setDisabledState(isDisabled: boolean): void;
17
17
  onValueChange(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiSelect, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiSelect, "gui-select", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiSelect, "gui-select", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
20
20
  }
@@ -21,5 +21,5 @@ export declare class GuiSlider implements ControlValueAccessor {
21
21
  onRangeInputChange(): void;
22
22
  setInputValue(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiSlider, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiSlider, "gui-slider", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiSlider, "gui-slider", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
25
25
  }
@@ -16,5 +16,5 @@ export declare class GuiSwitch implements ControlValueAccessor {
16
16
  setDisabledState(isDisabled: boolean): void;
17
17
  onValueChange(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiSwitch, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiSwitch, "gui-switch", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiSwitch, "gui-switch", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
20
20
  }
@@ -1,12 +1,12 @@
1
1
  .gui-switch {
2
- .mdc-switch {
3
- --mdc-switch-track-width: 28px;
4
- --mdc-switch-handle-width: 14px;
5
- --mdc-switch-handle-height: 14px;
6
- --mdc-switch-state-layer-size: 24px;
7
- }
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
8
 
9
9
  .mat-mdc-slide-toggle {
10
- line-height: 24px;
10
+ line-height: var(--mdc-switch-state-layer-size);
11
11
  }
12
12
  }
@@ -15,5 +15,5 @@ export declare class GuiTextarea {
15
15
  setDisabledState(isDisabled: boolean): void;
16
16
  onValueChange(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<GuiTextarea, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiTextarea, "gui-textarea", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<GuiTextarea, "gui-textarea", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
19
19
  }