@warp-ds/elements 2.3.0-next.25 → 2.3.0-next.26
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 +93 -14
- package/dist/index.d.ts +222 -0
- package/dist/packages/checkbox/checkbox-group.js +2 -2
- package/dist/packages/checkbox/checkbox-group.js.map +2 -2
- package/dist/packages/checkbox/checkbox.js +1 -1
- package/dist/packages/checkbox/checkbox.js.map +2 -2
- package/dist/packages/checkbox/index.d.ts +2 -1
- package/dist/packages/checkbox/index.js +2 -6
- package/dist/packages/radio/index.d.ts +2 -1
- package/dist/packages/radio/index.js +2 -6
- package/dist/packages/radio/radio-group.js +5 -5
- package/dist/packages/radio/radio-group.js.map +2 -2
- package/dist/packages/radio/radio.js +1 -1
- package/dist/packages/radio/radio.js.map +2 -2
- package/dist/packages/radio/radio.stories.js +3 -3
- package/dist/packages/radio/radio.stories.js.map +4 -4
- package/dist/web-types.json +334 -1
- package/package.json +1 -1
|
@@ -4736,6 +4736,9 @@
|
|
|
4736
4736
|
"type": {
|
|
4737
4737
|
"text": "void"
|
|
4738
4738
|
}
|
|
4739
|
+
},
|
|
4740
|
+
"type": {
|
|
4741
|
+
"text": "setValue() => void"
|
|
4739
4742
|
}
|
|
4740
4743
|
},
|
|
4741
4744
|
{
|
|
@@ -4793,7 +4796,11 @@
|
|
|
4793
4796
|
"superclass": {
|
|
4794
4797
|
"name": "BaseFormAssociatedElement",
|
|
4795
4798
|
"module": "/packages/radio/form-associated-element"
|
|
4796
|
-
}
|
|
4799
|
+
},
|
|
4800
|
+
"tagName": "w-radio",
|
|
4801
|
+
"customElement": true,
|
|
4802
|
+
"modulePath": "packages/radio/radio.ts",
|
|
4803
|
+
"definitionPath": "packages/radio/radio.ts"
|
|
4797
4804
|
}
|
|
4798
4805
|
],
|
|
4799
4806
|
"exports": [
|
|
@@ -4804,6 +4811,14 @@
|
|
|
4804
4811
|
"name": "WRadio",
|
|
4805
4812
|
"module": "packages/radio/radio.ts"
|
|
4806
4813
|
}
|
|
4814
|
+
},
|
|
4815
|
+
{
|
|
4816
|
+
"kind": "custom-element-definition",
|
|
4817
|
+
"name": "w-radio",
|
|
4818
|
+
"declaration": {
|
|
4819
|
+
"name": "WRadio",
|
|
4820
|
+
"module": "packages/radio/radio.ts"
|
|
4821
|
+
}
|
|
4807
4822
|
}
|
|
4808
4823
|
]
|
|
4809
4824
|
},
|
|
@@ -5003,7 +5018,10 @@
|
|
|
5003
5018
|
"text": "Parameters<BaseFormAssociatedElement['formResetCallback']>"
|
|
5004
5019
|
}
|
|
5005
5020
|
}
|
|
5006
|
-
]
|
|
5021
|
+
],
|
|
5022
|
+
"type": {
|
|
5023
|
+
"text": "formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void"
|
|
5024
|
+
}
|
|
5007
5025
|
},
|
|
5008
5026
|
{
|
|
5009
5027
|
"kind": "field",
|
|
@@ -5051,7 +5069,10 @@
|
|
|
5051
5069
|
}
|
|
5052
5070
|
}
|
|
5053
5071
|
],
|
|
5054
|
-
"description": "Sets focus on the radio group."
|
|
5072
|
+
"description": "Sets focus on the radio group.",
|
|
5073
|
+
"type": {
|
|
5074
|
+
"text": "focus(options?: FocusOptions) => void"
|
|
5075
|
+
}
|
|
5055
5076
|
}
|
|
5056
5077
|
],
|
|
5057
5078
|
"events": [
|
|
@@ -5162,7 +5183,11 @@
|
|
|
5162
5183
|
"superclass": {
|
|
5163
5184
|
"name": "BaseFormAssociatedElement",
|
|
5164
5185
|
"module": "/packages/radio/form-associated-element"
|
|
5165
|
-
}
|
|
5186
|
+
},
|
|
5187
|
+
"tagName": "w-radio-group",
|
|
5188
|
+
"customElement": true,
|
|
5189
|
+
"modulePath": "packages/radio/radio-group.ts",
|
|
5190
|
+
"definitionPath": "packages/radio/radio-group.ts"
|
|
5166
5191
|
}
|
|
5167
5192
|
],
|
|
5168
5193
|
"exports": [
|
|
@@ -5173,6 +5198,14 @@
|
|
|
5173
5198
|
"name": "WRadioGroup",
|
|
5174
5199
|
"module": "packages/radio/radio-group.ts"
|
|
5175
5200
|
}
|
|
5201
|
+
},
|
|
5202
|
+
{
|
|
5203
|
+
"kind": "custom-element-definition",
|
|
5204
|
+
"name": "w-radio-group",
|
|
5205
|
+
"declaration": {
|
|
5206
|
+
"name": "WRadioGroup",
|
|
5207
|
+
"module": "packages/radio/radio-group.ts"
|
|
5208
|
+
}
|
|
5176
5209
|
}
|
|
5177
5210
|
]
|
|
5178
5211
|
},
|
|
@@ -5392,28 +5425,46 @@
|
|
|
5392
5425
|
},
|
|
5393
5426
|
{
|
|
5394
5427
|
"kind": "method",
|
|
5395
|
-
"name": "handleDefaultCheckedChange"
|
|
5428
|
+
"name": "handleDefaultCheckedChange",
|
|
5429
|
+
"type": {
|
|
5430
|
+
"text": "handleDefaultCheckedChange() => void"
|
|
5431
|
+
}
|
|
5396
5432
|
},
|
|
5397
5433
|
{
|
|
5398
5434
|
"kind": "method",
|
|
5399
|
-
"name": "handleValueOrCheckedChange"
|
|
5435
|
+
"name": "handleValueOrCheckedChange",
|
|
5436
|
+
"type": {
|
|
5437
|
+
"text": "handleValueOrCheckedChange() => void"
|
|
5438
|
+
}
|
|
5400
5439
|
},
|
|
5401
5440
|
{
|
|
5402
5441
|
"kind": "method",
|
|
5403
|
-
"name": "handleStateChange"
|
|
5442
|
+
"name": "handleStateChange",
|
|
5443
|
+
"type": {
|
|
5444
|
+
"text": "handleStateChange() => void"
|
|
5445
|
+
}
|
|
5404
5446
|
},
|
|
5405
5447
|
{
|
|
5406
5448
|
"kind": "method",
|
|
5407
|
-
"name": "handleDisabledChange"
|
|
5449
|
+
"name": "handleDisabledChange",
|
|
5450
|
+
"type": {
|
|
5451
|
+
"text": "handleDisabledChange() => void"
|
|
5452
|
+
}
|
|
5408
5453
|
},
|
|
5409
5454
|
{
|
|
5410
5455
|
"kind": "method",
|
|
5411
|
-
"name": "formResetCallback"
|
|
5456
|
+
"name": "formResetCallback",
|
|
5457
|
+
"type": {
|
|
5458
|
+
"text": "formResetCallback() => void"
|
|
5459
|
+
}
|
|
5412
5460
|
},
|
|
5413
5461
|
{
|
|
5414
5462
|
"kind": "method",
|
|
5415
5463
|
"name": "click",
|
|
5416
|
-
"description": "Simulates a click on the checkbox."
|
|
5464
|
+
"description": "Simulates a click on the checkbox.",
|
|
5465
|
+
"type": {
|
|
5466
|
+
"text": "click() => void"
|
|
5467
|
+
}
|
|
5417
5468
|
},
|
|
5418
5469
|
{
|
|
5419
5470
|
"kind": "method",
|
|
@@ -5427,12 +5478,18 @@
|
|
|
5427
5478
|
}
|
|
5428
5479
|
}
|
|
5429
5480
|
],
|
|
5430
|
-
"description": "Sets focus on the checkbox."
|
|
5481
|
+
"description": "Sets focus on the checkbox.",
|
|
5482
|
+
"type": {
|
|
5483
|
+
"text": "focus(options?: FocusOptions) => void"
|
|
5484
|
+
}
|
|
5431
5485
|
},
|
|
5432
5486
|
{
|
|
5433
5487
|
"kind": "method",
|
|
5434
5488
|
"name": "blur",
|
|
5435
|
-
"description": "Removes focus from the checkbox."
|
|
5489
|
+
"description": "Removes focus from the checkbox.",
|
|
5490
|
+
"type": {
|
|
5491
|
+
"text": "blur() => void"
|
|
5492
|
+
}
|
|
5436
5493
|
}
|
|
5437
5494
|
],
|
|
5438
5495
|
"events": [
|
|
@@ -5535,7 +5592,11 @@
|
|
|
5535
5592
|
"superclass": {
|
|
5536
5593
|
"name": "BaseFormAssociatedElement",
|
|
5537
5594
|
"module": "/packages/radio/form-associated-element"
|
|
5538
|
-
}
|
|
5595
|
+
},
|
|
5596
|
+
"tagName": "w-checkbox",
|
|
5597
|
+
"customElement": true,
|
|
5598
|
+
"modulePath": "packages/checkbox/checkbox.ts",
|
|
5599
|
+
"definitionPath": "packages/checkbox/checkbox.ts"
|
|
5539
5600
|
}
|
|
5540
5601
|
],
|
|
5541
5602
|
"exports": [
|
|
@@ -5546,6 +5607,14 @@
|
|
|
5546
5607
|
"name": "WCheckbox",
|
|
5547
5608
|
"module": "packages/checkbox/checkbox.ts"
|
|
5548
5609
|
}
|
|
5610
|
+
},
|
|
5611
|
+
{
|
|
5612
|
+
"kind": "custom-element-definition",
|
|
5613
|
+
"name": "w-checkbox",
|
|
5614
|
+
"declaration": {
|
|
5615
|
+
"name": "WCheckbox",
|
|
5616
|
+
"module": "packages/checkbox/checkbox.ts"
|
|
5617
|
+
}
|
|
5549
5618
|
}
|
|
5550
5619
|
]
|
|
5551
5620
|
},
|
|
@@ -5562,8 +5631,10 @@
|
|
|
5562
5631
|
"name": "LitElement",
|
|
5563
5632
|
"package": "lit"
|
|
5564
5633
|
},
|
|
5634
|
+
"tagName": "w-checkbox-group",
|
|
5565
5635
|
"customElement": true,
|
|
5566
|
-
"modulePath": "packages/checkbox/checkbox-group.ts"
|
|
5636
|
+
"modulePath": "packages/checkbox/checkbox-group.ts",
|
|
5637
|
+
"definitionPath": "packages/checkbox/checkbox-group.ts"
|
|
5567
5638
|
}
|
|
5568
5639
|
],
|
|
5569
5640
|
"exports": [
|
|
@@ -5574,6 +5645,14 @@
|
|
|
5574
5645
|
"name": "WCheckboxGroup",
|
|
5575
5646
|
"module": "packages/checkbox/checkbox-group.ts"
|
|
5576
5647
|
}
|
|
5648
|
+
},
|
|
5649
|
+
{
|
|
5650
|
+
"kind": "custom-element-definition",
|
|
5651
|
+
"name": "w-checkbox-group",
|
|
5652
|
+
"declaration": {
|
|
5653
|
+
"name": "WCheckboxGroup",
|
|
5654
|
+
"module": "packages/checkbox/checkbox-group.ts"
|
|
5655
|
+
}
|
|
5577
5656
|
}
|
|
5578
5657
|
]
|
|
5579
5658
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
|
21
21
|
import type { WarpDeadToggle } from "./packages/deadtoggle/index.ts";
|
|
22
22
|
import type { WarpPageIndicator } from "./packages/pageindicator/index.ts";
|
|
23
23
|
import type { WarpPagination } from "./packages/pagination/index.ts";
|
|
24
|
+
import type { WRadio } from "./packages/radio/radio.ts";
|
|
25
|
+
import type { WRadioGroup } from "./packages/radio/radio-group.ts";
|
|
26
|
+
import type { WCheckbox } from "./packages/checkbox/checkbox.ts";
|
|
24
27
|
import type { WCheckboxGroup } from "./packages/checkbox/checkbox-group.ts";
|
|
25
28
|
import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
|
|
26
29
|
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
@@ -697,6 +700,104 @@ export type WarpPaginationProps = {
|
|
|
697
700
|
}
|
|
698
701
|
|
|
699
702
|
|
|
703
|
+
export type WRadioProps = {
|
|
704
|
+
/** The string pointing to a form's id. */
|
|
705
|
+
"form"?: WRadio['form'];
|
|
706
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
707
|
+
"value"?: WRadio['value'];
|
|
708
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
709
|
+
"appearance"?: WRadio['appearance'];
|
|
710
|
+
/** The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
711
|
+
attribute can typically be omitted. */
|
|
712
|
+
"size"?: WRadio['size'];
|
|
713
|
+
/** Disables the radio. */
|
|
714
|
+
"disabled"?: WRadio['disabled'];
|
|
715
|
+
/** */
|
|
716
|
+
"checked"?: WRadio['checked'];
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
export type WRadioGroupProps = {
|
|
723
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
724
|
+
instead. */
|
|
725
|
+
"label"?: WRadioGroup['label'];
|
|
726
|
+
/** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
727
|
+
"hint"?: WRadioGroup['hint'];
|
|
728
|
+
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
729
|
+
"name"?: WRadioGroup['name'];
|
|
730
|
+
/** Disables the radio group and all child radios. */
|
|
731
|
+
"disabled"?: WRadioGroup['disabled'];
|
|
732
|
+
/** The orientation in which to show radio items. */
|
|
733
|
+
"orientation"?: WRadioGroup['orientation'];
|
|
734
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
735
|
+
"value"?: WRadioGroup['defaultValue'];
|
|
736
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
737
|
+
"defaultValue"?: WRadioGroup['defaultValue'];
|
|
738
|
+
/** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
|
|
739
|
+
"size"?: WRadioGroup['size'];
|
|
740
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
741
|
+
"required"?: WRadioGroup['required'];
|
|
742
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
743
|
+
"with-label"?: WRadioGroup['withLabel'];
|
|
744
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
745
|
+
"withLabel"?: WRadioGroup['withLabel'];
|
|
746
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
747
|
+
"with-hint"?: WRadioGroup['withHint'];
|
|
748
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
749
|
+
"withHint"?: WRadioGroup['withHint'];
|
|
750
|
+
/** */
|
|
751
|
+
"hasRadioButtons"?: WRadioGroup['hasRadioButtons'];
|
|
752
|
+
/** */
|
|
753
|
+
"defaultSlot"?: WRadioGroup['defaultSlot'];
|
|
754
|
+
|
|
755
|
+
/** */
|
|
756
|
+
"oninput"?: (e: CustomEvent<InputEvent>) => void;
|
|
757
|
+
/** */
|
|
758
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
export type WCheckboxProps = {
|
|
763
|
+
/** */
|
|
764
|
+
"title"?: WCheckbox['title'];
|
|
765
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
766
|
+
"name"?: WCheckbox['name'];
|
|
767
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
768
|
+
"value"?: WCheckbox['value'];
|
|
769
|
+
/** The checkbox's size. */
|
|
770
|
+
"size"?: WCheckbox['size'];
|
|
771
|
+
/** Disables the checkbox. */
|
|
772
|
+
"disabled"?: WCheckbox['disabled'];
|
|
773
|
+
/** Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
774
|
+
all/none" behavior when associated checkboxes have a mix of checked and unchecked states. */
|
|
775
|
+
"indeterminate"?: WCheckbox['indeterminate'];
|
|
776
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
777
|
+
"checked"?: WCheckbox['defaultChecked'];
|
|
778
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
779
|
+
"defaultChecked"?: WCheckbox['defaultChecked'];
|
|
780
|
+
/** By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
781
|
+
to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
782
|
+
the same document or shadow root for this to work. */
|
|
783
|
+
"form"?: WCheckbox['form'];
|
|
784
|
+
/** Makes the checkbox a required field. */
|
|
785
|
+
"required"?: WCheckbox['required'];
|
|
786
|
+
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
787
|
+
"hint"?: WCheckbox['hint'];
|
|
788
|
+
/** */
|
|
789
|
+
"input"?: WCheckbox['input'];
|
|
790
|
+
|
|
791
|
+
/** */
|
|
792
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
export type WCheckboxGroupProps = {
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
}
|
|
800
|
+
|
|
700
801
|
|
|
701
802
|
export type WarpSliderThumbProps = {
|
|
702
803
|
/** */
|
|
@@ -1492,6 +1593,127 @@ export type WarpTextareaProps = {
|
|
|
1492
1593
|
"w-pagination": Partial<WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents>;
|
|
1493
1594
|
|
|
1494
1595
|
|
|
1596
|
+
/**
|
|
1597
|
+
*
|
|
1598
|
+
*
|
|
1599
|
+
* ## Attributes & Properties
|
|
1600
|
+
*
|
|
1601
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1602
|
+
*
|
|
1603
|
+
* - `form`: The string pointing to a form's id.
|
|
1604
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
1605
|
+
* - `appearance`: The radio's value. When selected, the radio group will receive this value.
|
|
1606
|
+
* - `size`: The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
1607
|
+
* attribute can typically be omitted.
|
|
1608
|
+
* - `disabled`: Disables the radio.
|
|
1609
|
+
* - `checked`: undefined (property only)
|
|
1610
|
+
*
|
|
1611
|
+
* ## Methods
|
|
1612
|
+
*
|
|
1613
|
+
* Methods that can be called to access component functionality.
|
|
1614
|
+
*
|
|
1615
|
+
* - `setValue() => void`: undefined
|
|
1616
|
+
*/
|
|
1617
|
+
"w-radio": Partial<WRadioProps & BaseProps<WRadio> & BaseEvents>;
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
*
|
|
1623
|
+
* ## Attributes & Properties
|
|
1624
|
+
*
|
|
1625
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1626
|
+
*
|
|
1627
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1628
|
+
* instead.
|
|
1629
|
+
* - `hint`: The radio groups's hint. If you need to display HTML, use the `hint` slot instead.
|
|
1630
|
+
* - `name`: The name of the radio group, submitted as a name/value pair with form data.
|
|
1631
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
1632
|
+
* - `orientation`: The orientation in which to show radio items.
|
|
1633
|
+
* - `value`/`defaultValue`: The default value of the form control. Primarily used for resetting the form control.
|
|
1634
|
+
* - `size`: The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.
|
|
1635
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
1636
|
+
* - `with-label`/`withLabel`: Used for SSR. if true, will show slotted label on initial render.
|
|
1637
|
+
* - `with-hint`/`withHint`: Used for SSR. if true, will show slotted hint on initial render.
|
|
1638
|
+
* - `hasRadioButtons`: undefined (property only)
|
|
1639
|
+
* - `defaultSlot`: undefined (property only)
|
|
1640
|
+
* - `value`: The current value of the radio group, submitted as a name/value pair with form data. (property only)
|
|
1641
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
1642
|
+
* the first radio element. (property only) (readonly)
|
|
1643
|
+
*
|
|
1644
|
+
* ## Events
|
|
1645
|
+
*
|
|
1646
|
+
* Events that will be emitted by the component.
|
|
1647
|
+
*
|
|
1648
|
+
* - `input`: undefined
|
|
1649
|
+
* - `change`: undefined
|
|
1650
|
+
*
|
|
1651
|
+
* ## Slots
|
|
1652
|
+
*
|
|
1653
|
+
* Areas where markup can be added to the component.
|
|
1654
|
+
*
|
|
1655
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
1656
|
+
*
|
|
1657
|
+
* ## Methods
|
|
1658
|
+
*
|
|
1659
|
+
* Methods that can be called to access component functionality.
|
|
1660
|
+
*
|
|
1661
|
+
* - `formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void`: undefined
|
|
1662
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
1663
|
+
*/
|
|
1664
|
+
"w-radio-group": Partial<WRadioGroupProps & BaseProps<WRadioGroup> & BaseEvents>;
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
*
|
|
1669
|
+
*
|
|
1670
|
+
* ## Attributes & Properties
|
|
1671
|
+
*
|
|
1672
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1673
|
+
*
|
|
1674
|
+
* - `title`: undefined
|
|
1675
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
1676
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
1677
|
+
* - `size`: The checkbox's size.
|
|
1678
|
+
* - `disabled`: Disables the checkbox.
|
|
1679
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
1680
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
1681
|
+
* - `checked`/`defaultChecked`: The default value of the form control. Primarily used for resetting the form control.
|
|
1682
|
+
* - `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
1683
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
1684
|
+
* the same document or shadow root for this to work.
|
|
1685
|
+
* - `required`: Makes the checkbox a required field.
|
|
1686
|
+
* - `hint`: The checkbox's hint. If you need to display HTML, use the `hint` slot instead.
|
|
1687
|
+
* - `input`: undefined (property only)
|
|
1688
|
+
* - `checked`: Draws the checkbox in a checked state. (property only)
|
|
1689
|
+
*
|
|
1690
|
+
* ## Events
|
|
1691
|
+
*
|
|
1692
|
+
* Events that will be emitted by the component.
|
|
1693
|
+
*
|
|
1694
|
+
* - `change`: undefined
|
|
1695
|
+
*
|
|
1696
|
+
* ## Methods
|
|
1697
|
+
*
|
|
1698
|
+
* Methods that can be called to access component functionality.
|
|
1699
|
+
*
|
|
1700
|
+
* - `handleDefaultCheckedChange() => void`: undefined
|
|
1701
|
+
* - `handleValueOrCheckedChange() => void`: undefined
|
|
1702
|
+
* - `handleStateChange() => void`: undefined
|
|
1703
|
+
* - `handleDisabledChange() => void`: undefined
|
|
1704
|
+
* - `formResetCallback() => void`: undefined
|
|
1705
|
+
* - `click() => void`: Simulates a click on the checkbox.
|
|
1706
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox.
|
|
1707
|
+
* - `blur() => void`: Removes focus from the checkbox.
|
|
1708
|
+
*/
|
|
1709
|
+
"w-checkbox": Partial<WCheckboxProps & BaseProps<WCheckbox> & BaseEvents>;
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
*
|
|
1714
|
+
*/
|
|
1715
|
+
"w-checkbox-group": Partial<WCheckboxGroupProps & BaseProps<WCheckboxGroup> & BaseEvents>;
|
|
1716
|
+
|
|
1495
1717
|
|
|
1496
1718
|
/**
|
|
1497
1719
|
* Component to place inside a `<w-slider>`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{css as t,html as
|
|
1
|
+
import{css as t,html as c,LitElement as o}from"lit";var e=class extends o{render(){return c`<slot part="checkbox-group"></slot>`}};e.styles=t`
|
|
2
2
|
[part="checkbox-group"] {
|
|
3
3
|
display: grid;
|
|
4
4
|
gap: 16px;
|
|
5
5
|
}
|
|
6
|
-
`;export{e as WCheckboxGroup};
|
|
6
|
+
`;customElements.get("w-checkbox-group")||customElements.define("w-checkbox-group",e);export{e as WCheckboxGroup};
|
|
7
7
|
//# sourceMappingURL=checkbox-group.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../packages/checkbox/checkbox-group.ts"],
|
|
4
|
-
"sourcesContent": ["import { css, html, LitElement } from 'lit';\n\nexport class WCheckboxGroup extends LitElement {\n static styles = css`\n [part=\"checkbox-group\"] {\n display: grid;\n gap: 16px;\n }\n `;\n render() {\n return html`<slot part=\"checkbox-group\"></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-checkbox-group': WCheckboxGroup;\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,OAAAA,EAAK,QAAAC,EAAM,cAAAC,MAAkB,MAE/B,IAAMC,EAAN,cAA6BD,CAAW,CAO7C,QAAS,CACP,OAAOD,sCACT,CACF,EAVaE,EACJ,OAASH;AAAA;AAAA;AAAA;AAAA;",
|
|
4
|
+
"sourcesContent": ["import { css, html, LitElement } from 'lit';\n\nexport class WCheckboxGroup extends LitElement {\n static styles = css`\n [part=\"checkbox-group\"] {\n display: grid;\n gap: 16px;\n }\n `;\n render() {\n return html`<slot part=\"checkbox-group\"></slot>`;\n }\n}\n\nif (!customElements.get('w-checkbox-group')) {\n customElements.define('w-checkbox-group', WCheckboxGroup);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'w-checkbox-group': WCheckboxGroup;\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,OAAAA,EAAK,QAAAC,EAAM,cAAAC,MAAkB,MAE/B,IAAMC,EAAN,cAA6BD,CAAW,CAO7C,QAAS,CACP,OAAOD,sCACT,CACF,EAVaE,EACJ,OAASH;AAAA;AAAA;AAAA;AAAA;AAAA,IAWb,eAAe,IAAI,kBAAkB,GACxC,eAAe,OAAO,mBAAoBG,CAAc",
|
|
6
6
|
"names": ["css", "html", "LitElement", "WCheckboxGroup"]
|
|
7
7
|
}
|
|
@@ -2587,5 +2587,5 @@ Please compile your catalog first.
|
|
|
2587
2587
|
<slot id="hint" part="hint" name="hint" aria-hidden=${t?"false":"true"} class="${hr({"has-slotted":t})}">
|
|
2588
2588
|
${this.hint}
|
|
2589
2589
|
</slot>
|
|
2590
|
-
`}};u.css=[ve,fe],u.shadowRootOptions={...b.shadowRootOptions,delegatesFocus:!0},d([ur('input[type="checkbox"]')],u.prototype,"input",2),d([g()],u.prototype,"title",2),d([g({reflect:!0})],u.prototype,"name",2),d([g({reflect:!0})],u.prototype,"value",1),d([g({reflect:!0})],u.prototype,"size",2),d([g({type:Boolean})],u.prototype,"disabled",2),d([g({type:Boolean,reflect:!0})],u.prototype,"indeterminate",2),d([g({type:Boolean,attribute:!1})],u.prototype,"checked",2),d([g({type:Boolean,reflect:!0,attribute:"checked"})],u.prototype,"defaultChecked",2),d([g({reflect:!0})],u.prototype,"form",2),d([g({type:Boolean,reflect:!0})],u.prototype,"required",2),d([g()],u.prototype,"hint",2),d([L("defaultChecked")],u.prototype,"handleDefaultCheckedChange",1),d([L(["checked","indeterminate"])],u.prototype,"handleStateChange",1),d([L("disabled")],u.prototype,"handleDisabledChange",1);export{u as WCheckbox};
|
|
2590
|
+
`}};u.css=[ve,fe],u.shadowRootOptions={...b.shadowRootOptions,delegatesFocus:!0},d([ur('input[type="checkbox"]')],u.prototype,"input",2),d([g()],u.prototype,"title",2),d([g({reflect:!0})],u.prototype,"name",2),d([g({reflect:!0})],u.prototype,"value",1),d([g({reflect:!0})],u.prototype,"size",2),d([g({type:Boolean})],u.prototype,"disabled",2),d([g({type:Boolean,reflect:!0})],u.prototype,"indeterminate",2),d([g({type:Boolean,attribute:!1})],u.prototype,"checked",2),d([g({type:Boolean,reflect:!0,attribute:"checked"})],u.prototype,"defaultChecked",2),d([g({reflect:!0})],u.prototype,"form",2),d([g({type:Boolean,reflect:!0})],u.prototype,"required",2),d([g()],u.prototype,"hint",2),d([L("defaultChecked")],u.prototype,"handleDefaultCheckedChange",1),d([L(["checked","indeterminate"])],u.prototype,"handleStateChange",1),d([L("disabled")],u.prototype,"handleDisabledChange",1);customElements.get("w-checkbox")||customElements.define("w-checkbox",u);export{u as WCheckbox};
|
|
2591
2591
|
//# sourceMappingURL=checkbox.js.map
|