@genesislcap/foundation-ui 14.148.1-alpha-eb67ade.0 → 14.149.0

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +1418 -1418
  2. package/package.json +15 -15
@@ -785,260 +785,6 @@
785
785
  }
786
786
  ]
787
787
  },
788
- {
789
- "kind": "javascript-module",
790
- "path": "src/_common/icons.ts",
791
- "declarations": [
792
- {
793
- "kind": "function",
794
- "name": "closeIcon",
795
- "parameters": [
796
- {
797
- "name": "slot",
798
- "default": "'start'"
799
- }
800
- ]
801
- }
802
- ],
803
- "exports": [
804
- {
805
- "kind": "js",
806
- "name": "closeIcon",
807
- "declaration": {
808
- "name": "closeIcon",
809
- "module": "src/_common/icons.ts"
810
- }
811
- }
812
- ]
813
- },
814
- {
815
- "kind": "javascript-module",
816
- "path": "src/_common/index.ts",
817
- "declarations": [],
818
- "exports": [
819
- {
820
- "kind": "js",
821
- "name": "*",
822
- "declaration": {
823
- "name": "*",
824
- "package": "./icons"
825
- }
826
- }
827
- ]
828
- },
829
- {
830
- "kind": "javascript-module",
831
- "path": "src/_config/index.ts",
832
- "declarations": [],
833
- "exports": [
834
- {
835
- "kind": "js",
836
- "name": "*",
837
- "declaration": {
838
- "name": "*",
839
- "package": "./styles"
840
- }
841
- },
842
- {
843
- "kind": "js",
844
- "name": "*",
845
- "declaration": {
846
- "name": "*",
847
- "package": "./tokens"
848
- }
849
- },
850
- {
851
- "kind": "js",
852
- "name": "*",
853
- "declaration": {
854
- "name": "*",
855
- "package": "./values"
856
- }
857
- }
858
- ]
859
- },
860
- {
861
- "kind": "javascript-module",
862
- "path": "src/accordion/accordion.styles.ts",
863
- "declarations": [
864
- {
865
- "kind": "function",
866
- "name": "foundationAccordionStyles",
867
- "return": {
868
- "type": {
869
- "text": "ElementStyles"
870
- }
871
- },
872
- "parameters": [
873
- {
874
- "name": "context",
875
- "type": {
876
- "text": "ElementDefinitionContext"
877
- }
878
- },
879
- {
880
- "name": "definition",
881
- "type": {
882
- "text": "FoundationElementDefinition"
883
- }
884
- }
885
- ]
886
- }
887
- ],
888
- "exports": [
889
- {
890
- "kind": "js",
891
- "name": "foundationAccordionStyles",
892
- "declaration": {
893
- "name": "foundationAccordionStyles",
894
- "module": "src/accordion/accordion.styles.ts"
895
- }
896
- }
897
- ]
898
- },
899
- {
900
- "kind": "javascript-module",
901
- "path": "src/accordion/accordion.template.ts",
902
- "declarations": [
903
- {
904
- "kind": "function",
905
- "name": "foundationAccordionTemplate",
906
- "return": {
907
- "type": {
908
- "text": "ViewTemplate<Accordion>"
909
- }
910
- },
911
- "parameters": [
912
- {
913
- "name": "context",
914
- "type": {
915
- "text": "ElementDefinitionContext"
916
- }
917
- },
918
- {
919
- "name": "definition",
920
- "type": {
921
- "text": "FoundationElementDefinition"
922
- }
923
- }
924
- ]
925
- }
926
- ],
927
- "exports": [
928
- {
929
- "kind": "js",
930
- "name": "foundationAccordionTemplate",
931
- "declaration": {
932
- "name": "foundationAccordionTemplate",
933
- "module": "src/accordion/accordion.template.ts"
934
- }
935
- }
936
- ]
937
- },
938
- {
939
- "kind": "javascript-module",
940
- "path": "src/accordion/accordion.ts",
941
- "declarations": [
942
- {
943
- "kind": "class",
944
- "description": "",
945
- "name": "Accordion",
946
- "superclass": {
947
- "name": "FASTAccordion",
948
- "package": "@microsoft/fast-foundation"
949
- },
950
- "tagName": "%%prefix%%-accordion",
951
- "customElement": true
952
- },
953
- {
954
- "kind": "variable",
955
- "name": "foundationAccordionShadowOptions",
956
- "type": {
957
- "text": "ShadowRootInit"
958
- },
959
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
960
- },
961
- {
962
- "kind": "variable",
963
- "name": "defaultAccordionConfig",
964
- "type": {
965
- "text": "object"
966
- },
967
- "default": "{}"
968
- },
969
- {
970
- "kind": "variable",
971
- "name": "foundationAccordion",
972
- "description": "The Foundation Accordion",
973
- "privacy": "public"
974
- }
975
- ],
976
- "exports": [
977
- {
978
- "kind": "js",
979
- "name": "Accordion",
980
- "declaration": {
981
- "name": "Accordion",
982
- "module": "src/accordion/accordion.ts"
983
- }
984
- },
985
- {
986
- "kind": "js",
987
- "name": "foundationAccordionShadowOptions",
988
- "declaration": {
989
- "name": "foundationAccordionShadowOptions",
990
- "module": "src/accordion/accordion.ts"
991
- }
992
- },
993
- {
994
- "kind": "js",
995
- "name": "defaultAccordionConfig",
996
- "declaration": {
997
- "name": "defaultAccordionConfig",
998
- "module": "src/accordion/accordion.ts"
999
- }
1000
- },
1001
- {
1002
- "kind": "js",
1003
- "name": "foundationAccordion",
1004
- "declaration": {
1005
- "name": "foundationAccordion",
1006
- "module": "src/accordion/accordion.ts"
1007
- }
1008
- }
1009
- ]
1010
- },
1011
- {
1012
- "kind": "javascript-module",
1013
- "path": "src/accordion/index.ts",
1014
- "declarations": [],
1015
- "exports": [
1016
- {
1017
- "kind": "js",
1018
- "name": "*",
1019
- "declaration": {
1020
- "name": "*",
1021
- "package": "./accordion.template"
1022
- }
1023
- },
1024
- {
1025
- "kind": "js",
1026
- "name": "*",
1027
- "declaration": {
1028
- "name": "*",
1029
- "package": "./accordion.styles"
1030
- }
1031
- },
1032
- {
1033
- "kind": "js",
1034
- "name": "*",
1035
- "declaration": {
1036
- "name": "*",
1037
- "package": "./accordion"
1038
- }
1039
- }
1040
- ]
1041
- },
1042
788
  {
1043
789
  "kind": "javascript-module",
1044
790
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -4104,7 +3850,261 @@
4104
3850
  },
4105
3851
  {
4106
3852
  "kind": "javascript-module",
4107
- "path": "src/avatar/avatar.styles.ts",
3853
+ "path": "src/_common/icons.ts",
3854
+ "declarations": [
3855
+ {
3856
+ "kind": "function",
3857
+ "name": "closeIcon",
3858
+ "parameters": [
3859
+ {
3860
+ "name": "slot",
3861
+ "default": "'start'"
3862
+ }
3863
+ ]
3864
+ }
3865
+ ],
3866
+ "exports": [
3867
+ {
3868
+ "kind": "js",
3869
+ "name": "closeIcon",
3870
+ "declaration": {
3871
+ "name": "closeIcon",
3872
+ "module": "src/_common/icons.ts"
3873
+ }
3874
+ }
3875
+ ]
3876
+ },
3877
+ {
3878
+ "kind": "javascript-module",
3879
+ "path": "src/_common/index.ts",
3880
+ "declarations": [],
3881
+ "exports": [
3882
+ {
3883
+ "kind": "js",
3884
+ "name": "*",
3885
+ "declaration": {
3886
+ "name": "*",
3887
+ "package": "./icons"
3888
+ }
3889
+ }
3890
+ ]
3891
+ },
3892
+ {
3893
+ "kind": "javascript-module",
3894
+ "path": "src/accordion/accordion.styles.ts",
3895
+ "declarations": [
3896
+ {
3897
+ "kind": "function",
3898
+ "name": "foundationAccordionStyles",
3899
+ "return": {
3900
+ "type": {
3901
+ "text": "ElementStyles"
3902
+ }
3903
+ },
3904
+ "parameters": [
3905
+ {
3906
+ "name": "context",
3907
+ "type": {
3908
+ "text": "ElementDefinitionContext"
3909
+ }
3910
+ },
3911
+ {
3912
+ "name": "definition",
3913
+ "type": {
3914
+ "text": "FoundationElementDefinition"
3915
+ }
3916
+ }
3917
+ ]
3918
+ }
3919
+ ],
3920
+ "exports": [
3921
+ {
3922
+ "kind": "js",
3923
+ "name": "foundationAccordionStyles",
3924
+ "declaration": {
3925
+ "name": "foundationAccordionStyles",
3926
+ "module": "src/accordion/accordion.styles.ts"
3927
+ }
3928
+ }
3929
+ ]
3930
+ },
3931
+ {
3932
+ "kind": "javascript-module",
3933
+ "path": "src/accordion/accordion.template.ts",
3934
+ "declarations": [
3935
+ {
3936
+ "kind": "function",
3937
+ "name": "foundationAccordionTemplate",
3938
+ "return": {
3939
+ "type": {
3940
+ "text": "ViewTemplate<Accordion>"
3941
+ }
3942
+ },
3943
+ "parameters": [
3944
+ {
3945
+ "name": "context",
3946
+ "type": {
3947
+ "text": "ElementDefinitionContext"
3948
+ }
3949
+ },
3950
+ {
3951
+ "name": "definition",
3952
+ "type": {
3953
+ "text": "FoundationElementDefinition"
3954
+ }
3955
+ }
3956
+ ]
3957
+ }
3958
+ ],
3959
+ "exports": [
3960
+ {
3961
+ "kind": "js",
3962
+ "name": "foundationAccordionTemplate",
3963
+ "declaration": {
3964
+ "name": "foundationAccordionTemplate",
3965
+ "module": "src/accordion/accordion.template.ts"
3966
+ }
3967
+ }
3968
+ ]
3969
+ },
3970
+ {
3971
+ "kind": "javascript-module",
3972
+ "path": "src/accordion/accordion.ts",
3973
+ "declarations": [
3974
+ {
3975
+ "kind": "class",
3976
+ "description": "",
3977
+ "name": "Accordion",
3978
+ "superclass": {
3979
+ "name": "FASTAccordion",
3980
+ "package": "@microsoft/fast-foundation"
3981
+ },
3982
+ "tagName": "%%prefix%%-accordion",
3983
+ "customElement": true
3984
+ },
3985
+ {
3986
+ "kind": "variable",
3987
+ "name": "foundationAccordionShadowOptions",
3988
+ "type": {
3989
+ "text": "ShadowRootInit"
3990
+ },
3991
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
3992
+ },
3993
+ {
3994
+ "kind": "variable",
3995
+ "name": "defaultAccordionConfig",
3996
+ "type": {
3997
+ "text": "object"
3998
+ },
3999
+ "default": "{}"
4000
+ },
4001
+ {
4002
+ "kind": "variable",
4003
+ "name": "foundationAccordion",
4004
+ "description": "The Foundation Accordion",
4005
+ "privacy": "public"
4006
+ }
4007
+ ],
4008
+ "exports": [
4009
+ {
4010
+ "kind": "js",
4011
+ "name": "Accordion",
4012
+ "declaration": {
4013
+ "name": "Accordion",
4014
+ "module": "src/accordion/accordion.ts"
4015
+ }
4016
+ },
4017
+ {
4018
+ "kind": "js",
4019
+ "name": "foundationAccordionShadowOptions",
4020
+ "declaration": {
4021
+ "name": "foundationAccordionShadowOptions",
4022
+ "module": "src/accordion/accordion.ts"
4023
+ }
4024
+ },
4025
+ {
4026
+ "kind": "js",
4027
+ "name": "defaultAccordionConfig",
4028
+ "declaration": {
4029
+ "name": "defaultAccordionConfig",
4030
+ "module": "src/accordion/accordion.ts"
4031
+ }
4032
+ },
4033
+ {
4034
+ "kind": "js",
4035
+ "name": "foundationAccordion",
4036
+ "declaration": {
4037
+ "name": "foundationAccordion",
4038
+ "module": "src/accordion/accordion.ts"
4039
+ }
4040
+ }
4041
+ ]
4042
+ },
4043
+ {
4044
+ "kind": "javascript-module",
4045
+ "path": "src/accordion/index.ts",
4046
+ "declarations": [],
4047
+ "exports": [
4048
+ {
4049
+ "kind": "js",
4050
+ "name": "*",
4051
+ "declaration": {
4052
+ "name": "*",
4053
+ "package": "./accordion.template"
4054
+ }
4055
+ },
4056
+ {
4057
+ "kind": "js",
4058
+ "name": "*",
4059
+ "declaration": {
4060
+ "name": "*",
4061
+ "package": "./accordion.styles"
4062
+ }
4063
+ },
4064
+ {
4065
+ "kind": "js",
4066
+ "name": "*",
4067
+ "declaration": {
4068
+ "name": "*",
4069
+ "package": "./accordion"
4070
+ }
4071
+ }
4072
+ ]
4073
+ },
4074
+ {
4075
+ "kind": "javascript-module",
4076
+ "path": "src/_config/index.ts",
4077
+ "declarations": [],
4078
+ "exports": [
4079
+ {
4080
+ "kind": "js",
4081
+ "name": "*",
4082
+ "declaration": {
4083
+ "name": "*",
4084
+ "package": "./styles"
4085
+ }
4086
+ },
4087
+ {
4088
+ "kind": "js",
4089
+ "name": "*",
4090
+ "declaration": {
4091
+ "name": "*",
4092
+ "package": "./tokens"
4093
+ }
4094
+ },
4095
+ {
4096
+ "kind": "js",
4097
+ "name": "*",
4098
+ "declaration": {
4099
+ "name": "*",
4100
+ "package": "./values"
4101
+ }
4102
+ }
4103
+ ]
4104
+ },
4105
+ {
4106
+ "kind": "javascript-module",
4107
+ "path": "src/avatar/avatar.styles.ts",
4108
4108
  "declarations": [
4109
4109
  {
4110
4110
  "kind": "function",
@@ -19348,11 +19348,11 @@
19348
19348
  },
19349
19349
  {
19350
19350
  "kind": "javascript-module",
19351
- "path": "src/horizontal-scroll/horizontal-scroll.styles.ts",
19351
+ "path": "src/icon/icon.styles.ts",
19352
19352
  "declarations": [
19353
19353
  {
19354
19354
  "kind": "function",
19355
- "name": "foundationHorizontalScrollStyles",
19355
+ "name": "foundationIconStyles",
19356
19356
  "return": {
19357
19357
  "type": {
19358
19358
  "text": "ElementStyles"
@@ -19377,651 +19377,357 @@
19377
19377
  "exports": [
19378
19378
  {
19379
19379
  "kind": "js",
19380
- "name": "foundationHorizontalScrollStyles",
19380
+ "name": "foundationIconStyles",
19381
19381
  "declaration": {
19382
- "name": "foundationHorizontalScrollStyles",
19383
- "module": "src/horizontal-scroll/horizontal-scroll.styles.ts"
19382
+ "name": "foundationIconStyles",
19383
+ "module": "src/icon/icon.styles.ts"
19384
19384
  }
19385
19385
  }
19386
19386
  ]
19387
19387
  },
19388
19388
  {
19389
19389
  "kind": "javascript-module",
19390
- "path": "src/horizontal-scroll/horizontal-scroll.template.ts",
19390
+ "path": "src/icon/icon.template.ts",
19391
19391
  "declarations": [
19392
19392
  {
19393
- "kind": "function",
19394
- "name": "foundationHorizontalScrollTemplate",
19395
- "return": {
19396
- "type": {
19397
- "text": "ViewTemplate<HorizontalScroll>"
19398
- }
19393
+ "kind": "variable",
19394
+ "name": "foundationIconTemplate",
19395
+ "type": {
19396
+ "text": "ViewTemplate"
19399
19397
  },
19400
- "parameters": [
19401
- {
19402
- "name": "context",
19403
- "type": {
19404
- "text": "ElementDefinitionContext"
19405
- }
19406
- },
19407
- {
19408
- "name": "definition",
19409
- "type": {
19410
- "text": "FoundationElementDefinition"
19411
- }
19412
- }
19413
- ]
19398
+ "default": "html<Icon>`\n <template>\n <i\n ${ref('iElement')}\n class=${(x) => `fa-${x.name} fa-${x.size} fa-${x.variant}`}\n part=${(x) => `icon-${x.name}-${x.size}-${x.variant}`}\n >\n <slot></slot>\n </i>\n </template>\n`"
19414
19399
  }
19415
19400
  ],
19416
19401
  "exports": [
19417
19402
  {
19418
19403
  "kind": "js",
19419
- "name": "foundationHorizontalScrollTemplate",
19404
+ "name": "foundationIconTemplate",
19420
19405
  "declaration": {
19421
- "name": "foundationHorizontalScrollTemplate",
19422
- "module": "src/horizontal-scroll/horizontal-scroll.template.ts"
19406
+ "name": "foundationIconTemplate",
19407
+ "module": "src/icon/icon.template.ts"
19423
19408
  }
19424
19409
  }
19425
19410
  ]
19426
19411
  },
19427
19412
  {
19428
19413
  "kind": "javascript-module",
19429
- "path": "src/horizontal-scroll/horizontal-scroll.ts",
19414
+ "path": "src/icon/icon.ts",
19430
19415
  "declarations": [
19416
+ {
19417
+ "kind": "variable",
19418
+ "name": "foundationIconShadowOptions",
19419
+ "type": {
19420
+ "text": "ShadowRootInit"
19421
+ },
19422
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
19423
+ },
19424
+ {
19425
+ "kind": "variable",
19426
+ "name": "defaultIconConfig",
19427
+ "type": {
19428
+ "text": "object"
19429
+ },
19430
+ "default": "{}"
19431
+ },
19431
19432
  {
19432
19433
  "kind": "class",
19433
19434
  "description": "",
19434
- "name": "HorizontalScroll",
19435
- "superclass": {
19436
- "name": "FASTHorizontalScroll",
19437
- "package": "@microsoft/fast-components"
19438
- },
19439
- "tagName": "%%prefix%%-horizontal-scroll",
19440
- "customElement": true,
19441
- "attributes": [
19435
+ "name": "Icon",
19436
+ "members": [
19442
19437
  {
19438
+ "kind": "field",
19439
+ "name": "iElement",
19443
19440
  "type": {
19444
- "text": "number"
19445
- },
19446
- "default": "600",
19447
- "description": "Speed of scroll in pixels per second",
19448
- "fieldName": "speed",
19449
- "inheritedFrom": {
19450
- "name": "HorizontalScroll",
19451
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19441
+ "text": "HTMLElement"
19452
19442
  }
19453
19443
  },
19454
19444
  {
19455
- "name": "duration",
19445
+ "kind": "field",
19446
+ "name": "name",
19456
19447
  "type": {
19457
- "text": "string"
19458
- },
19459
- "description": "The CSS time value for the scroll transition duration. Overrides the `speed` attribute.",
19460
- "fieldName": "duration",
19461
- "inheritedFrom": {
19462
- "name": "HorizontalScroll",
19463
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19448
+ "text": "IconName"
19464
19449
  }
19465
19450
  },
19466
19451
  {
19467
- "name": "easing",
19468
- "type": {
19469
- "text": "ScrollEasing"
19470
- },
19471
- "default": "\"ease-in-out\"",
19472
- "description": "Attribute used for easing, defaults to ease-in-out",
19473
- "fieldName": "easing",
19474
- "inheritedFrom": {
19475
- "name": "HorizontalScroll",
19476
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19477
- }
19452
+ "kind": "method",
19453
+ "name": "nameChanged",
19454
+ "parameters": [
19455
+ {
19456
+ "name": "oldValue",
19457
+ "type": {
19458
+ "text": "string"
19459
+ }
19460
+ },
19461
+ {
19462
+ "name": "newValue",
19463
+ "type": {
19464
+ "text": "string"
19465
+ }
19466
+ }
19467
+ ]
19478
19468
  },
19479
19469
  {
19480
- "name": "flippers-hidden-from-at",
19470
+ "kind": "field",
19471
+ "name": "size",
19481
19472
  "type": {
19482
- "text": "boolean"
19473
+ "text": "FaSize"
19483
19474
  },
19484
- "default": "false",
19485
- "description": "Attribute to hide flippers from assistive technology",
19486
- "fieldName": "flippersHiddenFromAT",
19487
- "inheritedFrom": {
19488
- "name": "HorizontalScroll",
19489
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19490
- }
19475
+ "default": "'sm'"
19491
19476
  },
19492
19477
  {
19493
- "name": "view",
19494
- "type": {
19495
- "text": "HorizontalScrollView"
19496
- },
19497
- "description": "View: default | mobile",
19498
- "fieldName": "view",
19499
- "inheritedFrom": {
19500
- "name": "HorizontalScroll",
19501
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19502
- }
19503
- }
19504
- ],
19505
- "members": [
19478
+ "kind": "method",
19479
+ "name": "sizeChanged",
19480
+ "parameters": [
19481
+ {
19482
+ "name": "oldValue",
19483
+ "type": {
19484
+ "text": "string"
19485
+ }
19486
+ },
19487
+ {
19488
+ "name": "newValue",
19489
+ "type": {
19490
+ "text": "string"
19491
+ }
19492
+ }
19493
+ ]
19494
+ },
19506
19495
  {
19507
19496
  "kind": "field",
19508
- "name": "scrollContainer",
19497
+ "name": "variant",
19509
19498
  "type": {
19510
- "text": "HTMLDivElement"
19499
+ "text": "IconStyle"
19511
19500
  },
19512
- "privacy": "public",
19513
- "description": "Reference to DOM element that scrolls the content",
19514
- "inheritedFrom": {
19515
- "name": "HorizontalScroll",
19516
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19517
- }
19501
+ "default": "'solid'"
19502
+ },
19503
+ {
19504
+ "kind": "method",
19505
+ "name": "variantChanged",
19506
+ "parameters": [
19507
+ {
19508
+ "name": "oldValue",
19509
+ "type": {
19510
+ "text": "string"
19511
+ }
19512
+ },
19513
+ {
19514
+ "name": "newValue",
19515
+ "type": {
19516
+ "text": "string"
19517
+ }
19518
+ }
19519
+ ]
19520
+ },
19521
+ {
19522
+ "kind": "method",
19523
+ "name": "loadIcon",
19524
+ "privacy": "public"
19518
19525
  },
19519
19526
  {
19520
19527
  "kind": "field",
19521
- "name": "content",
19528
+ "name": "_presentation",
19522
19529
  "type": {
19523
- "text": "HTMLDivElement"
19530
+ "text": "ComponentPresentation | null | undefined"
19524
19531
  },
19525
- "privacy": "public",
19526
- "description": "Reference to DOM element that holds the slotted content",
19532
+ "privacy": "private",
19533
+ "default": "void 0",
19527
19534
  "inheritedFrom": {
19528
- "name": "HorizontalScroll",
19529
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19535
+ "name": "FoundationElement",
19536
+ "module": "src/foundation-element/foundation-element.ts"
19530
19537
  }
19531
19538
  },
19532
19539
  {
19533
19540
  "kind": "field",
19534
- "name": "previousFlipperContainer",
19541
+ "name": "$presentation",
19535
19542
  "type": {
19536
- "text": "HTMLDivElement"
19543
+ "text": "ComponentPresentation | null"
19537
19544
  },
19538
19545
  "privacy": "public",
19539
- "description": "Reference to flipper to scroll to previous content",
19546
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
19540
19547
  "inheritedFrom": {
19541
- "name": "HorizontalScroll",
19542
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19548
+ "name": "FoundationElement",
19549
+ "module": "src/foundation-element/foundation-element.ts"
19543
19550
  }
19544
19551
  },
19545
19552
  {
19546
19553
  "kind": "field",
19547
- "name": "nextFlipperContainer",
19554
+ "name": "template",
19548
19555
  "type": {
19549
- "text": "HTMLDivElement"
19556
+ "text": "ElementViewTemplate | void | null"
19550
19557
  },
19551
19558
  "privacy": "public",
19552
- "description": "Reference to flipper to scroll to the next content",
19559
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
19553
19560
  "inheritedFrom": {
19554
- "name": "HorizontalScroll",
19555
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19561
+ "name": "FoundationElement",
19562
+ "module": "src/foundation-element/foundation-element.ts"
19556
19563
  }
19557
19564
  },
19558
19565
  {
19559
- "kind": "field",
19560
- "name": "speed",
19561
- "type": {
19562
- "text": "number"
19566
+ "kind": "method",
19567
+ "name": "templateChanged",
19568
+ "privacy": "protected",
19569
+ "return": {
19570
+ "type": {
19571
+ "text": "void"
19572
+ }
19563
19573
  },
19564
- "privacy": "public",
19565
- "default": "600",
19566
- "description": "Speed of scroll in pixels per second",
19567
19574
  "inheritedFrom": {
19568
- "name": "HorizontalScroll",
19569
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19575
+ "name": "FoundationElement",
19576
+ "module": "src/foundation-element/foundation-element.ts"
19570
19577
  }
19571
19578
  },
19572
19579
  {
19573
19580
  "kind": "field",
19574
- "name": "duration",
19581
+ "name": "styles",
19575
19582
  "type": {
19576
- "text": "string"
19583
+ "text": "ElementStyles | void | null"
19577
19584
  },
19578
19585
  "privacy": "public",
19579
- "description": "The CSS time value for the scroll transition duration. Overrides the `speed` attribute.",
19586
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
19580
19587
  "inheritedFrom": {
19581
- "name": "HorizontalScroll",
19582
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19583
- }
19584
- },
19585
- {
19586
- "kind": "field",
19587
- "name": "easing",
19588
- "type": {
19589
- "text": "ScrollEasing"
19590
- },
19591
- "privacy": "public",
19592
- "default": "\"ease-in-out\"",
19593
- "description": "Attribute used for easing, defaults to ease-in-out",
19594
- "inheritedFrom": {
19595
- "name": "HorizontalScroll",
19596
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19597
- }
19598
- },
19599
- {
19600
- "kind": "field",
19601
- "name": "flippersHiddenFromAT",
19602
- "type": {
19603
- "text": "boolean"
19604
- },
19605
- "privacy": "public",
19606
- "default": "false",
19607
- "description": "Attribute to hide flippers from assistive technology",
19608
- "inheritedFrom": {
19609
- "name": "HorizontalScroll",
19610
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19611
- }
19612
- },
19613
- {
19614
- "kind": "field",
19615
- "name": "scrollItems",
19616
- "type": {
19617
- "text": "HTMLElement[]"
19618
- },
19619
- "privacy": "public",
19620
- "description": "The default slotted items placed in the scrolling container.",
19621
- "inheritedFrom": {
19622
- "name": "HorizontalScroll",
19623
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19624
- }
19625
- },
19626
- {
19627
- "kind": "field",
19628
- "name": "view",
19629
- "type": {
19630
- "text": "HorizontalScrollView"
19631
- },
19632
- "privacy": "public",
19633
- "description": "View: default | mobile",
19634
- "inheritedFrom": {
19635
- "name": "HorizontalScroll",
19636
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19637
- }
19638
- },
19639
- {
19640
- "kind": "method",
19641
- "name": "scrollItemsChanged",
19642
- "privacy": "public",
19643
- "parameters": [
19644
- {
19645
- "name": "previous",
19646
- "type": {
19647
- "text": "HTMLElement[]"
19648
- },
19649
- "description": "current scroll items"
19650
- },
19651
- {
19652
- "name": "next",
19653
- "type": {
19654
- "text": "HTMLElement[]"
19655
- },
19656
- "description": "new updated scroll items"
19657
- }
19658
- ],
19659
- "description": "Updates scroll stops and flippers when scroll items change",
19660
- "inheritedFrom": {
19661
- "name": "HorizontalScroll",
19662
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19663
- }
19664
- },
19665
- {
19666
- "kind": "method",
19667
- "name": "fixScrollMisalign",
19668
- "privacy": "private",
19669
- "parameters": [
19670
- {
19671
- "name": "stops",
19672
- "type": {
19673
- "text": "number[]"
19674
- }
19675
- }
19676
- ],
19677
- "inheritedFrom": {
19678
- "name": "HorizontalScroll",
19679
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19680
- }
19681
- },
19682
- {
19683
- "kind": "method",
19684
- "name": "scrollInView",
19685
- "privacy": "public",
19686
- "return": {
19687
- "type": {
19688
- "text": "void"
19689
- }
19690
- },
19691
- "parameters": [
19692
- {
19693
- "name": "item",
19694
- "type": {
19695
- "text": "HTMLElement | number"
19696
- },
19697
- "description": "An item index, a scroll item or a child of one of the scroll items"
19698
- },
19699
- {
19700
- "name": "padding",
19701
- "default": "0",
19702
- "type": {
19703
- "text": "number"
19704
- },
19705
- "description": "Padding of the viewport where the active item shouldn't be"
19706
- },
19707
- {
19708
- "name": "rightPadding",
19709
- "optional": true,
19710
- "type": {
19711
- "text": "number"
19712
- },
19713
- "description": "Optional right padding. Uses the padding if not defined"
19714
- }
19715
- ],
19716
- "description": "Function that can scroll an item into view.",
19717
- "inheritedFrom": {
19718
- "name": "HorizontalScroll",
19719
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19720
- }
19721
- },
19722
- {
19723
- "kind": "method",
19724
- "name": "keyupHandler",
19725
- "privacy": "public",
19726
- "parameters": [
19727
- {
19728
- "name": "e",
19729
- "type": {
19730
- "text": "Event & KeyboardEvent"
19731
- },
19732
- "description": "Keyboard event"
19733
- }
19734
- ],
19735
- "description": "Lets the user arrow left and right through the horizontal scroll",
19736
- "inheritedFrom": {
19737
- "name": "HorizontalScroll",
19738
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19739
- }
19740
- },
19741
- {
19742
- "kind": "method",
19743
- "name": "scrollToPrevious",
19744
- "privacy": "public",
19745
- "return": {
19746
- "type": {
19747
- "text": "void"
19748
- }
19749
- },
19750
- "description": "Scrolls items to the left",
19751
- "inheritedFrom": {
19752
- "name": "HorizontalScroll",
19753
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19588
+ "name": "FoundationElement",
19589
+ "module": "src/foundation-element/foundation-element.ts"
19754
19590
  }
19755
19591
  },
19756
19592
  {
19757
19593
  "kind": "method",
19758
- "name": "scrollToNext",
19759
- "privacy": "public",
19594
+ "name": "stylesChanged",
19595
+ "privacy": "protected",
19760
19596
  "return": {
19761
19597
  "type": {
19762
19598
  "text": "void"
19763
19599
  }
19764
19600
  },
19765
- "description": "Scrolls items to the right",
19766
19601
  "inheritedFrom": {
19767
- "name": "HorizontalScroll",
19768
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19602
+ "name": "FoundationElement",
19603
+ "module": "src/foundation-element/foundation-element.ts"
19769
19604
  }
19770
19605
  },
19771
19606
  {
19772
19607
  "kind": "method",
19773
- "name": "scrollToPosition",
19608
+ "name": "compose",
19774
19609
  "privacy": "public",
19610
+ "static": true,
19775
19611
  "return": {
19776
19612
  "type": {
19777
- "text": "void"
19613
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
19778
19614
  }
19779
19615
  },
19780
19616
  "parameters": [
19781
19617
  {
19782
- "name": "newPosition",
19618
+ "name": "this",
19783
19619
  "type": {
19784
- "text": "number"
19785
- },
19786
- "description": "position to scroll to"
19620
+ "text": "K"
19621
+ }
19787
19622
  },
19788
19623
  {
19789
- "name": "position",
19790
- "default": "this.scrollContainer.scrollLeft",
19624
+ "name": "elementDefinition",
19791
19625
  "type": {
19792
- "text": "number"
19626
+ "text": "T"
19793
19627
  },
19794
- "description": "starting position"
19628
+ "description": "The definition of the element to create the registry\nfunction for."
19795
19629
  }
19796
19630
  ],
19797
- "description": "Handles scrolling with easing",
19798
- "inheritedFrom": {
19799
- "name": "HorizontalScroll",
19800
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19801
- }
19802
- },
19803
- {
19804
- "kind": "method",
19805
- "name": "resized",
19806
- "privacy": "public",
19807
- "return": {
19808
- "type": {
19809
- "text": "void"
19810
- }
19811
- },
19812
- "description": "Monitors resize event on the horizontal-scroll element",
19631
+ "description": "Defines an element registry function with a set of element definition defaults.",
19813
19632
  "inheritedFrom": {
19814
- "name": "HorizontalScroll",
19815
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19633
+ "name": "FoundationElement",
19634
+ "module": "src/foundation-element/foundation-element.ts"
19816
19635
  }
19817
- },
19636
+ }
19637
+ ],
19638
+ "attributes": [
19818
19639
  {
19819
- "kind": "method",
19820
- "name": "scrolled",
19821
- "privacy": "public",
19822
- "return": {
19823
- "type": {
19824
- "text": "void"
19825
- }
19640
+ "name": "name",
19641
+ "type": {
19642
+ "text": "IconName"
19826
19643
  },
19827
- "description": "Monitors scrolled event on the content container",
19828
- "inheritedFrom": {
19829
- "name": "HorizontalScroll",
19830
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19831
- }
19644
+ "fieldName": "name"
19832
19645
  },
19833
19646
  {
19834
- "kind": "field",
19835
- "name": "_presentation",
19647
+ "name": "size",
19836
19648
  "type": {
19837
- "text": "ComponentPresentation | null | undefined"
19649
+ "text": "FaSize"
19838
19650
  },
19839
- "privacy": "private",
19840
- "default": "void 0",
19841
- "inheritedFrom": {
19842
- "name": "FoundationElement",
19843
- "module": "src/foundation-element/foundation-element.ts"
19844
- }
19651
+ "default": "'sm'",
19652
+ "fieldName": "size"
19845
19653
  },
19846
19654
  {
19847
- "kind": "field",
19848
- "name": "$presentation",
19655
+ "name": "variant",
19849
19656
  "type": {
19850
- "text": "ComponentPresentation | null"
19851
- },
19852
- "privacy": "public",
19853
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
19854
- "inheritedFrom": {
19855
- "name": "FoundationElement",
19856
- "module": "src/foundation-element/foundation-element.ts"
19857
- }
19858
- },
19859
- {
19860
- "kind": "field",
19861
- "name": "template",
19862
- "type": {
19863
- "text": "ElementViewTemplate | void | null"
19864
- },
19865
- "privacy": "public",
19866
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
19867
- "inheritedFrom": {
19868
- "name": "FoundationElement",
19869
- "module": "src/foundation-element/foundation-element.ts"
19870
- }
19871
- },
19872
- {
19873
- "kind": "method",
19874
- "name": "templateChanged",
19875
- "privacy": "protected",
19876
- "return": {
19877
- "type": {
19878
- "text": "void"
19879
- }
19880
- },
19881
- "inheritedFrom": {
19882
- "name": "FoundationElement",
19883
- "module": "src/foundation-element/foundation-element.ts"
19884
- }
19885
- },
19886
- {
19887
- "kind": "field",
19888
- "name": "styles",
19889
- "type": {
19890
- "text": "ElementStyles | void | null"
19891
- },
19892
- "privacy": "public",
19893
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
19894
- "inheritedFrom": {
19895
- "name": "FoundationElement",
19896
- "module": "src/foundation-element/foundation-element.ts"
19897
- }
19898
- },
19899
- {
19900
- "kind": "method",
19901
- "name": "stylesChanged",
19902
- "privacy": "protected",
19903
- "return": {
19904
- "type": {
19905
- "text": "void"
19906
- }
19907
- },
19908
- "inheritedFrom": {
19909
- "name": "FoundationElement",
19910
- "module": "src/foundation-element/foundation-element.ts"
19911
- }
19912
- },
19913
- {
19914
- "kind": "method",
19915
- "name": "compose",
19916
- "privacy": "public",
19917
- "static": true,
19918
- "return": {
19919
- "type": {
19920
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
19921
- }
19657
+ "text": "IconStyle"
19922
19658
  },
19923
- "parameters": [
19924
- {
19925
- "name": "this",
19926
- "type": {
19927
- "text": "K"
19928
- }
19929
- },
19930
- {
19931
- "name": "elementDefinition",
19932
- "type": {
19933
- "text": "T"
19934
- },
19935
- "description": "The definition of the element to create the registry\nfunction for."
19936
- }
19937
- ],
19938
- "description": "Defines an element registry function with a set of element definition defaults.",
19939
- "inheritedFrom": {
19940
- "name": "FoundationElement",
19941
- "module": "src/foundation-element/foundation-element.ts"
19942
- }
19659
+ "default": "'solid'",
19660
+ "fieldName": "variant"
19943
19661
  }
19944
19662
  ],
19945
- "events": [
19946
- {
19947
- "description": "Fires a custom 'scrollstart' event when scrolling",
19948
- "name": "scrollstart",
19949
- "inheritedFrom": {
19950
- "name": "HorizontalScroll",
19951
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19952
- }
19953
- },
19954
- {
19955
- "description": "Fires a custom 'scrollend' event when scrolling stops",
19956
- "name": "scrollend",
19957
- "inheritedFrom": {
19958
- "name": "HorizontalScroll",
19959
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19960
- }
19961
- }
19962
- ]
19963
- },
19964
- {
19965
- "kind": "variable",
19966
- "name": "foundationHorizontalScrollShadowOptions",
19967
- "type": {
19968
- "text": "ShadowRootInit"
19969
- },
19970
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
19971
- },
19972
- {
19973
- "kind": "variable",
19974
- "name": "defaultHorizontalScrollConfig",
19975
- "type": {
19976
- "text": "object"
19663
+ "superclass": {
19664
+ "name": "FoundationElement",
19665
+ "package": "@microsoft/fast-foundation"
19977
19666
  },
19978
- "default": "{\n nextFlipper: html`\n <foundation-flipper\n @click=\"${(x) => x.scrollToNext()}\"\n aria-hidden=\"${(x) => x.flippersHiddenFromAT}\"\n ></foundation-flipper>\n `,\n previousFlipper: html`\n <foundation-flipper\n @click=\"${(x) => x.scrollToPrevious()}\"\n direction=\"previous\"\n aria-hidden=\"${(x) => x.flippersHiddenFromAT}\"\n ></foundation-flipper>\n `,\n}"
19667
+ "tagName": "%%prefix%%-icon",
19668
+ "customElement": true
19979
19669
  },
19980
19670
  {
19981
19671
  "kind": "variable",
19982
- "name": "foundationHorizontalScroll",
19983
- "description": "The Foundation HorizontalScroll",
19672
+ "name": "foundationIcon",
19673
+ "description": "The Foundation Icon",
19984
19674
  "privacy": "public"
19985
19675
  }
19986
19676
  ],
19987
19677
  "exports": [
19988
19678
  {
19989
19679
  "kind": "js",
19990
- "name": "HorizontalScroll",
19680
+ "name": "IconName",
19991
19681
  "declaration": {
19992
- "name": "HorizontalScroll",
19993
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19682
+ "name": "IconName",
19683
+ "module": "src/icon/icon.ts"
19994
19684
  }
19995
19685
  },
19996
19686
  {
19997
19687
  "kind": "js",
19998
- "name": "foundationHorizontalScrollShadowOptions",
19688
+ "name": "IconStyle",
19999
19689
  "declaration": {
20000
- "name": "foundationHorizontalScrollShadowOptions",
20001
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19690
+ "name": "IconStyle",
19691
+ "module": "src/icon/icon.ts"
20002
19692
  }
20003
19693
  },
20004
19694
  {
20005
19695
  "kind": "js",
20006
- "name": "defaultHorizontalScrollConfig",
19696
+ "name": "foundationIconShadowOptions",
20007
19697
  "declaration": {
20008
- "name": "defaultHorizontalScrollConfig",
20009
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19698
+ "name": "foundationIconShadowOptions",
19699
+ "module": "src/icon/icon.ts"
20010
19700
  }
20011
19701
  },
20012
19702
  {
20013
19703
  "kind": "js",
20014
- "name": "foundationHorizontalScroll",
19704
+ "name": "defaultIconConfig",
20015
19705
  "declaration": {
20016
- "name": "foundationHorizontalScroll",
20017
- "module": "src/horizontal-scroll/horizontal-scroll.ts"
19706
+ "name": "defaultIconConfig",
19707
+ "module": "src/icon/icon.ts"
19708
+ }
19709
+ },
19710
+ {
19711
+ "kind": "js",
19712
+ "name": "Icon",
19713
+ "declaration": {
19714
+ "name": "Icon",
19715
+ "module": "src/icon/icon.ts"
19716
+ }
19717
+ },
19718
+ {
19719
+ "kind": "js",
19720
+ "name": "foundationIcon",
19721
+ "declaration": {
19722
+ "name": "foundationIcon",
19723
+ "module": "src/icon/icon.ts"
20018
19724
  }
20019
19725
  }
20020
19726
  ]
20021
19727
  },
20022
19728
  {
20023
19729
  "kind": "javascript-module",
20024
- "path": "src/horizontal-scroll/index.ts",
19730
+ "path": "src/icon/index.ts",
20025
19731
  "declarations": [],
20026
19732
  "exports": [
20027
19733
  {
@@ -20029,7 +19735,7 @@
20029
19735
  "name": "*",
20030
19736
  "declaration": {
20031
19737
  "name": "*",
20032
- "package": "./horizontal-scroll.template"
19738
+ "package": "./icon.styles"
20033
19739
  }
20034
19740
  },
20035
19741
  {
@@ -20037,7 +19743,7 @@
20037
19743
  "name": "*",
20038
19744
  "declaration": {
20039
19745
  "name": "*",
20040
- "package": "./horizontal-scroll.styles"
19746
+ "package": "./icon.template"
20041
19747
  }
20042
19748
  },
20043
19749
  {
@@ -20045,18 +19751,18 @@
20045
19751
  "name": "*",
20046
19752
  "declaration": {
20047
19753
  "name": "*",
20048
- "package": "./horizontal-scroll"
19754
+ "package": "./icon"
20049
19755
  }
20050
19756
  }
20051
19757
  ]
20052
19758
  },
20053
19759
  {
20054
19760
  "kind": "javascript-module",
20055
- "path": "src/icon/icon.styles.ts",
19761
+ "path": "src/horizontal-scroll/horizontal-scroll.styles.ts",
20056
19762
  "declarations": [
20057
19763
  {
20058
19764
  "kind": "function",
20059
- "name": "foundationIconStyles",
19765
+ "name": "foundationHorizontalScrollStyles",
20060
19766
  "return": {
20061
19767
  "type": {
20062
19768
  "text": "ElementStyles"
@@ -20081,357 +19787,651 @@
20081
19787
  "exports": [
20082
19788
  {
20083
19789
  "kind": "js",
20084
- "name": "foundationIconStyles",
19790
+ "name": "foundationHorizontalScrollStyles",
20085
19791
  "declaration": {
20086
- "name": "foundationIconStyles",
20087
- "module": "src/icon/icon.styles.ts"
19792
+ "name": "foundationHorizontalScrollStyles",
19793
+ "module": "src/horizontal-scroll/horizontal-scroll.styles.ts"
20088
19794
  }
20089
19795
  }
20090
19796
  ]
20091
19797
  },
20092
19798
  {
20093
19799
  "kind": "javascript-module",
20094
- "path": "src/icon/icon.template.ts",
19800
+ "path": "src/horizontal-scroll/horizontal-scroll.template.ts",
20095
19801
  "declarations": [
20096
19802
  {
20097
- "kind": "variable",
20098
- "name": "foundationIconTemplate",
20099
- "type": {
20100
- "text": "ViewTemplate"
19803
+ "kind": "function",
19804
+ "name": "foundationHorizontalScrollTemplate",
19805
+ "return": {
19806
+ "type": {
19807
+ "text": "ViewTemplate<HorizontalScroll>"
19808
+ }
20101
19809
  },
20102
- "default": "html<Icon>`\n <template>\n <i\n ${ref('iElement')}\n class=${(x) => `fa-${x.name} fa-${x.size} fa-${x.variant}`}\n part=${(x) => `icon-${x.name}-${x.size}-${x.variant}`}\n >\n <slot></slot>\n </i>\n </template>\n`"
19810
+ "parameters": [
19811
+ {
19812
+ "name": "context",
19813
+ "type": {
19814
+ "text": "ElementDefinitionContext"
19815
+ }
19816
+ },
19817
+ {
19818
+ "name": "definition",
19819
+ "type": {
19820
+ "text": "FoundationElementDefinition"
19821
+ }
19822
+ }
19823
+ ]
20103
19824
  }
20104
19825
  ],
20105
19826
  "exports": [
20106
19827
  {
20107
19828
  "kind": "js",
20108
- "name": "foundationIconTemplate",
19829
+ "name": "foundationHorizontalScrollTemplate",
20109
19830
  "declaration": {
20110
- "name": "foundationIconTemplate",
20111
- "module": "src/icon/icon.template.ts"
19831
+ "name": "foundationHorizontalScrollTemplate",
19832
+ "module": "src/horizontal-scroll/horizontal-scroll.template.ts"
20112
19833
  }
20113
19834
  }
20114
19835
  ]
20115
19836
  },
20116
19837
  {
20117
19838
  "kind": "javascript-module",
20118
- "path": "src/icon/icon.ts",
19839
+ "path": "src/horizontal-scroll/horizontal-scroll.ts",
20119
19840
  "declarations": [
20120
- {
20121
- "kind": "variable",
20122
- "name": "foundationIconShadowOptions",
20123
- "type": {
20124
- "text": "ShadowRootInit"
20125
- },
20126
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
20127
- },
20128
- {
20129
- "kind": "variable",
20130
- "name": "defaultIconConfig",
20131
- "type": {
20132
- "text": "object"
20133
- },
20134
- "default": "{}"
20135
- },
20136
19841
  {
20137
19842
  "kind": "class",
20138
19843
  "description": "",
20139
- "name": "Icon",
20140
- "members": [
19844
+ "name": "HorizontalScroll",
19845
+ "superclass": {
19846
+ "name": "FASTHorizontalScroll",
19847
+ "package": "@microsoft/fast-components"
19848
+ },
19849
+ "tagName": "%%prefix%%-horizontal-scroll",
19850
+ "customElement": true,
19851
+ "attributes": [
20141
19852
  {
20142
- "kind": "field",
20143
- "name": "iElement",
20144
19853
  "type": {
20145
- "text": "HTMLElement"
19854
+ "text": "number"
19855
+ },
19856
+ "default": "600",
19857
+ "description": "Speed of scroll in pixels per second",
19858
+ "fieldName": "speed",
19859
+ "inheritedFrom": {
19860
+ "name": "HorizontalScroll",
19861
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20146
19862
  }
20147
19863
  },
20148
19864
  {
20149
- "kind": "field",
20150
- "name": "name",
19865
+ "name": "duration",
20151
19866
  "type": {
20152
- "text": "IconName"
19867
+ "text": "string"
19868
+ },
19869
+ "description": "The CSS time value for the scroll transition duration. Overrides the `speed` attribute.",
19870
+ "fieldName": "duration",
19871
+ "inheritedFrom": {
19872
+ "name": "HorizontalScroll",
19873
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20153
19874
  }
20154
19875
  },
20155
19876
  {
20156
- "kind": "method",
20157
- "name": "nameChanged",
20158
- "parameters": [
20159
- {
20160
- "name": "oldValue",
20161
- "type": {
20162
- "text": "string"
20163
- }
20164
- },
20165
- {
20166
- "name": "newValue",
20167
- "type": {
20168
- "text": "string"
20169
- }
20170
- }
20171
- ]
19877
+ "name": "easing",
19878
+ "type": {
19879
+ "text": "ScrollEasing"
19880
+ },
19881
+ "default": "\"ease-in-out\"",
19882
+ "description": "Attribute used for easing, defaults to ease-in-out",
19883
+ "fieldName": "easing",
19884
+ "inheritedFrom": {
19885
+ "name": "HorizontalScroll",
19886
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19887
+ }
20172
19888
  },
20173
19889
  {
20174
- "kind": "field",
20175
- "name": "size",
19890
+ "name": "flippers-hidden-from-at",
20176
19891
  "type": {
20177
- "text": "FaSize"
19892
+ "text": "boolean"
20178
19893
  },
20179
- "default": "'sm'"
19894
+ "default": "false",
19895
+ "description": "Attribute to hide flippers from assistive technology",
19896
+ "fieldName": "flippersHiddenFromAT",
19897
+ "inheritedFrom": {
19898
+ "name": "HorizontalScroll",
19899
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19900
+ }
20180
19901
  },
20181
19902
  {
20182
- "kind": "method",
20183
- "name": "sizeChanged",
20184
- "parameters": [
20185
- {
20186
- "name": "oldValue",
20187
- "type": {
20188
- "text": "string"
20189
- }
20190
- },
20191
- {
20192
- "name": "newValue",
20193
- "type": {
20194
- "text": "string"
20195
- }
20196
- }
20197
- ]
19903
+ "name": "view",
19904
+ "type": {
19905
+ "text": "HorizontalScrollView"
19906
+ },
19907
+ "description": "View: default | mobile",
19908
+ "fieldName": "view",
19909
+ "inheritedFrom": {
19910
+ "name": "HorizontalScroll",
19911
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19912
+ }
19913
+ }
19914
+ ],
19915
+ "members": [
19916
+ {
19917
+ "kind": "field",
19918
+ "name": "scrollContainer",
19919
+ "type": {
19920
+ "text": "HTMLDivElement"
19921
+ },
19922
+ "privacy": "public",
19923
+ "description": "Reference to DOM element that scrolls the content",
19924
+ "inheritedFrom": {
19925
+ "name": "HorizontalScroll",
19926
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19927
+ }
20198
19928
  },
20199
19929
  {
20200
19930
  "kind": "field",
20201
- "name": "variant",
19931
+ "name": "content",
20202
19932
  "type": {
20203
- "text": "IconStyle"
19933
+ "text": "HTMLDivElement"
20204
19934
  },
20205
- "default": "'solid'"
19935
+ "privacy": "public",
19936
+ "description": "Reference to DOM element that holds the slotted content",
19937
+ "inheritedFrom": {
19938
+ "name": "HorizontalScroll",
19939
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19940
+ }
20206
19941
  },
20207
19942
  {
20208
- "kind": "method",
20209
- "name": "variantChanged",
20210
- "parameters": [
20211
- {
20212
- "name": "oldValue",
20213
- "type": {
20214
- "text": "string"
20215
- }
20216
- },
20217
- {
20218
- "name": "newValue",
20219
- "type": {
20220
- "text": "string"
20221
- }
20222
- }
20223
- ]
19943
+ "kind": "field",
19944
+ "name": "previousFlipperContainer",
19945
+ "type": {
19946
+ "text": "HTMLDivElement"
19947
+ },
19948
+ "privacy": "public",
19949
+ "description": "Reference to flipper to scroll to previous content",
19950
+ "inheritedFrom": {
19951
+ "name": "HorizontalScroll",
19952
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19953
+ }
20224
19954
  },
20225
19955
  {
20226
- "kind": "method",
20227
- "name": "loadIcon",
20228
- "privacy": "public"
19956
+ "kind": "field",
19957
+ "name": "nextFlipperContainer",
19958
+ "type": {
19959
+ "text": "HTMLDivElement"
19960
+ },
19961
+ "privacy": "public",
19962
+ "description": "Reference to flipper to scroll to the next content",
19963
+ "inheritedFrom": {
19964
+ "name": "HorizontalScroll",
19965
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
19966
+ }
20229
19967
  },
20230
19968
  {
20231
19969
  "kind": "field",
20232
- "name": "_presentation",
19970
+ "name": "speed",
20233
19971
  "type": {
20234
- "text": "ComponentPresentation | null | undefined"
19972
+ "text": "number"
20235
19973
  },
20236
- "privacy": "private",
20237
- "default": "void 0",
19974
+ "privacy": "public",
19975
+ "default": "600",
19976
+ "description": "Speed of scroll in pixels per second",
20238
19977
  "inheritedFrom": {
20239
- "name": "FoundationElement",
20240
- "module": "src/foundation-element/foundation-element.ts"
19978
+ "name": "HorizontalScroll",
19979
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20241
19980
  }
20242
19981
  },
20243
19982
  {
20244
19983
  "kind": "field",
20245
- "name": "$presentation",
19984
+ "name": "duration",
20246
19985
  "type": {
20247
- "text": "ComponentPresentation | null"
19986
+ "text": "string"
20248
19987
  },
20249
19988
  "privacy": "public",
20250
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
19989
+ "description": "The CSS time value for the scroll transition duration. Overrides the `speed` attribute.",
20251
19990
  "inheritedFrom": {
20252
- "name": "FoundationElement",
20253
- "module": "src/foundation-element/foundation-element.ts"
19991
+ "name": "HorizontalScroll",
19992
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20254
19993
  }
20255
19994
  },
20256
19995
  {
20257
19996
  "kind": "field",
20258
- "name": "template",
19997
+ "name": "easing",
20259
19998
  "type": {
20260
- "text": "ElementViewTemplate | void | null"
19999
+ "text": "ScrollEasing"
20261
20000
  },
20262
20001
  "privacy": "public",
20263
- "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
20002
+ "default": "\"ease-in-out\"",
20003
+ "description": "Attribute used for easing, defaults to ease-in-out",
20264
20004
  "inheritedFrom": {
20265
- "name": "FoundationElement",
20266
- "module": "src/foundation-element/foundation-element.ts"
20005
+ "name": "HorizontalScroll",
20006
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20267
20007
  }
20268
20008
  },
20269
20009
  {
20270
- "kind": "method",
20271
- "name": "templateChanged",
20272
- "privacy": "protected",
20273
- "return": {
20274
- "type": {
20275
- "text": "void"
20276
- }
20010
+ "kind": "field",
20011
+ "name": "flippersHiddenFromAT",
20012
+ "type": {
20013
+ "text": "boolean"
20277
20014
  },
20015
+ "privacy": "public",
20016
+ "default": "false",
20017
+ "description": "Attribute to hide flippers from assistive technology",
20278
20018
  "inheritedFrom": {
20279
- "name": "FoundationElement",
20280
- "module": "src/foundation-element/foundation-element.ts"
20019
+ "name": "HorizontalScroll",
20020
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20281
20021
  }
20282
20022
  },
20283
20023
  {
20284
20024
  "kind": "field",
20285
- "name": "styles",
20025
+ "name": "scrollItems",
20286
20026
  "type": {
20287
- "text": "ElementStyles | void | null"
20027
+ "text": "HTMLElement[]"
20288
20028
  },
20289
20029
  "privacy": "public",
20290
- "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
20030
+ "description": "The default slotted items placed in the scrolling container.",
20291
20031
  "inheritedFrom": {
20292
- "name": "FoundationElement",
20293
- "module": "src/foundation-element/foundation-element.ts"
20032
+ "name": "HorizontalScroll",
20033
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20294
20034
  }
20295
20035
  },
20296
20036
  {
20297
- "kind": "method",
20298
- "name": "stylesChanged",
20299
- "privacy": "protected",
20300
- "return": {
20301
- "type": {
20302
- "text": "void"
20303
- }
20037
+ "kind": "field",
20038
+ "name": "view",
20039
+ "type": {
20040
+ "text": "HorizontalScrollView"
20304
20041
  },
20042
+ "privacy": "public",
20043
+ "description": "View: default | mobile",
20305
20044
  "inheritedFrom": {
20306
- "name": "FoundationElement",
20307
- "module": "src/foundation-element/foundation-element.ts"
20045
+ "name": "HorizontalScroll",
20046
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20308
20047
  }
20309
20048
  },
20310
20049
  {
20311
20050
  "kind": "method",
20312
- "name": "compose",
20051
+ "name": "scrollItemsChanged",
20313
20052
  "privacy": "public",
20314
- "static": true,
20315
- "return": {
20316
- "type": {
20317
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
20318
- }
20319
- },
20320
20053
  "parameters": [
20321
20054
  {
20322
- "name": "this",
20055
+ "name": "previous",
20323
20056
  "type": {
20324
- "text": "K"
20325
- }
20057
+ "text": "HTMLElement[]"
20058
+ },
20059
+ "description": "current scroll items"
20326
20060
  },
20327
20061
  {
20328
- "name": "elementDefinition",
20062
+ "name": "next",
20329
20063
  "type": {
20330
- "text": "T"
20064
+ "text": "HTMLElement[]"
20331
20065
  },
20332
- "description": "The definition of the element to create the registry\nfunction for."
20066
+ "description": "new updated scroll items"
20333
20067
  }
20334
20068
  ],
20335
- "description": "Defines an element registry function with a set of element definition defaults.",
20069
+ "description": "Updates scroll stops and flippers when scroll items change",
20070
+ "inheritedFrom": {
20071
+ "name": "HorizontalScroll",
20072
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20073
+ }
20074
+ },
20075
+ {
20076
+ "kind": "method",
20077
+ "name": "fixScrollMisalign",
20078
+ "privacy": "private",
20079
+ "parameters": [
20080
+ {
20081
+ "name": "stops",
20082
+ "type": {
20083
+ "text": "number[]"
20084
+ }
20085
+ }
20086
+ ],
20087
+ "inheritedFrom": {
20088
+ "name": "HorizontalScroll",
20089
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20090
+ }
20091
+ },
20092
+ {
20093
+ "kind": "method",
20094
+ "name": "scrollInView",
20095
+ "privacy": "public",
20096
+ "return": {
20097
+ "type": {
20098
+ "text": "void"
20099
+ }
20100
+ },
20101
+ "parameters": [
20102
+ {
20103
+ "name": "item",
20104
+ "type": {
20105
+ "text": "HTMLElement | number"
20106
+ },
20107
+ "description": "An item index, a scroll item or a child of one of the scroll items"
20108
+ },
20109
+ {
20110
+ "name": "padding",
20111
+ "default": "0",
20112
+ "type": {
20113
+ "text": "number"
20114
+ },
20115
+ "description": "Padding of the viewport where the active item shouldn't be"
20116
+ },
20117
+ {
20118
+ "name": "rightPadding",
20119
+ "optional": true,
20120
+ "type": {
20121
+ "text": "number"
20122
+ },
20123
+ "description": "Optional right padding. Uses the padding if not defined"
20124
+ }
20125
+ ],
20126
+ "description": "Function that can scroll an item into view.",
20127
+ "inheritedFrom": {
20128
+ "name": "HorizontalScroll",
20129
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20130
+ }
20131
+ },
20132
+ {
20133
+ "kind": "method",
20134
+ "name": "keyupHandler",
20135
+ "privacy": "public",
20136
+ "parameters": [
20137
+ {
20138
+ "name": "e",
20139
+ "type": {
20140
+ "text": "Event & KeyboardEvent"
20141
+ },
20142
+ "description": "Keyboard event"
20143
+ }
20144
+ ],
20145
+ "description": "Lets the user arrow left and right through the horizontal scroll",
20146
+ "inheritedFrom": {
20147
+ "name": "HorizontalScroll",
20148
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20149
+ }
20150
+ },
20151
+ {
20152
+ "kind": "method",
20153
+ "name": "scrollToPrevious",
20154
+ "privacy": "public",
20155
+ "return": {
20156
+ "type": {
20157
+ "text": "void"
20158
+ }
20159
+ },
20160
+ "description": "Scrolls items to the left",
20161
+ "inheritedFrom": {
20162
+ "name": "HorizontalScroll",
20163
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20164
+ }
20165
+ },
20166
+ {
20167
+ "kind": "method",
20168
+ "name": "scrollToNext",
20169
+ "privacy": "public",
20170
+ "return": {
20171
+ "type": {
20172
+ "text": "void"
20173
+ }
20174
+ },
20175
+ "description": "Scrolls items to the right",
20176
+ "inheritedFrom": {
20177
+ "name": "HorizontalScroll",
20178
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20179
+ }
20180
+ },
20181
+ {
20182
+ "kind": "method",
20183
+ "name": "scrollToPosition",
20184
+ "privacy": "public",
20185
+ "return": {
20186
+ "type": {
20187
+ "text": "void"
20188
+ }
20189
+ },
20190
+ "parameters": [
20191
+ {
20192
+ "name": "newPosition",
20193
+ "type": {
20194
+ "text": "number"
20195
+ },
20196
+ "description": "position to scroll to"
20197
+ },
20198
+ {
20199
+ "name": "position",
20200
+ "default": "this.scrollContainer.scrollLeft",
20201
+ "type": {
20202
+ "text": "number"
20203
+ },
20204
+ "description": "starting position"
20205
+ }
20206
+ ],
20207
+ "description": "Handles scrolling with easing",
20208
+ "inheritedFrom": {
20209
+ "name": "HorizontalScroll",
20210
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20211
+ }
20212
+ },
20213
+ {
20214
+ "kind": "method",
20215
+ "name": "resized",
20216
+ "privacy": "public",
20217
+ "return": {
20218
+ "type": {
20219
+ "text": "void"
20220
+ }
20221
+ },
20222
+ "description": "Monitors resize event on the horizontal-scroll element",
20223
+ "inheritedFrom": {
20224
+ "name": "HorizontalScroll",
20225
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20226
+ }
20227
+ },
20228
+ {
20229
+ "kind": "method",
20230
+ "name": "scrolled",
20231
+ "privacy": "public",
20232
+ "return": {
20233
+ "type": {
20234
+ "text": "void"
20235
+ }
20236
+ },
20237
+ "description": "Monitors scrolled event on the content container",
20238
+ "inheritedFrom": {
20239
+ "name": "HorizontalScroll",
20240
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20241
+ }
20242
+ },
20243
+ {
20244
+ "kind": "field",
20245
+ "name": "_presentation",
20246
+ "type": {
20247
+ "text": "ComponentPresentation | null | undefined"
20248
+ },
20249
+ "privacy": "private",
20250
+ "default": "void 0",
20251
+ "inheritedFrom": {
20252
+ "name": "FoundationElement",
20253
+ "module": "src/foundation-element/foundation-element.ts"
20254
+ }
20255
+ },
20256
+ {
20257
+ "kind": "field",
20258
+ "name": "$presentation",
20259
+ "type": {
20260
+ "text": "ComponentPresentation | null"
20261
+ },
20262
+ "privacy": "public",
20263
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
20264
+ "inheritedFrom": {
20265
+ "name": "FoundationElement",
20266
+ "module": "src/foundation-element/foundation-element.ts"
20267
+ }
20268
+ },
20269
+ {
20270
+ "kind": "field",
20271
+ "name": "template",
20272
+ "type": {
20273
+ "text": "ElementViewTemplate | void | null"
20274
+ },
20275
+ "privacy": "public",
20276
+ "description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
20277
+ "inheritedFrom": {
20278
+ "name": "FoundationElement",
20279
+ "module": "src/foundation-element/foundation-element.ts"
20280
+ }
20281
+ },
20282
+ {
20283
+ "kind": "method",
20284
+ "name": "templateChanged",
20285
+ "privacy": "protected",
20286
+ "return": {
20287
+ "type": {
20288
+ "text": "void"
20289
+ }
20290
+ },
20291
+ "inheritedFrom": {
20292
+ "name": "FoundationElement",
20293
+ "module": "src/foundation-element/foundation-element.ts"
20294
+ }
20295
+ },
20296
+ {
20297
+ "kind": "field",
20298
+ "name": "styles",
20299
+ "type": {
20300
+ "text": "ElementStyles | void | null"
20301
+ },
20302
+ "privacy": "public",
20303
+ "description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
20304
+ "inheritedFrom": {
20305
+ "name": "FoundationElement",
20306
+ "module": "src/foundation-element/foundation-element.ts"
20307
+ }
20308
+ },
20309
+ {
20310
+ "kind": "method",
20311
+ "name": "stylesChanged",
20312
+ "privacy": "protected",
20313
+ "return": {
20314
+ "type": {
20315
+ "text": "void"
20316
+ }
20317
+ },
20318
+ "inheritedFrom": {
20319
+ "name": "FoundationElement",
20320
+ "module": "src/foundation-element/foundation-element.ts"
20321
+ }
20322
+ },
20323
+ {
20324
+ "kind": "method",
20325
+ "name": "compose",
20326
+ "privacy": "public",
20327
+ "static": true,
20328
+ "return": {
20329
+ "type": {
20330
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
20331
+ }
20332
+ },
20333
+ "parameters": [
20334
+ {
20335
+ "name": "this",
20336
+ "type": {
20337
+ "text": "K"
20338
+ }
20339
+ },
20340
+ {
20341
+ "name": "elementDefinition",
20342
+ "type": {
20343
+ "text": "T"
20344
+ },
20345
+ "description": "The definition of the element to create the registry\nfunction for."
20346
+ }
20347
+ ],
20348
+ "description": "Defines an element registry function with a set of element definition defaults.",
20336
20349
  "inheritedFrom": {
20337
20350
  "name": "FoundationElement",
20338
20351
  "module": "src/foundation-element/foundation-element.ts"
20339
20352
  }
20340
20353
  }
20341
20354
  ],
20342
- "attributes": [
20343
- {
20344
- "name": "name",
20345
- "type": {
20346
- "text": "IconName"
20347
- },
20348
- "fieldName": "name"
20349
- },
20355
+ "events": [
20350
20356
  {
20351
- "name": "size",
20352
- "type": {
20353
- "text": "FaSize"
20354
- },
20355
- "default": "'sm'",
20356
- "fieldName": "size"
20357
+ "description": "Fires a custom 'scrollstart' event when scrolling",
20358
+ "name": "scrollstart",
20359
+ "inheritedFrom": {
20360
+ "name": "HorizontalScroll",
20361
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20362
+ }
20357
20363
  },
20358
20364
  {
20359
- "name": "variant",
20360
- "type": {
20361
- "text": "IconStyle"
20362
- },
20363
- "default": "'solid'",
20364
- "fieldName": "variant"
20365
+ "description": "Fires a custom 'scrollend' event when scrolling stops",
20366
+ "name": "scrollend",
20367
+ "inheritedFrom": {
20368
+ "name": "HorizontalScroll",
20369
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20370
+ }
20365
20371
  }
20366
- ],
20367
- "superclass": {
20368
- "name": "FoundationElement",
20369
- "package": "@microsoft/fast-foundation"
20372
+ ]
20373
+ },
20374
+ {
20375
+ "kind": "variable",
20376
+ "name": "foundationHorizontalScrollShadowOptions",
20377
+ "type": {
20378
+ "text": "ShadowRootInit"
20370
20379
  },
20371
- "tagName": "%%prefix%%-icon",
20372
- "customElement": true
20380
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
20373
20381
  },
20374
20382
  {
20375
20383
  "kind": "variable",
20376
- "name": "foundationIcon",
20377
- "description": "The Foundation Icon",
20384
+ "name": "defaultHorizontalScrollConfig",
20385
+ "type": {
20386
+ "text": "object"
20387
+ },
20388
+ "default": "{\n nextFlipper: html`\n <foundation-flipper\n @click=\"${(x) => x.scrollToNext()}\"\n aria-hidden=\"${(x) => x.flippersHiddenFromAT}\"\n ></foundation-flipper>\n `,\n previousFlipper: html`\n <foundation-flipper\n @click=\"${(x) => x.scrollToPrevious()}\"\n direction=\"previous\"\n aria-hidden=\"${(x) => x.flippersHiddenFromAT}\"\n ></foundation-flipper>\n `,\n}"
20389
+ },
20390
+ {
20391
+ "kind": "variable",
20392
+ "name": "foundationHorizontalScroll",
20393
+ "description": "The Foundation HorizontalScroll",
20378
20394
  "privacy": "public"
20379
20395
  }
20380
20396
  ],
20381
20397
  "exports": [
20382
20398
  {
20383
20399
  "kind": "js",
20384
- "name": "IconName",
20385
- "declaration": {
20386
- "name": "IconName",
20387
- "module": "src/icon/icon.ts"
20388
- }
20389
- },
20390
- {
20391
- "kind": "js",
20392
- "name": "IconStyle",
20393
- "declaration": {
20394
- "name": "IconStyle",
20395
- "module": "src/icon/icon.ts"
20396
- }
20397
- },
20398
- {
20399
- "kind": "js",
20400
- "name": "foundationIconShadowOptions",
20400
+ "name": "HorizontalScroll",
20401
20401
  "declaration": {
20402
- "name": "foundationIconShadowOptions",
20403
- "module": "src/icon/icon.ts"
20402
+ "name": "HorizontalScroll",
20403
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20404
20404
  }
20405
20405
  },
20406
20406
  {
20407
20407
  "kind": "js",
20408
- "name": "defaultIconConfig",
20408
+ "name": "foundationHorizontalScrollShadowOptions",
20409
20409
  "declaration": {
20410
- "name": "defaultIconConfig",
20411
- "module": "src/icon/icon.ts"
20410
+ "name": "foundationHorizontalScrollShadowOptions",
20411
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20412
20412
  }
20413
20413
  },
20414
20414
  {
20415
20415
  "kind": "js",
20416
- "name": "Icon",
20416
+ "name": "defaultHorizontalScrollConfig",
20417
20417
  "declaration": {
20418
- "name": "Icon",
20419
- "module": "src/icon/icon.ts"
20418
+ "name": "defaultHorizontalScrollConfig",
20419
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20420
20420
  }
20421
20421
  },
20422
20422
  {
20423
20423
  "kind": "js",
20424
- "name": "foundationIcon",
20424
+ "name": "foundationHorizontalScroll",
20425
20425
  "declaration": {
20426
- "name": "foundationIcon",
20427
- "module": "src/icon/icon.ts"
20426
+ "name": "foundationHorizontalScroll",
20427
+ "module": "src/horizontal-scroll/horizontal-scroll.ts"
20428
20428
  }
20429
20429
  }
20430
20430
  ]
20431
20431
  },
20432
20432
  {
20433
20433
  "kind": "javascript-module",
20434
- "path": "src/icon/index.ts",
20434
+ "path": "src/horizontal-scroll/index.ts",
20435
20435
  "declarations": [],
20436
20436
  "exports": [
20437
20437
  {
@@ -20439,7 +20439,7 @@
20439
20439
  "name": "*",
20440
20440
  "declaration": {
20441
20441
  "name": "*",
20442
- "package": "./icon.styles"
20442
+ "package": "./horizontal-scroll.template"
20443
20443
  }
20444
20444
  },
20445
20445
  {
@@ -20447,7 +20447,7 @@
20447
20447
  "name": "*",
20448
20448
  "declaration": {
20449
20449
  "name": "*",
20450
- "package": "./icon.template"
20450
+ "package": "./horizontal-scroll.styles"
20451
20451
  }
20452
20452
  },
20453
20453
  {
@@ -20455,14 +20455,14 @@
20455
20455
  "name": "*",
20456
20456
  "declaration": {
20457
20457
  "name": "*",
20458
- "package": "./icon"
20458
+ "package": "./horizontal-scroll"
20459
20459
  }
20460
20460
  }
20461
20461
  ]
20462
20462
  },
20463
20463
  {
20464
20464
  "kind": "javascript-module",
20465
- "path": "src/listbox/index.ts",
20465
+ "path": "src/listbox-option/index.ts",
20466
20466
  "declarations": [],
20467
20467
  "exports": [
20468
20468
  {
@@ -20470,7 +20470,7 @@
20470
20470
  "name": "*",
20471
20471
  "declaration": {
20472
20472
  "name": "*",
20473
- "package": "./listbox.template"
20473
+ "package": "./listbox-option.template"
20474
20474
  }
20475
20475
  },
20476
20476
  {
@@ -20478,7 +20478,7 @@
20478
20478
  "name": "*",
20479
20479
  "declaration": {
20480
20480
  "name": "*",
20481
- "package": "./listbox.styles"
20481
+ "package": "./listbox-option.styles"
20482
20482
  }
20483
20483
  },
20484
20484
  {
@@ -20486,18 +20486,18 @@
20486
20486
  "name": "*",
20487
20487
  "declaration": {
20488
20488
  "name": "*",
20489
- "package": "./listbox"
20489
+ "package": "./listbox-option"
20490
20490
  }
20491
20491
  }
20492
20492
  ]
20493
20493
  },
20494
20494
  {
20495
20495
  "kind": "javascript-module",
20496
- "path": "src/listbox/listbox.styles.ts",
20496
+ "path": "src/listbox-option/listbox-option.styles.ts",
20497
20497
  "declarations": [
20498
20498
  {
20499
20499
  "kind": "function",
20500
- "name": "foundationListboxStyles",
20500
+ "name": "foundationListboxOptionStyles",
20501
20501
  "return": {
20502
20502
  "type": {
20503
20503
  "text": "ElementStyles"
@@ -20505,214 +20505,410 @@
20505
20505
  },
20506
20506
  "parameters": [
20507
20507
  {
20508
- "name": "context",
20508
+ "name": "context",
20509
+ "type": {
20510
+ "text": "ElementDefinitionContext"
20511
+ }
20512
+ },
20513
+ {
20514
+ "name": "definition",
20515
+ "type": {
20516
+ "text": "FoundationElementDefinition"
20517
+ }
20518
+ }
20519
+ ]
20520
+ }
20521
+ ],
20522
+ "exports": [
20523
+ {
20524
+ "kind": "js",
20525
+ "name": "foundationListboxOptionStyles",
20526
+ "declaration": {
20527
+ "name": "foundationListboxOptionStyles",
20528
+ "module": "src/listbox-option/listbox-option.styles.ts"
20529
+ }
20530
+ }
20531
+ ]
20532
+ },
20533
+ {
20534
+ "kind": "javascript-module",
20535
+ "path": "src/listbox-option/listbox-option.template.ts",
20536
+ "declarations": [
20537
+ {
20538
+ "kind": "function",
20539
+ "name": "foundationListboxOptionTemplate",
20540
+ "return": {
20541
+ "type": {
20542
+ "text": "ViewTemplate<ListboxOption>"
20543
+ }
20544
+ },
20545
+ "parameters": [
20546
+ {
20547
+ "name": "context",
20548
+ "type": {
20549
+ "text": "ElementDefinitionContext"
20550
+ }
20551
+ },
20552
+ {
20553
+ "name": "definition",
20554
+ "type": {
20555
+ "text": "FoundationElementDefinition"
20556
+ }
20557
+ }
20558
+ ]
20559
+ }
20560
+ ],
20561
+ "exports": [
20562
+ {
20563
+ "kind": "js",
20564
+ "name": "foundationListboxOptionTemplate",
20565
+ "declaration": {
20566
+ "name": "foundationListboxOptionTemplate",
20567
+ "module": "src/listbox-option/listbox-option.template.ts"
20568
+ }
20569
+ }
20570
+ ]
20571
+ },
20572
+ {
20573
+ "kind": "javascript-module",
20574
+ "path": "src/listbox-option/listbox-option.ts",
20575
+ "declarations": [
20576
+ {
20577
+ "kind": "class",
20578
+ "description": "",
20579
+ "name": "ListboxOption",
20580
+ "superclass": {
20581
+ "name": "FASTListboxOption",
20582
+ "package": "@microsoft/fast-components"
20583
+ },
20584
+ "tagName": "%%prefix%%-option",
20585
+ "customElement": true,
20586
+ "attributes": [
20587
+ {
20588
+ "type": {
20589
+ "text": "boolean"
20590
+ },
20591
+ "description": "The disabled state of the option.",
20592
+ "fieldName": "disabled",
20593
+ "inheritedFrom": {
20594
+ "name": "ListboxOption",
20595
+ "module": "src/listbox-option/listbox-option.ts"
20596
+ }
20597
+ },
20598
+ {
20599
+ "name": "selected",
20600
+ "type": {
20601
+ "text": "boolean"
20602
+ },
20603
+ "description": "The selected attribute value. This sets the initial selected value.",
20604
+ "fieldName": "selectedAttribute",
20605
+ "inheritedFrom": {
20606
+ "name": "ListboxOption",
20607
+ "module": "src/listbox-option/listbox-option.ts"
20608
+ }
20609
+ },
20610
+ {
20611
+ "name": "value",
20612
+ "type": {
20613
+ "text": "string"
20614
+ },
20615
+ "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
20616
+ "fieldName": "initialValue",
20617
+ "inheritedFrom": {
20618
+ "name": "ListboxOption",
20619
+ "module": "src/listbox-option/listbox-option.ts"
20620
+ }
20621
+ }
20622
+ ],
20623
+ "members": [
20624
+ {
20625
+ "kind": "field",
20626
+ "name": "checked",
20627
+ "type": {
20628
+ "text": "boolean | undefined"
20629
+ },
20630
+ "privacy": "public",
20631
+ "description": "The checked state is used when the parent listbox is in multiple selection mode.\nTo avoid accessibility conflicts, the checked state should not be present in\nsingle selection mode.",
20632
+ "inheritedFrom": {
20633
+ "name": "ListboxOption",
20634
+ "module": "src/listbox-option/listbox-option.ts"
20635
+ }
20636
+ },
20637
+ {
20638
+ "kind": "method",
20639
+ "name": "checkedChanged",
20640
+ "privacy": "public",
20641
+ "return": {
20642
+ "type": {
20643
+ "text": "void"
20644
+ }
20645
+ },
20646
+ "parameters": [
20647
+ {
20648
+ "name": "prev",
20649
+ "type": {
20650
+ "text": "boolean | unknown"
20651
+ },
20652
+ "description": "the previous checked value"
20653
+ },
20654
+ {
20655
+ "name": "next",
20656
+ "optional": true,
20657
+ "type": {
20658
+ "text": "boolean"
20659
+ },
20660
+ "description": "the current checked value"
20661
+ }
20662
+ ],
20663
+ "description": "Updates the ariaChecked property when the checked property changes.",
20664
+ "inheritedFrom": {
20665
+ "name": "ListboxOption",
20666
+ "module": "src/listbox-option/listbox-option.ts"
20667
+ }
20668
+ },
20669
+ {
20670
+ "kind": "field",
20671
+ "name": "content",
20509
20672
  "type": {
20510
- "text": "ElementDefinitionContext"
20673
+ "text": "Node[]"
20674
+ },
20675
+ "privacy": "public",
20676
+ "description": "The default slotted content.",
20677
+ "inheritedFrom": {
20678
+ "name": "ListboxOption",
20679
+ "module": "src/listbox-option/listbox-option.ts"
20511
20680
  }
20512
20681
  },
20513
20682
  {
20514
- "name": "definition",
20683
+ "kind": "field",
20684
+ "name": "defaultSelected",
20515
20685
  "type": {
20516
- "text": "FoundationElementDefinition"
20686
+ "text": "boolean"
20687
+ },
20688
+ "privacy": "public",
20689
+ "default": "false",
20690
+ "description": "The defaultSelected state of the option.",
20691
+ "inheritedFrom": {
20692
+ "name": "ListboxOption",
20693
+ "module": "src/listbox-option/listbox-option.ts"
20517
20694
  }
20518
- }
20519
- ]
20520
- }
20521
- ],
20522
- "exports": [
20523
- {
20524
- "kind": "js",
20525
- "name": "foundationListboxStyles",
20526
- "declaration": {
20527
- "name": "foundationListboxStyles",
20528
- "module": "src/listbox/listbox.styles.ts"
20529
- }
20530
- }
20531
- ]
20532
- },
20533
- {
20534
- "kind": "javascript-module",
20535
- "path": "src/listbox/listbox.template.ts",
20536
- "declarations": [
20537
- {
20538
- "kind": "function",
20539
- "name": "foundationListboxTemplate",
20540
- "return": {
20541
- "type": {
20542
- "text": "ViewTemplate<Listbox>"
20543
- }
20544
- },
20545
- "parameters": [
20695
+ },
20546
20696
  {
20547
- "name": "context",
20697
+ "kind": "method",
20698
+ "name": "defaultSelectedChanged",
20699
+ "privacy": "protected",
20700
+ "return": {
20701
+ "type": {
20702
+ "text": "void"
20703
+ }
20704
+ },
20705
+ "inheritedFrom": {
20706
+ "name": "ListboxOption",
20707
+ "module": "src/listbox-option/listbox-option.ts"
20708
+ }
20709
+ },
20710
+ {
20711
+ "kind": "field",
20712
+ "name": "disabled",
20548
20713
  "type": {
20549
- "text": "ElementDefinitionContext"
20714
+ "text": "boolean"
20715
+ },
20716
+ "privacy": "public",
20717
+ "description": "The disabled state of the option.",
20718
+ "inheritedFrom": {
20719
+ "name": "ListboxOption",
20720
+ "module": "src/listbox-option/listbox-option.ts"
20550
20721
  }
20551
20722
  },
20552
20723
  {
20553
- "name": "definition",
20724
+ "kind": "method",
20725
+ "name": "disabledChanged",
20726
+ "privacy": "protected",
20727
+ "return": {
20728
+ "type": {
20729
+ "text": "void"
20730
+ }
20731
+ },
20732
+ "parameters": [
20733
+ {
20734
+ "name": "prev",
20735
+ "type": {
20736
+ "text": "boolean"
20737
+ }
20738
+ },
20739
+ {
20740
+ "name": "next",
20741
+ "type": {
20742
+ "text": "boolean"
20743
+ }
20744
+ }
20745
+ ],
20746
+ "inheritedFrom": {
20747
+ "name": "ListboxOption",
20748
+ "module": "src/listbox-option/listbox-option.ts"
20749
+ }
20750
+ },
20751
+ {
20752
+ "kind": "field",
20753
+ "name": "selectedAttribute",
20554
20754
  "type": {
20555
- "text": "FoundationElementDefinition"
20755
+ "text": "boolean"
20756
+ },
20757
+ "privacy": "public",
20758
+ "description": "The selected attribute value. This sets the initial selected value.",
20759
+ "inheritedFrom": {
20760
+ "name": "ListboxOption",
20761
+ "module": "src/listbox-option/listbox-option.ts"
20556
20762
  }
20557
- }
20558
- ]
20559
- }
20560
- ],
20561
- "exports": [
20562
- {
20563
- "kind": "js",
20564
- "name": "foundationListboxTemplate",
20565
- "declaration": {
20566
- "name": "foundationListboxTemplate",
20567
- "module": "src/listbox/listbox.template.ts"
20568
- }
20569
- }
20570
- ]
20571
- },
20572
- {
20573
- "kind": "javascript-module",
20574
- "path": "src/listbox/listbox.ts",
20575
- "declarations": [
20576
- {
20577
- "kind": "class",
20578
- "description": "",
20579
- "name": "Listbox",
20580
- "superclass": {
20581
- "name": "FASTListbox",
20582
- "package": "@microsoft/fast-components"
20583
- },
20584
- "tagName": "%%prefix%%-listbox",
20585
- "customElement": true,
20586
- "attributes": [
20763
+ },
20764
+ {
20765
+ "kind": "method",
20766
+ "name": "selectedAttributeChanged",
20767
+ "privacy": "protected",
20768
+ "return": {
20769
+ "type": {
20770
+ "text": "void"
20771
+ }
20772
+ },
20773
+ "inheritedFrom": {
20774
+ "name": "ListboxOption",
20775
+ "module": "src/listbox-option/listbox-option.ts"
20776
+ }
20777
+ },
20587
20778
  {
20779
+ "kind": "field",
20780
+ "name": "selected",
20588
20781
  "type": {
20589
20782
  "text": "boolean"
20590
20783
  },
20591
- "description": "The disabled state of the listbox.",
20592
- "fieldName": "disabled",
20784
+ "privacy": "public",
20785
+ "description": "The checked state of the control.",
20593
20786
  "inheritedFrom": {
20594
- "name": "Listbox",
20595
- "module": "src/listbox/listbox.ts"
20787
+ "name": "ListboxOption",
20788
+ "module": "src/listbox-option/listbox-option.ts"
20596
20789
  }
20597
- }
20598
- ],
20599
- "members": [
20790
+ },
20791
+ {
20792
+ "kind": "method",
20793
+ "name": "selectedChanged",
20794
+ "privacy": "protected",
20795
+ "return": {
20796
+ "type": {
20797
+ "text": "void"
20798
+ }
20799
+ },
20800
+ "inheritedFrom": {
20801
+ "name": "ListboxOption",
20802
+ "module": "src/listbox-option/listbox-option.ts"
20803
+ }
20804
+ },
20600
20805
  {
20601
20806
  "kind": "field",
20602
- "name": "length",
20807
+ "name": "dirtyValue",
20603
20808
  "type": {
20604
- "text": "number"
20809
+ "text": "boolean"
20605
20810
  },
20606
20811
  "privacy": "public",
20607
- "description": "The number of options.",
20812
+ "default": "false",
20813
+ "description": "Track whether the value has been changed from the initial value",
20608
20814
  "inheritedFrom": {
20609
- "name": "Listbox",
20610
- "module": "src/listbox/listbox.ts"
20815
+ "name": "ListboxOption",
20816
+ "module": "src/listbox-option/listbox-option.ts"
20611
20817
  }
20612
20818
  },
20613
20819
  {
20614
20820
  "kind": "field",
20615
- "name": "options",
20821
+ "name": "initialValue",
20616
20822
  "type": {
20617
- "text": "ListboxOption[]"
20823
+ "text": "string"
20618
20824
  },
20825
+ "privacy": "protected",
20826
+ "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
20827
+ "inheritedFrom": {
20828
+ "name": "ListboxOption",
20829
+ "module": "src/listbox-option/listbox-option.ts"
20830
+ }
20831
+ },
20832
+ {
20833
+ "kind": "method",
20834
+ "name": "initialValueChanged",
20619
20835
  "privacy": "public",
20620
- "description": "The list of options.",
20836
+ "return": {
20837
+ "type": {
20838
+ "text": "void"
20839
+ }
20840
+ },
20841
+ "parameters": [
20842
+ {
20843
+ "name": "previous",
20844
+ "type": {
20845
+ "text": "string"
20846
+ }
20847
+ },
20848
+ {
20849
+ "name": "next",
20850
+ "type": {
20851
+ "text": "string"
20852
+ }
20853
+ }
20854
+ ],
20621
20855
  "inheritedFrom": {
20622
- "name": "Listbox",
20623
- "module": "src/listbox/listbox.ts"
20856
+ "name": "ListboxOption",
20857
+ "module": "src/listbox-option/listbox-option.ts"
20624
20858
  }
20625
20859
  },
20626
20860
  {
20627
20861
  "kind": "field",
20628
- "name": "typeAheadExpired",
20629
- "privacy": "protected",
20862
+ "name": "label",
20863
+ "privacy": "public",
20630
20864
  "inheritedFrom": {
20631
- "name": "Listbox",
20632
- "module": "src/listbox/listbox.ts"
20865
+ "name": "ListboxOption",
20866
+ "module": "src/listbox-option/listbox-option.ts"
20633
20867
  }
20634
20868
  },
20635
20869
  {
20636
20870
  "kind": "field",
20637
- "name": "disabled",
20871
+ "name": "text",
20638
20872
  "type": {
20639
- "text": "boolean"
20873
+ "text": "string"
20640
20874
  },
20641
20875
  "privacy": "public",
20642
- "description": "The disabled state of the listbox.",
20643
20876
  "inheritedFrom": {
20644
- "name": "Listbox",
20645
- "module": "src/listbox/listbox.ts"
20877
+ "name": "ListboxOption",
20878
+ "module": "src/listbox-option/listbox-option.ts"
20646
20879
  }
20647
20880
  },
20648
20881
  {
20649
20882
  "kind": "field",
20650
- "name": "selectedIndex",
20883
+ "name": "value",
20884
+ "privacy": "public",
20651
20885
  "type": {
20652
- "text": "number"
20886
+ "text": "string"
20653
20887
  },
20654
- "privacy": "public",
20655
- "default": "-1",
20656
- "description": "The index of the selected option.",
20657
20888
  "inheritedFrom": {
20658
- "name": "Listbox",
20659
- "module": "src/listbox/listbox.ts"
20889
+ "name": "ListboxOption",
20890
+ "module": "src/listbox-option/listbox-option.ts"
20660
20891
  }
20661
20892
  },
20662
20893
  {
20663
20894
  "kind": "field",
20664
- "name": "selectedOptions",
20895
+ "name": "form",
20665
20896
  "type": {
20666
- "text": "ListboxOption[]"
20897
+ "text": "HTMLFormElement | null"
20667
20898
  },
20668
20899
  "privacy": "public",
20669
- "default": "[]",
20670
- "description": "A collection of the selected options.",
20671
20900
  "inheritedFrom": {
20672
- "name": "Listbox",
20673
- "module": "src/listbox/listbox.ts"
20901
+ "name": "ListboxOption",
20902
+ "module": "src/listbox-option/listbox-option.ts"
20674
20903
  }
20675
20904
  },
20676
20905
  {
20677
20906
  "kind": "field",
20678
- "name": "slottedOptionFilter",
20679
- "privacy": "public",
20680
- "static": true,
20681
- "description": "A static filter to include only selectable options.",
20682
- "parameters": [
20683
- {
20684
- "description": "element to filter",
20685
- "name": "n"
20686
- }
20687
- ],
20688
- "inheritedFrom": {
20689
- "name": "Listbox",
20690
- "module": "src/listbox/listbox.ts"
20691
- }
20692
- },
20693
- {
20694
- "kind": "method",
20695
- "name": "selectFirstOption",
20696
- "privacy": "public",
20697
- "return": {
20698
- "type": {
20699
- "text": "void"
20700
- }
20701
- },
20702
- "description": "Moves focus to the first selectable option.",
20703
- "inheritedFrom": {
20704
- "name": "Listbox",
20705
- "module": "src/listbox/listbox.ts"
20706
- }
20707
- },
20708
- {
20709
- "kind": "method",
20710
- "name": "setSelectedOptions",
20711
- "privacy": "public",
20712
- "description": "Sets an option as selected and gives it focus.",
20907
+ "name": "proxy",
20908
+ "default": "new Option(\n `${this.textContent}`,\n this.initialValue,\n this.defaultSelected,\n this.selected\n )",
20713
20909
  "inheritedFrom": {
20714
- "name": "Listbox",
20715
- "module": "src/listbox/listbox.ts"
20910
+ "name": "ListboxOption",
20911
+ "module": "src/listbox-option/listbox-option.ts"
20716
20912
  }
20717
20913
  },
20718
20914
  {
@@ -20830,7 +21026,7 @@
20830
21026
  },
20831
21027
  {
20832
21028
  "kind": "variable",
20833
- "name": "foundationListboxShadowOptions",
21029
+ "name": "foundationListboxOptionShadowOptions",
20834
21030
  "type": {
20835
21031
  "text": "ShadowRootInit"
20836
21032
  },
@@ -20838,7 +21034,7 @@
20838
21034
  },
20839
21035
  {
20840
21036
  "kind": "variable",
20841
- "name": "defaultListboxConfig",
21037
+ "name": "defaultListboxOptionConfig",
20842
21038
  "type": {
20843
21039
  "text": "object"
20844
21040
  },
@@ -20846,47 +21042,47 @@
20846
21042
  },
20847
21043
  {
20848
21044
  "kind": "variable",
20849
- "name": "foundationListbox"
21045
+ "name": "foundationListboxOption"
20850
21046
  }
20851
21047
  ],
20852
21048
  "exports": [
20853
21049
  {
20854
21050
  "kind": "js",
20855
- "name": "Listbox",
21051
+ "name": "ListboxOption",
20856
21052
  "declaration": {
20857
- "name": "Listbox",
20858
- "module": "src/listbox/listbox.ts"
21053
+ "name": "ListboxOption",
21054
+ "module": "src/listbox-option/listbox-option.ts"
20859
21055
  }
20860
21056
  },
20861
21057
  {
20862
21058
  "kind": "js",
20863
- "name": "foundationListboxShadowOptions",
21059
+ "name": "foundationListboxOptionShadowOptions",
20864
21060
  "declaration": {
20865
- "name": "foundationListboxShadowOptions",
20866
- "module": "src/listbox/listbox.ts"
21061
+ "name": "foundationListboxOptionShadowOptions",
21062
+ "module": "src/listbox-option/listbox-option.ts"
20867
21063
  }
20868
21064
  },
20869
21065
  {
20870
21066
  "kind": "js",
20871
- "name": "defaultListboxConfig",
21067
+ "name": "defaultListboxOptionConfig",
20872
21068
  "declaration": {
20873
- "name": "defaultListboxConfig",
20874
- "module": "src/listbox/listbox.ts"
21069
+ "name": "defaultListboxOptionConfig",
21070
+ "module": "src/listbox-option/listbox-option.ts"
20875
21071
  }
20876
21072
  },
20877
21073
  {
20878
21074
  "kind": "js",
20879
- "name": "foundationListbox",
21075
+ "name": "foundationListboxOption",
20880
21076
  "declaration": {
20881
- "name": "foundationListbox",
20882
- "module": "src/listbox/listbox.ts"
21077
+ "name": "foundationListboxOption",
21078
+ "module": "src/listbox-option/listbox-option.ts"
20883
21079
  }
20884
21080
  }
20885
21081
  ]
20886
21082
  },
20887
21083
  {
20888
21084
  "kind": "javascript-module",
20889
- "path": "src/listbox-option/index.ts",
21085
+ "path": "src/listbox/index.ts",
20890
21086
  "declarations": [],
20891
21087
  "exports": [
20892
21088
  {
@@ -20894,7 +21090,7 @@
20894
21090
  "name": "*",
20895
21091
  "declaration": {
20896
21092
  "name": "*",
20897
- "package": "./listbox-option.template"
21093
+ "package": "./listbox.template"
20898
21094
  }
20899
21095
  },
20900
21096
  {
@@ -20902,7 +21098,7 @@
20902
21098
  "name": "*",
20903
21099
  "declaration": {
20904
21100
  "name": "*",
20905
- "package": "./listbox-option.styles"
21101
+ "package": "./listbox.styles"
20906
21102
  }
20907
21103
  },
20908
21104
  {
@@ -20910,18 +21106,18 @@
20910
21106
  "name": "*",
20911
21107
  "declaration": {
20912
21108
  "name": "*",
20913
- "package": "./listbox-option"
21109
+ "package": "./listbox"
20914
21110
  }
20915
21111
  }
20916
21112
  ]
20917
21113
  },
20918
21114
  {
20919
21115
  "kind": "javascript-module",
20920
- "path": "src/listbox-option/listbox-option.styles.ts",
21116
+ "path": "src/listbox/listbox.styles.ts",
20921
21117
  "declarations": [
20922
21118
  {
20923
21119
  "kind": "function",
20924
- "name": "foundationListboxOptionStyles",
21120
+ "name": "foundationListboxStyles",
20925
21121
  "return": {
20926
21122
  "type": {
20927
21123
  "text": "ElementStyles"
@@ -20946,24 +21142,24 @@
20946
21142
  "exports": [
20947
21143
  {
20948
21144
  "kind": "js",
20949
- "name": "foundationListboxOptionStyles",
21145
+ "name": "foundationListboxStyles",
20950
21146
  "declaration": {
20951
- "name": "foundationListboxOptionStyles",
20952
- "module": "src/listbox-option/listbox-option.styles.ts"
21147
+ "name": "foundationListboxStyles",
21148
+ "module": "src/listbox/listbox.styles.ts"
20953
21149
  }
20954
21150
  }
20955
21151
  ]
20956
21152
  },
20957
21153
  {
20958
21154
  "kind": "javascript-module",
20959
- "path": "src/listbox-option/listbox-option.template.ts",
21155
+ "path": "src/listbox/listbox.template.ts",
20960
21156
  "declarations": [
20961
21157
  {
20962
21158
  "kind": "function",
20963
- "name": "foundationListboxOptionTemplate",
21159
+ "name": "foundationListboxTemplate",
20964
21160
  "return": {
20965
21161
  "type": {
20966
- "text": "ViewTemplate<ListboxOption>"
21162
+ "text": "ViewTemplate<Listbox>"
20967
21163
  }
20968
21164
  },
20969
21165
  "parameters": [
@@ -20985,354 +21181,158 @@
20985
21181
  "exports": [
20986
21182
  {
20987
21183
  "kind": "js",
20988
- "name": "foundationListboxOptionTemplate",
21184
+ "name": "foundationListboxTemplate",
20989
21185
  "declaration": {
20990
- "name": "foundationListboxOptionTemplate",
20991
- "module": "src/listbox-option/listbox-option.template.ts"
21186
+ "name": "foundationListboxTemplate",
21187
+ "module": "src/listbox/listbox.template.ts"
20992
21188
  }
20993
21189
  }
20994
21190
  ]
20995
21191
  },
20996
21192
  {
20997
21193
  "kind": "javascript-module",
20998
- "path": "src/listbox-option/listbox-option.ts",
21194
+ "path": "src/listbox/listbox.ts",
20999
21195
  "declarations": [
21000
21196
  {
21001
21197
  "kind": "class",
21002
21198
  "description": "",
21003
- "name": "ListboxOption",
21199
+ "name": "Listbox",
21004
21200
  "superclass": {
21005
- "name": "FASTListboxOption",
21006
- "package": "@microsoft/fast-components"
21007
- },
21008
- "tagName": "%%prefix%%-option",
21009
- "customElement": true,
21010
- "attributes": [
21011
- {
21012
- "type": {
21013
- "text": "boolean"
21014
- },
21015
- "description": "The disabled state of the option.",
21016
- "fieldName": "disabled",
21017
- "inheritedFrom": {
21018
- "name": "ListboxOption",
21019
- "module": "src/listbox-option/listbox-option.ts"
21020
- }
21021
- },
21022
- {
21023
- "name": "selected",
21024
- "type": {
21025
- "text": "boolean"
21026
- },
21027
- "description": "The selected attribute value. This sets the initial selected value.",
21028
- "fieldName": "selectedAttribute",
21029
- "inheritedFrom": {
21030
- "name": "ListboxOption",
21031
- "module": "src/listbox-option/listbox-option.ts"
21032
- }
21033
- },
21034
- {
21035
- "name": "value",
21036
- "type": {
21037
- "text": "string"
21038
- },
21039
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
21040
- "fieldName": "initialValue",
21041
- "inheritedFrom": {
21042
- "name": "ListboxOption",
21043
- "module": "src/listbox-option/listbox-option.ts"
21044
- }
21045
- }
21046
- ],
21047
- "members": [
21048
- {
21049
- "kind": "field",
21050
- "name": "checked",
21051
- "type": {
21052
- "text": "boolean | undefined"
21053
- },
21054
- "privacy": "public",
21055
- "description": "The checked state is used when the parent listbox is in multiple selection mode.\nTo avoid accessibility conflicts, the checked state should not be present in\nsingle selection mode.",
21056
- "inheritedFrom": {
21057
- "name": "ListboxOption",
21058
- "module": "src/listbox-option/listbox-option.ts"
21059
- }
21060
- },
21061
- {
21062
- "kind": "method",
21063
- "name": "checkedChanged",
21064
- "privacy": "public",
21065
- "return": {
21066
- "type": {
21067
- "text": "void"
21068
- }
21069
- },
21070
- "parameters": [
21071
- {
21072
- "name": "prev",
21073
- "type": {
21074
- "text": "boolean | unknown"
21075
- },
21076
- "description": "the previous checked value"
21077
- },
21078
- {
21079
- "name": "next",
21080
- "optional": true,
21081
- "type": {
21082
- "text": "boolean"
21083
- },
21084
- "description": "the current checked value"
21085
- }
21086
- ],
21087
- "description": "Updates the ariaChecked property when the checked property changes.",
21088
- "inheritedFrom": {
21089
- "name": "ListboxOption",
21090
- "module": "src/listbox-option/listbox-option.ts"
21091
- }
21092
- },
21093
- {
21094
- "kind": "field",
21095
- "name": "content",
21096
- "type": {
21097
- "text": "Node[]"
21098
- },
21099
- "privacy": "public",
21100
- "description": "The default slotted content.",
21101
- "inheritedFrom": {
21102
- "name": "ListboxOption",
21103
- "module": "src/listbox-option/listbox-option.ts"
21104
- }
21105
- },
21201
+ "name": "FASTListbox",
21202
+ "package": "@microsoft/fast-components"
21203
+ },
21204
+ "tagName": "%%prefix%%-listbox",
21205
+ "customElement": true,
21206
+ "attributes": [
21106
21207
  {
21107
- "kind": "field",
21108
- "name": "defaultSelected",
21109
21208
  "type": {
21110
21209
  "text": "boolean"
21111
21210
  },
21112
- "privacy": "public",
21113
- "default": "false",
21114
- "description": "The defaultSelected state of the option.",
21115
- "inheritedFrom": {
21116
- "name": "ListboxOption",
21117
- "module": "src/listbox-option/listbox-option.ts"
21118
- }
21119
- },
21120
- {
21121
- "kind": "method",
21122
- "name": "defaultSelectedChanged",
21123
- "privacy": "protected",
21124
- "return": {
21125
- "type": {
21126
- "text": "void"
21127
- }
21128
- },
21211
+ "description": "The disabled state of the listbox.",
21212
+ "fieldName": "disabled",
21129
21213
  "inheritedFrom": {
21130
- "name": "ListboxOption",
21131
- "module": "src/listbox-option/listbox-option.ts"
21214
+ "name": "Listbox",
21215
+ "module": "src/listbox/listbox.ts"
21132
21216
  }
21133
- },
21217
+ }
21218
+ ],
21219
+ "members": [
21134
21220
  {
21135
21221
  "kind": "field",
21136
- "name": "disabled",
21222
+ "name": "length",
21137
21223
  "type": {
21138
- "text": "boolean"
21224
+ "text": "number"
21139
21225
  },
21140
21226
  "privacy": "public",
21141
- "description": "The disabled state of the option.",
21142
- "inheritedFrom": {
21143
- "name": "ListboxOption",
21144
- "module": "src/listbox-option/listbox-option.ts"
21145
- }
21146
- },
21147
- {
21148
- "kind": "method",
21149
- "name": "disabledChanged",
21150
- "privacy": "protected",
21151
- "return": {
21152
- "type": {
21153
- "text": "void"
21154
- }
21155
- },
21156
- "parameters": [
21157
- {
21158
- "name": "prev",
21159
- "type": {
21160
- "text": "boolean"
21161
- }
21162
- },
21163
- {
21164
- "name": "next",
21165
- "type": {
21166
- "text": "boolean"
21167
- }
21168
- }
21169
- ],
21227
+ "description": "The number of options.",
21170
21228
  "inheritedFrom": {
21171
- "name": "ListboxOption",
21172
- "module": "src/listbox-option/listbox-option.ts"
21229
+ "name": "Listbox",
21230
+ "module": "src/listbox/listbox.ts"
21173
21231
  }
21174
21232
  },
21175
21233
  {
21176
21234
  "kind": "field",
21177
- "name": "selectedAttribute",
21235
+ "name": "options",
21178
21236
  "type": {
21179
- "text": "boolean"
21237
+ "text": "ListboxOption[]"
21180
21238
  },
21181
21239
  "privacy": "public",
21182
- "description": "The selected attribute value. This sets the initial selected value.",
21240
+ "description": "The list of options.",
21183
21241
  "inheritedFrom": {
21184
- "name": "ListboxOption",
21185
- "module": "src/listbox-option/listbox-option.ts"
21242
+ "name": "Listbox",
21243
+ "module": "src/listbox/listbox.ts"
21186
21244
  }
21187
21245
  },
21188
21246
  {
21189
- "kind": "method",
21190
- "name": "selectedAttributeChanged",
21247
+ "kind": "field",
21248
+ "name": "typeAheadExpired",
21191
21249
  "privacy": "protected",
21192
- "return": {
21193
- "type": {
21194
- "text": "void"
21195
- }
21196
- },
21197
21250
  "inheritedFrom": {
21198
- "name": "ListboxOption",
21199
- "module": "src/listbox-option/listbox-option.ts"
21251
+ "name": "Listbox",
21252
+ "module": "src/listbox/listbox.ts"
21200
21253
  }
21201
21254
  },
21202
21255
  {
21203
21256
  "kind": "field",
21204
- "name": "selected",
21257
+ "name": "disabled",
21205
21258
  "type": {
21206
21259
  "text": "boolean"
21207
21260
  },
21208
21261
  "privacy": "public",
21209
- "description": "The checked state of the control.",
21210
- "inheritedFrom": {
21211
- "name": "ListboxOption",
21212
- "module": "src/listbox-option/listbox-option.ts"
21213
- }
21214
- },
21215
- {
21216
- "kind": "method",
21217
- "name": "selectedChanged",
21218
- "privacy": "protected",
21219
- "return": {
21220
- "type": {
21221
- "text": "void"
21222
- }
21223
- },
21262
+ "description": "The disabled state of the listbox.",
21224
21263
  "inheritedFrom": {
21225
- "name": "ListboxOption",
21226
- "module": "src/listbox-option/listbox-option.ts"
21264
+ "name": "Listbox",
21265
+ "module": "src/listbox/listbox.ts"
21227
21266
  }
21228
21267
  },
21229
21268
  {
21230
21269
  "kind": "field",
21231
- "name": "dirtyValue",
21270
+ "name": "selectedIndex",
21232
21271
  "type": {
21233
- "text": "boolean"
21272
+ "text": "number"
21234
21273
  },
21235
21274
  "privacy": "public",
21236
- "default": "false",
21237
- "description": "Track whether the value has been changed from the initial value",
21275
+ "default": "-1",
21276
+ "description": "The index of the selected option.",
21238
21277
  "inheritedFrom": {
21239
- "name": "ListboxOption",
21240
- "module": "src/listbox-option/listbox-option.ts"
21278
+ "name": "Listbox",
21279
+ "module": "src/listbox/listbox.ts"
21241
21280
  }
21242
21281
  },
21243
21282
  {
21244
21283
  "kind": "field",
21245
- "name": "initialValue",
21284
+ "name": "selectedOptions",
21246
21285
  "type": {
21247
- "text": "string"
21286
+ "text": "ListboxOption[]"
21248
21287
  },
21249
- "privacy": "protected",
21250
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
21288
+ "privacy": "public",
21289
+ "default": "[]",
21290
+ "description": "A collection of the selected options.",
21251
21291
  "inheritedFrom": {
21252
- "name": "ListboxOption",
21253
- "module": "src/listbox-option/listbox-option.ts"
21292
+ "name": "Listbox",
21293
+ "module": "src/listbox/listbox.ts"
21254
21294
  }
21255
21295
  },
21256
21296
  {
21257
- "kind": "method",
21258
- "name": "initialValueChanged",
21297
+ "kind": "field",
21298
+ "name": "slottedOptionFilter",
21259
21299
  "privacy": "public",
21260
- "return": {
21261
- "type": {
21262
- "text": "void"
21263
- }
21264
- },
21300
+ "static": true,
21301
+ "description": "A static filter to include only selectable options.",
21265
21302
  "parameters": [
21266
21303
  {
21267
- "name": "previous",
21268
- "type": {
21269
- "text": "string"
21270
- }
21271
- },
21272
- {
21273
- "name": "next",
21274
- "type": {
21275
- "text": "string"
21276
- }
21304
+ "description": "element to filter",
21305
+ "name": "n"
21277
21306
  }
21278
21307
  ],
21279
21308
  "inheritedFrom": {
21280
- "name": "ListboxOption",
21281
- "module": "src/listbox-option/listbox-option.ts"
21282
- }
21283
- },
21284
- {
21285
- "kind": "field",
21286
- "name": "label",
21287
- "privacy": "public",
21288
- "inheritedFrom": {
21289
- "name": "ListboxOption",
21290
- "module": "src/listbox-option/listbox-option.ts"
21291
- }
21292
- },
21293
- {
21294
- "kind": "field",
21295
- "name": "text",
21296
- "type": {
21297
- "text": "string"
21298
- },
21299
- "privacy": "public",
21300
- "inheritedFrom": {
21301
- "name": "ListboxOption",
21302
- "module": "src/listbox-option/listbox-option.ts"
21309
+ "name": "Listbox",
21310
+ "module": "src/listbox/listbox.ts"
21303
21311
  }
21304
21312
  },
21305
21313
  {
21306
- "kind": "field",
21307
- "name": "value",
21314
+ "kind": "method",
21315
+ "name": "selectFirstOption",
21308
21316
  "privacy": "public",
21309
- "type": {
21310
- "text": "string"
21317
+ "return": {
21318
+ "type": {
21319
+ "text": "void"
21320
+ }
21311
21321
  },
21322
+ "description": "Moves focus to the first selectable option.",
21312
21323
  "inheritedFrom": {
21313
- "name": "ListboxOption",
21314
- "module": "src/listbox-option/listbox-option.ts"
21324
+ "name": "Listbox",
21325
+ "module": "src/listbox/listbox.ts"
21315
21326
  }
21316
21327
  },
21317
21328
  {
21318
- "kind": "field",
21319
- "name": "form",
21320
- "type": {
21321
- "text": "HTMLFormElement | null"
21322
- },
21329
+ "kind": "method",
21330
+ "name": "setSelectedOptions",
21323
21331
  "privacy": "public",
21332
+ "description": "Sets an option as selected and gives it focus.",
21324
21333
  "inheritedFrom": {
21325
- "name": "ListboxOption",
21326
- "module": "src/listbox-option/listbox-option.ts"
21327
- }
21328
- },
21329
- {
21330
- "kind": "field",
21331
- "name": "proxy",
21332
- "default": "new Option(\n `${this.textContent}`,\n this.initialValue,\n this.defaultSelected,\n this.selected\n )",
21333
- "inheritedFrom": {
21334
- "name": "ListboxOption",
21335
- "module": "src/listbox-option/listbox-option.ts"
21334
+ "name": "Listbox",
21335
+ "module": "src/listbox/listbox.ts"
21336
21336
  }
21337
21337
  },
21338
21338
  {
@@ -21450,7 +21450,7 @@
21450
21450
  },
21451
21451
  {
21452
21452
  "kind": "variable",
21453
- "name": "foundationListboxOptionShadowOptions",
21453
+ "name": "foundationListboxShadowOptions",
21454
21454
  "type": {
21455
21455
  "text": "ShadowRootInit"
21456
21456
  },
@@ -21458,7 +21458,7 @@
21458
21458
  },
21459
21459
  {
21460
21460
  "kind": "variable",
21461
- "name": "defaultListboxOptionConfig",
21461
+ "name": "defaultListboxConfig",
21462
21462
  "type": {
21463
21463
  "text": "object"
21464
21464
  },
@@ -21466,40 +21466,40 @@
21466
21466
  },
21467
21467
  {
21468
21468
  "kind": "variable",
21469
- "name": "foundationListboxOption"
21469
+ "name": "foundationListbox"
21470
21470
  }
21471
21471
  ],
21472
21472
  "exports": [
21473
21473
  {
21474
21474
  "kind": "js",
21475
- "name": "ListboxOption",
21475
+ "name": "Listbox",
21476
21476
  "declaration": {
21477
- "name": "ListboxOption",
21478
- "module": "src/listbox-option/listbox-option.ts"
21477
+ "name": "Listbox",
21478
+ "module": "src/listbox/listbox.ts"
21479
21479
  }
21480
21480
  },
21481
21481
  {
21482
21482
  "kind": "js",
21483
- "name": "foundationListboxOptionShadowOptions",
21483
+ "name": "foundationListboxShadowOptions",
21484
21484
  "declaration": {
21485
- "name": "foundationListboxOptionShadowOptions",
21486
- "module": "src/listbox-option/listbox-option.ts"
21485
+ "name": "foundationListboxShadowOptions",
21486
+ "module": "src/listbox/listbox.ts"
21487
21487
  }
21488
21488
  },
21489
21489
  {
21490
21490
  "kind": "js",
21491
- "name": "defaultListboxOptionConfig",
21491
+ "name": "defaultListboxConfig",
21492
21492
  "declaration": {
21493
- "name": "defaultListboxOptionConfig",
21494
- "module": "src/listbox-option/listbox-option.ts"
21493
+ "name": "defaultListboxConfig",
21494
+ "module": "src/listbox/listbox.ts"
21495
21495
  }
21496
21496
  },
21497
21497
  {
21498
21498
  "kind": "js",
21499
- "name": "foundationListboxOption",
21499
+ "name": "foundationListbox",
21500
21500
  "declaration": {
21501
- "name": "foundationListboxOption",
21502
- "module": "src/listbox-option/listbox-option.ts"
21501
+ "name": "foundationListbox",
21502
+ "module": "src/listbox/listbox.ts"
21503
21503
  }
21504
21504
  }
21505
21505
  ]