@acrodata/gui 3.2.2 → 3.4.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/codearea/codearea-dialog.scss +5 -1
- package/codearea/codearea-toolbar.scss +33 -0
- package/codearea/codearea.scss +5 -31
- package/fesm2022/acrodata-gui.mjs +138 -90
- package/fesm2022/acrodata-gui.mjs.map +1 -1
- package/icon-button-wrapper/icon-button-wrapper.scss +2 -0
- package/package.json +5 -4
- package/{index.d.ts → types/acrodata-gui.d.ts} +14 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acrodata/gui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "JSON powered GUI for configurable panels.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"sass": "./_index.scss",
|
|
26
|
-
"types": "./
|
|
26
|
+
"types": "./types/acrodata-gui.d.ts",
|
|
27
27
|
"default": "./fesm2022/acrodata-gui.mjs"
|
|
28
28
|
},
|
|
29
29
|
"./package.json": {
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@acrodata/code-editor": "^0.6.0",
|
|
43
43
|
"@acrodata/gradient-picker": "^0.14.0",
|
|
44
|
-
"@acrodata/rnd-dialog": "^0.
|
|
44
|
+
"@acrodata/rnd-dialog": "^0.7.0",
|
|
45
45
|
"tslib": "^2.3.0"
|
|
46
46
|
},
|
|
47
47
|
"sideEffects": false,
|
|
48
48
|
"module": "fesm2022/acrodata-gui.mjs",
|
|
49
|
-
"typings": "
|
|
49
|
+
"typings": "types/acrodata-gui.d.ts",
|
|
50
|
+
"type": "module"
|
|
50
51
|
}
|
|
@@ -445,6 +445,7 @@ declare class GuiCodearea implements ControlValueAccessor {
|
|
|
445
445
|
get extensions(): _codemirror_state.Extension[];
|
|
446
446
|
value: string;
|
|
447
447
|
private oldValue;
|
|
448
|
+
lineWrapping: boolean;
|
|
448
449
|
private onChange;
|
|
449
450
|
private onTouched;
|
|
450
451
|
constructor();
|
|
@@ -454,10 +455,16 @@ declare class GuiCodearea implements ControlValueAccessor {
|
|
|
454
455
|
setDisabledState(isDisabled: boolean): void;
|
|
455
456
|
onValueChange(): void;
|
|
456
457
|
onExpand(): void;
|
|
458
|
+
toggleLineWrapping(): void;
|
|
457
459
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiCodearea, never>;
|
|
458
460
|
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>;
|
|
459
461
|
}
|
|
460
462
|
|
|
463
|
+
declare class GuiCodeareaToolbar {
|
|
464
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuiCodeareaToolbar, never>;
|
|
465
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GuiCodeareaToolbar, "gui-codearea-toolbar", never, {}, {}, never, ["*"], true, never>;
|
|
466
|
+
}
|
|
467
|
+
|
|
461
468
|
type FileUploadType = 'image' | 'video' | 'audio' | '*';
|
|
462
469
|
interface FileUploadContent {
|
|
463
470
|
data: File;
|
|
@@ -476,6 +483,10 @@ declare class GuiFileUploader implements ControlValueAccessor, OnChanges {
|
|
|
476
483
|
fileChange: EventEmitter<string>;
|
|
477
484
|
url: string;
|
|
478
485
|
fileUpload: FileUploadContent;
|
|
486
|
+
lastPasteFileMeta: {
|
|
487
|
+
size: number;
|
|
488
|
+
type: string;
|
|
489
|
+
};
|
|
479
490
|
private onChange;
|
|
480
491
|
private onTouched;
|
|
481
492
|
constructor();
|
|
@@ -489,6 +500,7 @@ declare class GuiFileUploader implements ControlValueAccessor, OnChanges {
|
|
|
489
500
|
onFileChange(e: Event): void;
|
|
490
501
|
onBlur(): void;
|
|
491
502
|
onClear(): void;
|
|
503
|
+
onPaste(e: ClipboardEvent): void;
|
|
492
504
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiFileUploader, never>;
|
|
493
505
|
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>;
|
|
494
506
|
}
|
|
@@ -534,7 +546,7 @@ declare function getModelFromConfig(config?: GuiFields, model?: Record<string, a
|
|
|
534
546
|
|
|
535
547
|
declare class GuiModule {
|
|
536
548
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuiModule, never>;
|
|
537
|
-
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 GuiForm, typeof GuiInputText, typeof GuiInputNumber, typeof GuiSelect, typeof GuiSwitch, typeof GuiSlider, typeof GuiIcon, typeof GuiButtonToggle, typeof GuiFill, typeof GuiFillPicker, typeof GuiFieldGroup, typeof GuiFieldLabel, typeof GuiInlineGroup, typeof GuiImageSelect, typeof GuiCombobox, typeof GuiTextarea, typeof GuiCodearea, typeof GuiCodeareaDialog, typeof GuiFileUploader, typeof GuiIconButtonWrapper, typeof GuiEjsPipe, typeof GuiFlexDirective], [typeof GuiForm, typeof GuiInputText, typeof GuiInputNumber, typeof GuiSelect, typeof GuiSwitch, typeof GuiSlider, typeof GuiIcon, typeof GuiButtonToggle, typeof GuiFill, typeof GuiFillPicker, typeof GuiFieldGroup, typeof GuiFieldLabel, typeof GuiInlineGroup, typeof GuiImageSelect, typeof GuiCombobox, typeof GuiTextarea, typeof GuiCodearea, typeof GuiCodeareaDialog, typeof GuiFileUploader, typeof GuiIconButtonWrapper, typeof GuiEjsPipe, typeof GuiFlexDirective]>;
|
|
549
|
+
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 GuiForm, typeof GuiInputText, typeof GuiInputNumber, typeof GuiSelect, typeof GuiSwitch, typeof GuiSlider, typeof GuiIcon, typeof GuiButtonToggle, typeof GuiFill, typeof GuiFillPicker, typeof GuiFieldGroup, typeof GuiFieldLabel, typeof GuiInlineGroup, typeof GuiImageSelect, typeof GuiCombobox, typeof GuiTextarea, typeof GuiCodearea, typeof GuiCodeareaDialog, typeof GuiCodeareaToolbar, typeof GuiFileUploader, typeof GuiIconButtonWrapper, typeof GuiEjsPipe, typeof GuiFlexDirective], [typeof GuiForm, typeof GuiInputText, typeof GuiInputNumber, typeof GuiSelect, typeof GuiSwitch, typeof GuiSlider, typeof GuiIcon, typeof GuiButtonToggle, typeof GuiFill, typeof GuiFillPicker, typeof GuiFieldGroup, typeof GuiFieldLabel, typeof GuiInlineGroup, typeof GuiImageSelect, typeof GuiCombobox, typeof GuiTextarea, typeof GuiCodearea, typeof GuiCodeareaDialog, typeof GuiCodeareaToolbar, typeof GuiFileUploader, typeof GuiIconButtonWrapper, typeof GuiEjsPipe, typeof GuiFlexDirective]>;
|
|
538
550
|
static ɵinj: i0.ɵɵInjectorDeclaration<GuiModule>;
|
|
539
551
|
}
|
|
540
552
|
|
|
@@ -599,5 +611,5 @@ declare class GuiIconsRegistry {
|
|
|
599
611
|
static ɵprov: i0.ɵɵInjectableDeclaration<GuiIconsRegistry>;
|
|
600
612
|
}
|
|
601
613
|
|
|
602
|
-
export { GUI_ICONS_CONFIG, GuiButtonToggle, GuiCodearea, GuiCodeareaConfig, GuiCodeareaDialog, GuiCombobox, GuiEjsPipe, GuiFieldGroup, GuiFieldLabel, GuiFileUploader, GuiFileUploaderConfig, GuiFill, GuiFillPicker, GuiFlexDirective, GuiForm, GuiIcon, GuiIconButtonWrapper, GuiIconsRegistry, GuiImageSelect, GuiInlineGroup, GuiInputNumber, GuiInputText, GuiModule, GuiSelect, GuiSlider, GuiSwitch, GuiTextarea, compareValues, ejsTmpl, getModelFromConfig, getValueByPath, svgIcons };
|
|
614
|
+
export { GUI_ICONS_CONFIG, GuiButtonToggle, GuiCodearea, GuiCodeareaConfig, GuiCodeareaDialog, GuiCodeareaToolbar, GuiCombobox, GuiEjsPipe, GuiFieldGroup, GuiFieldLabel, GuiFileUploader, GuiFileUploaderConfig, GuiFill, GuiFillPicker, GuiFlexDirective, GuiForm, GuiIcon, GuiIconButtonWrapper, GuiIconsRegistry, GuiImageSelect, GuiInlineGroup, GuiInputNumber, GuiInputText, GuiModule, GuiSelect, GuiSlider, GuiSwitch, GuiTextarea, compareValues, ejsTmpl, getModelFromConfig, getValueByPath, svgIcons };
|
|
603
615
|
export type { FileUploadContent, FileUploadResponseBody, FileUploadType, GuiBasicValue, GuiCodeareaDialogData, GuiCondition, GuiControl, GuiControls, GuiDefaultValue, GuiField, GuiFieldOption, GuiFieldShowIf, GuiFieldType, GuiFields, GuiFillMode, GuiIconType, GuiIconsConfig, GuiOperator, GuiSliderMode, GuiTabsMode };
|