@vaadin/crud 24.0.0-alpha5 → 24.0.0-alpha7

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/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/crud",
4
- "version": "24.0.0-alpha5",
4
+ "version": "24.0.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -292,293 +292,6 @@
292
292
  ],
293
293
  "events": []
294
294
  }
295
- },
296
- {
297
- "name": "vaadin-crud",
298
- "description": "`<vaadin-crud>` is a Web Component for [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations.\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-items) property.\n\nA grid and an editor will be automatically generated and configured based on the data structure provided.\n\n#### Example:\n```html\n<vaadin-crud items='[{\"name\": \"John\", \"surname\": \"Lennon\", \"role\": \"singer\"},\n {\"name\": \"Ringo\", \"surname\": \"Starr\", \"role\": \"drums\"}]'></vaadin-crud>\n```\n\n### Data Provider Function\n\nOtherwise, you can provide a [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-dataProvider) function.\n#### Example:\n```html\n<vaadin-crud></vaadin-crud>\n```\n```js\nconst crud = document.querySelector('vaadin-crud');\nconst users = [{'name': 'John', 'surname': 'Lennon', 'role': 'singer'}, ...];\ncrud.dataProvider = function(params, callback) {\n const chunk = users.slice(params.page * params.pageSize, params.page * params.pageSize + params.pageSize);\n callback(chunk, people.length);\n};\n```\n\nNOTE: The auto-generated editor only supports string types. If you need to handle special cases\ncustomizing the editor is discussed below.\n\n### Customization\n\nAlternatively you can fully configure the component by using `slot` names.\n\nSlot name | Description\n---------------|----------------\n`grid` | To replace the auto-generated grid with a custom one.\n`form` | To replace the auto-generated form.\n`save-button` | To replace the \"Save\" button.\n`cancel-button`| To replace the \"Cancel\" button.\n`delete-button`| To replace the \"Delete\" button.\n`toolbar` | To provide the toolbar content (by default, it's empty).\n`new-button` | To replace the \"New item\" button.\n\n#### Example:\n\n```html\n<vaadin-crud\n id=\"crud\"\n items='[{\"name\": \"John\", \"surname\": \"Lennon\", \"role\": \"singer\"},\n {\"name\": \"Ringo\", \"surname\": \"Starr\", \"role\": \"drums\"}]'\n>\n <vaadin-grid slot=\"grid\">\n <vaadin-crud-edit-column></vaadin-crud-edit-column>\n <vaadin-grid-column id=\"column1\"></vaadin-grid-column>\n <vaadin-grid-column id=\"column2\"></vaadin-grid-column>\n </vaadin-grid>\n\n <vaadin-form-layout slot=\"form\">\n <vaadin-text-field label=\"First\" path=\"name\"></vaadin-text-field>\n <vaadin-text-field label=\"Surname\" path=\"surname\"></vaadin-text-field>\n </vaadin-form-layout>\n\n <div slot=\"toolbar\">Total singers: 2</div>\n <button slot=\"new-button\">New singer</button>\n\n <button slot=\"save-button\">Save changes</button>\n <button slot=\"cancel-button\">Discard changes</button>\n <button slot=\"delete-button\">Delete singer</button>\n</vaadin-crud>\n```\n```js\nconst crud = document.querySelector('#crud');\n\nconst column1 = document.querySelector('#column1');\ncolumn1.headerRenderer = (root, column) => {\n root.textContent = 'Name';\n};\ncolumn1.renderer = (root, column, model) => {\n root.textContent = model.item.name;\n};\n\nconst column2 = document.querySelector('#column2');\ncolumn2.headerRenderer = (root, column) => {\n root.textContent = 'Surname';\n};\ncolumn2.renderer = (root, column, model) => {\n root.textContent = model.item.surname;\n};\n```\n\n### Helpers\n\nThe following elements are used to auto-configure the grid and the editor\n- [`<vaadin-crud-edit-column>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud-edit-column)\n- `<vaadin-crud-grid>` - can be replaced with custom [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-grid)\n- `<vaadin-crud-form>` - can be replaced with custom [`<vaadin-form-layout>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-form-layout)\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`toolbar` | Toolbar container at the bottom. By default it contains the the `new` button\n\nThe following custom properties are available:\n\nCustom Property | Description | Default\n----------------|----------------\n--vaadin-crud-editor-max-height | max height of editor when opened on the bottom | 40%\n--vaadin-crud-editor-max-width | max width of editor when opened on the side | 40%\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
299
- "attributes": [
300
- {
301
- "name": "editor-position",
302
- "description": "Sets how editor will be presented on desktop screen.\n\nAccepted values are:\n - `` (default) - form will open as overlay\n - `bottom` - form will open below the grid\n - `aside` - form will open on the grid side (_right_, if lft and _left_ if rtl)",
303
- "value": {
304
- "type": [
305
- "CrudEditorPosition"
306
- ]
307
- }
308
- },
309
- {
310
- "name": "edit-on-click",
311
- "description": "Enables user to click on row to edit it.\nNote: When enabled, auto-generated grid won't show the edit column.",
312
- "value": {
313
- "type": [
314
- "boolean"
315
- ]
316
- }
317
- },
318
- {
319
- "name": "no-filter",
320
- "description": "Disable filtering when grid is autoconfigured.",
321
- "value": {
322
- "type": [
323
- "boolean",
324
- "null",
325
- "undefined"
326
- ]
327
- }
328
- },
329
- {
330
- "name": "no-sort",
331
- "description": "Disable sorting when grid is autoconfigured.",
332
- "value": {
333
- "type": [
334
- "boolean",
335
- "null",
336
- "undefined"
337
- ]
338
- }
339
- },
340
- {
341
- "name": "no-head",
342
- "description": "Remove grid headers when it is autoconfigured.",
343
- "value": {
344
- "type": [
345
- "boolean",
346
- "null",
347
- "undefined"
348
- ]
349
- }
350
- },
351
- {
352
- "name": "include",
353
- "description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-exclude) is ignored.\n\nDefault is undefined meaning that all properties in the object should be mapped to fields.",
354
- "value": {
355
- "type": [
356
- "string",
357
- "null",
358
- "undefined"
359
- ]
360
- }
361
- },
362
- {
363
- "name": "exclude",
364
- "description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-include) is defined, this parameter is ignored.\n\nDefault is to exclude all private fields (those properties starting with underscore)",
365
- "value": {
366
- "type": [
367
- "string",
368
- "null",
369
- "undefined"
370
- ]
371
- }
372
- },
373
- {
374
- "name": "editor-opened",
375
- "description": "Reflects the opened status of the editor.",
376
- "value": {
377
- "type": [
378
- "boolean",
379
- "null",
380
- "undefined"
381
- ]
382
- }
383
- },
384
- {
385
- "name": "no-toolbar",
386
- "description": "Controls visibility state of toolbar.\nWhen set to false toolbar is hidden and shown when set to true.",
387
- "value": {
388
- "type": [
389
- "boolean",
390
- "null",
391
- "undefined"
392
- ]
393
- }
394
- },
395
- {
396
- "name": "theme",
397
- "description": "The theme variants to apply to the component.",
398
- "value": {
399
- "type": [
400
- "string",
401
- "null",
402
- "undefined"
403
- ]
404
- }
405
- }
406
- ],
407
- "js": {
408
- "properties": [
409
- {
410
- "name": "items",
411
- "description": "An array containing the items which will be stamped to the column template instances.",
412
- "value": {
413
- "type": [
414
- "Array.<unknown>",
415
- "undefined"
416
- ]
417
- }
418
- },
419
- {
420
- "name": "editedItem",
421
- "description": "The item being edited in the dialog.",
422
- "value": {
423
- "type": [
424
- "unknown"
425
- ]
426
- }
427
- },
428
- {
429
- "name": "editorPosition",
430
- "description": "Sets how editor will be presented on desktop screen.\n\nAccepted values are:\n - `` (default) - form will open as overlay\n - `bottom` - form will open below the grid\n - `aside` - form will open on the grid side (_right_, if lft and _left_ if rtl)",
431
- "value": {
432
- "type": [
433
- "CrudEditorPosition"
434
- ]
435
- }
436
- },
437
- {
438
- "name": "editOnClick",
439
- "description": "Enables user to click on row to edit it.\nNote: When enabled, auto-generated grid won't show the edit column.",
440
- "value": {
441
- "type": [
442
- "boolean"
443
- ]
444
- }
445
- },
446
- {
447
- "name": "dataProvider",
448
- "description": "Function that provides items lazily. Receives arguments `params`, `callback`\n\n`params.page` Requested page index\n`params.pageSize` Current page size\n`params.filters` Currently applied filters\n`params.sortOrders` Currently applied sorting orders\n\n`callback(items, size)` Callback function with arguments:\n - `items` Current page of items\n - `size` Total number of items",
449
- "value": {
450
- "type": [
451
- "CrudDataProvider",
452
- "undefined"
453
- ]
454
- }
455
- },
456
- {
457
- "name": "noFilter",
458
- "description": "Disable filtering when grid is autoconfigured.",
459
- "value": {
460
- "type": [
461
- "boolean",
462
- "null",
463
- "undefined"
464
- ]
465
- }
466
- },
467
- {
468
- "name": "noSort",
469
- "description": "Disable sorting when grid is autoconfigured.",
470
- "value": {
471
- "type": [
472
- "boolean",
473
- "null",
474
- "undefined"
475
- ]
476
- }
477
- },
478
- {
479
- "name": "noHead",
480
- "description": "Remove grid headers when it is autoconfigured.",
481
- "value": {
482
- "type": [
483
- "boolean",
484
- "null",
485
- "undefined"
486
- ]
487
- }
488
- },
489
- {
490
- "name": "include",
491
- "description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-exclude) is ignored.\n\nDefault is undefined meaning that all properties in the object should be mapped to fields.",
492
- "value": {
493
- "type": [
494
- "string",
495
- "null",
496
- "undefined"
497
- ]
498
- }
499
- },
500
- {
501
- "name": "exclude",
502
- "description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-include) is defined, this parameter is ignored.\n\nDefault is to exclude all private fields (those properties starting with underscore)",
503
- "value": {
504
- "type": [
505
- "string",
506
- "null",
507
- "undefined"
508
- ]
509
- }
510
- },
511
- {
512
- "name": "editorOpened",
513
- "description": "Reflects the opened status of the editor.",
514
- "value": {
515
- "type": [
516
- "boolean",
517
- "null",
518
- "undefined"
519
- ]
520
- }
521
- },
522
- {
523
- "name": "noToolbar",
524
- "description": "Controls visibility state of toolbar.\nWhen set to false toolbar is hidden and shown when set to true.",
525
- "value": {
526
- "type": [
527
- "boolean",
528
- "null",
529
- "undefined"
530
- ]
531
- }
532
- },
533
- {
534
- "name": "i18n",
535
- "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure and default values:\n\n```\n{\n newItem: 'New item',\n editItem: 'Edit item',\n saveItem: 'Save',\n cancel: 'Cancel',\n deleteItem: 'Delete...',\n editLabel: 'Edit',\n confirm: {\n delete: {\n title: 'Confirm delete',\n content: 'Are you sure you want to delete the selected item? This action cannot be undone.',\n button: {\n confirm: 'Delete',\n dismiss: 'Cancel'\n }\n },\n cancel: {\n title: 'Unsaved changes',\n content: 'There are unsaved modifications to the item.',\n button: {\n confirm: 'Discard',\n dismiss: 'Continue editing'\n }\n }\n }\n}\n```",
536
- "value": {
537
- "type": [
538
- "CrudI18n"
539
- ]
540
- }
541
- }
542
- ],
543
- "events": [
544
- {
545
- "name": "cancel",
546
- "description": "Fired when user discards edition. If the default is prevented, then\nno action is performed, user is responsible to close dialog and reset\nitem and grid."
547
- },
548
- {
549
- "name": "delete",
550
- "description": "Fired when user wants to delete item. If the default is prevented, then\nno action is performed, items array is not modified nor dialog closed"
551
- },
552
- {
553
- "name": "edit",
554
- "description": "Fired when user wants to edit an existing item. If the default is prevented, then\na new item is not assigned to the form, giving that responsibility to the app, though\ndialog is always opened."
555
- },
556
- {
557
- "name": "new",
558
- "description": "Fired when user wants to create a new item."
559
- },
560
- {
561
- "name": "save",
562
- "description": "Fired when user wants to save a new or an existing item. If the default is prevented, then\nno action is performed, items array is not modified nor dialog closed"
563
- },
564
- {
565
- "name": "items-changed",
566
- "description": "Fired when the `items` property changes."
567
- },
568
- {
569
- "name": "edited-item-changed",
570
- "description": "Fired when the `editedItem` property changes."
571
- },
572
- {
573
- "name": "editor-opened-changed",
574
- "description": "Fired when the `editorOpened` property changes."
575
- },
576
- {
577
- "name": "size-changed",
578
- "description": "Fired when the `size` property changes."
579
- }
580
- ]
581
- }
582
295
  }
583
296
  ]
584
297
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/crud",
4
- "version": "24.0.0-alpha5",
4
+ "version": "24.0.0-alpha7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -118,167 +118,6 @@
118
118
  }
119
119
  }
120
120
  ]
121
- },
122
- {
123
- "name": "vaadin-crud",
124
- "description": "`<vaadin-crud>` is a Web Component for [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) operations.\n\n### Quick Start\n\nAssign an array to the [`items`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-items) property.\n\nA grid and an editor will be automatically generated and configured based on the data structure provided.\n\n#### Example:\n```html\n<vaadin-crud items='[{\"name\": \"John\", \"surname\": \"Lennon\", \"role\": \"singer\"},\n {\"name\": \"Ringo\", \"surname\": \"Starr\", \"role\": \"drums\"}]'></vaadin-crud>\n```\n\n### Data Provider Function\n\nOtherwise, you can provide a [`dataProvider`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-dataProvider) function.\n#### Example:\n```html\n<vaadin-crud></vaadin-crud>\n```\n```js\nconst crud = document.querySelector('vaadin-crud');\nconst users = [{'name': 'John', 'surname': 'Lennon', 'role': 'singer'}, ...];\ncrud.dataProvider = function(params, callback) {\n const chunk = users.slice(params.page * params.pageSize, params.page * params.pageSize + params.pageSize);\n callback(chunk, people.length);\n};\n```\n\nNOTE: The auto-generated editor only supports string types. If you need to handle special cases\ncustomizing the editor is discussed below.\n\n### Customization\n\nAlternatively you can fully configure the component by using `slot` names.\n\nSlot name | Description\n---------------|----------------\n`grid` | To replace the auto-generated grid with a custom one.\n`form` | To replace the auto-generated form.\n`save-button` | To replace the \"Save\" button.\n`cancel-button`| To replace the \"Cancel\" button.\n`delete-button`| To replace the \"Delete\" button.\n`toolbar` | To provide the toolbar content (by default, it's empty).\n`new-button` | To replace the \"New item\" button.\n\n#### Example:\n\n```html\n<vaadin-crud\n id=\"crud\"\n items='[{\"name\": \"John\", \"surname\": \"Lennon\", \"role\": \"singer\"},\n {\"name\": \"Ringo\", \"surname\": \"Starr\", \"role\": \"drums\"}]'\n>\n <vaadin-grid slot=\"grid\">\n <vaadin-crud-edit-column></vaadin-crud-edit-column>\n <vaadin-grid-column id=\"column1\"></vaadin-grid-column>\n <vaadin-grid-column id=\"column2\"></vaadin-grid-column>\n </vaadin-grid>\n\n <vaadin-form-layout slot=\"form\">\n <vaadin-text-field label=\"First\" path=\"name\"></vaadin-text-field>\n <vaadin-text-field label=\"Surname\" path=\"surname\"></vaadin-text-field>\n </vaadin-form-layout>\n\n <div slot=\"toolbar\">Total singers: 2</div>\n <button slot=\"new-button\">New singer</button>\n\n <button slot=\"save-button\">Save changes</button>\n <button slot=\"cancel-button\">Discard changes</button>\n <button slot=\"delete-button\">Delete singer</button>\n</vaadin-crud>\n```\n```js\nconst crud = document.querySelector('#crud');\n\nconst column1 = document.querySelector('#column1');\ncolumn1.headerRenderer = (root, column) => {\n root.textContent = 'Name';\n};\ncolumn1.renderer = (root, column, model) => {\n root.textContent = model.item.name;\n};\n\nconst column2 = document.querySelector('#column2');\ncolumn2.headerRenderer = (root, column) => {\n root.textContent = 'Surname';\n};\ncolumn2.renderer = (root, column, model) => {\n root.textContent = model.item.surname;\n};\n```\n\n### Helpers\n\nThe following elements are used to auto-configure the grid and the editor\n- [`<vaadin-crud-edit-column>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud-edit-column)\n- `<vaadin-crud-grid>` - can be replaced with custom [`<vaadin-grid>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-grid)\n- `<vaadin-crud-form>` - can be replaced with custom [`<vaadin-form-layout>`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-form-layout)\n\n### Styling\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n----------------|----------------\n`toolbar` | Toolbar container at the bottom. By default it contains the the `new` button\n\nThe following custom properties are available:\n\nCustom Property | Description | Default\n----------------|----------------\n--vaadin-crud-editor-max-height | max height of editor when opened on the bottom | 40%\n--vaadin-crud-editor-max-width | max width of editor when opened on the side | 40%\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/custom-theme/styling-components) documentation.",
125
- "extension": true,
126
- "attributes": [
127
- {
128
- "name": "?editOnClick",
129
- "description": "Enables user to click on row to edit it.\nNote: When enabled, auto-generated grid won't show the edit column.",
130
- "value": {
131
- "kind": "expression"
132
- }
133
- },
134
- {
135
- "name": "?noFilter",
136
- "description": "Disable filtering when grid is autoconfigured.",
137
- "value": {
138
- "kind": "expression"
139
- }
140
- },
141
- {
142
- "name": "?noSort",
143
- "description": "Disable sorting when grid is autoconfigured.",
144
- "value": {
145
- "kind": "expression"
146
- }
147
- },
148
- {
149
- "name": "?noHead",
150
- "description": "Remove grid headers when it is autoconfigured.",
151
- "value": {
152
- "kind": "expression"
153
- }
154
- },
155
- {
156
- "name": "?editorOpened",
157
- "description": "Reflects the opened status of the editor.",
158
- "value": {
159
- "kind": "expression"
160
- }
161
- },
162
- {
163
- "name": "?noToolbar",
164
- "description": "Controls visibility state of toolbar.\nWhen set to false toolbar is hidden and shown when set to true.",
165
- "value": {
166
- "kind": "expression"
167
- }
168
- },
169
- {
170
- "name": ".items",
171
- "description": "An array containing the items which will be stamped to the column template instances.",
172
- "value": {
173
- "kind": "expression"
174
- }
175
- },
176
- {
177
- "name": ".editedItem",
178
- "description": "The item being edited in the dialog.",
179
- "value": {
180
- "kind": "expression"
181
- }
182
- },
183
- {
184
- "name": ".editorPosition",
185
- "description": "Sets how editor will be presented on desktop screen.\n\nAccepted values are:\n - `` (default) - form will open as overlay\n - `bottom` - form will open below the grid\n - `aside` - form will open on the grid side (_right_, if lft and _left_ if rtl)",
186
- "value": {
187
- "kind": "expression"
188
- }
189
- },
190
- {
191
- "name": ".dataProvider",
192
- "description": "Function that provides items lazily. Receives arguments `params`, `callback`\n\n`params.page` Requested page index\n`params.pageSize` Current page size\n`params.filters` Currently applied filters\n`params.sortOrders` Currently applied sorting orders\n\n`callback(items, size)` Callback function with arguments:\n - `items` Current page of items\n - `size` Total number of items",
193
- "value": {
194
- "kind": "expression"
195
- }
196
- },
197
- {
198
- "name": ".include",
199
- "description": "A comma-separated list of fields to include in the generated grid and the generated editor.\n\nIt can be used to explicitly define the field order.\n\nWhen it is defined [`exclude`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-exclude) is ignored.\n\nDefault is undefined meaning that all properties in the object should be mapped to fields.",
200
- "value": {
201
- "kind": "expression"
202
- }
203
- },
204
- {
205
- "name": ".exclude",
206
- "description": "A comma-separated list of fields to be excluded from the generated grid and the generated editor.\n\nWhen [`include`](https://cdn.vaadin.com/vaadin-web-components/24.0.0-alpha5/#/elements/vaadin-crud#property-include) is defined, this parameter is ignored.\n\nDefault is to exclude all private fields (those properties starting with underscore)",
207
- "value": {
208
- "kind": "expression"
209
- }
210
- },
211
- {
212
- "name": ".i18n",
213
- "description": "The object used to localize this component.\nFor changing the default localization, change the entire\n_i18n_ object or just the property you want to modify.\n\nThe object has the following JSON structure and default values:\n\n```\n{\n newItem: 'New item',\n editItem: 'Edit item',\n saveItem: 'Save',\n cancel: 'Cancel',\n deleteItem: 'Delete...',\n editLabel: 'Edit',\n confirm: {\n delete: {\n title: 'Confirm delete',\n content: 'Are you sure you want to delete the selected item? This action cannot be undone.',\n button: {\n confirm: 'Delete',\n dismiss: 'Cancel'\n }\n },\n cancel: {\n title: 'Unsaved changes',\n content: 'There are unsaved modifications to the item.',\n button: {\n confirm: 'Discard',\n dismiss: 'Continue editing'\n }\n }\n }\n}\n```",
214
- "value": {
215
- "kind": "expression"
216
- }
217
- },
218
- {
219
- "name": "@cancel",
220
- "description": "Fired when user discards edition. If the default is prevented, then\nno action is performed, user is responsible to close dialog and reset\nitem and grid.",
221
- "value": {
222
- "kind": "expression"
223
- }
224
- },
225
- {
226
- "name": "@delete",
227
- "description": "Fired when user wants to delete item. If the default is prevented, then\nno action is performed, items array is not modified nor dialog closed",
228
- "value": {
229
- "kind": "expression"
230
- }
231
- },
232
- {
233
- "name": "@edit",
234
- "description": "Fired when user wants to edit an existing item. If the default is prevented, then\na new item is not assigned to the form, giving that responsibility to the app, though\ndialog is always opened.",
235
- "value": {
236
- "kind": "expression"
237
- }
238
- },
239
- {
240
- "name": "@new",
241
- "description": "Fired when user wants to create a new item.",
242
- "value": {
243
- "kind": "expression"
244
- }
245
- },
246
- {
247
- "name": "@save",
248
- "description": "Fired when user wants to save a new or an existing item. If the default is prevented, then\nno action is performed, items array is not modified nor dialog closed",
249
- "value": {
250
- "kind": "expression"
251
- }
252
- },
253
- {
254
- "name": "@items-changed",
255
- "description": "Fired when the `items` property changes.",
256
- "value": {
257
- "kind": "expression"
258
- }
259
- },
260
- {
261
- "name": "@edited-item-changed",
262
- "description": "Fired when the `editedItem` property changes.",
263
- "value": {
264
- "kind": "expression"
265
- }
266
- },
267
- {
268
- "name": "@editor-opened-changed",
269
- "description": "Fired when the `editorOpened` property changes.",
270
- "value": {
271
- "kind": "expression"
272
- }
273
- },
274
- {
275
- "name": "@size-changed",
276
- "description": "Fired when the `size` property changes.",
277
- "value": {
278
- "kind": "expression"
279
- }
280
- }
281
- ]
282
121
  }
283
122
  ]
284
123
  }