@genesislcap/foundation-ui 14.192.0-accessibility.2 → 14.192.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +237 -267
- package/dist/dts/multiselect/multiselect.d.ts +1 -2
- package/dist/dts/multiselect/multiselect.d.ts.map +1 -1
- package/dist/dts/multiselect/multiselect.styles.d.ts.map +1 -1
- package/dist/dts/multiselect/multiselect.template.d.ts.map +1 -1
- package/dist/esm/multiselect/multiselect.js +6 -36
- package/dist/esm/multiselect/multiselect.styles.js +5 -26
- package/dist/esm/multiselect/multiselect.template.js +45 -47
- package/package.json +16 -16
|
@@ -862,6 +862,188 @@
|
|
|
862
862
|
}
|
|
863
863
|
]
|
|
864
864
|
},
|
|
865
|
+
{
|
|
866
|
+
"kind": "javascript-module",
|
|
867
|
+
"path": "src/accordion/accordion.styles.ts",
|
|
868
|
+
"declarations": [
|
|
869
|
+
{
|
|
870
|
+
"kind": "function",
|
|
871
|
+
"name": "foundationAccordionStyles",
|
|
872
|
+
"return": {
|
|
873
|
+
"type": {
|
|
874
|
+
"text": "ElementStyles"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"parameters": [
|
|
878
|
+
{
|
|
879
|
+
"name": "context",
|
|
880
|
+
"type": {
|
|
881
|
+
"text": "ElementDefinitionContext"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "definition",
|
|
886
|
+
"type": {
|
|
887
|
+
"text": "FoundationElementDefinition"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
]
|
|
891
|
+
}
|
|
892
|
+
],
|
|
893
|
+
"exports": [
|
|
894
|
+
{
|
|
895
|
+
"kind": "js",
|
|
896
|
+
"name": "foundationAccordionStyles",
|
|
897
|
+
"declaration": {
|
|
898
|
+
"name": "foundationAccordionStyles",
|
|
899
|
+
"module": "src/accordion/accordion.styles.ts"
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
]
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"kind": "javascript-module",
|
|
906
|
+
"path": "src/accordion/accordion.template.ts",
|
|
907
|
+
"declarations": [
|
|
908
|
+
{
|
|
909
|
+
"kind": "function",
|
|
910
|
+
"name": "foundationAccordionTemplate",
|
|
911
|
+
"return": {
|
|
912
|
+
"type": {
|
|
913
|
+
"text": "ViewTemplate<Accordion>"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"parameters": [
|
|
917
|
+
{
|
|
918
|
+
"name": "context",
|
|
919
|
+
"type": {
|
|
920
|
+
"text": "ElementDefinitionContext"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "definition",
|
|
925
|
+
"type": {
|
|
926
|
+
"text": "FoundationElementDefinition"
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
]
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"exports": [
|
|
933
|
+
{
|
|
934
|
+
"kind": "js",
|
|
935
|
+
"name": "foundationAccordionTemplate",
|
|
936
|
+
"declaration": {
|
|
937
|
+
"name": "foundationAccordionTemplate",
|
|
938
|
+
"module": "src/accordion/accordion.template.ts"
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"kind": "javascript-module",
|
|
945
|
+
"path": "src/accordion/accordion.ts",
|
|
946
|
+
"declarations": [
|
|
947
|
+
{
|
|
948
|
+
"kind": "class",
|
|
949
|
+
"description": "",
|
|
950
|
+
"name": "Accordion",
|
|
951
|
+
"superclass": {
|
|
952
|
+
"name": "FASTAccordion",
|
|
953
|
+
"package": "@microsoft/fast-foundation"
|
|
954
|
+
},
|
|
955
|
+
"tagName": "%%prefix%%-accordion",
|
|
956
|
+
"customElement": true
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "variable",
|
|
960
|
+
"name": "foundationAccordionShadowOptions",
|
|
961
|
+
"type": {
|
|
962
|
+
"text": "ShadowRootInit"
|
|
963
|
+
},
|
|
964
|
+
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"kind": "variable",
|
|
968
|
+
"name": "defaultAccordionConfig",
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "object"
|
|
971
|
+
},
|
|
972
|
+
"default": "{}"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"kind": "variable",
|
|
976
|
+
"name": "foundationAccordion",
|
|
977
|
+
"description": "The Foundation Accordion",
|
|
978
|
+
"privacy": "public"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"exports": [
|
|
982
|
+
{
|
|
983
|
+
"kind": "js",
|
|
984
|
+
"name": "Accordion",
|
|
985
|
+
"declaration": {
|
|
986
|
+
"name": "Accordion",
|
|
987
|
+
"module": "src/accordion/accordion.ts"
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"kind": "js",
|
|
992
|
+
"name": "foundationAccordionShadowOptions",
|
|
993
|
+
"declaration": {
|
|
994
|
+
"name": "foundationAccordionShadowOptions",
|
|
995
|
+
"module": "src/accordion/accordion.ts"
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"kind": "js",
|
|
1000
|
+
"name": "defaultAccordionConfig",
|
|
1001
|
+
"declaration": {
|
|
1002
|
+
"name": "defaultAccordionConfig",
|
|
1003
|
+
"module": "src/accordion/accordion.ts"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "js",
|
|
1008
|
+
"name": "foundationAccordion",
|
|
1009
|
+
"declaration": {
|
|
1010
|
+
"name": "foundationAccordion",
|
|
1011
|
+
"module": "src/accordion/accordion.ts"
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "javascript-module",
|
|
1018
|
+
"path": "src/accordion/index.ts",
|
|
1019
|
+
"declarations": [],
|
|
1020
|
+
"exports": [
|
|
1021
|
+
{
|
|
1022
|
+
"kind": "js",
|
|
1023
|
+
"name": "*",
|
|
1024
|
+
"declaration": {
|
|
1025
|
+
"name": "*",
|
|
1026
|
+
"package": "./accordion.template"
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"kind": "js",
|
|
1031
|
+
"name": "*",
|
|
1032
|
+
"declaration": {
|
|
1033
|
+
"name": "*",
|
|
1034
|
+
"package": "./accordion.styles"
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"kind": "js",
|
|
1039
|
+
"name": "*",
|
|
1040
|
+
"declaration": {
|
|
1041
|
+
"name": "*",
|
|
1042
|
+
"package": "./accordion"
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
865
1047
|
{
|
|
866
1048
|
"kind": "javascript-module",
|
|
867
1049
|
"path": "src/_config/index.ts",
|
|
@@ -2366,188 +2548,6 @@
|
|
|
2366
2548
|
}
|
|
2367
2549
|
]
|
|
2368
2550
|
},
|
|
2369
|
-
{
|
|
2370
|
-
"kind": "javascript-module",
|
|
2371
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
2372
|
-
"declarations": [
|
|
2373
|
-
{
|
|
2374
|
-
"kind": "function",
|
|
2375
|
-
"name": "foundationAccordionStyles",
|
|
2376
|
-
"return": {
|
|
2377
|
-
"type": {
|
|
2378
|
-
"text": "ElementStyles"
|
|
2379
|
-
}
|
|
2380
|
-
},
|
|
2381
|
-
"parameters": [
|
|
2382
|
-
{
|
|
2383
|
-
"name": "context",
|
|
2384
|
-
"type": {
|
|
2385
|
-
"text": "ElementDefinitionContext"
|
|
2386
|
-
}
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
"name": "definition",
|
|
2390
|
-
"type": {
|
|
2391
|
-
"text": "FoundationElementDefinition"
|
|
2392
|
-
}
|
|
2393
|
-
}
|
|
2394
|
-
]
|
|
2395
|
-
}
|
|
2396
|
-
],
|
|
2397
|
-
"exports": [
|
|
2398
|
-
{
|
|
2399
|
-
"kind": "js",
|
|
2400
|
-
"name": "foundationAccordionStyles",
|
|
2401
|
-
"declaration": {
|
|
2402
|
-
"name": "foundationAccordionStyles",
|
|
2403
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
2404
|
-
}
|
|
2405
|
-
}
|
|
2406
|
-
]
|
|
2407
|
-
},
|
|
2408
|
-
{
|
|
2409
|
-
"kind": "javascript-module",
|
|
2410
|
-
"path": "src/accordion/accordion.template.ts",
|
|
2411
|
-
"declarations": [
|
|
2412
|
-
{
|
|
2413
|
-
"kind": "function",
|
|
2414
|
-
"name": "foundationAccordionTemplate",
|
|
2415
|
-
"return": {
|
|
2416
|
-
"type": {
|
|
2417
|
-
"text": "ViewTemplate<Accordion>"
|
|
2418
|
-
}
|
|
2419
|
-
},
|
|
2420
|
-
"parameters": [
|
|
2421
|
-
{
|
|
2422
|
-
"name": "context",
|
|
2423
|
-
"type": {
|
|
2424
|
-
"text": "ElementDefinitionContext"
|
|
2425
|
-
}
|
|
2426
|
-
},
|
|
2427
|
-
{
|
|
2428
|
-
"name": "definition",
|
|
2429
|
-
"type": {
|
|
2430
|
-
"text": "FoundationElementDefinition"
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
]
|
|
2434
|
-
}
|
|
2435
|
-
],
|
|
2436
|
-
"exports": [
|
|
2437
|
-
{
|
|
2438
|
-
"kind": "js",
|
|
2439
|
-
"name": "foundationAccordionTemplate",
|
|
2440
|
-
"declaration": {
|
|
2441
|
-
"name": "foundationAccordionTemplate",
|
|
2442
|
-
"module": "src/accordion/accordion.template.ts"
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
]
|
|
2446
|
-
},
|
|
2447
|
-
{
|
|
2448
|
-
"kind": "javascript-module",
|
|
2449
|
-
"path": "src/accordion/accordion.ts",
|
|
2450
|
-
"declarations": [
|
|
2451
|
-
{
|
|
2452
|
-
"kind": "class",
|
|
2453
|
-
"description": "",
|
|
2454
|
-
"name": "Accordion",
|
|
2455
|
-
"superclass": {
|
|
2456
|
-
"name": "FASTAccordion",
|
|
2457
|
-
"package": "@microsoft/fast-foundation"
|
|
2458
|
-
},
|
|
2459
|
-
"tagName": "%%prefix%%-accordion",
|
|
2460
|
-
"customElement": true
|
|
2461
|
-
},
|
|
2462
|
-
{
|
|
2463
|
-
"kind": "variable",
|
|
2464
|
-
"name": "foundationAccordionShadowOptions",
|
|
2465
|
-
"type": {
|
|
2466
|
-
"text": "ShadowRootInit"
|
|
2467
|
-
},
|
|
2468
|
-
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
2469
|
-
},
|
|
2470
|
-
{
|
|
2471
|
-
"kind": "variable",
|
|
2472
|
-
"name": "defaultAccordionConfig",
|
|
2473
|
-
"type": {
|
|
2474
|
-
"text": "object"
|
|
2475
|
-
},
|
|
2476
|
-
"default": "{}"
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
"kind": "variable",
|
|
2480
|
-
"name": "foundationAccordion",
|
|
2481
|
-
"description": "The Foundation Accordion",
|
|
2482
|
-
"privacy": "public"
|
|
2483
|
-
}
|
|
2484
|
-
],
|
|
2485
|
-
"exports": [
|
|
2486
|
-
{
|
|
2487
|
-
"kind": "js",
|
|
2488
|
-
"name": "Accordion",
|
|
2489
|
-
"declaration": {
|
|
2490
|
-
"name": "Accordion",
|
|
2491
|
-
"module": "src/accordion/accordion.ts"
|
|
2492
|
-
}
|
|
2493
|
-
},
|
|
2494
|
-
{
|
|
2495
|
-
"kind": "js",
|
|
2496
|
-
"name": "foundationAccordionShadowOptions",
|
|
2497
|
-
"declaration": {
|
|
2498
|
-
"name": "foundationAccordionShadowOptions",
|
|
2499
|
-
"module": "src/accordion/accordion.ts"
|
|
2500
|
-
}
|
|
2501
|
-
},
|
|
2502
|
-
{
|
|
2503
|
-
"kind": "js",
|
|
2504
|
-
"name": "defaultAccordionConfig",
|
|
2505
|
-
"declaration": {
|
|
2506
|
-
"name": "defaultAccordionConfig",
|
|
2507
|
-
"module": "src/accordion/accordion.ts"
|
|
2508
|
-
}
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
"kind": "js",
|
|
2512
|
-
"name": "foundationAccordion",
|
|
2513
|
-
"declaration": {
|
|
2514
|
-
"name": "foundationAccordion",
|
|
2515
|
-
"module": "src/accordion/accordion.ts"
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
]
|
|
2519
|
-
},
|
|
2520
|
-
{
|
|
2521
|
-
"kind": "javascript-module",
|
|
2522
|
-
"path": "src/accordion/index.ts",
|
|
2523
|
-
"declarations": [],
|
|
2524
|
-
"exports": [
|
|
2525
|
-
{
|
|
2526
|
-
"kind": "js",
|
|
2527
|
-
"name": "*",
|
|
2528
|
-
"declaration": {
|
|
2529
|
-
"name": "*",
|
|
2530
|
-
"package": "./accordion.template"
|
|
2531
|
-
}
|
|
2532
|
-
},
|
|
2533
|
-
{
|
|
2534
|
-
"kind": "js",
|
|
2535
|
-
"name": "*",
|
|
2536
|
-
"declaration": {
|
|
2537
|
-
"name": "*",
|
|
2538
|
-
"package": "./accordion.styles"
|
|
2539
|
-
}
|
|
2540
|
-
},
|
|
2541
|
-
{
|
|
2542
|
-
"kind": "js",
|
|
2543
|
-
"name": "*",
|
|
2544
|
-
"declaration": {
|
|
2545
|
-
"name": "*",
|
|
2546
|
-
"package": "./accordion"
|
|
2547
|
-
}
|
|
2548
|
-
}
|
|
2549
|
-
]
|
|
2550
|
-
},
|
|
2551
2551
|
{
|
|
2552
2552
|
"kind": "javascript-module",
|
|
2553
2553
|
"path": "src/anchored-region/anchor-region.template.ts",
|
|
@@ -23749,7 +23749,7 @@
|
|
|
23749
23749
|
{
|
|
23750
23750
|
"kind": "variable",
|
|
23751
23751
|
"name": "multiselectStyles",
|
|
23752
|
-
"default": "css`\n .root {\n position: relative;\n width: inherit;\n min-width: 250px;\n }\n\n .control {\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field {\n width: 100%;\n cursor: pointer;\n color: rgb(241 241 241);\n min-height: 40px;\n padding: 0 calc(var(--design-unit) * 2.25px);\n border-width: 0;\n background
|
|
23752
|
+
"default": "css`\n .root {\n position: relative;\n width: inherit;\n min-width: 250px;\n }\n\n .control {\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field {\n width: 100%;\n cursor: pointer;\n color: rgb(241 241 241);\n min-height: 40px;\n padding: 0 calc(var(--design-unit) * 2.25px);\n border-width: 0;\n background: var(--neutral-fill-input-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n }\n\n #display-field[disabled] {\n cursor: not-allowed;\n opacity: 30%;\n }\n\n #display-field:focus {\n outline: 1px solid var(--accent-fill-rest);\n background: var(--neutral-fill-input-rest);\n border-style: none;\n box-shadow: none;\n }\n\n #display-field:hover:not(:focus):not([disabled]) {\n outline: 1px solid rgb(231 232 232);\n }\n\n button {\n pointer-events: none;\n }\n\n .indicator {\n position: absolute;\n left: calc(100% - 26px);\n padding: 0;\n cursor: pointer;\n }\n\n #arrow-icon {\n width: 16px;\n fill: white;\n transform: rotate(0deg);\n transition: transform 0.2s linear 0s;\n }\n\n #arrow-icon.flipped {\n transform: rotate(180deg);\n }\n\n .disabled-svg {\n pointer-events: none;\n opacity: 30%;\n }\n\n .options {\n display: flex;\n flex-direction: column;\n position: absolute;\n height: max-content;\n overflow-y: hidden;\n margin-top: 5px;\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);\n border-radius: 4px;\n background: var(--neutral-fill-input-rest);\n width: 100%;\n max-height: 0;\n visibility: hidden;\n transition:\n max-height 0.4s ease 0s,\n visibility 0.4s ease 0s;\n z-index: 999;\n }\n\n .position-above {\n bottom: 100%;\n }\n\n .checkbox-container {\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n scrollbar-width: thin;\n scrollbar-color: var(--neutral-layer-2) var(--neutral-layer-4);\n }\n\n .checkbox-container zero-checkbox {\n min-width: fit-content;\n }\n\n .checkbox-container zero-checkbox[disabled],\n .checkbox-container foundation-checkbox[disabled] {\n cursor: not-allowed;\n }\n\n #filter-search {\n padding: 5px;\n }\n\n ::-webkit-scrollbar {\n width: 12px;\n }\n\n ::-webkit-scrollbar-track {\n background: var(--neutral-layer-4);\n }\n\n ::-webkit-scrollbar-thumb {\n width: 8px;\n border-radius: 10px;\n box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);\n background-color: var(--neutral-layer-2);\n border: 3px solid var(--neutral-layer-4);\n }\n\n .visible {\n visibility: visible;\n max-height: ${maxheight.toString()}px;\n }\n\n ::slotted(foundation-checkbox),\n foundation-checkbox {\n border-bottom: 1px solid var(--neutral-layer-4);\n padding: 5px 0 5px 5px;\n margin: 0;\n }\n\n ::slotted(foundation-checkbox:hover),\n foundation-checkbox:hover {\n background-color: var(--neutral-layer-3);\n cursor: pointer;\n }\n\n ::slotted(foundation-checkbox)::part(label),\n foundation-checkbox::part(label) {\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .label {\n display: block;\n cursor: pointer;\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-style: normal;\n margin: calc(var(--design-unit) * 2px) 0;\n }\n\n .label-hidden {\n display: none;\n }\n`"
|
|
23753
23753
|
}
|
|
23754
23754
|
],
|
|
23755
23755
|
"exports": [
|
|
@@ -24132,6 +24132,11 @@
|
|
|
24132
24132
|
"name": "getPlaceholder",
|
|
24133
24133
|
"readonly": true
|
|
24134
24134
|
},
|
|
24135
|
+
{
|
|
24136
|
+
"kind": "field",
|
|
24137
|
+
"name": "isAllSelected",
|
|
24138
|
+
"readonly": true
|
|
24139
|
+
},
|
|
24135
24140
|
{
|
|
24136
24141
|
"kind": "field",
|
|
24137
24142
|
"name": "isAllOptionsDisabled",
|
|
@@ -24171,24 +24176,6 @@
|
|
|
24171
24176
|
}
|
|
24172
24177
|
]
|
|
24173
24178
|
},
|
|
24174
|
-
{
|
|
24175
|
-
"kind": "method",
|
|
24176
|
-
"name": "checkboxKeyDown",
|
|
24177
|
-
"parameters": [
|
|
24178
|
-
{
|
|
24179
|
-
"name": "normalizedOption",
|
|
24180
|
-
"type": {
|
|
24181
|
-
"text": "MultiselectOption"
|
|
24182
|
-
}
|
|
24183
|
-
},
|
|
24184
|
-
{
|
|
24185
|
-
"name": "event",
|
|
24186
|
-
"type": {
|
|
24187
|
-
"text": "KeyboardEvent"
|
|
24188
|
-
}
|
|
24189
|
-
}
|
|
24190
|
-
]
|
|
24191
|
-
},
|
|
24192
24179
|
{
|
|
24193
24180
|
"kind": "method",
|
|
24194
24181
|
"name": "getEnabledOptionsCount"
|
|
@@ -24242,23 +24229,6 @@
|
|
|
24242
24229
|
}
|
|
24243
24230
|
]
|
|
24244
24231
|
},
|
|
24245
|
-
{
|
|
24246
|
-
"kind": "method",
|
|
24247
|
-
"name": "keydownHandler",
|
|
24248
|
-
"return": {
|
|
24249
|
-
"type": {
|
|
24250
|
-
"text": "boolean | void"
|
|
24251
|
-
}
|
|
24252
|
-
},
|
|
24253
|
-
"parameters": [
|
|
24254
|
-
{
|
|
24255
|
-
"name": "e",
|
|
24256
|
-
"type": {
|
|
24257
|
-
"text": "Event & KeyboardEvent"
|
|
24258
|
-
}
|
|
24259
|
-
}
|
|
24260
|
-
]
|
|
24261
|
-
},
|
|
24262
24232
|
{
|
|
24263
24233
|
"kind": "field",
|
|
24264
24234
|
"name": "_presentation",
|
|
@@ -43810,55 +43780,6 @@
|
|
|
43810
43780
|
}
|
|
43811
43781
|
]
|
|
43812
43782
|
},
|
|
43813
|
-
{
|
|
43814
|
-
"kind": "javascript-module",
|
|
43815
|
-
"path": "src/flex-layout/responsiveness/flex-layout-rwd.styles.ts",
|
|
43816
|
-
"declarations": [
|
|
43817
|
-
{
|
|
43818
|
-
"kind": "function",
|
|
43819
|
-
"name": "flexLayoutRWDStyles",
|
|
43820
|
-
"return": {
|
|
43821
|
-
"type": {
|
|
43822
|
-
"text": "ElementStyles"
|
|
43823
|
-
}
|
|
43824
|
-
},
|
|
43825
|
-
"parameters": [
|
|
43826
|
-
{
|
|
43827
|
-
"name": "breakPoint",
|
|
43828
|
-
"optional": true,
|
|
43829
|
-
"type": {
|
|
43830
|
-
"text": "FlexBreakPointType"
|
|
43831
|
-
}
|
|
43832
|
-
}
|
|
43833
|
-
]
|
|
43834
|
-
}
|
|
43835
|
-
],
|
|
43836
|
-
"exports": [
|
|
43837
|
-
{
|
|
43838
|
-
"kind": "js",
|
|
43839
|
-
"name": "flexLayoutRWDStyles",
|
|
43840
|
-
"declaration": {
|
|
43841
|
-
"name": "flexLayoutRWDStyles",
|
|
43842
|
-
"module": "src/flex-layout/responsiveness/flex-layout-rwd.styles.ts"
|
|
43843
|
-
}
|
|
43844
|
-
}
|
|
43845
|
-
]
|
|
43846
|
-
},
|
|
43847
|
-
{
|
|
43848
|
-
"kind": "javascript-module",
|
|
43849
|
-
"path": "src/flex-layout/responsiveness/index.ts",
|
|
43850
|
-
"declarations": [],
|
|
43851
|
-
"exports": [
|
|
43852
|
-
{
|
|
43853
|
-
"kind": "js",
|
|
43854
|
-
"name": "*",
|
|
43855
|
-
"declaration": {
|
|
43856
|
-
"name": "*",
|
|
43857
|
-
"package": "./flex-layout-rwd.styles"
|
|
43858
|
-
}
|
|
43859
|
-
}
|
|
43860
|
-
]
|
|
43861
|
-
},
|
|
43862
43783
|
{
|
|
43863
43784
|
"kind": "javascript-module",
|
|
43864
43785
|
"path": "src/_config/values/color.ts",
|
|
@@ -44008,6 +43929,55 @@
|
|
|
44008
43929
|
"declarations": [],
|
|
44009
43930
|
"exports": []
|
|
44010
43931
|
},
|
|
43932
|
+
{
|
|
43933
|
+
"kind": "javascript-module",
|
|
43934
|
+
"path": "src/flex-layout/responsiveness/flex-layout-rwd.styles.ts",
|
|
43935
|
+
"declarations": [
|
|
43936
|
+
{
|
|
43937
|
+
"kind": "function",
|
|
43938
|
+
"name": "flexLayoutRWDStyles",
|
|
43939
|
+
"return": {
|
|
43940
|
+
"type": {
|
|
43941
|
+
"text": "ElementStyles"
|
|
43942
|
+
}
|
|
43943
|
+
},
|
|
43944
|
+
"parameters": [
|
|
43945
|
+
{
|
|
43946
|
+
"name": "breakPoint",
|
|
43947
|
+
"optional": true,
|
|
43948
|
+
"type": {
|
|
43949
|
+
"text": "FlexBreakPointType"
|
|
43950
|
+
}
|
|
43951
|
+
}
|
|
43952
|
+
]
|
|
43953
|
+
}
|
|
43954
|
+
],
|
|
43955
|
+
"exports": [
|
|
43956
|
+
{
|
|
43957
|
+
"kind": "js",
|
|
43958
|
+
"name": "flexLayoutRWDStyles",
|
|
43959
|
+
"declaration": {
|
|
43960
|
+
"name": "flexLayoutRWDStyles",
|
|
43961
|
+
"module": "src/flex-layout/responsiveness/flex-layout-rwd.styles.ts"
|
|
43962
|
+
}
|
|
43963
|
+
}
|
|
43964
|
+
]
|
|
43965
|
+
},
|
|
43966
|
+
{
|
|
43967
|
+
"kind": "javascript-module",
|
|
43968
|
+
"path": "src/flex-layout/responsiveness/index.ts",
|
|
43969
|
+
"declarations": [],
|
|
43970
|
+
"exports": [
|
|
43971
|
+
{
|
|
43972
|
+
"kind": "js",
|
|
43973
|
+
"name": "*",
|
|
43974
|
+
"declaration": {
|
|
43975
|
+
"name": "*",
|
|
43976
|
+
"package": "./flex-layout-rwd.styles"
|
|
43977
|
+
}
|
|
43978
|
+
}
|
|
43979
|
+
]
|
|
43980
|
+
},
|
|
44011
43981
|
{
|
|
44012
43982
|
"kind": "javascript-module",
|
|
44013
43983
|
"path": "src/grid-layout/responsiveness/grid-layout-rwd.styles.ts",
|
|
@@ -66,11 +66,11 @@ export declare class Multiselect extends FoundationElement {
|
|
|
66
66
|
isOptionDisabled(option: MultiselectOption): boolean;
|
|
67
67
|
get getDisplayValue(): string;
|
|
68
68
|
get getPlaceholder(): string;
|
|
69
|
+
get isAllSelected(): boolean;
|
|
69
70
|
get isAllOptionsDisabled(): boolean;
|
|
70
71
|
get showCreatable(): boolean;
|
|
71
72
|
isOptionSelected(normalizedOption: MultiselectOption): boolean;
|
|
72
73
|
selectCheckboxOne(normalizedOption: MultiselectOption): void;
|
|
73
|
-
checkboxKeyDown(normalizedOption: MultiselectOption, event: KeyboardEvent): boolean;
|
|
74
74
|
getEnabledOptionsCount(): number;
|
|
75
75
|
selectCheckboxAll(): void;
|
|
76
76
|
inputHandler(): void;
|
|
@@ -80,7 +80,6 @@ export declare class Multiselect extends FoundationElement {
|
|
|
80
80
|
asyncSetFilter(): void;
|
|
81
81
|
changeHandler(event: Event): void;
|
|
82
82
|
private handleClickOutside;
|
|
83
|
-
keydownHandler(e: Event & KeyboardEvent): boolean | void;
|
|
84
83
|
}
|
|
85
84
|
export declare const foundationMultiselect: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
86
85
|
baseName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiselect.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAO9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAMhD,eAAO,MAAM,kCAAkC,EAAE,cAA0B,CAAC;AAE5E,eAAO,MAAM,wBAAwB,IAAK,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GACzB;IACE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC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],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"multiselect.styles.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,iBAAiB,iDAuK7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiselect.template.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKjD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"multiselect.template.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKjD,eAAO,MAAM,sBAAsB,uFAuGlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kEAE/B,CAAC"}
|
|
@@ -177,6 +177,9 @@ export class Multiselect extends FoundationElement {
|
|
|
177
177
|
get getPlaceholder() {
|
|
178
178
|
return `Search ${this.name}`.trim().concat('...');
|
|
179
179
|
}
|
|
180
|
+
get isAllSelected() {
|
|
181
|
+
return (!this.isAllOptionsDisabled && this.selectedOptions.length === this.getEnabledOptionsCount());
|
|
182
|
+
}
|
|
180
183
|
get isAllOptionsDisabled() {
|
|
181
184
|
return this.options.length === this.options.filter(this.isOptionDisabled).length;
|
|
182
185
|
}
|
|
@@ -200,13 +203,6 @@ export class Multiselect extends FoundationElement {
|
|
|
200
203
|
}
|
|
201
204
|
this.$emit('selectionChange', this.selectedOptions);
|
|
202
205
|
}
|
|
203
|
-
checkboxKeyDown(normalizedOption, event) {
|
|
204
|
-
if (event.key === ' ') {
|
|
205
|
-
event.preventDefault();
|
|
206
|
-
this.selectCheckboxOne(normalizedOption);
|
|
207
|
-
}
|
|
208
|
-
return true;
|
|
209
|
-
}
|
|
210
206
|
getEnabledOptionsCount() {
|
|
211
207
|
return this.options.length - this.options.filter(this.isOptionDisabled).length;
|
|
212
208
|
}
|
|
@@ -223,9 +219,6 @@ export class Multiselect extends FoundationElement {
|
|
|
223
219
|
this.$emit('selectionChange', this.selectedOptions);
|
|
224
220
|
}
|
|
225
221
|
inputHandler() {
|
|
226
|
-
if (!this.open) {
|
|
227
|
-
this.open = true;
|
|
228
|
-
}
|
|
229
222
|
if (this.async) {
|
|
230
223
|
this.loading = true;
|
|
231
224
|
this.filteredAvailableOptions = [];
|
|
@@ -287,32 +280,6 @@ export class Multiselect extends FoundationElement {
|
|
|
287
280
|
this.open = false;
|
|
288
281
|
}
|
|
289
282
|
}
|
|
290
|
-
keydownHandler(e) {
|
|
291
|
-
const key = e.key;
|
|
292
|
-
if (e.ctrlKey || e.shiftKey) {
|
|
293
|
-
return true;
|
|
294
|
-
}
|
|
295
|
-
switch (key) {
|
|
296
|
-
case 'Escape': {
|
|
297
|
-
if (this.open) {
|
|
298
|
-
this.open = false;
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
break;
|
|
302
|
-
}
|
|
303
|
-
case 'ArrowUp':
|
|
304
|
-
case 'ArrowDown': {
|
|
305
|
-
if (!this.open) {
|
|
306
|
-
this.open = true;
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
break;
|
|
310
|
-
}
|
|
311
|
-
default: {
|
|
312
|
-
return true;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
283
|
}
|
|
317
284
|
__decorate([
|
|
318
285
|
attr
|
|
@@ -386,6 +353,9 @@ __decorate([
|
|
|
386
353
|
__decorate([
|
|
387
354
|
volatile
|
|
388
355
|
], Multiselect.prototype, "getPlaceholder", null);
|
|
356
|
+
__decorate([
|
|
357
|
+
volatile
|
|
358
|
+
], Multiselect.prototype, "isAllSelected", null);
|
|
389
359
|
__decorate([
|
|
390
360
|
volatile
|
|
391
361
|
], Multiselect.prototype, "isAllOptionsDisabled", null);
|
|
@@ -23,7 +23,7 @@ export const multiselectStyles = css `
|
|
|
23
23
|
min-height: 40px;
|
|
24
24
|
padding: 0 calc(var(--design-unit) * 2.25px);
|
|
25
25
|
border-width: 0;
|
|
26
|
-
background
|
|
26
|
+
background: var(--neutral-fill-input-rest);
|
|
27
27
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -99,7 +99,6 @@ export const multiselectStyles = css `
|
|
|
99
99
|
overflow-y: scroll;
|
|
100
100
|
scrollbar-width: thin;
|
|
101
101
|
scrollbar-color: var(--neutral-layer-2) var(--neutral-layer-4);
|
|
102
|
-
list-style: none;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
.checkbox-container zero-checkbox {
|
|
@@ -111,6 +110,10 @@ export const multiselectStyles = css `
|
|
|
111
110
|
cursor: not-allowed;
|
|
112
111
|
}
|
|
113
112
|
|
|
113
|
+
#filter-search {
|
|
114
|
+
padding: 5px;
|
|
115
|
+
}
|
|
116
|
+
|
|
114
117
|
::-webkit-scrollbar {
|
|
115
118
|
width: 12px;
|
|
116
119
|
}
|
|
@@ -164,28 +167,4 @@ export const multiselectStyles = css `
|
|
|
164
167
|
.label-hidden {
|
|
165
168
|
display: none;
|
|
166
169
|
}
|
|
167
|
-
|
|
168
|
-
ol,
|
|
169
|
-
li {
|
|
170
|
-
margin: 0;
|
|
171
|
-
padding: 0;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.checkbox {
|
|
175
|
-
width: 100%;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.select-all {
|
|
179
|
-
width: 100%;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.display-value {
|
|
183
|
-
position: absolute;
|
|
184
|
-
right: 40px;
|
|
185
|
-
line-height: var(--type-ramp-base-line-height);
|
|
186
|
-
color: var(--neutral-foreground-rest);
|
|
187
|
-
font-size: var(--type-ramp-base-font-size);
|
|
188
|
-
line-height: var(--type-ramp-base-line-height);
|
|
189
|
-
font-family: var(--body-font);
|
|
190
|
-
}
|
|
191
170
|
`;
|
|
@@ -7,7 +7,7 @@ const ARROW_SVG_PATH = 'M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1
|
|
|
7
7
|
export const getPrefixedMultiselect = (prefix = 'foundation') => html `
|
|
8
8
|
<label
|
|
9
9
|
part="label"
|
|
10
|
-
for="
|
|
10
|
+
for="control"
|
|
11
11
|
class=${(x) => { var _a; return classNames('label', ['label-hidden', !((_a = x.defaultSlottedNodes) === null || _a === void 0 ? void 0 : _a.length)]); }}
|
|
12
12
|
>
|
|
13
13
|
<slot
|
|
@@ -18,23 +18,8 @@ export const getPrefixedMultiselect = (prefix = 'foundation') => html `
|
|
|
18
18
|
})}
|
|
19
19
|
></slot>
|
|
20
20
|
</label>
|
|
21
|
-
<div class="root" part="root"
|
|
21
|
+
<div class="root" part="root">
|
|
22
22
|
<div class="control" part="control">
|
|
23
|
-
<input
|
|
24
|
-
id="display-field"
|
|
25
|
-
part="filter-search"
|
|
26
|
-
role="combobox"
|
|
27
|
-
aria-haspopup="listbox"
|
|
28
|
-
aria-controls="checkbox-container"
|
|
29
|
-
aria-expanded=${(x) => (x.open ? 'true' : 'false')}
|
|
30
|
-
?readonly=${(x) => !x.search}
|
|
31
|
-
@click=${(x) => x.toggle()}
|
|
32
|
-
?disabled="${(x) => x.disabled}"
|
|
33
|
-
value=${sync((x) => x.filterSearchValue, 'string', 'input')}
|
|
34
|
-
placeholder="${(x) => x.getDisplayValue}"
|
|
35
|
-
@input=${(x, c) => x.inputHandler()}
|
|
36
|
-
@change=${(x, c) => x.changeHandler(c.event)}
|
|
37
|
-
/>
|
|
38
23
|
<div part="indicator" class="indicator" @click=${(x) => !x.disabled && x.toggle()}>
|
|
39
24
|
<svg
|
|
40
25
|
viewBox="0 0 12 7"
|
|
@@ -46,34 +31,47 @@ export const getPrefixedMultiselect = (prefix = 'foundation') => html `
|
|
|
46
31
|
<path d="${ARROW_SVG_PATH}" />
|
|
47
32
|
</svg>
|
|
48
33
|
</div>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
34
|
+
|
|
35
|
+
<input
|
|
36
|
+
part="input"
|
|
37
|
+
readonly
|
|
38
|
+
type="text"
|
|
39
|
+
id="display-field"
|
|
40
|
+
part="display-field"
|
|
41
|
+
:value="${(x) => x.getDisplayValue}"
|
|
42
|
+
:disabled="${(x) => x.disabled}"
|
|
43
|
+
@click=${(x) => x.toggle()}
|
|
44
|
+
/>
|
|
52
45
|
</div>
|
|
53
|
-
${
|
|
54
|
-
|
|
46
|
+
<div ${ref('optionsElement')} class="options">
|
|
47
|
+
${when((x) => x.search, html `
|
|
48
|
+
<${prefix}-text-field
|
|
49
|
+
id="filter-search"
|
|
50
|
+
part="filter-search"
|
|
51
|
+
value=${sync((x) => x.filterSearchValue, 'string', 'input')}
|
|
52
|
+
placeholder="${(x) => x.getPlaceholder}"
|
|
53
|
+
@input=${(x, c) => x.inputHandler()}
|
|
54
|
+
@change=${(x, c) => x.changeHandler(c.event)}
|
|
55
|
+
></${prefix}-text-field>
|
|
55
56
|
`)}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<li role="option" value=${(x, ctx) => ctx.parent.getItemLabel(x)}>
|
|
57
|
+
<div class="checkbox-container">
|
|
58
|
+
${when((x) => x.loading, html `
|
|
59
|
+
<${prefix}-progress slot="indicator"></${prefix}-progress>
|
|
60
|
+
`)}
|
|
61
|
+
${when((x) => x.all, html `
|
|
62
|
+
<${prefix}-checkbox
|
|
63
|
+
part="checkbox"
|
|
64
|
+
@click=${(x) => x.selectCheckboxAll()}
|
|
65
|
+
@change=${(x, c) => x.changeHandler(c.event)}
|
|
66
|
+
?current-checked="${(x) => x.isAllSelected}"
|
|
67
|
+
?disabled="${(x, c) => x.isAllOptionsDisabled}"
|
|
68
|
+
>
|
|
69
|
+
All ${(x) => x.name}
|
|
70
|
+
</${prefix}-checkbox>
|
|
71
|
+
`)}
|
|
72
|
+
${repeat((x) => x.filteredAvailableOptions, html `
|
|
73
73
|
<${prefix}-checkbox
|
|
74
74
|
part="checkbox"
|
|
75
|
-
class="checkbox"
|
|
76
|
-
@keydown=${(x, c) => c.parent.checkboxKeyDown(x, c.event)}
|
|
77
75
|
@click=${(x, c) => c.parent.selectCheckboxOne(x)}
|
|
78
76
|
@change=${(x, c) => c.parent.changeHandler(c.event)}
|
|
79
77
|
?current-checked="${(x, c) => c.parent.isOptionSelected(x)}"
|
|
@@ -81,12 +79,12 @@ export const getPrefixedMultiselect = (prefix = 'foundation') => html `
|
|
|
81
79
|
>
|
|
82
80
|
${(x, ctx) => ctx.parent.getItemLabel(x)}
|
|
83
81
|
</${prefix}-checkbox>
|
|
84
|
-
|
|
85
|
-
`
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</
|
|
82
|
+
`)}
|
|
83
|
+
${when((x) => x.showCreatable, html `
|
|
84
|
+
<${prefix}-button @click=${(x) => x.addOption()}>Create "${(x) => x.filterSearchValue}"</${prefix}-button>
|
|
85
|
+
`)}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
90
88
|
</div>
|
|
91
89
|
<slot
|
|
92
90
|
${slotted({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.192.
|
|
4
|
+
"version": "14.192.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@genesislcap/foundation-testing": "14.192.
|
|
86
|
-
"@genesislcap/genx": "14.192.
|
|
87
|
-
"@genesislcap/rollup-builder": "14.192.
|
|
88
|
-
"@genesislcap/ts-builder": "14.192.
|
|
89
|
-
"@genesislcap/uvu-playwright-builder": "14.192.
|
|
90
|
-
"@genesislcap/vite-builder": "14.192.
|
|
91
|
-
"@genesislcap/webpack-builder": "14.192.
|
|
85
|
+
"@genesislcap/foundation-testing": "14.192.1",
|
|
86
|
+
"@genesislcap/genx": "14.192.1",
|
|
87
|
+
"@genesislcap/rollup-builder": "14.192.1",
|
|
88
|
+
"@genesislcap/ts-builder": "14.192.1",
|
|
89
|
+
"@genesislcap/uvu-playwright-builder": "14.192.1",
|
|
90
|
+
"@genesislcap/vite-builder": "14.192.1",
|
|
91
|
+
"@genesislcap/webpack-builder": "14.192.1",
|
|
92
92
|
"copyfiles": "^2.4.1",
|
|
93
93
|
"rimraf": "^5.0.0",
|
|
94
94
|
"rxjs": "^7.5.4"
|
|
@@ -99,13 +99,13 @@
|
|
|
99
99
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
100
100
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
101
101
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
102
|
-
"@genesislcap/foundation-comms": "14.192.
|
|
103
|
-
"@genesislcap/foundation-criteria": "14.192.
|
|
104
|
-
"@genesislcap/foundation-errors": "14.192.
|
|
105
|
-
"@genesislcap/foundation-logger": "14.192.
|
|
106
|
-
"@genesislcap/foundation-notifications": "14.192.
|
|
107
|
-
"@genesislcap/foundation-user": "14.192.
|
|
108
|
-
"@genesislcap/foundation-utils": "14.192.
|
|
102
|
+
"@genesislcap/foundation-comms": "14.192.1",
|
|
103
|
+
"@genesislcap/foundation-criteria": "14.192.1",
|
|
104
|
+
"@genesislcap/foundation-errors": "14.192.1",
|
|
105
|
+
"@genesislcap/foundation-logger": "14.192.1",
|
|
106
|
+
"@genesislcap/foundation-notifications": "14.192.1",
|
|
107
|
+
"@genesislcap/foundation-user": "14.192.1",
|
|
108
|
+
"@genesislcap/foundation-utils": "14.192.1",
|
|
109
109
|
"@microsoft/fast-colors": "^5.3.1",
|
|
110
110
|
"@microsoft/fast-components": "^2.30.6",
|
|
111
111
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"access": "public"
|
|
128
128
|
},
|
|
129
129
|
"customElements": "dist/custom-elements.json",
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "a29aa171eb4bd0a83c1787bdcfb0351f77ff0cc5"
|
|
131
131
|
}
|