@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
@@ -1,19 +1,19 @@
1
1
  .gui-switch {
2
2
  .mat-mdc-slide-toggle {
3
- --mat-switch-unselected-handle-size: 0.5rem;
4
- --mat-switch-selected-handle-size: 0.75rem;
5
- --mat-switch-pressed-handle-size: 0.75rem;
6
- --mat-switch-selected-handle-horizontal-margin: 0;
7
- --mat-switch-selected-pressed-handle-horizontal-margin: 0;
8
- --mat-switch-unselected-handle-horizontal-margin: 0 0.25rem;
9
- --mat-switch-unselected-pressed-handle-horizontal-margin: 0 0.125rem;
10
- --mat-switch-track-outline-width: 1px;
11
- --mdc-switch-track-width: 1.75rem;
12
- --mdc-switch-track-height: 1rem;
13
- --mdc-switch-track-shape: 0.5rem;
14
- --mdc-switch-handle-width: 0.875rem;
15
- --mdc-switch-state-layer-size: 1.5rem;
3
+ --mat-slide-toggle-unselected-handle-size: 0.5rem;
4
+ --mat-slide-toggle-selected-handle-size: 0.75rem;
5
+ --mat-slide-toggle-pressed-handle-size: 0.75rem;
6
+ --mat-slide-toggle-selected-handle-horizontal-margin: 0;
7
+ --mat-slide-toggle-selected-pressed-handle-horizontal-margin: 0;
8
+ --mat-slide-toggle-unselected-handle-horizontal-margin: 0 0.25rem;
9
+ --mat-slide-toggle-unselected-pressed-handle-horizontal-margin: 0 0.125rem;
10
+ --mat-slide-toggle-track-outline-width: 1px;
11
+ --mat-slide-toggle-track-width: 1.75rem;
12
+ --mat-slide-toggle-track-height: 1rem;
13
+ --mat-slide-toggle-track-shape: 0.5rem;
14
+ --mat-slide-toggle-handle-width: 0.875rem;
15
+ --mat-slide-toggle-state-layer-size: 1.5rem;
16
16
 
17
- line-height: var(--mdc-switch-state-layer-size);
17
+ line-height: var(--mat-slide-toggle-state-layer-size);
18
18
  }
19
19
  }
@@ -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 GuiButtonToggle 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<GuiButtonToggle, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiButtonToggle, "gui-button-toggle", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class GuiIcon {
3
- src: string;
4
- get isUrl(): boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiIcon, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiIcon, "gui-icon", never, { "src": { "alias": "src"; "required": false; }; }, {}, never, never, true, never>;
7
- }
@@ -1,14 +0,0 @@
1
- import { Theme } from '@acrodata/code-editor';
2
- import { LanguageDescription } from '@codemirror/language';
3
- import { Extension } from '@codemirror/state';
4
- import { Subject } from 'rxjs';
5
- import { GuiCodeareaDialogData } from './codearea-dialog';
6
- import * as i0 from "@angular/core";
7
- export declare class GuiCodeareaConfig {
8
- readonly changes: Subject<void>;
9
- theme: Theme;
10
- languages: LanguageDescription[];
11
- extensions: Extension[] | ((data: GuiCodeareaDialogData) => Extension[]);
12
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiCodeareaConfig, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<GuiCodeareaConfig>;
14
- }
@@ -1,27 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export interface GuiCodeareaDialogData {
3
- value: string;
4
- disabled?: boolean;
5
- readonly?: boolean;
6
- language?: string;
7
- title?: string;
8
- }
9
- export declare class GuiCodeareaDialog {
10
- private dialogRef;
11
- data: GuiCodeareaDialogData;
12
- private cdr;
13
- private destroyRef;
14
- private codeareaCfg;
15
- get languages(): import("@codemirror/language").LanguageDescription[];
16
- get theme(): import("@acrodata/code-editor").Theme;
17
- get extensions(): import("@codemirror/state").Extension[];
18
- langDesc: import("@codemirror/language").LanguageDescription | undefined;
19
- title: string;
20
- lineWrapping: boolean;
21
- constructor();
22
- toggleLineWrapping(): void;
23
- save(): void;
24
- close(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiCodeareaDialog, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiCodeareaDialog, "gui-codearea-dialog", never, {}, {}, never, never, true, never>;
27
- }
@@ -1,37 +0,0 @@
1
- import { Setup } from '@acrodata/code-editor';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { GuiControl } from '../interface';
4
- import { GuiCodeareaDialogData } from './codearea-dialog';
5
- import * as i0 from "@angular/core";
6
- export declare class GuiCodearea implements ControlValueAccessor {
7
- private rndDialog;
8
- private cdr;
9
- private destroyRef;
10
- private codeareaCfg;
11
- config: Partial<GuiControl>;
12
- disabled: boolean;
13
- setup: Setup;
14
- get height(): string | number;
15
- set height(value: string | number);
16
- private _height;
17
- get language(): string;
18
- set language(value: string);
19
- private _language;
20
- get languages(): import("@codemirror/language").LanguageDescription[];
21
- get theme(): import("@acrodata/code-editor").Theme;
22
- get dialogData(): GuiCodeareaDialogData;
23
- get extensions(): import("@codemirror/state").Extension[];
24
- value: string;
25
- private oldValue;
26
- private onChange;
27
- private onTouched;
28
- constructor();
29
- writeValue(value: any): void;
30
- registerOnChange(fn: (value: string) => void): void;
31
- registerOnTouched(fn: () => void): void;
32
- setDisabledState(isDisabled: boolean): void;
33
- onValueChange(): void;
34
- onExpand(): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiCodearea, never>;
36
- 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>;
37
- }
@@ -1,27 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { MtxSelect } from '@ng-matero/extensions/select';
4
- import { GuiBasicValue, GuiControl } from '../interface';
5
- import * as i0 from "@angular/core";
6
- export declare class GuiCombobox implements ControlValueAccessor, AfterViewInit {
7
- private cdr;
8
- mtxSelect: MtxSelect;
9
- config: Partial<GuiControl>;
10
- disabled: boolean;
11
- appendTo: string;
12
- value: GuiBasicValue | GuiBasicValue[];
13
- private onChange;
14
- private onTouched;
15
- ngAfterViewInit(): void;
16
- writeValue(value: any): void;
17
- registerOnChange(fn: (value: GuiBasicValue | GuiBasicValue[]) => void): void;
18
- registerOnTouched(fn: () => void): void;
19
- setDisabledState(isDisabled: boolean): void;
20
- onValueChange(): void;
21
- addTagFn(label: string): {
22
- label: string;
23
- value: string;
24
- };
25
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiCombobox, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiCombobox, "gui-combobox", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; }, {}, never, never, true, never>;
27
- }
@@ -1,13 +0,0 @@
1
- import { DoCheck, OnInit } from '@angular/core';
2
- import { GuiControl } from '../interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GuiFieldGroup implements OnInit, DoCheck {
5
- private differs;
6
- private cdr;
7
- config: Partial<GuiControl>;
8
- private configDiffer?;
9
- ngOnInit(): void;
10
- ngDoCheck(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiFieldGroup, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiFieldGroup, "gui-field-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], true, never>;
13
- }
@@ -1,12 +0,0 @@
1
- import { OnChanges } from '@angular/core';
2
- import { GuiControl } from '../interface';
3
- import * as i0 from "@angular/core";
4
- export declare class GuiFieldLabel implements OnChanges {
5
- config: Partial<GuiControl>;
6
- index?: number;
7
- title: string;
8
- styless: boolean;
9
- ngOnChanges(): void;
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, true, never>;
12
- }
@@ -1,25 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { GuiControl } from '../interface';
3
- import * as i0 from "@angular/core";
4
- export interface FileUploadResponseBody {
5
- bytes: number;
6
- mime: string;
7
- url: string;
8
- }
9
- export declare class GuiFileUploaderConfig {
10
- protected http: HttpClient;
11
- /**
12
- * The file upload URL
13
- */
14
- url: string;
15
- /**
16
- * The File upload API
17
- *
18
- * @param formData The FormData with file binary
19
- * @param config The custom upload config that passed from component input
20
- * @returns The uploaded file url stream
21
- */
22
- upload(formData: FormData, config: Partial<GuiControl>): import("rxjs").Observable<string | null>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiFileUploaderConfig, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<GuiFileUploaderConfig>;
25
- }
@@ -1,38 +0,0 @@
1
- import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { GuiControl } from '../interface';
4
- import * as i0 from "@angular/core";
5
- export type FileUploadType = 'image' | 'video' | 'audio' | '*';
6
- export interface FileUploadContent {
7
- data: File;
8
- progress: number;
9
- inProgress: boolean;
10
- }
11
- export declare class GuiFileUploader implements ControlValueAccessor, OnChanges {
12
- private fileUploaderCfg;
13
- private cdr;
14
- fileInput: ElementRef<HTMLInputElement>;
15
- config: Partial<GuiControl>;
16
- disabled: boolean;
17
- type: FileUploadType;
18
- name: string;
19
- accept: string;
20
- fileChange: EventEmitter<string>;
21
- url: string;
22
- fileUpload: FileUploadContent;
23
- private onChange;
24
- private onTouched;
25
- constructor();
26
- ngOnChanges(changes: SimpleChanges): void;
27
- writeValue(value: any): void;
28
- registerOnChange(fn: (value: string) => void): void;
29
- registerOnTouched(fn: () => void): void;
30
- setDisabledState(isDisabled: boolean): void;
31
- upload(fileUpload: FileUploadContent): void;
32
- onUrlChange(e: Event): void;
33
- onFileChange(e: Event): void;
34
- onBlur(): void;
35
- onClear(): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiFileUploader, never>;
37
- 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>;
38
- }
@@ -1,39 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { ColorEvent } from 'ngx-color';
4
- import { GuiFillMode } from '../interface';
5
- import * as i0 from "@angular/core";
6
- export declare class GuiFillPicker implements ControlValueAccessor, OnChanges {
7
- private cdr;
8
- disabled: boolean;
9
- type: GuiFillMode;
10
- types: {
11
- label: string;
12
- value: string;
13
- }[];
14
- selectedType: Exclude<GuiFillMode, 'all'>;
15
- colorFormat: 'hex' | 'rgb' | 'hsl' | 'hsv';
16
- fillValue: {
17
- solid: string;
18
- gradient: string;
19
- image: string;
20
- };
21
- private onChange;
22
- private onTouched;
23
- constructor();
24
- ngOnChanges(changes: SimpleChanges): void;
25
- writeValue(value: any): void;
26
- registerOnChange(fn: (value: string) => void): void;
27
- registerOnTouched(fn: () => void): void;
28
- setDisabledState(isDisabled: boolean): void;
29
- getColorFormat(): "hex" | "rgb" | "hsl" | "hsv";
30
- getTypeFromModel(value: string): void;
31
- getValueFromModel(value: string): void;
32
- onTypeChange(): void;
33
- onColorChange(e: ColorEvent): void;
34
- onSolidChange(): void;
35
- onGradientChange(): void;
36
- onImageChange(): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiFillPicker, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiFillPicker, "gui-fill-picker", never, { "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
39
- }
package/fill/fill.d.ts DELETED
@@ -1,21 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { GuiControl, GuiFillMode } from '../interface';
4
- import * as i0 from "@angular/core";
5
- export declare class GuiFill implements ControlValueAccessor, OnChanges {
6
- private cdr;
7
- config: Partial<GuiControl>;
8
- disabled: boolean;
9
- type: GuiFillMode;
10
- value: string;
11
- private onChange;
12
- private onTouched;
13
- ngOnChanges(changes: SimpleChanges): void;
14
- writeValue(value: any): void;
15
- registerOnChange(fn: (value: string) => void): void;
16
- registerOnTouched(fn: () => void): void;
17
- setDisabledState(isDisabled: boolean): void;
18
- onValueChange(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiFill, never>;
20
- 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>;
21
- }
package/gui-form.d.ts DELETED
@@ -1,71 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { FormArray, FormGroup } from '@angular/forms';
3
- import { Subscription } from 'rxjs';
4
- import { GuiControl, GuiFieldType, GuiFields, GuiTabsMode } from './interface';
5
- import * as i0 from "@angular/core";
6
- export declare class GuiForm implements OnChanges, OnInit, OnDestroy {
7
- /**
8
- * The form instance which allow to track model value and validation status.
9
- */
10
- form: FormGroup<any>;
11
- /**
12
- * The field configurations for building the form.
13
- */
14
- config: GuiFields;
15
- /**
16
- * The model to be represented by the form.
17
- */
18
- model: Record<string, any>;
19
- /**
20
- * Fired on model value change
21
- */
22
- modelChange: EventEmitter<any>;
23
- formFields: GuiControl[];
24
- formSubscription: Subscription;
25
- controlSubscriptions: Subscription[];
26
- uid: string;
27
- constructor();
28
- ngOnChanges(changes: SimpleChanges): void;
29
- ngOnInit(): void;
30
- ngOnDestroy(): void;
31
- /**
32
- * Convert the object config to array config and register into the reactive form.
33
- *
34
- * @param form The reactive form instance
35
- * @param config The config of the form fields
36
- * @param model The value of the form control
37
- * @param defaultValue The default value of the form field
38
- * @param parentType The type of the form field parent
39
- * @returns
40
- */
41
- getFormFieldArray(form: FormGroup | FormArray, config?: GuiFields | GuiControl[], model?: Record<string, any>, defaultValue?: any, parentType?: GuiFieldType): GuiControl[];
42
- /**
43
- * Add a tab item.
44
- *
45
- * @param e The mouse event
46
- * @param formArray The reactive form instance
47
- * @param tabs The config of the tabs field
48
- * @param copy Whether to copy the current tab
49
- * @param index The index of the tabs array
50
- */
51
- addTab(e: MouseEvent, formArray: FormArray, tabs: GuiControl, copy?: boolean, index?: number): void;
52
- /**
53
- * Remove a tab item.
54
- *
55
- * @param e The mouse event
56
- * @param formArray The reactive form instance
57
- * @param tabs The config of the tabs field
58
- * @param index The index of the tabs array
59
- */
60
- removeTab(e: MouseEvent, formArray: FormArray, tabs: GuiControl, index?: number): void;
61
- /**
62
- * Change the display mode of tabs.
63
- *
64
- * @param e The mouse event
65
- * @param tabs The config of the tabs field
66
- * @param mode The display mode of tabs
67
- */
68
- changeTabsMode(e: MouseEvent, tabs: GuiControl, mode?: GuiTabsMode): void;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiForm, never>;
70
- 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>;
71
- }
package/gui-icons.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare const svgIcons: {
4
- horizontal: string;
5
- vertical: string;
6
- add: string;
7
- delete: string;
8
- copy: string;
9
- link: string;
10
- clear: string;
11
- file: string;
12
- upload: string;
13
- expand: string;
14
- wrap: string;
15
- solid: string;
16
- gradient: string;
17
- image: string;
18
- };
19
- export type GuiIconType = keyof typeof svgIcons;
20
- export type GuiIconsConfig = Record<GuiIconType, string>;
21
- /** Injection token that can be used to provide the default icons. */
22
- export declare const GUI_ICONS_CONFIG: InjectionToken<GuiIconsConfig>;
23
- export declare class GuiIconsRegistry {
24
- private _iconRegistry;
25
- private _sanitizer;
26
- private _defaultIcons;
27
- add(...iconNames: GuiIconType[]): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiIconsRegistry, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<GuiIconsRegistry>;
30
- }
package/gui-module.d.ts DELETED
@@ -1,42 +0,0 @@
1
- import * as i0 from "@angular/core";
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 "./fill/fill-picker";
27
- import * as i26 from "./field-group/field-group";
28
- import * as i27 from "./field-label/field-label";
29
- import * as i28 from "./inline-group/inline-group";
30
- import * as i29 from "./image-select/image-select";
31
- import * as i30 from "./combobox/combobox";
32
- import * as i31 from "./textarea/textarea";
33
- import * as i32 from "./codearea/codearea";
34
- import * as i33 from "./codearea/codearea-dialog";
35
- import * as i34 from "./file-uploader/file-uploader";
36
- import * as i35 from "./icon-button-wrapper/icon-button-wrapper";
37
- import * as i36 from "./gui-utils";
38
- export declare class GuiModule {
39
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiModule, never>;
40
- 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.GuiFillPicker, typeof i26.GuiFieldGroup, typeof i27.GuiFieldLabel, typeof i28.GuiInlineGroup, typeof i29.GuiImageSelect, typeof i30.GuiCombobox, typeof i31.GuiTextarea, typeof i32.GuiCodearea, typeof i33.GuiCodeareaDialog, typeof i34.GuiFileUploader, typeof i35.GuiIconButtonWrapper, typeof i36.GuiEjsPipe, typeof i36.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.GuiFillPicker, typeof i26.GuiFieldGroup, typeof i27.GuiFieldLabel, typeof i28.GuiInlineGroup, typeof i29.GuiImageSelect, typeof i30.GuiCombobox, typeof i31.GuiTextarea, typeof i32.GuiCodearea, typeof i33.GuiCodeareaDialog, typeof i34.GuiFileUploader, typeof i35.GuiIconButtonWrapper, typeof i36.GuiEjsPipe, typeof i36.GuiFlexDirective]>;
41
- static ɵinj: i0.ɵɵInjectorDeclaration<GuiModule>;
42
- }
package/gui-utils.d.ts DELETED
@@ -1,36 +0,0 @@
1
- import { OnInit, PipeTransform } from '@angular/core';
2
- import { GuiDefaultValue, GuiFields, GuiOperator } from './interface';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Lightweight EJS template engine
6
- *
7
- * @param str template string
8
- * @param data data passed to the template
9
- * @returns
10
- *
11
- * ### Example
12
- *
13
- * ```ts
14
- * const people = ['geddy', 'neil', 'alex'];
15
- * const res = ejsTmpl('<%= people.join(", ") %>', {people: people});
16
- * console.log(res);
17
- * // => 'geddy, neil, alex'
18
- * ```
19
- *
20
- */
21
- export declare function ejsTmpl(str: string, data: any): any;
22
- export declare class GuiEjsPipe implements PipeTransform {
23
- transform(value: string, data?: {}): string;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiEjsPipe, never>;
25
- static ɵpipe: i0.ɵɵPipeDeclaration<GuiEjsPipe, "ejs", true>;
26
- }
27
- export declare class GuiFlexDirective implements OnInit {
28
- private el;
29
- flex: number | undefined;
30
- ngOnInit(): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiFlexDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<GuiFlexDirective, "[flex]", never, { "flex": { "alias": "flex"; "required": false; }; }, {}, never, never, true, never>;
33
- }
34
- export declare function compareValues(a: GuiDefaultValue, b: GuiDefaultValue, operator: GuiOperator): boolean;
35
- export declare function getValueByPath(obj: Record<string, any>, path: string): Record<string, any> | undefined;
36
- export declare function getModelFromConfig(config?: GuiFields, model?: Record<string, any>): Record<string, any>;
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class GuiIconButtonWrapper {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiIconButtonWrapper, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiIconButtonWrapper, "gui-icon-button-wrapper", never, {}, {}, never, ["*"], true, never>;
5
- }
@@ -1,23 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { MtxSelect } from '@ng-matero/extensions/select';
4
- import { GuiControl } from '../interface';
5
- import * as i0 from "@angular/core";
6
- export declare class GuiImageSelect implements ControlValueAccessor, AfterViewInit {
7
- private cdr;
8
- mtxSelect: MtxSelect;
9
- config: Partial<GuiControl>;
10
- disabled: boolean;
11
- appendTo: string;
12
- value: any;
13
- private onChange;
14
- private onTouched;
15
- ngAfterViewInit(): void;
16
- writeValue(value: any): void;
17
- registerOnChange(fn: (value: any) => void): void;
18
- registerOnTouched(fn: () => void): void;
19
- setDisabledState(isDisabled: boolean): void;
20
- onValueChange(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiImageSelect, never>;
22
- 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>;
23
- }
@@ -1,7 +0,0 @@
1
- import { GuiControl } from '../interface';
2
- import * as i0 from "@angular/core";
3
- export declare class GuiInlineGroup {
4
- config: Partial<GuiControl>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiInlineGroup, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiInlineGroup, "gui-inline-group", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], true, never>;
7
- }
@@ -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 GuiInputNumber implements ControlValueAccessor {
5
- private cdr;
6
- config: Partial<GuiControl>;
7
- disabled: boolean;
8
- value: number;
9
- private onChange;
10
- private onTouched;
11
- writeValue(value: any): void;
12
- registerOnChange(fn: (value: number) => void): void;
13
- registerOnTouched(fn: () => void): void;
14
- setDisabledState(isDisabled: boolean): void;
15
- onValueChange(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiInputNumber, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiInputNumber, "gui-input-number", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -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 GuiInputText implements ControlValueAccessor {
5
- private cdr;
6
- config: Partial<GuiControl>;
7
- disabled: boolean;
8
- value: string;
9
- private onChange;
10
- private onTouched;
11
- writeValue(value: any): void;
12
- registerOnChange(fn: (value: string) => void): void;
13
- registerOnTouched(fn: () => void): void;
14
- setDisabledState(isDisabled: boolean): void;
15
- onValueChange(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<GuiInputText, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<GuiInputText, "gui-input-text", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
18
- }