@ldmjs/ui 2.1.5 → 2.1.7
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/components/ld-button.js +1 -1
- package/dist/components/ld-calendar.js +1 -1
- package/dist/components/ld-combobox.js +1 -1
- package/dist/components/ld-datepicker.js +1 -1
- package/dist/components/ld-dialog.js +1 -1
- package/dist/components/ld-edit-list-box.js +1 -1
- package/dist/components/ld-edit-masked-text.js +1 -1
- package/dist/components/ld-expansion-panel.js +1 -1
- package/dist/components/ld-expansion-panels.js +1 -1
- package/dist/components/ld-page-toolbar.js +1 -1
- package/dist/components/ld-radiogroup.js +1 -1
- package/dist/components/ld-select-list-box.js +1 -1
- package/dist/components/ld-select.js +1 -1
- package/dist/components/ld-tabs.js +1 -1
- package/dist/components/ld-text-viewer.js +1 -1
- package/dist/index.js +1 -1
- package/dist/scss/_buttons.scss +3 -1
- package/dist/scss/_dialogs.scss +8 -5
- package/dist/scss/_expansions.scss +1 -0
- package/dist/scss/_inputs.scss +87 -5
- package/dist/scss/_tabs.scss +120 -152
- package/dist/scss/_textviewer.scss +22 -4
- package/dist/scss/index.scss +6 -0
- package/dist/types/dialogs.d.ts +79 -128
- package/package.json +4 -4
package/dist/types/dialogs.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface IDialogProps {
|
|
|
7
7
|
size?: string;
|
|
8
8
|
width?: string | number;
|
|
9
9
|
height?: string | number;
|
|
10
|
+
css?: string;
|
|
10
11
|
align?: 'left' | 'right';
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -69,12 +70,14 @@ export interface IModalInfo {
|
|
|
69
70
|
cancelTitle?: string;
|
|
70
71
|
okResult?: number | string | boolean | IModalResult<IViewModel<number | string>>;
|
|
71
72
|
cancelResult?: number | string | boolean | IModalResult<IViewModel<number | string>>;
|
|
73
|
+
settedResult?: boolean;
|
|
72
74
|
hideFooter?: boolean;
|
|
73
75
|
size?: DialogSize;
|
|
74
76
|
width?: number | string;
|
|
75
77
|
height?: number | string;
|
|
76
78
|
fullHeight?: boolean;
|
|
77
79
|
align?: 'left' | 'right';
|
|
80
|
+
css?: string;
|
|
78
81
|
closable?: boolean;
|
|
79
82
|
expandable?: boolean;
|
|
80
83
|
minimizable?: boolean;
|
|
@@ -127,81 +130,63 @@ export class Dialog {
|
|
|
127
130
|
public content?: string,
|
|
128
131
|
public pressEnterAsOk?: boolean,
|
|
129
132
|
public pressEscAsCancel?: boolean,
|
|
130
|
-
public hostObject?: IHostObject
|
|
133
|
+
public hostObject?: IHostObject,
|
|
134
|
+
public size?: 's' | 'm' | 'l',
|
|
135
|
+
public width?: string | number,
|
|
136
|
+
public height?: string | number,
|
|
137
|
+
public css?: string,
|
|
138
|
+
public align?: 'left' | 'right'
|
|
131
139
|
) {}
|
|
132
140
|
}
|
|
133
141
|
|
|
142
|
+
export class InteractiveDialog extends Dialog {
|
|
143
|
+
loading: boolean;
|
|
144
|
+
fullHeight: boolean;
|
|
145
|
+
closable: boolean;
|
|
146
|
+
hideFooter: boolean;
|
|
147
|
+
constructor(data: IInterativeDialogProps) {}
|
|
148
|
+
}
|
|
149
|
+
|
|
134
150
|
export class AlertDialog extends Dialog {
|
|
135
|
-
constructor(data: {
|
|
136
|
-
title: string;
|
|
137
|
-
content: string;
|
|
138
|
-
pressEnterAsOk?: boolean;
|
|
139
|
-
pressEscAsCancel?: boolean;
|
|
140
|
-
hostObject?: IHostObject;
|
|
141
|
-
});
|
|
151
|
+
constructor(data: IDialogProps) {}
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
export class PromptDialog extends Dialog {
|
|
145
|
-
|
|
146
|
-
constructor(data: {
|
|
147
|
-
title: string;
|
|
148
|
-
width?: string;
|
|
149
|
-
pressEnterAsOk?: boolean;
|
|
150
|
-
pressEscAsCancel?: boolean;
|
|
151
|
-
hostObject?: IHostObject;
|
|
152
|
-
});
|
|
155
|
+
constructor(data: IDialogProps);
|
|
153
156
|
}
|
|
154
157
|
|
|
155
|
-
export class ConfirmDialog extends
|
|
156
|
-
okTitle?: string;
|
|
157
|
-
cancelTitle?: string;
|
|
158
|
+
export class ConfirmDialog extends InteractiveDialog {
|
|
158
159
|
okResult?: number | string | boolean;
|
|
159
160
|
cancelResult?: number | string | boolean;
|
|
160
|
-
constructor(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
cancelResult?: number | string | boolean;
|
|
167
|
-
pressEnterAsOk?: boolean;
|
|
168
|
-
pressEscAsCancel?: boolean;
|
|
169
|
-
hostObject?: IHostObject;
|
|
170
|
-
});
|
|
161
|
+
constructor(
|
|
162
|
+
data: IInterativeDialogProps & {
|
|
163
|
+
okResult?: number | string | boolean;
|
|
164
|
+
cancelResult?: number | string | boolean;
|
|
165
|
+
}
|
|
166
|
+
) {}
|
|
171
167
|
}
|
|
172
168
|
|
|
173
|
-
export class InfoDialog extends
|
|
169
|
+
export class InfoDialog extends InteractiveDialog {
|
|
174
170
|
component: string;
|
|
175
171
|
componentProps: Record<string, unknown>;
|
|
176
|
-
width?: string;
|
|
177
|
-
height?: string;
|
|
178
172
|
fullHeight?: boolean;
|
|
179
|
-
loading?: boolean;
|
|
180
|
-
closable?: boolean;
|
|
181
173
|
hideFooter?: boolean;
|
|
182
174
|
minimizable?: boolean;
|
|
183
175
|
description?: string;
|
|
184
176
|
help?: boolean;
|
|
185
|
-
constructor(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
minimizable?: boolean;
|
|
196
|
-
description?: string;
|
|
197
|
-
pressEnterAsOk?: boolean;
|
|
198
|
-
pressEscAsCancel?: boolean;
|
|
199
|
-
hostObject?: IHostObject;
|
|
200
|
-
help?: boolean;
|
|
201
|
-
});
|
|
177
|
+
constructor(
|
|
178
|
+
data: IInterativeDialogProps & {
|
|
179
|
+
component: string;
|
|
180
|
+
componentProps: Record<string, unknown>;
|
|
181
|
+
fullHeight?: boolean;
|
|
182
|
+
minimizable?: boolean;
|
|
183
|
+
description?: string;
|
|
184
|
+
help?: boolean;
|
|
185
|
+
}
|
|
186
|
+
);
|
|
202
187
|
}
|
|
203
188
|
|
|
204
|
-
export class SelectDialog<T> extends
|
|
189
|
+
export class SelectDialog<T> extends InteractiveDialog {
|
|
205
190
|
component: string;
|
|
206
191
|
componentProps: {
|
|
207
192
|
disabledItems: Array<T | number | string>;
|
|
@@ -219,53 +204,32 @@ export class SelectDialog<T> extends Dialog {
|
|
|
219
204
|
multiselect?: boolean;
|
|
220
205
|
[key: string]: unknown;
|
|
221
206
|
};
|
|
222
|
-
loading?: boolean;
|
|
223
|
-
fullHeight?: boolean;
|
|
224
|
-
width?: string | number;
|
|
225
|
-
height?: string | number;
|
|
226
207
|
selectAsOk?: boolean;
|
|
227
|
-
okTitle?: string;
|
|
228
|
-
cancelTitle?: string;
|
|
229
208
|
help?: boolean;
|
|
230
|
-
constructor(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
selectAsOk?: boolean;
|
|
247
|
-
okTitle?: string;
|
|
248
|
-
cancelTitle?: string;
|
|
249
|
-
pressEnterAsOk?: boolean;
|
|
250
|
-
pressEscAsCancel?: boolean;
|
|
251
|
-
hostObject?: IHostObject;
|
|
252
|
-
help?: boolean;
|
|
253
|
-
});
|
|
209
|
+
constructor(
|
|
210
|
+
data: IInterativeDialogProps & {
|
|
211
|
+
component: string;
|
|
212
|
+
componentProps: {
|
|
213
|
+
disabledItems: Array<T | number | string>;
|
|
214
|
+
selectedItems: Array<T | number | string>;
|
|
215
|
+
searchable?: boolean;
|
|
216
|
+
searchFields?: Array<string>;
|
|
217
|
+
isTree?: boolean;
|
|
218
|
+
multiselect?: boolean;
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
};
|
|
221
|
+
selectAsOk?: boolean;
|
|
222
|
+
help?: boolean;
|
|
223
|
+
}
|
|
224
|
+
);
|
|
254
225
|
}
|
|
255
226
|
|
|
256
|
-
export class CreateEditDialog<T> extends
|
|
227
|
+
export class CreateEditDialog<T> extends InteractiveDialog {
|
|
257
228
|
component: string;
|
|
258
229
|
componentProps: {
|
|
259
230
|
model: T;
|
|
260
231
|
[key: string]: unknown;
|
|
261
232
|
};
|
|
262
|
-
loading?: boolean;
|
|
263
|
-
fullHeight?: boolean;
|
|
264
|
-
width?: string | number;
|
|
265
|
-
height?: string | number;
|
|
266
|
-
hideFooter?: boolean;
|
|
267
|
-
darkTitle?: boolean;
|
|
268
|
-
closable?: boolean;
|
|
269
233
|
expandable?: boolean;
|
|
270
234
|
minimizable?: boolean;
|
|
271
235
|
collapsedSize?: {
|
|
@@ -281,43 +245,30 @@ export class CreateEditDialog<T> extends Dialog {
|
|
|
281
245
|
expanded?: boolean;
|
|
282
246
|
description?: string;
|
|
283
247
|
noModal?: boolean;
|
|
284
|
-
okTitle?: string;
|
|
285
|
-
cancelTitle?: string;
|
|
286
248
|
help?: boolean;
|
|
287
|
-
constructor(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
expandedSize?: {
|
|
309
|
-
width: string | number;
|
|
310
|
-
height: string | number;
|
|
249
|
+
constructor(
|
|
250
|
+
data: IInterativeDialogProps & {
|
|
251
|
+
component: string;
|
|
252
|
+
componentProps: {
|
|
253
|
+
model: T;
|
|
254
|
+
[key: string]: unknown;
|
|
255
|
+
};
|
|
256
|
+
expandable?: boolean;
|
|
257
|
+
minimizable?: boolean;
|
|
258
|
+
collapsedSize?: {
|
|
259
|
+
width: string | number;
|
|
260
|
+
height: string | number;
|
|
261
|
+
noModal?: boolean;
|
|
262
|
+
};
|
|
263
|
+
expandedSize?: {
|
|
264
|
+
width: string | number;
|
|
265
|
+
height: string | number;
|
|
266
|
+
noModal?: boolean;
|
|
267
|
+
};
|
|
268
|
+
expanded?: boolean;
|
|
269
|
+
description?: string;
|
|
311
270
|
noModal?: boolean;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
noModal?: boolean;
|
|
316
|
-
okTitle?: string;
|
|
317
|
-
cancelTitle?: string;
|
|
318
|
-
pressEnterAsOk?: boolean;
|
|
319
|
-
pressEscAsCancel?: boolean;
|
|
320
|
-
hostObject?: IHostObject;
|
|
321
|
-
help?: boolean;
|
|
322
|
-
});
|
|
271
|
+
help?: boolean;
|
|
272
|
+
}
|
|
273
|
+
);
|
|
323
274
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -32,7 +32,9 @@
|
|
|
32
32
|
"@babel/plugin-transform-typescript": "7.28.0",
|
|
33
33
|
"@babel/preset-env": "7.28.3",
|
|
34
34
|
"@babel/preset-typescript": "7.27.1",
|
|
35
|
+
"@ldmjs/datatable": "2.0.2",
|
|
35
36
|
"@ldmjs/editor": "2.0.0",
|
|
37
|
+
"@ldmjs/treeview": "2.0.3",
|
|
36
38
|
"@popperjs/core": "2.11.8",
|
|
37
39
|
"@types/babel__core": "7.20.5",
|
|
38
40
|
"@types/babel__plugin-transform-runtime": "7.9.5",
|
|
@@ -100,9 +102,7 @@
|
|
|
100
102
|
"webpack-plugin-vuetify": "3.1.2"
|
|
101
103
|
},
|
|
102
104
|
"dependencies": {
|
|
103
|
-
"@ldmjs/core": "2.0.1"
|
|
104
|
-
"@ldmjs/datatable": "2.0.1",
|
|
105
|
-
"@ldmjs/treeview": "2.0.3"
|
|
105
|
+
"@ldmjs/core": "2.0.1"
|
|
106
106
|
},
|
|
107
107
|
"volta": {
|
|
108
108
|
"node": "22.15.0",
|