@oicl/openbridge-webcomponents 2.0.0-next.144 → 2.0.0-next.145
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/bundle/openbridge-webcomponents.bundle.js +4736 -4470
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +197 -30
- package/dist/components/checkbox-item/checkbox-item.css.js +137 -12
- package/dist/components/checkbox-item/checkbox-item.css.js.map +1 -1
- package/dist/components/checkbox-item/checkbox-item.d.ts +72 -41
- package/dist/components/checkbox-item/checkbox-item.d.ts.map +1 -1
- package/dist/components/checkbox-item/checkbox-item.js +66 -25
- package/dist/components/checkbox-item/checkbox-item.js.map +1 -1
- package/dist/components/checkbox-list/checkbox-list-visibility.d.ts +16 -0
- package/dist/components/checkbox-list/checkbox-list-visibility.d.ts.map +1 -0
- package/dist/components/checkbox-list/checkbox-list-visibility.js +12 -0
- package/dist/components/checkbox-list/checkbox-list-visibility.js.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.css.js +23 -0
- package/dist/components/checkbox-list/checkbox-list.css.js.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.d.ts +66 -0
- package/dist/components/checkbox-list/checkbox-list.d.ts.map +1 -0
- package/dist/components/checkbox-list/checkbox-list.js +81 -0
- package/dist/components/checkbox-list/checkbox-list.js.map +1 -0
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -59502,14 +59502,8 @@
|
|
|
59502
59502
|
"declarations": [
|
|
59503
59503
|
{
|
|
59504
59504
|
"kind": "class",
|
|
59505
|
-
"description": "`<obc-checkbox-item>` – A list
|
|
59505
|
+
"description": "`<obc-checkbox-item>` – A list row that pairs `<obc-checkbox>` with a label,\nan optional description, and hierarchy affordances for nested lists.\n\n### Overview\nThe row is the touch target: clicking anywhere on it toggles the checkbox,\nexcept on the chevron button, which only asks to expand or collapse. Depth\nis a number (`level`); the row indents itself so a flat sequence of rows\nreads as a tree. `<obc-checkbox-list>` builds on this to hide the rows\nunder a collapsed parent.\n\n### Features\n- Three statuses: `unchecked`, `checked`, `mixed`.\n- `touch-target` or `visual-target` hover treatment.\n- `level` indentation: level 1 reserves the chevron slot, each further\n level adds a spacer.\n- `expandable` rows show a chevron button that fires `expand-toggle`; the\n host owns `expanded`.\n- Optional `description` line under the label.\n- Forwards `aria-describedby` to the inner checkbox.\n\n### Usage Guidelines\n- Keep `status` as the source of truth; update it from the `change` event.\n- Set `expanded` in response to `expand-toggle` — the row never flips it\n itself, so a parent (or `<obc-checkbox-list>`) can veto or persist it.\n- Use `level` 0 for a plain list; start at 1 when any row in the list is\n expandable so chevrons and checkboxes line up.\n- Prefer `hoverStyle=\"touch-target\"` for standard list behaviour.\n\n### Accessibility\nThe checkbox and the chevron are separate controls in the natural tab\norder. The chevron is a native button named by the row's label, with the\nstate in `aria-expanded`, following the WAI-ARIA checkbox and disclosure\nbutton patterns.\n\n### Example\n```html\n<obc-checkbox-item\n level=\"1\"\n expandable\n expanded\n status=\"mixed\"\n label=\"Reports\"\n></obc-checkbox-item>\n<obc-checkbox-item\n level=\"2\"\n status=\"checked\"\n label=\"Monthly\"\n description=\"Sent on the 1st\"\n></obc-checkbox-item>\n```",
|
|
59506
59506
|
"name": "ObcCheckboxItem",
|
|
59507
|
-
"slots": [
|
|
59508
|
-
{
|
|
59509
|
-
"description": "No named slots.",
|
|
59510
|
-
"name": ""
|
|
59511
|
-
}
|
|
59512
|
-
],
|
|
59513
59507
|
"members": [
|
|
59514
59508
|
{
|
|
59515
59509
|
"kind": "field",
|
|
@@ -59517,6 +59511,7 @@
|
|
|
59517
59511
|
"type": {
|
|
59518
59512
|
"text": "CheckboxStatus"
|
|
59519
59513
|
},
|
|
59514
|
+
"description": "Checkbox status: `unchecked`, `checked` or `mixed`.",
|
|
59520
59515
|
"attribute": "status"
|
|
59521
59516
|
},
|
|
59522
59517
|
{
|
|
@@ -59525,6 +59520,7 @@
|
|
|
59525
59520
|
"type": {
|
|
59526
59521
|
"text": "ObcCheckboxItemState"
|
|
59527
59522
|
},
|
|
59523
|
+
"description": "Item state: `enabled` or `disabled`.",
|
|
59528
59524
|
"attribute": "state"
|
|
59529
59525
|
},
|
|
59530
59526
|
{
|
|
@@ -59534,6 +59530,7 @@
|
|
|
59534
59530
|
"text": "boolean"
|
|
59535
59531
|
},
|
|
59536
59532
|
"default": "false",
|
|
59533
|
+
"description": "Disables the row and the inner checkbox.",
|
|
59537
59534
|
"attribute": "disabled"
|
|
59538
59535
|
},
|
|
59539
59536
|
{
|
|
@@ -59543,41 +59540,56 @@
|
|
|
59543
59540
|
"text": "string"
|
|
59544
59541
|
},
|
|
59545
59542
|
"default": "''",
|
|
59543
|
+
"description": "Text label; also the checkbox's accessible name.",
|
|
59546
59544
|
"attribute": "label"
|
|
59547
59545
|
},
|
|
59548
59546
|
{
|
|
59549
59547
|
"kind": "field",
|
|
59550
|
-
"name": "
|
|
59548
|
+
"name": "description",
|
|
59551
59549
|
"type": {
|
|
59552
|
-
"text": "
|
|
59550
|
+
"text": "string"
|
|
59553
59551
|
},
|
|
59554
|
-
"default": "
|
|
59555
|
-
"
|
|
59552
|
+
"default": "''",
|
|
59553
|
+
"description": "Secondary line under the label; hidden when empty.",
|
|
59554
|
+
"attribute": "description"
|
|
59555
|
+
},
|
|
59556
|
+
{
|
|
59557
|
+
"kind": "field",
|
|
59558
|
+
"name": "level",
|
|
59559
|
+
"type": {
|
|
59560
|
+
"text": "number"
|
|
59561
|
+
},
|
|
59562
|
+
"default": "0",
|
|
59563
|
+
"description": "Depth in a nested list. 0 is a plain row; 1 reserves the chevron slot; each level above 1 adds a spacer.",
|
|
59564
|
+
"attribute": "level",
|
|
59556
59565
|
"reflects": true
|
|
59557
59566
|
},
|
|
59558
59567
|
{
|
|
59559
59568
|
"kind": "field",
|
|
59560
|
-
"name": "
|
|
59569
|
+
"name": "expandable",
|
|
59561
59570
|
"type": {
|
|
59562
59571
|
"text": "boolean"
|
|
59563
59572
|
},
|
|
59564
59573
|
"default": "false",
|
|
59565
|
-
"
|
|
59566
|
-
"
|
|
59567
|
-
"
|
|
59568
|
-
"description": "Available when `isNested==true || hoverStyle==visual-target`."
|
|
59574
|
+
"description": "Shows the chevron button that fires `expand-toggle`.",
|
|
59575
|
+
"attribute": "expandable",
|
|
59576
|
+
"reflects": true
|
|
59569
59577
|
},
|
|
59570
59578
|
{
|
|
59571
59579
|
"kind": "field",
|
|
59572
|
-
"name": "
|
|
59580
|
+
"name": "expanded",
|
|
59573
59581
|
"type": {
|
|
59574
59582
|
"text": "boolean"
|
|
59575
59583
|
},
|
|
59576
59584
|
"default": "false",
|
|
59577
|
-
"
|
|
59585
|
+
"description": "Whether the row's children are shown; drives the chevron direction and `aria-expanded`.\n\nAvailable when `expandable==true`.",
|
|
59586
|
+
"attribute": "expanded",
|
|
59578
59587
|
"reflects": true,
|
|
59579
|
-
"availableWhen": "
|
|
59580
|
-
"
|
|
59588
|
+
"availableWhen": "expandable==true",
|
|
59589
|
+
"availableWhenIf": {
|
|
59590
|
+
"arg": "expandable",
|
|
59591
|
+
"truthy": true
|
|
59592
|
+
}
|
|
59581
59593
|
},
|
|
59582
59594
|
{
|
|
59583
59595
|
"kind": "field",
|
|
@@ -59585,6 +59597,7 @@
|
|
|
59585
59597
|
"type": {
|
|
59586
59598
|
"text": "ObcCheckboxItemHoverStyle"
|
|
59587
59599
|
},
|
|
59600
|
+
"description": "Which box shows hover and focus: the whole row (`touch-target`) or the checkbox (`visual-target`).",
|
|
59588
59601
|
"attribute": "hoverStyle"
|
|
59589
59602
|
},
|
|
59590
59603
|
{
|
|
@@ -59594,6 +59607,7 @@
|
|
|
59594
59607
|
"text": "string"
|
|
59595
59608
|
},
|
|
59596
59609
|
"default": "''",
|
|
59610
|
+
"description": "Forwarded to the inner checkbox as `aria-describedby`.",
|
|
59597
59611
|
"attribute": "aria-describedby",
|
|
59598
59612
|
"reflects": true
|
|
59599
59613
|
},
|
|
@@ -59605,6 +59619,23 @@
|
|
|
59605
59619
|
},
|
|
59606
59620
|
"privacy": "private"
|
|
59607
59621
|
},
|
|
59622
|
+
{
|
|
59623
|
+
"kind": "field",
|
|
59624
|
+
"name": "chevronButton",
|
|
59625
|
+
"type": {
|
|
59626
|
+
"text": "HTMLElement | undefined"
|
|
59627
|
+
},
|
|
59628
|
+
"privacy": "private"
|
|
59629
|
+
},
|
|
59630
|
+
{
|
|
59631
|
+
"kind": "field",
|
|
59632
|
+
"name": "isDisabled",
|
|
59633
|
+
"type": {
|
|
59634
|
+
"text": "boolean"
|
|
59635
|
+
},
|
|
59636
|
+
"privacy": "private",
|
|
59637
|
+
"readonly": true
|
|
59638
|
+
},
|
|
59608
59639
|
{
|
|
59609
59640
|
"kind": "method",
|
|
59610
59641
|
"name": "toggleStatusFromItem",
|
|
@@ -59623,6 +59654,19 @@
|
|
|
59623
59654
|
}
|
|
59624
59655
|
]
|
|
59625
59656
|
},
|
|
59657
|
+
{
|
|
59658
|
+
"kind": "method",
|
|
59659
|
+
"name": "handleChevronClick",
|
|
59660
|
+
"privacy": "private",
|
|
59661
|
+
"parameters": [
|
|
59662
|
+
{
|
|
59663
|
+
"name": "event",
|
|
59664
|
+
"type": {
|
|
59665
|
+
"text": "MouseEvent"
|
|
59666
|
+
}
|
|
59667
|
+
}
|
|
59668
|
+
]
|
|
59669
|
+
},
|
|
59626
59670
|
{
|
|
59627
59671
|
"kind": "method",
|
|
59628
59672
|
"name": "handleCheckboxChange",
|
|
@@ -59654,6 +59698,11 @@
|
|
|
59654
59698
|
}
|
|
59655
59699
|
}
|
|
59656
59700
|
]
|
|
59701
|
+
},
|
|
59702
|
+
{
|
|
59703
|
+
"kind": "method",
|
|
59704
|
+
"name": "renderChevron",
|
|
59705
|
+
"privacy": "private"
|
|
59657
59706
|
}
|
|
59658
59707
|
],
|
|
59659
59708
|
"events": [
|
|
@@ -59663,6 +59712,13 @@
|
|
|
59663
59712
|
"text": "ObcCheckboxChangeEvent"
|
|
59664
59713
|
},
|
|
59665
59714
|
"description": "Emitted when status changes."
|
|
59715
|
+
},
|
|
59716
|
+
{
|
|
59717
|
+
"name": "expand-toggle",
|
|
59718
|
+
"type": {
|
|
59719
|
+
"text": "ObcCheckboxItemExpandToggleEvent"
|
|
59720
|
+
},
|
|
59721
|
+
"description": "Emitted when the chevron is activated; detail is the next `expanded` value. Bubbles and is composed."
|
|
59666
59722
|
}
|
|
59667
59723
|
],
|
|
59668
59724
|
"attributes": [
|
|
@@ -59671,6 +59727,7 @@
|
|
|
59671
59727
|
"type": {
|
|
59672
59728
|
"text": "CheckboxStatus"
|
|
59673
59729
|
},
|
|
59730
|
+
"description": "Checkbox status: `unchecked`, `checked` or `mixed`.",
|
|
59674
59731
|
"fieldName": "status"
|
|
59675
59732
|
},
|
|
59676
59733
|
{
|
|
@@ -59678,6 +59735,7 @@
|
|
|
59678
59735
|
"type": {
|
|
59679
59736
|
"text": "ObcCheckboxItemState"
|
|
59680
59737
|
},
|
|
59738
|
+
"description": "Item state: `enabled` or `disabled`.",
|
|
59681
59739
|
"fieldName": "state"
|
|
59682
59740
|
},
|
|
59683
59741
|
{
|
|
@@ -59686,6 +59744,7 @@
|
|
|
59686
59744
|
"text": "boolean"
|
|
59687
59745
|
},
|
|
59688
59746
|
"default": "false",
|
|
59747
|
+
"description": "Disables the row and the inner checkbox.",
|
|
59689
59748
|
"fieldName": "disabled"
|
|
59690
59749
|
},
|
|
59691
59750
|
{
|
|
@@ -59694,39 +59753,51 @@
|
|
|
59694
59753
|
"text": "string"
|
|
59695
59754
|
},
|
|
59696
59755
|
"default": "''",
|
|
59756
|
+
"description": "Text label; also the checkbox's accessible name.",
|
|
59697
59757
|
"fieldName": "label"
|
|
59698
59758
|
},
|
|
59699
59759
|
{
|
|
59700
|
-
"name": "
|
|
59760
|
+
"name": "description",
|
|
59701
59761
|
"type": {
|
|
59702
|
-
"text": "
|
|
59762
|
+
"text": "string"
|
|
59703
59763
|
},
|
|
59704
|
-
"default": "
|
|
59705
|
-
"
|
|
59764
|
+
"default": "''",
|
|
59765
|
+
"description": "Secondary line under the label; hidden when empty.",
|
|
59766
|
+
"fieldName": "description"
|
|
59767
|
+
},
|
|
59768
|
+
{
|
|
59769
|
+
"name": "level",
|
|
59770
|
+
"type": {
|
|
59771
|
+
"text": "number"
|
|
59772
|
+
},
|
|
59773
|
+
"default": "0",
|
|
59774
|
+
"description": "Depth in a nested list. 0 is a plain row; 1 reserves the chevron slot; each level above 1 adds a spacer.",
|
|
59775
|
+
"fieldName": "level"
|
|
59706
59776
|
},
|
|
59707
59777
|
{
|
|
59708
|
-
"name": "
|
|
59778
|
+
"name": "expandable",
|
|
59709
59779
|
"type": {
|
|
59710
59780
|
"text": "boolean"
|
|
59711
59781
|
},
|
|
59712
59782
|
"default": "false",
|
|
59713
|
-
"
|
|
59714
|
-
"
|
|
59783
|
+
"description": "Shows the chevron button that fires `expand-toggle`.",
|
|
59784
|
+
"fieldName": "expandable"
|
|
59715
59785
|
},
|
|
59716
59786
|
{
|
|
59717
|
-
"name": "
|
|
59787
|
+
"name": "expanded",
|
|
59718
59788
|
"type": {
|
|
59719
59789
|
"text": "boolean"
|
|
59720
59790
|
},
|
|
59721
59791
|
"default": "false",
|
|
59722
|
-
"
|
|
59723
|
-
"
|
|
59792
|
+
"description": "Whether the row's children are shown; drives the chevron direction and `aria-expanded`.\n\nAvailable when `expandable==true`.",
|
|
59793
|
+
"fieldName": "expanded"
|
|
59724
59794
|
},
|
|
59725
59795
|
{
|
|
59726
59796
|
"name": "hoverStyle",
|
|
59727
59797
|
"type": {
|
|
59728
59798
|
"text": "ObcCheckboxItemHoverStyle"
|
|
59729
59799
|
},
|
|
59800
|
+
"description": "Which box shows hover and focus: the whole row (`touch-target`) or the checkbox (`visual-target`).",
|
|
59730
59801
|
"fieldName": "hoverStyle"
|
|
59731
59802
|
},
|
|
59732
59803
|
{
|
|
@@ -59735,6 +59806,7 @@
|
|
|
59735
59806
|
"text": "string"
|
|
59736
59807
|
},
|
|
59737
59808
|
"default": "''",
|
|
59809
|
+
"description": "Forwarded to the inner checkbox as `aria-describedby`.",
|
|
59738
59810
|
"fieldName": "ariaDescribedBy"
|
|
59739
59811
|
}
|
|
59740
59812
|
],
|
|
@@ -59765,6 +59837,101 @@
|
|
|
59765
59837
|
}
|
|
59766
59838
|
]
|
|
59767
59839
|
},
|
|
59840
|
+
{
|
|
59841
|
+
"kind": "javascript-module",
|
|
59842
|
+
"path": "src/components/checkbox-list/checkbox-list.ts",
|
|
59843
|
+
"declarations": [
|
|
59844
|
+
{
|
|
59845
|
+
"kind": "class",
|
|
59846
|
+
"description": "`<obc-checkbox-list>` – A vertical list of `<obc-checkbox-item>` rows that\ncollapses the rows under a closed parent.\n\n### Overview\nRows are slotted flat, in document order; the tree is read from each row's\n`level`. When an expandable row is collapsed, the list sets `hidden` on\nevery following row with a greater level until a row of equal or smaller\nlevel. The list also applies its `hoverStyle` to every row so a list reads\nas one surface.\n\n### Features\n- Flat markup, level-driven hierarchy — no nesting of elements required.\n- Handles `expand-toggle`: sets the row's `expanded` and recomputes.\n- Reacts to `expandable`, `expanded` and `level` changes made from outside.\n- `hoverStyle` forwarded to slotted rows, including rows added later.\n\n### Usage Guidelines\n- Start levels at 1 when any row is expandable so chevrons and checkboxes\n align; use level 0 for a plain list.\n- The list owns the `hidden` attribute of its rows; do not bind it yourself.\n- Selection stays per row: listen to each row's `change`.\n\n### Accessibility\nThe host is the `role=\"group\"`; rows are ordinary checkboxes and buttons in\nthe natural tab order and hidden rows leave it. This is a group of\ncheckboxes with disclosure buttons, not a tree widget, so there is no\nroving tabindex. Name the group with `aria-label` or `aria-labelledby` on\nthe host.\n\n### Example\n```html\n<obc-checkbox-list aria-label=\"Report types\">\n <obc-checkbox-item level=\"1\" expandable expanded status=\"mixed\" label=\"Reports\"></obc-checkbox-item>\n <obc-checkbox-item level=\"2\" status=\"checked\" label=\"Monthly\"></obc-checkbox-item>\n <obc-checkbox-item level=\"2\" label=\"Quarterly\"></obc-checkbox-item>\n <obc-checkbox-item level=\"1\" expandable label=\"Archive\"></obc-checkbox-item>\n</obc-checkbox-list>\n```",
|
|
59847
|
+
"name": "ObcCheckboxList",
|
|
59848
|
+
"slots": [
|
|
59849
|
+
{
|
|
59850
|
+
"description": "`obc-checkbox-item` rows in document order; hierarchy comes from each row's `level`.",
|
|
59851
|
+
"name": ""
|
|
59852
|
+
}
|
|
59853
|
+
],
|
|
59854
|
+
"members": [
|
|
59855
|
+
{
|
|
59856
|
+
"kind": "field",
|
|
59857
|
+
"name": "hoverStyle",
|
|
59858
|
+
"type": {
|
|
59859
|
+
"text": "ObcCheckboxItemHoverStyle"
|
|
59860
|
+
},
|
|
59861
|
+
"description": "Hover treatment applied to every slotted row: `touch-target` or `visual-target`.",
|
|
59862
|
+
"attribute": "hoverStyle"
|
|
59863
|
+
},
|
|
59864
|
+
{
|
|
59865
|
+
"kind": "field",
|
|
59866
|
+
"name": "mutationObserver",
|
|
59867
|
+
"type": {
|
|
59868
|
+
"text": "MutationObserver | undefined"
|
|
59869
|
+
},
|
|
59870
|
+
"privacy": "private"
|
|
59871
|
+
},
|
|
59872
|
+
{
|
|
59873
|
+
"kind": "field",
|
|
59874
|
+
"name": "onExpandToggle",
|
|
59875
|
+
"privacy": "private"
|
|
59876
|
+
},
|
|
59877
|
+
{
|
|
59878
|
+
"kind": "method",
|
|
59879
|
+
"name": "rows",
|
|
59880
|
+
"privacy": "private",
|
|
59881
|
+
"return": {
|
|
59882
|
+
"type": {
|
|
59883
|
+
"text": "ObcCheckboxItem[]"
|
|
59884
|
+
}
|
|
59885
|
+
}
|
|
59886
|
+
},
|
|
59887
|
+
{
|
|
59888
|
+
"kind": "method",
|
|
59889
|
+
"name": "sync",
|
|
59890
|
+
"privacy": "private",
|
|
59891
|
+
"return": {
|
|
59892
|
+
"type": {
|
|
59893
|
+
"text": "void"
|
|
59894
|
+
}
|
|
59895
|
+
}
|
|
59896
|
+
}
|
|
59897
|
+
],
|
|
59898
|
+
"attributes": [
|
|
59899
|
+
{
|
|
59900
|
+
"name": "hoverStyle",
|
|
59901
|
+
"type": {
|
|
59902
|
+
"text": "ObcCheckboxItemHoverStyle"
|
|
59903
|
+
},
|
|
59904
|
+
"description": "Hover treatment applied to every slotted row: `touch-target` or `visual-target`.",
|
|
59905
|
+
"fieldName": "hoverStyle"
|
|
59906
|
+
}
|
|
59907
|
+
],
|
|
59908
|
+
"superclass": {
|
|
59909
|
+
"name": "LitElement",
|
|
59910
|
+
"package": "lit"
|
|
59911
|
+
},
|
|
59912
|
+
"tagName": "obc-checkbox-list",
|
|
59913
|
+
"customElement": true
|
|
59914
|
+
}
|
|
59915
|
+
],
|
|
59916
|
+
"exports": [
|
|
59917
|
+
{
|
|
59918
|
+
"kind": "js",
|
|
59919
|
+
"name": "ObcCheckboxList",
|
|
59920
|
+
"declaration": {
|
|
59921
|
+
"name": "ObcCheckboxList",
|
|
59922
|
+
"module": "src/components/checkbox-list/checkbox-list.ts"
|
|
59923
|
+
}
|
|
59924
|
+
},
|
|
59925
|
+
{
|
|
59926
|
+
"kind": "custom-element-definition",
|
|
59927
|
+
"name": "obc-checkbox-list",
|
|
59928
|
+
"declaration": {
|
|
59929
|
+
"name": "ObcCheckboxList",
|
|
59930
|
+
"module": "src/components/checkbox-list/checkbox-list.ts"
|
|
59931
|
+
}
|
|
59932
|
+
}
|
|
59933
|
+
]
|
|
59934
|
+
},
|
|
59768
59935
|
{
|
|
59769
59936
|
"kind": "javascript-module",
|
|
59770
59937
|
"path": "src/components/checkbox/checkbox.ts",
|
|
@@ -22,35 +22,146 @@ const componentStyle = css`* {
|
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.checkbox-item-container.has-description {
|
|
26
|
+
/* a second text line outgrows the fixed row; the hover surface follows */
|
|
27
|
+
height: auto;
|
|
28
|
+
min-height: var(--ui-components-checkbox-touch-target-size);
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
.checkbox-item-container.disabled {
|
|
26
32
|
cursor: not-allowed;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
|
-
.checkbox-item-container .chevron-container
|
|
35
|
+
.checkbox-item-container .chevron-container {
|
|
30
36
|
display: flex;
|
|
31
37
|
width: var(--global-size-spacing-touch-target-min);
|
|
32
|
-
height: var(--global-size-spacing-touch-target-min);
|
|
33
38
|
min-width: var(--global-size-spacing-touch-target-min);
|
|
34
|
-
|
|
35
|
-
padding: 0px;
|
|
39
|
+
height: var(--global-size-spacing-touch-target-min);
|
|
36
40
|
align-items: center;
|
|
37
41
|
justify-content: center;
|
|
38
42
|
flex-shrink: 0;
|
|
39
43
|
}
|
|
40
44
|
|
|
45
|
+
.checkbox-item-container .nested-spacer {
|
|
46
|
+
/* one indent step per level above 1; --checkbox-item-depth is set inline */
|
|
47
|
+
width: calc(
|
|
48
|
+
var(--checkbox-item-depth, 0) *
|
|
49
|
+
var(--ui-components-checkbox-nested-item-padding-left)
|
|
50
|
+
);
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
align-self: stretch;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:is(.checkbox-item-container .chevron-button) {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:is(.checkbox-item-container .chevron-button):focus {
|
|
60
|
+
outline: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:is(.checkbox-item-container .chevron-button) .chevron-visible {
|
|
64
|
+
border-color: var(--flat-enabled-border-color);
|
|
65
|
+
background-color: var(--flat-enabled-background-color);
|
|
66
|
+
border-width: 1px;
|
|
67
|
+
border-style: solid;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
--base-border-color: var(--flat-enabled-border-color);
|
|
70
|
+
--base-background-color: var(--flat-enabled-background-color);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.activated:is(.checkbox-item-container .chevron-button) .chevron-visible {
|
|
74
|
+
border-color: var(--flat-activated-border-color);
|
|
75
|
+
background-color: var(--flat-activated-background-color);
|
|
76
|
+
--base-border-color: var(--flat-activated-border-color);
|
|
77
|
+
--base-background-color: var(--flat-activated-background-color);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (hover:hover) {
|
|
81
|
+
|
|
82
|
+
:is(.checkbox-item-container .chevron-button):hover .chevron-visible {
|
|
83
|
+
border-color: color-mix(in srgb, var(--flat-hover-border-color) calc(var(--obc-can-hover) * 100%), var(--base-border-color));
|
|
84
|
+
background-color: color-mix(in srgb, var(--flat-hover-background-color) calc(var(--obc-can-hover) * 100%), var(--base-background-color));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:is(.checkbox-item-container .chevron-button):active .chevron-visible {
|
|
89
|
+
border-color: var(--flat-pressed-border-color);
|
|
90
|
+
background-color: var(--flat-pressed-background-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:is(.checkbox-item-container .chevron-button):focus-visible .chevron-visible {
|
|
94
|
+
outline-color: var(--border-focus-color);
|
|
95
|
+
outline-width: var(--global-size-spacing-border-weight-focusframe);
|
|
96
|
+
outline-style: solid;
|
|
97
|
+
border-color: var(--container-global-color);
|
|
98
|
+
z-index: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:is(.checkbox-item-container .chevron-button):disabled .chevron-visible {
|
|
102
|
+
border-color: var(--flat-disabled-border-color);
|
|
103
|
+
background-color: var(--flat-disabled-background-color);
|
|
104
|
+
cursor: not-allowed;
|
|
105
|
+
color: var(--on-flat-disabled-color) !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.disabled:is(.checkbox-item-container .chevron-button) .chevron-visible {
|
|
109
|
+
border-color: var(--flat-disabled-border-color);
|
|
110
|
+
background-color: var(--flat-disabled-background-color);
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
color: var(--on-flat-disabled-color) !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:is(.checkbox-item-container .chevron-button):disabled {
|
|
116
|
+
cursor: not-allowed;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.disabled:is(.checkbox-item-container .chevron-button) {
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.checkbox-item-container .chevron-button {
|
|
124
|
+
appearance: none;
|
|
125
|
+
border: none;
|
|
126
|
+
background: transparent;
|
|
127
|
+
padding: 0;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
color: var(--on-flat-neutral-color);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:is(.checkbox-item-container .chevron-button):disabled {
|
|
138
|
+
cursor: not-allowed;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.checkbox-item-container .chevron-visible {
|
|
142
|
+
/* same visible box as obc-icon-button so the two align in one list */
|
|
143
|
+
width: var(--ui-components-icon-button-visual-target-size);
|
|
144
|
+
height: var(--ui-components-icon-button-visual-target-size);
|
|
145
|
+
border-radius: var(--ui-components-button-border-radius-top-left);
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
41
151
|
.checkbox-item-container .chevron-icon {
|
|
42
152
|
width: var(--global-size-spacing-icon-icon-size-regular);
|
|
43
153
|
height: var(--global-size-spacing-icon-icon-size-regular);
|
|
44
|
-
color: var(--on-flat-neutral-color);
|
|
45
154
|
}
|
|
46
155
|
|
|
47
156
|
.checkbox-item-container .checkbox-label-container {
|
|
48
157
|
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
min-width: 0; /* lets the label ellipsis instead of widening the row */
|
|
49
161
|
padding: 0 var(--global-size-spacing-list-item-padding-vertical) 0 0;
|
|
50
162
|
margin-left: calc(
|
|
51
163
|
var(--global-size-spacing-list-item-padding-vertical) / -2
|
|
52
164
|
);
|
|
53
|
-
align-items: center;
|
|
54
165
|
flex-grow: 1;
|
|
55
166
|
}
|
|
56
167
|
|
|
@@ -85,6 +196,25 @@ const componentStyle = css`* {
|
|
|
85
196
|
color: var(--element-disabled-color);
|
|
86
197
|
}
|
|
87
198
|
|
|
199
|
+
.checkbox-item-container .checkbox-description {
|
|
200
|
+
color: var(--element-active-color);
|
|
201
|
+
font-family: var(--global-typography-font-family);
|
|
202
|
+
font-weight: var(--global-typography-ui-label-font-weight);
|
|
203
|
+
font-size: var(--global-typography-ui-label-font-size);
|
|
204
|
+
line-height: var(--global-typography-ui-label-line-height);
|
|
205
|
+
font-feature-settings:
|
|
206
|
+
"liga" off,
|
|
207
|
+
"clig" off,
|
|
208
|
+
"ss04" on;
|
|
209
|
+
white-space: nowrap;
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
text-overflow: ellipsis;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.disabled :is(.checkbox-item-container .checkbox-description) {
|
|
215
|
+
color: var(--element-disabled-color);
|
|
216
|
+
}
|
|
217
|
+
|
|
88
218
|
.checkbox-item-container.hover-style-touch-target {
|
|
89
219
|
cursor: pointer;
|
|
90
220
|
}
|
|
@@ -162,11 +292,6 @@ const componentStyle = css`* {
|
|
|
162
292
|
--base-background-color: var(--flat-enabled-background-color);
|
|
163
293
|
}
|
|
164
294
|
|
|
165
|
-
.checkbox-item-container.hover-style-visual-target .chevron-container,.checkbox-item-container.hover-style-visual-target .nested-spacer {
|
|
166
|
-
width: var(--ui-components-checkbox-nested-item-padding-left);
|
|
167
|
-
min-width: var(--ui-components-checkbox-nested-item-padding-left);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
295
|
.content-container {
|
|
171
296
|
display: flex;
|
|
172
297
|
width: 100%;
|
|
@@ -179,7 +304,7 @@ const componentStyle = css`* {
|
|
|
179
304
|
border-radius: var(--ui-components-checkbox-list-item-border-radius);
|
|
180
305
|
}
|
|
181
306
|
|
|
182
|
-
.checkbox-item-container.hover-style-visual-target:not(.is-nested)
|
|
307
|
+
.checkbox-item-container.hover-style-visual-target:not(.is-nested) .content-container {
|
|
183
308
|
margin-left: calc(var(--ui-components-checkbox-padding-horizontal) * -1);
|
|
184
309
|
}
|
|
185
310
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-item.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox-item.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|