@genesislcap/foundation-ui 14.191.0 → 14.192.0-accessibility.2
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 +267 -237
- package/dist/dts/multiselect/multiselect.d.ts +2 -1
- 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 +36 -6
- package/dist/esm/multiselect/multiselect.styles.js +26 -5
- package/dist/esm/multiselect/multiselect.template.js +47 -45
- package/package.json +16 -16
|
@@ -1287,188 +1287,6 @@
|
|
|
1287
1287
|
}
|
|
1288
1288
|
]
|
|
1289
1289
|
},
|
|
1290
|
-
{
|
|
1291
|
-
"kind": "javascript-module",
|
|
1292
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
1293
|
-
"declarations": [
|
|
1294
|
-
{
|
|
1295
|
-
"kind": "function",
|
|
1296
|
-
"name": "foundationAccordionStyles",
|
|
1297
|
-
"return": {
|
|
1298
|
-
"type": {
|
|
1299
|
-
"text": "ElementStyles"
|
|
1300
|
-
}
|
|
1301
|
-
},
|
|
1302
|
-
"parameters": [
|
|
1303
|
-
{
|
|
1304
|
-
"name": "context",
|
|
1305
|
-
"type": {
|
|
1306
|
-
"text": "ElementDefinitionContext"
|
|
1307
|
-
}
|
|
1308
|
-
},
|
|
1309
|
-
{
|
|
1310
|
-
"name": "definition",
|
|
1311
|
-
"type": {
|
|
1312
|
-
"text": "FoundationElementDefinition"
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
]
|
|
1316
|
-
}
|
|
1317
|
-
],
|
|
1318
|
-
"exports": [
|
|
1319
|
-
{
|
|
1320
|
-
"kind": "js",
|
|
1321
|
-
"name": "foundationAccordionStyles",
|
|
1322
|
-
"declaration": {
|
|
1323
|
-
"name": "foundationAccordionStyles",
|
|
1324
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
]
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
"kind": "javascript-module",
|
|
1331
|
-
"path": "src/accordion/accordion.template.ts",
|
|
1332
|
-
"declarations": [
|
|
1333
|
-
{
|
|
1334
|
-
"kind": "function",
|
|
1335
|
-
"name": "foundationAccordionTemplate",
|
|
1336
|
-
"return": {
|
|
1337
|
-
"type": {
|
|
1338
|
-
"text": "ViewTemplate<Accordion>"
|
|
1339
|
-
}
|
|
1340
|
-
},
|
|
1341
|
-
"parameters": [
|
|
1342
|
-
{
|
|
1343
|
-
"name": "context",
|
|
1344
|
-
"type": {
|
|
1345
|
-
"text": "ElementDefinitionContext"
|
|
1346
|
-
}
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
"name": "definition",
|
|
1350
|
-
"type": {
|
|
1351
|
-
"text": "FoundationElementDefinition"
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
]
|
|
1355
|
-
}
|
|
1356
|
-
],
|
|
1357
|
-
"exports": [
|
|
1358
|
-
{
|
|
1359
|
-
"kind": "js",
|
|
1360
|
-
"name": "foundationAccordionTemplate",
|
|
1361
|
-
"declaration": {
|
|
1362
|
-
"name": "foundationAccordionTemplate",
|
|
1363
|
-
"module": "src/accordion/accordion.template.ts"
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
]
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
"kind": "javascript-module",
|
|
1370
|
-
"path": "src/accordion/accordion.ts",
|
|
1371
|
-
"declarations": [
|
|
1372
|
-
{
|
|
1373
|
-
"kind": "class",
|
|
1374
|
-
"description": "",
|
|
1375
|
-
"name": "Accordion",
|
|
1376
|
-
"superclass": {
|
|
1377
|
-
"name": "FASTAccordion",
|
|
1378
|
-
"package": "@microsoft/fast-foundation"
|
|
1379
|
-
},
|
|
1380
|
-
"tagName": "%%prefix%%-accordion",
|
|
1381
|
-
"customElement": true
|
|
1382
|
-
},
|
|
1383
|
-
{
|
|
1384
|
-
"kind": "variable",
|
|
1385
|
-
"name": "foundationAccordionShadowOptions",
|
|
1386
|
-
"type": {
|
|
1387
|
-
"text": "ShadowRootInit"
|
|
1388
|
-
},
|
|
1389
|
-
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
"kind": "variable",
|
|
1393
|
-
"name": "defaultAccordionConfig",
|
|
1394
|
-
"type": {
|
|
1395
|
-
"text": "object"
|
|
1396
|
-
},
|
|
1397
|
-
"default": "{}"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
"kind": "variable",
|
|
1401
|
-
"name": "foundationAccordion",
|
|
1402
|
-
"description": "The Foundation Accordion",
|
|
1403
|
-
"privacy": "public"
|
|
1404
|
-
}
|
|
1405
|
-
],
|
|
1406
|
-
"exports": [
|
|
1407
|
-
{
|
|
1408
|
-
"kind": "js",
|
|
1409
|
-
"name": "Accordion",
|
|
1410
|
-
"declaration": {
|
|
1411
|
-
"name": "Accordion",
|
|
1412
|
-
"module": "src/accordion/accordion.ts"
|
|
1413
|
-
}
|
|
1414
|
-
},
|
|
1415
|
-
{
|
|
1416
|
-
"kind": "js",
|
|
1417
|
-
"name": "foundationAccordionShadowOptions",
|
|
1418
|
-
"declaration": {
|
|
1419
|
-
"name": "foundationAccordionShadowOptions",
|
|
1420
|
-
"module": "src/accordion/accordion.ts"
|
|
1421
|
-
}
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"kind": "js",
|
|
1425
|
-
"name": "defaultAccordionConfig",
|
|
1426
|
-
"declaration": {
|
|
1427
|
-
"name": "defaultAccordionConfig",
|
|
1428
|
-
"module": "src/accordion/accordion.ts"
|
|
1429
|
-
}
|
|
1430
|
-
},
|
|
1431
|
-
{
|
|
1432
|
-
"kind": "js",
|
|
1433
|
-
"name": "foundationAccordion",
|
|
1434
|
-
"declaration": {
|
|
1435
|
-
"name": "foundationAccordion",
|
|
1436
|
-
"module": "src/accordion/accordion.ts"
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
]
|
|
1440
|
-
},
|
|
1441
|
-
{
|
|
1442
|
-
"kind": "javascript-module",
|
|
1443
|
-
"path": "src/accordion/index.ts",
|
|
1444
|
-
"declarations": [],
|
|
1445
|
-
"exports": [
|
|
1446
|
-
{
|
|
1447
|
-
"kind": "js",
|
|
1448
|
-
"name": "*",
|
|
1449
|
-
"declaration": {
|
|
1450
|
-
"name": "*",
|
|
1451
|
-
"package": "./accordion.template"
|
|
1452
|
-
}
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
"kind": "js",
|
|
1456
|
-
"name": "*",
|
|
1457
|
-
"declaration": {
|
|
1458
|
-
"name": "*",
|
|
1459
|
-
"package": "./accordion.styles"
|
|
1460
|
-
}
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
"kind": "js",
|
|
1464
|
-
"name": "*",
|
|
1465
|
-
"declaration": {
|
|
1466
|
-
"name": "*",
|
|
1467
|
-
"package": "./accordion"
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
]
|
|
1471
|
-
},
|
|
1472
1290
|
{
|
|
1473
1291
|
"kind": "javascript-module",
|
|
1474
1292
|
"path": "src/actions-menu/actions-menu.styles.ts",
|
|
@@ -2548,6 +2366,188 @@
|
|
|
2548
2366
|
}
|
|
2549
2367
|
]
|
|
2550
2368
|
},
|
|
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: 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
|
|
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-color: 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 list-style: none;\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 ::-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\n ol,\n li {\n margin: 0;\n padding: 0;\n }\n\n .checkbox {\n width: 100%;\n }\n\n .select-all {\n width: 100%;\n }\n\n .display-value {\n position: absolute;\n right: 40px;\n line-height: var(--type-ramp-base-line-height);\n color: var(--neutral-foreground-rest);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n font-family: var(--body-font);\n }\n`"
|
|
23753
23753
|
}
|
|
23754
23754
|
],
|
|
23755
23755
|
"exports": [
|
|
@@ -24132,11 +24132,6 @@
|
|
|
24132
24132
|
"name": "getPlaceholder",
|
|
24133
24133
|
"readonly": true
|
|
24134
24134
|
},
|
|
24135
|
-
{
|
|
24136
|
-
"kind": "field",
|
|
24137
|
-
"name": "isAllSelected",
|
|
24138
|
-
"readonly": true
|
|
24139
|
-
},
|
|
24140
24135
|
{
|
|
24141
24136
|
"kind": "field",
|
|
24142
24137
|
"name": "isAllOptionsDisabled",
|
|
@@ -24176,6 +24171,24 @@
|
|
|
24176
24171
|
}
|
|
24177
24172
|
]
|
|
24178
24173
|
},
|
|
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
|
+
},
|
|
24179
24192
|
{
|
|
24180
24193
|
"kind": "method",
|
|
24181
24194
|
"name": "getEnabledOptionsCount"
|
|
@@ -24229,6 +24242,23 @@
|
|
|
24229
24242
|
}
|
|
24230
24243
|
]
|
|
24231
24244
|
},
|
|
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
|
+
},
|
|
24232
24262
|
{
|
|
24233
24263
|
"kind": "field",
|
|
24234
24264
|
"name": "_presentation",
|
|
@@ -43780,6 +43810,55 @@
|
|
|
43780
43810
|
}
|
|
43781
43811
|
]
|
|
43782
43812
|
},
|
|
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
|
+
},
|
|
43783
43862
|
{
|
|
43784
43863
|
"kind": "javascript-module",
|
|
43785
43864
|
"path": "src/_config/values/color.ts",
|
|
@@ -43929,55 +44008,6 @@
|
|
|
43929
44008
|
"declarations": [],
|
|
43930
44009
|
"exports": []
|
|
43931
44010
|
},
|
|
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
|
-
},
|
|
43981
44011
|
{
|
|
43982
44012
|
"kind": "javascript-module",
|
|
43983
44013
|
"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;
|
|
70
69
|
get isAllOptionsDisabled(): boolean;
|
|
71
70
|
get showCreatable(): boolean;
|
|
72
71
|
isOptionSelected(normalizedOption: MultiselectOption): boolean;
|
|
73
72
|
selectCheckboxOne(normalizedOption: MultiselectOption): void;
|
|
73
|
+
checkboxKeyDown(normalizedOption: MultiselectOption, event: KeyboardEvent): boolean;
|
|
74
74
|
getEnabledOptionsCount(): number;
|
|
75
75
|
selectCheckboxAll(): void;
|
|
76
76
|
inputHandler(): void;
|
|
@@ -80,6 +80,7 @@ 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;
|
|
83
84
|
}
|
|
84
85
|
export declare const foundationMultiselect: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
85
86
|
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;AAE5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AAqB;;;;;;;;;;sBAMhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,iDA4L7B,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,uFAyGlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kEAE/B,CAAC"}
|
|
@@ -177,9 +177,6 @@ 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
|
-
}
|
|
183
180
|
get isAllOptionsDisabled() {
|
|
184
181
|
return this.options.length === this.options.filter(this.isOptionDisabled).length;
|
|
185
182
|
}
|
|
@@ -203,6 +200,13 @@ export class Multiselect extends FoundationElement {
|
|
|
203
200
|
}
|
|
204
201
|
this.$emit('selectionChange', this.selectedOptions);
|
|
205
202
|
}
|
|
203
|
+
checkboxKeyDown(normalizedOption, event) {
|
|
204
|
+
if (event.key === ' ') {
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
this.selectCheckboxOne(normalizedOption);
|
|
207
|
+
}
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
206
210
|
getEnabledOptionsCount() {
|
|
207
211
|
return this.options.length - this.options.filter(this.isOptionDisabled).length;
|
|
208
212
|
}
|
|
@@ -219,6 +223,9 @@ export class Multiselect extends FoundationElement {
|
|
|
219
223
|
this.$emit('selectionChange', this.selectedOptions);
|
|
220
224
|
}
|
|
221
225
|
inputHandler() {
|
|
226
|
+
if (!this.open) {
|
|
227
|
+
this.open = true;
|
|
228
|
+
}
|
|
222
229
|
if (this.async) {
|
|
223
230
|
this.loading = true;
|
|
224
231
|
this.filteredAvailableOptions = [];
|
|
@@ -280,6 +287,32 @@ export class Multiselect extends FoundationElement {
|
|
|
280
287
|
this.open = false;
|
|
281
288
|
}
|
|
282
289
|
}
|
|
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
|
+
}
|
|
283
316
|
}
|
|
284
317
|
__decorate([
|
|
285
318
|
attr
|
|
@@ -353,9 +386,6 @@ __decorate([
|
|
|
353
386
|
__decorate([
|
|
354
387
|
volatile
|
|
355
388
|
], Multiselect.prototype, "getPlaceholder", null);
|
|
356
|
-
__decorate([
|
|
357
|
-
volatile
|
|
358
|
-
], Multiselect.prototype, "isAllSelected", null);
|
|
359
389
|
__decorate([
|
|
360
390
|
volatile
|
|
361
391
|
], 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: var(--neutral-fill-input-rest);
|
|
26
|
+
background-color: var(--neutral-fill-input-rest);
|
|
27
27
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -99,6 +99,7 @@ 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;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.checkbox-container zero-checkbox {
|
|
@@ -110,10 +111,6 @@ export const multiselectStyles = css `
|
|
|
110
111
|
cursor: not-allowed;
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
#filter-search {
|
|
114
|
-
padding: 5px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
114
|
::-webkit-scrollbar {
|
|
118
115
|
width: 12px;
|
|
119
116
|
}
|
|
@@ -167,4 +164,28 @@ export const multiselectStyles = css `
|
|
|
167
164
|
.label-hidden {
|
|
168
165
|
display: none;
|
|
169
166
|
}
|
|
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
|
+
}
|
|
170
191
|
`;
|
|
@@ -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="display-field"
|
|
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,8 +18,23 @@ 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" @keydown="${(x, c) => x.keydownHandler(c.event)}">
|
|
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
|
+
/>
|
|
23
38
|
<div part="indicator" class="indicator" @click=${(x) => !x.disabled && x.toggle()}>
|
|
24
39
|
<svg
|
|
25
40
|
viewBox="0 0 12 7"
|
|
@@ -31,47 +46,34 @@ export const getPrefixedMultiselect = (prefix = 'foundation') => html `
|
|
|
31
46
|
<path d="${ARROW_SVG_PATH}" />
|
|
32
47
|
</svg>
|
|
33
48
|
</div>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
/>
|
|
49
|
+
${when((x) => x.filterSearchValue && x.selectedOptions.length, html `
|
|
50
|
+
<div class="display-value">${(x) => x.getDisplayValue}</div>
|
|
51
|
+
`)}
|
|
45
52
|
</div>
|
|
46
|
-
|
|
47
|
-
|
|
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>
|
|
53
|
+
${when((x) => x.loading, html `
|
|
54
|
+
<${prefix}-progress slot="indicator"></${prefix}-progress>
|
|
56
55
|
`)}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
<ol
|
|
57
|
+
${ref('optionsElement')}
|
|
58
|
+
id="checkbox-container"
|
|
59
|
+
class="checkbox-container options"
|
|
60
|
+
aria-multiselectable="true"
|
|
61
|
+
>
|
|
62
|
+
${when((x) => x.all, html `
|
|
63
|
+
<${prefix}-button
|
|
64
|
+
class="select-all"
|
|
65
|
+
@click=${(x) => x.selectCheckboxAll()}
|
|
66
|
+
?disabled="${(x, c) => x.isAllOptionsDisabled}"
|
|
67
|
+
>
|
|
68
|
+
Select All ${(x) => x.name}
|
|
69
|
+
</${prefix}-button>
|
|
70
|
+
`)}
|
|
71
|
+
${repeat((x) => x.filteredAvailableOptions, html `
|
|
72
|
+
<li role="option" value=${(x, ctx) => ctx.parent.getItemLabel(x)}>
|
|
73
73
|
<${prefix}-checkbox
|
|
74
74
|
part="checkbox"
|
|
75
|
+
class="checkbox"
|
|
76
|
+
@keydown=${(x, c) => c.parent.checkboxKeyDown(x, c.event)}
|
|
75
77
|
@click=${(x, c) => c.parent.selectCheckboxOne(x)}
|
|
76
78
|
@change=${(x, c) => c.parent.changeHandler(c.event)}
|
|
77
79
|
?current-checked="${(x, c) => c.parent.isOptionSelected(x)}"
|
|
@@ -79,12 +81,12 @@ export const getPrefixedMultiselect = (prefix = 'foundation') => html `
|
|
|
79
81
|
>
|
|
80
82
|
${(x, ctx) => ctx.parent.getItemLabel(x)}
|
|
81
83
|
</${prefix}-checkbox>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</
|
|
84
|
+
</li>
|
|
85
|
+
`)}
|
|
86
|
+
${when((x) => x.showCreatable, html `
|
|
87
|
+
<${prefix}-button @click=${(x) => x.addOption()}>Create "${(x) => x.filterSearchValue}"</${prefix}-button>
|
|
88
|
+
`)}
|
|
89
|
+
</ol>
|
|
88
90
|
</div>
|
|
89
91
|
<slot
|
|
90
92
|
${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.
|
|
4
|
+
"version": "14.192.0-accessibility.2",
|
|
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.
|
|
86
|
-
"@genesislcap/genx": "14.
|
|
87
|
-
"@genesislcap/rollup-builder": "14.
|
|
88
|
-
"@genesislcap/ts-builder": "14.
|
|
89
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
90
|
-
"@genesislcap/vite-builder": "14.
|
|
91
|
-
"@genesislcap/webpack-builder": "14.
|
|
85
|
+
"@genesislcap/foundation-testing": "14.192.0-accessibility.2",
|
|
86
|
+
"@genesislcap/genx": "14.192.0-accessibility.2",
|
|
87
|
+
"@genesislcap/rollup-builder": "14.192.0-accessibility.2",
|
|
88
|
+
"@genesislcap/ts-builder": "14.192.0-accessibility.2",
|
|
89
|
+
"@genesislcap/uvu-playwright-builder": "14.192.0-accessibility.2",
|
|
90
|
+
"@genesislcap/vite-builder": "14.192.0-accessibility.2",
|
|
91
|
+
"@genesislcap/webpack-builder": "14.192.0-accessibility.2",
|
|
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.
|
|
103
|
-
"@genesislcap/foundation-criteria": "14.
|
|
104
|
-
"@genesislcap/foundation-errors": "14.
|
|
105
|
-
"@genesislcap/foundation-logger": "14.
|
|
106
|
-
"@genesislcap/foundation-notifications": "14.
|
|
107
|
-
"@genesislcap/foundation-user": "14.
|
|
108
|
-
"@genesislcap/foundation-utils": "14.
|
|
102
|
+
"@genesislcap/foundation-comms": "14.192.0-accessibility.2",
|
|
103
|
+
"@genesislcap/foundation-criteria": "14.192.0-accessibility.2",
|
|
104
|
+
"@genesislcap/foundation-errors": "14.192.0-accessibility.2",
|
|
105
|
+
"@genesislcap/foundation-logger": "14.192.0-accessibility.2",
|
|
106
|
+
"@genesislcap/foundation-notifications": "14.192.0-accessibility.2",
|
|
107
|
+
"@genesislcap/foundation-user": "14.192.0-accessibility.2",
|
|
108
|
+
"@genesislcap/foundation-utils": "14.192.0-accessibility.2",
|
|
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": "b127a4e9702b04ebed2f1428ce86c4f740d5de10"
|
|
131
131
|
}
|