@genesislcap/foundation-entity-management 14.150.1 → 14.151.0
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/custom-elements.json +601 -576
- package/dist/dts/entities/entities.d.ts +9 -4
- package/dist/dts/entities/entities.d.ts.map +1 -1
- package/dist/dts/users/users.d.ts +13 -0
- package/dist/dts/users/users.d.ts.map +1 -1
- package/dist/esm/entities/entities.js +32 -0
- package/dist/esm/users/users.js +8 -0
- package/dist/esm/users/users.template.js +1 -1
- package/dist/foundation-entity-management.api.json +31 -1
- package/dist/foundation-entity-management.d.ts +22 -4
- package/docs/api/foundation-entity-management.entitymanagement.enablesearchbar.md +2 -0
- package/docs/api/foundation-entity-management.entitymanagement.md +1 -1
- package/docs/api/foundation-entity-management.users.enablesearchbar.md +13 -0
- package/docs/api/foundation-entity-management.users.md +1 -0
- package/docs/api-report.md +1 -1
- package/package.json +21 -21
|
@@ -89,7 +89,27 @@
|
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"kind": "javascript-module",
|
|
92
|
-
"path": "src/
|
|
92
|
+
"path": "src/components/components.ts",
|
|
93
|
+
"declarations": [
|
|
94
|
+
{
|
|
95
|
+
"kind": "function",
|
|
96
|
+
"name": "loadRemotes"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"exports": [
|
|
100
|
+
{
|
|
101
|
+
"kind": "js",
|
|
102
|
+
"name": "loadRemotes",
|
|
103
|
+
"declaration": {
|
|
104
|
+
"name": "loadRemotes",
|
|
105
|
+
"module": "src/components/components.ts"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "javascript-module",
|
|
112
|
+
"path": "src/components/index.ts",
|
|
93
113
|
"declarations": [],
|
|
94
114
|
"exports": [
|
|
95
115
|
{
|
|
@@ -97,176 +117,206 @@
|
|
|
97
117
|
"name": "*",
|
|
98
118
|
"declaration": {
|
|
99
119
|
"name": "*",
|
|
100
|
-
"package": "./
|
|
120
|
+
"package": "./components"
|
|
101
121
|
}
|
|
102
122
|
}
|
|
103
123
|
]
|
|
104
124
|
},
|
|
105
125
|
{
|
|
106
126
|
"kind": "javascript-module",
|
|
107
|
-
"path": "src/
|
|
127
|
+
"path": "src/entities/entities.styles.ts",
|
|
108
128
|
"declarations": [
|
|
109
129
|
{
|
|
110
130
|
"kind": "variable",
|
|
111
|
-
"name": "
|
|
112
|
-
"default": "css`\n :host {\n contain: content;\n }\n\n
|
|
131
|
+
"name": "styles",
|
|
132
|
+
"default": "css`\n :host {\n contain: content;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n\n foundation-form {\n height: 100%;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n\n .title {\n margin-left: 1px;\n }\n\n :host::part(header) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .search-container {\n display: flex;\n align-items: center;\n }\n\n .search-container zero-search-bar {\n width: 500px;\n }\n`",
|
|
133
|
+
"description": "Defines the css of the entity component as an ElementStyles object"
|
|
113
134
|
}
|
|
114
135
|
],
|
|
115
136
|
"exports": [
|
|
116
137
|
{
|
|
117
138
|
"kind": "js",
|
|
118
|
-
"name": "
|
|
139
|
+
"name": "styles",
|
|
119
140
|
"declaration": {
|
|
120
|
-
"name": "
|
|
121
|
-
"module": "src/
|
|
141
|
+
"name": "styles",
|
|
142
|
+
"module": "src/entities/entities.styles.ts"
|
|
122
143
|
}
|
|
123
144
|
}
|
|
124
145
|
]
|
|
125
146
|
},
|
|
126
147
|
{
|
|
127
148
|
"kind": "javascript-module",
|
|
128
|
-
"path": "src/
|
|
149
|
+
"path": "src/entities/entities.template.ts",
|
|
129
150
|
"declarations": [
|
|
130
151
|
{
|
|
131
152
|
"kind": "variable",
|
|
132
|
-
"name": "
|
|
133
|
-
"default": "html<
|
|
153
|
+
"name": "template",
|
|
154
|
+
"default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${(x) => x.headerTempalate}</slot>\n <entity-list\n title=${(x) => x.title}\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n header-case-type=${(x) => x.headerCaseType}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n :renderers=${(x) => x.formRenderers}\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n readonly=${(x) => x.readonly}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n ></foundation-form>\n `,\n )}\n </slot>\n </zero-modal>\n </div>\n`",
|
|
155
|
+
"description": "Defines the html of the entity component as a ViewTemplate object"
|
|
134
156
|
}
|
|
135
157
|
],
|
|
136
158
|
"exports": [
|
|
137
159
|
{
|
|
138
160
|
"kind": "js",
|
|
139
|
-
"name": "
|
|
161
|
+
"name": "template",
|
|
140
162
|
"declaration": {
|
|
141
|
-
"name": "
|
|
142
|
-
"module": "src/
|
|
163
|
+
"name": "template",
|
|
164
|
+
"module": "src/entities/entities.template.ts"
|
|
143
165
|
}
|
|
144
166
|
}
|
|
145
167
|
]
|
|
146
168
|
},
|
|
147
169
|
{
|
|
148
170
|
"kind": "javascript-module",
|
|
149
|
-
"path": "src/
|
|
171
|
+
"path": "src/entities/entities.ts",
|
|
150
172
|
"declarations": [
|
|
151
173
|
{
|
|
152
174
|
"kind": "class",
|
|
153
|
-
"description": "",
|
|
154
|
-
"name": "
|
|
175
|
+
"description": "Main class which defines the entity management functionality",
|
|
176
|
+
"name": "EntityManagement",
|
|
155
177
|
"members": [
|
|
156
178
|
{
|
|
157
179
|
"kind": "field",
|
|
158
|
-
"name": "
|
|
180
|
+
"name": "connect",
|
|
159
181
|
"type": {
|
|
160
|
-
"text": "
|
|
182
|
+
"text": "Connect"
|
|
161
183
|
},
|
|
162
|
-
"
|
|
184
|
+
"privacy": "protected",
|
|
185
|
+
"description": "DI connect object which is used to interact with the backend."
|
|
163
186
|
},
|
|
164
187
|
{
|
|
165
188
|
"kind": "field",
|
|
166
|
-
"name": "
|
|
189
|
+
"name": "resourceName",
|
|
167
190
|
"type": {
|
|
168
191
|
"text": "string"
|
|
169
192
|
},
|
|
170
|
-
"
|
|
193
|
+
"description": "Name of the backend resource which contain the entities to manage",
|
|
194
|
+
"privacy": "public"
|
|
171
195
|
},
|
|
172
196
|
{
|
|
173
197
|
"kind": "field",
|
|
174
|
-
"name": "
|
|
198
|
+
"name": "readEvent",
|
|
175
199
|
"type": {
|
|
176
200
|
"text": "string"
|
|
177
201
|
}
|
|
178
202
|
},
|
|
179
203
|
{
|
|
180
204
|
"kind": "field",
|
|
181
|
-
"name": "
|
|
205
|
+
"name": "readEventFn",
|
|
182
206
|
"type": {
|
|
183
|
-
"text": "
|
|
207
|
+
"text": "(...args) => {}"
|
|
184
208
|
}
|
|
185
209
|
},
|
|
186
210
|
{
|
|
187
211
|
"kind": "field",
|
|
188
|
-
"name": "
|
|
212
|
+
"name": "readonly",
|
|
189
213
|
"type": {
|
|
190
214
|
"text": "boolean"
|
|
191
215
|
}
|
|
192
216
|
},
|
|
193
217
|
{
|
|
194
218
|
"kind": "field",
|
|
195
|
-
"name": "
|
|
219
|
+
"name": "updateEvent",
|
|
196
220
|
"type": {
|
|
197
|
-
"text": "
|
|
221
|
+
"text": "string"
|
|
198
222
|
},
|
|
199
|
-
"
|
|
223
|
+
"description": "Name of the event handler on the Genesis server which handles updating the entity",
|
|
224
|
+
"privacy": "public"
|
|
200
225
|
},
|
|
201
226
|
{
|
|
202
227
|
"kind": "field",
|
|
203
|
-
"name": "
|
|
228
|
+
"name": "deleteEvent",
|
|
204
229
|
"type": {
|
|
205
|
-
"text": "
|
|
230
|
+
"text": "string"
|
|
206
231
|
},
|
|
207
|
-
"
|
|
232
|
+
"description": "Name of the event handler on the Genesis server which handles deleting the entity",
|
|
233
|
+
"privacy": "public"
|
|
208
234
|
},
|
|
209
235
|
{
|
|
210
236
|
"kind": "field",
|
|
211
|
-
"name": "
|
|
237
|
+
"name": "createEvent",
|
|
212
238
|
"type": {
|
|
213
|
-
"text": "
|
|
239
|
+
"text": "string"
|
|
214
240
|
},
|
|
215
|
-
"
|
|
241
|
+
"description": "Name of the event handler on the Genesis server which handles creating an entity",
|
|
242
|
+
"privacy": "public"
|
|
216
243
|
},
|
|
217
244
|
{
|
|
218
245
|
"kind": "field",
|
|
219
|
-
"name": "
|
|
246
|
+
"name": "title",
|
|
220
247
|
"type": {
|
|
221
|
-
"text": "
|
|
248
|
+
"text": "string"
|
|
222
249
|
},
|
|
223
|
-
"
|
|
250
|
+
"description": "Title of the grid",
|
|
251
|
+
"privacy": "public"
|
|
224
252
|
},
|
|
225
253
|
{
|
|
226
254
|
"kind": "field",
|
|
227
|
-
"name": "
|
|
255
|
+
"name": "entityLabel",
|
|
256
|
+
"type": {
|
|
257
|
+
"text": "string"
|
|
258
|
+
},
|
|
259
|
+
"default": "''",
|
|
260
|
+
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
261
|
+
"privacy": "public"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "field",
|
|
265
|
+
"name": "asyncAdd",
|
|
228
266
|
"type": {
|
|
229
267
|
"text": "boolean"
|
|
230
268
|
},
|
|
231
|
-
"default": "false"
|
|
269
|
+
"default": "false",
|
|
270
|
+
"description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
|
|
271
|
+
"privacy": "public"
|
|
232
272
|
},
|
|
233
273
|
{
|
|
234
274
|
"kind": "field",
|
|
235
|
-
"name": "
|
|
275
|
+
"name": "asyncRemove",
|
|
236
276
|
"type": {
|
|
237
277
|
"text": "boolean"
|
|
238
278
|
},
|
|
239
|
-
"default": "false"
|
|
279
|
+
"default": "false",
|
|
280
|
+
"description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
|
|
281
|
+
"privacy": "public"
|
|
240
282
|
},
|
|
241
283
|
{
|
|
242
284
|
"kind": "field",
|
|
243
|
-
"name": "
|
|
285
|
+
"name": "asyncUpdate",
|
|
244
286
|
"type": {
|
|
245
287
|
"text": "boolean"
|
|
246
288
|
},
|
|
247
|
-
"default": "
|
|
289
|
+
"default": "true",
|
|
290
|
+
"description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
|
|
291
|
+
"privacy": "public"
|
|
248
292
|
},
|
|
249
293
|
{
|
|
250
294
|
"kind": "field",
|
|
251
|
-
"name": "
|
|
295
|
+
"name": "enableCellFlashing",
|
|
252
296
|
"type": {
|
|
253
|
-
"text": "
|
|
254
|
-
}
|
|
297
|
+
"text": "boolean"
|
|
298
|
+
},
|
|
299
|
+
"default": "false",
|
|
300
|
+
"description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
|
|
301
|
+
"privacy": "public"
|
|
255
302
|
},
|
|
256
303
|
{
|
|
257
304
|
"kind": "field",
|
|
258
|
-
"name": "
|
|
305
|
+
"name": "enableRowFlashing",
|
|
259
306
|
"type": {
|
|
260
|
-
"text": "
|
|
307
|
+
"text": "boolean"
|
|
261
308
|
},
|
|
309
|
+
"default": "false",
|
|
310
|
+
"description": "If true, will enable row flashing for all rows for `add` transactions",
|
|
262
311
|
"privacy": "public"
|
|
263
312
|
},
|
|
264
313
|
{
|
|
265
314
|
"kind": "field",
|
|
266
|
-
"name": "
|
|
315
|
+
"name": "persistColumnStateKey",
|
|
267
316
|
"type": {
|
|
268
|
-
"text": "
|
|
317
|
+
"text": "string"
|
|
269
318
|
},
|
|
319
|
+
"description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
|
|
270
320
|
"privacy": "public"
|
|
271
321
|
},
|
|
272
322
|
{
|
|
@@ -274,108 +324,281 @@
|
|
|
274
324
|
"name": "gridOptions",
|
|
275
325
|
"type": {
|
|
276
326
|
"text": "GridOptions"
|
|
277
|
-
}
|
|
327
|
+
},
|
|
328
|
+
"description": "GridOptions to be passed down from application",
|
|
329
|
+
"privacy": "public"
|
|
278
330
|
},
|
|
279
331
|
{
|
|
280
332
|
"kind": "field",
|
|
281
333
|
"name": "columns",
|
|
282
334
|
"type": {
|
|
283
335
|
"text": "ColDef[]"
|
|
284
|
-
}
|
|
336
|
+
},
|
|
337
|
+
"description": "Array which holds the column definitions.",
|
|
338
|
+
"privacy": "public"
|
|
285
339
|
},
|
|
286
340
|
{
|
|
287
341
|
"kind": "field",
|
|
288
342
|
"name": "datasourceConfig",
|
|
289
343
|
"type": {
|
|
290
344
|
"text": "DatasourceConfiguration"
|
|
291
|
-
}
|
|
345
|
+
},
|
|
346
|
+
"description": "The configuration which is used when interacting with the resource on the backend",
|
|
347
|
+
"privacy": "public"
|
|
292
348
|
},
|
|
293
349
|
{
|
|
294
350
|
"kind": "field",
|
|
295
|
-
"name": "
|
|
351
|
+
"name": "formUiSchema",
|
|
296
352
|
"type": {
|
|
297
|
-
"text": "
|
|
298
|
-
}
|
|
299
|
-
"default": "[]"
|
|
353
|
+
"text": "any"
|
|
354
|
+
}
|
|
300
355
|
},
|
|
301
356
|
{
|
|
302
357
|
"kind": "field",
|
|
303
|
-
"name": "
|
|
358
|
+
"name": "createFormUiSchema",
|
|
304
359
|
"type": {
|
|
305
|
-
"text": "
|
|
360
|
+
"text": "any"
|
|
306
361
|
}
|
|
307
362
|
},
|
|
308
363
|
{
|
|
309
364
|
"kind": "field",
|
|
310
|
-
"name": "
|
|
365
|
+
"name": "updateFormUiSchema",
|
|
311
366
|
"type": {
|
|
312
|
-
"text": "
|
|
367
|
+
"text": "any"
|
|
313
368
|
}
|
|
314
369
|
},
|
|
315
370
|
{
|
|
316
371
|
"kind": "field",
|
|
317
|
-
"name": "
|
|
372
|
+
"name": "formRenderers",
|
|
318
373
|
"type": {
|
|
319
|
-
"text": "
|
|
374
|
+
"text": "RendererEntry[]"
|
|
320
375
|
},
|
|
321
|
-
"
|
|
376
|
+
"default": "renderers",
|
|
377
|
+
"description": "Array with renderers used by foundation-forms",
|
|
378
|
+
"privacy": "public"
|
|
322
379
|
},
|
|
323
380
|
{
|
|
324
|
-
"kind": "
|
|
325
|
-
"name": "
|
|
326
|
-
"
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
"text": "CellEditRequestEvent"
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
]
|
|
381
|
+
"kind": "field",
|
|
382
|
+
"name": "selectedEntity",
|
|
383
|
+
"type": {
|
|
384
|
+
"text": "any"
|
|
385
|
+
},
|
|
386
|
+
"description": "Reference to the currently selected entity from the grid.",
|
|
387
|
+
"privacy": "public"
|
|
335
388
|
},
|
|
336
389
|
{
|
|
337
|
-
"kind": "
|
|
338
|
-
"name": "
|
|
339
|
-
"
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
]
|
|
390
|
+
"kind": "field",
|
|
391
|
+
"name": "editedEntity",
|
|
392
|
+
"type": {
|
|
393
|
+
"text": "any"
|
|
394
|
+
},
|
|
395
|
+
"description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
|
|
396
|
+
"privacy": "public"
|
|
345
397
|
},
|
|
346
398
|
{
|
|
347
|
-
"kind": "
|
|
348
|
-
"name": "
|
|
349
|
-
"
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
"name": "e"
|
|
353
|
-
}
|
|
354
|
-
]
|
|
399
|
+
"kind": "field",
|
|
400
|
+
"name": "submitting",
|
|
401
|
+
"type": {
|
|
402
|
+
"text": "boolean"
|
|
403
|
+
}
|
|
355
404
|
},
|
|
356
405
|
{
|
|
357
|
-
"kind": "
|
|
358
|
-
"name": "
|
|
359
|
-
"
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
"name": "e"
|
|
363
|
-
}
|
|
364
|
-
]
|
|
406
|
+
"kind": "field",
|
|
407
|
+
"name": "defaultEntityValues",
|
|
408
|
+
"type": {
|
|
409
|
+
"text": "any"
|
|
410
|
+
}
|
|
365
411
|
},
|
|
366
412
|
{
|
|
367
413
|
"kind": "field",
|
|
368
|
-
"name": "
|
|
369
|
-
"
|
|
414
|
+
"name": "editDialogTitle",
|
|
415
|
+
"type": {
|
|
416
|
+
"text": "string"
|
|
417
|
+
},
|
|
418
|
+
"description": "String which contains the text of the popup modal when the user is adding or editing an entity"
|
|
370
419
|
},
|
|
371
420
|
{
|
|
372
|
-
"kind": "
|
|
373
|
-
"name": "
|
|
374
|
-
"
|
|
421
|
+
"kind": "field",
|
|
422
|
+
"name": "editModalVisible",
|
|
423
|
+
"type": {
|
|
424
|
+
"text": "boolean"
|
|
425
|
+
},
|
|
426
|
+
"default": "false"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "method",
|
|
430
|
+
"name": "editModalVisibleChanged"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"kind": "field",
|
|
434
|
+
"name": "editEntityModal",
|
|
435
|
+
"type": {
|
|
436
|
+
"text": "any"
|
|
437
|
+
},
|
|
438
|
+
"privacy": "public"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"kind": "field",
|
|
442
|
+
"name": "sizeColumnsToFit",
|
|
443
|
+
"type": {
|
|
444
|
+
"text": "boolean"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "field",
|
|
449
|
+
"name": "enableFilterBar",
|
|
450
|
+
"type": {
|
|
451
|
+
"text": "boolean"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"kind": "field",
|
|
456
|
+
"name": "hideEdit",
|
|
457
|
+
"type": {
|
|
458
|
+
"text": "boolean"
|
|
459
|
+
},
|
|
460
|
+
"default": "false"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"kind": "field",
|
|
464
|
+
"name": "hideDelete",
|
|
465
|
+
"type": {
|
|
466
|
+
"text": "boolean"
|
|
467
|
+
},
|
|
468
|
+
"default": "false"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "field",
|
|
472
|
+
"name": "enableSearchBar",
|
|
473
|
+
"type": {
|
|
474
|
+
"text": "boolean"
|
|
475
|
+
},
|
|
476
|
+
"default": "false",
|
|
477
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
478
|
+
"privacy": "public"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"kind": "field",
|
|
482
|
+
"name": "headerCaseType",
|
|
483
|
+
"type": {
|
|
484
|
+
"text": "GridProCaseType"
|
|
485
|
+
},
|
|
486
|
+
"description": "The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.",
|
|
487
|
+
"privacy": "public"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"kind": "field",
|
|
491
|
+
"name": "searchBarConfig",
|
|
492
|
+
"type": {
|
|
493
|
+
"text": "AvailableOption[]"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"kind": "field",
|
|
498
|
+
"name": "modalPosition",
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "'centre' | 'left' | 'right'"
|
|
501
|
+
},
|
|
502
|
+
"default": "'right'",
|
|
503
|
+
"description": "Determines where the modal dialog will appear on screen",
|
|
504
|
+
"privacy": "public"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"kind": "method",
|
|
508
|
+
"name": "deepClone",
|
|
509
|
+
"return": {
|
|
510
|
+
"type": {
|
|
511
|
+
"text": "Node"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"description": "Override the deepClone method to ensure that observable attributes are cloned",
|
|
515
|
+
"privacy": "public"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"kind": "method",
|
|
519
|
+
"name": "submitEntityChanges",
|
|
520
|
+
"privacy": "public",
|
|
521
|
+
"parameters": [
|
|
375
522
|
{
|
|
376
|
-
"name": "e"
|
|
523
|
+
"name": "e",
|
|
524
|
+
"type": {
|
|
525
|
+
"text": "CustomEvent"
|
|
526
|
+
},
|
|
527
|
+
"description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"kind": "method",
|
|
534
|
+
"name": "readEntity",
|
|
535
|
+
"privacy": "private",
|
|
536
|
+
"parameters": [
|
|
537
|
+
{
|
|
538
|
+
"name": "e",
|
|
539
|
+
"type": {
|
|
540
|
+
"text": "CustomEvent"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"kind": "method",
|
|
547
|
+
"name": "closeModal",
|
|
548
|
+
"privacy": "public"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"kind": "field",
|
|
552
|
+
"name": "headerTempalate",
|
|
553
|
+
"readonly": true
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "method",
|
|
557
|
+
"name": "searchChanged",
|
|
558
|
+
"privacy": "public",
|
|
559
|
+
"parameters": [
|
|
560
|
+
{
|
|
561
|
+
"name": "event",
|
|
562
|
+
"type": {
|
|
563
|
+
"text": "CustomEvent<Array<SelectedOption>>"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"kind": "method",
|
|
570
|
+
"name": "criteriaChanged",
|
|
571
|
+
"privacy": "public",
|
|
572
|
+
"parameters": [
|
|
573
|
+
{
|
|
574
|
+
"name": "e",
|
|
575
|
+
"type": {
|
|
576
|
+
"text": "CustomEvent<string>"
|
|
577
|
+
}
|
|
377
578
|
}
|
|
378
579
|
]
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"kind": "method",
|
|
583
|
+
"name": "submitFailureNotification",
|
|
584
|
+
"privacy": "public",
|
|
585
|
+
"parameters": [
|
|
586
|
+
{
|
|
587
|
+
"name": "e",
|
|
588
|
+
"type": {
|
|
589
|
+
"text": "CustomEvent"
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"kind": "method",
|
|
596
|
+
"name": "confirmDelete"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"kind": "method",
|
|
600
|
+
"name": "showDeleteConfirmation",
|
|
601
|
+
"privacy": "private"
|
|
379
602
|
}
|
|
380
603
|
],
|
|
381
604
|
"attributes": [
|
|
@@ -384,37 +607,62 @@
|
|
|
384
607
|
"type": {
|
|
385
608
|
"text": "string"
|
|
386
609
|
},
|
|
387
|
-
"
|
|
610
|
+
"description": "Name of the backend resource which contain the entities to manage",
|
|
388
611
|
"fieldName": "resourceName"
|
|
389
612
|
},
|
|
390
613
|
{
|
|
391
|
-
"name": "
|
|
614
|
+
"name": "readEvent",
|
|
392
615
|
"type": {
|
|
393
616
|
"text": "string"
|
|
394
617
|
},
|
|
395
|
-
"
|
|
396
|
-
"fieldName": "title"
|
|
618
|
+
"fieldName": "readEvent"
|
|
397
619
|
},
|
|
398
620
|
{
|
|
399
|
-
"
|
|
621
|
+
"type": {
|
|
622
|
+
"text": "boolean"
|
|
623
|
+
},
|
|
624
|
+
"fieldName": "readonly"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"name": "updateEvent",
|
|
400
628
|
"type": {
|
|
401
629
|
"text": "string"
|
|
402
630
|
},
|
|
403
|
-
"
|
|
631
|
+
"description": "Name of the event handler on the Genesis server which handles updating the entity",
|
|
632
|
+
"fieldName": "updateEvent"
|
|
404
633
|
},
|
|
405
634
|
{
|
|
406
|
-
"name": "
|
|
635
|
+
"name": "deleteEvent",
|
|
407
636
|
"type": {
|
|
408
|
-
"text": "
|
|
637
|
+
"text": "string"
|
|
409
638
|
},
|
|
410
|
-
"
|
|
639
|
+
"description": "Name of the event handler on the Genesis server which handles deleting the entity",
|
|
640
|
+
"fieldName": "deleteEvent"
|
|
411
641
|
},
|
|
412
642
|
{
|
|
413
|
-
"name": "
|
|
643
|
+
"name": "createEvent",
|
|
414
644
|
"type": {
|
|
415
|
-
"text": "
|
|
645
|
+
"text": "string"
|
|
416
646
|
},
|
|
417
|
-
"
|
|
647
|
+
"description": "Name of the event handler on the Genesis server which handles creating an entity",
|
|
648
|
+
"fieldName": "createEvent"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "title",
|
|
652
|
+
"type": {
|
|
653
|
+
"text": "string"
|
|
654
|
+
},
|
|
655
|
+
"description": "Title of the grid",
|
|
656
|
+
"fieldName": "title"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "entityLabel",
|
|
660
|
+
"type": {
|
|
661
|
+
"text": "string"
|
|
662
|
+
},
|
|
663
|
+
"default": "''",
|
|
664
|
+
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
665
|
+
"fieldName": "entityLabel"
|
|
418
666
|
},
|
|
419
667
|
{
|
|
420
668
|
"name": "async-add",
|
|
@@ -422,6 +670,7 @@
|
|
|
422
670
|
"text": "boolean"
|
|
423
671
|
},
|
|
424
672
|
"default": "false",
|
|
673
|
+
"description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
|
|
425
674
|
"fieldName": "asyncAdd"
|
|
426
675
|
},
|
|
427
676
|
{
|
|
@@ -430,6 +679,7 @@
|
|
|
430
679
|
"text": "boolean"
|
|
431
680
|
},
|
|
432
681
|
"default": "false",
|
|
682
|
+
"description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
|
|
433
683
|
"fieldName": "asyncRemove"
|
|
434
684
|
},
|
|
435
685
|
{
|
|
@@ -438,6 +688,7 @@
|
|
|
438
688
|
"text": "boolean"
|
|
439
689
|
},
|
|
440
690
|
"default": "true",
|
|
691
|
+
"description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
|
|
441
692
|
"fieldName": "asyncUpdate"
|
|
442
693
|
},
|
|
443
694
|
{
|
|
@@ -446,6 +697,7 @@
|
|
|
446
697
|
"text": "boolean"
|
|
447
698
|
},
|
|
448
699
|
"default": "false",
|
|
700
|
+
"description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
|
|
449
701
|
"fieldName": "enableCellFlashing"
|
|
450
702
|
},
|
|
451
703
|
{
|
|
@@ -454,8 +706,31 @@
|
|
|
454
706
|
"text": "boolean"
|
|
455
707
|
},
|
|
456
708
|
"default": "false",
|
|
709
|
+
"description": "If true, will enable row flashing for all rows for `add` transactions",
|
|
457
710
|
"fieldName": "enableRowFlashing"
|
|
458
711
|
},
|
|
712
|
+
{
|
|
713
|
+
"name": "persist-column-state-key",
|
|
714
|
+
"type": {
|
|
715
|
+
"text": "string"
|
|
716
|
+
},
|
|
717
|
+
"description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
|
|
718
|
+
"fieldName": "persistColumnStateKey"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"name": "size-columns-to-fit",
|
|
722
|
+
"type": {
|
|
723
|
+
"text": "boolean"
|
|
724
|
+
},
|
|
725
|
+
"fieldName": "sizeColumnsToFit"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"name": "enable-filter-bar",
|
|
729
|
+
"type": {
|
|
730
|
+
"text": "boolean"
|
|
731
|
+
},
|
|
732
|
+
"fieldName": "enableFilterBar"
|
|
733
|
+
},
|
|
459
734
|
{
|
|
460
735
|
"name": "hide-edit",
|
|
461
736
|
"type": {
|
|
@@ -472,178 +747,199 @@
|
|
|
472
747
|
"default": "false",
|
|
473
748
|
"fieldName": "hideDelete"
|
|
474
749
|
},
|
|
750
|
+
{
|
|
751
|
+
"name": "enable-search-bar",
|
|
752
|
+
"type": {
|
|
753
|
+
"text": "boolean"
|
|
754
|
+
},
|
|
755
|
+
"default": "false",
|
|
756
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
757
|
+
"fieldName": "enableSearchBar"
|
|
758
|
+
},
|
|
475
759
|
{
|
|
476
760
|
"name": "header-case-type",
|
|
477
761
|
"type": {
|
|
478
762
|
"text": "GridProCaseType"
|
|
479
763
|
},
|
|
764
|
+
"description": "The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.",
|
|
480
765
|
"fieldName": "headerCaseType"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "modal-position",
|
|
769
|
+
"type": {
|
|
770
|
+
"text": "'centre' | 'left' | 'right'"
|
|
771
|
+
},
|
|
772
|
+
"default": "'right'",
|
|
773
|
+
"description": "Determines where the modal dialog will appear on screen",
|
|
774
|
+
"fieldName": "modalPosition"
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"mixins": [
|
|
778
|
+
{
|
|
779
|
+
"name": "LifecycleMixin",
|
|
780
|
+
"package": "@genesislcap/foundation-utils"
|
|
481
781
|
}
|
|
482
782
|
],
|
|
483
783
|
"superclass": {
|
|
484
784
|
"name": "FASTElement",
|
|
485
785
|
"package": "@microsoft/fast-element"
|
|
486
786
|
},
|
|
487
|
-
"tagName": "entity-
|
|
787
|
+
"tagName": "entity-management",
|
|
488
788
|
"customElement": true
|
|
489
789
|
}
|
|
490
790
|
],
|
|
491
791
|
"exports": [
|
|
492
792
|
{
|
|
493
793
|
"kind": "js",
|
|
494
|
-
"name": "
|
|
794
|
+
"name": "EntityManagement",
|
|
495
795
|
"declaration": {
|
|
496
|
-
"name": "
|
|
497
|
-
"module": "src/
|
|
796
|
+
"name": "EntityManagement",
|
|
797
|
+
"module": "src/entities/entities.ts"
|
|
498
798
|
}
|
|
499
799
|
},
|
|
500
800
|
{
|
|
501
801
|
"kind": "custom-element-definition",
|
|
502
|
-
"name": "entity-
|
|
802
|
+
"name": "entity-management",
|
|
503
803
|
"declaration": {
|
|
504
|
-
"name": "
|
|
505
|
-
"module": "src/
|
|
804
|
+
"name": "EntityManagement",
|
|
805
|
+
"module": "src/entities/entities.ts"
|
|
506
806
|
}
|
|
507
807
|
}
|
|
508
808
|
]
|
|
509
809
|
},
|
|
510
810
|
{
|
|
511
811
|
"kind": "javascript-module",
|
|
512
|
-
"path": "src/entities/
|
|
513
|
-
"declarations": [
|
|
812
|
+
"path": "src/entities/index.ts",
|
|
813
|
+
"declarations": [],
|
|
814
|
+
"exports": [
|
|
514
815
|
{
|
|
515
|
-
"kind": "
|
|
516
|
-
"name": "
|
|
517
|
-
"
|
|
518
|
-
|
|
816
|
+
"kind": "js",
|
|
817
|
+
"name": "*",
|
|
818
|
+
"declaration": {
|
|
819
|
+
"name": "*",
|
|
820
|
+
"package": "./entities"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"kind": "js",
|
|
825
|
+
"name": "*",
|
|
826
|
+
"declaration": {
|
|
827
|
+
"name": "*",
|
|
828
|
+
"package": "./entities.template"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"kind": "js",
|
|
833
|
+
"name": "*",
|
|
834
|
+
"declaration": {
|
|
835
|
+
"name": "*",
|
|
836
|
+
"package": "./entities.styles"
|
|
837
|
+
}
|
|
519
838
|
}
|
|
520
|
-
]
|
|
839
|
+
]
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"kind": "javascript-module",
|
|
843
|
+
"path": "src/list/index.ts",
|
|
844
|
+
"declarations": [],
|
|
521
845
|
"exports": [
|
|
522
846
|
{
|
|
523
847
|
"kind": "js",
|
|
524
|
-
"name": "
|
|
848
|
+
"name": "*",
|
|
525
849
|
"declaration": {
|
|
526
|
-
"name": "
|
|
527
|
-
"
|
|
850
|
+
"name": "*",
|
|
851
|
+
"package": "./list"
|
|
528
852
|
}
|
|
529
853
|
}
|
|
530
854
|
]
|
|
531
855
|
},
|
|
532
856
|
{
|
|
533
857
|
"kind": "javascript-module",
|
|
534
|
-
"path": "src/
|
|
858
|
+
"path": "src/list/list.styles.ts",
|
|
535
859
|
"declarations": [
|
|
536
860
|
{
|
|
537
861
|
"kind": "variable",
|
|
538
|
-
"name": "
|
|
539
|
-
"default": "
|
|
540
|
-
"description": "Defines the html of the entity component as a ViewTemplate object"
|
|
862
|
+
"name": "listStyles",
|
|
863
|
+
"default": "css`\n :host {\n contain: content;\n }\n\n :host,\n fast-router {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n height: inherit;\n width: 100%;\n }\n`"
|
|
541
864
|
}
|
|
542
865
|
],
|
|
543
866
|
"exports": [
|
|
544
867
|
{
|
|
545
868
|
"kind": "js",
|
|
546
|
-
"name": "
|
|
869
|
+
"name": "listStyles",
|
|
547
870
|
"declaration": {
|
|
548
|
-
"name": "
|
|
549
|
-
"module": "src/
|
|
871
|
+
"name": "listStyles",
|
|
872
|
+
"module": "src/list/list.styles.ts"
|
|
550
873
|
}
|
|
551
874
|
}
|
|
552
875
|
]
|
|
553
876
|
},
|
|
554
877
|
{
|
|
555
878
|
"kind": "javascript-module",
|
|
556
|
-
"path": "src/
|
|
879
|
+
"path": "src/list/list.template.ts",
|
|
557
880
|
"declarations": [
|
|
558
881
|
{
|
|
559
|
-
"kind": "
|
|
560
|
-
"
|
|
561
|
-
"
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
"type": {
|
|
585
|
-
"text": "string"
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"kind": "field",
|
|
590
|
-
"name": "readEventFn",
|
|
591
|
-
"type": {
|
|
592
|
-
"text": "(...args) => {}"
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"kind": "field",
|
|
597
|
-
"name": "readonly",
|
|
598
|
-
"type": {
|
|
599
|
-
"text": "boolean"
|
|
600
|
-
}
|
|
601
|
-
},
|
|
882
|
+
"kind": "variable",
|
|
883
|
+
"name": "listTemplate",
|
|
884
|
+
"default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `,\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n rowHeight=\"36\"\n headerHeight=\"36\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n readOnlyEdit=\"true\"\n tooltipMouseTrack=\"true\"\n tooltipShowDelay=\"0\"\n async-add=${(x) => x.asyncAdd}\n async-remove=${(x) => x.asyncRemove}\n async-update=${(x) => x.asyncUpdate}\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n enable-row-flashing=${(x) => x.enableRowFlashing}\n header-case-type=${(x) => x.headerCaseType}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n moving-view=${(x) => x.datasourceConfig?.movingView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n polling-interval=${(x) => x.datasourceConfig?.pollingInterval}\n resource-name=${(x) => x.resourceName}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n </zero-grid-pro>\n </div>\n`"
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
"exports": [
|
|
888
|
+
{
|
|
889
|
+
"kind": "js",
|
|
890
|
+
"name": "listTemplate",
|
|
891
|
+
"declaration": {
|
|
892
|
+
"name": "listTemplate",
|
|
893
|
+
"module": "src/list/list.template.ts"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
]
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"kind": "javascript-module",
|
|
900
|
+
"path": "src/list/list.ts",
|
|
901
|
+
"declarations": [
|
|
902
|
+
{
|
|
903
|
+
"kind": "class",
|
|
904
|
+
"description": "",
|
|
905
|
+
"name": "List",
|
|
906
|
+
"members": [
|
|
602
907
|
{
|
|
603
908
|
"kind": "field",
|
|
604
|
-
"name": "
|
|
909
|
+
"name": "resourceName",
|
|
605
910
|
"type": {
|
|
606
911
|
"text": "string"
|
|
607
912
|
},
|
|
608
|
-
"
|
|
609
|
-
"privacy": "public"
|
|
913
|
+
"default": "''"
|
|
610
914
|
},
|
|
611
915
|
{
|
|
612
916
|
"kind": "field",
|
|
613
|
-
"name": "
|
|
917
|
+
"name": "title",
|
|
614
918
|
"type": {
|
|
615
919
|
"text": "string"
|
|
616
920
|
},
|
|
617
|
-
"
|
|
618
|
-
"privacy": "public"
|
|
921
|
+
"default": "''"
|
|
619
922
|
},
|
|
620
923
|
{
|
|
621
924
|
"kind": "field",
|
|
622
|
-
"name": "
|
|
925
|
+
"name": "persistColumnStateKey",
|
|
623
926
|
"type": {
|
|
624
927
|
"text": "string"
|
|
625
|
-
}
|
|
626
|
-
"description": "Name of the event handler on the Genesis server which handles creating an entity",
|
|
627
|
-
"privacy": "public"
|
|
928
|
+
}
|
|
628
929
|
},
|
|
629
930
|
{
|
|
630
931
|
"kind": "field",
|
|
631
|
-
"name": "
|
|
932
|
+
"name": "sizeColumnsToFit",
|
|
632
933
|
"type": {
|
|
633
|
-
"text": "
|
|
634
|
-
}
|
|
635
|
-
"description": "Title of the grid",
|
|
636
|
-
"privacy": "public"
|
|
934
|
+
"text": "boolean"
|
|
935
|
+
}
|
|
637
936
|
},
|
|
638
937
|
{
|
|
639
938
|
"kind": "field",
|
|
640
|
-
"name": "
|
|
939
|
+
"name": "enableFilterBar",
|
|
641
940
|
"type": {
|
|
642
|
-
"text": "
|
|
643
|
-
}
|
|
644
|
-
"default": "''",
|
|
645
|
-
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
646
|
-
"privacy": "public"
|
|
941
|
+
"text": "boolean"
|
|
942
|
+
}
|
|
647
943
|
},
|
|
648
944
|
{
|
|
649
945
|
"kind": "field",
|
|
@@ -651,9 +947,7 @@
|
|
|
651
947
|
"type": {
|
|
652
948
|
"text": "boolean"
|
|
653
949
|
},
|
|
654
|
-
"default": "false"
|
|
655
|
-
"description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
|
|
656
|
-
"privacy": "public"
|
|
950
|
+
"default": "false"
|
|
657
951
|
},
|
|
658
952
|
{
|
|
659
953
|
"kind": "field",
|
|
@@ -661,9 +955,7 @@
|
|
|
661
955
|
"type": {
|
|
662
956
|
"text": "boolean"
|
|
663
957
|
},
|
|
664
|
-
"default": "false"
|
|
665
|
-
"description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
|
|
666
|
-
"privacy": "public"
|
|
958
|
+
"default": "false"
|
|
667
959
|
},
|
|
668
960
|
{
|
|
669
961
|
"kind": "field",
|
|
@@ -671,9 +963,7 @@
|
|
|
671
963
|
"type": {
|
|
672
964
|
"text": "boolean"
|
|
673
965
|
},
|
|
674
|
-
"default": "true"
|
|
675
|
-
"description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
|
|
676
|
-
"privacy": "public"
|
|
966
|
+
"default": "true"
|
|
677
967
|
},
|
|
678
968
|
{
|
|
679
969
|
"kind": "field",
|
|
@@ -681,9 +971,7 @@
|
|
|
681
971
|
"type": {
|
|
682
972
|
"text": "boolean"
|
|
683
973
|
},
|
|
684
|
-
"default": "false"
|
|
685
|
-
"description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
|
|
686
|
-
"privacy": "public"
|
|
974
|
+
"default": "false"
|
|
687
975
|
},
|
|
688
976
|
{
|
|
689
977
|
"kind": "field",
|
|
@@ -691,297 +979,154 @@
|
|
|
691
979
|
"type": {
|
|
692
980
|
"text": "boolean"
|
|
693
981
|
},
|
|
694
|
-
"default": "false"
|
|
695
|
-
"description": "If true, will enable row flashing for all rows for `add` transactions",
|
|
696
|
-
"privacy": "public"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"kind": "field",
|
|
700
|
-
"name": "persistColumnStateKey",
|
|
701
|
-
"type": {
|
|
702
|
-
"text": "string"
|
|
703
|
-
},
|
|
704
|
-
"description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
|
|
705
|
-
"privacy": "public"
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"kind": "field",
|
|
709
|
-
"name": "gridOptions",
|
|
710
|
-
"type": {
|
|
711
|
-
"text": "GridOptions"
|
|
712
|
-
},
|
|
713
|
-
"description": "GridOptions to be passed down from application",
|
|
714
|
-
"privacy": "public"
|
|
982
|
+
"default": "false"
|
|
715
983
|
},
|
|
716
984
|
{
|
|
717
985
|
"kind": "field",
|
|
718
|
-
"name": "
|
|
986
|
+
"name": "hideEdit",
|
|
719
987
|
"type": {
|
|
720
|
-
"text": "
|
|
988
|
+
"text": "boolean"
|
|
721
989
|
},
|
|
722
|
-
"
|
|
723
|
-
"privacy": "public"
|
|
990
|
+
"default": "false"
|
|
724
991
|
},
|
|
725
992
|
{
|
|
726
993
|
"kind": "field",
|
|
727
|
-
"name": "
|
|
994
|
+
"name": "hideDelete",
|
|
728
995
|
"type": {
|
|
729
|
-
"text": "
|
|
996
|
+
"text": "boolean"
|
|
730
997
|
},
|
|
731
|
-
"
|
|
732
|
-
"privacy": "public"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"kind": "field",
|
|
736
|
-
"name": "formUiSchema",
|
|
737
|
-
"type": {
|
|
738
|
-
"text": "any"
|
|
739
|
-
}
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"kind": "field",
|
|
743
|
-
"name": "createFormUiSchema",
|
|
744
|
-
"type": {
|
|
745
|
-
"text": "any"
|
|
746
|
-
}
|
|
998
|
+
"default": "false"
|
|
747
999
|
},
|
|
748
1000
|
{
|
|
749
1001
|
"kind": "field",
|
|
750
|
-
"name": "
|
|
1002
|
+
"name": "headerCaseType",
|
|
751
1003
|
"type": {
|
|
752
|
-
"text": "
|
|
1004
|
+
"text": "GridProCaseType"
|
|
753
1005
|
}
|
|
754
1006
|
},
|
|
755
1007
|
{
|
|
756
1008
|
"kind": "field",
|
|
757
|
-
"name": "
|
|
758
|
-
"type": {
|
|
759
|
-
"text": "RendererEntry[]"
|
|
760
|
-
},
|
|
761
|
-
"default": "renderers",
|
|
762
|
-
"description": "Array with renderers used by foundation-forms",
|
|
763
|
-
"privacy": "public"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
"kind": "field",
|
|
767
|
-
"name": "selectedEntity",
|
|
1009
|
+
"name": "grid",
|
|
768
1010
|
"type": {
|
|
769
|
-
"text": "
|
|
1011
|
+
"text": "ZeroGridPro"
|
|
770
1012
|
},
|
|
771
|
-
"description": "Reference to the currently selected entity from the grid.",
|
|
772
1013
|
"privacy": "public"
|
|
773
1014
|
},
|
|
774
1015
|
{
|
|
775
1016
|
"kind": "field",
|
|
776
|
-
"name": "
|
|
1017
|
+
"name": "datasource",
|
|
777
1018
|
"type": {
|
|
778
|
-
"text": "
|
|
1019
|
+
"text": "GridProGenesisDatasource"
|
|
779
1020
|
},
|
|
780
|
-
"description": "Disables the form while enabled to stop the user dispatching a large number of duplicate events",
|
|
781
1021
|
"privacy": "public"
|
|
782
1022
|
},
|
|
783
1023
|
{
|
|
784
1024
|
"kind": "field",
|
|
785
|
-
"name": "
|
|
786
|
-
"type": {
|
|
787
|
-
"text": "boolean"
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
"kind": "field",
|
|
792
|
-
"name": "defaultEntityValues",
|
|
1025
|
+
"name": "gridOptions",
|
|
793
1026
|
"type": {
|
|
794
|
-
"text": "
|
|
1027
|
+
"text": "GridOptions"
|
|
795
1028
|
}
|
|
796
1029
|
},
|
|
797
1030
|
{
|
|
798
1031
|
"kind": "field",
|
|
799
|
-
"name": "
|
|
800
|
-
"type": {
|
|
801
|
-
"text": "string"
|
|
802
|
-
},
|
|
803
|
-
"description": "String which contains the text of the popup modal when the user is adding or editing an entity"
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"kind": "field",
|
|
807
|
-
"name": "editModalVisible",
|
|
808
|
-
"type": {
|
|
809
|
-
"text": "boolean"
|
|
810
|
-
},
|
|
811
|
-
"default": "false"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
"kind": "method",
|
|
815
|
-
"name": "editModalVisibleChanged"
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
"kind": "field",
|
|
819
|
-
"name": "editEntityModal",
|
|
820
|
-
"type": {
|
|
821
|
-
"text": "any"
|
|
822
|
-
},
|
|
823
|
-
"privacy": "public"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"kind": "field",
|
|
827
|
-
"name": "sizeColumnsToFit",
|
|
1032
|
+
"name": "columns",
|
|
828
1033
|
"type": {
|
|
829
|
-
"text": "
|
|
1034
|
+
"text": "ColDef[]"
|
|
830
1035
|
}
|
|
831
1036
|
},
|
|
832
1037
|
{
|
|
833
1038
|
"kind": "field",
|
|
834
|
-
"name": "
|
|
1039
|
+
"name": "datasourceConfig",
|
|
835
1040
|
"type": {
|
|
836
|
-
"text": "
|
|
1041
|
+
"text": "DatasourceConfiguration"
|
|
837
1042
|
}
|
|
838
1043
|
},
|
|
839
1044
|
{
|
|
840
1045
|
"kind": "field",
|
|
841
|
-
"name": "
|
|
842
|
-
"type": {
|
|
843
|
-
"text": "boolean"
|
|
844
|
-
},
|
|
845
|
-
"default": "false"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
"kind": "field",
|
|
849
|
-
"name": "hideDelete",
|
|
850
|
-
"type": {
|
|
851
|
-
"text": "boolean"
|
|
852
|
-
},
|
|
853
|
-
"default": "false"
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"kind": "field",
|
|
857
|
-
"name": "enableSearchBar",
|
|
1046
|
+
"name": "actionButtonsConfig",
|
|
858
1047
|
"type": {
|
|
859
|
-
"text": "
|
|
1048
|
+
"text": "array"
|
|
860
1049
|
},
|
|
861
|
-
"default": "
|
|
1050
|
+
"default": "[]"
|
|
862
1051
|
},
|
|
863
1052
|
{
|
|
864
1053
|
"kind": "field",
|
|
865
|
-
"name": "
|
|
1054
|
+
"name": "deleteEvent",
|
|
866
1055
|
"type": {
|
|
867
|
-
"text": "
|
|
868
|
-
}
|
|
869
|
-
"description": "The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.",
|
|
870
|
-
"privacy": "public"
|
|
1056
|
+
"text": "string"
|
|
1057
|
+
}
|
|
871
1058
|
},
|
|
872
1059
|
{
|
|
873
1060
|
"kind": "field",
|
|
874
|
-
"name": "
|
|
1061
|
+
"name": "updateEvent",
|
|
875
1062
|
"type": {
|
|
876
|
-
"text": "
|
|
1063
|
+
"text": "string"
|
|
877
1064
|
}
|
|
878
1065
|
},
|
|
879
1066
|
{
|
|
880
1067
|
"kind": "field",
|
|
881
|
-
"name": "
|
|
1068
|
+
"name": "connect",
|
|
882
1069
|
"type": {
|
|
883
|
-
"text": "
|
|
884
|
-
},
|
|
885
|
-
"
|
|
886
|
-
"description": "Determines where the modal dialog will appear on screen",
|
|
887
|
-
"privacy": "public"
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"kind": "method",
|
|
891
|
-
"name": "deepClone",
|
|
892
|
-
"return": {
|
|
893
|
-
"type": {
|
|
894
|
-
"text": "Node"
|
|
895
|
-
}
|
|
896
|
-
},
|
|
897
|
-
"description": "Override the deepClone method to ensure that observable attributes are cloned",
|
|
898
|
-
"privacy": "public"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"kind": "method",
|
|
902
|
-
"name": "submitEntityChanges",
|
|
903
|
-
"privacy": "public",
|
|
904
|
-
"parameters": [
|
|
905
|
-
{
|
|
906
|
-
"name": "e",
|
|
907
|
-
"type": {
|
|
908
|
-
"text": "CustomEvent"
|
|
909
|
-
},
|
|
910
|
-
"description": "CustomEvent which contains the payload for the entity to submit to the backend\n\nEmits an event upon error"
|
|
911
|
-
}
|
|
912
|
-
],
|
|
913
|
-
"description": "Event handler for when the user submits the action for the currently open form, either editing or adding the entity"
|
|
1070
|
+
"text": "Connect"
|
|
1071
|
+
},
|
|
1072
|
+
"privacy": "protected"
|
|
914
1073
|
},
|
|
915
1074
|
{
|
|
916
1075
|
"kind": "method",
|
|
917
|
-
"name": "
|
|
1076
|
+
"name": "onCellEditingStopped",
|
|
918
1077
|
"privacy": "private",
|
|
919
1078
|
"parameters": [
|
|
920
1079
|
{
|
|
921
|
-
"name": "
|
|
1080
|
+
"name": "event",
|
|
922
1081
|
"type": {
|
|
923
|
-
"text": "
|
|
1082
|
+
"text": "CellEditRequestEvent"
|
|
924
1083
|
}
|
|
925
1084
|
}
|
|
926
1085
|
]
|
|
927
1086
|
},
|
|
928
1087
|
{
|
|
929
1088
|
"kind": "method",
|
|
930
|
-
"name": "
|
|
931
|
-
"privacy": "
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
"kind": "field",
|
|
935
|
-
"name": "headerTempalate",
|
|
936
|
-
"readonly": true
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"kind": "method",
|
|
940
|
-
"name": "searchChanged",
|
|
941
|
-
"privacy": "public",
|
|
1089
|
+
"name": "handleFilterChanged",
|
|
1090
|
+
"privacy": "private",
|
|
942
1091
|
"parameters": [
|
|
943
1092
|
{
|
|
944
|
-
"name": "
|
|
945
|
-
"type": {
|
|
946
|
-
"text": "CustomEvent<Array<SelectedOption>>"
|
|
947
|
-
}
|
|
1093
|
+
"name": "e"
|
|
948
1094
|
}
|
|
949
1095
|
]
|
|
950
1096
|
},
|
|
951
1097
|
{
|
|
952
1098
|
"kind": "method",
|
|
953
|
-
"name": "
|
|
954
|
-
"privacy": "
|
|
1099
|
+
"name": "handleFilterCleared",
|
|
1100
|
+
"privacy": "private",
|
|
955
1101
|
"parameters": [
|
|
956
1102
|
{
|
|
957
|
-
"name": "e"
|
|
958
|
-
"type": {
|
|
959
|
-
"text": "CustomEvent<string>"
|
|
960
|
-
}
|
|
1103
|
+
"name": "e"
|
|
961
1104
|
}
|
|
962
1105
|
]
|
|
963
1106
|
},
|
|
964
1107
|
{
|
|
965
1108
|
"kind": "method",
|
|
966
|
-
"name": "
|
|
967
|
-
"privacy": "
|
|
1109
|
+
"name": "select",
|
|
1110
|
+
"privacy": "private",
|
|
968
1111
|
"parameters": [
|
|
969
1112
|
{
|
|
970
|
-
"name": "e"
|
|
971
|
-
"type": {
|
|
972
|
-
"text": "CustomEvent"
|
|
973
|
-
}
|
|
1113
|
+
"name": "e"
|
|
974
1114
|
}
|
|
975
1115
|
]
|
|
976
1116
|
},
|
|
977
1117
|
{
|
|
978
|
-
"kind": "
|
|
979
|
-
"name": "
|
|
1118
|
+
"kind": "field",
|
|
1119
|
+
"name": "edit",
|
|
1120
|
+
"privacy": "private"
|
|
980
1121
|
},
|
|
981
1122
|
{
|
|
982
1123
|
"kind": "method",
|
|
983
|
-
"name": "
|
|
984
|
-
"
|
|
1124
|
+
"name": "delete",
|
|
1125
|
+
"parameters": [
|
|
1126
|
+
{
|
|
1127
|
+
"name": "e"
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
985
1130
|
}
|
|
986
1131
|
],
|
|
987
1132
|
"attributes": [
|
|
@@ -990,62 +1135,37 @@
|
|
|
990
1135
|
"type": {
|
|
991
1136
|
"text": "string"
|
|
992
1137
|
},
|
|
993
|
-
"
|
|
1138
|
+
"default": "''",
|
|
994
1139
|
"fieldName": "resourceName"
|
|
995
1140
|
},
|
|
996
1141
|
{
|
|
997
|
-
"name": "
|
|
998
|
-
"type": {
|
|
999
|
-
"text": "string"
|
|
1000
|
-
},
|
|
1001
|
-
"fieldName": "readEvent"
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
"type": {
|
|
1005
|
-
"text": "boolean"
|
|
1006
|
-
},
|
|
1007
|
-
"fieldName": "readonly"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"name": "updateEvent",
|
|
1011
|
-
"type": {
|
|
1012
|
-
"text": "string"
|
|
1013
|
-
},
|
|
1014
|
-
"description": "Name of the event handler on the Genesis server which handles updating the entity",
|
|
1015
|
-
"fieldName": "updateEvent"
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
"name": "deleteEvent",
|
|
1142
|
+
"name": "title",
|
|
1019
1143
|
"type": {
|
|
1020
1144
|
"text": "string"
|
|
1021
1145
|
},
|
|
1022
|
-
"
|
|
1023
|
-
"fieldName": "
|
|
1146
|
+
"default": "''",
|
|
1147
|
+
"fieldName": "title"
|
|
1024
1148
|
},
|
|
1025
1149
|
{
|
|
1026
|
-
"name": "
|
|
1150
|
+
"name": "persist-column-state-key",
|
|
1027
1151
|
"type": {
|
|
1028
1152
|
"text": "string"
|
|
1029
1153
|
},
|
|
1030
|
-
"
|
|
1031
|
-
"fieldName": "createEvent"
|
|
1154
|
+
"fieldName": "persistColumnStateKey"
|
|
1032
1155
|
},
|
|
1033
1156
|
{
|
|
1034
|
-
"name": "
|
|
1157
|
+
"name": "size-columns-to-fit",
|
|
1035
1158
|
"type": {
|
|
1036
|
-
"text": "
|
|
1159
|
+
"text": "boolean"
|
|
1037
1160
|
},
|
|
1038
|
-
"
|
|
1039
|
-
"fieldName": "title"
|
|
1161
|
+
"fieldName": "sizeColumnsToFit"
|
|
1040
1162
|
},
|
|
1041
1163
|
{
|
|
1042
|
-
"name": "
|
|
1164
|
+
"name": "enable-filter-bar",
|
|
1043
1165
|
"type": {
|
|
1044
|
-
"text": "
|
|
1166
|
+
"text": "boolean"
|
|
1045
1167
|
},
|
|
1046
|
-
"
|
|
1047
|
-
"description": "Label for the entity which has usages such as being shown in the title of the modal wen editing the entity",
|
|
1048
|
-
"fieldName": "entityLabel"
|
|
1168
|
+
"fieldName": "enableFilterBar"
|
|
1049
1169
|
},
|
|
1050
1170
|
{
|
|
1051
1171
|
"name": "async-add",
|
|
@@ -1053,7 +1173,6 @@
|
|
|
1053
1173
|
"text": "boolean"
|
|
1054
1174
|
},
|
|
1055
1175
|
"default": "false",
|
|
1056
|
-
"description": "Whether to use the `applyTransactionAsync` function for *add* transactions",
|
|
1057
1176
|
"fieldName": "asyncAdd"
|
|
1058
1177
|
},
|
|
1059
1178
|
{
|
|
@@ -1062,7 +1181,6 @@
|
|
|
1062
1181
|
"text": "boolean"
|
|
1063
1182
|
},
|
|
1064
1183
|
"default": "false",
|
|
1065
|
-
"description": "Whether to use the `applyTransactionAsync` function for *remove* transactions",
|
|
1066
1184
|
"fieldName": "asyncRemove"
|
|
1067
1185
|
},
|
|
1068
1186
|
{
|
|
@@ -1071,7 +1189,6 @@
|
|
|
1071
1189
|
"text": "boolean"
|
|
1072
1190
|
},
|
|
1073
1191
|
"default": "true",
|
|
1074
|
-
"description": "Whether to use the `applyTransactionAsync` function for *update* transactions",
|
|
1075
1192
|
"fieldName": "asyncUpdate"
|
|
1076
1193
|
},
|
|
1077
1194
|
{
|
|
@@ -1080,7 +1197,6 @@
|
|
|
1080
1197
|
"text": "boolean"
|
|
1081
1198
|
},
|
|
1082
1199
|
"default": "false",
|
|
1083
|
-
"description": "If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef",
|
|
1084
1200
|
"fieldName": "enableCellFlashing"
|
|
1085
1201
|
},
|
|
1086
1202
|
{
|
|
@@ -1089,31 +1205,8 @@
|
|
|
1089
1205
|
"text": "boolean"
|
|
1090
1206
|
},
|
|
1091
1207
|
"default": "false",
|
|
1092
|
-
"description": "If true, will enable row flashing for all rows for `add` transactions",
|
|
1093
1208
|
"fieldName": "enableRowFlashing"
|
|
1094
1209
|
},
|
|
1095
|
-
{
|
|
1096
|
-
"name": "persist-column-state-key",
|
|
1097
|
-
"type": {
|
|
1098
|
-
"text": "string"
|
|
1099
|
-
},
|
|
1100
|
-
"description": "This attribute controls whether and how the entity manager stores the state of the columns when the user edits them. Omit this attribute to disable the functionality, set it to a unique value to enable it.",
|
|
1101
|
-
"fieldName": "persistColumnStateKey"
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
"name": "size-columns-to-fit",
|
|
1105
|
-
"type": {
|
|
1106
|
-
"text": "boolean"
|
|
1107
|
-
},
|
|
1108
|
-
"fieldName": "sizeColumnsToFit"
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
"name": "enable-filter-bar",
|
|
1112
|
-
"type": {
|
|
1113
|
-
"text": "boolean"
|
|
1114
|
-
},
|
|
1115
|
-
"fieldName": "enableFilterBar"
|
|
1116
|
-
},
|
|
1117
1210
|
{
|
|
1118
1211
|
"name": "hide-edit",
|
|
1119
1212
|
"type": {
|
|
@@ -1130,127 +1223,37 @@
|
|
|
1130
1223
|
"default": "false",
|
|
1131
1224
|
"fieldName": "hideDelete"
|
|
1132
1225
|
},
|
|
1133
|
-
{
|
|
1134
|
-
"name": "enable-search-bar",
|
|
1135
|
-
"type": {
|
|
1136
|
-
"text": "boolean"
|
|
1137
|
-
},
|
|
1138
|
-
"default": "false",
|
|
1139
|
-
"fieldName": "enableSearchBar"
|
|
1140
|
-
},
|
|
1141
1226
|
{
|
|
1142
1227
|
"name": "header-case-type",
|
|
1143
1228
|
"type": {
|
|
1144
1229
|
"text": "GridProCaseType"
|
|
1145
1230
|
},
|
|
1146
|
-
"description": "The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.",
|
|
1147
1231
|
"fieldName": "headerCaseType"
|
|
1148
|
-
},
|
|
1149
|
-
{
|
|
1150
|
-
"name": "modal-position",
|
|
1151
|
-
"type": {
|
|
1152
|
-
"text": "'centre' | 'left' | 'right'"
|
|
1153
|
-
},
|
|
1154
|
-
"default": "'right'",
|
|
1155
|
-
"description": "Determines where the modal dialog will appear on screen",
|
|
1156
|
-
"fieldName": "modalPosition"
|
|
1157
|
-
}
|
|
1158
|
-
],
|
|
1159
|
-
"mixins": [
|
|
1160
|
-
{
|
|
1161
|
-
"name": "LifecycleMixin",
|
|
1162
|
-
"package": "@genesislcap/foundation-utils"
|
|
1163
1232
|
}
|
|
1164
1233
|
],
|
|
1165
1234
|
"superclass": {
|
|
1166
1235
|
"name": "FASTElement",
|
|
1167
1236
|
"package": "@microsoft/fast-element"
|
|
1168
1237
|
},
|
|
1169
|
-
"tagName": "entity-
|
|
1238
|
+
"tagName": "entity-list",
|
|
1170
1239
|
"customElement": true
|
|
1171
1240
|
}
|
|
1172
1241
|
],
|
|
1173
1242
|
"exports": [
|
|
1174
1243
|
{
|
|
1175
1244
|
"kind": "js",
|
|
1176
|
-
"name": "
|
|
1245
|
+
"name": "List",
|
|
1177
1246
|
"declaration": {
|
|
1178
|
-
"name": "
|
|
1179
|
-
"module": "src/
|
|
1247
|
+
"name": "List",
|
|
1248
|
+
"module": "src/list/list.ts"
|
|
1180
1249
|
}
|
|
1181
1250
|
},
|
|
1182
1251
|
{
|
|
1183
1252
|
"kind": "custom-element-definition",
|
|
1184
|
-
"name": "entity-
|
|
1185
|
-
"declaration": {
|
|
1186
|
-
"name": "EntityManagement",
|
|
1187
|
-
"module": "src/entities/entities.ts"
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
]
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
"kind": "javascript-module",
|
|
1194
|
-
"path": "src/entities/index.ts",
|
|
1195
|
-
"declarations": [],
|
|
1196
|
-
"exports": [
|
|
1197
|
-
{
|
|
1198
|
-
"kind": "js",
|
|
1199
|
-
"name": "*",
|
|
1200
|
-
"declaration": {
|
|
1201
|
-
"name": "*",
|
|
1202
|
-
"package": "./entities"
|
|
1203
|
-
}
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
"kind": "js",
|
|
1207
|
-
"name": "*",
|
|
1208
|
-
"declaration": {
|
|
1209
|
-
"name": "*",
|
|
1210
|
-
"package": "./entities.template"
|
|
1211
|
-
}
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"kind": "js",
|
|
1215
|
-
"name": "*",
|
|
1216
|
-
"declaration": {
|
|
1217
|
-
"name": "*",
|
|
1218
|
-
"package": "./entities.styles"
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
]
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
"kind": "javascript-module",
|
|
1225
|
-
"path": "src/components/components.ts",
|
|
1226
|
-
"declarations": [
|
|
1227
|
-
{
|
|
1228
|
-
"kind": "function",
|
|
1229
|
-
"name": "loadRemotes"
|
|
1230
|
-
}
|
|
1231
|
-
],
|
|
1232
|
-
"exports": [
|
|
1233
|
-
{
|
|
1234
|
-
"kind": "js",
|
|
1235
|
-
"name": "loadRemotes",
|
|
1236
|
-
"declaration": {
|
|
1237
|
-
"name": "loadRemotes",
|
|
1238
|
-
"module": "src/components/components.ts"
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
]
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
"kind": "javascript-module",
|
|
1245
|
-
"path": "src/components/index.ts",
|
|
1246
|
-
"declarations": [],
|
|
1247
|
-
"exports": [
|
|
1248
|
-
{
|
|
1249
|
-
"kind": "js",
|
|
1250
|
-
"name": "*",
|
|
1253
|
+
"name": "entity-list",
|
|
1251
1254
|
"declaration": {
|
|
1252
|
-
"name": "
|
|
1253
|
-
"
|
|
1255
|
+
"name": "List",
|
|
1256
|
+
"module": "src/list/list.ts"
|
|
1254
1257
|
}
|
|
1255
1258
|
}
|
|
1256
1259
|
]
|
|
@@ -1952,6 +1955,8 @@
|
|
|
1952
1955
|
"text": "boolean"
|
|
1953
1956
|
},
|
|
1954
1957
|
"default": "false",
|
|
1958
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
1959
|
+
"privacy": "public",
|
|
1955
1960
|
"inheritedFrom": {
|
|
1956
1961
|
"name": "EntityManagement",
|
|
1957
1962
|
"module": "src/entities/entities.ts"
|
|
@@ -2355,6 +2360,7 @@
|
|
|
2355
2360
|
"text": "boolean"
|
|
2356
2361
|
},
|
|
2357
2362
|
"default": "false",
|
|
2363
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
2358
2364
|
"fieldName": "enableSearchBar",
|
|
2359
2365
|
"inheritedFrom": {
|
|
2360
2366
|
"name": "EntityManagement",
|
|
@@ -2439,7 +2445,7 @@
|
|
|
2439
2445
|
"type": {
|
|
2440
2446
|
"text": "ViewTemplate"
|
|
2441
2447
|
},
|
|
2442
|
-
"default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n :gridOptions=${(x) => x.gridOptions}\n
|
|
2448
|
+
"default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n :gridOptions=${(x) => x.gridOptions}\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n enable-search-bar=\"${(x) => x.enableSearchBar}\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields,\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields,\n )}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
|
|
2443
2449
|
}
|
|
2444
2450
|
],
|
|
2445
2451
|
"exports": [
|
|
@@ -2482,6 +2488,16 @@
|
|
|
2482
2488
|
"description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
|
|
2483
2489
|
"privacy": "public"
|
|
2484
2490
|
},
|
|
2491
|
+
{
|
|
2492
|
+
"kind": "field",
|
|
2493
|
+
"name": "enableSearchBar",
|
|
2494
|
+
"type": {
|
|
2495
|
+
"text": "boolean"
|
|
2496
|
+
},
|
|
2497
|
+
"default": "false",
|
|
2498
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
2499
|
+
"privacy": "public"
|
|
2500
|
+
},
|
|
2485
2501
|
{
|
|
2486
2502
|
"kind": "field",
|
|
2487
2503
|
"name": "gridOptions",
|
|
@@ -2574,6 +2590,15 @@
|
|
|
2574
2590
|
"default": "'entity_users_management'",
|
|
2575
2591
|
"description": "This attribute controls whether and how the user manager stores the state of the columns when the user edits them. Defaulted to `entity_users_management`.",
|
|
2576
2592
|
"fieldName": "persistColumnStateKey"
|
|
2593
|
+
},
|
|
2594
|
+
{
|
|
2595
|
+
"name": "enable-search-bar",
|
|
2596
|
+
"type": {
|
|
2597
|
+
"text": "boolean"
|
|
2598
|
+
},
|
|
2599
|
+
"default": "false",
|
|
2600
|
+
"description": "This attribute controls whether to enable the search-bar.",
|
|
2601
|
+
"fieldName": "enableSearchBar"
|
|
2577
2602
|
}
|
|
2578
2603
|
],
|
|
2579
2604
|
"mixins": [
|