@acrodata/gui 2.9.0 → 3.0.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 (44) hide show
  1. package/README.md +4 -3
  2. package/button-toggle/button-toggle.scss +6 -6
  3. package/button-toggle/icon.scss +3 -3
  4. package/codearea/codearea-dialog.scss +9 -9
  5. package/codearea/codearea.scss +2 -2
  6. package/fesm2022/acrodata-gui.mjs +99 -99
  7. package/fesm2022/acrodata-gui.mjs.map +1 -1
  8. package/field-group/field-group.scss +1 -1
  9. package/file-uploader/file-uploader.scss +1 -1
  10. package/fill/fill-picker.scss +7 -7
  11. package/fill/fill.scss +4 -4
  12. package/gui-form.scss +8 -8
  13. package/icon-button-wrapper/icon-button-wrapper.scss +2 -2
  14. package/index.d.ts +606 -3
  15. package/package.json +7 -7
  16. package/slider/slider.scss +10 -10
  17. package/switch/switch.scss +14 -14
  18. package/button-toggle/button-toggle.d.ts +0 -18
  19. package/button-toggle/icon.d.ts +0 -7
  20. package/codearea/codearea-config.d.ts +0 -14
  21. package/codearea/codearea-dialog.d.ts +0 -27
  22. package/codearea/codearea.d.ts +0 -37
  23. package/combobox/combobox.d.ts +0 -27
  24. package/field-group/field-group.d.ts +0 -13
  25. package/field-label/field-label.d.ts +0 -12
  26. package/file-uploader/file-uploader-config.d.ts +0 -25
  27. package/file-uploader/file-uploader.d.ts +0 -38
  28. package/fill/fill-picker.d.ts +0 -39
  29. package/fill/fill.d.ts +0 -21
  30. package/gui-form.d.ts +0 -71
  31. package/gui-icons.d.ts +0 -30
  32. package/gui-module.d.ts +0 -42
  33. package/gui-utils.d.ts +0 -36
  34. package/icon-button-wrapper/icon-button-wrapper.d.ts +0 -5
  35. package/image-select/image-select.d.ts +0 -23
  36. package/inline-group/inline-group.d.ts +0 -7
  37. package/input-number/input-number.d.ts +0 -18
  38. package/input-text/input-text.d.ts +0 -18
  39. package/interface.d.ts +0 -61
  40. package/public-api.d.ts +0 -26
  41. package/select/select.d.ts +0 -18
  42. package/slider/slider.d.ts +0 -23
  43. package/switch/switch.d.ts +0 -18
  44. package/textarea/textarea.d.ts +0 -17
package/interface.d.ts DELETED
@@ -1,61 +0,0 @@
1
- export type GuiFieldType = 'group' | 'inline' | 'tabs' | 'tab' | 'menu' | 'menuItem' | 'text' | 'number' | 'switch' | 'slider' | 'fill' | 'select' | 'buttonToggle' | 'imageSelect' | 'combobox' | 'textarea' | 'codearea' | 'hidden' | 'image' | 'video' | 'audio' | 'file';
2
- export type GuiFillMode = 'all' | 'solid' | 'gradient' | 'image';
3
- export type GuiSliderMode = 'normal' | 'range';
4
- export type GuiTabsMode = 'normal' | 'list';
5
- export type GuiBasicValue = boolean | number | string;
6
- export type GuiDefaultValue = boolean | number | string | any[] | Record<string, any> | null;
7
- export type GuiOperator = '$eq' | '$ne' | '$gt' | '$lt' | '$gte' | '$lte' | '$in' | '$nin';
8
- export type GuiCondition = [string, GuiOperator, GuiDefaultValue];
9
- export interface GuiFieldShowIf {
10
- conditions: GuiCondition[];
11
- logicalType?: '$and' | '$or';
12
- }
13
- export interface GuiField {
14
- type: GuiFieldType;
15
- name: string;
16
- default?: GuiDefaultValue;
17
- description?: string;
18
- placeholder?: string;
19
- disabled?: boolean;
20
- col?: number;
21
- showIf?: GuiFieldShowIf;
22
- show?: boolean;
23
- children?: GuiFields | GuiField[];
24
- expanded?: boolean;
25
- min?: number;
26
- max?: number;
27
- step?: number;
28
- prefix?: string;
29
- suffix?: string;
30
- options?: GuiFieldOption[];
31
- useFont?: boolean;
32
- multiple?: boolean;
33
- useIcon?: boolean;
34
- template?: Partial<GuiField>;
35
- addable?: boolean;
36
- mode?: GuiFillMode | GuiSliderMode | GuiTabsMode;
37
- rows?: number;
38
- accept?: string;
39
- height?: string | number;
40
- language?: string;
41
- }
42
- export type GuiFields = Record<string, GuiField>;
43
- export interface GuiFieldOption {
44
- label: string;
45
- value: string | number | boolean;
46
- disabled?: boolean;
47
- src?: string;
48
- col?: number;
49
- }
50
- export interface GuiControl extends GuiField {
51
- _type: 'control' | 'group' | 'array';
52
- key: string;
53
- parentType: GuiFieldType;
54
- model?: any;
55
- default?: any;
56
- index?: number;
57
- children?: GuiControl[];
58
- template?: Partial<GuiControl>;
59
- selectedIndex?: number;
60
- }
61
- export type GuiControls = Record<string, GuiControl>;
package/public-api.d.ts DELETED
@@ -1,26 +0,0 @@
1
- export * from './gui-module';
2
- export * from './gui-form';
3
- export * from './button-toggle/button-toggle';
4
- export * from './button-toggle/icon';
5
- export * from './codearea/codearea';
6
- export * from './codearea/codearea-dialog';
7
- export * from './codearea/codearea-config';
8
- export * from './combobox/combobox';
9
- export * from './field-group/field-group';
10
- export * from './field-label/field-label';
11
- export * from './file-uploader/file-uploader';
12
- export * from './file-uploader/file-uploader-config';
13
- export * from './fill/fill';
14
- export * from './fill/fill-picker';
15
- export * from './icon-button-wrapper/icon-button-wrapper';
16
- export * from './image-select/image-select';
17
- export * from './inline-group/inline-group';
18
- export * from './input-number/input-number';
19
- export * from './input-text/input-text';
20
- export * from './select/select';
21
- export * from './slider/slider';
22
- export * from './switch/switch';
23
- export * from './textarea/textarea';
24
- export * from './gui-utils';
25
- export * from './gui-icons';
26
- export * from './interface';
@@ -1,18 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { GuiBasicValue, GuiControl } from '../interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GuiSelect implements ControlValueAccessor {
5
- private cdr;
6
- config: Partial<GuiControl>;
7
- disabled: boolean;
8
- value: GuiBasicValue | GuiBasicValue[];
9
- private onChange;
10
- private onTouched;
11
- writeValue(value: any): void;
12
- registerOnChange(fn: (value: GuiBasicValue | GuiBasicValue[]) => void): void;
13
- registerOnTouched(fn: () => void): void;
14
- setDisabledState(isDisabled: boolean): void;
15
- onValueChange(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiSelect, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiSelect, "gui-select", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1,23 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { GuiControl } from '../interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GuiSlider implements ControlValueAccessor {
5
- private cdr;
6
- config: Partial<GuiControl>;
7
- disabled: boolean;
8
- value: number | number[];
9
- minValue: number;
10
- maxValue: number;
11
- private onChange;
12
- private onTouched;
13
- writeValue(value: any): void;
14
- registerOnChange(fn: (value: number | number[]) => void): void;
15
- registerOnTouched(fn: () => void): void;
16
- setDisabledState(isDisabled: boolean): void;
17
- onValueChange(): void;
18
- onRangeSliderChange(): void;
19
- onRangeInputChange(): void;
20
- setInputValue(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiSlider, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiSlider, "gui-slider", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
23
- }
@@ -1,18 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { GuiControl } from '../interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GuiSwitch implements ControlValueAccessor {
5
- private cdr;
6
- config: Partial<GuiControl>;
7
- disabled: boolean;
8
- value: boolean;
9
- private onChange;
10
- private onTouched;
11
- writeValue(value: any): void;
12
- registerOnChange(fn: (value: boolean) => void): void;
13
- registerOnTouched(fn: () => void): void;
14
- setDisabledState(isDisabled: boolean): void;
15
- onValueChange(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiSwitch, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiSwitch, "gui-switch", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1,17 +0,0 @@
1
- import { GuiControl } from '../interface';
2
- import * as i0 from "@angular/core";
3
- export declare class GuiTextarea {
4
- private cdr;
5
- config: Partial<GuiControl>;
6
- disabled: boolean;
7
- value: string;
8
- private onChange;
9
- private onTouched;
10
- writeValue(value: any): void;
11
- registerOnChange(fn: (value: string) => void): void;
12
- registerOnTouched(fn: () => void): void;
13
- setDisabledState(isDisabled: boolean): void;
14
- onValueChange(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiTextarea, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiTextarea, "gui-textarea", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
17
- }