pigallery2-extension-kit 2.5.0-edge7 → 2.5.0-edge8
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.
|
@@ -11,11 +11,25 @@ export interface IClientSVGIconConfig {
|
|
|
11
11
|
items: string;
|
|
12
12
|
}
|
|
13
13
|
export interface IClientMediaButtonPopupFields {
|
|
14
|
+
/**
|
|
15
|
+
* Id of the field. This how it will listed in the body.
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* Type of the field.
|
|
20
|
+
*/
|
|
14
21
|
type: 'string' | 'number' | 'boolean';
|
|
22
|
+
/**
|
|
23
|
+
* Label of the field. This string will be shown in the popup.
|
|
24
|
+
*/
|
|
15
25
|
label: string;
|
|
26
|
+
/**
|
|
27
|
+
* Default value of the field. Should appropriately to the type.
|
|
28
|
+
*/
|
|
16
29
|
defaultValue?: string | number | boolean;
|
|
17
30
|
/**
|
|
18
31
|
* If true, the field will be required.
|
|
32
|
+
* If boolean, the field will be required to be true to click the button.
|
|
19
33
|
*/
|
|
20
34
|
required?: boolean;
|
|
21
35
|
}
|
|
@@ -39,7 +53,7 @@ export interface IClientMediaButtonPopupConfig {
|
|
|
39
53
|
/**
|
|
40
54
|
* Custom fields to show in the popup.
|
|
41
55
|
*/
|
|
42
|
-
customFields?: IClientMediaButtonPopupFields;
|
|
56
|
+
customFields?: IClientMediaButtonPopupFields[];
|
|
43
57
|
}
|
|
44
58
|
export interface IClientMediaButtonConfig {
|
|
45
59
|
/**
|
|
@@ -83,7 +97,7 @@ export interface IClientMediaButtonConfig {
|
|
|
83
97
|
* Upon invalidation, the whole directory will be recalculated.
|
|
84
98
|
* If you change any media file, you should set this to false.
|
|
85
99
|
*/
|
|
86
|
-
skipDirectoryInvalidation
|
|
100
|
+
skipDirectoryInvalidation?: boolean;
|
|
87
101
|
}
|
|
88
102
|
export interface UIExtensionDTO {
|
|
89
103
|
extensionBasePath: string;
|
package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.component.d.ts
CHANGED
|
@@ -11,9 +11,12 @@ export declare class MediaButtonModalComponent implements OnInit, OnDestroy {
|
|
|
11
11
|
constructor(modalService: MediaButtonModalService);
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
ngOnDestroy(): void;
|
|
14
|
-
private initFormData;
|
|
15
14
|
getFieldLabel(field: IClientMediaFields): string;
|
|
16
15
|
getFieldValue(field: IClientMediaFields): any;
|
|
17
16
|
closeModal(): void;
|
|
17
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
18
18
|
executeAction(): void;
|
|
19
|
+
isFormValid(): boolean;
|
|
20
|
+
private initFormData;
|
|
21
|
+
private getDefaultValueForType;
|
|
19
22
|
}
|
package/package.json
CHANGED