@openremote/or-vaadin-components 1.27.0 → 1.28.0-snapshot.20260722071012
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements-jsx.d.ts +214 -214
- package/custom-elements.json +854 -854
- package/package.json +3 -3
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ import type { OrVaadinTextField } from "./lib/or-vaadin-text-field.d.ts";
|
|
|
45
45
|
import type { OrVaadinTimePicker } from "./lib/or-vaadin-time-picker.d.ts";
|
|
46
46
|
import type { OrVaadinToggleGroup } from "./lib/or-vaadin-toggle-group.d.ts";
|
|
47
47
|
import type { OrVaadinToggle } from "./lib/or-vaadin-toggle.d.ts";
|
|
48
|
-
import type { Button } from "/home/runner/work/openremote/openremote/node_modules/@vaadin/button/./lib/vaadin-button.js";
|
|
49
48
|
import type { Badge } from "/home/runner/work/openremote/openremote/node_modules/@vaadin/badge/./lib/vaadin-badge.js";
|
|
49
|
+
import type { Button } from "/home/runner/work/openremote/openremote/node_modules/@vaadin/button/./lib/vaadin-button.js";
|
|
50
50
|
import type { Checkbox } from "/home/runner/work/openremote/openremote/node_modules/@vaadin/checkbox/./lib/vaadin-checkbox.js";
|
|
51
51
|
import type { CheckboxGroup } from "/home/runner/work/openremote/openremote/node_modules/@vaadin/checkbox-group/./lib/vaadin-checkbox-group.js";
|
|
52
52
|
import type { ComboBoxItem } from "/home/runner/work/openremote/openremote/node_modules/@vaadin/combo-box/./lib/vaadin-combo-box-item.js";
|
|
@@ -5450,6 +5450,41 @@ will be restored to `0` after re-enabling the element. */
|
|
|
5450
5450
|
textContent?: string | number;
|
|
5451
5451
|
};
|
|
5452
5452
|
|
|
5453
|
+
export type BadgeProps = {
|
|
5454
|
+
/** The number to display in the badge. */
|
|
5455
|
+
number?: Badge["number"];
|
|
5456
|
+
/** Set when the badge has content in the icon slot */
|
|
5457
|
+
"has-icon"?: unknown;
|
|
5458
|
+
/** Set when the badge has content in the icon slot */
|
|
5459
|
+
undefined?: unknown;
|
|
5460
|
+
/** Set when the badge has content in the default slot */
|
|
5461
|
+
"has-content"?: unknown;
|
|
5462
|
+
/** Set when the badge has a number value */
|
|
5463
|
+
"has-number"?: unknown;
|
|
5464
|
+
/** */
|
|
5465
|
+
dir?: Badge["dir"];
|
|
5466
|
+
};
|
|
5467
|
+
|
|
5468
|
+
export type BadgeSolidJsProps = {
|
|
5469
|
+
/** The number to display in the badge. */
|
|
5470
|
+
"prop:number"?: Badge["number"];
|
|
5471
|
+
/** Set when the badge has content in the icon slot */
|
|
5472
|
+
"bool:has-icon"?: unknown;
|
|
5473
|
+
/** Set when the badge has content in the icon slot */
|
|
5474
|
+
"prop:undefined"?: unknown;
|
|
5475
|
+
/** Set when the badge has content in the default slot */
|
|
5476
|
+
"bool:has-content"?: unknown;
|
|
5477
|
+
/** Set when the badge has a number value */
|
|
5478
|
+
"bool:has-number"?: unknown;
|
|
5479
|
+
/** */
|
|
5480
|
+
"prop:dir"?: Badge["dir"];
|
|
5481
|
+
|
|
5482
|
+
/** Set the innerHTML of the element */
|
|
5483
|
+
innerHTML?: string;
|
|
5484
|
+
/** Set the textContent of the element */
|
|
5485
|
+
textContent?: string | number;
|
|
5486
|
+
};
|
|
5487
|
+
|
|
5453
5488
|
export type ButtonProps = {
|
|
5454
5489
|
/** When disabled, the button is rendered as "dimmed".
|
|
5455
5490
|
|
|
@@ -5521,41 +5556,6 @@ window.Vaadin.featureFlags.accessibleDisabledButtons = true
|
|
|
5521
5556
|
textContent?: string | number;
|
|
5522
5557
|
};
|
|
5523
5558
|
|
|
5524
|
-
export type BadgeProps = {
|
|
5525
|
-
/** The number to display in the badge. */
|
|
5526
|
-
number?: Badge["number"];
|
|
5527
|
-
/** Set when the badge has content in the icon slot */
|
|
5528
|
-
"has-icon"?: unknown;
|
|
5529
|
-
/** Set when the badge has content in the icon slot */
|
|
5530
|
-
undefined?: unknown;
|
|
5531
|
-
/** Set when the badge has content in the default slot */
|
|
5532
|
-
"has-content"?: unknown;
|
|
5533
|
-
/** Set when the badge has a number value */
|
|
5534
|
-
"has-number"?: unknown;
|
|
5535
|
-
/** */
|
|
5536
|
-
dir?: Badge["dir"];
|
|
5537
|
-
};
|
|
5538
|
-
|
|
5539
|
-
export type BadgeSolidJsProps = {
|
|
5540
|
-
/** The number to display in the badge. */
|
|
5541
|
-
"prop:number"?: Badge["number"];
|
|
5542
|
-
/** Set when the badge has content in the icon slot */
|
|
5543
|
-
"bool:has-icon"?: unknown;
|
|
5544
|
-
/** Set when the badge has content in the icon slot */
|
|
5545
|
-
"prop:undefined"?: unknown;
|
|
5546
|
-
/** Set when the badge has content in the default slot */
|
|
5547
|
-
"bool:has-content"?: unknown;
|
|
5548
|
-
/** Set when the badge has a number value */
|
|
5549
|
-
"bool:has-number"?: unknown;
|
|
5550
|
-
/** */
|
|
5551
|
-
"prop:dir"?: Badge["dir"];
|
|
5552
|
-
|
|
5553
|
-
/** Set the innerHTML of the element */
|
|
5554
|
-
innerHTML?: string;
|
|
5555
|
-
/** Set the textContent of the element */
|
|
5556
|
-
textContent?: string | number;
|
|
5557
|
-
};
|
|
5558
|
-
|
|
5559
5559
|
export type CheckboxProps = {
|
|
5560
5560
|
/** Set when the checkbox is activated with mouse, touch or the keyboard. */
|
|
5561
5561
|
active?: unknown;
|
|
@@ -15539,6 +15539,94 @@ export type CustomElements = {
|
|
|
15539
15539
|
OrVaadinToggleProps & BaseProps<OrVaadinToggle> & BaseEvents
|
|
15540
15540
|
>;
|
|
15541
15541
|
|
|
15542
|
+
/**
|
|
15543
|
+
* `<vaadin-badge>` is a Web Component for displaying badges.
|
|
15544
|
+
*
|
|
15545
|
+
* ```html
|
|
15546
|
+
* <vaadin-badge>New</vaadin-badge>
|
|
15547
|
+
* ```
|
|
15548
|
+
*
|
|
15549
|
+
* ### Slots
|
|
15550
|
+
*
|
|
15551
|
+
* Name | Description
|
|
15552
|
+
* ---------|-------------
|
|
15553
|
+
* (none) | Default slot for the badge text content
|
|
15554
|
+
* `icon` | Slot for an icon to place before the text
|
|
15555
|
+
*
|
|
15556
|
+
* ### Styling
|
|
15557
|
+
*
|
|
15558
|
+
* The following shadow DOM parts are available for styling:
|
|
15559
|
+
*
|
|
15560
|
+
* Part name | Description
|
|
15561
|
+
* -----------|-------------
|
|
15562
|
+
* `icon` | The container for the icon slot
|
|
15563
|
+
* `number` | The container for the number value
|
|
15564
|
+
* `content` | The container for the default slot
|
|
15565
|
+
*
|
|
15566
|
+
* The following state attributes are available for styling:
|
|
15567
|
+
*
|
|
15568
|
+
* Attribute | Description
|
|
15569
|
+
* ---------------|-------------
|
|
15570
|
+
* `has-icon` | Set when the badge has content in the icon slot
|
|
15571
|
+
* `has-content` | Set when the badge has content in the default slot
|
|
15572
|
+
* `has-number` | Set when the badge has a number value
|
|
15573
|
+
*
|
|
15574
|
+
* The following custom CSS properties are available for styling:
|
|
15575
|
+
*
|
|
15576
|
+
* Custom CSS property |
|
|
15577
|
+
* :--------------------------------|
|
|
15578
|
+
* `--vaadin-badge-background` |
|
|
15579
|
+
* `--vaadin-badge-border-color` |
|
|
15580
|
+
* `--vaadin-badge-border-radius` |
|
|
15581
|
+
* `--vaadin-badge-border-width` |
|
|
15582
|
+
* `--vaadin-badge-font-size` |
|
|
15583
|
+
* `--vaadin-badge-font-weight` |
|
|
15584
|
+
* `--vaadin-badge-font-family` |
|
|
15585
|
+
* `--vaadin-badge-gap` |
|
|
15586
|
+
* `--vaadin-badge-line-height` |
|
|
15587
|
+
* `--vaadin-badge-padding` |
|
|
15588
|
+
* `--vaadin-badge-text-color` |
|
|
15589
|
+
*
|
|
15590
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
15591
|
+
*
|
|
15592
|
+
* ## Attributes & Properties
|
|
15593
|
+
*
|
|
15594
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15595
|
+
*
|
|
15596
|
+
* - `number`: The number to display in the badge.
|
|
15597
|
+
* - `has-icon`/`undefined`: Set when the badge has content in the icon slot
|
|
15598
|
+
* - `has-content`/`undefined`: Set when the badge has content in the default slot
|
|
15599
|
+
* - `has-number`/`undefined`: Set when the badge has a number value
|
|
15600
|
+
* - `dir`: undefined
|
|
15601
|
+
*
|
|
15602
|
+
* ## Events
|
|
15603
|
+
*
|
|
15604
|
+
* Events that will be emitted by the component.
|
|
15605
|
+
*
|
|
15606
|
+
* - `undefined`: undefined
|
|
15607
|
+
*
|
|
15608
|
+
* ## Methods
|
|
15609
|
+
*
|
|
15610
|
+
* Methods that can be called to access component functionality.
|
|
15611
|
+
*
|
|
15612
|
+
* - `createProperty(name, options) => void`: undefined
|
|
15613
|
+
* - `getOrCreateMap(name) => void`: undefined
|
|
15614
|
+
* - `addCheckedInitializer(initializer) => void`: undefined
|
|
15615
|
+
* - `getPropertyDescriptor(name, key, options) => void`: undefined
|
|
15616
|
+
*
|
|
15617
|
+
* ## CSS Custom Properties
|
|
15618
|
+
*
|
|
15619
|
+
* CSS variables available for styling the component.
|
|
15620
|
+
*
|
|
15621
|
+
* - `--vaadin-badge-background`: `--vaadin-badge-border-color` (default: `undefined`)
|
|
15622
|
+
* - `--vaadin-badge-border-radius`: `--vaadin-badge-border-width` (default: `undefined`)
|
|
15623
|
+
* - `--vaadin-badge-font-size`: `--vaadin-badge-font-weight` (default: `undefined`)
|
|
15624
|
+
* - `--vaadin-badge-font-family`: `--vaadin-badge-gap` (default: `undefined`)
|
|
15625
|
+
* - `--vaadin-badge-line-height`: `--vaadin-badge-padding` (default: `undefined`)
|
|
15626
|
+
* - `--vaadin-badge-text-color`: See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation. (default: `undefined`)
|
|
15627
|
+
*/
|
|
15628
|
+
"vaadin-badge": Partial<BadgeProps & BaseProps<Badge> & BaseEvents>;
|
|
15629
|
+
|
|
15542
15630
|
/**
|
|
15543
15631
|
* `<vaadin-button>` is an accessible and customizable button that allows users to perform actions.
|
|
15544
15632
|
*
|
|
@@ -15647,94 +15735,6 @@ export type CustomElements = {
|
|
|
15647
15735
|
*/
|
|
15648
15736
|
"vaadin-button": Partial<ButtonProps & BaseProps<Button> & BaseEvents>;
|
|
15649
15737
|
|
|
15650
|
-
/**
|
|
15651
|
-
* `<vaadin-badge>` is a Web Component for displaying badges.
|
|
15652
|
-
*
|
|
15653
|
-
* ```html
|
|
15654
|
-
* <vaadin-badge>New</vaadin-badge>
|
|
15655
|
-
* ```
|
|
15656
|
-
*
|
|
15657
|
-
* ### Slots
|
|
15658
|
-
*
|
|
15659
|
-
* Name | Description
|
|
15660
|
-
* ---------|-------------
|
|
15661
|
-
* (none) | Default slot for the badge text content
|
|
15662
|
-
* `icon` | Slot for an icon to place before the text
|
|
15663
|
-
*
|
|
15664
|
-
* ### Styling
|
|
15665
|
-
*
|
|
15666
|
-
* The following shadow DOM parts are available for styling:
|
|
15667
|
-
*
|
|
15668
|
-
* Part name | Description
|
|
15669
|
-
* -----------|-------------
|
|
15670
|
-
* `icon` | The container for the icon slot
|
|
15671
|
-
* `number` | The container for the number value
|
|
15672
|
-
* `content` | The container for the default slot
|
|
15673
|
-
*
|
|
15674
|
-
* The following state attributes are available for styling:
|
|
15675
|
-
*
|
|
15676
|
-
* Attribute | Description
|
|
15677
|
-
* ---------------|-------------
|
|
15678
|
-
* `has-icon` | Set when the badge has content in the icon slot
|
|
15679
|
-
* `has-content` | Set when the badge has content in the default slot
|
|
15680
|
-
* `has-number` | Set when the badge has a number value
|
|
15681
|
-
*
|
|
15682
|
-
* The following custom CSS properties are available for styling:
|
|
15683
|
-
*
|
|
15684
|
-
* Custom CSS property |
|
|
15685
|
-
* :--------------------------------|
|
|
15686
|
-
* `--vaadin-badge-background` |
|
|
15687
|
-
* `--vaadin-badge-border-color` |
|
|
15688
|
-
* `--vaadin-badge-border-radius` |
|
|
15689
|
-
* `--vaadin-badge-border-width` |
|
|
15690
|
-
* `--vaadin-badge-font-size` |
|
|
15691
|
-
* `--vaadin-badge-font-weight` |
|
|
15692
|
-
* `--vaadin-badge-font-family` |
|
|
15693
|
-
* `--vaadin-badge-gap` |
|
|
15694
|
-
* `--vaadin-badge-line-height` |
|
|
15695
|
-
* `--vaadin-badge-padding` |
|
|
15696
|
-
* `--vaadin-badge-text-color` |
|
|
15697
|
-
*
|
|
15698
|
-
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
15699
|
-
*
|
|
15700
|
-
* ## Attributes & Properties
|
|
15701
|
-
*
|
|
15702
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
15703
|
-
*
|
|
15704
|
-
* - `number`: The number to display in the badge.
|
|
15705
|
-
* - `has-icon`/`undefined`: Set when the badge has content in the icon slot
|
|
15706
|
-
* - `has-content`/`undefined`: Set when the badge has content in the default slot
|
|
15707
|
-
* - `has-number`/`undefined`: Set when the badge has a number value
|
|
15708
|
-
* - `dir`: undefined
|
|
15709
|
-
*
|
|
15710
|
-
* ## Events
|
|
15711
|
-
*
|
|
15712
|
-
* Events that will be emitted by the component.
|
|
15713
|
-
*
|
|
15714
|
-
* - `undefined`: undefined
|
|
15715
|
-
*
|
|
15716
|
-
* ## Methods
|
|
15717
|
-
*
|
|
15718
|
-
* Methods that can be called to access component functionality.
|
|
15719
|
-
*
|
|
15720
|
-
* - `createProperty(name, options) => void`: undefined
|
|
15721
|
-
* - `getOrCreateMap(name) => void`: undefined
|
|
15722
|
-
* - `addCheckedInitializer(initializer) => void`: undefined
|
|
15723
|
-
* - `getPropertyDescriptor(name, key, options) => void`: undefined
|
|
15724
|
-
*
|
|
15725
|
-
* ## CSS Custom Properties
|
|
15726
|
-
*
|
|
15727
|
-
* CSS variables available for styling the component.
|
|
15728
|
-
*
|
|
15729
|
-
* - `--vaadin-badge-background`: `--vaadin-badge-border-color` (default: `undefined`)
|
|
15730
|
-
* - `--vaadin-badge-border-radius`: `--vaadin-badge-border-width` (default: `undefined`)
|
|
15731
|
-
* - `--vaadin-badge-font-size`: `--vaadin-badge-font-weight` (default: `undefined`)
|
|
15732
|
-
* - `--vaadin-badge-font-family`: `--vaadin-badge-gap` (default: `undefined`)
|
|
15733
|
-
* - `--vaadin-badge-line-height`: `--vaadin-badge-padding` (default: `undefined`)
|
|
15734
|
-
* - `--vaadin-badge-text-color`: See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation. (default: `undefined`)
|
|
15735
|
-
*/
|
|
15736
|
-
"vaadin-badge": Partial<BadgeProps & BaseProps<Badge> & BaseEvents>;
|
|
15737
|
-
|
|
15738
15738
|
/**
|
|
15739
15739
|
* `<vaadin-checkbox>` is an input field representing a binary choice.
|
|
15740
15740
|
*
|
|
@@ -24441,6 +24441,96 @@ export type CustomElementsSolidJs = {
|
|
|
24441
24441
|
BaseEvents
|
|
24442
24442
|
>;
|
|
24443
24443
|
|
|
24444
|
+
/**
|
|
24445
|
+
* `<vaadin-badge>` is a Web Component for displaying badges.
|
|
24446
|
+
*
|
|
24447
|
+
* ```html
|
|
24448
|
+
* <vaadin-badge>New</vaadin-badge>
|
|
24449
|
+
* ```
|
|
24450
|
+
*
|
|
24451
|
+
* ### Slots
|
|
24452
|
+
*
|
|
24453
|
+
* Name | Description
|
|
24454
|
+
* ---------|-------------
|
|
24455
|
+
* (none) | Default slot for the badge text content
|
|
24456
|
+
* `icon` | Slot for an icon to place before the text
|
|
24457
|
+
*
|
|
24458
|
+
* ### Styling
|
|
24459
|
+
*
|
|
24460
|
+
* The following shadow DOM parts are available for styling:
|
|
24461
|
+
*
|
|
24462
|
+
* Part name | Description
|
|
24463
|
+
* -----------|-------------
|
|
24464
|
+
* `icon` | The container for the icon slot
|
|
24465
|
+
* `number` | The container for the number value
|
|
24466
|
+
* `content` | The container for the default slot
|
|
24467
|
+
*
|
|
24468
|
+
* The following state attributes are available for styling:
|
|
24469
|
+
*
|
|
24470
|
+
* Attribute | Description
|
|
24471
|
+
* ---------------|-------------
|
|
24472
|
+
* `has-icon` | Set when the badge has content in the icon slot
|
|
24473
|
+
* `has-content` | Set when the badge has content in the default slot
|
|
24474
|
+
* `has-number` | Set when the badge has a number value
|
|
24475
|
+
*
|
|
24476
|
+
* The following custom CSS properties are available for styling:
|
|
24477
|
+
*
|
|
24478
|
+
* Custom CSS property |
|
|
24479
|
+
* :--------------------------------|
|
|
24480
|
+
* `--vaadin-badge-background` |
|
|
24481
|
+
* `--vaadin-badge-border-color` |
|
|
24482
|
+
* `--vaadin-badge-border-radius` |
|
|
24483
|
+
* `--vaadin-badge-border-width` |
|
|
24484
|
+
* `--vaadin-badge-font-size` |
|
|
24485
|
+
* `--vaadin-badge-font-weight` |
|
|
24486
|
+
* `--vaadin-badge-font-family` |
|
|
24487
|
+
* `--vaadin-badge-gap` |
|
|
24488
|
+
* `--vaadin-badge-line-height` |
|
|
24489
|
+
* `--vaadin-badge-padding` |
|
|
24490
|
+
* `--vaadin-badge-text-color` |
|
|
24491
|
+
*
|
|
24492
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
24493
|
+
*
|
|
24494
|
+
* ## Attributes & Properties
|
|
24495
|
+
*
|
|
24496
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
24497
|
+
*
|
|
24498
|
+
* - `number`: The number to display in the badge.
|
|
24499
|
+
* - `has-icon`/`undefined`: Set when the badge has content in the icon slot
|
|
24500
|
+
* - `has-content`/`undefined`: Set when the badge has content in the default slot
|
|
24501
|
+
* - `has-number`/`undefined`: Set when the badge has a number value
|
|
24502
|
+
* - `dir`: undefined
|
|
24503
|
+
*
|
|
24504
|
+
* ## Events
|
|
24505
|
+
*
|
|
24506
|
+
* Events that will be emitted by the component.
|
|
24507
|
+
*
|
|
24508
|
+
* - `undefined`: undefined
|
|
24509
|
+
*
|
|
24510
|
+
* ## Methods
|
|
24511
|
+
*
|
|
24512
|
+
* Methods that can be called to access component functionality.
|
|
24513
|
+
*
|
|
24514
|
+
* - `createProperty(name, options) => void`: undefined
|
|
24515
|
+
* - `getOrCreateMap(name) => void`: undefined
|
|
24516
|
+
* - `addCheckedInitializer(initializer) => void`: undefined
|
|
24517
|
+
* - `getPropertyDescriptor(name, key, options) => void`: undefined
|
|
24518
|
+
*
|
|
24519
|
+
* ## CSS Custom Properties
|
|
24520
|
+
*
|
|
24521
|
+
* CSS variables available for styling the component.
|
|
24522
|
+
*
|
|
24523
|
+
* - `--vaadin-badge-background`: `--vaadin-badge-border-color` (default: `undefined`)
|
|
24524
|
+
* - `--vaadin-badge-border-radius`: `--vaadin-badge-border-width` (default: `undefined`)
|
|
24525
|
+
* - `--vaadin-badge-font-size`: `--vaadin-badge-font-weight` (default: `undefined`)
|
|
24526
|
+
* - `--vaadin-badge-font-family`: `--vaadin-badge-gap` (default: `undefined`)
|
|
24527
|
+
* - `--vaadin-badge-line-height`: `--vaadin-badge-padding` (default: `undefined`)
|
|
24528
|
+
* - `--vaadin-badge-text-color`: See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation. (default: `undefined`)
|
|
24529
|
+
*/
|
|
24530
|
+
"vaadin-badge": Partial<
|
|
24531
|
+
BadgeProps & BadgeSolidJsProps & BaseProps<Badge> & BaseEvents
|
|
24532
|
+
>;
|
|
24533
|
+
|
|
24444
24534
|
/**
|
|
24445
24535
|
* `<vaadin-button>` is an accessible and customizable button that allows users to perform actions.
|
|
24446
24536
|
*
|
|
@@ -24551,96 +24641,6 @@ export type CustomElementsSolidJs = {
|
|
|
24551
24641
|
ButtonProps & ButtonSolidJsProps & BaseProps<Button> & BaseEvents
|
|
24552
24642
|
>;
|
|
24553
24643
|
|
|
24554
|
-
/**
|
|
24555
|
-
* `<vaadin-badge>` is a Web Component for displaying badges.
|
|
24556
|
-
*
|
|
24557
|
-
* ```html
|
|
24558
|
-
* <vaadin-badge>New</vaadin-badge>
|
|
24559
|
-
* ```
|
|
24560
|
-
*
|
|
24561
|
-
* ### Slots
|
|
24562
|
-
*
|
|
24563
|
-
* Name | Description
|
|
24564
|
-
* ---------|-------------
|
|
24565
|
-
* (none) | Default slot for the badge text content
|
|
24566
|
-
* `icon` | Slot for an icon to place before the text
|
|
24567
|
-
*
|
|
24568
|
-
* ### Styling
|
|
24569
|
-
*
|
|
24570
|
-
* The following shadow DOM parts are available for styling:
|
|
24571
|
-
*
|
|
24572
|
-
* Part name | Description
|
|
24573
|
-
* -----------|-------------
|
|
24574
|
-
* `icon` | The container for the icon slot
|
|
24575
|
-
* `number` | The container for the number value
|
|
24576
|
-
* `content` | The container for the default slot
|
|
24577
|
-
*
|
|
24578
|
-
* The following state attributes are available for styling:
|
|
24579
|
-
*
|
|
24580
|
-
* Attribute | Description
|
|
24581
|
-
* ---------------|-------------
|
|
24582
|
-
* `has-icon` | Set when the badge has content in the icon slot
|
|
24583
|
-
* `has-content` | Set when the badge has content in the default slot
|
|
24584
|
-
* `has-number` | Set when the badge has a number value
|
|
24585
|
-
*
|
|
24586
|
-
* The following custom CSS properties are available for styling:
|
|
24587
|
-
*
|
|
24588
|
-
* Custom CSS property |
|
|
24589
|
-
* :--------------------------------|
|
|
24590
|
-
* `--vaadin-badge-background` |
|
|
24591
|
-
* `--vaadin-badge-border-color` |
|
|
24592
|
-
* `--vaadin-badge-border-radius` |
|
|
24593
|
-
* `--vaadin-badge-border-width` |
|
|
24594
|
-
* `--vaadin-badge-font-size` |
|
|
24595
|
-
* `--vaadin-badge-font-weight` |
|
|
24596
|
-
* `--vaadin-badge-font-family` |
|
|
24597
|
-
* `--vaadin-badge-gap` |
|
|
24598
|
-
* `--vaadin-badge-line-height` |
|
|
24599
|
-
* `--vaadin-badge-padding` |
|
|
24600
|
-
* `--vaadin-badge-text-color` |
|
|
24601
|
-
*
|
|
24602
|
-
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
24603
|
-
*
|
|
24604
|
-
* ## Attributes & Properties
|
|
24605
|
-
*
|
|
24606
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
24607
|
-
*
|
|
24608
|
-
* - `number`: The number to display in the badge.
|
|
24609
|
-
* - `has-icon`/`undefined`: Set when the badge has content in the icon slot
|
|
24610
|
-
* - `has-content`/`undefined`: Set when the badge has content in the default slot
|
|
24611
|
-
* - `has-number`/`undefined`: Set when the badge has a number value
|
|
24612
|
-
* - `dir`: undefined
|
|
24613
|
-
*
|
|
24614
|
-
* ## Events
|
|
24615
|
-
*
|
|
24616
|
-
* Events that will be emitted by the component.
|
|
24617
|
-
*
|
|
24618
|
-
* - `undefined`: undefined
|
|
24619
|
-
*
|
|
24620
|
-
* ## Methods
|
|
24621
|
-
*
|
|
24622
|
-
* Methods that can be called to access component functionality.
|
|
24623
|
-
*
|
|
24624
|
-
* - `createProperty(name, options) => void`: undefined
|
|
24625
|
-
* - `getOrCreateMap(name) => void`: undefined
|
|
24626
|
-
* - `addCheckedInitializer(initializer) => void`: undefined
|
|
24627
|
-
* - `getPropertyDescriptor(name, key, options) => void`: undefined
|
|
24628
|
-
*
|
|
24629
|
-
* ## CSS Custom Properties
|
|
24630
|
-
*
|
|
24631
|
-
* CSS variables available for styling the component.
|
|
24632
|
-
*
|
|
24633
|
-
* - `--vaadin-badge-background`: `--vaadin-badge-border-color` (default: `undefined`)
|
|
24634
|
-
* - `--vaadin-badge-border-radius`: `--vaadin-badge-border-width` (default: `undefined`)
|
|
24635
|
-
* - `--vaadin-badge-font-size`: `--vaadin-badge-font-weight` (default: `undefined`)
|
|
24636
|
-
* - `--vaadin-badge-font-family`: `--vaadin-badge-gap` (default: `undefined`)
|
|
24637
|
-
* - `--vaadin-badge-line-height`: `--vaadin-badge-padding` (default: `undefined`)
|
|
24638
|
-
* - `--vaadin-badge-text-color`: See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation. (default: `undefined`)
|
|
24639
|
-
*/
|
|
24640
|
-
"vaadin-badge": Partial<
|
|
24641
|
-
BadgeProps & BadgeSolidJsProps & BaseProps<Badge> & BaseEvents
|
|
24642
|
-
>;
|
|
24643
|
-
|
|
24644
24644
|
/**
|
|
24645
24645
|
* `<vaadin-checkbox>` is an input field representing a binary choice.
|
|
24646
24646
|
*
|