@genesislcap/foundation-ui 14.307.0 → 14.307.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.
@@ -1255,431 +1255,6 @@
1255
1255
  }
1256
1256
  ]
1257
1257
  },
1258
- {
1259
- "kind": "javascript-module",
1260
- "path": "src/_config/index.ts",
1261
- "declarations": [],
1262
- "exports": [
1263
- {
1264
- "kind": "js",
1265
- "name": "*",
1266
- "declaration": {
1267
- "name": "*",
1268
- "package": "./styles"
1269
- }
1270
- },
1271
- {
1272
- "kind": "js",
1273
- "name": "*",
1274
- "declaration": {
1275
- "name": "*",
1276
- "package": "./tokens"
1277
- }
1278
- },
1279
- {
1280
- "kind": "js",
1281
- "name": "*",
1282
- "declaration": {
1283
- "name": "*",
1284
- "package": "./values"
1285
- }
1286
- }
1287
- ]
1288
- },
1289
- {
1290
- "kind": "javascript-module",
1291
- "path": "src/accordion-item/accordion-item.styles.ts",
1292
- "declarations": [
1293
- {
1294
- "kind": "function",
1295
- "name": "foundationAccordionItemStyles",
1296
- "return": {
1297
- "type": {
1298
- "text": "ElementStyles"
1299
- }
1300
- },
1301
- "parameters": [
1302
- {
1303
- "name": "context",
1304
- "type": {
1305
- "text": "ElementDefinitionContext"
1306
- }
1307
- },
1308
- {
1309
- "name": "definition",
1310
- "type": {
1311
- "text": "FoundationElementDefinition"
1312
- }
1313
- }
1314
- ]
1315
- }
1316
- ],
1317
- "exports": [
1318
- {
1319
- "kind": "js",
1320
- "name": "foundationAccordionItemStyles",
1321
- "declaration": {
1322
- "name": "foundationAccordionItemStyles",
1323
- "module": "src/accordion-item/accordion-item.styles.ts"
1324
- }
1325
- }
1326
- ]
1327
- },
1328
- {
1329
- "kind": "javascript-module",
1330
- "path": "src/accordion-item/accordion-item.template.ts",
1331
- "declarations": [
1332
- {
1333
- "kind": "function",
1334
- "name": "foundationAccordionItemTemplate",
1335
- "return": {
1336
- "type": {
1337
- "text": "ViewTemplate<AccordionItem>"
1338
- }
1339
- },
1340
- "parameters": [
1341
- {
1342
- "name": "context",
1343
- "type": {
1344
- "text": "ElementDefinitionContext"
1345
- }
1346
- },
1347
- {
1348
- "name": "definition",
1349
- "type": {
1350
- "text": "FoundationElementDefinition"
1351
- }
1352
- }
1353
- ]
1354
- }
1355
- ],
1356
- "exports": [
1357
- {
1358
- "kind": "js",
1359
- "name": "foundationAccordionItemTemplate",
1360
- "declaration": {
1361
- "name": "foundationAccordionItemTemplate",
1362
- "module": "src/accordion-item/accordion-item.template.ts"
1363
- }
1364
- }
1365
- ]
1366
- },
1367
- {
1368
- "kind": "javascript-module",
1369
- "path": "src/accordion-item/accordion-item.ts",
1370
- "declarations": [
1371
- {
1372
- "kind": "class",
1373
- "description": "",
1374
- "name": "AccordionItem",
1375
- "superclass": {
1376
- "name": "FASTAccordionItem",
1377
- "package": "@microsoft/fast-components"
1378
- },
1379
- "tagName": "%%prefix%%-accordion-item",
1380
- "customElement": true,
1381
- "attributes": [
1382
- {
1383
- "name": "heading-level",
1384
- "type": {
1385
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1386
- },
1387
- "default": "2",
1388
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1389
- "fieldName": "headinglevel",
1390
- "inheritedFrom": {
1391
- "name": "AccordionItem",
1392
- "module": "src/accordion-item/accordion-item.ts"
1393
- }
1394
- },
1395
- {
1396
- "type": {
1397
- "text": "boolean"
1398
- },
1399
- "default": "false",
1400
- "description": "Expands or collapses the item.",
1401
- "fieldName": "expanded",
1402
- "inheritedFrom": {
1403
- "name": "AccordionItem",
1404
- "module": "src/accordion-item/accordion-item.ts"
1405
- }
1406
- },
1407
- {
1408
- "name": "id",
1409
- "type": {
1410
- "text": "string"
1411
- },
1412
- "description": "The item ID",
1413
- "fieldName": "id",
1414
- "inheritedFrom": {
1415
- "name": "AccordionItem",
1416
- "module": "src/accordion-item/accordion-item.ts"
1417
- }
1418
- }
1419
- ],
1420
- "members": [
1421
- {
1422
- "kind": "field",
1423
- "name": "headinglevel",
1424
- "type": {
1425
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1426
- },
1427
- "privacy": "public",
1428
- "default": "2",
1429
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1430
- "inheritedFrom": {
1431
- "name": "AccordionItem",
1432
- "module": "src/accordion-item/accordion-item.ts"
1433
- }
1434
- },
1435
- {
1436
- "kind": "field",
1437
- "name": "expanded",
1438
- "type": {
1439
- "text": "boolean"
1440
- },
1441
- "privacy": "public",
1442
- "default": "false",
1443
- "description": "Expands or collapses the item.",
1444
- "inheritedFrom": {
1445
- "name": "AccordionItem",
1446
- "module": "src/accordion-item/accordion-item.ts"
1447
- }
1448
- },
1449
- {
1450
- "kind": "field",
1451
- "name": "id",
1452
- "type": {
1453
- "text": "string"
1454
- },
1455
- "privacy": "public",
1456
- "description": "The item ID",
1457
- "inheritedFrom": {
1458
- "name": "AccordionItem",
1459
- "module": "src/accordion-item/accordion-item.ts"
1460
- }
1461
- },
1462
- {
1463
- "kind": "field",
1464
- "name": "change",
1465
- "privacy": "private",
1466
- "inheritedFrom": {
1467
- "name": "AccordionItem",
1468
- "module": "src/accordion-item/accordion-item.ts"
1469
- }
1470
- },
1471
- {
1472
- "kind": "field",
1473
- "name": "_presentation",
1474
- "type": {
1475
- "text": "ComponentPresentation | null | undefined"
1476
- },
1477
- "privacy": "private",
1478
- "default": "void 0",
1479
- "inheritedFrom": {
1480
- "name": "FoundationElement",
1481
- "module": "src/foundation-element/foundation-element.ts"
1482
- }
1483
- },
1484
- {
1485
- "kind": "field",
1486
- "name": "$presentation",
1487
- "type": {
1488
- "text": "ComponentPresentation | null"
1489
- },
1490
- "privacy": "public",
1491
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1492
- "inheritedFrom": {
1493
- "name": "FoundationElement",
1494
- "module": "src/foundation-element/foundation-element.ts"
1495
- }
1496
- },
1497
- {
1498
- "kind": "field",
1499
- "name": "template",
1500
- "type": {
1501
- "text": "ElementViewTemplate | void | null"
1502
- },
1503
- "privacy": "public",
1504
- "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.",
1505
- "inheritedFrom": {
1506
- "name": "FoundationElement",
1507
- "module": "src/foundation-element/foundation-element.ts"
1508
- }
1509
- },
1510
- {
1511
- "kind": "method",
1512
- "name": "templateChanged",
1513
- "privacy": "protected",
1514
- "return": {
1515
- "type": {
1516
- "text": "void"
1517
- }
1518
- },
1519
- "inheritedFrom": {
1520
- "name": "FoundationElement",
1521
- "module": "src/foundation-element/foundation-element.ts"
1522
- }
1523
- },
1524
- {
1525
- "kind": "field",
1526
- "name": "styles",
1527
- "type": {
1528
- "text": "ElementStyles | void | null"
1529
- },
1530
- "privacy": "public",
1531
- "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.",
1532
- "inheritedFrom": {
1533
- "name": "FoundationElement",
1534
- "module": "src/foundation-element/foundation-element.ts"
1535
- }
1536
- },
1537
- {
1538
- "kind": "method",
1539
- "name": "stylesChanged",
1540
- "privacy": "protected",
1541
- "return": {
1542
- "type": {
1543
- "text": "void"
1544
- }
1545
- },
1546
- "inheritedFrom": {
1547
- "name": "FoundationElement",
1548
- "module": "src/foundation-element/foundation-element.ts"
1549
- }
1550
- },
1551
- {
1552
- "kind": "method",
1553
- "name": "compose",
1554
- "privacy": "public",
1555
- "static": true,
1556
- "return": {
1557
- "type": {
1558
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
1559
- }
1560
- },
1561
- "parameters": [
1562
- {
1563
- "name": "this",
1564
- "type": {
1565
- "text": "K"
1566
- }
1567
- },
1568
- {
1569
- "name": "elementDefinition",
1570
- "type": {
1571
- "text": "T"
1572
- },
1573
- "description": "The definition of the element to create the registry\nfunction for."
1574
- }
1575
- ],
1576
- "description": "Defines an element registry function with a set of element definition defaults.",
1577
- "inheritedFrom": {
1578
- "name": "FoundationElement",
1579
- "module": "src/foundation-element/foundation-element.ts"
1580
- }
1581
- }
1582
- ],
1583
- "events": [
1584
- {
1585
- "description": "Fires a custom 'change' event when the button is invoked",
1586
- "name": "change",
1587
- "inheritedFrom": {
1588
- "name": "AccordionItem",
1589
- "module": "src/accordion-item/accordion-item.ts"
1590
- }
1591
- }
1592
- ]
1593
- },
1594
- {
1595
- "kind": "variable",
1596
- "name": "foundationAccordionItemShadowOptions",
1597
- "type": {
1598
- "text": "ShadowRootInit"
1599
- },
1600
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1601
- },
1602
- {
1603
- "kind": "variable",
1604
- "name": "defaultAccordionItemConfig",
1605
- "type": {
1606
- "text": "object"
1607
- },
1608
- "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
1609
- },
1610
- {
1611
- "kind": "variable",
1612
- "name": "foundationAccordionItem",
1613
- "description": "The Foundation Accordion Item",
1614
- "privacy": "public"
1615
- }
1616
- ],
1617
- "exports": [
1618
- {
1619
- "kind": "js",
1620
- "name": "AccordionItem",
1621
- "declaration": {
1622
- "name": "AccordionItem",
1623
- "module": "src/accordion-item/accordion-item.ts"
1624
- }
1625
- },
1626
- {
1627
- "kind": "js",
1628
- "name": "foundationAccordionItemShadowOptions",
1629
- "declaration": {
1630
- "name": "foundationAccordionItemShadowOptions",
1631
- "module": "src/accordion-item/accordion-item.ts"
1632
- }
1633
- },
1634
- {
1635
- "kind": "js",
1636
- "name": "defaultAccordionItemConfig",
1637
- "declaration": {
1638
- "name": "defaultAccordionItemConfig",
1639
- "module": "src/accordion-item/accordion-item.ts"
1640
- }
1641
- },
1642
- {
1643
- "kind": "js",
1644
- "name": "foundationAccordionItem",
1645
- "declaration": {
1646
- "name": "foundationAccordionItem",
1647
- "module": "src/accordion-item/accordion-item.ts"
1648
- }
1649
- }
1650
- ]
1651
- },
1652
- {
1653
- "kind": "javascript-module",
1654
- "path": "src/accordion-item/index.ts",
1655
- "declarations": [],
1656
- "exports": [
1657
- {
1658
- "kind": "js",
1659
- "name": "*",
1660
- "declaration": {
1661
- "name": "*",
1662
- "package": "./accordion-item.template"
1663
- }
1664
- },
1665
- {
1666
- "kind": "js",
1667
- "name": "*",
1668
- "declaration": {
1669
- "name": "*",
1670
- "package": "./accordion-item.styles"
1671
- }
1672
- },
1673
- {
1674
- "kind": "js",
1675
- "name": "*",
1676
- "declaration": {
1677
- "name": "*",
1678
- "package": "./accordion-item"
1679
- }
1680
- }
1681
- ]
1682
- },
1683
1258
  {
1684
1259
  "kind": "javascript-module",
1685
1260
  "path": "src/accordion/accordion.styles.ts",
@@ -1862,6 +1437,37 @@
1862
1437
  }
1863
1438
  ]
1864
1439
  },
1440
+ {
1441
+ "kind": "javascript-module",
1442
+ "path": "src/_config/index.ts",
1443
+ "declarations": [],
1444
+ "exports": [
1445
+ {
1446
+ "kind": "js",
1447
+ "name": "*",
1448
+ "declaration": {
1449
+ "name": "*",
1450
+ "package": "./styles"
1451
+ }
1452
+ },
1453
+ {
1454
+ "kind": "js",
1455
+ "name": "*",
1456
+ "declaration": {
1457
+ "name": "*",
1458
+ "package": "./tokens"
1459
+ }
1460
+ },
1461
+ {
1462
+ "kind": "js",
1463
+ "name": "*",
1464
+ "declaration": {
1465
+ "name": "*",
1466
+ "package": "./values"
1467
+ }
1468
+ }
1469
+ ]
1470
+ },
1865
1471
  {
1866
1472
  "kind": "javascript-module",
1867
1473
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2421,6 +2027,400 @@
2421
2027
  }
2422
2028
  ]
2423
2029
  },
2030
+ {
2031
+ "kind": "javascript-module",
2032
+ "path": "src/accordion-item/accordion-item.styles.ts",
2033
+ "declarations": [
2034
+ {
2035
+ "kind": "function",
2036
+ "name": "foundationAccordionItemStyles",
2037
+ "return": {
2038
+ "type": {
2039
+ "text": "ElementStyles"
2040
+ }
2041
+ },
2042
+ "parameters": [
2043
+ {
2044
+ "name": "context",
2045
+ "type": {
2046
+ "text": "ElementDefinitionContext"
2047
+ }
2048
+ },
2049
+ {
2050
+ "name": "definition",
2051
+ "type": {
2052
+ "text": "FoundationElementDefinition"
2053
+ }
2054
+ }
2055
+ ]
2056
+ }
2057
+ ],
2058
+ "exports": [
2059
+ {
2060
+ "kind": "js",
2061
+ "name": "foundationAccordionItemStyles",
2062
+ "declaration": {
2063
+ "name": "foundationAccordionItemStyles",
2064
+ "module": "src/accordion-item/accordion-item.styles.ts"
2065
+ }
2066
+ }
2067
+ ]
2068
+ },
2069
+ {
2070
+ "kind": "javascript-module",
2071
+ "path": "src/accordion-item/accordion-item.template.ts",
2072
+ "declarations": [
2073
+ {
2074
+ "kind": "function",
2075
+ "name": "foundationAccordionItemTemplate",
2076
+ "return": {
2077
+ "type": {
2078
+ "text": "ViewTemplate<AccordionItem>"
2079
+ }
2080
+ },
2081
+ "parameters": [
2082
+ {
2083
+ "name": "context",
2084
+ "type": {
2085
+ "text": "ElementDefinitionContext"
2086
+ }
2087
+ },
2088
+ {
2089
+ "name": "definition",
2090
+ "type": {
2091
+ "text": "FoundationElementDefinition"
2092
+ }
2093
+ }
2094
+ ]
2095
+ }
2096
+ ],
2097
+ "exports": [
2098
+ {
2099
+ "kind": "js",
2100
+ "name": "foundationAccordionItemTemplate",
2101
+ "declaration": {
2102
+ "name": "foundationAccordionItemTemplate",
2103
+ "module": "src/accordion-item/accordion-item.template.ts"
2104
+ }
2105
+ }
2106
+ ]
2107
+ },
2108
+ {
2109
+ "kind": "javascript-module",
2110
+ "path": "src/accordion-item/accordion-item.ts",
2111
+ "declarations": [
2112
+ {
2113
+ "kind": "class",
2114
+ "description": "",
2115
+ "name": "AccordionItem",
2116
+ "superclass": {
2117
+ "name": "FASTAccordionItem",
2118
+ "package": "@microsoft/fast-components"
2119
+ },
2120
+ "tagName": "%%prefix%%-accordion-item",
2121
+ "customElement": true,
2122
+ "attributes": [
2123
+ {
2124
+ "name": "heading-level",
2125
+ "type": {
2126
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2127
+ },
2128
+ "default": "2",
2129
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
2130
+ "fieldName": "headinglevel",
2131
+ "inheritedFrom": {
2132
+ "name": "AccordionItem",
2133
+ "module": "src/accordion-item/accordion-item.ts"
2134
+ }
2135
+ },
2136
+ {
2137
+ "type": {
2138
+ "text": "boolean"
2139
+ },
2140
+ "default": "false",
2141
+ "description": "Expands or collapses the item.",
2142
+ "fieldName": "expanded",
2143
+ "inheritedFrom": {
2144
+ "name": "AccordionItem",
2145
+ "module": "src/accordion-item/accordion-item.ts"
2146
+ }
2147
+ },
2148
+ {
2149
+ "name": "id",
2150
+ "type": {
2151
+ "text": "string"
2152
+ },
2153
+ "description": "The item ID",
2154
+ "fieldName": "id",
2155
+ "inheritedFrom": {
2156
+ "name": "AccordionItem",
2157
+ "module": "src/accordion-item/accordion-item.ts"
2158
+ }
2159
+ }
2160
+ ],
2161
+ "members": [
2162
+ {
2163
+ "kind": "field",
2164
+ "name": "headinglevel",
2165
+ "type": {
2166
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
2167
+ },
2168
+ "privacy": "public",
2169
+ "default": "2",
2170
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
2171
+ "inheritedFrom": {
2172
+ "name": "AccordionItem",
2173
+ "module": "src/accordion-item/accordion-item.ts"
2174
+ }
2175
+ },
2176
+ {
2177
+ "kind": "field",
2178
+ "name": "expanded",
2179
+ "type": {
2180
+ "text": "boolean"
2181
+ },
2182
+ "privacy": "public",
2183
+ "default": "false",
2184
+ "description": "Expands or collapses the item.",
2185
+ "inheritedFrom": {
2186
+ "name": "AccordionItem",
2187
+ "module": "src/accordion-item/accordion-item.ts"
2188
+ }
2189
+ },
2190
+ {
2191
+ "kind": "field",
2192
+ "name": "id",
2193
+ "type": {
2194
+ "text": "string"
2195
+ },
2196
+ "privacy": "public",
2197
+ "description": "The item ID",
2198
+ "inheritedFrom": {
2199
+ "name": "AccordionItem",
2200
+ "module": "src/accordion-item/accordion-item.ts"
2201
+ }
2202
+ },
2203
+ {
2204
+ "kind": "field",
2205
+ "name": "change",
2206
+ "privacy": "private",
2207
+ "inheritedFrom": {
2208
+ "name": "AccordionItem",
2209
+ "module": "src/accordion-item/accordion-item.ts"
2210
+ }
2211
+ },
2212
+ {
2213
+ "kind": "field",
2214
+ "name": "_presentation",
2215
+ "type": {
2216
+ "text": "ComponentPresentation | null | undefined"
2217
+ },
2218
+ "privacy": "private",
2219
+ "default": "void 0",
2220
+ "inheritedFrom": {
2221
+ "name": "FoundationElement",
2222
+ "module": "src/foundation-element/foundation-element.ts"
2223
+ }
2224
+ },
2225
+ {
2226
+ "kind": "field",
2227
+ "name": "$presentation",
2228
+ "type": {
2229
+ "text": "ComponentPresentation | null"
2230
+ },
2231
+ "privacy": "public",
2232
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
2233
+ "inheritedFrom": {
2234
+ "name": "FoundationElement",
2235
+ "module": "src/foundation-element/foundation-element.ts"
2236
+ }
2237
+ },
2238
+ {
2239
+ "kind": "field",
2240
+ "name": "template",
2241
+ "type": {
2242
+ "text": "ElementViewTemplate | void | null"
2243
+ },
2244
+ "privacy": "public",
2245
+ "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.",
2246
+ "inheritedFrom": {
2247
+ "name": "FoundationElement",
2248
+ "module": "src/foundation-element/foundation-element.ts"
2249
+ }
2250
+ },
2251
+ {
2252
+ "kind": "method",
2253
+ "name": "templateChanged",
2254
+ "privacy": "protected",
2255
+ "return": {
2256
+ "type": {
2257
+ "text": "void"
2258
+ }
2259
+ },
2260
+ "inheritedFrom": {
2261
+ "name": "FoundationElement",
2262
+ "module": "src/foundation-element/foundation-element.ts"
2263
+ }
2264
+ },
2265
+ {
2266
+ "kind": "field",
2267
+ "name": "styles",
2268
+ "type": {
2269
+ "text": "ElementStyles | void | null"
2270
+ },
2271
+ "privacy": "public",
2272
+ "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.",
2273
+ "inheritedFrom": {
2274
+ "name": "FoundationElement",
2275
+ "module": "src/foundation-element/foundation-element.ts"
2276
+ }
2277
+ },
2278
+ {
2279
+ "kind": "method",
2280
+ "name": "stylesChanged",
2281
+ "privacy": "protected",
2282
+ "return": {
2283
+ "type": {
2284
+ "text": "void"
2285
+ }
2286
+ },
2287
+ "inheritedFrom": {
2288
+ "name": "FoundationElement",
2289
+ "module": "src/foundation-element/foundation-element.ts"
2290
+ }
2291
+ },
2292
+ {
2293
+ "kind": "method",
2294
+ "name": "compose",
2295
+ "privacy": "public",
2296
+ "static": true,
2297
+ "return": {
2298
+ "type": {
2299
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
2300
+ }
2301
+ },
2302
+ "parameters": [
2303
+ {
2304
+ "name": "this",
2305
+ "type": {
2306
+ "text": "K"
2307
+ }
2308
+ },
2309
+ {
2310
+ "name": "elementDefinition",
2311
+ "type": {
2312
+ "text": "T"
2313
+ },
2314
+ "description": "The definition of the element to create the registry\nfunction for."
2315
+ }
2316
+ ],
2317
+ "description": "Defines an element registry function with a set of element definition defaults.",
2318
+ "inheritedFrom": {
2319
+ "name": "FoundationElement",
2320
+ "module": "src/foundation-element/foundation-element.ts"
2321
+ }
2322
+ }
2323
+ ],
2324
+ "events": [
2325
+ {
2326
+ "description": "Fires a custom 'change' event when the button is invoked",
2327
+ "name": "change",
2328
+ "inheritedFrom": {
2329
+ "name": "AccordionItem",
2330
+ "module": "src/accordion-item/accordion-item.ts"
2331
+ }
2332
+ }
2333
+ ]
2334
+ },
2335
+ {
2336
+ "kind": "variable",
2337
+ "name": "foundationAccordionItemShadowOptions",
2338
+ "type": {
2339
+ "text": "ShadowRootInit"
2340
+ },
2341
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2342
+ },
2343
+ {
2344
+ "kind": "variable",
2345
+ "name": "defaultAccordionItemConfig",
2346
+ "type": {
2347
+ "text": "object"
2348
+ },
2349
+ "default": "{\n collapsedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"collapsed-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M9 5.44446V12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"plus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n expandedIcon: `<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\" slot=\"expanded-icon\">\n <path d=\"M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <path class=\"minus-sign\" d=\"M5.44446 9H12.5556\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n </svg>`,\n}"
2350
+ },
2351
+ {
2352
+ "kind": "variable",
2353
+ "name": "foundationAccordionItem",
2354
+ "description": "The Foundation Accordion Item",
2355
+ "privacy": "public"
2356
+ }
2357
+ ],
2358
+ "exports": [
2359
+ {
2360
+ "kind": "js",
2361
+ "name": "AccordionItem",
2362
+ "declaration": {
2363
+ "name": "AccordionItem",
2364
+ "module": "src/accordion-item/accordion-item.ts"
2365
+ }
2366
+ },
2367
+ {
2368
+ "kind": "js",
2369
+ "name": "foundationAccordionItemShadowOptions",
2370
+ "declaration": {
2371
+ "name": "foundationAccordionItemShadowOptions",
2372
+ "module": "src/accordion-item/accordion-item.ts"
2373
+ }
2374
+ },
2375
+ {
2376
+ "kind": "js",
2377
+ "name": "defaultAccordionItemConfig",
2378
+ "declaration": {
2379
+ "name": "defaultAccordionItemConfig",
2380
+ "module": "src/accordion-item/accordion-item.ts"
2381
+ }
2382
+ },
2383
+ {
2384
+ "kind": "js",
2385
+ "name": "foundationAccordionItem",
2386
+ "declaration": {
2387
+ "name": "foundationAccordionItem",
2388
+ "module": "src/accordion-item/accordion-item.ts"
2389
+ }
2390
+ }
2391
+ ]
2392
+ },
2393
+ {
2394
+ "kind": "javascript-module",
2395
+ "path": "src/accordion-item/index.ts",
2396
+ "declarations": [],
2397
+ "exports": [
2398
+ {
2399
+ "kind": "js",
2400
+ "name": "*",
2401
+ "declaration": {
2402
+ "name": "*",
2403
+ "package": "./accordion-item.template"
2404
+ }
2405
+ },
2406
+ {
2407
+ "kind": "js",
2408
+ "name": "*",
2409
+ "declaration": {
2410
+ "name": "*",
2411
+ "package": "./accordion-item.styles"
2412
+ }
2413
+ },
2414
+ {
2415
+ "kind": "js",
2416
+ "name": "*",
2417
+ "declaration": {
2418
+ "name": "*",
2419
+ "package": "./accordion-item"
2420
+ }
2421
+ }
2422
+ ]
2423
+ },
2424
2424
  {
2425
2425
  "kind": "javascript-module",
2426
2426
  "path": "src/anchor/anchor.styles.ts",
@@ -40994,6 +40994,15 @@
40994
40994
  "default": "`Expired`",
40995
40995
  "attribute": "date-countdown-completed-message"
40996
40996
  },
40997
+ {
40998
+ "kind": "field",
40999
+ "name": "dateCountdownUnit",
41000
+ "type": {
41001
+ "text": "CountdownUnit"
41002
+ },
41003
+ "default": "'second'",
41004
+ "attribute": "date-countdown-unit"
41005
+ },
40997
41006
  {
40998
41007
  "kind": "field",
40999
41008
  "name": "dateInterval",
@@ -41222,6 +41231,15 @@
41222
41231
  "fieldName": "dateCountdownCompletedMessage",
41223
41232
  "description": "the string that will be shown when the countdown is complete"
41224
41233
  },
41234
+ {
41235
+ "name": "date-countdown-unit",
41236
+ "type": {
41237
+ "text": "CountdownUnit"
41238
+ },
41239
+ "default": "'second'",
41240
+ "fieldName": "dateCountdownUnit",
41241
+ "description": "the minimum unit of time shown in the countdown. Defaults to 'seconds'"
41242
+ },
41225
41243
  {
41226
41244
  "name": "background-color",
41227
41245
  "type": {
@@ -41303,6 +41321,15 @@
41303
41321
  "default": "`Expired`",
41304
41322
  "attribute": "date-countdown-completed-message",
41305
41323
  "fieldName": "dateCountdownCompletedMessage"
41324
+ },
41325
+ {
41326
+ "name": "date-countdown-unit",
41327
+ "type": {
41328
+ "text": "CountdownUnit"
41329
+ },
41330
+ "default": "'second'",
41331
+ "attribute": "date-countdown-unit",
41332
+ "fieldName": "dateCountdownUnit"
41306
41333
  }
41307
41334
  ],
41308
41335
  "superclass": {
@@ -1,8 +1,13 @@
1
1
  import { FoundationElement } from '@microsoft/fast-foundation';
2
+ /**
3
+ * @public
4
+ * Unit for date countdown. Rounds down to the nearest whole number. If not seconds and time is greater than zero but less than the smallest unit it will show >1m or >1h.
5
+ */
6
+ export type CountdownUnit = 'hour' | 'minute' | 'second';
2
7
  /**
3
8
  * @internal
4
9
  */
5
- export declare const formatTimeForCountDown: (totalMilliseconds: number) => string;
10
+ export declare const formatTimeForCountDown: (totalMilliseconds: number, minUnit?: CountdownUnit) => string;
6
11
  /**
7
12
  * @tagname %%prefix%%-status-pill
8
13
  */
@@ -107,6 +112,16 @@ export declare class StatusPill extends FoundationElement {
107
112
  * ```
108
113
  */
109
114
  dateCountdownCompletedMessage: string;
115
+ /**
116
+ * @attr date-countdown-unit - the minimum unit of time shown in the countdown. Defaults to 'seconds'
117
+ * @example
118
+ * Status pill with countdown min unit
119
+ * ```html
120
+ * <rapid-status-pill date-countdown-unit='minutes'>
121
+ * </rapid-status-pill>
122
+ * ```
123
+ */
124
+ dateCountdownUnit: CountdownUnit;
110
125
  /**
111
126
  * @internal
112
127
  */
@@ -1 +1 @@
1
- {"version":3,"file":"status-pill.d.ts","sourceRoot":"","sources":["../../../src/status-pill/status-pill.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAU/D;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,mBAAmB,MAAM,KAAG,MAmBlE,CAAC;AAEF;;GAEG;AACH,qBAAa,UAAW,SAAQ,iBAAiB;IAC/C;;;;;;;;OAQG;IACsC,eAAe,EAAE,MAAM,CAAC;IAEjE;;;;;;;;OAQG;IAC+B,QAAQ,EAAE,MAAM,CAAC;IAEnD;;;;;;;;OAQG;IAC8B,OAAO,EAAE,MAAM,CAAC;IAEjD;;;;;;;;OAQG;IACkC,WAAW,EAAE,MAAM,CAAC;IAEzD;;;;;;;;OAQG;IACmD,0BAA0B,EAAE,MAAM,CAAC;IAEzF;;;;;;;;OAQG;IAC+B,QAAQ,EAAE,MAAM,CAAQ;IAE1D;;;;;;;;OAQG;IACgC,SAAS,EAAE,MAAM,CAAC;IAErD;;;;;;;;OAQG;IACG,IAAI,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACoC,aAAa,EAAE,MAAM,CAAC;IAE7D;;;;;;;;OAQG;IACsD,6BAA6B,EAAE,MAAM,CAClF;IAEZ;;OAEG;IACS,SAAS,EAAE,MAAM,CAAC;IAE9B,OAAO,CAAC,YAAY,CAAC;IAErB;;OAEG;IACH,oBAAoB,CAAC,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAWvC,oBAAoB;IAKpB,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,mBAAmB;CAO5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;qBAI/B,CAAC"}
1
+ {"version":3,"file":"status-pill.d.ts","sourceRoot":"","sources":["../../../src/status-pill/status-pill.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAU/D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,mBAAmB,MAAM,EACzB,UAAS,aAAwB,KAChC,MAoCF,CAAC;AAEF;;GAEG;AACH,qBAAa,UAAW,SAAQ,iBAAiB;IAC/C;;;;;;;;OAQG;IACsC,eAAe,EAAE,MAAM,CAAC;IAEjE;;;;;;;;OAQG;IAC+B,QAAQ,EAAE,MAAM,CAAC;IAEnD;;;;;;;;OAQG;IAC8B,OAAO,EAAE,MAAM,CAAC;IAEjD;;;;;;;;OAQG;IACkC,WAAW,EAAE,MAAM,CAAC;IAEzD;;;;;;;;OAQG;IACmD,0BAA0B,EAAE,MAAM,CAAC;IAEzF;;;;;;;;OAQG;IAC+B,QAAQ,EAAE,MAAM,CAAQ;IAE1D;;;;;;;;OAQG;IACgC,SAAS,EAAE,MAAM,CAAC;IAErD;;;;;;;;OAQG;IACG,IAAI,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACoC,aAAa,EAAE,MAAM,CAAC;IAE7D;;;;;;;;OAQG;IACsD,6BAA6B,EAAE,MAAM,CAClF;IAEZ;;;;;;;;OAQG;IACyC,iBAAiB,EAAE,aAAa,CAAY;IAExF;;OAEG;IACS,SAAS,EAAE,MAAM,CAAC;IAE9B,OAAO,CAAC,YAAY,CAAC;IAErB;;OAEG;IACH,oBAAoB,CAAC,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAWvC,oBAAoB;IAKpB,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,mBAAmB;CAO5B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;qBAI/B,CAAC"}
@@ -11,23 +11,42 @@ const SECONDS_IN_MINUTE = 60;
11
11
  /**
12
12
  * @internal
13
13
  */
14
- export const formatTimeForCountDown = (totalMilliseconds) => {
14
+ export const formatTimeForCountDown = (totalMilliseconds, minUnit = 'second') => {
15
15
  let totalSeconds = totalMilliseconds / ONE_SECOND_IN_MILIS;
16
16
  const days = Math.floor(totalSeconds / SECONDS_IN_DAY);
17
17
  totalSeconds %= SECONDS_IN_DAY;
18
18
  const hours = Math.floor(totalSeconds / SECONDS_IN_HOUR);
19
19
  totalSeconds %= SECONDS_IN_HOUR;
20
20
  const minutes = Math.floor(totalSeconds / SECONDS_IN_MINUTE);
21
- const seconds = totalSeconds % SECONDS_IN_MINUTE;
21
+ const seconds = Math.floor(totalSeconds % SECONDS_IN_MINUTE);
22
22
  const parts = [];
23
23
  if (days)
24
24
  parts.push(`${days}d`);
25
- if (hours)
26
- parts.push(`${hours}h`);
27
- if (minutes)
28
- parts.push(`${minutes}m`);
29
- if (seconds)
30
- parts.push(`${seconds}s`);
25
+ switch (minUnit) {
26
+ case 'minute':
27
+ if (hours)
28
+ parts.push(`${hours}h`);
29
+ if (minutes)
30
+ parts.push(`${minutes}m`);
31
+ if (!minutes && seconds)
32
+ parts.push('< 1m'); // if less than one minute but remaining minutes show less than 1 minute
33
+ break;
34
+ case 'hour':
35
+ if (hours)
36
+ parts.push(`${hours}h`);
37
+ if (!hours && (minutes || seconds))
38
+ parts.push('< 1h'); // if less than one hour but remaining minutes show less than 1 hour.
39
+ break;
40
+ case 'second':
41
+ default:
42
+ if (hours)
43
+ parts.push(`${hours}h`);
44
+ if (minutes)
45
+ parts.push(`${minutes}m`);
46
+ if (seconds)
47
+ parts.push(`${seconds}s`);
48
+ break;
49
+ }
31
50
  return parts.length ? parts.join(' ') : '0s';
32
51
  };
33
52
  /**
@@ -56,6 +75,16 @@ export class StatusPill extends FoundationElement {
56
75
  * ```
57
76
  */
58
77
  this.dateCountdownCompletedMessage = `Expired`;
78
+ /**
79
+ * @attr date-countdown-unit - the minimum unit of time shown in the countdown. Defaults to 'seconds'
80
+ * @example
81
+ * Status pill with countdown min unit
82
+ * ```html
83
+ * <rapid-status-pill date-countdown-unit='minutes'>
84
+ * </rapid-status-pill>
85
+ * ```
86
+ */
87
+ this.dateCountdownUnit = 'second';
59
88
  }
60
89
  /**
61
90
  * @internal
@@ -93,7 +122,7 @@ export class StatusPill extends FoundationElement {
93
122
  clearInterval(this.dateInterval);
94
123
  }
95
124
  else {
96
- this.countdown = formatTimeForCountDown(diff);
125
+ this.countdown = formatTimeForCountDown(diff, this.dateCountdownUnit);
97
126
  }
98
127
  }
99
128
  clearCountdownTimer() {
@@ -134,6 +163,9 @@ __decorate([
134
163
  __decorate([
135
164
  attr({ attribute: 'date-countdown-completed-message' })
136
165
  ], StatusPill.prototype, "dateCountdownCompletedMessage", void 0);
166
+ __decorate([
167
+ attr({ attribute: 'date-countdown-unit' })
168
+ ], StatusPill.prototype, "dateCountdownUnit", void 0);
137
169
  __decorate([
138
170
  observable
139
171
  ], StatusPill.prototype, "countdown", void 0);
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.307.0",
4
+ "version": "14.307.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -83,13 +83,13 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@genesislcap/foundation-testing": "14.307.0",
87
- "@genesislcap/genx": "14.307.0",
88
- "@genesislcap/rollup-builder": "14.307.0",
89
- "@genesislcap/ts-builder": "14.307.0",
90
- "@genesislcap/uvu-playwright-builder": "14.307.0",
91
- "@genesislcap/vite-builder": "14.307.0",
92
- "@genesislcap/webpack-builder": "14.307.0",
86
+ "@genesislcap/foundation-testing": "14.307.1",
87
+ "@genesislcap/genx": "14.307.1",
88
+ "@genesislcap/rollup-builder": "14.307.1",
89
+ "@genesislcap/ts-builder": "14.307.1",
90
+ "@genesislcap/uvu-playwright-builder": "14.307.1",
91
+ "@genesislcap/vite-builder": "14.307.1",
92
+ "@genesislcap/webpack-builder": "14.307.1",
93
93
  "copyfiles": "^2.4.1",
94
94
  "rxjs": "^7.5.4"
95
95
  },
@@ -99,15 +99,15 @@
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/expression-builder": "14.307.0",
103
- "@genesislcap/foundation-comms": "14.307.0",
104
- "@genesislcap/foundation-criteria": "14.307.0",
105
- "@genesislcap/foundation-errors": "14.307.0",
106
- "@genesislcap/foundation-events": "14.307.0",
107
- "@genesislcap/foundation-logger": "14.307.0",
108
- "@genesislcap/foundation-notifications": "14.307.0",
109
- "@genesislcap/foundation-user": "14.307.0",
110
- "@genesislcap/foundation-utils": "14.307.0",
102
+ "@genesislcap/expression-builder": "14.307.1",
103
+ "@genesislcap/foundation-comms": "14.307.1",
104
+ "@genesislcap/foundation-criteria": "14.307.1",
105
+ "@genesislcap/foundation-errors": "14.307.1",
106
+ "@genesislcap/foundation-events": "14.307.1",
107
+ "@genesislcap/foundation-logger": "14.307.1",
108
+ "@genesislcap/foundation-notifications": "14.307.1",
109
+ "@genesislcap/foundation-user": "14.307.1",
110
+ "@genesislcap/foundation-utils": "14.307.1",
111
111
  "@microsoft/fast-colors": "5.3.1",
112
112
  "@microsoft/fast-components": "2.30.6",
113
113
  "@microsoft/fast-element": "1.14.0",
@@ -128,5 +128,5 @@
128
128
  "access": "public"
129
129
  },
130
130
  "customElements": "dist/custom-elements.json",
131
- "gitHead": "6a075391e3bb335bd43da0069693ade3f5565042"
131
+ "gitHead": "3316d0415337b2bcb033eae8fcead5a550920cf9"
132
132
  }