@vonage/vivid 4.14.0 → 4.14.1
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.json +130 -23
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/radio/radio.form-associated.d.ts +2 -0
- package/lib/tabs/tabs.d.ts +0 -5
- package/lib/text-anchor/text-anchor.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +2 -2
- package/lib/tree-view/tree-view.d.ts +2 -2
- package/listbox/index.cjs +4 -4
- package/listbox/index.js +1 -1
- package/package.json +1 -1
- package/shared/affix.cjs +8 -8
- package/shared/affix.js +1 -1
- package/shared/anchor.cjs +10 -10
- package/shared/anchor.js +1 -1
- package/shared/anchored.cjs +6 -6
- package/shared/anchored.js +1 -1
- package/shared/apply-mixins.cjs +3 -3
- package/shared/apply-mixins.js +1 -1
- package/shared/apply-mixins2.cjs +3 -3
- package/shared/apply-mixins2.js +1 -1
- package/shared/applyMixinsWithObservables.cjs +3 -3
- package/shared/applyMixinsWithObservables.js +1 -1
- package/shared/aria-global.cjs +20 -20
- package/shared/aria-global.js +1 -1
- package/shared/aria-global2.cjs +40 -40
- package/shared/aria-global2.js +2 -2
- package/shared/base-progress.cjs +7 -8
- package/shared/base-progress.js +2 -3
- package/shared/breadcrumb-item.cjs +2 -3
- package/shared/breadcrumb-item.js +1 -2
- package/shared/button.cjs +10 -11
- package/shared/button.js +1 -2
- package/shared/calendar-event.cjs +7 -8
- package/shared/calendar-event.js +1 -2
- package/shared/children.cjs +2 -2
- package/shared/children.js +1 -1
- package/shared/definition.cjs +14 -15
- package/shared/definition.js +1 -2
- package/shared/definition10.cjs +5 -6
- package/shared/definition10.js +1 -2
- package/shared/definition11.cjs +29 -29
- package/shared/definition11.js +1 -1
- package/shared/definition12.cjs +6 -6
- package/shared/definition12.js +1 -1
- package/shared/definition13.cjs +13 -14
- package/shared/definition13.js +1 -2
- package/shared/definition14.cjs +23 -24
- package/shared/definition14.js +1 -2
- package/shared/definition15.cjs +15 -16
- package/shared/definition15.js +1 -2
- package/shared/definition16.cjs +20 -19
- package/shared/definition16.js +3 -2
- package/shared/definition17.cjs +53 -54
- package/shared/definition17.js +1 -2
- package/shared/definition18.cjs +4 -4
- package/shared/definition18.js +1 -1
- package/shared/definition19.cjs +12 -12
- package/shared/definition19.js +1 -1
- package/shared/definition2.cjs +6 -7
- package/shared/definition2.js +1 -2
- package/shared/definition20.cjs +20 -21
- package/shared/definition20.js +1 -2
- package/shared/definition21.cjs +27 -28
- package/shared/definition21.js +3 -4
- package/shared/definition22.cjs +5 -6
- package/shared/definition22.js +1 -2
- package/shared/definition23.cjs +10 -11
- package/shared/definition23.js +1 -2
- package/shared/definition24.cjs +8 -8
- package/shared/definition24.js +2 -2
- package/shared/definition25.cjs +13 -14
- package/shared/definition25.js +1 -2
- package/shared/definition26.cjs +5 -6
- package/shared/definition26.js +1 -2
- package/shared/definition27.cjs +11 -12
- package/shared/definition27.js +1 -2
- package/shared/definition28.cjs +9 -10
- package/shared/definition28.js +2 -3
- package/shared/definition29.cjs +44 -45
- package/shared/definition29.js +2 -3
- package/shared/definition3.cjs +8 -9
- package/shared/definition3.js +1 -2
- package/shared/definition30.cjs +9 -10
- package/shared/definition30.js +1 -2
- package/shared/definition31.cjs +5 -5
- package/shared/definition31.js +1 -1
- package/shared/definition32.cjs +3 -4
- package/shared/definition32.js +1 -2
- package/shared/definition33.cjs +6 -7
- package/shared/definition33.js +1 -2
- package/shared/definition34.cjs +50 -52
- package/shared/definition34.js +2 -4
- package/shared/definition35.cjs +24 -25
- package/shared/definition35.js +1 -2
- package/shared/definition36.cjs +15 -16
- package/shared/definition36.js +1 -2
- package/shared/definition37.cjs +9 -9
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +10 -10
- package/shared/definition38.js +1 -1
- package/shared/definition39.cjs +12 -13
- package/shared/definition39.js +1 -2
- package/shared/definition4.cjs +19 -20
- package/shared/definition4.js +1 -2
- package/shared/definition40.cjs +61 -13
- package/shared/definition40.js +52 -4
- package/shared/definition41.cjs +29 -30
- package/shared/definition41.js +1 -2
- package/shared/definition42.cjs +53 -54
- package/shared/definition42.js +2 -3
- package/shared/definition43.cjs +31 -31
- package/shared/definition43.js +1 -1
- package/shared/definition44.cjs +14 -15
- package/shared/definition44.js +1 -2
- package/shared/definition45.cjs +9 -10
- package/shared/definition45.js +1 -2
- package/shared/definition46.cjs +26 -27
- package/shared/definition46.js +1 -2
- package/shared/definition47.cjs +17 -18
- package/shared/definition47.js +1 -2
- package/shared/definition48.cjs +9 -10
- package/shared/definition48.js +1 -2
- package/shared/definition49.cjs +3 -4
- package/shared/definition49.js +1 -2
- package/shared/definition5.cjs +30 -31
- package/shared/definition5.js +1 -2
- package/shared/definition50.cjs +12 -13
- package/shared/definition50.js +1 -2
- package/shared/definition51.cjs +87 -72
- package/shared/definition51.js +56 -41
- package/shared/definition52.cjs +4 -5
- package/shared/definition52.js +1 -2
- package/shared/definition53.cjs +15 -16
- package/shared/definition53.js +1 -2
- package/shared/definition54.cjs +20 -21
- package/shared/definition54.js +1 -2
- package/shared/definition55.cjs +5 -5
- package/shared/definition55.js +1 -1
- package/shared/definition56.cjs +18 -19
- package/shared/definition56.js +1 -2
- package/shared/definition57.cjs +10 -11
- package/shared/definition57.js +1 -2
- package/shared/definition58.cjs +7 -8
- package/shared/definition58.js +1 -2
- package/shared/definition59.cjs +16 -17
- package/shared/definition59.js +2 -3
- package/shared/definition6.cjs +11 -12
- package/shared/definition6.js +1 -2
- package/shared/definition60.cjs +9 -10
- package/shared/definition60.js +2 -3
- package/shared/definition61.cjs +27 -30
- package/shared/definition61.js +17 -20
- package/shared/definition62.cjs +12 -9
- package/shared/definition62.js +8 -5
- package/shared/definition63.cjs +13 -14
- package/shared/definition63.js +1 -2
- package/shared/definition7.cjs +9 -10
- package/shared/definition7.js +1 -2
- package/shared/definition8.cjs +14 -15
- package/shared/definition8.js +1 -2
- package/shared/definition9.cjs +7 -7
- package/shared/definition9.js +1 -1
- package/shared/form-associated.cjs +14 -14
- package/shared/form-associated.js +1 -1
- package/shared/form-associated2.cjs +10 -10
- package/shared/form-associated2.js +1 -1
- package/shared/form-elements.cjs +13 -13
- package/shared/form-elements.js +1 -1
- package/shared/foundation/progress/base-progress.d.ts +2 -2
- package/shared/key-codes2.cjs +1416 -3
- package/shared/key-codes2.js +1413 -2
- package/shared/listbox.cjs +12 -13
- package/shared/listbox.js +1 -2
- package/shared/listbox2.cjs +59 -60
- package/shared/listbox2.js +2 -3
- package/shared/localized.cjs +2 -2
- package/shared/localized.js +1 -1
- package/shared/presentationDate.cjs +42 -43
- package/shared/presentationDate.js +1 -2
- package/shared/ref.cjs +2 -2
- package/shared/ref.js +1 -1
- package/shared/repeat.cjs +15 -15
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +4 -4
- package/shared/slider.template.js +1 -1
- package/shared/slotted.cjs +4 -4
- package/shared/slotted.js +1 -1
- package/shared/text-anchor.cjs +5 -6
- package/shared/text-anchor.js +2 -3
- package/shared/text-anchor.template.cjs +2 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/text-field2.cjs +23 -24
- package/shared/text-field2.js +1 -2
- package/shared/vivid-element.cjs +2610 -2
- package/shared/vivid-element.js +2591 -2
- package/styles/core/all.css +40 -1
- package/styles/core/theme.css +40 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +25 -4
- package/styles/tokens/theme-light.css +25 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/text-anchor/index.cjs +3 -3
- package/text-anchor/index.js +1 -1
- package/shared/defineVividComponent.cjs +0 -2612
- package/shared/defineVividComponent.js +0 -2592
- package/shared/foundation-element.cjs +0 -1417
- package/shared/foundation-element.js +0 -1414
package/custom-elements.json
CHANGED
|
@@ -2803,6 +2803,7 @@
|
|
|
2803
2803
|
"type": {
|
|
2804
2804
|
"text": "string"
|
|
2805
2805
|
},
|
|
2806
|
+
"description": "Specifies extra information about the button. This information is typically used by browsers to display a tooltip.",
|
|
2806
2807
|
"default": "''"
|
|
2807
2808
|
},
|
|
2808
2809
|
{
|
|
@@ -3226,7 +3227,7 @@
|
|
|
3226
3227
|
"type": {
|
|
3227
3228
|
"text": "boolean"
|
|
3228
3229
|
},
|
|
3229
|
-
"description": "
|
|
3230
|
+
"description": "Specifies extra information about the button. This information is typically used by browsers to display a tooltip.",
|
|
3230
3231
|
"fieldName": "title",
|
|
3231
3232
|
"default": "''",
|
|
3232
3233
|
"inheritedFrom": {
|
|
@@ -8150,6 +8151,13 @@
|
|
|
8150
8151
|
},
|
|
8151
8152
|
"description": "toggles the elevation's shadow.",
|
|
8152
8153
|
"privacy": "public"
|
|
8154
|
+
},
|
|
8155
|
+
{
|
|
8156
|
+
"kind": "field",
|
|
8157
|
+
"name": "notRelative",
|
|
8158
|
+
"type": {
|
|
8159
|
+
"text": "boolean | undefined"
|
|
8160
|
+
}
|
|
8153
8161
|
}
|
|
8154
8162
|
],
|
|
8155
8163
|
"attributes": [
|
|
@@ -8168,6 +8176,13 @@
|
|
|
8168
8176
|
},
|
|
8169
8177
|
"description": "toggles the elevation's shadow.",
|
|
8170
8178
|
"fieldName": "noShadow"
|
|
8179
|
+
},
|
|
8180
|
+
{
|
|
8181
|
+
"name": "not-relative",
|
|
8182
|
+
"type": {
|
|
8183
|
+
"text": "boolean | undefined"
|
|
8184
|
+
},
|
|
8185
|
+
"fieldName": "notRelative"
|
|
8171
8186
|
}
|
|
8172
8187
|
],
|
|
8173
8188
|
"superclass": {
|
|
@@ -13583,6 +13598,29 @@
|
|
|
13583
13598
|
{
|
|
13584
13599
|
"kind": "field",
|
|
13585
13600
|
"name": "proxy"
|
|
13601
|
+
},
|
|
13602
|
+
{
|
|
13603
|
+
"kind": "field",
|
|
13604
|
+
"name": "#radioSiblings",
|
|
13605
|
+
"privacy": "private",
|
|
13606
|
+
"type": {
|
|
13607
|
+
"text": "_Radio[]"
|
|
13608
|
+
},
|
|
13609
|
+
"readonly": true
|
|
13610
|
+
},
|
|
13611
|
+
{
|
|
13612
|
+
"kind": "field",
|
|
13613
|
+
"name": "#validateValueMissingWithSiblings",
|
|
13614
|
+
"privacy": "private"
|
|
13615
|
+
},
|
|
13616
|
+
{
|
|
13617
|
+
"kind": "field",
|
|
13618
|
+
"name": "#syncSiblingsRequiredValidationStatus",
|
|
13619
|
+
"privacy": "private"
|
|
13620
|
+
},
|
|
13621
|
+
{
|
|
13622
|
+
"kind": "field",
|
|
13623
|
+
"name": "validate"
|
|
13586
13624
|
}
|
|
13587
13625
|
],
|
|
13588
13626
|
"mixins": [
|
|
@@ -13727,6 +13765,45 @@
|
|
|
13727
13765
|
"name": "FormAssociatedRadio",
|
|
13728
13766
|
"module": "libs/components/src/lib/radio/radio.form-associated.ts"
|
|
13729
13767
|
}
|
|
13768
|
+
},
|
|
13769
|
+
{
|
|
13770
|
+
"kind": "field",
|
|
13771
|
+
"name": "#radioSiblings",
|
|
13772
|
+
"privacy": "private",
|
|
13773
|
+
"type": {
|
|
13774
|
+
"text": "_Radio[]"
|
|
13775
|
+
},
|
|
13776
|
+
"readonly": true,
|
|
13777
|
+
"inheritedFrom": {
|
|
13778
|
+
"name": "FormAssociatedRadio",
|
|
13779
|
+
"module": "libs/components/src/lib/radio/radio.form-associated.ts"
|
|
13780
|
+
}
|
|
13781
|
+
},
|
|
13782
|
+
{
|
|
13783
|
+
"kind": "field",
|
|
13784
|
+
"name": "#validateValueMissingWithSiblings",
|
|
13785
|
+
"privacy": "private",
|
|
13786
|
+
"inheritedFrom": {
|
|
13787
|
+
"name": "FormAssociatedRadio",
|
|
13788
|
+
"module": "libs/components/src/lib/radio/radio.form-associated.ts"
|
|
13789
|
+
}
|
|
13790
|
+
},
|
|
13791
|
+
{
|
|
13792
|
+
"kind": "field",
|
|
13793
|
+
"name": "#syncSiblingsRequiredValidationStatus",
|
|
13794
|
+
"privacy": "private",
|
|
13795
|
+
"inheritedFrom": {
|
|
13796
|
+
"name": "FormAssociatedRadio",
|
|
13797
|
+
"module": "libs/components/src/lib/radio/radio.form-associated.ts"
|
|
13798
|
+
}
|
|
13799
|
+
},
|
|
13800
|
+
{
|
|
13801
|
+
"kind": "field",
|
|
13802
|
+
"name": "validate",
|
|
13803
|
+
"inheritedFrom": {
|
|
13804
|
+
"name": "FormAssociatedRadio",
|
|
13805
|
+
"module": "libs/components/src/lib/radio/radio.form-associated.ts"
|
|
13806
|
+
}
|
|
13730
13807
|
}
|
|
13731
13808
|
],
|
|
13732
13809
|
"events": [
|
|
@@ -13770,6 +13847,14 @@
|
|
|
13770
13847
|
},
|
|
13771
13848
|
"description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute for more information.",
|
|
13772
13849
|
"fieldName": "readOnly"
|
|
13850
|
+
},
|
|
13851
|
+
{
|
|
13852
|
+
"name": "name",
|
|
13853
|
+
"type": {
|
|
13854
|
+
"text": "string"
|
|
13855
|
+
},
|
|
13856
|
+
"description": "The name of the radio. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname | name attribute for more info.",
|
|
13857
|
+
"fieldName": "name"
|
|
13773
13858
|
}
|
|
13774
13859
|
],
|
|
13775
13860
|
"superclass": {
|
|
@@ -18374,6 +18459,11 @@
|
|
|
18374
18459
|
"description": "The id of the active tab",
|
|
18375
18460
|
"privacy": "public"
|
|
18376
18461
|
},
|
|
18462
|
+
{
|
|
18463
|
+
"kind": "field",
|
|
18464
|
+
"name": "#isLastTabSelectedAfterRemove",
|
|
18465
|
+
"privacy": "private"
|
|
18466
|
+
},
|
|
18377
18467
|
{
|
|
18378
18468
|
"kind": "field",
|
|
18379
18469
|
"name": "activeindicator",
|
|
@@ -18505,18 +18595,13 @@
|
|
|
18505
18595
|
"privacy": "private"
|
|
18506
18596
|
},
|
|
18507
18597
|
{
|
|
18508
|
-
"kind": "
|
|
18509
|
-
"name": "isHorizontal",
|
|
18510
|
-
"privacy": "private"
|
|
18511
|
-
"return": {
|
|
18512
|
-
"type": {
|
|
18513
|
-
"text": "boolean"
|
|
18514
|
-
}
|
|
18515
|
-
}
|
|
18598
|
+
"kind": "field",
|
|
18599
|
+
"name": "#isHorizontal",
|
|
18600
|
+
"privacy": "private"
|
|
18516
18601
|
},
|
|
18517
18602
|
{
|
|
18518
18603
|
"kind": "field",
|
|
18519
|
-
"name": "handleTabKeyDown",
|
|
18604
|
+
"name": "#handleTabKeyDown",
|
|
18520
18605
|
"privacy": "private"
|
|
18521
18606
|
},
|
|
18522
18607
|
{
|
|
@@ -18562,7 +18647,7 @@
|
|
|
18562
18647
|
},
|
|
18563
18648
|
{
|
|
18564
18649
|
"kind": "field",
|
|
18565
|
-
"name": "moveToTabByIndex",
|
|
18650
|
+
"name": "#moveToTabByIndex",
|
|
18566
18651
|
"privacy": "private"
|
|
18567
18652
|
},
|
|
18568
18653
|
{
|
|
@@ -18623,6 +18708,16 @@
|
|
|
18623
18708
|
"kind": "method",
|
|
18624
18709
|
"name": "#updateScrollStatus"
|
|
18625
18710
|
},
|
|
18711
|
+
{
|
|
18712
|
+
"kind": "field",
|
|
18713
|
+
"name": "#shouldMoveIndicator",
|
|
18714
|
+
"privacy": "private",
|
|
18715
|
+
"readonly": true
|
|
18716
|
+
},
|
|
18717
|
+
{
|
|
18718
|
+
"kind": "method",
|
|
18719
|
+
"name": "#patchIndicatorStyleTransition"
|
|
18720
|
+
},
|
|
18626
18721
|
{
|
|
18627
18722
|
"kind": "field",
|
|
18628
18723
|
"name": "#resizeObserver",
|
|
@@ -18663,13 +18758,25 @@
|
|
|
18663
18758
|
},
|
|
18664
18759
|
{
|
|
18665
18760
|
"kind": "method",
|
|
18666
|
-
"name": "handleActiveIndicatorPosition",
|
|
18667
|
-
"
|
|
18761
|
+
"name": "#handleActiveIndicatorPosition",
|
|
18762
|
+
"parameters": [
|
|
18763
|
+
{
|
|
18764
|
+
"name": "animate",
|
|
18765
|
+
"default": "true"
|
|
18766
|
+
}
|
|
18767
|
+
]
|
|
18668
18768
|
},
|
|
18669
18769
|
{
|
|
18670
18770
|
"kind": "method",
|
|
18671
|
-
"name": "animateActiveIndicator",
|
|
18672
|
-
"
|
|
18771
|
+
"name": "#animateActiveIndicator",
|
|
18772
|
+
"parameters": [
|
|
18773
|
+
{
|
|
18774
|
+
"name": "animate",
|
|
18775
|
+
"type": {
|
|
18776
|
+
"text": "boolean"
|
|
18777
|
+
}
|
|
18778
|
+
}
|
|
18779
|
+
]
|
|
18673
18780
|
}
|
|
18674
18781
|
],
|
|
18675
18782
|
"events": [
|
|
@@ -19311,8 +19418,8 @@
|
|
|
19311
19418
|
}
|
|
19312
19419
|
],
|
|
19313
19420
|
"superclass": {
|
|
19314
|
-
"name": "
|
|
19315
|
-
"
|
|
19421
|
+
"name": "VividElement",
|
|
19422
|
+
"module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
|
|
19316
19423
|
},
|
|
19317
19424
|
"vividComponent": {
|
|
19318
19425
|
"name": "text-anchor"
|
|
@@ -21382,8 +21489,8 @@
|
|
|
21382
21489
|
}
|
|
21383
21490
|
],
|
|
21384
21491
|
"superclass": {
|
|
21385
|
-
"name": "
|
|
21386
|
-
"
|
|
21492
|
+
"name": "VividElement",
|
|
21493
|
+
"module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
|
|
21387
21494
|
},
|
|
21388
21495
|
"vividComponent": {
|
|
21389
21496
|
"public": true,
|
|
@@ -21596,8 +21703,8 @@
|
|
|
21596
21703
|
}
|
|
21597
21704
|
],
|
|
21598
21705
|
"superclass": {
|
|
21599
|
-
"name": "
|
|
21600
|
-
"
|
|
21706
|
+
"name": "VividElement",
|
|
21707
|
+
"module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
|
|
21601
21708
|
},
|
|
21602
21709
|
"vividComponent": {
|
|
21603
21710
|
"public": true,
|
|
@@ -23596,8 +23703,8 @@
|
|
|
23596
23703
|
}
|
|
23597
23704
|
],
|
|
23598
23705
|
"superclass": {
|
|
23599
|
-
"name": "
|
|
23600
|
-
"
|
|
23706
|
+
"name": "VividElement",
|
|
23707
|
+
"module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
|
|
23601
23708
|
}
|
|
23602
23709
|
}
|
|
23603
23710
|
],
|
|
@@ -6,6 +6,8 @@ interface _Radio extends CheckableFormAssociated {
|
|
|
6
6
|
}
|
|
7
7
|
declare const FormAssociatedRadio_base: typeof _Radio;
|
|
8
8
|
export declare class FormAssociatedRadio extends FormAssociatedRadio_base {
|
|
9
|
+
#private;
|
|
9
10
|
proxy: HTMLInputElement;
|
|
11
|
+
validate: (anchor?: HTMLElement) => void;
|
|
10
12
|
}
|
|
11
13
|
export {};
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -25,12 +25,9 @@ export declare class Tabs extends VividElement {
|
|
|
25
25
|
private getTabPanelIds;
|
|
26
26
|
private setComponent;
|
|
27
27
|
private handleTabClick;
|
|
28
|
-
private isHorizontal;
|
|
29
|
-
private handleTabKeyDown;
|
|
30
28
|
adjust(adjustment: number): void;
|
|
31
29
|
private adjustForward;
|
|
32
30
|
private adjustBackward;
|
|
33
|
-
private moveToTabByIndex;
|
|
34
31
|
private focusTab;
|
|
35
32
|
tablist?: HTMLElement;
|
|
36
33
|
connotation?: TabsConnotation;
|
|
@@ -39,6 +36,4 @@ export declare class Tabs extends VividElement {
|
|
|
39
36
|
tabsLayout?: 'align-start' | 'stretch';
|
|
40
37
|
connectedCallback(): void;
|
|
41
38
|
disconnectedCallback(): void;
|
|
42
|
-
private handleActiveIndicatorPosition;
|
|
43
|
-
private animateActiveIndicator;
|
|
44
39
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
1
|
import { Appearance, Connotation } from '../enums';
|
|
3
2
|
import { AffixIcon } from '../../shared/patterns/affix';
|
|
4
3
|
import { Anchor } from '../../shared/foundation/anchor/anchor';
|
|
4
|
+
import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
|
|
5
5
|
export type TextAnchorConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA>;
|
|
6
6
|
export type TextAnchorAppearance = Extract<Appearance, Appearance.Ghost | Appearance.GhostLight>;
|
|
7
|
-
export declare class TextAnchor extends
|
|
7
|
+
export declare class TextAnchor extends VividElement {
|
|
8
8
|
text?: string;
|
|
9
9
|
connotation?: TextAnchorConnotation;
|
|
10
10
|
appearance?: TextAnchorAppearance;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
1
|
import { AffixIcon } from '../../shared/patterns/affix';
|
|
2
|
+
import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
|
|
3
3
|
export declare function isTreeItemElement(el: Element): el is HTMLElement;
|
|
4
|
-
export declare class TreeItem extends
|
|
4
|
+
export declare class TreeItem extends VividElement {
|
|
5
5
|
text?: string;
|
|
6
6
|
expanded: boolean;
|
|
7
7
|
expandedChanged(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
1
|
import { TreeItem } from '../tree-item/tree-item.js';
|
|
2
|
+
import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
|
|
3
3
|
export declare function getDisplayedNodes(rootNode: HTMLElement, selector: string): HTMLElement[];
|
|
4
|
-
export declare class TreeView extends
|
|
4
|
+
export declare class TreeView extends VividElement {
|
|
5
5
|
renderCollapsedNodes: boolean;
|
|
6
6
|
currentSelected: HTMLElement | TreeItem | null;
|
|
7
7
|
slottedTreeItemsChanged(): void;
|
package/listbox/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const definition = require('../shared/definition35.cjs');
|
|
4
|
-
const
|
|
4
|
+
const vividElement = require('../shared/vivid-element.cjs');
|
|
5
5
|
const listbox = require('../shared/listbox2.cjs');
|
|
6
6
|
const slotted = require('../shared/slotted.cjs');
|
|
7
7
|
const classNames = require('../shared/class-names.cjs');
|
|
@@ -13,7 +13,7 @@ const getClasses = ({ appearance, shape, disabled, orientation }) => classNames.
|
|
|
13
13
|
[`shape-${shape}`, Boolean(shape) && orientation === "horizontal"],
|
|
14
14
|
[`orientation-${orientation}`, Boolean(orientation)]
|
|
15
15
|
);
|
|
16
|
-
const ListboxTemplate =
|
|
16
|
+
const ListboxTemplate = vividElement.html`
|
|
17
17
|
<template
|
|
18
18
|
aria-activedescendant="${(x) => x.ariaActiveDescendant}"
|
|
19
19
|
aria-multiselectable="${(x) => x.ariaMultiSelectable}"
|
|
@@ -40,7 +40,7 @@ const ListboxTemplate = defineVividComponent.html`
|
|
|
40
40
|
|
|
41
41
|
const styles = ":host{display:inline-block;inline-size:fit-content}:host(:focus-within){outline:none}:host([disabled]){cursor:not-allowed}.base{--_connotation-color-intermediate: var(--vvd-listbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-primary: var(--vvd-listbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-listbox-accent-soft, var(--vvd-color-neutral-100))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base{display:inline-flex;box-sizing:border-box;padding:4px;border-radius:var(--_listbox-border-radius);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);contain:paint;gap:4px;inline-size:100%}.base:not(.orientation-horizontal){flex-direction:column}.base:not(.shape-pill){--_listbox-border-radius: 8px}.base.shape-pill{--_listbox-border-radius: 24px}:host(:focus-within) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}::slotted([role=option]){border-radius:var(--_listbox-border-radius);contain:content}.base.disabled ::slotted([role=option]){--_option-appearance-color-text: var(--_appearance-color-outline);pointer-events:none}";
|
|
42
42
|
|
|
43
|
-
const listboxDefinition =
|
|
43
|
+
const listboxDefinition = vividElement.defineVividComponent(
|
|
44
44
|
"listbox",
|
|
45
45
|
listbox.Listbox,
|
|
46
46
|
ListboxTemplate,
|
|
@@ -49,6 +49,6 @@ const listboxDefinition = defineVividComponent.defineVividComponent(
|
|
|
49
49
|
styles
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
const registerListbox =
|
|
52
|
+
const registerListbox = vividElement.createRegisterFunction(listboxDefinition);
|
|
53
53
|
|
|
54
54
|
registerListbox();
|
package/listbox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as listboxOptionDefinition } from '../shared/definition35.js';
|
|
2
|
-
import { h as html, f as createRegisterFunction, d as defineVividComponent } from '../shared/
|
|
2
|
+
import { h as html, f as createRegisterFunction, d as defineVividComponent } from '../shared/vivid-element.js';
|
|
3
3
|
import { L as ListboxElement, a as Listbox } from '../shared/listbox2.js';
|
|
4
4
|
import { s as slotted } from '../shared/slotted.js';
|
|
5
5
|
import { c as classNames } from '../shared/class-names.js';
|
package/package.json
CHANGED
package/shared/affix.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const definition = require('./definition27.cjs');
|
|
4
4
|
const slotted = require('./slotted.cjs');
|
|
5
|
-
const
|
|
5
|
+
const vividElement = require('./vivid-element.cjs');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -16,10 +16,10 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
16
16
|
class AffixIcon {
|
|
17
17
|
}
|
|
18
18
|
__decorateClass([
|
|
19
|
-
|
|
19
|
+
vividElement.attr
|
|
20
20
|
], AffixIcon.prototype, "icon");
|
|
21
21
|
__decorateClass([
|
|
22
|
-
|
|
22
|
+
vividElement.attr({ mode: "fromView" })
|
|
23
23
|
], AffixIcon.prototype, "iconSlottedContent");
|
|
24
24
|
class AffixIconWithTrailing extends AffixIcon {
|
|
25
25
|
constructor() {
|
|
@@ -28,7 +28,7 @@ class AffixIconWithTrailing extends AffixIcon {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
__decorateClass([
|
|
31
|
-
|
|
31
|
+
vividElement.attr({
|
|
32
32
|
mode: "boolean",
|
|
33
33
|
attribute: "icon-trailing"
|
|
34
34
|
})
|
|
@@ -45,7 +45,7 @@ const affixIconTemplateFactory = (context) => {
|
|
|
45
45
|
const iconTag = context.tagFor(definition.Icon);
|
|
46
46
|
return (icon, slottedState = IconWrapper.Span, ariaHidden = IconAriaHidden.Hidden) => {
|
|
47
47
|
if (!icon && !slottedState) {
|
|
48
|
-
return
|
|
48
|
+
return vividElement.html`<slot
|
|
49
49
|
name="icon"
|
|
50
50
|
aria-hidden="${() => ariaHidden}"
|
|
51
51
|
${slotted.slotted("iconSlottedContent")}
|
|
@@ -54,10 +54,10 @@ const affixIconTemplateFactory = (context) => {
|
|
|
54
54
|
if (!icon && slottedState) {
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
const iconTemplate =
|
|
58
|
-
return slottedState ?
|
|
57
|
+
const iconTemplate = vividElement.html`<${iconTag} :name="${() => icon}"></${iconTag}>`;
|
|
58
|
+
return slottedState ? vividElement.html`<span class="icon" aria-hidden="${() => ariaHidden}"
|
|
59
59
|
>${iconTemplate}</span
|
|
60
|
-
>` :
|
|
60
|
+
>` : vividElement.html`<slot name="icon" aria-hidden="${() => ariaHidden}"
|
|
61
61
|
>${iconTemplate}</slot
|
|
62
62
|
>`;
|
|
63
63
|
};
|
package/shared/affix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as Icon } from './definition27.js';
|
|
2
2
|
import { s as slotted } from './slotted.js';
|
|
3
|
-
import { a as attr, h as html } from './
|
|
3
|
+
import { a as attr, h as html } from './vivid-element.js';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/shared/anchor.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const ariaGlobal = require('./aria-global.cjs');
|
|
4
4
|
const applyMixins = require('./apply-mixins.cjs');
|
|
5
|
-
const
|
|
5
|
+
const vividElement = require('./vivid-element.cjs');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -17,41 +17,41 @@ class Anchor {
|
|
|
17
17
|
}
|
|
18
18
|
// @ts-expect-error Type is incorrectly non-optional
|
|
19
19
|
__decorateClass([
|
|
20
|
-
|
|
20
|
+
vividElement.attr
|
|
21
21
|
], Anchor.prototype, "download");
|
|
22
22
|
// @ts-expect-error Type is incorrectly non-optional
|
|
23
23
|
__decorateClass([
|
|
24
|
-
|
|
24
|
+
vividElement.attr
|
|
25
25
|
], Anchor.prototype, "href");
|
|
26
26
|
// @ts-expect-error Type is incorrectly non-optional
|
|
27
27
|
__decorateClass([
|
|
28
|
-
|
|
28
|
+
vividElement.attr
|
|
29
29
|
], Anchor.prototype, "hreflang");
|
|
30
30
|
// @ts-expect-error Type is incorrectly non-optional
|
|
31
31
|
__decorateClass([
|
|
32
|
-
|
|
32
|
+
vividElement.attr
|
|
33
33
|
], Anchor.prototype, "ping");
|
|
34
34
|
// @ts-expect-error Type is incorrectly non-optional
|
|
35
35
|
__decorateClass([
|
|
36
|
-
|
|
36
|
+
vividElement.attr
|
|
37
37
|
], Anchor.prototype, "referrerpolicy");
|
|
38
38
|
// @ts-expect-error Type is incorrectly non-optional
|
|
39
39
|
__decorateClass([
|
|
40
|
-
|
|
40
|
+
vividElement.attr
|
|
41
41
|
], Anchor.prototype, "rel");
|
|
42
42
|
// @ts-expect-error Type is incorrectly non-optional
|
|
43
43
|
__decorateClass([
|
|
44
|
-
|
|
44
|
+
vividElement.attr
|
|
45
45
|
], Anchor.prototype, "target");
|
|
46
46
|
// @ts-expect-error Type is incorrectly non-optional
|
|
47
47
|
__decorateClass([
|
|
48
|
-
|
|
48
|
+
vividElement.attr
|
|
49
49
|
], Anchor.prototype, "type");
|
|
50
50
|
class DelegatesARIALink {
|
|
51
51
|
}
|
|
52
52
|
// @ts-expect-error Type is incorrectly non-optional
|
|
53
53
|
__decorateClass([
|
|
54
|
-
|
|
54
|
+
vividElement.attr({ attribute: "aria-expanded" })
|
|
55
55
|
], DelegatesARIALink.prototype, "ariaExpanded");
|
|
56
56
|
applyMixins.applyMixins(DelegatesARIALink, ariaGlobal.ARIAGlobalStatesAndProperties);
|
|
57
57
|
applyMixins.applyMixins(Anchor, DelegatesARIALink);
|
package/shared/anchor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
2
2
|
import { a as applyMixins } from './apply-mixins.js';
|
|
3
|
-
import { a as attr } from './
|
|
3
|
+
import { a as attr } from './vivid-element.js';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/shared/anchored.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
const slotted = require('./slotted.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -27,7 +27,7 @@ function anchored(constructor) {
|
|
|
27
27
|
const isOccupied = Boolean(
|
|
28
28
|
this._slottedAnchor && this._slottedAnchor.length > 0
|
|
29
29
|
);
|
|
30
|
-
|
|
30
|
+
vividElement.DOM.setBooleanAttribute(
|
|
31
31
|
this,
|
|
32
32
|
"slotted-anchor",
|
|
33
33
|
isOccupied
|
|
@@ -79,17 +79,17 @@ function anchored(constructor) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
__decorateClass([
|
|
82
|
-
|
|
82
|
+
vividElement.attr
|
|
83
83
|
], Decorated.prototype, "anchor");
|
|
84
84
|
__decorateClass([
|
|
85
|
-
|
|
85
|
+
vividElement.observable
|
|
86
86
|
], Decorated.prototype, "_slottedAnchor");
|
|
87
87
|
__decorateClass([
|
|
88
|
-
|
|
88
|
+
vividElement.observable
|
|
89
89
|
], Decorated.prototype, "_anchorEl");
|
|
90
90
|
return Decorated;
|
|
91
91
|
}
|
|
92
|
-
const anchorSlotTemplateFactory = () =>
|
|
92
|
+
const anchorSlotTemplateFactory = () => vividElement.html`<slot name="anchor" ${slotted.slotted("_slottedAnchor")}></slot>`;
|
|
93
93
|
|
|
94
94
|
exports.anchorSlotTemplateFactory = anchorSlotTemplateFactory;
|
|
95
95
|
exports.anchored = anchored;
|
package/shared/anchored.js
CHANGED
package/shared/apply-mixins.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
|
|
5
5
|
function applyMixins(derivedCtor, ...baseCtors) {
|
|
6
|
-
const derivedAttributes =
|
|
6
|
+
const derivedAttributes = vividElement.AttributeConfiguration.locate(derivedCtor);
|
|
7
7
|
baseCtors.forEach((baseCtor) => {
|
|
8
8
|
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
|
9
9
|
if (name !== "constructor") {
|
|
@@ -15,7 +15,7 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
const baseAttributes =
|
|
18
|
+
const baseAttributes = vividElement.AttributeConfiguration.locate(baseCtor);
|
|
19
19
|
baseAttributes.forEach((x) => derivedAttributes.push(x));
|
|
20
20
|
});
|
|
21
21
|
}
|
package/shared/apply-mixins.js
CHANGED
package/shared/apply-mixins2.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Apply mixins to a constructor.
|
|
@@ -8,7 +8,7 @@ const defineVividComponent = require('./defineVividComponent.cjs');
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
function applyMixins(derivedCtor, ...baseCtors) {
|
|
11
|
-
const derivedAttributes =
|
|
11
|
+
const derivedAttributes = vividElement.AttributeConfiguration.locate(derivedCtor);
|
|
12
12
|
baseCtors.forEach(baseCtor => {
|
|
13
13
|
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
|
|
14
14
|
if (name !== "constructor") {
|
|
@@ -17,7 +17,7 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
17
17
|
Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const baseAttributes =
|
|
20
|
+
const baseAttributes = vividElement.AttributeConfiguration.locate(baseCtor);
|
|
21
21
|
baseAttributes.forEach(x => derivedAttributes.push(x));
|
|
22
22
|
});
|
|
23
23
|
}
|
package/shared/apply-mixins2.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const applyMixins = require('./apply-mixins2.cjs');
|
|
4
|
-
const
|
|
4
|
+
const vividElement = require('./vivid-element.cjs');
|
|
5
5
|
|
|
6
6
|
function applyMixinsWithObservables(derivedCtor, ...baseCtors) {
|
|
7
7
|
applyMixins.applyMixins(derivedCtor, ...baseCtors);
|
|
8
8
|
baseCtors.forEach((baseCtor) => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
vividElement.Observable.getAccessors(baseCtor.prototype).forEach((accessor) => {
|
|
10
|
+
vividElement.Observable.defineProperty(derivedCtor.prototype, accessor.name);
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
}
|