@openremote/or-asset-tree 1.24.0 → 1.24.1
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/custom-elements-jsx.d.ts +298 -128
- package/dist/umd/index.bundle.js +10 -10
- package/dist/umd/index.bundle.js.map +1 -1
- package/dist/umd/index.js +10 -10
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.orbundle.js +25 -25
- package/dist/umd/index.orbundle.js.map +1 -1
- package/lib/or-add-asset-dialog.js +10 -10
- package/lib/or-add-asset-dialog.js.map +1 -1
- package/package.json +7 -6
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type {
|
|
2
|
+
style,
|
|
3
|
+
OrAssetTreeRequestSelectionEvent,
|
|
4
|
+
OrAssetTreeSelectionEvent,
|
|
5
|
+
OrAssetTreeChangeParentEvent,
|
|
6
|
+
OrAssetTreeToggleExpandEvent,
|
|
7
|
+
OrAssetTreeRequestAddEvent,
|
|
8
|
+
OrAssetTreeAddEvent,
|
|
9
|
+
OrAssetTreeRequestDeleteEvent,
|
|
10
|
+
OrAssetTreeAssetEvent,
|
|
11
|
+
OrAssetTreeFilter,
|
|
12
|
+
OrAssetTree,
|
|
13
|
+
} from "./lib/index.d.ts";
|
|
14
|
+
import type {
|
|
15
|
+
OrAddChangedEvent,
|
|
16
|
+
OrAddAssetDialog,
|
|
17
|
+
} from "./lib/or-add-asset-dialog.d.ts";
|
|
4
18
|
|
|
5
19
|
/**
|
|
6
20
|
* This type can be used to create scoped tags for your components.
|
|
@@ -28,7 +42,6 @@ export type ScopedElements<
|
|
|
28
42
|
};
|
|
29
43
|
|
|
30
44
|
type BaseProps<T extends HTMLElement> = {
|
|
31
|
-
|
|
32
45
|
/** Content added between the opening and closing tags of the element */
|
|
33
46
|
children?: any;
|
|
34
47
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -51,6 +64,8 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
51
64
|
key?: string | number;
|
|
52
65
|
/** Specifies the language of the element. */
|
|
53
66
|
lang?: string;
|
|
67
|
+
/** Defines the element's semantic role for accessibility APIs. */
|
|
68
|
+
role?: string;
|
|
54
69
|
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
55
70
|
part?: string;
|
|
56
71
|
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
@@ -71,211 +86,366 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
71
86
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
72
87
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
73
88
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
74
|
-
|
|
75
|
-
} ;
|
|
76
|
-
|
|
77
|
-
type BaseEvents = {
|
|
78
|
-
|
|
79
|
-
|
|
80
89
|
};
|
|
81
90
|
|
|
82
|
-
|
|
91
|
+
type BaseEvents = {};
|
|
83
92
|
|
|
84
93
|
export type OrAssetTreeProps = {
|
|
85
94
|
/** Allows arbitrary assets to be displayed using a tree */
|
|
86
|
-
|
|
95
|
+
assets?: OrAssetTree["assets"];
|
|
87
96
|
/** */
|
|
88
|
-
|
|
97
|
+
rootAssets?: OrAssetTree["rootAssets"];
|
|
89
98
|
/** */
|
|
90
|
-
|
|
99
|
+
rootAssetIds?: OrAssetTree["rootAssetIds"];
|
|
91
100
|
/** */
|
|
92
|
-
|
|
101
|
+
dataProvider?: OrAssetTree["dataProvider"];
|
|
93
102
|
/** */
|
|
94
|
-
|
|
103
|
+
readonly?: OrAssetTree["readonly"];
|
|
95
104
|
/** */
|
|
96
|
-
|
|
105
|
+
disabled?: OrAssetTree["disabled"];
|
|
97
106
|
/** */
|
|
98
|
-
|
|
107
|
+
disableSubscribe?: OrAssetTree["disableSubscribe"];
|
|
99
108
|
/** */
|
|
100
|
-
|
|
109
|
+
selectedIds?: OrAssetTree["selectedIds"];
|
|
101
110
|
/** */
|
|
102
|
-
|
|
111
|
+
showDeselectBtn?: OrAssetTree["showDeselectBtn"];
|
|
103
112
|
/** */
|
|
104
|
-
|
|
113
|
+
showSortBtn?: OrAssetTree["showSortBtn"];
|
|
105
114
|
/** */
|
|
106
|
-
|
|
115
|
+
showFilter?: OrAssetTree["showFilter"];
|
|
107
116
|
/** */
|
|
108
|
-
|
|
117
|
+
showFilterIcon?: OrAssetTree["showFilterIcon"];
|
|
109
118
|
/** */
|
|
110
|
-
|
|
119
|
+
sortBy?: OrAssetTree["sortBy"];
|
|
111
120
|
/** */
|
|
112
|
-
|
|
121
|
+
expandAllNodes?: OrAssetTree["expandAllNodes"];
|
|
113
122
|
/** */
|
|
114
|
-
|
|
123
|
+
checkboxes?: OrAssetTree["checkboxes"];
|
|
115
124
|
/** */
|
|
116
|
-
|
|
125
|
+
queryLimit?: OrAssetTree["queryLimit"];
|
|
117
126
|
/** */
|
|
118
|
-
|
|
127
|
+
paginationThreshold?: OrAssetTree["paginationThreshold"];
|
|
119
128
|
/** */
|
|
120
|
-
|
|
129
|
+
selectedNodes?: OrAssetTree["selectedNodes"];
|
|
121
130
|
|
|
122
131
|
/** */
|
|
123
|
-
|
|
132
|
+
onassetEvent?: (e: OrAssetTreeAssetEvent) => void;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type OrAssetTreeSolidJsProps = {
|
|
136
|
+
/** Allows arbitrary assets to be displayed using a tree */
|
|
137
|
+
"prop:assets"?: OrAssetTree["assets"];
|
|
124
138
|
/** */
|
|
125
|
-
"
|
|
126
|
-
|
|
139
|
+
"prop:rootAssets"?: OrAssetTree["rootAssets"];
|
|
140
|
+
/** */
|
|
141
|
+
"prop:rootAssetIds"?: OrAssetTree["rootAssetIds"];
|
|
142
|
+
/** */
|
|
143
|
+
"prop:dataProvider"?: OrAssetTree["dataProvider"];
|
|
144
|
+
/** */
|
|
145
|
+
"prop:readonly"?: OrAssetTree["readonly"];
|
|
146
|
+
/** */
|
|
147
|
+
"prop:disabled"?: OrAssetTree["disabled"];
|
|
148
|
+
/** */
|
|
149
|
+
"prop:disableSubscribe"?: OrAssetTree["disableSubscribe"];
|
|
150
|
+
/** */
|
|
151
|
+
"prop:selectedIds"?: OrAssetTree["selectedIds"];
|
|
152
|
+
/** */
|
|
153
|
+
"prop:showDeselectBtn"?: OrAssetTree["showDeselectBtn"];
|
|
154
|
+
/** */
|
|
155
|
+
"prop:showSortBtn"?: OrAssetTree["showSortBtn"];
|
|
156
|
+
/** */
|
|
157
|
+
"prop:showFilter"?: OrAssetTree["showFilter"];
|
|
158
|
+
/** */
|
|
159
|
+
"prop:showFilterIcon"?: OrAssetTree["showFilterIcon"];
|
|
160
|
+
/** */
|
|
161
|
+
"prop:sortBy"?: OrAssetTree["sortBy"];
|
|
162
|
+
/** */
|
|
163
|
+
"prop:expandAllNodes"?: OrAssetTree["expandAllNodes"];
|
|
164
|
+
/** */
|
|
165
|
+
"prop:checkboxes"?: OrAssetTree["checkboxes"];
|
|
166
|
+
/** */
|
|
167
|
+
"prop:queryLimit"?: OrAssetTree["queryLimit"];
|
|
168
|
+
/** */
|
|
169
|
+
"prop:paginationThreshold"?: OrAssetTree["paginationThreshold"];
|
|
170
|
+
/** */
|
|
171
|
+
"prop:selectedNodes"?: OrAssetTree["selectedNodes"];
|
|
172
|
+
/** */
|
|
173
|
+
"on:assetEvent"?: (e: OrAssetTreeAssetEvent) => void;
|
|
127
174
|
|
|
175
|
+
/** Set the innerHTML of the element */
|
|
176
|
+
innerHTML?: string;
|
|
177
|
+
/** Set the textContent of the element */
|
|
178
|
+
textContent?: string | number;
|
|
179
|
+
};
|
|
128
180
|
|
|
129
181
|
export type OrAddAssetDialogProps = {
|
|
130
182
|
/** */
|
|
131
|
-
|
|
183
|
+
typeFilter?: OrAddAssetDialog["typeFilter"];
|
|
132
184
|
/** */
|
|
133
|
-
|
|
185
|
+
config?: OrAddAssetDialog["config"];
|
|
134
186
|
/** */
|
|
135
|
-
|
|
187
|
+
agentTypes?: OrAddAssetDialog["agentTypes"];
|
|
136
188
|
/** */
|
|
137
|
-
|
|
189
|
+
assetTypes?: OrAddAssetDialog["assetTypes"];
|
|
138
190
|
/** */
|
|
139
|
-
|
|
191
|
+
parent?: OrAddAssetDialog["parent"];
|
|
140
192
|
/** */
|
|
141
|
-
|
|
193
|
+
selectedType?: OrAddAssetDialog["selectedType"];
|
|
142
194
|
/** */
|
|
143
|
-
|
|
195
|
+
selectedAttributes?: OrAddAssetDialog["selectedAttributes"];
|
|
144
196
|
/** */
|
|
145
|
-
|
|
197
|
+
selectedChildAssetType?: OrAddAssetDialog["selectedChildAssetType"];
|
|
146
198
|
/** */
|
|
147
|
-
|
|
199
|
+
name?: OrAddAssetDialog["name"];
|
|
200
|
+
};
|
|
148
201
|
|
|
202
|
+
export type OrAddAssetDialogSolidJsProps = {
|
|
149
203
|
/** */
|
|
150
|
-
"
|
|
151
|
-
|
|
204
|
+
"prop:typeFilter"?: OrAddAssetDialog["typeFilter"];
|
|
205
|
+
/** */
|
|
206
|
+
"prop:config"?: OrAddAssetDialog["config"];
|
|
207
|
+
/** */
|
|
208
|
+
"prop:agentTypes"?: OrAddAssetDialog["agentTypes"];
|
|
209
|
+
/** */
|
|
210
|
+
"prop:assetTypes"?: OrAddAssetDialog["assetTypes"];
|
|
211
|
+
/** */
|
|
212
|
+
"prop:parent"?: OrAddAssetDialog["parent"];
|
|
213
|
+
/** */
|
|
214
|
+
"prop:selectedType"?: OrAddAssetDialog["selectedType"];
|
|
215
|
+
/** */
|
|
216
|
+
"prop:selectedAttributes"?: OrAddAssetDialog["selectedAttributes"];
|
|
217
|
+
/** */
|
|
218
|
+
"prop:selectedChildAssetType"?: OrAddAssetDialog["selectedChildAssetType"];
|
|
219
|
+
/** */
|
|
220
|
+
"prop:name"?: OrAddAssetDialog["name"];
|
|
152
221
|
|
|
153
|
-
|
|
222
|
+
/** Set the innerHTML of the element */
|
|
223
|
+
innerHTML?: string;
|
|
224
|
+
/** Set the textContent of the element */
|
|
225
|
+
textContent?: string | number;
|
|
226
|
+
};
|
|
154
227
|
|
|
228
|
+
export type CustomElements = {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
*
|
|
232
|
+
* ## Attributes & Properties
|
|
233
|
+
*
|
|
234
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
235
|
+
*
|
|
236
|
+
* - `assets`: Allows arbitrary assets to be displayed using a tree
|
|
237
|
+
* - `rootAssets`: undefined
|
|
238
|
+
* - `rootAssetIds`: undefined
|
|
239
|
+
* - `dataProvider`: undefined
|
|
240
|
+
* - `readonly`: undefined
|
|
241
|
+
* - `disabled`: undefined
|
|
242
|
+
* - `disableSubscribe`: undefined
|
|
243
|
+
* - `selectedIds`: undefined
|
|
244
|
+
* - `showDeselectBtn`: undefined
|
|
245
|
+
* - `showSortBtn`: undefined
|
|
246
|
+
* - `showFilter`: undefined
|
|
247
|
+
* - `showFilterIcon`: undefined
|
|
248
|
+
* - `sortBy`: undefined
|
|
249
|
+
* - `expandAllNodes`: undefined
|
|
250
|
+
* - `checkboxes`: undefined
|
|
251
|
+
* - `queryLimit`: undefined
|
|
252
|
+
* - `paginationThreshold`: undefined
|
|
253
|
+
* - `selectedNodes`: undefined (property only)
|
|
254
|
+
*
|
|
255
|
+
* ## Events
|
|
256
|
+
*
|
|
257
|
+
* Events that will be emitted by the component.
|
|
258
|
+
*
|
|
259
|
+
* - `undefined`: undefined
|
|
260
|
+
* - `assetEvent`: undefined
|
|
261
|
+
*
|
|
262
|
+
* ## Methods
|
|
263
|
+
*
|
|
264
|
+
* Methods that can be called to access component functionality.
|
|
265
|
+
*
|
|
266
|
+
* - `refresh() => void`: undefined
|
|
267
|
+
* - `isAncestorSelected(node: UiAssetTreeNode) => void`: undefined
|
|
268
|
+
* - `applyFilter(filter?: OrAssetTreeFilter | string, reflect = false) => void`: A setter function for updating the list of nodes (assets) shown in the UI.
|
|
269
|
+
* - `_addEventSubscriptions() => Promise<void>`: undefined
|
|
270
|
+
* - `onEventsConnect() => void`: undefined
|
|
271
|
+
* - `onEventsDisconnect() => void`: undefined
|
|
272
|
+
* - `getNodes() => UiAssetTreeNode[]`: undefined
|
|
273
|
+
* - `_onEvent(event: SharedEvent) => void`: undefined
|
|
274
|
+
* - `_onDragStart(ev: any) => void`: undefined
|
|
275
|
+
* - `_onDragEnd(ev: any) => void`: undefined
|
|
276
|
+
* - `_onDragOver(ev: any) => void`: undefined
|
|
277
|
+
* - `_onDragEnter(ev: any) => void`: undefined
|
|
278
|
+
* - `_onDragLeave(ev: any) => void`: undefined
|
|
279
|
+
*/
|
|
280
|
+
"or-asset-tree": Partial<
|
|
281
|
+
OrAssetTreeProps & BaseProps<OrAssetTree> & BaseEvents
|
|
282
|
+
>;
|
|
155
283
|
|
|
156
284
|
/**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*
|
|
184
|
-
* Events that will be emitted by the component.
|
|
185
|
-
*
|
|
186
|
-
* - `undefined`: undefined
|
|
187
|
-
* - `assetEvent`: undefined
|
|
188
|
-
*
|
|
189
|
-
* ## Methods
|
|
190
|
-
*
|
|
191
|
-
* Methods that can be called to access component functionality.
|
|
192
|
-
*
|
|
193
|
-
* - `refresh() => void`: undefined
|
|
194
|
-
* - `isAncestorSelected(node: UiAssetTreeNode) => void`: undefined
|
|
195
|
-
* - `applyFilter(filter?: OrAssetTreeFilter | string, reflect = false) => void`: A setter function for updating the list of nodes (assets) shown in the UI.
|
|
196
|
-
* - `_addEventSubscriptions() => Promise<void>`: undefined
|
|
197
|
-
* - `onEventsConnect() => void`: undefined
|
|
198
|
-
* - `onEventsDisconnect() => void`: undefined
|
|
199
|
-
* - `getNodes() => UiAssetTreeNode[]`: undefined
|
|
200
|
-
* - `_onEvent(event: SharedEvent) => void`: undefined
|
|
201
|
-
* - `_onDragStart(ev: any) => void`: undefined
|
|
202
|
-
* - `_onDragEnd(ev: any) => void`: undefined
|
|
203
|
-
* - `_onDragOver(ev: any) => void`: undefined
|
|
204
|
-
* - `_onDragEnter(ev: any) => void`: undefined
|
|
205
|
-
* - `_onDragLeave(ev: any) => void`: undefined
|
|
206
|
-
*/
|
|
207
|
-
"or-asset-tree": Partial<OrAssetTreeProps & BaseProps<OrAssetTree> & BaseEvents>;
|
|
285
|
+
*
|
|
286
|
+
*
|
|
287
|
+
* ## Attributes & Properties
|
|
288
|
+
*
|
|
289
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
290
|
+
*
|
|
291
|
+
* - `typeFilter`: undefined
|
|
292
|
+
* - `config`: undefined (property only)
|
|
293
|
+
* - `agentTypes`: undefined (property only)
|
|
294
|
+
* - `assetTypes`: undefined (property only)
|
|
295
|
+
* - `parent`: undefined (property only)
|
|
296
|
+
* - `selectedType`: undefined (property only)
|
|
297
|
+
* - `selectedAttributes`: undefined (property only)
|
|
298
|
+
* - `selectedChildAssetType`: undefined (property only)
|
|
299
|
+
* - `name`: undefined (property only)
|
|
300
|
+
*
|
|
301
|
+
* ## Events
|
|
302
|
+
*
|
|
303
|
+
* Events that will be emitted by the component.
|
|
304
|
+
*
|
|
305
|
+
* - `undefined`: undefined
|
|
306
|
+
*/
|
|
307
|
+
"or-add-asset-dialog": Partial<
|
|
308
|
+
OrAddAssetDialogProps & BaseProps<OrAddAssetDialog> & BaseEvents
|
|
309
|
+
>;
|
|
310
|
+
};
|
|
208
311
|
|
|
312
|
+
export type CustomElementsSolidJs = {
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
*
|
|
316
|
+
* ## Attributes & Properties
|
|
317
|
+
*
|
|
318
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
319
|
+
*
|
|
320
|
+
* - `assets`: Allows arbitrary assets to be displayed using a tree
|
|
321
|
+
* - `rootAssets`: undefined
|
|
322
|
+
* - `rootAssetIds`: undefined
|
|
323
|
+
* - `dataProvider`: undefined
|
|
324
|
+
* - `readonly`: undefined
|
|
325
|
+
* - `disabled`: undefined
|
|
326
|
+
* - `disableSubscribe`: undefined
|
|
327
|
+
* - `selectedIds`: undefined
|
|
328
|
+
* - `showDeselectBtn`: undefined
|
|
329
|
+
* - `showSortBtn`: undefined
|
|
330
|
+
* - `showFilter`: undefined
|
|
331
|
+
* - `showFilterIcon`: undefined
|
|
332
|
+
* - `sortBy`: undefined
|
|
333
|
+
* - `expandAllNodes`: undefined
|
|
334
|
+
* - `checkboxes`: undefined
|
|
335
|
+
* - `queryLimit`: undefined
|
|
336
|
+
* - `paginationThreshold`: undefined
|
|
337
|
+
* - `selectedNodes`: undefined (property only)
|
|
338
|
+
*
|
|
339
|
+
* ## Events
|
|
340
|
+
*
|
|
341
|
+
* Events that will be emitted by the component.
|
|
342
|
+
*
|
|
343
|
+
* - `undefined`: undefined
|
|
344
|
+
* - `assetEvent`: undefined
|
|
345
|
+
*
|
|
346
|
+
* ## Methods
|
|
347
|
+
*
|
|
348
|
+
* Methods that can be called to access component functionality.
|
|
349
|
+
*
|
|
350
|
+
* - `refresh() => void`: undefined
|
|
351
|
+
* - `isAncestorSelected(node: UiAssetTreeNode) => void`: undefined
|
|
352
|
+
* - `applyFilter(filter?: OrAssetTreeFilter | string, reflect = false) => void`: A setter function for updating the list of nodes (assets) shown in the UI.
|
|
353
|
+
* - `_addEventSubscriptions() => Promise<void>`: undefined
|
|
354
|
+
* - `onEventsConnect() => void`: undefined
|
|
355
|
+
* - `onEventsDisconnect() => void`: undefined
|
|
356
|
+
* - `getNodes() => UiAssetTreeNode[]`: undefined
|
|
357
|
+
* - `_onEvent(event: SharedEvent) => void`: undefined
|
|
358
|
+
* - `_onDragStart(ev: any) => void`: undefined
|
|
359
|
+
* - `_onDragEnd(ev: any) => void`: undefined
|
|
360
|
+
* - `_onDragOver(ev: any) => void`: undefined
|
|
361
|
+
* - `_onDragEnter(ev: any) => void`: undefined
|
|
362
|
+
* - `_onDragLeave(ev: any) => void`: undefined
|
|
363
|
+
*/
|
|
364
|
+
"or-asset-tree": Partial<
|
|
365
|
+
OrAssetTreeProps &
|
|
366
|
+
OrAssetTreeSolidJsProps &
|
|
367
|
+
BaseProps<OrAssetTree> &
|
|
368
|
+
BaseEvents
|
|
369
|
+
>;
|
|
209
370
|
|
|
210
371
|
/**
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
372
|
+
*
|
|
373
|
+
*
|
|
374
|
+
* ## Attributes & Properties
|
|
375
|
+
*
|
|
376
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
377
|
+
*
|
|
378
|
+
* - `typeFilter`: undefined
|
|
379
|
+
* - `config`: undefined (property only)
|
|
380
|
+
* - `agentTypes`: undefined (property only)
|
|
381
|
+
* - `assetTypes`: undefined (property only)
|
|
382
|
+
* - `parent`: undefined (property only)
|
|
383
|
+
* - `selectedType`: undefined (property only)
|
|
384
|
+
* - `selectedAttributes`: undefined (property only)
|
|
385
|
+
* - `selectedChildAssetType`: undefined (property only)
|
|
386
|
+
* - `name`: undefined (property only)
|
|
387
|
+
*
|
|
388
|
+
* ## Events
|
|
389
|
+
*
|
|
390
|
+
* Events that will be emitted by the component.
|
|
391
|
+
*
|
|
392
|
+
* - `undefined`: undefined
|
|
393
|
+
*/
|
|
394
|
+
"or-add-asset-dialog": Partial<
|
|
395
|
+
OrAddAssetDialogProps &
|
|
396
|
+
OrAddAssetDialogSolidJsProps &
|
|
397
|
+
BaseProps<OrAddAssetDialog> &
|
|
398
|
+
BaseEvents
|
|
399
|
+
>;
|
|
400
|
+
};
|
|
235
401
|
|
|
236
|
-
export type CustomCssProperties = {
|
|
402
|
+
export type CustomCssProperties = {};
|
|
237
403
|
|
|
404
|
+
declare module "react" {
|
|
405
|
+
namespace JSX {
|
|
406
|
+
interface IntrinsicElements extends CustomElements {}
|
|
407
|
+
}
|
|
408
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
238
409
|
}
|
|
239
410
|
|
|
240
|
-
|
|
241
|
-
declare module 'react' {
|
|
411
|
+
declare module "preact" {
|
|
242
412
|
namespace JSX {
|
|
243
413
|
interface IntrinsicElements extends CustomElements {}
|
|
244
414
|
}
|
|
245
415
|
export interface CSSProperties extends CustomCssProperties {}
|
|
246
416
|
}
|
|
247
417
|
|
|
248
|
-
declare module
|
|
418
|
+
declare module "@builder.io/qwik" {
|
|
249
419
|
namespace JSX {
|
|
250
420
|
interface IntrinsicElements extends CustomElements {}
|
|
251
421
|
}
|
|
252
422
|
export interface CSSProperties extends CustomCssProperties {}
|
|
253
423
|
}
|
|
254
424
|
|
|
255
|
-
declare module
|
|
425
|
+
declare module "@stencil/core" {
|
|
256
426
|
namespace JSX {
|
|
257
427
|
interface IntrinsicElements extends CustomElements {}
|
|
258
428
|
}
|
|
259
429
|
export interface CSSProperties extends CustomCssProperties {}
|
|
260
430
|
}
|
|
261
431
|
|
|
262
|
-
declare module
|
|
432
|
+
declare module "hono/jsx" {
|
|
263
433
|
namespace JSX {
|
|
264
434
|
interface IntrinsicElements extends CustomElements {}
|
|
265
435
|
}
|
|
266
436
|
export interface CSSProperties extends CustomCssProperties {}
|
|
267
437
|
}
|
|
268
438
|
|
|
269
|
-
declare module
|
|
439
|
+
declare module "react-native" {
|
|
270
440
|
namespace JSX {
|
|
271
441
|
interface IntrinsicElements extends CustomElements {}
|
|
272
442
|
}
|
|
273
443
|
export interface CSSProperties extends CustomCssProperties {}
|
|
274
444
|
}
|
|
275
445
|
|
|
276
|
-
declare module
|
|
446
|
+
declare module "solid-js" {
|
|
277
447
|
namespace JSX {
|
|
278
|
-
interface IntrinsicElements extends
|
|
448
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
279
449
|
}
|
|
280
450
|
export interface CSSProperties extends CustomCssProperties {}
|
|
281
451
|
}
|
package/dist/umd/index.bundle.js
CHANGED
|
@@ -256,9 +256,9 @@
|
|
|
256
256
|
<or-translate id="type-description" .value="${s.Util.getAssetTypeLabel(t)}"></or-translate>
|
|
257
257
|
</div>
|
|
258
258
|
<div id="name-wrapper">
|
|
259
|
-
<or-mwc-input id="name-input" .type="${a.NZ.TEXT}" min="1" max="1023" required
|
|
259
|
+
<or-mwc-input id="name-input" .type="${a.NZ.TEXT}" min="1" max="1023" required label="${d.i18next.t("name")}" .value="${this.name}" @or-mwc-input-changed="${t=>this.onNameChanged(t.detail.value)}"></or-mwc-input>
|
|
260
260
|
<div id="parent-wrapper">
|
|
261
|
-
<or-mwc-input id="parent" .type="${a.NZ.TEXT}" readonly
|
|
261
|
+
<or-mwc-input id="parent" .type="${a.NZ.TEXT}" readonly label="${d.i18next.t("parent")}" .value="${e}" @click="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
|
|
262
262
|
<or-mwc-input id="remove-parent" ?disabled="${!this.parent}" type="${a.NZ.BUTTON}" icon="close" @or-mwc-input-changed="${()=>this._onDeselectClicked()}"></or-mwc-input>
|
|
263
263
|
<or-mwc-input id="toggle-parent-selector" icon="${this.showParentAssetSelector?"pencil-off":"pencil"}" type="${a.NZ.BUTTON}" @or-mwc-input-changed="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
|
|
264
264
|
</div>
|
|
@@ -266,10 +266,10 @@
|
|
|
266
266
|
|
|
267
267
|
${!c?(0,i.qy)``:(0,i.qy)`
|
|
268
268
|
<div>
|
|
269
|
-
<div class="heading"
|
|
269
|
+
<div class="heading"><or-translate value="attribute_plural"></or-translate></div>
|
|
270
270
|
<div style="display: grid">
|
|
271
|
-
${c.sort(s.Util.sortByString(t=>t.name)).map(
|
|
272
|
-
<or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,t
|
|
271
|
+
${c.sort(s.Util.sortByString(t=>t.name)).map(e=>(0,i.qy)`
|
|
272
|
+
<or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,e,t.name,!0)}"
|
|
273
273
|
.disabled="${!0}" .value="${!0}"></or-mwc-input>
|
|
274
274
|
`)}
|
|
275
275
|
</div>
|
|
@@ -277,12 +277,12 @@
|
|
|
277
277
|
|
|
278
278
|
${!m?(0,i.qy)``:(0,i.qy)`
|
|
279
279
|
<div>
|
|
280
|
-
<div class="heading"
|
|
280
|
+
<div class="heading"><or-translate value="optional_attributes"></or-translate></div>
|
|
281
281
|
<div style="display: grid">
|
|
282
|
-
${m.sort(s.Util.sortByString(t=>t.name)).map(
|
|
283
|
-
<or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,t
|
|
284
|
-
.value="${this.selectedAttributes.find(
|
|
285
|
-
@or-mwc-input-changed="${
|
|
282
|
+
${m.sort(s.Util.sortByString(t=>t.name)).map(e=>(0,i.qy)`
|
|
283
|
+
<or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,e,t.name,!0)}"
|
|
284
|
+
.value="${this.selectedAttributes.find(t=>t===e)}"
|
|
285
|
+
@or-mwc-input-changed="${t=>t.detail.value?this.selectedAttributes.push(e):this.selectedAttributes.splice(this.selectedAttributes.findIndex(t=>t===e),1)}"></or-mwc-input>
|
|
286
286
|
`)}
|
|
287
287
|
</div>
|
|
288
288
|
</div>
|