@vaadin/confirm-dialog 24.2.0-beta1 → 24.2.0-beta3

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.
@@ -6,23 +6,9 @@
6
6
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
7
7
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
8
8
  import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
9
+ import { type ConfirmDialogEventMap, ConfirmDialogMixin } from './vaadin-confirm-dialog-mixin.js';
9
10
 
10
- /**
11
- * Fired when the `opened` property changes.
12
- */
13
- export type ConfirmDialogOpenedChangedEvent = CustomEvent<{ value: boolean }>;
14
-
15
- export interface ConfirmDialogCustomEventMap {
16
- 'opened-changed': ConfirmDialogOpenedChangedEvent;
17
-
18
- confirm: Event;
19
-
20
- cancel: Event;
21
-
22
- reject: Event;
23
- }
24
-
25
- export type ConfirmDialogEventMap = ConfirmDialogCustomEventMap & HTMLElementEventMap;
11
+ export * from './vaadin-confirm-dialog-mixin.js';
26
12
 
27
13
  /**
28
14
  * `<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.
@@ -72,103 +58,7 @@ export type ConfirmDialogEventMap = ConfirmDialogCustomEventMap & HTMLElementEve
72
58
  * @fires {Event} reject - Fired when Reject button was pressed.
73
59
  * @fires {CustomEvent} opened-changed - Fired when the `opened` property changes.
74
60
  */
75
- declare class ConfirmDialog extends ElementMixin(ThemePropertyMixin(ControllerMixin(HTMLElement))) {
76
- /**
77
- * Sets the `aria-describedby` attribute of the overlay element.
78
- *
79
- * By default, all elements inside the message area are linked
80
- * through the `aria-describedby` attribute. However, there are
81
- * cases where this can confuse screen reader users (e.g. the dialog
82
- * may present a password confirmation form). For these cases,
83
- * it's better to associate only the elements that will help describe
84
- * the confirmation dialog through this API.
85
- * @attr {string} accessible-description-ref
86
- */
87
- accessibleDescriptionRef: string | null | undefined;
88
-
89
- /**
90
- * True if the overlay is currently displayed.
91
- */
92
- opened: boolean;
93
-
94
- /**
95
- * Set the confirmation dialog title.
96
- */
97
- header: string;
98
-
99
- /**
100
- * Set the message or confirmation question.
101
- */
102
- message: string | null | undefined;
103
-
104
- /**
105
- * Text displayed on confirm-button.
106
- * This only affects the default button, custom slotted buttons will not be altered.
107
- * @attr {string} confirm-text
108
- */
109
- confirmText: string;
110
-
111
- /**
112
- * Theme for a confirm-button.
113
- * This only affects the default button, custom slotted buttons will not be altered.
114
- * @attr {string} confirm-theme
115
- */
116
- confirmTheme: string;
117
-
118
- /**
119
- * Set to true to disable closing dialog on Escape press
120
- * @attr {boolean} no-close-on-esc
121
- */
122
- noCloseOnEsc: boolean;
123
-
124
- /**
125
- * Whether to show reject button or not.
126
- * @attr {boolean} reject-button-visible
127
- */
128
- rejectButtonVisible: boolean;
129
-
130
- /**
131
- * Text displayed on reject-button.
132
- * This only affects the default button, custom slotted buttons will not be altered.
133
- * @attr {string} reject-text
134
- */
135
- rejectText: string;
136
-
137
- /**
138
- * Theme for a reject-button.
139
- * This only affects the default button, custom slotted buttons will not be altered.
140
- * @attr {string} reject-theme
141
- */
142
- rejectTheme: string;
143
-
144
- /**
145
- * Whether to show cancel button or not.
146
- * @attr {boolean} cancel-button-visible
147
- */
148
- cancelButtonVisible: boolean;
149
-
150
- /**
151
- * Text displayed on cancel-button.
152
- * This only affects the default button, custom slotted buttons will not be altered.
153
- * @attr {string} cancel-text
154
- */
155
- cancelText: string;
156
-
157
- /**
158
- * Theme for a cancel-button.
159
- * This only affects the default button, custom slotted buttons will not be altered.
160
- * @attr {string} cancel-theme
161
- */
162
- cancelTheme: string;
163
-
164
- /**
165
- * A space-delimited list of CSS class names
166
- * to set on the underlying overlay element.
167
- *
168
- * @attr {string} overlay-class
169
- */
170
- overlayClass: string;
171
-
61
+ declare class ConfirmDialog extends ConfirmDialogMixin(ElementMixin(ThemePropertyMixin(ControllerMixin(HTMLElement)))) {
172
62
  addEventListener<K extends keyof ConfirmDialogEventMap>(
173
63
  type: K,
174
64
  listener: (this: ConfirmDialog, ev: ConfirmDialogEventMap[K]) => void,
@@ -3,15 +3,14 @@
3
3
  * Copyright (c) 2018 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import '@vaadin/button/src/vaadin-button.js';
6
7
  import './vaadin-confirm-dialog-overlay.js';
7
8
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
8
- import { setAriaIDReference } from '@vaadin/a11y-base/src/aria-id-reference.js';
9
9
  import { ControllerMixin } from '@vaadin/component-base/src/controller-mixin.js';
10
10
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
11
11
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
12
- import { SlotController } from '@vaadin/component-base/src/slot-controller.js';
13
- import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
14
12
  import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
13
+ import { ConfirmDialogMixin } from './vaadin-confirm-dialog-mixin.js';
15
14
 
16
15
  /**
17
16
  * `<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.
@@ -63,11 +62,12 @@ import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-p
63
62
  *
64
63
  * @customElement
65
64
  * @extends HTMLElement
65
+ * @mixes ConfirmDialogMixin
66
66
  * @mixes ControllerMixin
67
67
  * @mixes ElementMixin
68
68
  * @mixes ThemePropertyMixin
69
69
  */
70
- class ConfirmDialog extends ElementMixin(ThemePropertyMixin(ControllerMixin(PolymerElement))) {
70
+ class ConfirmDialog extends ConfirmDialogMixin(ElementMixin(ThemePropertyMixin(ControllerMixin(PolymerElement)))) {
71
71
  static get template() {
72
72
  return html`
73
73
  <style>
@@ -103,422 +103,13 @@ class ConfirmDialog extends ElementMixin(ThemePropertyMixin(ControllerMixin(Poly
103
103
  return 'vaadin-confirm-dialog';
104
104
  }
105
105
 
106
- static get properties() {
107
- return {
108
- /**
109
- * Sets the `aria-describedby` attribute of the overlay element.
110
- *
111
- * By default, all elements inside the message area are linked
112
- * through the `aria-describedby` attribute. However, there are
113
- * cases where this can confuse screen reader users (e.g. the dialog
114
- * may present a password confirmation form). For these cases,
115
- * it's better to associate only the elements that will help describe
116
- * the confirmation dialog through this API.
117
- */
118
- accessibleDescriptionRef: {
119
- type: String,
120
- },
121
- /**
122
- * True if the overlay is currently displayed.
123
- * @type {boolean}
124
- */
125
- opened: {
126
- type: Boolean,
127
- value: false,
128
- notify: true,
129
- },
130
-
131
- /**
132
- * Set the confirmation dialog title.
133
- * @type {string}
134
- */
135
- header: {
136
- type: String,
137
- value: '',
138
- },
139
-
140
- /**
141
- * Set the message or confirmation question.
142
- */
143
- message: {
144
- type: String,
145
- value: '',
146
- },
147
-
148
- /**
149
- * Text displayed on confirm-button.
150
- * This only affects the default button, custom slotted buttons will not be altered.
151
- * @attr {string} confirm-text
152
- * @type {string}
153
- */
154
- confirmText: {
155
- type: String,
156
- value: 'Confirm',
157
- },
158
-
159
- /**
160
- * Theme for a confirm-button.
161
- * This only affects the default button, custom slotted buttons will not be altered.
162
- * @attr {string} confirm-theme
163
- * @type {string}
164
- */
165
- confirmTheme: {
166
- type: String,
167
- value: 'primary',
168
- },
169
-
170
- /**
171
- * Set to true to disable closing dialog on Escape press
172
- * @attr {boolean} no-close-on-esc
173
- * @type {boolean}
174
- */
175
- noCloseOnEsc: {
176
- type: Boolean,
177
- value: false,
178
- },
179
-
180
- /**
181
- * Whether to show reject button or not.
182
- * @attr {boolean} reject-button-visible
183
- * @type {boolean}
184
- */
185
- rejectButtonVisible: {
186
- type: Boolean,
187
- reflectToAttribute: true,
188
- value: false,
189
- },
190
-
191
- /**
192
- * Text displayed on reject-button.
193
- * This only affects the default button, custom slotted buttons will not be altered.
194
- * @attr {string} reject-text
195
- * @type {string}
196
- */
197
- rejectText: {
198
- type: String,
199
- value: 'Reject',
200
- },
201
-
202
- /**
203
- * Theme for a reject-button.
204
- * This only affects the default button, custom slotted buttons will not be altered.
205
- * @attr {string} reject-theme
206
- * @type {string}
207
- */
208
- rejectTheme: {
209
- type: String,
210
- value: 'error tertiary',
211
- },
212
-
213
- /**
214
- * Whether to show cancel button or not.
215
- * @attr {boolean} cancel-button-visible
216
- * @type {boolean}
217
- */
218
- cancelButtonVisible: {
219
- type: Boolean,
220
- reflectToAttribute: true,
221
- value: false,
222
- },
223
-
224
- /**
225
- * Text displayed on cancel-button.
226
- * This only affects the default button, custom slotted buttons will not be altered.
227
- * @attr {string} cancel-text
228
- * @type {string}
229
- */
230
- cancelText: {
231
- type: String,
232
- value: 'Cancel',
233
- },
234
-
235
- /**
236
- * Theme for a cancel-button.
237
- * This only affects the default button, custom slotted buttons will not be altered.
238
- * @attr {string} cancel-theme
239
- * @type {string}
240
- */
241
- cancelTheme: {
242
- type: String,
243
- value: 'tertiary',
244
- },
245
-
246
- /**
247
- * A space-delimited list of CSS class names
248
- * to set on the underlying overlay element.
249
- *
250
- * @attr {string} overlay-class
251
- */
252
- overlayClass: {
253
- type: String,
254
- },
255
-
256
- /**
257
- * A reference to the "Cancel" button which will be teleported to the overlay.
258
- * @private
259
- */
260
- _cancelButton: {
261
- type: Object,
262
- },
263
-
264
- /**
265
- * A reference to the "Confirm" button which will be teleported to the overlay.
266
- * @private
267
- */
268
- _confirmButton: {
269
- type: Object,
270
- },
271
-
272
- /**
273
- * A reference to the "header" node which will be teleported to the overlay.
274
- * @private
275
- */
276
- _headerNode: {
277
- type: Object,
278
- },
279
-
280
- /**
281
- * A list of message nodes which will be placed in the overlay default slot.
282
- * @private
283
- */
284
- _messageNodes: {
285
- type: Array,
286
- value: () => [],
287
- },
288
-
289
- /**
290
- * A reference to the "Reject" button which will be teleported to the overlay.
291
- * @private
292
- */
293
- _rejectButton: {
294
- type: Object,
295
- },
296
-
297
- /**
298
- * Height to be set on the overlay content.
299
- * @protected
300
- */
301
- _contentHeight: {
302
- type: String,
303
- },
304
-
305
- /**
306
- * Width to be set on the overlay content.
307
- * @protected
308
- */
309
- _contentWidth: {
310
- type: String,
311
- },
312
- };
313
- }
314
-
315
- static get observers() {
316
- return [
317
- '__updateConfirmButton(_confirmButton, confirmText, confirmTheme)',
318
- '__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)',
319
- '__updateHeaderNode(_headerNode, header)',
320
- '__updateMessageNodes(_messageNodes, message)',
321
- '__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)',
322
- '__accessibleDescriptionRefChanged(_overlayElement, accessibleDescriptionRef)',
323
- ];
324
- }
325
-
326
- constructor() {
327
- super();
328
-
329
- this.__cancel = this.__cancel.bind(this);
330
- this.__confirm = this.__confirm.bind(this);
331
- this.__reject = this.__reject.bind(this);
332
- }
333
-
334
- get __slottedNodes() {
335
- return [this._headerNode, ...this._messageNodes, this._cancelButton, this._confirmButton, this._rejectButton];
336
- }
337
-
338
106
  /** @protected */
339
107
  ready() {
340
108
  super.ready();
341
109
 
342
110
  this._overlayElement = this.$.dialog.$.overlay;
343
- this._overlayElement.addEventListener('vaadin-overlay-escape-press', this._escPressed.bind(this));
344
- this._overlayElement.addEventListener('vaadin-overlay-open', () => this.__onDialogOpened());
345
- this._overlayElement.addEventListener('vaadin-overlay-closed', () => this.__onDialogClosed());
346
- this._overlayElement.setAttribute('role', 'alertdialog');
347
-
348
- this._headerController = new SlotController(this, 'header', 'h3', {
349
- initializer: (node) => {
350
- this._headerNode = node;
351
- },
352
- });
353
- this.addController(this._headerController);
354
-
355
- this._messageController = new SlotController(this, '', 'div', {
356
- // Allow providing multiple custom nodes in the default slot
357
- multiple: true,
358
- observe: false,
359
- initializer: (node) => {
360
- const wrapper = document.createElement('div');
361
- wrapper.style.display = 'contents';
362
- const wrapperId = `confirm-dialog-message-${generateUniqueId()}`;
363
- wrapper.id = wrapperId;
364
- this.appendChild(wrapper);
365
- wrapper.appendChild(node);
366
- setAriaIDReference(this._overlayElement, 'aria-describedby', { newId: wrapperId });
367
- this._messageNodes = [...this._messageNodes, wrapper];
368
- },
369
- });
370
- this.addController(this._messageController);
371
-
372
- // NOTE: order in which buttons are added should match the order of slots in template
373
- this._cancelController = new SlotController(this, 'cancel-button', 'vaadin-button', {
374
- initializer: (button) => {
375
- this.__setupSlottedButton('cancel', button);
376
- },
377
- });
378
- this.addController(this._cancelController);
379
-
380
- this._rejectController = new SlotController(this, 'reject-button', 'vaadin-button', {
381
- initializer: (button) => {
382
- this.__setupSlottedButton('reject', button);
383
- },
384
- });
385
- this.addController(this._rejectController);
386
-
387
- this._confirmController = new SlotController(this, 'confirm-button', 'vaadin-button', {
388
- initializer: (button) => {
389
- this.__setupSlottedButton('confirm', button);
390
- },
391
- });
392
- this.addController(this._confirmController);
393
- }
394
-
395
- /** @private */
396
- __accessibleDescriptionRefChanged(_overlayElement, accessibleDescriptionRef) {
397
- if (!_overlayElement || (!accessibleDescriptionRef && !this.__oldAccessibleDescriptionRef)) {
398
- return;
399
- }
400
- setAriaIDReference(this._overlayElement, 'aria-describedby', {
401
- newId: accessibleDescriptionRef,
402
- oldId: this.__oldAccessibleDescriptionRef,
403
- fromUser: true,
404
- });
405
- this.__oldAccessibleDescriptionRef = accessibleDescriptionRef;
406
- }
407
-
408
- /** @private */
409
- __onDialogOpened() {
410
- const overlay = this._overlayElement;
411
-
412
- // Teleport slotted nodes to the overlay element.
413
- this.__slottedNodes.forEach((node) => {
414
- overlay.appendChild(node);
415
- });
416
-
417
- const confirmButton = overlay.querySelector('[slot="confirm-button"]');
418
- if (confirmButton) {
419
- confirmButton.focus();
420
- }
421
- }
422
-
423
- /** @private */
424
- __onDialogClosed() {
425
- // Move nodes from the overlay back to the host.
426
- this.__slottedNodes.forEach((node) => {
427
- this.appendChild(node);
428
- });
429
- }
430
-
431
- /** @private */
432
- __setupSlottedButton(type, button) {
433
- const property = `_${type}Button`;
434
- const listener = `__${type}`;
435
-
436
- if (this[property] && this[property] !== button) {
437
- this[property].remove();
438
- }
439
-
440
- button.addEventListener('click', this[listener]);
441
- this[property] = button;
442
- }
443
-
444
- /** @private */
445
- __updateCancelButton(button, cancelText, cancelTheme, showCancel) {
446
- if (button) {
447
- if (button === this._cancelController.defaultNode) {
448
- button.textContent = cancelText;
449
- button.setAttribute('theme', cancelTheme);
450
- }
451
- button.toggleAttribute('hidden', !showCancel);
452
- }
453
- }
454
-
455
- /** @private */
456
- __updateConfirmButton(button, confirmText, confirmTheme) {
457
- if (button && button === this._confirmController.defaultNode) {
458
- button.textContent = confirmText;
459
- button.setAttribute('theme', confirmTheme);
460
- }
461
- }
462
-
463
- /** @private */
464
- __updateHeaderNode(headerNode, header) {
465
- // Only update text content for the default header node.
466
- if (headerNode && headerNode === this._headerController.defaultNode) {
467
- headerNode.textContent = header;
468
- }
469
- }
470
-
471
- /** @private */
472
- __updateMessageNodes(nodes, message) {
473
- if (nodes && nodes.length > 0) {
474
- const defaultWrapperNode = nodes.find(
475
- (node) => this._messageController.defaultNode && node === this._messageController.defaultNode.parentElement,
476
- );
477
- if (defaultWrapperNode) {
478
- defaultWrapperNode.firstChild.textContent = message;
479
- }
480
- }
481
- }
482
-
483
- /** @private */
484
- __updateRejectButton(button, rejectText, rejectTheme, showReject) {
485
- if (button) {
486
- if (button === this._rejectController.defaultNode) {
487
- button.textContent = rejectText;
488
- button.setAttribute('theme', rejectTheme);
489
- }
490
- button.toggleAttribute('hidden', !showReject);
491
- }
492
- }
493
-
494
- /** @private */
495
- _escPressed(event) {
496
- if (!event.defaultPrevented) {
497
- this.__cancel();
498
- }
499
- }
500
-
501
- /** @private */
502
- __confirm() {
503
- this.dispatchEvent(new CustomEvent('confirm'));
504
- this.opened = false;
505
- }
506
-
507
- /** @private */
508
- __cancel() {
509
- this.dispatchEvent(new CustomEvent('cancel'));
510
- this.opened = false;
511
- }
512
-
513
- /** @private */
514
- __reject() {
515
- this.dispatchEvent(new CustomEvent('reject'));
516
- this.opened = false;
517
- }
518
111
 
519
- /** @private */
520
- _getAriaLabel(header) {
521
- return header || 'confirmation';
112
+ this._initOverlay(this._overlayElement);
522
113
  }
523
114
 
524
115
  /**
@@ -1,3 +1,4 @@
1
+ import '@vaadin/button/theme/lumo/vaadin-button-styles.js';
1
2
  import '@vaadin/vaadin-lumo-styles/color.js';
2
3
  import '@vaadin/vaadin-lumo-styles/spacing.js';
3
4
  import { dialogOverlay } from '@vaadin/dialog/theme/lumo/vaadin-dialog-styles.js';
@@ -1,3 +1,4 @@
1
+ import '@vaadin/button/theme/material/vaadin-button-styles.js';
1
2
  import { dialogOverlay } from '@vaadin/dialog/theme/material/vaadin-dialog-styles.js';
2
3
  import { overlay } from '@vaadin/vaadin-material-styles/mixins/overlay.js';
3
4
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/confirm-dialog",
4
- "version": "24.2.0-beta1",
4
+ "version": "24.2.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-confirm-dialog",
11
- "description": "`<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.\n\n```\n<vaadin-confirm-dialog cancel-button-visible>\n There are unsaved changes. Do you really want to leave?\n</vaadin-confirm-dialog>\n```\n\n### Styling\n\nThe `<vaadin-confirm-dialog>` is not themable. Apply styles to `<vaadin-confirm-dialog-overlay>`\ncomponent and use its shadow parts for styling.\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-beta1/#/elements/vaadin-overlay) for the overlay styling documentation.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | The header element wrapper\n`message` | The message element wrapper\n`footer` | The footer element that wraps the buttons\n`cancel-button` | The \"Cancel\" button wrapper\n`confirm-button` | The \"Confirm\" button wrapper\n`reject-button` | The \"Reject\" button wrapper\n\nUse `confirmTheme`, `cancelTheme` and `rejectTheme` properties to customize buttons theme.\nAlso, the `theme` attribute value set on `<vaadin-confirm-dialog>` is propagated to the\n`<vaadin-confirm-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Custom content\n\nThe following slots are available for providing custom content:\n\nSlot name | Description\n------------------|---------------------------\n`header` | Slot for header element\n`cancel-button` | Slot for \"Cancel\" button\n`confirm-button` | Slot for \"Confirm\" button\n`reject-button` | Slot for \"Reject\" button",
11
+ "description": "`<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.\n\n```\n<vaadin-confirm-dialog cancel-button-visible>\n There are unsaved changes. Do you really want to leave?\n</vaadin-confirm-dialog>\n```\n\n### Styling\n\nThe `<vaadin-confirm-dialog>` is not themable. Apply styles to `<vaadin-confirm-dialog-overlay>`\ncomponent and use its shadow parts for styling.\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-beta3/#/elements/vaadin-overlay) for the overlay styling documentation.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | The header element wrapper\n`message` | The message element wrapper\n`footer` | The footer element that wraps the buttons\n`cancel-button` | The \"Cancel\" button wrapper\n`confirm-button` | The \"Confirm\" button wrapper\n`reject-button` | The \"Reject\" button wrapper\n\nUse `confirmTheme`, `cancelTheme` and `rejectTheme` properties to customize buttons theme.\nAlso, the `theme` attribute value set on `<vaadin-confirm-dialog>` is propagated to the\n`<vaadin-confirm-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Custom content\n\nThe following slots are available for providing custom content:\n\nSlot name | Description\n------------------|---------------------------\n`header` | Slot for header element\n`cancel-button` | Slot for \"Cancel\" button\n`confirm-button` | Slot for \"Confirm\" button\n`reject-button` | Slot for \"Reject\" button",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "accessible-description-ref",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/confirm-dialog",
4
- "version": "24.2.0-beta1",
4
+ "version": "24.2.0-beta3",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-confirm-dialog",
19
- "description": "`<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.\n\n```\n<vaadin-confirm-dialog cancel-button-visible>\n There are unsaved changes. Do you really want to leave?\n</vaadin-confirm-dialog>\n```\n\n### Styling\n\nThe `<vaadin-confirm-dialog>` is not themable. Apply styles to `<vaadin-confirm-dialog-overlay>`\ncomponent and use its shadow parts for styling.\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-beta1/#/elements/vaadin-overlay) for the overlay styling documentation.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | The header element wrapper\n`message` | The message element wrapper\n`footer` | The footer element that wraps the buttons\n`cancel-button` | The \"Cancel\" button wrapper\n`confirm-button` | The \"Confirm\" button wrapper\n`reject-button` | The \"Reject\" button wrapper\n\nUse `confirmTheme`, `cancelTheme` and `rejectTheme` properties to customize buttons theme.\nAlso, the `theme` attribute value set on `<vaadin-confirm-dialog>` is propagated to the\n`<vaadin-confirm-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Custom content\n\nThe following slots are available for providing custom content:\n\nSlot name | Description\n------------------|---------------------------\n`header` | Slot for header element\n`cancel-button` | Slot for \"Cancel\" button\n`confirm-button` | Slot for \"Confirm\" button\n`reject-button` | Slot for \"Reject\" button",
19
+ "description": "`<vaadin-confirm-dialog>` is a Web Component for showing alerts and asking for user confirmation.\n\n```\n<vaadin-confirm-dialog cancel-button-visible>\n There are unsaved changes. Do you really want to leave?\n</vaadin-confirm-dialog>\n```\n\n### Styling\n\nThe `<vaadin-confirm-dialog>` is not themable. Apply styles to `<vaadin-confirm-dialog-overlay>`\ncomponent and use its shadow parts for styling.\nSee [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/24.2.0-beta3/#/elements/vaadin-overlay) for the overlay styling documentation.\n\nIn addition to `<vaadin-overlay>` parts, the following parts are available for theming:\n\nPart name | Description\n-----------------|-------------------------------------------\n`header` | The header element wrapper\n`message` | The message element wrapper\n`footer` | The footer element that wraps the buttons\n`cancel-button` | The \"Cancel\" button wrapper\n`confirm-button` | The \"Confirm\" button wrapper\n`reject-button` | The \"Reject\" button wrapper\n\nUse `confirmTheme`, `cancelTheme` and `rejectTheme` properties to customize buttons theme.\nAlso, the `theme` attribute value set on `<vaadin-confirm-dialog>` is propagated to the\n`<vaadin-confirm-dialog-overlay>` component.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Custom content\n\nThe following slots are available for providing custom content:\n\nSlot name | Description\n------------------|---------------------------\n`header` | Slot for header element\n`cancel-button` | Slot for \"Cancel\" button\n`confirm-button` | Slot for \"Confirm\" button\n`reject-button` | Slot for \"Reject\" button",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {