@acrodata/gui 2.8.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.
- package/README.md +4 -3
- package/button-toggle/button-toggle.scss +6 -6
- package/button-toggle/icon.scss +3 -3
- package/codearea/codearea-dialog.scss +9 -9
- package/codearea/codearea.scss +2 -2
- package/combobox/combobox.scss +1 -1
- package/fesm2022/acrodata-gui.mjs +124 -124
- package/fesm2022/acrodata-gui.mjs.map +1 -1
- package/field-group/field-group.scss +1 -1
- package/file-uploader/file-uploader.scss +1 -1
- package/fill/fill-picker.scss +9 -9
- package/fill/fill.scss +4 -4
- package/gui-form.scss +10 -10
- package/icon-button-wrapper/icon-button-wrapper.scss +2 -2
- package/image-select/image-select.scss +8 -1
- package/index.d.ts +606 -3
- package/inline-group/inline-group.scss +1 -1
- package/package.json +7 -9
- package/select/select.scss +1 -1
- package/slider/slider.scss +10 -10
- package/switch/switch.scss +14 -14
- package/button-toggle/button-toggle.d.ts +0 -18
- package/button-toggle/icon.d.ts +0 -7
- package/codearea/codearea-config.d.ts +0 -14
- package/codearea/codearea-dialog.d.ts +0 -27
- package/codearea/codearea.d.ts +0 -37
- package/combobox/combobox.d.ts +0 -27
- package/esm2022/acrodata-gui.mjs +0 -5
- package/esm2022/button-toggle/button-toggle.mjs +0 -69
- package/esm2022/button-toggle/icon.mjs +0 -33
- package/esm2022/codearea/codearea-config.mjs +0 -20
- package/esm2022/codearea/codearea-dialog.mjs +0 -67
- package/esm2022/codearea/codearea.mjs +0 -148
- package/esm2022/combobox/combobox.mjs +0 -82
- package/esm2022/field-group/field-group.mjs +0 -30
- package/esm2022/field-label/field-label.mjs +0 -31
- package/esm2022/file-uploader/file-uploader-config.mjs +0 -42
- package/esm2022/file-uploader/file-uploader.mjs +0 -142
- package/esm2022/fill/fill-picker.mjs +0 -166
- package/esm2022/fill/fill.mjs +0 -85
- package/esm2022/gui-form.mjs +0 -305
- package/esm2022/gui-icons.mjs +0 -95
- package/esm2022/gui-module.mjs +0 -201
- package/esm2022/gui-utils.mjs +0 -128
- package/esm2022/icon-button-wrapper/icon-button-wrapper.mjs +0 -13
- package/esm2022/image-select/image-select.mjs +0 -79
- package/esm2022/inline-group/inline-group.mjs +0 -19
- package/esm2022/input-number/input-number.mjs +0 -58
- package/esm2022/input-text/input-text.mjs +0 -59
- package/esm2022/interface.mjs +0 -2
- package/esm2022/public-api.mjs +0 -30
- package/esm2022/select/select.mjs +0 -69
- package/esm2022/slider/slider.mjs +0 -85
- package/esm2022/switch/switch.mjs +0 -59
- package/esm2022/textarea/textarea.mjs +0 -59
- package/field-group/field-group.d.ts +0 -13
- package/field-label/field-label.d.ts +0 -12
- package/file-uploader/file-uploader-config.d.ts +0 -25
- package/file-uploader/file-uploader.d.ts +0 -38
- package/fill/fill-picker.d.ts +0 -39
- package/fill/fill.d.ts +0 -21
- package/gui-form.d.ts +0 -71
- package/gui-icons.d.ts +0 -30
- package/gui-module.d.ts +0 -42
- package/gui-utils.d.ts +0 -36
- package/icon-button-wrapper/icon-button-wrapper.d.ts +0 -5
- package/image-select/image-select.d.ts +0 -23
- package/inline-group/inline-group.d.ts +0 -7
- package/input-number/input-number.d.ts +0 -18
- package/input-text/input-text.d.ts +0 -18
- package/interface.d.ts +0 -61
- package/public-api.d.ts +0 -26
- package/select/select.d.ts +0 -18
- package/slider/slider.d.ts +0 -23
- package/switch/switch.d.ts +0 -18
- package/textarea/textarea.d.ts +0 -17
package/fill/fill-picker.d.ts
DELETED
|
@@ -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(): "rgb" | "hex" | "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
|
-
}
|
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';
|
package/select/select.d.ts
DELETED
|
@@ -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
|
-
}
|
package/slider/slider.d.ts
DELETED
|
@@ -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
|
-
}
|
package/switch/switch.d.ts
DELETED
|
@@ -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
|
-
}
|
package/textarea/textarea.d.ts
DELETED
|
@@ -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
|
-
}
|