@genesislcap/foundation-ui 14.156.0 → 14.156.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +1661 -1661
  2. package/package.json +15 -15
@@ -842,37 +842,6 @@
842
842
  }
843
843
  ]
844
844
  },
845
- {
846
- "kind": "javascript-module",
847
- "path": "src/_config/index.ts",
848
- "declarations": [],
849
- "exports": [
850
- {
851
- "kind": "js",
852
- "name": "*",
853
- "declaration": {
854
- "name": "*",
855
- "package": "./styles"
856
- }
857
- },
858
- {
859
- "kind": "js",
860
- "name": "*",
861
- "declaration": {
862
- "name": "*",
863
- "package": "./tokens"
864
- }
865
- },
866
- {
867
- "kind": "js",
868
- "name": "*",
869
- "declaration": {
870
- "name": "*",
871
- "package": "./values"
872
- }
873
- }
874
- ]
875
- },
876
845
  {
877
846
  "kind": "javascript-module",
878
847
  "path": "src/accordion/accordion.styles.ts",
@@ -1057,11 +1026,65 @@
1057
1026
  },
1058
1027
  {
1059
1028
  "kind": "javascript-module",
1060
- "path": "src/accordion-item/accordion-item.styles.ts",
1029
+ "path": "src/_config/index.ts",
1030
+ "declarations": [],
1031
+ "exports": [
1032
+ {
1033
+ "kind": "js",
1034
+ "name": "*",
1035
+ "declaration": {
1036
+ "name": "*",
1037
+ "package": "./styles"
1038
+ }
1039
+ },
1040
+ {
1041
+ "kind": "js",
1042
+ "name": "*",
1043
+ "declaration": {
1044
+ "name": "*",
1045
+ "package": "./tokens"
1046
+ }
1047
+ },
1048
+ {
1049
+ "kind": "js",
1050
+ "name": "*",
1051
+ "declaration": {
1052
+ "name": "*",
1053
+ "package": "./values"
1054
+ }
1055
+ }
1056
+ ]
1057
+ },
1058
+ {
1059
+ "kind": "javascript-module",
1060
+ "path": "src/actions-menu/actions-menu.styles.ts",
1061
1061
  "declarations": [
1062
1062
  {
1063
1063
  "kind": "function",
1064
- "name": "foundationAccordionItemStyles",
1064
+ "name": "actionsMenuBaseStyles",
1065
+ "return": {
1066
+ "type": {
1067
+ "text": "ElementStyles"
1068
+ }
1069
+ },
1070
+ "parameters": [
1071
+ {
1072
+ "name": "context",
1073
+ "type": {
1074
+ "text": "ElementDefinitionContext"
1075
+ }
1076
+ },
1077
+ {
1078
+ "name": "definition",
1079
+ "type": {
1080
+ "text": "FoundationElementDefinition"
1081
+ }
1082
+ }
1083
+ ]
1084
+ },
1085
+ {
1086
+ "kind": "function",
1087
+ "name": "foundationActionsMenuStyles",
1065
1088
  "return": {
1066
1089
  "type": {
1067
1090
  "text": "ElementStyles"
@@ -1086,173 +1109,286 @@
1086
1109
  "exports": [
1087
1110
  {
1088
1111
  "kind": "js",
1089
- "name": "foundationAccordionItemStyles",
1112
+ "name": "actionsMenuBaseStyles",
1090
1113
  "declaration": {
1091
- "name": "foundationAccordionItemStyles",
1092
- "module": "src/accordion-item/accordion-item.styles.ts"
1114
+ "name": "actionsMenuBaseStyles",
1115
+ "module": "src/actions-menu/actions-menu.styles.ts"
1116
+ }
1117
+ },
1118
+ {
1119
+ "kind": "js",
1120
+ "name": "foundationActionsMenuStyles",
1121
+ "declaration": {
1122
+ "name": "foundationActionsMenuStyles",
1123
+ "module": "src/actions-menu/actions-menu.styles.ts"
1093
1124
  }
1094
1125
  }
1095
1126
  ]
1096
1127
  },
1097
1128
  {
1098
1129
  "kind": "javascript-module",
1099
- "path": "src/accordion-item/accordion-item.template.ts",
1130
+ "path": "src/actions-menu/actions-menu.template.ts",
1100
1131
  "declarations": [
1101
1132
  {
1102
1133
  "kind": "function",
1103
- "name": "foundationAccordionItemTemplate",
1104
- "return": {
1105
- "type": {
1106
- "text": "ViewTemplate<AccordionItem>"
1107
- }
1108
- },
1134
+ "name": "menuTemplate",
1109
1135
  "parameters": [
1110
1136
  {
1111
- "name": "context",
1137
+ "name": "prefix",
1112
1138
  "type": {
1113
- "text": "ElementDefinitionContext"
1139
+ "text": "string"
1114
1140
  }
1115
- },
1141
+ }
1142
+ ]
1143
+ },
1144
+ {
1145
+ "kind": "function",
1146
+ "name": "singleOptionTemplate",
1147
+ "parameters": [
1116
1148
  {
1117
- "name": "definition",
1149
+ "name": "prefix",
1118
1150
  "type": {
1119
- "text": "FoundationElementDefinition"
1151
+ "text": "string"
1120
1152
  }
1121
1153
  }
1122
1154
  ]
1155
+ },
1156
+ {
1157
+ "kind": "variable",
1158
+ "name": "foundationActionsMenuTemplate",
1159
+ "type": {
1160
+ "text": "ViewTemplate<ActionsMenu>"
1161
+ },
1162
+ "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1123
1163
  }
1124
1164
  ],
1125
1165
  "exports": [
1126
1166
  {
1127
1167
  "kind": "js",
1128
- "name": "foundationAccordionItemTemplate",
1168
+ "name": "menuTemplate",
1129
1169
  "declaration": {
1130
- "name": "foundationAccordionItemTemplate",
1131
- "module": "src/accordion-item/accordion-item.template.ts"
1170
+ "name": "menuTemplate",
1171
+ "module": "src/actions-menu/actions-menu.template.ts"
1172
+ }
1173
+ },
1174
+ {
1175
+ "kind": "js",
1176
+ "name": "singleOptionTemplate",
1177
+ "declaration": {
1178
+ "name": "singleOptionTemplate",
1179
+ "module": "src/actions-menu/actions-menu.template.ts"
1180
+ }
1181
+ },
1182
+ {
1183
+ "kind": "js",
1184
+ "name": "foundationActionsMenuTemplate",
1185
+ "declaration": {
1186
+ "name": "foundationActionsMenuTemplate",
1187
+ "module": "src/actions-menu/actions-menu.template.ts"
1132
1188
  }
1133
1189
  }
1134
1190
  ]
1135
1191
  },
1136
1192
  {
1137
1193
  "kind": "javascript-module",
1138
- "path": "src/accordion-item/accordion-item.ts",
1194
+ "path": "src/actions-menu/actions-menu.ts",
1139
1195
  "declarations": [
1140
1196
  {
1141
1197
  "kind": "class",
1142
1198
  "description": "",
1143
- "name": "AccordionItem",
1144
- "superclass": {
1145
- "name": "FASTAccordionItem",
1146
- "package": "@microsoft/fast-components"
1147
- },
1148
- "tagName": "%%prefix%%-accordion-item",
1149
- "customElement": true,
1150
- "attributes": [
1199
+ "name": "ActionsMenu",
1200
+ "members": [
1151
1201
  {
1152
- "name": "heading-level",
1202
+ "kind": "field",
1203
+ "name": "actions",
1153
1204
  "type": {
1154
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1155
- },
1156
- "default": "2",
1157
- "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1158
- "fieldName": "headinglevel",
1159
- "inheritedFrom": {
1160
- "name": "AccordionItem",
1161
- "module": "src/accordion-item/accordion-item.ts"
1205
+ "text": "ActionMenuItem[]"
1162
1206
  }
1163
1207
  },
1164
1208
  {
1209
+ "kind": "field",
1210
+ "name": "isVertical",
1165
1211
  "type": {
1166
1212
  "text": "boolean"
1167
1213
  },
1168
- "default": "false",
1169
- "description": "Expands or collapses the item.",
1170
- "fieldName": "expanded",
1171
- "inheritedFrom": {
1172
- "name": "AccordionItem",
1173
- "module": "src/accordion-item/accordion-item.ts"
1174
- }
1214
+ "default": "false"
1175
1215
  },
1176
- {
1177
- "name": "id",
1178
- "type": {
1179
- "text": "string"
1180
- },
1181
- "description": "The item ID",
1182
- "fieldName": "id",
1183
- "inheritedFrom": {
1184
- "name": "AccordionItem",
1185
- "module": "src/accordion-item/accordion-item.ts"
1186
- }
1187
- }
1188
- ],
1189
- "members": [
1190
1216
  {
1191
1217
  "kind": "field",
1192
- "name": "headinglevel",
1218
+ "name": "addDefaultActions",
1193
1219
  "type": {
1194
- "text": "1 | 2 | 3 | 4 | 5 | 6"
1220
+ "text": "boolean"
1195
1221
  },
1196
- "privacy": "public",
1197
- "default": "2",
1198
- "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1199
- "inheritedFrom": {
1200
- "name": "AccordionItem",
1201
- "module": "src/accordion-item/accordion-item.ts"
1202
- }
1222
+ "default": "true"
1203
1223
  },
1204
1224
  {
1205
1225
  "kind": "field",
1206
- "name": "expanded",
1226
+ "name": "autoCloseOnAction",
1207
1227
  "type": {
1208
1228
  "text": "boolean"
1209
1229
  },
1210
- "privacy": "public",
1211
- "default": "false",
1212
- "description": "Expands or collapses the item.",
1213
- "inheritedFrom": {
1214
- "name": "AccordionItem",
1215
- "module": "src/accordion-item/accordion-item.ts"
1216
- }
1230
+ "default": "true"
1217
1231
  },
1218
1232
  {
1219
1233
  "kind": "field",
1220
- "name": "id",
1234
+ "name": "classNames",
1221
1235
  "type": {
1222
1236
  "text": "string"
1223
- },
1224
- "privacy": "public",
1225
- "description": "The item ID",
1226
- "inheritedFrom": {
1227
- "name": "AccordionItem",
1228
- "module": "src/accordion-item/accordion-item.ts"
1229
1237
  }
1230
1238
  },
1231
1239
  {
1232
1240
  "kind": "field",
1233
- "name": "change",
1234
- "privacy": "private",
1235
- "inheritedFrom": {
1236
- "name": "AccordionItem",
1237
- "module": "src/accordion-item/accordion-item.ts"
1241
+ "name": "definition",
1242
+ "type": {
1243
+ "text": "any"
1238
1244
  }
1239
1245
  },
1240
1246
  {
1241
1247
  "kind": "field",
1242
- "name": "_presentation",
1248
+ "name": "name",
1243
1249
  "type": {
1244
- "text": "ComponentPresentation | null | undefined"
1250
+ "text": "string"
1245
1251
  },
1246
- "privacy": "private",
1247
- "default": "void 0",
1248
- "inheritedFrom": {
1249
- "name": "FoundationElement",
1250
- "module": "src/foundation-element/foundation-element.ts"
1251
- }
1252
+ "default": "'Actions'"
1252
1253
  },
1253
1254
  {
1254
1255
  "kind": "field",
1255
- "name": "$presentation",
1256
+ "name": "open",
1257
+ "type": {
1258
+ "text": "boolean"
1259
+ },
1260
+ "default": "false"
1261
+ },
1262
+ {
1263
+ "kind": "field",
1264
+ "name": "buttonAppearance",
1265
+ "type": {
1266
+ "text": "string"
1267
+ }
1268
+ },
1269
+ {
1270
+ "kind": "field",
1271
+ "name": "hideDisabled",
1272
+ "type": {
1273
+ "text": "boolean"
1274
+ },
1275
+ "default": "false"
1276
+ },
1277
+ {
1278
+ "kind": "field",
1279
+ "name": "hideMenuSingleOption",
1280
+ "type": {
1281
+ "text": "boolean"
1282
+ },
1283
+ "default": "false"
1284
+ },
1285
+ {
1286
+ "kind": "field",
1287
+ "name": "singleOption",
1288
+ "type": {
1289
+ "text": "ActionMenuItem"
1290
+ }
1291
+ },
1292
+ {
1293
+ "kind": "field",
1294
+ "name": "actionsMenu",
1295
+ "type": {
1296
+ "text": "HTMLElement"
1297
+ }
1298
+ },
1299
+ {
1300
+ "kind": "method",
1301
+ "name": "definitionChanged",
1302
+ "privacy": "protected",
1303
+ "parameters": [
1304
+ {
1305
+ "name": "oldValue",
1306
+ "type": {
1307
+ "text": "any"
1308
+ }
1309
+ },
1310
+ {
1311
+ "name": "newValue",
1312
+ "type": {
1313
+ "text": "any"
1314
+ }
1315
+ }
1316
+ ]
1317
+ },
1318
+ {
1319
+ "kind": "method",
1320
+ "name": "openChanged",
1321
+ "privacy": "protected"
1322
+ },
1323
+ {
1324
+ "kind": "method",
1325
+ "name": "toggleActionsMenuVisibility"
1326
+ },
1327
+ {
1328
+ "kind": "method",
1329
+ "name": "onActionMenuItemClick",
1330
+ "parameters": [
1331
+ {
1332
+ "name": "callback",
1333
+ "type": {
1334
+ "text": "(rowData) => void | any"
1335
+ }
1336
+ }
1337
+ ]
1338
+ },
1339
+ {
1340
+ "kind": "field",
1341
+ "name": "allActions",
1342
+ "type": {
1343
+ "text": "ActionMenuItem[]"
1344
+ },
1345
+ "readonly": true
1346
+ },
1347
+ {
1348
+ "kind": "field",
1349
+ "name": "rowData",
1350
+ "readonly": true
1351
+ },
1352
+ {
1353
+ "kind": "method",
1354
+ "name": "getLabel",
1355
+ "parameters": [
1356
+ {
1357
+ "name": "name",
1358
+ "type": {
1359
+ "text": "string | ((rowData: any) => string)"
1360
+ }
1361
+ }
1362
+ ]
1363
+ },
1364
+ {
1365
+ "kind": "method",
1366
+ "name": "getTemplate",
1367
+ "parameters": [
1368
+ {
1369
+ "name": "prefix",
1370
+ "type": {
1371
+ "text": "string"
1372
+ }
1373
+ }
1374
+ ]
1375
+ },
1376
+ {
1377
+ "kind": "field",
1378
+ "name": "_presentation",
1379
+ "type": {
1380
+ "text": "ComponentPresentation | null | undefined"
1381
+ },
1382
+ "privacy": "private",
1383
+ "default": "void 0",
1384
+ "inheritedFrom": {
1385
+ "name": "FoundationElement",
1386
+ "module": "src/foundation-element/foundation-element.ts"
1387
+ }
1388
+ },
1389
+ {
1390
+ "kind": "field",
1391
+ "name": "$presentation",
1256
1392
  "type": {
1257
1393
  "text": "ComponentPresentation | null"
1258
1394
  },
@@ -1349,86 +1485,115 @@
1349
1485
  }
1350
1486
  }
1351
1487
  ],
1352
- "events": [
1488
+ "attributes": [
1353
1489
  {
1354
- "description": "Fires a custom 'change' event when the button is invoked",
1355
- "name": "change",
1356
- "inheritedFrom": {
1357
- "name": "AccordionItem",
1358
- "module": "src/accordion-item/accordion-item.ts"
1359
- }
1490
+ "name": "is-vertical",
1491
+ "type": {
1492
+ "text": "boolean"
1493
+ },
1494
+ "default": "false",
1495
+ "fieldName": "isVertical"
1496
+ },
1497
+ {
1498
+ "name": "add-default-actions",
1499
+ "type": {
1500
+ "text": "boolean"
1501
+ },
1502
+ "default": "true",
1503
+ "fieldName": "addDefaultActions"
1504
+ },
1505
+ {
1506
+ "name": "auto-close-on-action",
1507
+ "type": {
1508
+ "text": "boolean"
1509
+ },
1510
+ "default": "true",
1511
+ "fieldName": "autoCloseOnAction"
1512
+ },
1513
+ {
1514
+ "name": "name",
1515
+ "type": {
1516
+ "text": "string"
1517
+ },
1518
+ "default": "'Actions'",
1519
+ "fieldName": "name"
1520
+ },
1521
+ {
1522
+ "name": "open",
1523
+ "type": {
1524
+ "text": "boolean"
1525
+ },
1526
+ "default": "false",
1527
+ "fieldName": "open"
1528
+ },
1529
+ {
1530
+ "name": "buttonAppearance",
1531
+ "type": {
1532
+ "text": "string"
1533
+ },
1534
+ "fieldName": "buttonAppearance"
1535
+ },
1536
+ {
1537
+ "name": "hide-disabled",
1538
+ "type": {
1539
+ "text": "boolean"
1540
+ },
1541
+ "default": "false",
1542
+ "fieldName": "hideDisabled"
1543
+ },
1544
+ {
1545
+ "name": "hide-menu-single-option",
1546
+ "type": {
1547
+ "text": "boolean"
1548
+ },
1549
+ "default": "false",
1550
+ "fieldName": "hideMenuSingleOption"
1360
1551
  }
1361
- ]
1362
- },
1363
- {
1364
- "kind": "variable",
1365
- "name": "foundationAccordionItemShadowOptions",
1366
- "type": {
1367
- "text": "ShadowRootInit"
1368
- },
1369
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1370
- },
1371
- {
1372
- "kind": "variable",
1373
- "name": "defaultAccordionItemConfig",
1374
- "type": {
1375
- "text": "object"
1552
+ ],
1553
+ "superclass": {
1554
+ "name": "FoundationElement",
1555
+ "package": "@microsoft/fast-foundation"
1376
1556
  },
1377
- "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}"
1557
+ "tagName": "%%prefix%%-actions-menu",
1558
+ "customElement": true
1378
1559
  },
1379
1560
  {
1380
1561
  "kind": "variable",
1381
- "name": "foundationAccordionItem",
1382
- "description": "The Foundation Accordion Item",
1562
+ "name": "foundationActionsMenu",
1563
+ "description": "The Foundation Actions Menu",
1383
1564
  "privacy": "public"
1384
1565
  }
1385
1566
  ],
1386
1567
  "exports": [
1387
1568
  {
1388
1569
  "kind": "js",
1389
- "name": "AccordionItem",
1570
+ "name": "ActionsMenu",
1390
1571
  "declaration": {
1391
- "name": "AccordionItem",
1392
- "module": "src/accordion-item/accordion-item.ts"
1572
+ "name": "ActionsMenu",
1573
+ "module": "src/actions-menu/actions-menu.ts"
1393
1574
  }
1394
1575
  },
1395
1576
  {
1396
1577
  "kind": "js",
1397
- "name": "foundationAccordionItemShadowOptions",
1578
+ "name": "foundationActionsMenu",
1398
1579
  "declaration": {
1399
- "name": "foundationAccordionItemShadowOptions",
1400
- "module": "src/accordion-item/accordion-item.ts"
1580
+ "name": "foundationActionsMenu",
1581
+ "module": "src/actions-menu/actions-menu.ts"
1401
1582
  }
1402
- },
1583
+ }
1584
+ ]
1585
+ },
1586
+ {
1587
+ "kind": "javascript-module",
1588
+ "path": "src/actions-menu/index.ts",
1589
+ "declarations": [],
1590
+ "exports": [
1403
1591
  {
1404
1592
  "kind": "js",
1405
- "name": "defaultAccordionItemConfig",
1406
- "declaration": {
1407
- "name": "defaultAccordionItemConfig",
1408
- "module": "src/accordion-item/accordion-item.ts"
1409
- }
1410
- },
1411
- {
1412
- "kind": "js",
1413
- "name": "foundationAccordionItem",
1414
- "declaration": {
1415
- "name": "foundationAccordionItem",
1416
- "module": "src/accordion-item/accordion-item.ts"
1417
- }
1418
- }
1419
- ]
1420
- },
1421
- {
1422
- "kind": "javascript-module",
1423
- "path": "src/accordion-item/index.ts",
1424
- "declarations": [],
1425
- "exports": [
1426
- {
1427
- "kind": "js",
1428
- "name": "*",
1593
+ "name": "*",
1429
1594
  "declaration": {
1430
1595
  "name": "*",
1431
- "package": "./accordion-item.template"
1596
+ "package": "./actions-menu.styles"
1432
1597
  }
1433
1598
  },
1434
1599
  {
@@ -1436,7 +1601,7 @@
1436
1601
  "name": "*",
1437
1602
  "declaration": {
1438
1603
  "name": "*",
1439
- "package": "./accordion-item.styles"
1604
+ "package": "./actions-menu.template"
1440
1605
  }
1441
1606
  },
1442
1607
  {
@@ -1444,41 +1609,18 @@
1444
1609
  "name": "*",
1445
1610
  "declaration": {
1446
1611
  "name": "*",
1447
- "package": "./accordion-item"
1612
+ "package": "./actions-menu"
1448
1613
  }
1449
1614
  }
1450
1615
  ]
1451
1616
  },
1452
1617
  {
1453
1618
  "kind": "javascript-module",
1454
- "path": "src/actions-menu/actions-menu.styles.ts",
1619
+ "path": "src/accordion-item/accordion-item.styles.ts",
1455
1620
  "declarations": [
1456
1621
  {
1457
1622
  "kind": "function",
1458
- "name": "actionsMenuBaseStyles",
1459
- "return": {
1460
- "type": {
1461
- "text": "ElementStyles"
1462
- }
1463
- },
1464
- "parameters": [
1465
- {
1466
- "name": "context",
1467
- "type": {
1468
- "text": "ElementDefinitionContext"
1469
- }
1470
- },
1471
- {
1472
- "name": "definition",
1473
- "type": {
1474
- "text": "FoundationElementDefinition"
1475
- }
1476
- }
1477
- ]
1478
- },
1479
- {
1480
- "kind": "function",
1481
- "name": "foundationActionsMenuStyles",
1623
+ "name": "foundationAccordionItemStyles",
1482
1624
  "return": {
1483
1625
  "type": {
1484
1626
  "text": "ElementStyles"
@@ -1503,308 +1645,195 @@
1503
1645
  "exports": [
1504
1646
  {
1505
1647
  "kind": "js",
1506
- "name": "actionsMenuBaseStyles",
1507
- "declaration": {
1508
- "name": "actionsMenuBaseStyles",
1509
- "module": "src/actions-menu/actions-menu.styles.ts"
1510
- }
1511
- },
1512
- {
1513
- "kind": "js",
1514
- "name": "foundationActionsMenuStyles",
1648
+ "name": "foundationAccordionItemStyles",
1515
1649
  "declaration": {
1516
- "name": "foundationActionsMenuStyles",
1517
- "module": "src/actions-menu/actions-menu.styles.ts"
1650
+ "name": "foundationAccordionItemStyles",
1651
+ "module": "src/accordion-item/accordion-item.styles.ts"
1518
1652
  }
1519
1653
  }
1520
1654
  ]
1521
1655
  },
1522
1656
  {
1523
1657
  "kind": "javascript-module",
1524
- "path": "src/actions-menu/actions-menu.template.ts",
1658
+ "path": "src/accordion-item/accordion-item.template.ts",
1525
1659
  "declarations": [
1526
1660
  {
1527
1661
  "kind": "function",
1528
- "name": "menuTemplate",
1662
+ "name": "foundationAccordionItemTemplate",
1663
+ "return": {
1664
+ "type": {
1665
+ "text": "ViewTemplate<AccordionItem>"
1666
+ }
1667
+ },
1529
1668
  "parameters": [
1530
1669
  {
1531
- "name": "prefix",
1670
+ "name": "context",
1532
1671
  "type": {
1533
- "text": "string"
1672
+ "text": "ElementDefinitionContext"
1534
1673
  }
1535
- }
1536
- ]
1537
- },
1538
- {
1539
- "kind": "function",
1540
- "name": "singleOptionTemplate",
1541
- "parameters": [
1674
+ },
1542
1675
  {
1543
- "name": "prefix",
1676
+ "name": "definition",
1544
1677
  "type": {
1545
- "text": "string"
1678
+ "text": "FoundationElementDefinition"
1546
1679
  }
1547
1680
  }
1548
1681
  ]
1549
- },
1550
- {
1551
- "kind": "variable",
1552
- "name": "foundationActionsMenuTemplate",
1553
- "type": {
1554
- "text": "ViewTemplate<ActionsMenu>"
1555
- },
1556
- "default": "html`\n <div\n class=\"actions-container${(x) => (x.isVertical ? ' actions-vertical' : '')}\"\n part=\"actions-container\"\n >\n ${(x) => x.getTemplate(getPrefix(x))}\n </div>\n`"
1557
1682
  }
1558
1683
  ],
1559
1684
  "exports": [
1560
1685
  {
1561
1686
  "kind": "js",
1562
- "name": "menuTemplate",
1563
- "declaration": {
1564
- "name": "menuTemplate",
1565
- "module": "src/actions-menu/actions-menu.template.ts"
1566
- }
1567
- },
1568
- {
1569
- "kind": "js",
1570
- "name": "singleOptionTemplate",
1571
- "declaration": {
1572
- "name": "singleOptionTemplate",
1573
- "module": "src/actions-menu/actions-menu.template.ts"
1574
- }
1575
- },
1576
- {
1577
- "kind": "js",
1578
- "name": "foundationActionsMenuTemplate",
1687
+ "name": "foundationAccordionItemTemplate",
1579
1688
  "declaration": {
1580
- "name": "foundationActionsMenuTemplate",
1581
- "module": "src/actions-menu/actions-menu.template.ts"
1689
+ "name": "foundationAccordionItemTemplate",
1690
+ "module": "src/accordion-item/accordion-item.template.ts"
1582
1691
  }
1583
1692
  }
1584
1693
  ]
1585
1694
  },
1586
1695
  {
1587
1696
  "kind": "javascript-module",
1588
- "path": "src/actions-menu/actions-menu.ts",
1697
+ "path": "src/accordion-item/accordion-item.ts",
1589
1698
  "declarations": [
1590
1699
  {
1591
1700
  "kind": "class",
1592
1701
  "description": "",
1593
- "name": "ActionsMenu",
1594
- "members": [
1702
+ "name": "AccordionItem",
1703
+ "superclass": {
1704
+ "name": "FASTAccordionItem",
1705
+ "package": "@microsoft/fast-components"
1706
+ },
1707
+ "tagName": "%%prefix%%-accordion-item",
1708
+ "customElement": true,
1709
+ "attributes": [
1595
1710
  {
1596
- "kind": "field",
1597
- "name": "actions",
1711
+ "name": "heading-level",
1598
1712
  "type": {
1599
- "text": "ActionMenuItem[]"
1713
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1714
+ },
1715
+ "default": "2",
1716
+ "description": "Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the\nheading element.",
1717
+ "fieldName": "headinglevel",
1718
+ "inheritedFrom": {
1719
+ "name": "AccordionItem",
1720
+ "module": "src/accordion-item/accordion-item.ts"
1600
1721
  }
1601
1722
  },
1602
1723
  {
1603
- "kind": "field",
1604
- "name": "isVertical",
1605
1724
  "type": {
1606
1725
  "text": "boolean"
1607
1726
  },
1608
- "default": "false"
1727
+ "default": "false",
1728
+ "description": "Expands or collapses the item.",
1729
+ "fieldName": "expanded",
1730
+ "inheritedFrom": {
1731
+ "name": "AccordionItem",
1732
+ "module": "src/accordion-item/accordion-item.ts"
1733
+ }
1609
1734
  },
1610
1735
  {
1611
- "kind": "field",
1612
- "name": "addDefaultActions",
1736
+ "name": "id",
1613
1737
  "type": {
1614
- "text": "boolean"
1738
+ "text": "string"
1615
1739
  },
1616
- "default": "true"
1617
- },
1740
+ "description": "The item ID",
1741
+ "fieldName": "id",
1742
+ "inheritedFrom": {
1743
+ "name": "AccordionItem",
1744
+ "module": "src/accordion-item/accordion-item.ts"
1745
+ }
1746
+ }
1747
+ ],
1748
+ "members": [
1618
1749
  {
1619
1750
  "kind": "field",
1620
- "name": "autoCloseOnAction",
1751
+ "name": "headinglevel",
1621
1752
  "type": {
1622
- "text": "boolean"
1753
+ "text": "1 | 2 | 3 | 4 | 5 | 6"
1623
1754
  },
1624
- "default": "true"
1625
- },
1626
- {
1627
- "kind": "field",
1628
- "name": "classNames",
1629
- "type": {
1630
- "text": "string"
1755
+ "privacy": "public",
1756
+ "default": "2",
1757
+ "description": "Configures the {@link https://www.w3.org/TR/wai-aria-1.1/#aria-level | level} of the heading element.",
1758
+ "inheritedFrom": {
1759
+ "name": "AccordionItem",
1760
+ "module": "src/accordion-item/accordion-item.ts"
1631
1761
  }
1632
1762
  },
1633
1763
  {
1634
1764
  "kind": "field",
1635
- "name": "definition",
1765
+ "name": "expanded",
1636
1766
  "type": {
1637
- "text": "any"
1767
+ "text": "boolean"
1768
+ },
1769
+ "privacy": "public",
1770
+ "default": "false",
1771
+ "description": "Expands or collapses the item.",
1772
+ "inheritedFrom": {
1773
+ "name": "AccordionItem",
1774
+ "module": "src/accordion-item/accordion-item.ts"
1638
1775
  }
1639
1776
  },
1640
1777
  {
1641
1778
  "kind": "field",
1642
- "name": "name",
1779
+ "name": "id",
1643
1780
  "type": {
1644
1781
  "text": "string"
1645
1782
  },
1646
- "default": "'Actions'"
1783
+ "privacy": "public",
1784
+ "description": "The item ID",
1785
+ "inheritedFrom": {
1786
+ "name": "AccordionItem",
1787
+ "module": "src/accordion-item/accordion-item.ts"
1788
+ }
1647
1789
  },
1648
1790
  {
1649
1791
  "kind": "field",
1650
- "name": "open",
1651
- "type": {
1652
- "text": "boolean"
1653
- },
1654
- "default": "false"
1792
+ "name": "change",
1793
+ "privacy": "private",
1794
+ "inheritedFrom": {
1795
+ "name": "AccordionItem",
1796
+ "module": "src/accordion-item/accordion-item.ts"
1797
+ }
1655
1798
  },
1656
1799
  {
1657
1800
  "kind": "field",
1658
- "name": "buttonAppearance",
1801
+ "name": "_presentation",
1659
1802
  "type": {
1660
- "text": "string"
1803
+ "text": "ComponentPresentation | null | undefined"
1804
+ },
1805
+ "privacy": "private",
1806
+ "default": "void 0",
1807
+ "inheritedFrom": {
1808
+ "name": "FoundationElement",
1809
+ "module": "src/foundation-element/foundation-element.ts"
1661
1810
  }
1662
1811
  },
1663
1812
  {
1664
1813
  "kind": "field",
1665
- "name": "hideDisabled",
1814
+ "name": "$presentation",
1666
1815
  "type": {
1667
- "text": "boolean"
1816
+ "text": "ComponentPresentation | null"
1668
1817
  },
1669
- "default": "false"
1818
+ "privacy": "public",
1819
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1820
+ "inheritedFrom": {
1821
+ "name": "FoundationElement",
1822
+ "module": "src/foundation-element/foundation-element.ts"
1823
+ }
1670
1824
  },
1671
1825
  {
1672
1826
  "kind": "field",
1673
- "name": "hideMenuSingleOption",
1827
+ "name": "template",
1674
1828
  "type": {
1675
- "text": "boolean"
1829
+ "text": "ElementViewTemplate | void | null"
1676
1830
  },
1677
- "default": "false"
1678
- },
1679
- {
1680
- "kind": "field",
1681
- "name": "singleOption",
1682
- "type": {
1683
- "text": "ActionMenuItem"
1684
- }
1685
- },
1686
- {
1687
- "kind": "field",
1688
- "name": "actionsMenu",
1689
- "type": {
1690
- "text": "HTMLElement"
1691
- }
1692
- },
1693
- {
1694
- "kind": "method",
1695
- "name": "definitionChanged",
1696
- "privacy": "protected",
1697
- "parameters": [
1698
- {
1699
- "name": "oldValue",
1700
- "type": {
1701
- "text": "any"
1702
- }
1703
- },
1704
- {
1705
- "name": "newValue",
1706
- "type": {
1707
- "text": "any"
1708
- }
1709
- }
1710
- ]
1711
- },
1712
- {
1713
- "kind": "method",
1714
- "name": "openChanged",
1715
- "privacy": "protected"
1716
- },
1717
- {
1718
- "kind": "method",
1719
- "name": "toggleActionsMenuVisibility"
1720
- },
1721
- {
1722
- "kind": "method",
1723
- "name": "onActionMenuItemClick",
1724
- "parameters": [
1725
- {
1726
- "name": "callback",
1727
- "type": {
1728
- "text": "(rowData) => void | any"
1729
- }
1730
- }
1731
- ]
1732
- },
1733
- {
1734
- "kind": "field",
1735
- "name": "allActions",
1736
- "type": {
1737
- "text": "ActionMenuItem[]"
1738
- },
1739
- "readonly": true
1740
- },
1741
- {
1742
- "kind": "field",
1743
- "name": "rowData",
1744
- "readonly": true
1745
- },
1746
- {
1747
- "kind": "method",
1748
- "name": "getLabel",
1749
- "parameters": [
1750
- {
1751
- "name": "name",
1752
- "type": {
1753
- "text": "string | ((rowData: any) => string)"
1754
- }
1755
- }
1756
- ]
1757
- },
1758
- {
1759
- "kind": "method",
1760
- "name": "getTemplate",
1761
- "parameters": [
1762
- {
1763
- "name": "prefix",
1764
- "type": {
1765
- "text": "string"
1766
- }
1767
- }
1768
- ]
1769
- },
1770
- {
1771
- "kind": "field",
1772
- "name": "_presentation",
1773
- "type": {
1774
- "text": "ComponentPresentation | null | undefined"
1775
- },
1776
- "privacy": "private",
1777
- "default": "void 0",
1778
- "inheritedFrom": {
1779
- "name": "FoundationElement",
1780
- "module": "src/foundation-element/foundation-element.ts"
1781
- }
1782
- },
1783
- {
1784
- "kind": "field",
1785
- "name": "$presentation",
1786
- "type": {
1787
- "text": "ComponentPresentation | null"
1788
- },
1789
- "privacy": "public",
1790
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
1791
- "inheritedFrom": {
1792
- "name": "FoundationElement",
1793
- "module": "src/foundation-element/foundation-element.ts"
1794
- }
1795
- },
1796
- {
1797
- "kind": "field",
1798
- "name": "template",
1799
- "type": {
1800
- "text": "ElementViewTemplate | void | null"
1801
- },
1802
- "privacy": "public",
1803
- "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.",
1804
- "inheritedFrom": {
1805
- "name": "FoundationElement",
1806
- "module": "src/foundation-element/foundation-element.ts"
1807
- }
1831
+ "privacy": "public",
1832
+ "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.",
1833
+ "inheritedFrom": {
1834
+ "name": "FoundationElement",
1835
+ "module": "src/foundation-element/foundation-element.ts"
1836
+ }
1808
1837
  },
1809
1838
  {
1810
1839
  "kind": "method",
@@ -1879,107 +1908,78 @@
1879
1908
  }
1880
1909
  }
1881
1910
  ],
1882
- "attributes": [
1883
- {
1884
- "name": "is-vertical",
1885
- "type": {
1886
- "text": "boolean"
1887
- },
1888
- "default": "false",
1889
- "fieldName": "isVertical"
1890
- },
1891
- {
1892
- "name": "add-default-actions",
1893
- "type": {
1894
- "text": "boolean"
1895
- },
1896
- "default": "true",
1897
- "fieldName": "addDefaultActions"
1898
- },
1899
- {
1900
- "name": "auto-close-on-action",
1901
- "type": {
1902
- "text": "boolean"
1903
- },
1904
- "default": "true",
1905
- "fieldName": "autoCloseOnAction"
1906
- },
1907
- {
1908
- "name": "name",
1909
- "type": {
1910
- "text": "string"
1911
- },
1912
- "default": "'Actions'",
1913
- "fieldName": "name"
1914
- },
1915
- {
1916
- "name": "open",
1917
- "type": {
1918
- "text": "boolean"
1919
- },
1920
- "default": "false",
1921
- "fieldName": "open"
1922
- },
1923
- {
1924
- "name": "buttonAppearance",
1925
- "type": {
1926
- "text": "string"
1927
- },
1928
- "fieldName": "buttonAppearance"
1929
- },
1930
- {
1931
- "name": "hide-disabled",
1932
- "type": {
1933
- "text": "boolean"
1934
- },
1935
- "default": "false",
1936
- "fieldName": "hideDisabled"
1937
- },
1911
+ "events": [
1938
1912
  {
1939
- "name": "hide-menu-single-option",
1940
- "type": {
1941
- "text": "boolean"
1942
- },
1943
- "default": "false",
1944
- "fieldName": "hideMenuSingleOption"
1913
+ "description": "Fires a custom 'change' event when the button is invoked",
1914
+ "name": "change",
1915
+ "inheritedFrom": {
1916
+ "name": "AccordionItem",
1917
+ "module": "src/accordion-item/accordion-item.ts"
1918
+ }
1945
1919
  }
1946
- ],
1947
- "superclass": {
1948
- "name": "FoundationElement",
1949
- "package": "@microsoft/fast-foundation"
1920
+ ]
1921
+ },
1922
+ {
1923
+ "kind": "variable",
1924
+ "name": "foundationAccordionItemShadowOptions",
1925
+ "type": {
1926
+ "text": "ShadowRootInit"
1950
1927
  },
1951
- "tagName": "%%prefix%%-actions-menu",
1952
- "customElement": true
1928
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1953
1929
  },
1954
1930
  {
1955
1931
  "kind": "variable",
1956
- "name": "foundationActionsMenu",
1957
- "description": "The Foundation Actions Menu",
1932
+ "name": "defaultAccordionItemConfig",
1933
+ "type": {
1934
+ "text": "object"
1935
+ },
1936
+ "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}"
1937
+ },
1938
+ {
1939
+ "kind": "variable",
1940
+ "name": "foundationAccordionItem",
1941
+ "description": "The Foundation Accordion Item",
1958
1942
  "privacy": "public"
1959
1943
  }
1960
1944
  ],
1961
1945
  "exports": [
1962
1946
  {
1963
1947
  "kind": "js",
1964
- "name": "ActionsMenu",
1948
+ "name": "AccordionItem",
1965
1949
  "declaration": {
1966
- "name": "ActionsMenu",
1967
- "module": "src/actions-menu/actions-menu.ts"
1950
+ "name": "AccordionItem",
1951
+ "module": "src/accordion-item/accordion-item.ts"
1968
1952
  }
1969
1953
  },
1970
1954
  {
1971
1955
  "kind": "js",
1972
- "name": "foundationActionsMenu",
1956
+ "name": "foundationAccordionItemShadowOptions",
1973
1957
  "declaration": {
1974
- "name": "foundationActionsMenu",
1975
- "module": "src/actions-menu/actions-menu.ts"
1958
+ "name": "foundationAccordionItemShadowOptions",
1959
+ "module": "src/accordion-item/accordion-item.ts"
1960
+ }
1961
+ },
1962
+ {
1963
+ "kind": "js",
1964
+ "name": "defaultAccordionItemConfig",
1965
+ "declaration": {
1966
+ "name": "defaultAccordionItemConfig",
1967
+ "module": "src/accordion-item/accordion-item.ts"
1968
+ }
1969
+ },
1970
+ {
1971
+ "kind": "js",
1972
+ "name": "foundationAccordionItem",
1973
+ "declaration": {
1974
+ "name": "foundationAccordionItem",
1975
+ "module": "src/accordion-item/accordion-item.ts"
1976
1976
  }
1977
1977
  }
1978
1978
  ]
1979
1979
  },
1980
1980
  {
1981
1981
  "kind": "javascript-module",
1982
- "path": "src/actions-menu/index.ts",
1982
+ "path": "src/accordion-item/index.ts",
1983
1983
  "declarations": [],
1984
1984
  "exports": [
1985
1985
  {
@@ -1987,7 +1987,7 @@
1987
1987
  "name": "*",
1988
1988
  "declaration": {
1989
1989
  "name": "*",
1990
- "package": "./actions-menu.styles"
1990
+ "package": "./accordion-item.template"
1991
1991
  }
1992
1992
  },
1993
1993
  {
@@ -1995,7 +1995,7 @@
1995
1995
  "name": "*",
1996
1996
  "declaration": {
1997
1997
  "name": "*",
1998
- "package": "./actions-menu.template"
1998
+ "package": "./accordion-item.styles"
1999
1999
  }
2000
2000
  },
2001
2001
  {
@@ -2003,7 +2003,7 @@
2003
2003
  "name": "*",
2004
2004
  "declaration": {
2005
2005
  "name": "*",
2006
- "package": "./actions-menu"
2006
+ "package": "./accordion-item"
2007
2007
  }
2008
2008
  }
2009
2009
  ]
@@ -12398,219 +12398,202 @@
12398
12398
  },
12399
12399
  {
12400
12400
  "kind": "javascript-module",
12401
- "path": "src/design-system-provider/design-system-provider.styles.ts",
12402
- "declarations": [
12403
- {
12404
- "kind": "function",
12405
- "name": "designSystemProviderStyles",
12406
- "parameters": [
12407
- {
12408
- "name": "context",
12409
- "type": {
12410
- "text": "ElementDefinitionContext"
12411
- }
12412
- }
12413
- ]
12414
- }
12415
- ],
12416
- "exports": [
12417
- {
12418
- "kind": "js",
12419
- "name": "designSystemProviderStyles",
12420
- "declaration": {
12421
- "name": "designSystemProviderStyles",
12422
- "module": "src/design-system-provider/design-system-provider.styles.ts"
12423
- }
12424
- }
12425
- ]
12426
- },
12427
- {
12428
- "kind": "javascript-module",
12429
- "path": "src/design-system-provider/design-system-provider.ts",
12401
+ "path": "src/date-picker/calendar.ts",
12430
12402
  "declarations": [
12431
12403
  {
12432
12404
  "kind": "class",
12433
- "description": "The Foundation Design System Provider",
12434
- "name": "FoundationDesignSystemProvider",
12405
+ "description": "",
12406
+ "name": "Calendar",
12435
12407
  "members": [
12436
12408
  {
12437
12409
  "kind": "field",
12438
- "name": "cardFillColor",
12410
+ "name": "today",
12439
12411
  "type": {
12440
- "text": "Swatch"
12412
+ "text": "any"
12441
12413
  },
12442
- "privacy": "public"
12414
+ "default": "new Day(null, lang)"
12443
12415
  },
12444
12416
  {
12445
12417
  "kind": "field",
12446
- "name": "cardForegroundColor",
12418
+ "name": "year",
12447
12419
  "type": {
12448
- "text": "Swatch"
12449
- },
12450
- "privacy": "public"
12451
- }
12452
- ],
12453
- "attributes": [
12420
+ "text": "number"
12421
+ }
12422
+ },
12454
12423
  {
12455
- "name": "card-fill-color",
12424
+ "kind": "field",
12425
+ "name": "month",
12456
12426
  "type": {
12457
- "text": "Swatch"
12427
+ "text": "any"
12458
12428
  },
12459
- "fieldName": "cardFillColor"
12429
+ "default": "new Month(new Date(this.year, (monthNumber || this.today.monthNumber) - 1), lang)"
12460
12430
  },
12461
12431
  {
12462
- "name": "card-foreground-color",
12432
+ "kind": "field",
12433
+ "name": "lang",
12463
12434
  "type": {
12464
- "text": "Swatch"
12435
+ "text": "string"
12465
12436
  },
12466
- "fieldName": "cardForegroundColor"
12467
- }
12468
- ],
12469
- "superclass": {
12470
- "name": "FASTDesignSystemProvider",
12471
- "package": "@microsoft/fast-components"
12472
- },
12473
- "tagName": "%%prefix%%-design-system-provider",
12474
- "customElement": true
12475
- },
12476
- {
12477
- "kind": "variable",
12478
- "name": "foundationDesignSystemProvider",
12479
- "description": "The Foundation Design System Provider composed element",
12480
- "privacy": "public"
12481
- }
12482
- ],
12483
- "exports": [
12484
- {
12485
- "kind": "js",
12486
- "name": "FoundationDesignSystemProvider",
12487
- "declaration": {
12488
- "name": "FoundationDesignSystemProvider",
12489
- "module": "src/design-system-provider/design-system-provider.ts"
12490
- }
12491
- },
12492
- {
12493
- "kind": "js",
12494
- "name": "foundationDesignSystemProvider",
12495
- "declaration": {
12496
- "name": "foundationDesignSystemProvider",
12497
- "module": "src/design-system-provider/design-system-provider.ts"
12498
- }
12499
- }
12500
- ]
12501
- },
12502
- {
12503
- "kind": "javascript-module",
12504
- "path": "src/design-system-provider/design-system-provider.utils.ts",
12505
- "declarations": [
12506
- {
12507
- "kind": "function",
12508
- "name": "provideTokens",
12509
- "parameters": [
12437
+ "default": "lang"
12438
+ },
12510
12439
  {
12511
- "name": "tokens"
12440
+ "kind": "field",
12441
+ "name": "weekDays"
12512
12442
  },
12513
12443
  {
12514
- "name": "values"
12444
+ "kind": "method",
12445
+ "name": "getMonth",
12446
+ "parameters": [
12447
+ {
12448
+ "name": "monthNumber"
12449
+ }
12450
+ ]
12515
12451
  },
12516
12452
  {
12517
- "name": "element",
12518
- "optional": true,
12519
- "type": {
12520
- "text": "HTMLElement"
12521
- }
12522
- }
12523
- ]
12524
- },
12525
- {
12526
- "kind": "function",
12527
- "name": "designToken",
12528
- "parameters": [
12453
+ "kind": "method",
12454
+ "name": "getPreviousMonth"
12455
+ },
12529
12456
  {
12530
- "name": "token",
12531
- "type": {
12532
- "text": "DesignToken<T>"
12533
- }
12534
- }
12535
- ]
12536
- },
12537
- {
12538
- "kind": "variable",
12539
- "name": "swatchConverter",
12540
- "type": {
12541
- "text": "ValueConverter"
12542
- },
12543
- "default": "{\n toView(value: any): string | null {\n if (value === null || value === undefined) {\n return null;\n }\n return (value as Swatch)?.toColorString();\n },\n\n fromView(value: any): any {\n if (value === null || value === undefined) {\n return null;\n }\n const color = parseColorHexRGB(value);\n return color ? SwatchRGB.create(color!.r, color!.g, color!.b) : null;\n },\n}"
12544
- },
12545
- {
12546
- "kind": "function",
12547
- "name": "paletteFromHex",
12548
- "parameters": [
12457
+ "kind": "method",
12458
+ "name": "getNextMonth"
12459
+ },
12549
12460
  {
12550
- "name": "hexColor",
12551
- "type": {
12552
- "text": "string"
12553
- }
12554
- }
12555
- ]
12556
- },
12557
- {
12558
- "kind": "function",
12559
- "name": "getDefaultConfig",
12560
- "parameters": [
12461
+ "kind": "method",
12462
+ "name": "goToDate",
12463
+ "parameters": [
12464
+ {
12465
+ "name": "monthNumber"
12466
+ },
12467
+ {
12468
+ "name": "year"
12469
+ }
12470
+ ]
12471
+ },
12561
12472
  {
12562
- "name": "definition",
12563
- "type": {
12564
- "text": "Partial<FoundationElementDefinition>"
12565
- }
12473
+ "kind": "method",
12474
+ "name": "goToNextYear"
12566
12475
  },
12567
12476
  {
12568
- "name": "exclusions",
12569
- "default": "defaultExclusions"
12570
- }
12571
- ]
12572
- },
12573
- {
12574
- "kind": "function",
12575
- "name": "getExports",
12576
- "parameters": [
12477
+ "kind": "method",
12478
+ "name": "goToPreviousYear"
12479
+ },
12577
12480
  {
12578
- "name": "registrationFunction"
12579
- }
12580
- ]
12581
- },
12582
- {
12583
- "kind": "function",
12584
- "name": "getTypeRampValue",
12585
- "parameters": [
12481
+ "kind": "method",
12482
+ "name": "goToNextMonth"
12483
+ },
12586
12484
  {
12587
- "name": "baseTypeRamp",
12485
+ "kind": "method",
12486
+ "name": "goToPreviousMonth"
12487
+ },
12488
+ {
12489
+ "kind": "field",
12490
+ "name": "_presentation",
12588
12491
  "type": {
12589
- "text": "string"
12492
+ "text": "ComponentPresentation | null | undefined"
12493
+ },
12494
+ "privacy": "private",
12495
+ "default": "void 0",
12496
+ "inheritedFrom": {
12497
+ "name": "FoundationElement",
12498
+ "module": "src/foundation-element/foundation-element.ts"
12590
12499
  }
12591
12500
  },
12592
12501
  {
12593
- "name": "value",
12502
+ "kind": "field",
12503
+ "name": "$presentation",
12594
12504
  "type": {
12595
- "text": "number"
12505
+ "text": "ComponentPresentation | null"
12506
+ },
12507
+ "privacy": "public",
12508
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
12509
+ "inheritedFrom": {
12510
+ "name": "FoundationElement",
12511
+ "module": "src/foundation-element/foundation-element.ts"
12596
12512
  }
12597
- }
12598
- ]
12599
- },
12600
- {
12601
- "kind": "function",
12602
- "name": "configureDesignSystem",
12603
- "parameters": [
12513
+ },
12604
12514
  {
12605
- "name": "provider",
12515
+ "kind": "field",
12516
+ "name": "template",
12606
12517
  "type": {
12607
- "text": "HTMLElement"
12518
+ "text": "ElementViewTemplate | void | null"
12519
+ },
12520
+ "privacy": "public",
12521
+ "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.",
12522
+ "inheritedFrom": {
12523
+ "name": "FoundationElement",
12524
+ "module": "src/foundation-element/foundation-element.ts"
12608
12525
  }
12609
12526
  },
12610
12527
  {
12611
- "name": "config",
12528
+ "kind": "method",
12529
+ "name": "templateChanged",
12530
+ "privacy": "protected",
12531
+ "return": {
12532
+ "type": {
12533
+ "text": "void"
12534
+ }
12535
+ },
12536
+ "inheritedFrom": {
12537
+ "name": "FoundationElement",
12538
+ "module": "src/foundation-element/foundation-element.ts"
12539
+ }
12540
+ },
12541
+ {
12542
+ "kind": "field",
12543
+ "name": "styles",
12612
12544
  "type": {
12613
- "text": "DesignTokensConfig"
12545
+ "text": "ElementStyles | void | null"
12546
+ },
12547
+ "privacy": "public",
12548
+ "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.",
12549
+ "inheritedFrom": {
12550
+ "name": "FoundationElement",
12551
+ "module": "src/foundation-element/foundation-element.ts"
12552
+ }
12553
+ },
12554
+ {
12555
+ "kind": "method",
12556
+ "name": "stylesChanged",
12557
+ "privacy": "protected",
12558
+ "return": {
12559
+ "type": {
12560
+ "text": "void"
12561
+ }
12562
+ },
12563
+ "inheritedFrom": {
12564
+ "name": "FoundationElement",
12565
+ "module": "src/foundation-element/foundation-element.ts"
12566
+ }
12567
+ },
12568
+ {
12569
+ "kind": "method",
12570
+ "name": "compose",
12571
+ "privacy": "public",
12572
+ "static": true,
12573
+ "return": {
12574
+ "type": {
12575
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
12576
+ }
12577
+ },
12578
+ "parameters": [
12579
+ {
12580
+ "name": "this",
12581
+ "type": {
12582
+ "text": "K"
12583
+ }
12584
+ },
12585
+ {
12586
+ "name": "elementDefinition",
12587
+ "type": {
12588
+ "text": "T"
12589
+ },
12590
+ "description": "The definition of the element to create the registry\nfunction for."
12591
+ }
12592
+ ],
12593
+ "description": "Defines an element registry function with a set of element definition defaults.",
12594
+ "inheritedFrom": {
12595
+ "name": "FoundationElement",
12596
+ "module": "src/foundation-element/foundation-element.ts"
12614
12597
  }
12615
12598
  }
12616
12599
  ]
@@ -12619,138 +12602,45 @@
12619
12602
  "exports": [
12620
12603
  {
12621
12604
  "kind": "js",
12622
- "name": "provideTokens",
12623
- "declaration": {
12624
- "name": "provideTokens",
12625
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12626
- }
12627
- },
12628
- {
12629
- "kind": "js",
12630
- "name": "designToken",
12631
- "declaration": {
12632
- "name": "designToken",
12633
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12634
- }
12635
- },
12636
- {
12637
- "kind": "js",
12638
- "name": "swatchConverter",
12639
- "declaration": {
12640
- "name": "swatchConverter",
12641
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12642
- }
12643
- },
12644
- {
12645
- "kind": "js",
12646
- "name": "paletteFromHex",
12647
- "declaration": {
12648
- "name": "paletteFromHex",
12649
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12650
- }
12651
- },
12652
- {
12653
- "kind": "js",
12654
- "name": "getDefaultConfig",
12655
- "declaration": {
12656
- "name": "getDefaultConfig",
12657
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12658
- }
12659
- },
12660
- {
12661
- "kind": "js",
12662
- "name": "getExports",
12663
- "declaration": {
12664
- "name": "getExports",
12665
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12666
- }
12667
- },
12668
- {
12669
- "kind": "js",
12670
- "name": "getTypeRampValue",
12671
- "declaration": {
12672
- "name": "getTypeRampValue",
12673
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12674
- }
12675
- },
12676
- {
12677
- "kind": "js",
12678
- "name": "configureDesignSystem",
12679
- "declaration": {
12680
- "name": "configureDesignSystem",
12681
- "module": "src/design-system-provider/design-system-provider.utils.ts"
12682
- }
12683
- }
12684
- ]
12685
- },
12686
- {
12687
- "kind": "javascript-module",
12688
- "path": "src/design-system-provider/index.ts",
12689
- "declarations": [],
12690
- "exports": [
12691
- {
12692
- "kind": "js",
12693
- "name": "*",
12694
- "declaration": {
12695
- "name": "*",
12696
- "package": "./design-system-provider.utils"
12697
- }
12698
- },
12699
- {
12700
- "kind": "js",
12701
- "name": "*",
12702
- "declaration": {
12703
- "name": "*",
12704
- "package": "./design-system-provider"
12705
- }
12706
- },
12707
- {
12708
- "kind": "js",
12709
- "name": "*",
12605
+ "name": "default",
12710
12606
  "declaration": {
12711
- "name": "*",
12712
- "package": "./types"
12607
+ "name": "Calendar",
12608
+ "module": "src/date-picker/calendar.ts"
12713
12609
  }
12714
12610
  }
12715
12611
  ]
12716
12612
  },
12717
12613
  {
12718
12614
  "kind": "javascript-module",
12719
- "path": "src/design-system-provider/types.ts",
12720
- "declarations": [],
12721
- "exports": []
12722
- },
12723
- {
12724
- "kind": "javascript-module",
12725
- "path": "src/dialog/dialog.styles.ts",
12615
+ "path": "src/date-picker/date-picker.styles.ts",
12726
12616
  "declarations": [
12727
12617
  {
12728
12618
  "kind": "variable",
12729
- "name": "foundationDialogStyles",
12619
+ "name": "foundationDatePickerStyles",
12730
12620
  "type": {
12731
12621
  "text": "ElementStyles"
12732
12622
  },
12733
- "default": "css`\n :host {\n --dialog-min-width: 358px;\n --notification-details-min-height: 40px;\n }\n\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n top: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon svg {\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 2px);\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 4px);\n overflow: inherit;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--notification-details-min-height);\n }\n`"
12623
+ "default": "css`\n :host {\n position: relative;\n }\n\n .date-toggle::part(control) {\n cursor: pointer;\n }\n\n .date-toggle::part(label) {\n cursor: pointer;\n }\n\n .calendar-dropdown {\n display: none;\n width: 300px;\n z-index: 999;\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, 8px);\n margin: 10px 0 0;\n padding: 20px;\n background: var(--neutral-foreground-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n box-shadow: 0 0 8px rgb(0 0 0 / 20%);\n }\n\n .calendar-dropdown.top {\n top: auto;\n bottom: 100%;\n margin: 0 0 5px;\n transform: translate(-50%, -8px);\n }\n\n .calendar-dropdown.left {\n top: 50%;\n left: 0;\n margin: 0 0 0 5px;\n transform: translate(calc(-8px + -100%), -50%);\n }\n\n .calendar-dropdown.right {\n top: 50%;\n left: 100%;\n transform: translate(8px, -50%);\n }\n\n .calendar-dropdown.visible {\n display: block;\n }\n\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0 0 10px;\n }\n\n .header h3 {\n margin: 0;\n text-transform: capitalize;\n font-weight: bold;\n color: var(--foreground-on-accent-rest);\n }\n\n .header .months-arrows {\n display: flex;\n flex-direction: row;\n }\n\n .header .icon-container {\n display: flex;\n width: 25px;\n height: 25px;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .header .icon-container:first-child {\n margin-right: calc(var(--design-unit) * 2px);\n }\n\n .header .prev-month,\n .header .next-month {\n color: var(--foreground-on-accent-rest);\n font-size: 18px;\n }\n\n .week-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n margin-bottom: 10px;\n color: var(--foreground-on-accent-rest);\n }\n\n .week-days span {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: bold;\n text-transform: capitalize;\n }\n\n .month-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n }\n\n .month-day {\n padding: 8px 5px;\n color: #808080;\n background: none;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: calc(var(--control-corner-radius) * 4px);\n cursor: pointer;\n border: none;\n }\n\n .month-day.current {\n opacity: 100%;\n color: var(--foreground-on-accent-rest);\n }\n\n .month-day.selected {\n background: var(--accent-foreground-rest);\n color: var(--neutral-foreground-rest);\n }\n\n .month-day:hover {\n background: var(--neutral-stroke-hover);\n color: (--neutral-foreground-rest);\n }\n\n .date-toggle[readonly] .label {\n cursor: pointer;\n }\n`"
12734
12624
  }
12735
12625
  ],
12736
12626
  "exports": [
12737
12627
  {
12738
12628
  "kind": "js",
12739
- "name": "foundationDialogStyles",
12629
+ "name": "foundationDatePickerStyles",
12740
12630
  "declaration": {
12741
- "name": "foundationDialogStyles",
12742
- "module": "src/dialog/dialog.styles.ts"
12631
+ "name": "foundationDatePickerStyles",
12632
+ "module": "src/date-picker/date-picker.styles.ts"
12743
12633
  }
12744
12634
  }
12745
12635
  ]
12746
12636
  },
12747
12637
  {
12748
12638
  "kind": "javascript-module",
12749
- "path": "src/dialog/dialog.template.ts",
12639
+ "path": "src/date-picker/date-picker.template.ts",
12750
12640
  "declarations": [
12751
12641
  {
12752
12642
  "kind": "function",
12753
- "name": "getDialogTemplate",
12643
+ "name": "getPrefixedDatePicker",
12754
12644
  "parameters": [
12755
12645
  {
12756
12646
  "name": "prefix",
@@ -12762,44 +12652,44 @@
12762
12652
  },
12763
12653
  {
12764
12654
  "kind": "variable",
12765
- "name": "foundationDialogTemplate",
12766
- "default": "html<Dialog>`\n ${(x) => getDialogTemplate(getPrefix(x))}\n`"
12655
+ "name": "foundationDatePickerTemplate",
12656
+ "default": "html<DatePicker>`\n ${(x) => getPrefixedDatePicker(getPrefix(x))}\n`"
12767
12657
  }
12768
12658
  ],
12769
12659
  "exports": [
12770
12660
  {
12771
12661
  "kind": "js",
12772
- "name": "getDialogTemplate",
12662
+ "name": "getPrefixedDatePicker",
12773
12663
  "declaration": {
12774
- "name": "getDialogTemplate",
12775
- "module": "src/dialog/dialog.template.ts"
12664
+ "name": "getPrefixedDatePicker",
12665
+ "module": "src/date-picker/date-picker.template.ts"
12776
12666
  }
12777
12667
  },
12778
12668
  {
12779
12669
  "kind": "js",
12780
- "name": "foundationDialogTemplate",
12670
+ "name": "foundationDatePickerTemplate",
12781
12671
  "declaration": {
12782
- "name": "foundationDialogTemplate",
12783
- "module": "src/dialog/dialog.template.ts"
12672
+ "name": "foundationDatePickerTemplate",
12673
+ "module": "src/date-picker/date-picker.template.ts"
12784
12674
  }
12785
12675
  }
12786
12676
  ]
12787
12677
  },
12788
12678
  {
12789
12679
  "kind": "javascript-module",
12790
- "path": "src/dialog/dialog.ts",
12680
+ "path": "src/date-picker/date-picker.ts",
12791
12681
  "declarations": [
12792
12682
  {
12793
12683
  "kind": "variable",
12794
- "name": "foundationDialogShadowOptions",
12684
+ "name": "foundationDatePickerShadowOptions",
12795
12685
  "type": {
12796
12686
  "text": "ShadowRootInit"
12797
12687
  },
12798
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
12688
+ "default": "undefined"
12799
12689
  },
12800
12690
  {
12801
12691
  "kind": "variable",
12802
- "name": "defaultDialogConfig",
12692
+ "name": "defaultDatePickerConfig",
12803
12693
  "type": {
12804
12694
  "text": "object"
12805
12695
  },
@@ -12808,105 +12698,229 @@
12808
12698
  {
12809
12699
  "kind": "class",
12810
12700
  "description": "",
12811
- "name": "DialogElement",
12701
+ "name": "DatePicker",
12812
12702
  "members": [
12813
12703
  {
12814
12704
  "kind": "field",
12815
- "name": "mainElement",
12705
+ "name": "format",
12816
12706
  "type": {
12817
- "text": "HTMLDialogElement"
12707
+ "text": "string"
12818
12708
  },
12819
- "description": "A reference to the dialog element\nin the component Shadow DOM."
12820
- },
12821
- {
12822
- "kind": "field",
12823
- "name": "notification",
12824
- "type": {
12825
- "text": "NotificationStructure"
12826
- }
12709
+ "default": "'MM-DD-YYYY'"
12827
12710
  },
12828
12711
  {
12829
12712
  "kind": "method",
12830
- "name": "notificationChanged"
12713
+ "name": "formatChanged",
12714
+ "parameters": [
12715
+ {
12716
+ "name": "oldValue",
12717
+ "type": {
12718
+ "text": "string"
12719
+ }
12720
+ },
12721
+ {
12722
+ "name": "newValue",
12723
+ "type": {
12724
+ "text": "string"
12725
+ }
12726
+ }
12727
+ ]
12831
12728
  },
12832
12729
  {
12833
12730
  "kind": "field",
12834
- "name": "position",
12731
+ "name": "lang",
12835
12732
  "type": {
12836
- "text": "'centre' | 'left' | 'right'"
12733
+ "text": "string"
12837
12734
  },
12838
- "default": "'centre'"
12735
+ "default": "'en-US'"
12839
12736
  },
12840
12737
  {
12841
12738
  "kind": "field",
12842
- "name": "showCloseIcon",
12739
+ "name": "visible",
12843
12740
  "type": {
12844
12741
  "text": "boolean"
12845
12742
  },
12846
- "default": "true",
12847
- "description": "Whether or not to show the close icon"
12743
+ "default": "false"
12848
12744
  },
12849
12745
  {
12850
12746
  "kind": "field",
12851
- "name": "onShowCallback",
12747
+ "name": "position",
12852
12748
  "type": {
12853
- "text": "() => void"
12749
+ "text": "string"
12854
12750
  },
12855
- "description": "Callback to run *before* HTMLDialogElement is shown"
12751
+ "default": "'bottom'"
12856
12752
  },
12857
12753
  {
12858
12754
  "kind": "field",
12859
- "name": "onCloseCallback",
12755
+ "name": "label",
12860
12756
  "type": {
12861
- "text": "() => void"
12862
- },
12863
- "description": "Callback to run *after* HTMLDialogElement is closed"
12757
+ "text": "string"
12758
+ }
12864
12759
  },
12865
12760
  {
12866
12761
  "kind": "field",
12867
- "name": "open",
12762
+ "name": "value",
12868
12763
  "type": {
12869
- "text": "boolean"
12870
- },
12871
- "description": "Determine if the dialog is showing or closed.",
12872
- "readonly": true
12764
+ "text": "string"
12765
+ }
12873
12766
  },
12874
12767
  {
12875
12768
  "kind": "method",
12876
- "name": "show",
12877
- "return": {
12878
- "type": {
12879
- "text": "void"
12769
+ "name": "valueChanged",
12770
+ "parameters": [
12771
+ {
12772
+ "name": "oldValue",
12773
+ "type": {
12774
+ "text": "string"
12775
+ }
12776
+ },
12777
+ {
12778
+ "name": "newValue",
12779
+ "type": {
12780
+ "text": "string"
12781
+ }
12880
12782
  }
12783
+ ]
12784
+ },
12785
+ {
12786
+ "kind": "field",
12787
+ "name": "currentDate",
12788
+ "type": {
12789
+ "text": "any"
12881
12790
  },
12882
- "description": "Show the HTMLDialogElement and its contents"
12791
+ "default": "new Day(dayjsDate.toDate(), this.lang)"
12792
+ },
12793
+ {
12794
+ "kind": "field",
12795
+ "name": "currentMonth",
12796
+ "type": {
12797
+ "text": "Calendar"
12798
+ }
12799
+ },
12800
+ {
12801
+ "kind": "field",
12802
+ "name": "currentYear",
12803
+ "type": {
12804
+ "text": "number"
12805
+ }
12806
+ },
12807
+ {
12808
+ "kind": "field",
12809
+ "name": "calendarDropdownClasses",
12810
+ "type": {
12811
+ "text": "String"
12812
+ }
12813
+ },
12814
+ {
12815
+ "kind": "field",
12816
+ "name": "formatDate",
12817
+ "type": {
12818
+ "text": "string"
12819
+ }
12820
+ },
12821
+ {
12822
+ "kind": "field",
12823
+ "name": "monthList",
12824
+ "type": {
12825
+ "text": "any"
12826
+ }
12827
+ },
12828
+ {
12829
+ "kind": "field",
12830
+ "name": "calendar",
12831
+ "type": {
12832
+ "text": "Calendar"
12833
+ },
12834
+ "default": "new Calendar(this.currentDate.year, this.currentDate.monthNumber, this.lang)"
12835
+ },
12836
+ {
12837
+ "kind": "field",
12838
+ "name": "toggleButton",
12839
+ "type": {
12840
+ "text": "HTMLElement"
12841
+ }
12842
+ },
12843
+ {
12844
+ "kind": "field",
12845
+ "name": "calendarDaysContainer",
12846
+ "type": {
12847
+ "text": "HTMLElement"
12848
+ }
12849
+ },
12850
+ {
12851
+ "kind": "field",
12852
+ "name": "selectedDayElement",
12853
+ "type": {
12854
+ "text": "HTMLElement"
12855
+ }
12856
+ },
12857
+ {
12858
+ "kind": "field",
12859
+ "name": "prevBtn",
12860
+ "type": {
12861
+ "text": "HTMLElement"
12862
+ }
12863
+ },
12864
+ {
12865
+ "kind": "field",
12866
+ "name": "nextBtn",
12867
+ "type": {
12868
+ "text": "HTMLElement"
12869
+ }
12870
+ },
12871
+ {
12872
+ "kind": "field",
12873
+ "name": "substringNumber",
12874
+ "type": {
12875
+ "text": "number"
12876
+ },
12877
+ "default": "3"
12883
12878
  },
12884
12879
  {
12885
12880
  "kind": "method",
12886
- "name": "close",
12887
- "return": {
12888
- "type": {
12889
- "text": "void"
12881
+ "name": "updateHeaderText"
12882
+ },
12883
+ {
12884
+ "kind": "method",
12885
+ "name": "toggleCalendar"
12886
+ },
12887
+ {
12888
+ "kind": "method",
12889
+ "name": "toggleVisibility"
12890
+ },
12891
+ {
12892
+ "kind": "method",
12893
+ "name": "isSelectedDate",
12894
+ "parameters": [
12895
+ {
12896
+ "name": "date"
12890
12897
  }
12891
- },
12892
- "description": "Remove the HTMLDialogElement from display"
12898
+ ]
12893
12899
  },
12894
12900
  {
12895
12901
  "kind": "method",
12896
- "name": "dismiss",
12897
- "privacy": "public",
12898
- "description": "Dismiss the Dialog from display and calls the dismissing action."
12902
+ "name": "isCurrentCalendarMonth"
12899
12903
  },
12900
12904
  {
12901
12905
  "kind": "method",
12902
- "name": "closeDialog",
12903
- "privacy": "public",
12904
- "return": {
12905
- "type": {
12906
- "text": "void"
12906
+ "name": "prevMonth"
12907
+ },
12908
+ {
12909
+ "kind": "method",
12910
+ "name": "nextMonth"
12911
+ },
12912
+ {
12913
+ "kind": "method",
12914
+ "name": "selectDay",
12915
+ "parameters": [
12916
+ {
12917
+ "name": "day"
12907
12918
  }
12908
- },
12909
- "description": "Dismiss the Dialog from display."
12919
+ ]
12920
+ },
12921
+ {
12922
+ "kind": "method",
12923
+ "name": "getMonthDaysGrid"
12910
12924
  },
12911
12925
  {
12912
12926
  "kind": "field",
@@ -13022,378 +13036,215 @@
13022
13036
  ],
13023
13037
  "attributes": [
13024
13038
  {
13025
- "name": "position",
13039
+ "name": "format",
13026
13040
  "type": {
13027
- "text": "'centre' | 'left' | 'right'"
13041
+ "text": "string"
13028
13042
  },
13029
- "default": "'centre'",
13030
- "fieldName": "position"
13043
+ "default": "'MM-DD-YYYY'",
13044
+ "fieldName": "format"
13031
13045
  },
13032
13046
  {
13033
- "name": "show-close-icon",
13047
+ "name": "lang",
13034
13048
  "type": {
13035
- "text": "boolean"
13036
- },
13037
- "default": "true",
13038
- "description": "Whether or not to show the close icon",
13039
- "fieldName": "showCloseIcon"
13040
- }
13041
- ],
13042
- "superclass": {
13043
- "name": "FoundationElement",
13044
- "package": "@microsoft/fast-foundation"
13045
- }
13046
- },
13047
- {
13048
- "kind": "class",
13049
- "description": "",
13050
- "name": "Dialog",
13051
- "members": [
13052
- {
13053
- "kind": "method",
13054
- "name": "show",
13055
- "return": {
13056
- "type": {
13057
- "text": "void"
13058
- }
13049
+ "text": "string"
13059
13050
  },
13060
- "description": "Show the HTMLDialogElement and its contents",
13061
- "inheritedFrom": {
13062
- "name": "<local>_DialogElement",
13063
- "module": "src/dialog/dialog.ts"
13064
- }
13051
+ "default": "'en-US'",
13052
+ "fieldName": "lang"
13065
13053
  },
13066
13054
  {
13067
- "kind": "field",
13068
- "name": "mainElement",
13055
+ "name": "visible",
13069
13056
  "type": {
13070
- "text": "HTMLDialogElement"
13057
+ "text": "boolean"
13071
13058
  },
13072
- "description": "A reference to the dialog element\nin the component Shadow DOM.",
13073
- "inheritedFrom": {
13074
- "name": "<local>_DialogElement",
13075
- "module": "src/dialog/dialog.ts"
13076
- }
13059
+ "default": "false",
13060
+ "fieldName": "visible"
13077
13061
  },
13078
13062
  {
13079
- "kind": "field",
13080
- "name": "notification",
13063
+ "name": "position",
13081
13064
  "type": {
13082
- "text": "NotificationStructure"
13065
+ "text": "string"
13083
13066
  },
13084
- "inheritedFrom": {
13085
- "name": "<local>_DialogElement",
13086
- "module": "src/dialog/dialog.ts"
13087
- }
13088
- },
13089
- {
13090
- "kind": "method",
13091
- "name": "notificationChanged",
13092
- "inheritedFrom": {
13093
- "name": "<local>_DialogElement",
13094
- "module": "src/dialog/dialog.ts"
13095
- }
13067
+ "default": "'bottom'",
13068
+ "fieldName": "position"
13096
13069
  },
13097
13070
  {
13098
- "kind": "field",
13099
- "name": "position",
13071
+ "name": "label",
13100
13072
  "type": {
13101
- "text": "'centre' | 'left' | 'right'"
13073
+ "text": "string"
13102
13074
  },
13103
- "default": "'centre'",
13104
- "inheritedFrom": {
13105
- "name": "<local>_DialogElement",
13106
- "module": "src/dialog/dialog.ts"
13107
- }
13075
+ "fieldName": "label"
13108
13076
  },
13109
13077
  {
13110
- "kind": "field",
13111
- "name": "showCloseIcon",
13078
+ "name": "value",
13112
13079
  "type": {
13113
- "text": "boolean"
13080
+ "text": "string"
13114
13081
  },
13115
- "default": "true",
13116
- "description": "Whether or not to show the close icon",
13117
- "inheritedFrom": {
13118
- "name": "<local>_DialogElement",
13119
- "module": "src/dialog/dialog.ts"
13120
- }
13121
- },
13082
+ "fieldName": "value"
13083
+ }
13084
+ ],
13085
+ "superclass": {
13086
+ "name": "FoundationElement",
13087
+ "package": "@microsoft/fast-foundation"
13088
+ },
13089
+ "tagName": "%%prefix%%-date-picker",
13090
+ "customElement": true
13091
+ },
13092
+ {
13093
+ "kind": "variable",
13094
+ "name": "foundationDatePicker",
13095
+ "description": "The Foundation DatePicker",
13096
+ "privacy": "public"
13097
+ }
13098
+ ],
13099
+ "exports": [
13100
+ {
13101
+ "kind": "js",
13102
+ "name": "foundationDatePickerShadowOptions",
13103
+ "declaration": {
13104
+ "name": "foundationDatePickerShadowOptions",
13105
+ "module": "src/date-picker/date-picker.ts"
13106
+ }
13107
+ },
13108
+ {
13109
+ "kind": "js",
13110
+ "name": "defaultDatePickerConfig",
13111
+ "declaration": {
13112
+ "name": "defaultDatePickerConfig",
13113
+ "module": "src/date-picker/date-picker.ts"
13114
+ }
13115
+ },
13116
+ {
13117
+ "kind": "js",
13118
+ "name": "DatePicker",
13119
+ "declaration": {
13120
+ "name": "DatePicker",
13121
+ "module": "src/date-picker/date-picker.ts"
13122
+ }
13123
+ },
13124
+ {
13125
+ "kind": "js",
13126
+ "name": "foundationDatePicker",
13127
+ "declaration": {
13128
+ "name": "foundationDatePicker",
13129
+ "module": "src/date-picker/date-picker.ts"
13130
+ }
13131
+ }
13132
+ ]
13133
+ },
13134
+ {
13135
+ "kind": "javascript-module",
13136
+ "path": "src/date-picker/day.ts",
13137
+ "declarations": [
13138
+ {
13139
+ "kind": "class",
13140
+ "description": "",
13141
+ "name": "Day",
13142
+ "members": [
13122
13143
  {
13123
13144
  "kind": "field",
13124
- "name": "onShowCallback",
13145
+ "name": "Date",
13125
13146
  "type": {
13126
- "text": "() => void"
13147
+ "text": "Object"
13127
13148
  },
13128
- "description": "Callback to run *before* HTMLDialogElement is shown",
13129
- "inheritedFrom": {
13130
- "name": "<local>_DialogElement",
13131
- "module": "src/dialog/dialog.ts"
13132
- }
13149
+ "default": "date"
13133
13150
  },
13134
13151
  {
13135
13152
  "kind": "field",
13136
- "name": "onCloseCallback",
13153
+ "name": "date",
13137
13154
  "type": {
13138
- "text": "() => void"
13139
- },
13140
- "description": "Callback to run *after* HTMLDialogElement is closed",
13141
- "inheritedFrom": {
13142
- "name": "<local>_DialogElement",
13143
- "module": "src/dialog/dialog.ts"
13155
+ "text": "Date"
13144
13156
  }
13145
13157
  },
13146
13158
  {
13147
13159
  "kind": "field",
13148
- "name": "open",
13160
+ "name": "day",
13149
13161
  "type": {
13150
- "text": "boolean"
13151
- },
13152
- "description": "Determine if the dialog is showing or closed.",
13153
- "readonly": true,
13154
- "inheritedFrom": {
13155
- "name": "<local>_DialogElement",
13156
- "module": "src/dialog/dialog.ts"
13162
+ "text": "string"
13157
13163
  }
13158
13164
  },
13159
13165
  {
13160
- "kind": "method",
13161
- "name": "close",
13162
- "return": {
13163
- "type": {
13164
- "text": "void"
13165
- }
13166
- },
13167
- "description": "Remove the HTMLDialogElement from display",
13168
- "inheritedFrom": {
13169
- "name": "<local>_DialogElement",
13170
- "module": "src/dialog/dialog.ts"
13166
+ "kind": "field",
13167
+ "name": "dayNumber",
13168
+ "type": {
13169
+ "text": "number"
13171
13170
  }
13172
13171
  },
13173
13172
  {
13174
- "kind": "method",
13175
- "name": "dismiss",
13176
- "privacy": "public",
13177
- "description": "Dismiss the Dialog from display and calls the dismissing action.",
13178
- "inheritedFrom": {
13179
- "name": "<local>_DialogElement",
13180
- "module": "src/dialog/dialog.ts"
13173
+ "kind": "field",
13174
+ "name": "dayShort",
13175
+ "type": {
13176
+ "text": "string"
13181
13177
  }
13182
13178
  },
13183
13179
  {
13184
- "kind": "method",
13185
- "name": "closeDialog",
13186
- "privacy": "public",
13187
- "return": {
13188
- "type": {
13189
- "text": "void"
13190
- }
13191
- },
13192
- "description": "Dismiss the Dialog from display.",
13193
- "inheritedFrom": {
13194
- "name": "<local>_DialogElement",
13195
- "module": "src/dialog/dialog.ts"
13180
+ "kind": "field",
13181
+ "name": "year",
13182
+ "type": {
13183
+ "text": "number"
13196
13184
  }
13197
13185
  },
13198
13186
  {
13199
13187
  "kind": "field",
13200
- "name": "_presentation",
13188
+ "name": "yearShort",
13201
13189
  "type": {
13202
- "text": "ComponentPresentation | null | undefined"
13203
- },
13204
- "privacy": "private",
13205
- "default": "void 0",
13206
- "inheritedFrom": {
13207
- "name": "FoundationElement",
13208
- "module": "src/foundation-element/foundation-element.ts"
13190
+ "text": "number"
13209
13191
  }
13210
13192
  },
13211
13193
  {
13212
13194
  "kind": "field",
13213
- "name": "$presentation",
13195
+ "name": "month",
13214
13196
  "type": {
13215
- "text": "ComponentPresentation | null"
13216
- },
13217
- "privacy": "public",
13218
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
13219
- "inheritedFrom": {
13220
- "name": "FoundationElement",
13221
- "module": "src/foundation-element/foundation-element.ts"
13197
+ "text": "string"
13222
13198
  }
13223
13199
  },
13224
13200
  {
13225
13201
  "kind": "field",
13226
- "name": "template",
13202
+ "name": "monthShort",
13227
13203
  "type": {
13228
- "text": "ElementViewTemplate | void | null"
13229
- },
13230
- "privacy": "public",
13231
- "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.",
13232
- "inheritedFrom": {
13233
- "name": "FoundationElement",
13234
- "module": "src/foundation-element/foundation-element.ts"
13204
+ "text": "string"
13235
13205
  }
13236
13206
  },
13237
13207
  {
13238
- "kind": "method",
13239
- "name": "templateChanged",
13240
- "privacy": "protected",
13241
- "return": {
13242
- "type": {
13243
- "text": "void"
13244
- }
13245
- },
13246
- "inheritedFrom": {
13247
- "name": "FoundationElement",
13248
- "module": "src/foundation-element/foundation-element.ts"
13208
+ "kind": "field",
13209
+ "name": "monthNumber",
13210
+ "type": {
13211
+ "text": "number"
13249
13212
  }
13250
13213
  },
13251
13214
  {
13252
13215
  "kind": "field",
13253
- "name": "styles",
13216
+ "name": "timestamp",
13254
13217
  "type": {
13255
- "text": "ElementStyles | void | null"
13256
- },
13257
- "privacy": "public",
13258
- "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.",
13259
- "inheritedFrom": {
13260
- "name": "FoundationElement",
13261
- "module": "src/foundation-element/foundation-element.ts"
13218
+ "text": "number"
13262
13219
  }
13263
13220
  },
13264
13221
  {
13265
- "kind": "method",
13266
- "name": "stylesChanged",
13267
- "privacy": "protected",
13268
- "return": {
13269
- "type": {
13270
- "text": "void"
13271
- }
13272
- },
13273
- "inheritedFrom": {
13274
- "name": "FoundationElement",
13275
- "module": "src/foundation-element/foundation-element.ts"
13222
+ "kind": "field",
13223
+ "name": "week",
13224
+ "type": {
13225
+ "text": "number"
13276
13226
  }
13277
13227
  },
13278
13228
  {
13279
- "kind": "method",
13280
- "name": "compose",
13281
- "privacy": "public",
13282
- "static": true,
13283
- "return": {
13284
- "type": {
13285
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
13286
- }
13287
- },
13288
- "parameters": [
13289
- {
13290
- "name": "this",
13291
- "type": {
13292
- "text": "K"
13293
- }
13294
- },
13295
- {
13296
- "name": "elementDefinition",
13297
- "type": {
13298
- "text": "T"
13299
- },
13300
- "description": "The definition of the element to create the registry\nfunction for."
13301
- }
13302
- ],
13303
- "description": "Defines an element registry function with a set of element definition defaults.",
13304
- "inheritedFrom": {
13305
- "name": "FoundationElement",
13306
- "module": "src/foundation-element/foundation-element.ts"
13307
- }
13308
- }
13309
- ],
13310
- "superclass": {
13311
- "name": "DialogElement",
13312
- "module": "src/dialog/dialog.ts"
13313
- },
13314
- "tagName": "%%prefix%%-dialog",
13315
- "customElement": true,
13316
- "attributes": [
13317
- {
13318
- "name": "position",
13319
- "type": {
13320
- "text": "'centre' | 'left' | 'right'"
13321
- },
13322
- "default": "'centre'",
13323
- "fieldName": "position",
13324
- "inheritedFrom": {
13325
- "name": "<local>_DialogElement",
13326
- "module": "src/dialog/dialog.ts"
13327
- }
13328
- },
13329
- {
13330
- "name": "show-close-icon",
13331
- "type": {
13332
- "text": "boolean"
13333
- },
13334
- "default": "true",
13335
- "description": "Whether or not to show the close icon",
13336
- "fieldName": "showCloseIcon",
13337
- "inheritedFrom": {
13338
- "name": "<local>_DialogElement",
13339
- "module": "src/dialog/dialog.ts"
13340
- }
13229
+ "kind": "field"
13341
13230
  }
13342
13231
  ]
13343
- },
13344
- {
13345
- "kind": "variable",
13346
- "name": "foundationDialog",
13347
- "description": "The Foundation Dialog",
13348
- "privacy": "public"
13349
13232
  }
13350
13233
  ],
13351
13234
  "exports": [
13352
13235
  {
13353
13236
  "kind": "js",
13354
- "name": "foundationDialogShadowOptions",
13355
- "declaration": {
13356
- "name": "foundationDialogShadowOptions",
13357
- "module": "src/dialog/dialog.ts"
13358
- }
13359
- },
13360
- {
13361
- "kind": "js",
13362
- "name": "defaultDialogConfig",
13363
- "declaration": {
13364
- "name": "defaultDialogConfig",
13365
- "module": "src/dialog/dialog.ts"
13366
- }
13367
- },
13368
- {
13369
- "kind": "js",
13370
- "name": "DialogElement",
13371
- "declaration": {
13372
- "name": "DialogElement",
13373
- "module": "src/dialog/dialog.ts"
13374
- }
13375
- },
13376
- {
13377
- "kind": "js",
13378
- "name": "Dialog",
13379
- "declaration": {
13380
- "name": "Dialog",
13381
- "module": "src/dialog/dialog.ts"
13382
- }
13383
- },
13384
- {
13385
- "kind": "js",
13386
- "name": "foundationDialog",
13237
+ "name": "default",
13387
13238
  "declaration": {
13388
- "name": "foundationDialog",
13389
- "module": "src/dialog/dialog.ts"
13239
+ "name": "Day",
13240
+ "module": "src/date-picker/day.ts"
13390
13241
  }
13391
13242
  }
13392
13243
  ]
13393
13244
  },
13394
13245
  {
13395
13246
  "kind": "javascript-module",
13396
- "path": "src/dialog/index.ts",
13247
+ "path": "src/date-picker/index.ts",
13397
13248
  "declarations": [],
13398
13249
  "exports": [
13399
13250
  {
@@ -13401,7 +13252,7 @@
13401
13252
  "name": "*",
13402
13253
  "declaration": {
13403
13254
  "name": "*",
13404
- "package": "./dialog.styles"
13255
+ "package": "./date-picker.styles"
13405
13256
  }
13406
13257
  },
13407
13258
  {
@@ -13409,7 +13260,7 @@
13409
13260
  "name": "*",
13410
13261
  "declaration": {
13411
13262
  "name": "*",
13412
- "package": "./dialog.template"
13263
+ "package": "./date-picker.template"
13413
13264
  }
13414
13265
  },
13415
13266
  {
@@ -13417,209 +13268,295 @@
13417
13268
  "name": "*",
13418
13269
  "declaration": {
13419
13270
  "name": "*",
13420
- "package": "./dialog"
13271
+ "package": "./date-picker"
13421
13272
  }
13422
13273
  }
13423
13274
  ]
13424
13275
  },
13425
13276
  {
13426
13277
  "kind": "javascript-module",
13427
- "path": "src/date-picker/calendar.ts",
13278
+ "path": "src/date-picker/month.ts",
13428
13279
  "declarations": [
13429
13280
  {
13430
13281
  "kind": "class",
13431
13282
  "description": "",
13432
- "name": "Calendar",
13283
+ "name": "Month",
13433
13284
  "members": [
13434
13285
  {
13435
13286
  "kind": "field",
13436
- "name": "today",
13287
+ "name": "lang",
13437
13288
  "type": {
13438
- "text": "any"
13289
+ "text": "string"
13439
13290
  },
13440
- "default": "new Day(null, lang)"
13291
+ "default": "lang"
13441
13292
  },
13442
13293
  {
13443
13294
  "kind": "field",
13444
- "name": "year",
13295
+ "name": "name",
13445
13296
  "type": {
13446
- "text": "number"
13297
+ "text": "string"
13447
13298
  }
13448
13299
  },
13449
13300
  {
13450
13301
  "kind": "field",
13451
- "name": "month",
13302
+ "name": "number",
13452
13303
  "type": {
13453
- "text": "any"
13454
- },
13455
- "default": "new Month(new Date(this.year, (monthNumber || this.today.monthNumber) - 1), lang)"
13304
+ "text": "number"
13305
+ }
13456
13306
  },
13457
13307
  {
13458
13308
  "kind": "field",
13459
- "name": "lang",
13309
+ "name": "year",
13460
13310
  "type": {
13461
- "text": "string"
13462
- },
13463
- "default": "lang"
13311
+ "text": "number"
13312
+ }
13464
13313
  },
13465
13314
  {
13466
13315
  "kind": "field",
13467
- "name": "weekDays"
13316
+ "name": "numberOfDays",
13317
+ "type": {
13318
+ "text": "number"
13319
+ },
13320
+ "default": "monthSize[this.number - 1]"
13468
13321
  },
13469
13322
  {
13470
13323
  "kind": "method",
13471
- "name": "getMonth",
13324
+ "name": "getDay",
13472
13325
  "parameters": [
13473
13326
  {
13474
- "name": "monthNumber"
13327
+ "name": "date"
13475
13328
  }
13476
13329
  ]
13477
- },
13330
+ }
13331
+ ]
13332
+ }
13333
+ ],
13334
+ "exports": [
13335
+ {
13336
+ "kind": "js",
13337
+ "name": "default",
13338
+ "declaration": {
13339
+ "name": "Month",
13340
+ "module": "src/date-picker/month.ts"
13341
+ }
13342
+ }
13343
+ ]
13344
+ },
13345
+ {
13346
+ "kind": "javascript-module",
13347
+ "path": "src/design-system-provider/design-system-provider.styles.ts",
13348
+ "declarations": [
13349
+ {
13350
+ "kind": "function",
13351
+ "name": "designSystemProviderStyles",
13352
+ "parameters": [
13478
13353
  {
13479
- "kind": "method",
13480
- "name": "getPreviousMonth"
13481
- },
13354
+ "name": "context",
13355
+ "type": {
13356
+ "text": "ElementDefinitionContext"
13357
+ }
13358
+ }
13359
+ ]
13360
+ }
13361
+ ],
13362
+ "exports": [
13363
+ {
13364
+ "kind": "js",
13365
+ "name": "designSystemProviderStyles",
13366
+ "declaration": {
13367
+ "name": "designSystemProviderStyles",
13368
+ "module": "src/design-system-provider/design-system-provider.styles.ts"
13369
+ }
13370
+ }
13371
+ ]
13372
+ },
13373
+ {
13374
+ "kind": "javascript-module",
13375
+ "path": "src/design-system-provider/design-system-provider.ts",
13376
+ "declarations": [
13377
+ {
13378
+ "kind": "class",
13379
+ "description": "The Foundation Design System Provider",
13380
+ "name": "FoundationDesignSystemProvider",
13381
+ "members": [
13482
13382
  {
13483
- "kind": "method",
13484
- "name": "getNextMonth"
13383
+ "kind": "field",
13384
+ "name": "cardFillColor",
13385
+ "type": {
13386
+ "text": "Swatch"
13387
+ },
13388
+ "privacy": "public"
13485
13389
  },
13486
13390
  {
13487
- "kind": "method",
13488
- "name": "goToDate",
13489
- "parameters": [
13490
- {
13491
- "name": "monthNumber"
13492
- },
13493
- {
13494
- "name": "year"
13495
- }
13496
- ]
13497
- },
13391
+ "kind": "field",
13392
+ "name": "cardForegroundColor",
13393
+ "type": {
13394
+ "text": "Swatch"
13395
+ },
13396
+ "privacy": "public"
13397
+ }
13398
+ ],
13399
+ "attributes": [
13498
13400
  {
13499
- "kind": "method",
13500
- "name": "goToNextYear"
13401
+ "name": "card-fill-color",
13402
+ "type": {
13403
+ "text": "Swatch"
13404
+ },
13405
+ "fieldName": "cardFillColor"
13501
13406
  },
13502
13407
  {
13503
- "kind": "method",
13504
- "name": "goToPreviousYear"
13505
- },
13408
+ "name": "card-foreground-color",
13409
+ "type": {
13410
+ "text": "Swatch"
13411
+ },
13412
+ "fieldName": "cardForegroundColor"
13413
+ }
13414
+ ],
13415
+ "superclass": {
13416
+ "name": "FASTDesignSystemProvider",
13417
+ "package": "@microsoft/fast-components"
13418
+ },
13419
+ "tagName": "%%prefix%%-design-system-provider",
13420
+ "customElement": true
13421
+ },
13422
+ {
13423
+ "kind": "variable",
13424
+ "name": "foundationDesignSystemProvider",
13425
+ "description": "The Foundation Design System Provider composed element",
13426
+ "privacy": "public"
13427
+ }
13428
+ ],
13429
+ "exports": [
13430
+ {
13431
+ "kind": "js",
13432
+ "name": "FoundationDesignSystemProvider",
13433
+ "declaration": {
13434
+ "name": "FoundationDesignSystemProvider",
13435
+ "module": "src/design-system-provider/design-system-provider.ts"
13436
+ }
13437
+ },
13438
+ {
13439
+ "kind": "js",
13440
+ "name": "foundationDesignSystemProvider",
13441
+ "declaration": {
13442
+ "name": "foundationDesignSystemProvider",
13443
+ "module": "src/design-system-provider/design-system-provider.ts"
13444
+ }
13445
+ }
13446
+ ]
13447
+ },
13448
+ {
13449
+ "kind": "javascript-module",
13450
+ "path": "src/design-system-provider/design-system-provider.utils.ts",
13451
+ "declarations": [
13452
+ {
13453
+ "kind": "function",
13454
+ "name": "provideTokens",
13455
+ "parameters": [
13506
13456
  {
13507
- "kind": "method",
13508
- "name": "goToNextMonth"
13457
+ "name": "tokens"
13509
13458
  },
13510
13459
  {
13511
- "kind": "method",
13512
- "name": "goToPreviousMonth"
13460
+ "name": "values"
13513
13461
  },
13514
13462
  {
13515
- "kind": "field",
13516
- "name": "_presentation",
13463
+ "name": "element",
13464
+ "optional": true,
13517
13465
  "type": {
13518
- "text": "ComponentPresentation | null | undefined"
13519
- },
13520
- "privacy": "private",
13521
- "default": "void 0",
13522
- "inheritedFrom": {
13523
- "name": "FoundationElement",
13524
- "module": "src/foundation-element/foundation-element.ts"
13466
+ "text": "HTMLElement"
13525
13467
  }
13526
- },
13468
+ }
13469
+ ]
13470
+ },
13471
+ {
13472
+ "kind": "function",
13473
+ "name": "designToken",
13474
+ "parameters": [
13527
13475
  {
13528
- "kind": "field",
13529
- "name": "$presentation",
13476
+ "name": "token",
13530
13477
  "type": {
13531
- "text": "ComponentPresentation | null"
13532
- },
13533
- "privacy": "public",
13534
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
13535
- "inheritedFrom": {
13536
- "name": "FoundationElement",
13537
- "module": "src/foundation-element/foundation-element.ts"
13478
+ "text": "DesignToken<T>"
13538
13479
  }
13539
- },
13480
+ }
13481
+ ]
13482
+ },
13483
+ {
13484
+ "kind": "variable",
13485
+ "name": "swatchConverter",
13486
+ "type": {
13487
+ "text": "ValueConverter"
13488
+ },
13489
+ "default": "{\n toView(value: any): string | null {\n if (value === null || value === undefined) {\n return null;\n }\n return (value as Swatch)?.toColorString();\n },\n\n fromView(value: any): any {\n if (value === null || value === undefined) {\n return null;\n }\n const color = parseColorHexRGB(value);\n return color ? SwatchRGB.create(color!.r, color!.g, color!.b) : null;\n },\n}"
13490
+ },
13491
+ {
13492
+ "kind": "function",
13493
+ "name": "paletteFromHex",
13494
+ "parameters": [
13540
13495
  {
13541
- "kind": "field",
13542
- "name": "template",
13496
+ "name": "hexColor",
13543
13497
  "type": {
13544
- "text": "ElementViewTemplate | void | null"
13545
- },
13546
- "privacy": "public",
13547
- "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.",
13548
- "inheritedFrom": {
13549
- "name": "FoundationElement",
13550
- "module": "src/foundation-element/foundation-element.ts"
13498
+ "text": "string"
13551
13499
  }
13552
- },
13500
+ }
13501
+ ]
13502
+ },
13503
+ {
13504
+ "kind": "function",
13505
+ "name": "getDefaultConfig",
13506
+ "parameters": [
13553
13507
  {
13554
- "kind": "method",
13555
- "name": "templateChanged",
13556
- "privacy": "protected",
13557
- "return": {
13558
- "type": {
13559
- "text": "void"
13560
- }
13561
- },
13562
- "inheritedFrom": {
13563
- "name": "FoundationElement",
13564
- "module": "src/foundation-element/foundation-element.ts"
13508
+ "name": "definition",
13509
+ "type": {
13510
+ "text": "Partial<FoundationElementDefinition>"
13565
13511
  }
13566
13512
  },
13567
13513
  {
13568
- "kind": "field",
13569
- "name": "styles",
13514
+ "name": "exclusions",
13515
+ "default": "defaultExclusions"
13516
+ }
13517
+ ]
13518
+ },
13519
+ {
13520
+ "kind": "function",
13521
+ "name": "getExports",
13522
+ "parameters": [
13523
+ {
13524
+ "name": "registrationFunction"
13525
+ }
13526
+ ]
13527
+ },
13528
+ {
13529
+ "kind": "function",
13530
+ "name": "getTypeRampValue",
13531
+ "parameters": [
13532
+ {
13533
+ "name": "baseTypeRamp",
13570
13534
  "type": {
13571
- "text": "ElementStyles | void | null"
13572
- },
13573
- "privacy": "public",
13574
- "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.",
13575
- "inheritedFrom": {
13576
- "name": "FoundationElement",
13577
- "module": "src/foundation-element/foundation-element.ts"
13535
+ "text": "string"
13578
13536
  }
13579
13537
  },
13580
13538
  {
13581
- "kind": "method",
13582
- "name": "stylesChanged",
13583
- "privacy": "protected",
13584
- "return": {
13585
- "type": {
13586
- "text": "void"
13587
- }
13588
- },
13589
- "inheritedFrom": {
13590
- "name": "FoundationElement",
13591
- "module": "src/foundation-element/foundation-element.ts"
13539
+ "name": "value",
13540
+ "type": {
13541
+ "text": "number"
13542
+ }
13543
+ }
13544
+ ]
13545
+ },
13546
+ {
13547
+ "kind": "function",
13548
+ "name": "configureDesignSystem",
13549
+ "parameters": [
13550
+ {
13551
+ "name": "provider",
13552
+ "type": {
13553
+ "text": "HTMLElement"
13592
13554
  }
13593
13555
  },
13594
13556
  {
13595
- "kind": "method",
13596
- "name": "compose",
13597
- "privacy": "public",
13598
- "static": true,
13599
- "return": {
13600
- "type": {
13601
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
13602
- }
13603
- },
13604
- "parameters": [
13605
- {
13606
- "name": "this",
13607
- "type": {
13608
- "text": "K"
13609
- }
13610
- },
13611
- {
13612
- "name": "elementDefinition",
13613
- "type": {
13614
- "text": "T"
13615
- },
13616
- "description": "The definition of the element to create the registry\nfunction for."
13617
- }
13618
- ],
13619
- "description": "Defines an element registry function with a set of element definition defaults.",
13620
- "inheritedFrom": {
13621
- "name": "FoundationElement",
13622
- "module": "src/foundation-element/foundation-element.ts"
13557
+ "name": "config",
13558
+ "type": {
13559
+ "text": "DesignTokensConfig"
13623
13560
  }
13624
13561
  }
13625
13562
  ]
@@ -13628,45 +13565,138 @@
13628
13565
  "exports": [
13629
13566
  {
13630
13567
  "kind": "js",
13631
- "name": "default",
13568
+ "name": "provideTokens",
13569
+ "declaration": {
13570
+ "name": "provideTokens",
13571
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13572
+ }
13573
+ },
13574
+ {
13575
+ "kind": "js",
13576
+ "name": "designToken",
13577
+ "declaration": {
13578
+ "name": "designToken",
13579
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13580
+ }
13581
+ },
13582
+ {
13583
+ "kind": "js",
13584
+ "name": "swatchConverter",
13585
+ "declaration": {
13586
+ "name": "swatchConverter",
13587
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13588
+ }
13589
+ },
13590
+ {
13591
+ "kind": "js",
13592
+ "name": "paletteFromHex",
13593
+ "declaration": {
13594
+ "name": "paletteFromHex",
13595
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13596
+ }
13597
+ },
13598
+ {
13599
+ "kind": "js",
13600
+ "name": "getDefaultConfig",
13601
+ "declaration": {
13602
+ "name": "getDefaultConfig",
13603
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13604
+ }
13605
+ },
13606
+ {
13607
+ "kind": "js",
13608
+ "name": "getExports",
13609
+ "declaration": {
13610
+ "name": "getExports",
13611
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13612
+ }
13613
+ },
13614
+ {
13615
+ "kind": "js",
13616
+ "name": "getTypeRampValue",
13617
+ "declaration": {
13618
+ "name": "getTypeRampValue",
13619
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13620
+ }
13621
+ },
13622
+ {
13623
+ "kind": "js",
13624
+ "name": "configureDesignSystem",
13625
+ "declaration": {
13626
+ "name": "configureDesignSystem",
13627
+ "module": "src/design-system-provider/design-system-provider.utils.ts"
13628
+ }
13629
+ }
13630
+ ]
13631
+ },
13632
+ {
13633
+ "kind": "javascript-module",
13634
+ "path": "src/design-system-provider/index.ts",
13635
+ "declarations": [],
13636
+ "exports": [
13637
+ {
13638
+ "kind": "js",
13639
+ "name": "*",
13640
+ "declaration": {
13641
+ "name": "*",
13642
+ "package": "./design-system-provider.utils"
13643
+ }
13644
+ },
13645
+ {
13646
+ "kind": "js",
13647
+ "name": "*",
13632
13648
  "declaration": {
13633
- "name": "Calendar",
13634
- "module": "src/date-picker/calendar.ts"
13649
+ "name": "*",
13650
+ "package": "./design-system-provider"
13651
+ }
13652
+ },
13653
+ {
13654
+ "kind": "js",
13655
+ "name": "*",
13656
+ "declaration": {
13657
+ "name": "*",
13658
+ "package": "./types"
13635
13659
  }
13636
13660
  }
13637
13661
  ]
13638
13662
  },
13639
13663
  {
13640
13664
  "kind": "javascript-module",
13641
- "path": "src/date-picker/date-picker.styles.ts",
13665
+ "path": "src/design-system-provider/types.ts",
13666
+ "declarations": [],
13667
+ "exports": []
13668
+ },
13669
+ {
13670
+ "kind": "javascript-module",
13671
+ "path": "src/dialog/dialog.styles.ts",
13642
13672
  "declarations": [
13643
13673
  {
13644
13674
  "kind": "variable",
13645
- "name": "foundationDatePickerStyles",
13675
+ "name": "foundationDialogStyles",
13646
13676
  "type": {
13647
13677
  "text": "ElementStyles"
13648
13678
  },
13649
- "default": "css`\n :host {\n position: relative;\n }\n\n .date-toggle::part(control) {\n cursor: pointer;\n }\n\n .date-toggle::part(label) {\n cursor: pointer;\n }\n\n .calendar-dropdown {\n display: none;\n width: 300px;\n z-index: 999;\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, 8px);\n margin: 10px 0 0;\n padding: 20px;\n background: var(--neutral-foreground-rest);\n border-radius: calc(var(--control-corner-radius) * 1px);\n box-shadow: 0 0 8px rgb(0 0 0 / 20%);\n }\n\n .calendar-dropdown.top {\n top: auto;\n bottom: 100%;\n margin: 0 0 5px;\n transform: translate(-50%, -8px);\n }\n\n .calendar-dropdown.left {\n top: 50%;\n left: 0;\n margin: 0 0 0 5px;\n transform: translate(calc(-8px + -100%), -50%);\n }\n\n .calendar-dropdown.right {\n top: 50%;\n left: 100%;\n transform: translate(8px, -50%);\n }\n\n .calendar-dropdown.visible {\n display: block;\n }\n\n .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0 0 10px;\n }\n\n .header h3 {\n margin: 0;\n text-transform: capitalize;\n font-weight: bold;\n color: var(--foreground-on-accent-rest);\n }\n\n .header .months-arrows {\n display: flex;\n flex-direction: row;\n }\n\n .header .icon-container {\n display: flex;\n width: 25px;\n height: 25px;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n }\n\n .header .icon-container:first-child {\n margin-right: calc(var(--design-unit) * 2px);\n }\n\n .header .prev-month,\n .header .next-month {\n color: var(--foreground-on-accent-rest);\n font-size: 18px;\n }\n\n .week-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n margin-bottom: 10px;\n color: var(--foreground-on-accent-rest);\n }\n\n .week-days span {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: bold;\n text-transform: capitalize;\n }\n\n .month-days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-gap: 5px;\n }\n\n .month-day {\n padding: 8px 5px;\n color: #808080;\n background: none;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: calc(var(--control-corner-radius) * 4px);\n cursor: pointer;\n border: none;\n }\n\n .month-day.current {\n opacity: 100%;\n color: var(--foreground-on-accent-rest);\n }\n\n .month-day.selected {\n background: var(--accent-foreground-rest);\n color: var(--neutral-foreground-rest);\n }\n\n .month-day:hover {\n background: var(--neutral-stroke-hover);\n color: (--neutral-foreground-rest);\n }\n\n .date-toggle[readonly] .label {\n cursor: pointer;\n }\n`"
13679
+ "default": "css`\n :host {\n --dialog-min-width: 358px;\n --notification-details-min-height: 40px;\n }\n\n .close-icon {\n position: absolute;\n right: calc(var(--design-unit) * 2px);\n top: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon svg {\n border-radius: calc(var(--control-corner-radius) * 1px);\n padding: calc(var(--design-unit) * 2px);\n }\n\n dialog {\n background-color: var(--dialog-background, var(--fill-color));\n padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)\n calc(var(--design-unit) * 4px);\n overflow: inherit;\n }\n\n :host([position='right']) dialog .content-wrapper,\n :host([position='left']) dialog .content-wrapper,\n :host([position='left']) dialog,\n :host([position='right']) dialog {\n height: 100%;\n }\n\n :host([position='left']) dialog {\n margin-left: 0;\n }\n\n :host([position='right']) dialog {\n margin-right: 0;\n }\n\n ::slotted(zero-divider) {\n width: 100%;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--notification-details-min-height);\n }\n`"
13650
13680
  }
13651
13681
  ],
13652
13682
  "exports": [
13653
13683
  {
13654
13684
  "kind": "js",
13655
- "name": "foundationDatePickerStyles",
13685
+ "name": "foundationDialogStyles",
13656
13686
  "declaration": {
13657
- "name": "foundationDatePickerStyles",
13658
- "module": "src/date-picker/date-picker.styles.ts"
13687
+ "name": "foundationDialogStyles",
13688
+ "module": "src/dialog/dialog.styles.ts"
13659
13689
  }
13660
13690
  }
13661
13691
  ]
13662
13692
  },
13663
13693
  {
13664
13694
  "kind": "javascript-module",
13665
- "path": "src/date-picker/date-picker.template.ts",
13695
+ "path": "src/dialog/dialog.template.ts",
13666
13696
  "declarations": [
13667
13697
  {
13668
13698
  "kind": "function",
13669
- "name": "getPrefixedDatePicker",
13699
+ "name": "getDialogTemplate",
13670
13700
  "parameters": [
13671
13701
  {
13672
13702
  "name": "prefix",
@@ -13678,44 +13708,44 @@
13678
13708
  },
13679
13709
  {
13680
13710
  "kind": "variable",
13681
- "name": "foundationDatePickerTemplate",
13682
- "default": "html<DatePicker>`\n ${(x) => getPrefixedDatePicker(getPrefix(x))}\n`"
13711
+ "name": "foundationDialogTemplate",
13712
+ "default": "html<Dialog>`\n ${(x) => getDialogTemplate(getPrefix(x))}\n`"
13683
13713
  }
13684
13714
  ],
13685
13715
  "exports": [
13686
13716
  {
13687
13717
  "kind": "js",
13688
- "name": "getPrefixedDatePicker",
13718
+ "name": "getDialogTemplate",
13689
13719
  "declaration": {
13690
- "name": "getPrefixedDatePicker",
13691
- "module": "src/date-picker/date-picker.template.ts"
13720
+ "name": "getDialogTemplate",
13721
+ "module": "src/dialog/dialog.template.ts"
13692
13722
  }
13693
13723
  },
13694
13724
  {
13695
13725
  "kind": "js",
13696
- "name": "foundationDatePickerTemplate",
13726
+ "name": "foundationDialogTemplate",
13697
13727
  "declaration": {
13698
- "name": "foundationDatePickerTemplate",
13699
- "module": "src/date-picker/date-picker.template.ts"
13728
+ "name": "foundationDialogTemplate",
13729
+ "module": "src/dialog/dialog.template.ts"
13700
13730
  }
13701
13731
  }
13702
13732
  ]
13703
13733
  },
13704
13734
  {
13705
13735
  "kind": "javascript-module",
13706
- "path": "src/date-picker/date-picker.ts",
13736
+ "path": "src/dialog/dialog.ts",
13707
13737
  "declarations": [
13708
13738
  {
13709
13739
  "kind": "variable",
13710
- "name": "foundationDatePickerShadowOptions",
13740
+ "name": "foundationDialogShadowOptions",
13711
13741
  "type": {
13712
13742
  "text": "ShadowRootInit"
13713
13743
  },
13714
- "default": "undefined"
13744
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
13715
13745
  },
13716
13746
  {
13717
13747
  "kind": "variable",
13718
- "name": "defaultDatePickerConfig",
13748
+ "name": "defaultDialogConfig",
13719
13749
  "type": {
13720
13750
  "text": "object"
13721
13751
  },
@@ -13724,229 +13754,105 @@
13724
13754
  {
13725
13755
  "kind": "class",
13726
13756
  "description": "",
13727
- "name": "DatePicker",
13757
+ "name": "DialogElement",
13728
13758
  "members": [
13729
13759
  {
13730
13760
  "kind": "field",
13731
- "name": "format",
13732
- "type": {
13733
- "text": "string"
13734
- },
13735
- "default": "'MM-DD-YYYY'"
13736
- },
13737
- {
13738
- "kind": "method",
13739
- "name": "formatChanged",
13740
- "parameters": [
13741
- {
13742
- "name": "oldValue",
13743
- "type": {
13744
- "text": "string"
13745
- }
13746
- },
13747
- {
13748
- "name": "newValue",
13749
- "type": {
13750
- "text": "string"
13751
- }
13752
- }
13753
- ]
13754
- },
13755
- {
13756
- "kind": "field",
13757
- "name": "lang",
13758
- "type": {
13759
- "text": "string"
13760
- },
13761
- "default": "'en-US'"
13762
- },
13763
- {
13764
- "kind": "field",
13765
- "name": "visible",
13766
- "type": {
13767
- "text": "boolean"
13768
- },
13769
- "default": "false"
13770
- },
13771
- {
13772
- "kind": "field",
13773
- "name": "position",
13761
+ "name": "mainElement",
13774
13762
  "type": {
13775
- "text": "string"
13763
+ "text": "HTMLDialogElement"
13776
13764
  },
13777
- "default": "'bottom'"
13778
- },
13779
- {
13780
- "kind": "field",
13781
- "name": "label",
13782
- "type": {
13783
- "text": "string"
13784
- }
13765
+ "description": "A reference to the dialog element\nin the component Shadow DOM."
13785
13766
  },
13786
13767
  {
13787
13768
  "kind": "field",
13788
- "name": "value",
13769
+ "name": "notification",
13789
13770
  "type": {
13790
- "text": "string"
13771
+ "text": "NotificationStructure"
13791
13772
  }
13792
13773
  },
13793
13774
  {
13794
13775
  "kind": "method",
13795
- "name": "valueChanged",
13796
- "parameters": [
13797
- {
13798
- "name": "oldValue",
13799
- "type": {
13800
- "text": "string"
13801
- }
13802
- },
13803
- {
13804
- "name": "newValue",
13805
- "type": {
13806
- "text": "string"
13807
- }
13808
- }
13809
- ]
13776
+ "name": "notificationChanged"
13810
13777
  },
13811
13778
  {
13812
13779
  "kind": "field",
13813
- "name": "currentDate",
13780
+ "name": "position",
13814
13781
  "type": {
13815
- "text": "any"
13782
+ "text": "'centre' | 'left' | 'right'"
13816
13783
  },
13817
- "default": "new Day(dayjsDate.toDate(), this.lang)"
13818
- },
13819
- {
13820
- "kind": "field",
13821
- "name": "currentMonth",
13822
- "type": {
13823
- "text": "Calendar"
13824
- }
13825
- },
13826
- {
13827
- "kind": "field",
13828
- "name": "currentYear",
13829
- "type": {
13830
- "text": "number"
13831
- }
13832
- },
13833
- {
13834
- "kind": "field",
13835
- "name": "calendarDropdownClasses",
13836
- "type": {
13837
- "text": "String"
13838
- }
13839
- },
13840
- {
13841
- "kind": "field",
13842
- "name": "formatDate",
13843
- "type": {
13844
- "text": "string"
13845
- }
13846
- },
13847
- {
13848
- "kind": "field",
13849
- "name": "monthList",
13850
- "type": {
13851
- "text": "any"
13852
- }
13784
+ "default": "'centre'"
13853
13785
  },
13854
13786
  {
13855
13787
  "kind": "field",
13856
- "name": "calendar",
13788
+ "name": "showCloseIcon",
13857
13789
  "type": {
13858
- "text": "Calendar"
13790
+ "text": "boolean"
13859
13791
  },
13860
- "default": "new Calendar(this.currentDate.year, this.currentDate.monthNumber, this.lang)"
13861
- },
13862
- {
13863
- "kind": "field",
13864
- "name": "toggleButton",
13865
- "type": {
13866
- "text": "HTMLElement"
13867
- }
13868
- },
13869
- {
13870
- "kind": "field",
13871
- "name": "calendarDaysContainer",
13872
- "type": {
13873
- "text": "HTMLElement"
13874
- }
13875
- },
13876
- {
13877
- "kind": "field",
13878
- "name": "selectedDayElement",
13879
- "type": {
13880
- "text": "HTMLElement"
13881
- }
13792
+ "default": "true",
13793
+ "description": "Whether or not to show the close icon"
13882
13794
  },
13883
13795
  {
13884
13796
  "kind": "field",
13885
- "name": "prevBtn",
13797
+ "name": "onShowCallback",
13886
13798
  "type": {
13887
- "text": "HTMLElement"
13888
- }
13799
+ "text": "() => void"
13800
+ },
13801
+ "description": "Callback to run *before* HTMLDialogElement is shown"
13889
13802
  },
13890
13803
  {
13891
13804
  "kind": "field",
13892
- "name": "nextBtn",
13805
+ "name": "onCloseCallback",
13893
13806
  "type": {
13894
- "text": "HTMLElement"
13895
- }
13807
+ "text": "() => void"
13808
+ },
13809
+ "description": "Callback to run *after* HTMLDialogElement is closed"
13896
13810
  },
13897
13811
  {
13898
13812
  "kind": "field",
13899
- "name": "substringNumber",
13813
+ "name": "open",
13900
13814
  "type": {
13901
- "text": "number"
13815
+ "text": "boolean"
13902
13816
  },
13903
- "default": "3"
13904
- },
13905
- {
13906
- "kind": "method",
13907
- "name": "updateHeaderText"
13908
- },
13909
- {
13910
- "kind": "method",
13911
- "name": "toggleCalendar"
13912
- },
13913
- {
13914
- "kind": "method",
13915
- "name": "toggleVisibility"
13817
+ "description": "Determine if the dialog is showing or closed.",
13818
+ "readonly": true
13916
13819
  },
13917
13820
  {
13918
13821
  "kind": "method",
13919
- "name": "isSelectedDate",
13920
- "parameters": [
13921
- {
13922
- "name": "date"
13822
+ "name": "show",
13823
+ "return": {
13824
+ "type": {
13825
+ "text": "void"
13923
13826
  }
13924
- ]
13925
- },
13926
- {
13927
- "kind": "method",
13928
- "name": "isCurrentCalendarMonth"
13827
+ },
13828
+ "description": "Show the HTMLDialogElement and its contents"
13929
13829
  },
13930
13830
  {
13931
13831
  "kind": "method",
13932
- "name": "prevMonth"
13832
+ "name": "close",
13833
+ "return": {
13834
+ "type": {
13835
+ "text": "void"
13836
+ }
13837
+ },
13838
+ "description": "Remove the HTMLDialogElement from display"
13933
13839
  },
13934
13840
  {
13935
13841
  "kind": "method",
13936
- "name": "nextMonth"
13842
+ "name": "dismiss",
13843
+ "privacy": "public",
13844
+ "description": "Dismiss the Dialog from display and calls the dismissing action."
13937
13845
  },
13938
13846
  {
13939
13847
  "kind": "method",
13940
- "name": "selectDay",
13941
- "parameters": [
13942
- {
13943
- "name": "day"
13848
+ "name": "closeDialog",
13849
+ "privacy": "public",
13850
+ "return": {
13851
+ "type": {
13852
+ "text": "void"
13944
13853
  }
13945
- ]
13946
- },
13947
- {
13948
- "kind": "method",
13949
- "name": "getMonthDaysGrid"
13854
+ },
13855
+ "description": "Dismiss the Dialog from display."
13950
13856
  },
13951
13857
  {
13952
13858
  "kind": "field",
@@ -14062,215 +13968,378 @@
14062
13968
  ],
14063
13969
  "attributes": [
14064
13970
  {
14065
- "name": "format",
13971
+ "name": "position",
14066
13972
  "type": {
14067
- "text": "string"
13973
+ "text": "'centre' | 'left' | 'right'"
14068
13974
  },
14069
- "default": "'MM-DD-YYYY'",
14070
- "fieldName": "format"
13975
+ "default": "'centre'",
13976
+ "fieldName": "position"
14071
13977
  },
14072
13978
  {
14073
- "name": "lang",
13979
+ "name": "show-close-icon",
14074
13980
  "type": {
14075
- "text": "string"
13981
+ "text": "boolean"
14076
13982
  },
14077
- "default": "'en-US'",
14078
- "fieldName": "lang"
14079
- },
13983
+ "default": "true",
13984
+ "description": "Whether or not to show the close icon",
13985
+ "fieldName": "showCloseIcon"
13986
+ }
13987
+ ],
13988
+ "superclass": {
13989
+ "name": "FoundationElement",
13990
+ "package": "@microsoft/fast-foundation"
13991
+ }
13992
+ },
13993
+ {
13994
+ "kind": "class",
13995
+ "description": "",
13996
+ "name": "Dialog",
13997
+ "members": [
14080
13998
  {
14081
- "name": "visible",
14082
- "type": {
14083
- "text": "boolean"
13999
+ "kind": "method",
14000
+ "name": "show",
14001
+ "return": {
14002
+ "type": {
14003
+ "text": "void"
14004
+ }
14084
14005
  },
14085
- "default": "false",
14086
- "fieldName": "visible"
14006
+ "description": "Show the HTMLDialogElement and its contents",
14007
+ "inheritedFrom": {
14008
+ "name": "<local>_DialogElement",
14009
+ "module": "src/dialog/dialog.ts"
14010
+ }
14087
14011
  },
14088
14012
  {
14089
- "name": "position",
14013
+ "kind": "field",
14014
+ "name": "mainElement",
14090
14015
  "type": {
14091
- "text": "string"
14016
+ "text": "HTMLDialogElement"
14092
14017
  },
14093
- "default": "'bottom'",
14094
- "fieldName": "position"
14018
+ "description": "A reference to the dialog element\nin the component Shadow DOM.",
14019
+ "inheritedFrom": {
14020
+ "name": "<local>_DialogElement",
14021
+ "module": "src/dialog/dialog.ts"
14022
+ }
14095
14023
  },
14096
14024
  {
14097
- "name": "label",
14025
+ "kind": "field",
14026
+ "name": "notification",
14098
14027
  "type": {
14099
- "text": "string"
14028
+ "text": "NotificationStructure"
14100
14029
  },
14101
- "fieldName": "label"
14030
+ "inheritedFrom": {
14031
+ "name": "<local>_DialogElement",
14032
+ "module": "src/dialog/dialog.ts"
14033
+ }
14102
14034
  },
14103
14035
  {
14104
- "name": "value",
14036
+ "kind": "method",
14037
+ "name": "notificationChanged",
14038
+ "inheritedFrom": {
14039
+ "name": "<local>_DialogElement",
14040
+ "module": "src/dialog/dialog.ts"
14041
+ }
14042
+ },
14043
+ {
14044
+ "kind": "field",
14045
+ "name": "position",
14105
14046
  "type": {
14106
- "text": "string"
14047
+ "text": "'centre' | 'left' | 'right'"
14107
14048
  },
14108
- "fieldName": "value"
14109
- }
14110
- ],
14111
- "superclass": {
14112
- "name": "FoundationElement",
14113
- "package": "@microsoft/fast-foundation"
14114
- },
14115
- "tagName": "%%prefix%%-date-picker",
14116
- "customElement": true
14117
- },
14118
- {
14119
- "kind": "variable",
14120
- "name": "foundationDatePicker",
14121
- "description": "The Foundation DatePicker",
14122
- "privacy": "public"
14123
- }
14124
- ],
14125
- "exports": [
14126
- {
14127
- "kind": "js",
14128
- "name": "foundationDatePickerShadowOptions",
14129
- "declaration": {
14130
- "name": "foundationDatePickerShadowOptions",
14131
- "module": "src/date-picker/date-picker.ts"
14132
- }
14133
- },
14134
- {
14135
- "kind": "js",
14136
- "name": "defaultDatePickerConfig",
14137
- "declaration": {
14138
- "name": "defaultDatePickerConfig",
14139
- "module": "src/date-picker/date-picker.ts"
14140
- }
14141
- },
14142
- {
14143
- "kind": "js",
14144
- "name": "DatePicker",
14145
- "declaration": {
14146
- "name": "DatePicker",
14147
- "module": "src/date-picker/date-picker.ts"
14148
- }
14149
- },
14150
- {
14151
- "kind": "js",
14152
- "name": "foundationDatePicker",
14153
- "declaration": {
14154
- "name": "foundationDatePicker",
14155
- "module": "src/date-picker/date-picker.ts"
14156
- }
14157
- }
14158
- ]
14159
- },
14160
- {
14161
- "kind": "javascript-module",
14162
- "path": "src/date-picker/day.ts",
14163
- "declarations": [
14164
- {
14165
- "kind": "class",
14166
- "description": "",
14167
- "name": "Day",
14168
- "members": [
14049
+ "default": "'centre'",
14050
+ "inheritedFrom": {
14051
+ "name": "<local>_DialogElement",
14052
+ "module": "src/dialog/dialog.ts"
14053
+ }
14054
+ },
14169
14055
  {
14170
14056
  "kind": "field",
14171
- "name": "Date",
14057
+ "name": "showCloseIcon",
14172
14058
  "type": {
14173
- "text": "Object"
14059
+ "text": "boolean"
14174
14060
  },
14175
- "default": "date"
14061
+ "default": "true",
14062
+ "description": "Whether or not to show the close icon",
14063
+ "inheritedFrom": {
14064
+ "name": "<local>_DialogElement",
14065
+ "module": "src/dialog/dialog.ts"
14066
+ }
14176
14067
  },
14177
14068
  {
14178
14069
  "kind": "field",
14179
- "name": "date",
14070
+ "name": "onShowCallback",
14180
14071
  "type": {
14181
- "text": "Date"
14072
+ "text": "() => void"
14073
+ },
14074
+ "description": "Callback to run *before* HTMLDialogElement is shown",
14075
+ "inheritedFrom": {
14076
+ "name": "<local>_DialogElement",
14077
+ "module": "src/dialog/dialog.ts"
14182
14078
  }
14183
14079
  },
14184
14080
  {
14185
14081
  "kind": "field",
14186
- "name": "day",
14082
+ "name": "onCloseCallback",
14187
14083
  "type": {
14188
- "text": "string"
14084
+ "text": "() => void"
14085
+ },
14086
+ "description": "Callback to run *after* HTMLDialogElement is closed",
14087
+ "inheritedFrom": {
14088
+ "name": "<local>_DialogElement",
14089
+ "module": "src/dialog/dialog.ts"
14189
14090
  }
14190
14091
  },
14191
14092
  {
14192
14093
  "kind": "field",
14193
- "name": "dayNumber",
14094
+ "name": "open",
14194
14095
  "type": {
14195
- "text": "number"
14096
+ "text": "boolean"
14097
+ },
14098
+ "description": "Determine if the dialog is showing or closed.",
14099
+ "readonly": true,
14100
+ "inheritedFrom": {
14101
+ "name": "<local>_DialogElement",
14102
+ "module": "src/dialog/dialog.ts"
14103
+ }
14104
+ },
14105
+ {
14106
+ "kind": "method",
14107
+ "name": "close",
14108
+ "return": {
14109
+ "type": {
14110
+ "text": "void"
14111
+ }
14112
+ },
14113
+ "description": "Remove the HTMLDialogElement from display",
14114
+ "inheritedFrom": {
14115
+ "name": "<local>_DialogElement",
14116
+ "module": "src/dialog/dialog.ts"
14117
+ }
14118
+ },
14119
+ {
14120
+ "kind": "method",
14121
+ "name": "dismiss",
14122
+ "privacy": "public",
14123
+ "description": "Dismiss the Dialog from display and calls the dismissing action.",
14124
+ "inheritedFrom": {
14125
+ "name": "<local>_DialogElement",
14126
+ "module": "src/dialog/dialog.ts"
14127
+ }
14128
+ },
14129
+ {
14130
+ "kind": "method",
14131
+ "name": "closeDialog",
14132
+ "privacy": "public",
14133
+ "return": {
14134
+ "type": {
14135
+ "text": "void"
14136
+ }
14137
+ },
14138
+ "description": "Dismiss the Dialog from display.",
14139
+ "inheritedFrom": {
14140
+ "name": "<local>_DialogElement",
14141
+ "module": "src/dialog/dialog.ts"
14196
14142
  }
14197
14143
  },
14198
14144
  {
14199
14145
  "kind": "field",
14200
- "name": "dayShort",
14146
+ "name": "_presentation",
14201
14147
  "type": {
14202
- "text": "string"
14148
+ "text": "ComponentPresentation | null | undefined"
14149
+ },
14150
+ "privacy": "private",
14151
+ "default": "void 0",
14152
+ "inheritedFrom": {
14153
+ "name": "FoundationElement",
14154
+ "module": "src/foundation-element/foundation-element.ts"
14203
14155
  }
14204
14156
  },
14205
14157
  {
14206
14158
  "kind": "field",
14207
- "name": "year",
14159
+ "name": "$presentation",
14208
14160
  "type": {
14209
- "text": "number"
14161
+ "text": "ComponentPresentation | null"
14162
+ },
14163
+ "privacy": "public",
14164
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
14165
+ "inheritedFrom": {
14166
+ "name": "FoundationElement",
14167
+ "module": "src/foundation-element/foundation-element.ts"
14210
14168
  }
14211
14169
  },
14212
14170
  {
14213
14171
  "kind": "field",
14214
- "name": "yearShort",
14172
+ "name": "template",
14215
14173
  "type": {
14216
- "text": "number"
14174
+ "text": "ElementViewTemplate | void | null"
14175
+ },
14176
+ "privacy": "public",
14177
+ "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.",
14178
+ "inheritedFrom": {
14179
+ "name": "FoundationElement",
14180
+ "module": "src/foundation-element/foundation-element.ts"
14217
14181
  }
14218
14182
  },
14219
14183
  {
14220
- "kind": "field",
14221
- "name": "month",
14222
- "type": {
14223
- "text": "string"
14184
+ "kind": "method",
14185
+ "name": "templateChanged",
14186
+ "privacy": "protected",
14187
+ "return": {
14188
+ "type": {
14189
+ "text": "void"
14190
+ }
14191
+ },
14192
+ "inheritedFrom": {
14193
+ "name": "FoundationElement",
14194
+ "module": "src/foundation-element/foundation-element.ts"
14224
14195
  }
14225
14196
  },
14226
14197
  {
14227
14198
  "kind": "field",
14228
- "name": "monthShort",
14199
+ "name": "styles",
14229
14200
  "type": {
14230
- "text": "string"
14201
+ "text": "ElementStyles | void | null"
14202
+ },
14203
+ "privacy": "public",
14204
+ "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.",
14205
+ "inheritedFrom": {
14206
+ "name": "FoundationElement",
14207
+ "module": "src/foundation-element/foundation-element.ts"
14231
14208
  }
14232
14209
  },
14233
14210
  {
14234
- "kind": "field",
14235
- "name": "monthNumber",
14236
- "type": {
14237
- "text": "number"
14211
+ "kind": "method",
14212
+ "name": "stylesChanged",
14213
+ "privacy": "protected",
14214
+ "return": {
14215
+ "type": {
14216
+ "text": "void"
14217
+ }
14218
+ },
14219
+ "inheritedFrom": {
14220
+ "name": "FoundationElement",
14221
+ "module": "src/foundation-element/foundation-element.ts"
14238
14222
  }
14239
14223
  },
14240
14224
  {
14241
- "kind": "field",
14242
- "name": "timestamp",
14243
- "type": {
14244
- "text": "number"
14225
+ "kind": "method",
14226
+ "name": "compose",
14227
+ "privacy": "public",
14228
+ "static": true,
14229
+ "return": {
14230
+ "type": {
14231
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
14232
+ }
14233
+ },
14234
+ "parameters": [
14235
+ {
14236
+ "name": "this",
14237
+ "type": {
14238
+ "text": "K"
14239
+ }
14240
+ },
14241
+ {
14242
+ "name": "elementDefinition",
14243
+ "type": {
14244
+ "text": "T"
14245
+ },
14246
+ "description": "The definition of the element to create the registry\nfunction for."
14247
+ }
14248
+ ],
14249
+ "description": "Defines an element registry function with a set of element definition defaults.",
14250
+ "inheritedFrom": {
14251
+ "name": "FoundationElement",
14252
+ "module": "src/foundation-element/foundation-element.ts"
14245
14253
  }
14246
- },
14254
+ }
14255
+ ],
14256
+ "superclass": {
14257
+ "name": "DialogElement",
14258
+ "module": "src/dialog/dialog.ts"
14259
+ },
14260
+ "tagName": "%%prefix%%-dialog",
14261
+ "customElement": true,
14262
+ "attributes": [
14247
14263
  {
14248
- "kind": "field",
14249
- "name": "week",
14264
+ "name": "position",
14250
14265
  "type": {
14251
- "text": "number"
14266
+ "text": "'centre' | 'left' | 'right'"
14267
+ },
14268
+ "default": "'centre'",
14269
+ "fieldName": "position",
14270
+ "inheritedFrom": {
14271
+ "name": "<local>_DialogElement",
14272
+ "module": "src/dialog/dialog.ts"
14252
14273
  }
14253
14274
  },
14254
14275
  {
14255
- "kind": "field"
14276
+ "name": "show-close-icon",
14277
+ "type": {
14278
+ "text": "boolean"
14279
+ },
14280
+ "default": "true",
14281
+ "description": "Whether or not to show the close icon",
14282
+ "fieldName": "showCloseIcon",
14283
+ "inheritedFrom": {
14284
+ "name": "<local>_DialogElement",
14285
+ "module": "src/dialog/dialog.ts"
14286
+ }
14256
14287
  }
14257
14288
  ]
14289
+ },
14290
+ {
14291
+ "kind": "variable",
14292
+ "name": "foundationDialog",
14293
+ "description": "The Foundation Dialog",
14294
+ "privacy": "public"
14258
14295
  }
14259
14296
  ],
14260
14297
  "exports": [
14261
14298
  {
14262
14299
  "kind": "js",
14263
- "name": "default",
14300
+ "name": "foundationDialogShadowOptions",
14264
14301
  "declaration": {
14265
- "name": "Day",
14266
- "module": "src/date-picker/day.ts"
14302
+ "name": "foundationDialogShadowOptions",
14303
+ "module": "src/dialog/dialog.ts"
14304
+ }
14305
+ },
14306
+ {
14307
+ "kind": "js",
14308
+ "name": "defaultDialogConfig",
14309
+ "declaration": {
14310
+ "name": "defaultDialogConfig",
14311
+ "module": "src/dialog/dialog.ts"
14312
+ }
14313
+ },
14314
+ {
14315
+ "kind": "js",
14316
+ "name": "DialogElement",
14317
+ "declaration": {
14318
+ "name": "DialogElement",
14319
+ "module": "src/dialog/dialog.ts"
14320
+ }
14321
+ },
14322
+ {
14323
+ "kind": "js",
14324
+ "name": "Dialog",
14325
+ "declaration": {
14326
+ "name": "Dialog",
14327
+ "module": "src/dialog/dialog.ts"
14328
+ }
14329
+ },
14330
+ {
14331
+ "kind": "js",
14332
+ "name": "foundationDialog",
14333
+ "declaration": {
14334
+ "name": "foundationDialog",
14335
+ "module": "src/dialog/dialog.ts"
14267
14336
  }
14268
14337
  }
14269
14338
  ]
14270
14339
  },
14271
14340
  {
14272
14341
  "kind": "javascript-module",
14273
- "path": "src/date-picker/index.ts",
14342
+ "path": "src/dialog/index.ts",
14274
14343
  "declarations": [],
14275
14344
  "exports": [
14276
14345
  {
@@ -14278,7 +14347,7 @@
14278
14347
  "name": "*",
14279
14348
  "declaration": {
14280
14349
  "name": "*",
14281
- "package": "./date-picker.styles"
14350
+ "package": "./dialog.styles"
14282
14351
  }
14283
14352
  },
14284
14353
  {
@@ -14286,7 +14355,7 @@
14286
14355
  "name": "*",
14287
14356
  "declaration": {
14288
14357
  "name": "*",
14289
- "package": "./date-picker.template"
14358
+ "package": "./dialog.template"
14290
14359
  }
14291
14360
  },
14292
14361
  {
@@ -14294,76 +14363,7 @@
14294
14363
  "name": "*",
14295
14364
  "declaration": {
14296
14365
  "name": "*",
14297
- "package": "./date-picker"
14298
- }
14299
- }
14300
- ]
14301
- },
14302
- {
14303
- "kind": "javascript-module",
14304
- "path": "src/date-picker/month.ts",
14305
- "declarations": [
14306
- {
14307
- "kind": "class",
14308
- "description": "",
14309
- "name": "Month",
14310
- "members": [
14311
- {
14312
- "kind": "field",
14313
- "name": "lang",
14314
- "type": {
14315
- "text": "string"
14316
- },
14317
- "default": "lang"
14318
- },
14319
- {
14320
- "kind": "field",
14321
- "name": "name",
14322
- "type": {
14323
- "text": "string"
14324
- }
14325
- },
14326
- {
14327
- "kind": "field",
14328
- "name": "number",
14329
- "type": {
14330
- "text": "number"
14331
- }
14332
- },
14333
- {
14334
- "kind": "field",
14335
- "name": "year",
14336
- "type": {
14337
- "text": "number"
14338
- }
14339
- },
14340
- {
14341
- "kind": "field",
14342
- "name": "numberOfDays",
14343
- "type": {
14344
- "text": "number"
14345
- },
14346
- "default": "monthSize[this.number - 1]"
14347
- },
14348
- {
14349
- "kind": "method",
14350
- "name": "getDay",
14351
- "parameters": [
14352
- {
14353
- "name": "date"
14354
- }
14355
- ]
14356
- }
14357
- ]
14358
- }
14359
- ],
14360
- "exports": [
14361
- {
14362
- "kind": "js",
14363
- "name": "default",
14364
- "declaration": {
14365
- "name": "Month",
14366
- "module": "src/date-picker/month.ts"
14366
+ "package": "./dialog"
14367
14367
  }
14368
14368
  }
14369
14369
  ]