iszolea-ui 1.2.39 → 1.2.40

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.
@@ -42,6 +42,7 @@ export interface IDocumentEditorData {
42
42
  export interface IImageEditorData {
43
43
  multiple: boolean;
44
44
  showPreview: boolean;
45
+ metaDataFields: Array<string>;
45
46
  }
46
47
  export interface IMoneyEditorData {
47
48
  }
@@ -114,6 +115,8 @@ export declare class ControlConfigurator {
114
115
  private readonly updateGlobalSearchUrl;
115
116
  private disableGlobalSearch;
116
117
  private readonly onGlobalSearchSettingsChanged;
118
+ private readonly baseTypeTitle;
119
+ private readonly customTypeTitle;
117
120
  private readonly displayTypes;
118
121
  private readonly editors;
119
122
  private readonly editorsInitData;
@@ -4,23 +4,33 @@ export interface IImageManagerSettings {
4
4
  width?: number | string;
5
5
  height?: number | string;
6
6
  }
7
+ export interface IMetaData {
8
+ name: string;
9
+ value: string;
10
+ }
11
+ export interface IImageManagerData {
12
+ images: Array<IImageTypeItem>;
13
+ metaData: Array<IMetaData>;
14
+ }
7
15
  export default class ImageManager extends EventEmitter {
8
16
  private readonly ON_UPLOADED;
9
17
  private readonly ON_DELETED;
10
18
  private readonly settings;
11
19
  private $content;
12
20
  private dialog;
13
- private items;
21
+ private imageItems;
14
22
  private list;
15
23
  private uploader;
16
24
  private gallery;
25
+ private metaDataItems;
17
26
  constructor(settings?: IImageManagerSettings);
18
27
  private initMarkup;
19
28
  private initUploader;
20
29
  private initList;
21
30
  private initGallery;
22
- open(images?: Array<IImageTypeItem>, readonly?: boolean): void;
31
+ open(data?: IImageManagerData, readonly?: boolean): void;
23
32
  close(): void;
33
+ set metaData(items: Array<IMetaData>);
24
34
  set images(items: Array<IImageTypeItem>);
25
35
  get images(): Array<IImageTypeItem>;
26
36
  set selectedIndex(number: number);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iszolea-ui",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "Common scripts and styles for Iszolea projects",
5
5
  "main": "dist/js/index.js",
6
6
  "types": "dist/types/index.d.ts",