@ldmjs/ui 1.0.40 → 1.0.41

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/dist/index.js CHANGED
@@ -16029,7 +16029,8 @@ class DialogManager {
16029
16029
  title: modal.title,
16030
16030
  content: modal.content,
16031
16031
  type: ModalType.Alert,
16032
- managerId: DialogManager._id
16032
+ hostObject: modal.hostObject,
16033
+ managerId: DialogManager._id,
16033
16034
  };
16034
16035
  return DialogManager.execAsync(modalInfo);
16035
16036
  }
@@ -16037,6 +16038,7 @@ class DialogManager {
16037
16038
  const modalInfo = {
16038
16039
  ...modal,
16039
16040
  type: ModalType.Prompt,
16041
+ hostObject: modal.hostObject,
16040
16042
  managerId: DialogManager._id
16041
16043
  };
16042
16044
  return DialogManager.execAsync(modalInfo);
@@ -16047,6 +16049,7 @@ class DialogManager {
16047
16049
  content: modal.text,
16048
16050
  type: ModalType.Confirm,
16049
16051
  closable: true,
16052
+ hostObject: modal.hostObject,
16050
16053
  managerId: DialogManager._id
16051
16054
  };
16052
16055
  return DialogManager.execAsync(modalInfo);
@@ -16417,13 +16420,14 @@ class Dialog {
16417
16420
  class AlertDialog extends Dialog {
16418
16421
  constructor(data) {
16419
16422
  super(data.title, data.text);
16423
+ this.hostObject = data.hostObject;
16420
16424
  }
16421
16425
  }
16422
16426
  class PromptDialog extends Dialog {
16423
16427
  constructor(data) {
16424
16428
  super(data.title, data.content);
16425
- this.title = data.title;
16426
16429
  this.width = data.width || '60%';
16430
+ this.hostObject = data.hostObject;
16427
16431
  }
16428
16432
  }
16429
16433
  class ConfirmDialog extends Dialog {
@@ -16435,6 +16439,7 @@ class ConfirmDialog extends Dialog {
16435
16439
  this.cancelTitle = data.cancelTitle;
16436
16440
  this.okResult = data.okResult;
16437
16441
  this.cancelResult = data.cancelResult;
16442
+ this.hostObject = data.hostObject;
16438
16443
  }
16439
16444
  ;
16440
16445
  }
@@ -16465,6 +16470,9 @@ class SelectDialog {
16465
16470
  this.width = data.width;
16466
16471
  this.height = data.height;
16467
16472
  this.selectAsOk = data.selectAsOk;
16473
+ this.okTitle = data.okTitle;
16474
+ this.cancelTitle = data.cancelTitle;
16475
+ this.hostObject = data.hostObject;
16468
16476
  }
16469
16477
  }
16470
16478
  class CreateEditDialog {
@@ -95,13 +95,17 @@ export class Dialog {
95
95
  }
96
96
 
97
97
  export class AlertDialog extends Dialog {
98
- constructor(data: { title: string; text: string });
98
+ title: string;
99
+ text: string;
100
+ hostObject?: IHostObject;
101
+ constructor(data: { title: string; text: string; hostObject?: IHostObject });
99
102
  }
100
103
 
101
104
  export class PromptDialog extends Dialog {
102
105
  title: string;
103
106
  width?: string;
104
- constructor(data: { title: string; width?: string });
107
+ hostObject?: IHostObject;
108
+ constructor(data: { title: string; width?: string; hostObject?: IHostObject; });
105
109
  }
106
110
 
107
111
  export class ConfirmDialog extends Dialog {
@@ -111,6 +115,7 @@ export class ConfirmDialog extends Dialog {
111
115
  cancelTitle?: string;
112
116
  okResult?: number | string | boolean;
113
117
  cancelResult?: number | string | boolean;
118
+ hostObject?: IHostObject;
114
119
  constructor(data: {
115
120
  title: string;
116
121
  text: string;
@@ -118,6 +123,7 @@ export class ConfirmDialog extends Dialog {
118
123
  cancelTitle?: string;
119
124
  okResult?: number | string | boolean;
120
125
  cancelResult?: number | string | boolean;
126
+ hostObject?: IHostObject;
121
127
  });
122
128
  }
123
129
 
@@ -133,6 +139,7 @@ export class InfoDialog extends Dialog {
133
139
  hideFooter?: boolean;
134
140
  minimizable?: boolean;
135
141
  description?: string;
142
+ hostObject?: IHostObject;
136
143
  constructor(data: {
137
144
  title: string;
138
145
  component: string;
@@ -145,6 +152,7 @@ export class InfoDialog extends Dialog {
145
152
  hideFooter?: boolean;
146
153
  minimizable?: boolean;
147
154
  description?: string;
155
+ hostObject?: IHostObject;
148
156
  });
149
157
  }
150
158
 
@@ -172,6 +180,9 @@ export class SelectDialog<T> {
172
180
  width?: string | number;
173
181
  height?: string | number;
174
182
  selectAsOk?: boolean;
183
+ okTitle?: string;
184
+ cancelTitle?: string;
185
+ hostObject?: IHostObject;
175
186
  constructor(data: {
176
187
  title: string;
177
188
  component: string;
@@ -189,6 +200,7 @@ export class SelectDialog<T> {
189
200
  width?: string | number;
190
201
  height?: string | number;
191
202
  selectAsOk?: boolean;
203
+ hostObject?: IHostObject;
192
204
  });
193
205
  }
194
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {