@genesislcap/foundation-ui 14.154.0 → 14.154.1-alpha-ae03788.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +1812 -1812
  2. package/package.json +15 -15
@@ -6104,39 +6104,53 @@
6104
6104
  },
6105
6105
  {
6106
6106
  "kind": "javascript-module",
6107
- "path": "src/calendar/calendar.styles.ts",
6107
+ "path": "src/button/button.styles.ts",
6108
6108
  "declarations": [
6109
6109
  {
6110
6110
  "kind": "function",
6111
- "name": "foundationCalendarStyles",
6111
+ "name": "foundationButtonStyles",
6112
6112
  "return": {
6113
6113
  "type": {
6114
6114
  "text": "ElementStyles"
6115
6115
  }
6116
- }
6116
+ },
6117
+ "parameters": [
6118
+ {
6119
+ "name": "context",
6120
+ "type": {
6121
+ "text": "ElementDefinitionContext"
6122
+ }
6123
+ },
6124
+ {
6125
+ "name": "definition",
6126
+ "type": {
6127
+ "text": "FoundationElementDefinition"
6128
+ }
6129
+ }
6130
+ ]
6117
6131
  }
6118
6132
  ],
6119
6133
  "exports": [
6120
6134
  {
6121
6135
  "kind": "js",
6122
- "name": "foundationCalendarStyles",
6136
+ "name": "foundationButtonStyles",
6123
6137
  "declaration": {
6124
- "name": "foundationCalendarStyles",
6125
- "module": "src/calendar/calendar.styles.ts"
6138
+ "name": "foundationButtonStyles",
6139
+ "module": "src/button/button.styles.ts"
6126
6140
  }
6127
6141
  }
6128
6142
  ]
6129
6143
  },
6130
6144
  {
6131
6145
  "kind": "javascript-module",
6132
- "path": "src/calendar/calendar.template.ts",
6146
+ "path": "src/button/button.template.ts",
6133
6147
  "declarations": [
6134
6148
  {
6135
6149
  "kind": "function",
6136
- "name": "foundationCalendarTemplate",
6150
+ "name": "foundationButtonTemplate",
6137
6151
  "return": {
6138
6152
  "type": {
6139
- "text": "ViewTemplate<Calendar>"
6153
+ "text": "ViewTemplate<Button>"
6140
6154
  }
6141
6155
  },
6142
6156
  "parameters": [
@@ -6158,192 +6172,156 @@
6158
6172
  "exports": [
6159
6173
  {
6160
6174
  "kind": "js",
6161
- "name": "foundationCalendarTemplate",
6175
+ "name": "foundationButtonTemplate",
6162
6176
  "declaration": {
6163
- "name": "foundationCalendarTemplate",
6164
- "module": "src/calendar/calendar.template.ts"
6177
+ "name": "foundationButtonTemplate",
6178
+ "module": "src/button/button.template.ts"
6165
6179
  }
6166
6180
  }
6167
6181
  ]
6168
6182
  },
6169
6183
  {
6170
6184
  "kind": "javascript-module",
6171
- "path": "src/calendar/calendar.ts",
6185
+ "path": "src/button/button.ts",
6172
6186
  "declarations": [
6173
6187
  {
6174
6188
  "kind": "class",
6175
6189
  "description": "",
6176
- "name": "Calendar",
6190
+ "name": "Button",
6177
6191
  "superclass": {
6178
- "name": "FASTCalendar",
6192
+ "name": "FASTButton",
6179
6193
  "package": "@microsoft/fast-components"
6180
6194
  },
6181
- "tagName": "%%prefix%%-calendar",
6195
+ "tagName": "%%prefix%%-button",
6182
6196
  "customElement": true,
6183
6197
  "attributes": [
6184
6198
  {
6185
6199
  "type": {
6186
- "text": "number"
6200
+ "text": "boolean"
6187
6201
  },
6188
- "description": "Readonly attribute for turning off data-grid",
6189
- "fieldName": "readonly",
6190
- "default": "false",
6202
+ "description": "Determines if the element should receive document focus on page load.",
6203
+ "fieldName": "autofocus",
6191
6204
  "inheritedFrom": {
6192
- "name": "Calendar",
6193
- "module": "src/calendar/calendar.ts"
6205
+ "name": "Button",
6206
+ "module": "src/button/button.ts"
6194
6207
  }
6195
6208
  },
6196
6209
  {
6197
- "name": "locale",
6210
+ "name": "form",
6198
6211
  "type": {
6199
6212
  "text": "string"
6200
6213
  },
6201
- "default": "\"en-US\"",
6202
- "description": "String repesentation of the full locale including market, calendar type and numbering system",
6203
- "fieldName": "locale",
6204
- "inheritedFrom": {
6205
- "name": "Calendar",
6206
- "module": "src/calendar/calendar.ts"
6207
- }
6208
- },
6209
- {
6210
- "name": "day-format",
6211
- "type": {
6212
- "text": "DayFormat"
6213
- },
6214
- "default": "\"numeric\"",
6215
- "description": "Format style for the day",
6216
- "fieldName": "dayFormat",
6217
- "inheritedFrom": {
6218
- "name": "Calendar",
6219
- "module": "src/calendar/calendar.ts"
6220
- }
6221
- },
6222
- {
6223
- "name": "weekday-format",
6224
- "type": {
6225
- "text": "WeekdayFormat"
6226
- },
6227
- "default": "\"short\"",
6228
- "description": "Format style for the week day labels",
6229
- "fieldName": "weekdayFormat",
6214
+ "description": "The id of a form to associate the element to.",
6215
+ "fieldName": "formId",
6230
6216
  "inheritedFrom": {
6231
- "name": "Calendar",
6232
- "module": "src/calendar/calendar.ts"
6217
+ "name": "Button",
6218
+ "module": "src/button/button.ts"
6233
6219
  }
6234
6220
  },
6235
6221
  {
6236
- "name": "month-format",
6222
+ "name": "formaction",
6237
6223
  "type": {
6238
- "text": "MonthFormat"
6224
+ "text": "string"
6239
6225
  },
6240
- "default": "\"long\"",
6241
- "description": "Format style for the month label",
6242
- "fieldName": "monthFormat",
6226
+ "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
6227
+ "fieldName": "formaction",
6243
6228
  "inheritedFrom": {
6244
- "name": "Calendar",
6245
- "module": "src/calendar/calendar.ts"
6229
+ "name": "Button",
6230
+ "module": "src/button/button.ts"
6246
6231
  }
6247
6232
  },
6248
6233
  {
6249
- "name": "year-format",
6234
+ "name": "formenctype",
6250
6235
  "type": {
6251
- "text": "YearFormat"
6236
+ "text": "string"
6252
6237
  },
6253
- "default": "\"numeric\"",
6254
- "description": "Format style for the year used in the title",
6255
- "fieldName": "yearFormat",
6238
+ "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
6239
+ "fieldName": "formenctype",
6256
6240
  "inheritedFrom": {
6257
- "name": "Calendar",
6258
- "module": "src/calendar/calendar.ts"
6241
+ "name": "Button",
6242
+ "module": "src/button/button.ts"
6259
6243
  }
6260
6244
  },
6261
6245
  {
6262
- "name": "min-weeks",
6246
+ "name": "formmethod",
6263
6247
  "type": {
6264
- "text": "number"
6248
+ "text": "string"
6265
6249
  },
6266
- "default": "0",
6267
- "description": "Minimum number of weeks to show for the month\nThis can be used to normalize the calendar view\n when changing or across multiple calendars",
6268
- "fieldName": "minWeeks",
6250
+ "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
6251
+ "fieldName": "formmethod",
6269
6252
  "inheritedFrom": {
6270
- "name": "Calendar",
6271
- "module": "src/calendar/calendar.ts"
6253
+ "name": "Button",
6254
+ "module": "src/button/button.ts"
6272
6255
  }
6273
6256
  },
6274
6257
  {
6275
- "name": "disabled-dates",
6258
+ "name": "formtarget",
6276
6259
  "type": {
6277
- "text": "string"
6260
+ "text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
6278
6261
  },
6279
- "default": "\"\"",
6280
- "description": "A list of dates that should be shown as disabled",
6281
- "fieldName": "disabledDates",
6262
+ "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
6263
+ "fieldName": "formtarget",
6282
6264
  "inheritedFrom": {
6283
- "name": "Calendar",
6284
- "module": "src/calendar/calendar.ts"
6265
+ "name": "Button",
6266
+ "module": "src/button/button.ts"
6285
6267
  }
6286
6268
  },
6287
6269
  {
6288
- "name": "selected-dates",
6270
+ "name": "type",
6289
6271
  "type": {
6290
- "text": "string"
6272
+ "text": "\"submit\" | \"reset\" | \"button\""
6291
6273
  },
6292
- "default": "\"\"",
6293
- "description": "A list of dates that should be shown as highlighted",
6294
- "fieldName": "selectedDates",
6274
+ "description": "The button type.",
6275
+ "fieldName": "type",
6295
6276
  "inheritedFrom": {
6296
- "name": "Calendar",
6297
- "module": "src/calendar/calendar.ts"
6277
+ "name": "Button",
6278
+ "module": "src/button/button.ts"
6298
6279
  }
6299
6280
  }
6300
6281
  ],
6301
6282
  "members": [
6302
6283
  {
6303
6284
  "kind": "field",
6304
- "name": "dateFormatter",
6285
+ "name": "autofocus",
6305
6286
  "type": {
6306
- "text": "DateFormatter"
6287
+ "text": "boolean"
6307
6288
  },
6308
6289
  "privacy": "public",
6309
- "default": "new DateFormatter()",
6310
- "description": "date formatter utitlity for getting localized strings",
6290
+ "description": "Determines if the element should receive document focus on page load.",
6311
6291
  "inheritedFrom": {
6312
- "name": "Calendar",
6313
- "module": "src/calendar/calendar.ts"
6292
+ "name": "Button",
6293
+ "module": "src/button/button.ts"
6314
6294
  }
6315
6295
  },
6316
6296
  {
6317
6297
  "kind": "field",
6318
- "name": "readonly",
6298
+ "name": "formId",
6319
6299
  "type": {
6320
- "text": "boolean"
6300
+ "text": "string"
6321
6301
  },
6322
6302
  "privacy": "public",
6323
- "default": "false",
6324
- "description": "Readonly attribute for turning off data-grid",
6303
+ "description": "The id of a form to associate the element to.",
6325
6304
  "inheritedFrom": {
6326
- "name": "Calendar",
6327
- "module": "src/calendar/calendar.ts"
6305
+ "name": "Button",
6306
+ "module": "src/button/button.ts"
6328
6307
  }
6329
6308
  },
6330
6309
  {
6331
6310
  "kind": "field",
6332
- "name": "locale",
6311
+ "name": "formaction",
6333
6312
  "type": {
6334
6313
  "text": "string"
6335
6314
  },
6336
6315
  "privacy": "public",
6337
- "default": "\"en-US\"",
6338
- "description": "String repesentation of the full locale including market, calendar type and numbering system",
6316
+ "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
6339
6317
  "inheritedFrom": {
6340
- "name": "Calendar",
6341
- "module": "src/calendar/calendar.ts"
6318
+ "name": "Button",
6319
+ "module": "src/button/button.ts"
6342
6320
  }
6343
6321
  },
6344
6322
  {
6345
6323
  "kind": "method",
6346
- "name": "localeChanged",
6324
+ "name": "formactionChanged",
6347
6325
  "privacy": "private",
6348
6326
  "return": {
6349
6327
  "type": {
@@ -6351,53 +6329,53 @@
6351
6329
  }
6352
6330
  },
6353
6331
  "inheritedFrom": {
6354
- "name": "Calendar",
6355
- "module": "src/calendar/calendar.ts"
6332
+ "name": "Button",
6333
+ "module": "src/button/button.ts"
6356
6334
  }
6357
6335
  },
6358
6336
  {
6359
6337
  "kind": "field",
6360
- "name": "month",
6338
+ "name": "formenctype",
6361
6339
  "type": {
6362
- "text": "number"
6340
+ "text": "string"
6363
6341
  },
6364
6342
  "privacy": "public",
6365
- "description": "Month to display",
6343
+ "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
6366
6344
  "inheritedFrom": {
6367
- "name": "Calendar",
6368
- "module": "src/calendar/calendar.ts"
6345
+ "name": "Button",
6346
+ "module": "src/button/button.ts"
6369
6347
  }
6370
6348
  },
6371
6349
  {
6372
- "kind": "field",
6373
- "name": "year",
6374
- "type": {
6375
- "text": "number"
6350
+ "kind": "method",
6351
+ "name": "formenctypeChanged",
6352
+ "privacy": "private",
6353
+ "return": {
6354
+ "type": {
6355
+ "text": "void"
6356
+ }
6376
6357
  },
6377
- "privacy": "public",
6378
- "description": "Year of the month to display",
6379
6358
  "inheritedFrom": {
6380
- "name": "Calendar",
6381
- "module": "src/calendar/calendar.ts"
6359
+ "name": "Button",
6360
+ "module": "src/button/button.ts"
6382
6361
  }
6383
6362
  },
6384
6363
  {
6385
6364
  "kind": "field",
6386
- "name": "dayFormat",
6365
+ "name": "formmethod",
6387
6366
  "type": {
6388
- "text": "DayFormat"
6367
+ "text": "string"
6389
6368
  },
6390
6369
  "privacy": "public",
6391
- "default": "\"numeric\"",
6392
- "description": "Format style for the day",
6370
+ "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
6393
6371
  "inheritedFrom": {
6394
- "name": "Calendar",
6395
- "module": "src/calendar/calendar.ts"
6372
+ "name": "Button",
6373
+ "module": "src/button/button.ts"
6396
6374
  }
6397
6375
  },
6398
6376
  {
6399
6377
  "kind": "method",
6400
- "name": "dayFormatChanged",
6378
+ "name": "formmethodChanged",
6401
6379
  "privacy": "private",
6402
6380
  "return": {
6403
6381
  "type": {
@@ -6405,27 +6383,26 @@
6405
6383
  }
6406
6384
  },
6407
6385
  "inheritedFrom": {
6408
- "name": "Calendar",
6409
- "module": "src/calendar/calendar.ts"
6386
+ "name": "Button",
6387
+ "module": "src/button/button.ts"
6410
6388
  }
6411
6389
  },
6412
6390
  {
6413
6391
  "kind": "field",
6414
- "name": "weekdayFormat",
6392
+ "name": "formnovalidate",
6415
6393
  "type": {
6416
- "text": "WeekdayFormat"
6394
+ "text": "boolean"
6417
6395
  },
6418
6396
  "privacy": "public",
6419
- "default": "\"short\"",
6420
- "description": "Format style for the week day labels",
6397
+ "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
6421
6398
  "inheritedFrom": {
6422
- "name": "Calendar",
6423
- "module": "src/calendar/calendar.ts"
6399
+ "name": "Button",
6400
+ "module": "src/button/button.ts"
6424
6401
  }
6425
6402
  },
6426
6403
  {
6427
6404
  "kind": "method",
6428
- "name": "weekdayFormatChanged",
6405
+ "name": "formnovalidateChanged",
6429
6406
  "privacy": "private",
6430
6407
  "return": {
6431
6408
  "type": {
@@ -6433,27 +6410,26 @@
6433
6410
  }
6434
6411
  },
6435
6412
  "inheritedFrom": {
6436
- "name": "Calendar",
6437
- "module": "src/calendar/calendar.ts"
6438
- }
6413
+ "name": "Button",
6414
+ "module": "src/button/button.ts"
6415
+ }
6439
6416
  },
6440
6417
  {
6441
6418
  "kind": "field",
6442
- "name": "monthFormat",
6419
+ "name": "formtarget",
6443
6420
  "type": {
6444
- "text": "MonthFormat"
6421
+ "text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
6445
6422
  },
6446
6423
  "privacy": "public",
6447
- "default": "\"long\"",
6448
- "description": "Format style for the month label",
6424
+ "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
6449
6425
  "inheritedFrom": {
6450
- "name": "Calendar",
6451
- "module": "src/calendar/calendar.ts"
6426
+ "name": "Button",
6427
+ "module": "src/button/button.ts"
6452
6428
  }
6453
6429
  },
6454
6430
  {
6455
6431
  "kind": "method",
6456
- "name": "monthFormatChanged",
6432
+ "name": "formtargetChanged",
6457
6433
  "privacy": "private",
6458
6434
  "return": {
6459
6435
  "type": {
@@ -6461,413 +6437,245 @@
6461
6437
  }
6462
6438
  },
6463
6439
  "inheritedFrom": {
6464
- "name": "Calendar",
6465
- "module": "src/calendar/calendar.ts"
6440
+ "name": "Button",
6441
+ "module": "src/button/button.ts"
6466
6442
  }
6467
6443
  },
6468
6444
  {
6469
6445
  "kind": "field",
6470
- "name": "yearFormat",
6446
+ "name": "type",
6471
6447
  "type": {
6472
- "text": "YearFormat"
6448
+ "text": "\"submit\" | \"reset\" | \"button\""
6473
6449
  },
6474
6450
  "privacy": "public",
6475
- "default": "\"numeric\"",
6476
- "description": "Format style for the year used in the title",
6451
+ "description": "The button type.",
6477
6452
  "inheritedFrom": {
6478
- "name": "Calendar",
6479
- "module": "src/calendar/calendar.ts"
6453
+ "name": "Button",
6454
+ "module": "src/button/button.ts"
6480
6455
  }
6481
6456
  },
6482
6457
  {
6483
6458
  "kind": "method",
6484
- "name": "yearFormatChanged",
6459
+ "name": "typeChanged",
6485
6460
  "privacy": "private",
6486
6461
  "return": {
6487
6462
  "type": {
6488
6463
  "text": "void"
6489
6464
  }
6490
6465
  },
6466
+ "parameters": [
6467
+ {
6468
+ "name": "previous",
6469
+ "type": {
6470
+ "text": "\"submit\" | \"reset\" | \"button\" | void"
6471
+ }
6472
+ },
6473
+ {
6474
+ "name": "next",
6475
+ "type": {
6476
+ "text": "\"submit\" | \"reset\" | \"button\""
6477
+ }
6478
+ }
6479
+ ],
6491
6480
  "inheritedFrom": {
6492
- "name": "Calendar",
6493
- "module": "src/calendar/calendar.ts"
6481
+ "name": "Button",
6482
+ "module": "src/button/button.ts"
6494
6483
  }
6495
6484
  },
6496
6485
  {
6497
6486
  "kind": "field",
6498
- "name": "minWeeks",
6487
+ "name": "defaultSlottedContent",
6499
6488
  "type": {
6500
- "text": "number"
6489
+ "text": "HTMLElement[]"
6501
6490
  },
6502
6491
  "privacy": "public",
6503
- "default": "0",
6504
- "description": "Minimum number of weeks to show for the month\nThis can be used to normalize the calendar view\n when changing or across multiple calendars",
6492
+ "description": "\nDefault slotted content",
6505
6493
  "inheritedFrom": {
6506
- "name": "Calendar",
6507
- "module": "src/calendar/calendar.ts"
6494
+ "name": "Button",
6495
+ "module": "src/button/button.ts"
6496
+ }
6497
+ },
6498
+ {
6499
+ "kind": "method",
6500
+ "name": "validate",
6501
+ "privacy": "public",
6502
+ "return": {
6503
+ "type": {
6504
+ "text": "void"
6505
+ }
6506
+ },
6507
+ "description": "{@inheritDoc (FormAssociated:interface).validate}",
6508
+ "inheritedFrom": {
6509
+ "name": "Button",
6510
+ "module": "src/button/button.ts"
6508
6511
  }
6509
6512
  },
6510
6513
  {
6511
6514
  "kind": "field",
6512
- "name": "disabledDates",
6515
+ "name": "handleSubmission",
6516
+ "privacy": "private",
6517
+ "description": "Submits the parent form",
6518
+ "inheritedFrom": {
6519
+ "name": "Button",
6520
+ "module": "src/button/button.ts"
6521
+ }
6522
+ },
6523
+ {
6524
+ "kind": "field",
6525
+ "name": "handleFormReset",
6526
+ "privacy": "private",
6527
+ "description": "Resets the parent form",
6528
+ "inheritedFrom": {
6529
+ "name": "Button",
6530
+ "module": "src/button/button.ts"
6531
+ }
6532
+ },
6533
+ {
6534
+ "kind": "field",
6535
+ "name": "control",
6513
6536
  "type": {
6514
- "text": "string"
6537
+ "text": "HTMLButtonElement"
6515
6538
  },
6516
6539
  "privacy": "public",
6517
- "default": "\"\"",
6518
- "description": "A list of dates that should be shown as disabled",
6519
6540
  "inheritedFrom": {
6520
- "name": "Calendar",
6521
- "module": "src/calendar/calendar.ts"
6541
+ "name": "Button",
6542
+ "module": "src/button/button.ts"
6522
6543
  }
6523
6544
  },
6524
6545
  {
6525
6546
  "kind": "field",
6526
- "name": "selectedDates",
6547
+ "name": "handleUnsupportedDelegatesFocus",
6548
+ "privacy": "private",
6549
+ "description": "Overrides the focus call for where delegatesFocus is unsupported.\nThis check works for Chrome, Edge Chromium, FireFox, and Safari\nRelevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858",
6550
+ "inheritedFrom": {
6551
+ "name": "Button",
6552
+ "module": "src/button/button.ts"
6553
+ }
6554
+ },
6555
+ {
6556
+ "kind": "field",
6557
+ "name": "proxy",
6558
+ "inheritedFrom": {
6559
+ "name": "Button",
6560
+ "module": "src/button/button.ts"
6561
+ }
6562
+ },
6563
+ {
6564
+ "kind": "field",
6565
+ "name": "_presentation",
6527
6566
  "type": {
6528
- "text": "string"
6567
+ "text": "ComponentPresentation | null | undefined"
6568
+ },
6569
+ "privacy": "private",
6570
+ "default": "void 0",
6571
+ "inheritedFrom": {
6572
+ "name": "Button",
6573
+ "module": "src/button/button.ts"
6574
+ }
6575
+ },
6576
+ {
6577
+ "kind": "field",
6578
+ "name": "$presentation",
6579
+ "type": {
6580
+ "text": "ComponentPresentation | null"
6529
6581
  },
6530
6582
  "privacy": "public",
6531
- "default": "\"\"",
6532
- "description": "A list of dates that should be shown as highlighted",
6583
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
6533
6584
  "inheritedFrom": {
6534
- "name": "Calendar",
6535
- "module": "src/calendar/calendar.ts"
6585
+ "name": "Button",
6586
+ "module": "src/button/button.ts"
6536
6587
  }
6537
6588
  },
6538
6589
  {
6539
- "kind": "method",
6540
- "name": "getMonthInfo",
6590
+ "kind": "field",
6591
+ "name": "template",
6592
+ "type": {
6593
+ "text": "ElementViewTemplate | void | null"
6594
+ },
6541
6595
  "privacy": "public",
6596
+ "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.",
6597
+ "inheritedFrom": {
6598
+ "name": "Button",
6599
+ "module": "src/button/button.ts"
6600
+ }
6601
+ },
6602
+ {
6603
+ "kind": "method",
6604
+ "name": "templateChanged",
6605
+ "privacy": "protected",
6542
6606
  "return": {
6543
6607
  "type": {
6544
- "text": ""
6608
+ "text": "void"
6545
6609
  }
6546
6610
  },
6547
- "parameters": [
6548
- {
6549
- "name": "month",
6550
- "default": "this.month",
6551
- "type": {
6552
- "text": "number"
6553
- },
6554
- "description": "month of the calendar"
6555
- },
6556
- {
6557
- "name": "year",
6558
- "default": "this.year",
6559
- "type": {
6560
- "text": "number"
6561
- },
6562
- "description": "year of the calendar"
6563
- }
6564
- ],
6565
- "description": "Gets data needed to render about a calendar month as well as the previous and next months",
6566
6611
  "inheritedFrom": {
6567
- "name": "Calendar",
6568
- "module": "src/calendar/calendar.ts"
6612
+ "name": "Button",
6613
+ "module": "src/button/button.ts"
6569
6614
  }
6570
6615
  },
6571
6616
  {
6572
- "kind": "method",
6573
- "name": "getDays",
6617
+ "kind": "field",
6618
+ "name": "styles",
6619
+ "type": {
6620
+ "text": "ElementStyles | void | null"
6621
+ },
6574
6622
  "privacy": "public",
6623
+ "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.",
6624
+ "inheritedFrom": {
6625
+ "name": "Button",
6626
+ "module": "src/button/button.ts"
6627
+ }
6628
+ },
6629
+ {
6630
+ "kind": "method",
6631
+ "name": "stylesChanged",
6632
+ "privacy": "protected",
6575
6633
  "return": {
6576
6634
  "type": {
6577
- "text": ""
6635
+ "text": "void"
6578
6636
  }
6579
6637
  },
6580
- "parameters": [
6581
- {
6582
- "name": "info",
6583
- "default": "this.getMonthInfo()",
6584
- "type": {
6585
- "text": "CalendarInfo"
6586
- },
6587
- "description": "an object containing the information needed to render a calendar month"
6588
- },
6589
- {
6590
- "name": "minWeeks",
6591
- "default": "this.minWeeks",
6592
- "type": {
6593
- "text": "number"
6594
- },
6595
- "description": "minimum number of weeks to show"
6596
- }
6597
- ],
6598
- "description": "A list of calendar days",
6599
6638
  "inheritedFrom": {
6600
- "name": "Calendar",
6601
- "module": "src/calendar/calendar.ts"
6639
+ "name": "Button",
6640
+ "module": "src/button/button.ts"
6602
6641
  }
6603
6642
  },
6604
6643
  {
6605
6644
  "kind": "method",
6606
- "name": "dateInString",
6645
+ "name": "compose",
6607
6646
  "privacy": "public",
6647
+ "static": true,
6608
6648
  "return": {
6609
6649
  "type": {
6610
- "text": ""
6650
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
6611
6651
  }
6612
6652
  },
6613
6653
  "parameters": [
6614
6654
  {
6615
- "name": "date",
6655
+ "name": "this",
6616
6656
  "type": {
6617
- "text": "Date | string"
6618
- },
6619
- "description": "A date objec that includes the day, month and year"
6657
+ "text": "K"
6658
+ }
6620
6659
  },
6621
6660
  {
6622
- "name": "datesString",
6661
+ "name": "elementDefinition",
6623
6662
  "type": {
6624
- "text": "string"
6663
+ "text": "T"
6625
6664
  },
6626
- "description": "a comma separated list of dates"
6665
+ "description": "The definition of the element to create the registry\nfunction for."
6627
6666
  }
6628
6667
  ],
6629
- "description": "A helper function that checks if a date exists in a list of dates",
6668
+ "description": "Defines an element registry function with a set of element definition defaults.",
6630
6669
  "inheritedFrom": {
6631
- "name": "Calendar",
6632
- "module": "src/calendar/calendar.ts"
6633
- }
6634
- },
6635
- {
6636
- "kind": "method",
6637
- "name": "getDayClassNames",
6638
- "privacy": "public",
6639
- "return": {
6640
- "type": {
6641
- "text": ""
6642
- }
6643
- },
6644
- "parameters": [
6645
- {
6646
- "name": "date",
6647
- "type": {
6648
- "text": "CalendarDateInfo"
6649
- },
6650
- "description": "date of the calendar cell"
6651
- },
6652
- {
6653
- "name": "todayString",
6654
- "optional": true,
6655
- "type": {
6656
- "text": "string"
6657
- }
6658
- }
6659
- ],
6660
- "description": "Creates a class string for the day container",
6661
- "inheritedFrom": {
6662
- "name": "Calendar",
6663
- "module": "src/calendar/calendar.ts"
6664
- }
6665
- },
6666
- {
6667
- "kind": "method",
6668
- "name": "getWeekdayText",
6669
- "privacy": "public",
6670
- "return": {
6671
- "type": {
6672
- "text": ""
6673
- }
6674
- },
6675
- "description": "Returns a list of weekday labels",
6676
- "inheritedFrom": {
6677
- "name": "Calendar",
6678
- "module": "src/calendar/calendar.ts"
6679
- }
6680
- },
6681
- {
6682
- "kind": "method",
6683
- "name": "handleDateSelect",
6684
- "privacy": "public",
6685
- "return": {
6686
- "type": {
6687
- "text": "void"
6688
- }
6689
- },
6690
- "parameters": [
6691
- {
6692
- "name": "event",
6693
- "type": {
6694
- "text": "Event"
6695
- }
6696
- },
6697
- {
6698
- "name": "day",
6699
- "type": {
6700
- "text": "CalendarDateInfo"
6701
- }
6702
- },
6703
- {
6704
- "description": "Date cell",
6705
- "name": "date"
6706
- }
6707
- ],
6708
- "description": "Emits the \"date-select\" event with the day, month and year.",
6709
- "inheritedFrom": {
6710
- "name": "Calendar",
6711
- "module": "src/calendar/calendar.ts"
6712
- }
6713
- },
6714
- {
6715
- "kind": "method",
6716
- "name": "handleKeydown",
6717
- "privacy": "public",
6718
- "return": {
6719
- "type": {
6720
- "text": "boolean"
6721
- }
6722
- },
6723
- "parameters": [
6724
- {
6725
- "name": "event",
6726
- "type": {
6727
- "text": "KeyboardEvent"
6728
- },
6729
- "description": "Keyboard event"
6730
- },
6731
- {
6732
- "name": "date",
6733
- "type": {
6734
- "text": "CalendarDateInfo"
6735
- },
6736
- "description": "Date of the cell selected"
6737
- }
6738
- ],
6739
- "description": "Handles keyboard events on a cell",
6740
- "inheritedFrom": {
6741
- "name": "Calendar",
6742
- "module": "src/calendar/calendar.ts"
6743
- }
6744
- },
6745
- {
6746
- "kind": "field",
6747
- "name": "_presentation",
6748
- "type": {
6749
- "text": "ComponentPresentation | null | undefined"
6750
- },
6751
- "privacy": "private",
6752
- "default": "void 0",
6753
- "inheritedFrom": {
6754
- "name": "FoundationElement",
6755
- "module": "src/foundation-element/foundation-element.ts"
6756
- }
6757
- },
6758
- {
6759
- "kind": "field",
6760
- "name": "$presentation",
6761
- "type": {
6762
- "text": "ComponentPresentation | null"
6763
- },
6764
- "privacy": "public",
6765
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
6766
- "inheritedFrom": {
6767
- "name": "FoundationElement",
6768
- "module": "src/foundation-element/foundation-element.ts"
6769
- }
6770
- },
6771
- {
6772
- "kind": "field",
6773
- "name": "template",
6774
- "type": {
6775
- "text": "ElementViewTemplate | void | null"
6776
- },
6777
- "privacy": "public",
6778
- "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.",
6779
- "inheritedFrom": {
6780
- "name": "FoundationElement",
6781
- "module": "src/foundation-element/foundation-element.ts"
6782
- }
6783
- },
6784
- {
6785
- "kind": "method",
6786
- "name": "templateChanged",
6787
- "privacy": "protected",
6788
- "return": {
6789
- "type": {
6790
- "text": "void"
6791
- }
6792
- },
6793
- "inheritedFrom": {
6794
- "name": "FoundationElement",
6795
- "module": "src/foundation-element/foundation-element.ts"
6796
- }
6797
- },
6798
- {
6799
- "kind": "field",
6800
- "name": "styles",
6801
- "type": {
6802
- "text": "ElementStyles | void | null"
6803
- },
6804
- "privacy": "public",
6805
- "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.",
6806
- "inheritedFrom": {
6807
- "name": "FoundationElement",
6808
- "module": "src/foundation-element/foundation-element.ts"
6809
- }
6810
- },
6811
- {
6812
- "kind": "method",
6813
- "name": "stylesChanged",
6814
- "privacy": "protected",
6815
- "return": {
6816
- "type": {
6817
- "text": "void"
6818
- }
6819
- },
6820
- "inheritedFrom": {
6821
- "name": "FoundationElement",
6822
- "module": "src/foundation-element/foundation-element.ts"
6823
- }
6824
- },
6825
- {
6826
- "kind": "method",
6827
- "name": "compose",
6828
- "privacy": "public",
6829
- "static": true,
6830
- "return": {
6831
- "type": {
6832
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
6833
- }
6834
- },
6835
- "parameters": [
6836
- {
6837
- "name": "this",
6838
- "type": {
6839
- "text": "K"
6840
- }
6841
- },
6842
- {
6843
- "name": "elementDefinition",
6844
- "type": {
6845
- "text": "T"
6846
- },
6847
- "description": "The definition of the element to create the registry\nfunction for."
6848
- }
6849
- ],
6850
- "description": "Defines an element registry function with a set of element definition defaults.",
6851
- "inheritedFrom": {
6852
- "name": "FoundationElement",
6853
- "module": "src/foundation-element/foundation-element.ts"
6854
- }
6855
- }
6856
- ],
6857
- "events": [
6858
- {
6859
- "description": "Fires a custom 'dateselected' event when Enter is invoked via keyboard on a date",
6860
- "name": "dateselected",
6861
- "inheritedFrom": {
6862
- "name": "Calendar",
6863
- "module": "src/calendar/calendar.ts"
6670
+ "name": "Button",
6671
+ "module": "src/button/button.ts"
6864
6672
  }
6865
6673
  }
6866
6674
  ]
6867
6675
  },
6868
6676
  {
6869
6677
  "kind": "variable",
6870
- "name": "foundationCalendarShadowOptions",
6678
+ "name": "foundationButtonShadowOptions",
6871
6679
  "type": {
6872
6680
  "text": "ShadowRootInit"
6873
6681
  },
@@ -6875,7 +6683,7 @@
6875
6683
  },
6876
6684
  {
6877
6685
  "kind": "variable",
6878
- "name": "defaultCalendarConfig",
6686
+ "name": "defaultButtonConfig",
6879
6687
  "type": {
6880
6688
  "text": "object"
6881
6689
  },
@@ -6883,344 +6691,49 @@
6883
6691
  },
6884
6692
  {
6885
6693
  "kind": "variable",
6886
- "name": "foundationCalendar",
6887
- "description": "The Foundation Calendar",
6694
+ "name": "foundationButton",
6695
+ "description": "The Foundation Button",
6888
6696
  "privacy": "public"
6889
6697
  }
6890
6698
  ],
6891
6699
  "exports": [
6892
6700
  {
6893
6701
  "kind": "js",
6894
- "name": "Calendar",
6702
+ "name": "Button",
6895
6703
  "declaration": {
6896
- "name": "Calendar",
6897
- "module": "src/calendar/calendar.ts"
6704
+ "name": "Button",
6705
+ "module": "src/button/button.ts"
6898
6706
  }
6899
6707
  },
6900
6708
  {
6901
6709
  "kind": "js",
6902
- "name": "foundationCalendarShadowOptions",
6710
+ "name": "foundationButtonShadowOptions",
6903
6711
  "declaration": {
6904
- "name": "foundationCalendarShadowOptions",
6905
- "module": "src/calendar/calendar.ts"
6712
+ "name": "foundationButtonShadowOptions",
6713
+ "module": "src/button/button.ts"
6906
6714
  }
6907
6715
  },
6908
6716
  {
6909
6717
  "kind": "js",
6910
- "name": "defaultCalendarConfig",
6718
+ "name": "defaultButtonConfig",
6911
6719
  "declaration": {
6912
- "name": "defaultCalendarConfig",
6913
- "module": "src/calendar/calendar.ts"
6914
- }
6915
- },
6916
- {
6917
- "kind": "js",
6918
- "name": "foundationCalendar",
6919
- "declaration": {
6920
- "name": "foundationCalendar",
6921
- "module": "src/calendar/calendar.ts"
6922
- }
6923
- }
6924
- ]
6925
- },
6926
- {
6927
- "kind": "javascript-module",
6928
- "path": "src/calendar/index.ts",
6929
- "declarations": [],
6930
- "exports": [
6931
- {
6932
- "kind": "js",
6933
- "name": "*",
6934
- "declaration": {
6935
- "name": "*",
6936
- "package": "./calendar"
6937
- }
6938
- },
6939
- {
6940
- "kind": "js",
6941
- "name": "*",
6942
- "declaration": {
6943
- "name": "*",
6944
- "package": "./calendar.template"
6945
- }
6946
- },
6947
- {
6948
- "kind": "js",
6949
- "name": "*",
6950
- "declaration": {
6951
- "name": "*",
6952
- "package": "./calendar.styles"
6953
- }
6954
- }
6955
- ]
6956
- },
6957
- {
6958
- "kind": "javascript-module",
6959
- "path": "src/card/card.styles.ts",
6960
- "declarations": [
6961
- {
6962
- "kind": "function",
6963
- "name": "foundationCardStyles",
6964
- "return": {
6965
- "type": {
6966
- "text": "ElementStyles"
6967
- }
6968
- },
6969
- "parameters": [
6970
- {
6971
- "name": "context",
6972
- "type": {
6973
- "text": "ElementDefinitionContext"
6974
- }
6975
- },
6976
- {
6977
- "name": "definition",
6978
- "type": {
6979
- "text": "FoundationElementDefinition"
6980
- }
6981
- }
6982
- ]
6983
- }
6984
- ],
6985
- "exports": [
6986
- {
6987
- "kind": "js",
6988
- "name": "foundationCardStyles",
6989
- "declaration": {
6990
- "name": "foundationCardStyles",
6991
- "module": "src/card/card.styles.ts"
6992
- }
6993
- }
6994
- ]
6995
- },
6996
- {
6997
- "kind": "javascript-module",
6998
- "path": "src/card/card.template.ts",
6999
- "declarations": [
7000
- {
7001
- "kind": "function",
7002
- "name": "foundationCardTemplate",
7003
- "return": {
7004
- "type": {
7005
- "text": "ViewTemplate<Card>"
7006
- }
7007
- },
7008
- "parameters": [
7009
- {
7010
- "name": "context",
7011
- "type": {
7012
- "text": "ElementDefinitionContext"
7013
- }
7014
- },
7015
- {
7016
- "name": "definition",
7017
- "type": {
7018
- "text": "FoundationElementDefinition"
7019
- }
7020
- }
7021
- ]
7022
- }
7023
- ],
7024
- "exports": [
7025
- {
7026
- "kind": "js",
7027
- "name": "foundationCardTemplate",
7028
- "declaration": {
7029
- "name": "foundationCardTemplate",
7030
- "module": "src/card/card.template.ts"
7031
- }
7032
- }
7033
- ]
7034
- },
7035
- {
7036
- "kind": "javascript-module",
7037
- "path": "src/card/card.ts",
7038
- "declarations": [
7039
- {
7040
- "kind": "class",
7041
- "description": "",
7042
- "name": "Card",
7043
- "superclass": {
7044
- "name": "FASTCard",
7045
- "package": "@microsoft/fast-components"
7046
- },
7047
- "tagName": "%%prefix%%-card",
7048
- "customElement": true,
7049
- "members": [
7050
- {
7051
- "kind": "field",
7052
- "name": "_presentation",
7053
- "type": {
7054
- "text": "ComponentPresentation | null | undefined"
7055
- },
7056
- "privacy": "private",
7057
- "default": "void 0",
7058
- "inheritedFrom": {
7059
- "name": "FoundationElement",
7060
- "module": "src/foundation-element/foundation-element.ts"
7061
- }
7062
- },
7063
- {
7064
- "kind": "field",
7065
- "name": "$presentation",
7066
- "type": {
7067
- "text": "ComponentPresentation | null"
7068
- },
7069
- "privacy": "public",
7070
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
7071
- "inheritedFrom": {
7072
- "name": "FoundationElement",
7073
- "module": "src/foundation-element/foundation-element.ts"
7074
- }
7075
- },
7076
- {
7077
- "kind": "field",
7078
- "name": "template",
7079
- "type": {
7080
- "text": "ElementViewTemplate | void | null"
7081
- },
7082
- "privacy": "public",
7083
- "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.",
7084
- "inheritedFrom": {
7085
- "name": "FoundationElement",
7086
- "module": "src/foundation-element/foundation-element.ts"
7087
- }
7088
- },
7089
- {
7090
- "kind": "method",
7091
- "name": "templateChanged",
7092
- "privacy": "protected",
7093
- "return": {
7094
- "type": {
7095
- "text": "void"
7096
- }
7097
- },
7098
- "inheritedFrom": {
7099
- "name": "FoundationElement",
7100
- "module": "src/foundation-element/foundation-element.ts"
7101
- }
7102
- },
7103
- {
7104
- "kind": "field",
7105
- "name": "styles",
7106
- "type": {
7107
- "text": "ElementStyles | void | null"
7108
- },
7109
- "privacy": "public",
7110
- "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.",
7111
- "inheritedFrom": {
7112
- "name": "FoundationElement",
7113
- "module": "src/foundation-element/foundation-element.ts"
7114
- }
7115
- },
7116
- {
7117
- "kind": "method",
7118
- "name": "stylesChanged",
7119
- "privacy": "protected",
7120
- "return": {
7121
- "type": {
7122
- "text": "void"
7123
- }
7124
- },
7125
- "inheritedFrom": {
7126
- "name": "FoundationElement",
7127
- "module": "src/foundation-element/foundation-element.ts"
7128
- }
7129
- },
7130
- {
7131
- "kind": "method",
7132
- "name": "compose",
7133
- "privacy": "public",
7134
- "static": true,
7135
- "return": {
7136
- "type": {
7137
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
7138
- }
7139
- },
7140
- "parameters": [
7141
- {
7142
- "name": "this",
7143
- "type": {
7144
- "text": "K"
7145
- }
7146
- },
7147
- {
7148
- "name": "elementDefinition",
7149
- "type": {
7150
- "text": "T"
7151
- },
7152
- "description": "The definition of the element to create the registry\nfunction for."
7153
- }
7154
- ],
7155
- "description": "Defines an element registry function with a set of element definition defaults.",
7156
- "inheritedFrom": {
7157
- "name": "FoundationElement",
7158
- "module": "src/foundation-element/foundation-element.ts"
7159
- }
7160
- }
7161
- ]
7162
- },
7163
- {
7164
- "kind": "variable",
7165
- "name": "foundationCardShadowOptions",
7166
- "type": {
7167
- "text": "ShadowRootInit"
7168
- },
7169
- "default": "undefined"
7170
- },
7171
- {
7172
- "kind": "variable",
7173
- "name": "defaultCardConfig",
7174
- "type": {
7175
- "text": "object"
7176
- },
7177
- "default": "{}"
7178
- },
7179
- {
7180
- "kind": "variable",
7181
- "name": "foundationCard",
7182
- "description": "The Foundation Card",
7183
- "privacy": "public"
7184
- }
7185
- ],
7186
- "exports": [
7187
- {
7188
- "kind": "js",
7189
- "name": "Card",
7190
- "declaration": {
7191
- "name": "Card",
7192
- "module": "src/card/card.ts"
7193
- }
7194
- },
7195
- {
7196
- "kind": "js",
7197
- "name": "foundationCardShadowOptions",
7198
- "declaration": {
7199
- "name": "foundationCardShadowOptions",
7200
- "module": "src/card/card.ts"
7201
- }
7202
- },
7203
- {
7204
- "kind": "js",
7205
- "name": "defaultCardConfig",
7206
- "declaration": {
7207
- "name": "defaultCardConfig",
7208
- "module": "src/card/card.ts"
6720
+ "name": "defaultButtonConfig",
6721
+ "module": "src/button/button.ts"
7209
6722
  }
7210
6723
  },
7211
6724
  {
7212
6725
  "kind": "js",
7213
- "name": "foundationCard",
6726
+ "name": "foundationButton",
7214
6727
  "declaration": {
7215
- "name": "foundationCard",
7216
- "module": "src/card/card.ts"
6728
+ "name": "foundationButton",
6729
+ "module": "src/button/button.ts"
7217
6730
  }
7218
6731
  }
7219
6732
  ]
7220
6733
  },
7221
6734
  {
7222
6735
  "kind": "javascript-module",
7223
- "path": "src/card/index.ts",
6736
+ "path": "src/button/index.ts",
7224
6737
  "declarations": [],
7225
6738
  "exports": [
7226
6739
  {
@@ -7228,7 +6741,7 @@
7228
6741
  "name": "*",
7229
6742
  "declaration": {
7230
6743
  "name": "*",
7231
- "package": "./card.template"
6744
+ "package": "./button.template"
7232
6745
  }
7233
6746
  },
7234
6747
  {
@@ -7236,7 +6749,7 @@
7236
6749
  "name": "*",
7237
6750
  "declaration": {
7238
6751
  "name": "*",
7239
- "package": "./card.styles"
6752
+ "package": "./button.styles"
7240
6753
  }
7241
6754
  },
7242
6755
  {
@@ -7244,22 +6757,47 @@
7244
6757
  "name": "*",
7245
6758
  "declaration": {
7246
6759
  "name": "*",
7247
- "package": "./card"
6760
+ "package": "./button"
7248
6761
  }
7249
6762
  }
7250
6763
  ]
7251
6764
  },
7252
6765
  {
7253
6766
  "kind": "javascript-module",
7254
- "path": "src/button/button.styles.ts",
6767
+ "path": "src/calendar/calendar.styles.ts",
7255
6768
  "declarations": [
7256
6769
  {
7257
6770
  "kind": "function",
7258
- "name": "foundationButtonStyles",
6771
+ "name": "foundationCalendarStyles",
7259
6772
  "return": {
7260
6773
  "type": {
7261
6774
  "text": "ElementStyles"
7262
6775
  }
6776
+ }
6777
+ }
6778
+ ],
6779
+ "exports": [
6780
+ {
6781
+ "kind": "js",
6782
+ "name": "foundationCalendarStyles",
6783
+ "declaration": {
6784
+ "name": "foundationCalendarStyles",
6785
+ "module": "src/calendar/calendar.styles.ts"
6786
+ }
6787
+ }
6788
+ ]
6789
+ },
6790
+ {
6791
+ "kind": "javascript-module",
6792
+ "path": "src/calendar/calendar.template.ts",
6793
+ "declarations": [
6794
+ {
6795
+ "kind": "function",
6796
+ "name": "foundationCalendarTemplate",
6797
+ "return": {
6798
+ "type": {
6799
+ "text": "ViewTemplate<Calendar>"
6800
+ }
7263
6801
  },
7264
6802
  "parameters": [
7265
6803
  {
@@ -7280,433 +6818,895 @@
7280
6818
  "exports": [
7281
6819
  {
7282
6820
  "kind": "js",
7283
- "name": "foundationButtonStyles",
6821
+ "name": "foundationCalendarTemplate",
7284
6822
  "declaration": {
7285
- "name": "foundationButtonStyles",
7286
- "module": "src/button/button.styles.ts"
6823
+ "name": "foundationCalendarTemplate",
6824
+ "module": "src/calendar/calendar.template.ts"
7287
6825
  }
7288
6826
  }
7289
6827
  ]
7290
6828
  },
7291
6829
  {
7292
6830
  "kind": "javascript-module",
7293
- "path": "src/button/button.template.ts",
6831
+ "path": "src/calendar/calendar.ts",
7294
6832
  "declarations": [
7295
6833
  {
7296
- "kind": "function",
7297
- "name": "foundationButtonTemplate",
7298
- "return": {
7299
- "type": {
7300
- "text": "ViewTemplate<Button>"
7301
- }
6834
+ "kind": "class",
6835
+ "description": "",
6836
+ "name": "Calendar",
6837
+ "superclass": {
6838
+ "name": "FASTCalendar",
6839
+ "package": "@microsoft/fast-components"
7302
6840
  },
7303
- "parameters": [
6841
+ "tagName": "%%prefix%%-calendar",
6842
+ "customElement": true,
6843
+ "attributes": [
7304
6844
  {
7305
- "name": "context",
7306
6845
  "type": {
7307
- "text": "ElementDefinitionContext"
6846
+ "text": "number"
6847
+ },
6848
+ "description": "Readonly attribute for turning off data-grid",
6849
+ "fieldName": "readonly",
6850
+ "default": "false",
6851
+ "inheritedFrom": {
6852
+ "name": "Calendar",
6853
+ "module": "src/calendar/calendar.ts"
6854
+ }
6855
+ },
6856
+ {
6857
+ "name": "locale",
6858
+ "type": {
6859
+ "text": "string"
6860
+ },
6861
+ "default": "\"en-US\"",
6862
+ "description": "String repesentation of the full locale including market, calendar type and numbering system",
6863
+ "fieldName": "locale",
6864
+ "inheritedFrom": {
6865
+ "name": "Calendar",
6866
+ "module": "src/calendar/calendar.ts"
6867
+ }
6868
+ },
6869
+ {
6870
+ "name": "day-format",
6871
+ "type": {
6872
+ "text": "DayFormat"
6873
+ },
6874
+ "default": "\"numeric\"",
6875
+ "description": "Format style for the day",
6876
+ "fieldName": "dayFormat",
6877
+ "inheritedFrom": {
6878
+ "name": "Calendar",
6879
+ "module": "src/calendar/calendar.ts"
6880
+ }
6881
+ },
6882
+ {
6883
+ "name": "weekday-format",
6884
+ "type": {
6885
+ "text": "WeekdayFormat"
6886
+ },
6887
+ "default": "\"short\"",
6888
+ "description": "Format style for the week day labels",
6889
+ "fieldName": "weekdayFormat",
6890
+ "inheritedFrom": {
6891
+ "name": "Calendar",
6892
+ "module": "src/calendar/calendar.ts"
6893
+ }
6894
+ },
6895
+ {
6896
+ "name": "month-format",
6897
+ "type": {
6898
+ "text": "MonthFormat"
6899
+ },
6900
+ "default": "\"long\"",
6901
+ "description": "Format style for the month label",
6902
+ "fieldName": "monthFormat",
6903
+ "inheritedFrom": {
6904
+ "name": "Calendar",
6905
+ "module": "src/calendar/calendar.ts"
6906
+ }
6907
+ },
6908
+ {
6909
+ "name": "year-format",
6910
+ "type": {
6911
+ "text": "YearFormat"
6912
+ },
6913
+ "default": "\"numeric\"",
6914
+ "description": "Format style for the year used in the title",
6915
+ "fieldName": "yearFormat",
6916
+ "inheritedFrom": {
6917
+ "name": "Calendar",
6918
+ "module": "src/calendar/calendar.ts"
6919
+ }
6920
+ },
6921
+ {
6922
+ "name": "min-weeks",
6923
+ "type": {
6924
+ "text": "number"
6925
+ },
6926
+ "default": "0",
6927
+ "description": "Minimum number of weeks to show for the month\nThis can be used to normalize the calendar view\n when changing or across multiple calendars",
6928
+ "fieldName": "minWeeks",
6929
+ "inheritedFrom": {
6930
+ "name": "Calendar",
6931
+ "module": "src/calendar/calendar.ts"
6932
+ }
6933
+ },
6934
+ {
6935
+ "name": "disabled-dates",
6936
+ "type": {
6937
+ "text": "string"
6938
+ },
6939
+ "default": "\"\"",
6940
+ "description": "A list of dates that should be shown as disabled",
6941
+ "fieldName": "disabledDates",
6942
+ "inheritedFrom": {
6943
+ "name": "Calendar",
6944
+ "module": "src/calendar/calendar.ts"
6945
+ }
6946
+ },
6947
+ {
6948
+ "name": "selected-dates",
6949
+ "type": {
6950
+ "text": "string"
6951
+ },
6952
+ "default": "\"\"",
6953
+ "description": "A list of dates that should be shown as highlighted",
6954
+ "fieldName": "selectedDates",
6955
+ "inheritedFrom": {
6956
+ "name": "Calendar",
6957
+ "module": "src/calendar/calendar.ts"
6958
+ }
6959
+ }
6960
+ ],
6961
+ "members": [
6962
+ {
6963
+ "kind": "field",
6964
+ "name": "dateFormatter",
6965
+ "type": {
6966
+ "text": "DateFormatter"
6967
+ },
6968
+ "privacy": "public",
6969
+ "default": "new DateFormatter()",
6970
+ "description": "date formatter utitlity for getting localized strings",
6971
+ "inheritedFrom": {
6972
+ "name": "Calendar",
6973
+ "module": "src/calendar/calendar.ts"
6974
+ }
6975
+ },
6976
+ {
6977
+ "kind": "field",
6978
+ "name": "readonly",
6979
+ "type": {
6980
+ "text": "boolean"
6981
+ },
6982
+ "privacy": "public",
6983
+ "default": "false",
6984
+ "description": "Readonly attribute for turning off data-grid",
6985
+ "inheritedFrom": {
6986
+ "name": "Calendar",
6987
+ "module": "src/calendar/calendar.ts"
6988
+ }
6989
+ },
6990
+ {
6991
+ "kind": "field",
6992
+ "name": "locale",
6993
+ "type": {
6994
+ "text": "string"
6995
+ },
6996
+ "privacy": "public",
6997
+ "default": "\"en-US\"",
6998
+ "description": "String repesentation of the full locale including market, calendar type and numbering system",
6999
+ "inheritedFrom": {
7000
+ "name": "Calendar",
7001
+ "module": "src/calendar/calendar.ts"
7002
+ }
7003
+ },
7004
+ {
7005
+ "kind": "method",
7006
+ "name": "localeChanged",
7007
+ "privacy": "private",
7008
+ "return": {
7009
+ "type": {
7010
+ "text": "void"
7011
+ }
7012
+ },
7013
+ "inheritedFrom": {
7014
+ "name": "Calendar",
7015
+ "module": "src/calendar/calendar.ts"
7016
+ }
7017
+ },
7018
+ {
7019
+ "kind": "field",
7020
+ "name": "month",
7021
+ "type": {
7022
+ "text": "number"
7023
+ },
7024
+ "privacy": "public",
7025
+ "description": "Month to display",
7026
+ "inheritedFrom": {
7027
+ "name": "Calendar",
7028
+ "module": "src/calendar/calendar.ts"
7029
+ }
7030
+ },
7031
+ {
7032
+ "kind": "field",
7033
+ "name": "year",
7034
+ "type": {
7035
+ "text": "number"
7036
+ },
7037
+ "privacy": "public",
7038
+ "description": "Year of the month to display",
7039
+ "inheritedFrom": {
7040
+ "name": "Calendar",
7041
+ "module": "src/calendar/calendar.ts"
7308
7042
  }
7309
7043
  },
7310
7044
  {
7311
- "name": "definition",
7045
+ "kind": "field",
7046
+ "name": "dayFormat",
7312
7047
  "type": {
7313
- "text": "FoundationElementDefinition"
7048
+ "text": "DayFormat"
7049
+ },
7050
+ "privacy": "public",
7051
+ "default": "\"numeric\"",
7052
+ "description": "Format style for the day",
7053
+ "inheritedFrom": {
7054
+ "name": "Calendar",
7055
+ "module": "src/calendar/calendar.ts"
7314
7056
  }
7315
- }
7316
- ]
7317
- }
7318
- ],
7319
- "exports": [
7320
- {
7321
- "kind": "js",
7322
- "name": "foundationButtonTemplate",
7323
- "declaration": {
7324
- "name": "foundationButtonTemplate",
7325
- "module": "src/button/button.template.ts"
7326
- }
7327
- }
7328
- ]
7329
- },
7330
- {
7331
- "kind": "javascript-module",
7332
- "path": "src/button/button.ts",
7333
- "declarations": [
7334
- {
7335
- "kind": "class",
7336
- "description": "",
7337
- "name": "Button",
7338
- "superclass": {
7339
- "name": "FASTButton",
7340
- "package": "@microsoft/fast-components"
7341
- },
7342
- "tagName": "%%prefix%%-button",
7343
- "customElement": true,
7344
- "attributes": [
7057
+ },
7345
7058
  {
7346
- "type": {
7347
- "text": "boolean"
7059
+ "kind": "method",
7060
+ "name": "dayFormatChanged",
7061
+ "privacy": "private",
7062
+ "return": {
7063
+ "type": {
7064
+ "text": "void"
7065
+ }
7348
7066
  },
7349
- "description": "Determines if the element should receive document focus on page load.",
7350
- "fieldName": "autofocus",
7351
7067
  "inheritedFrom": {
7352
- "name": "Button",
7353
- "module": "src/button/button.ts"
7068
+ "name": "Calendar",
7069
+ "module": "src/calendar/calendar.ts"
7354
7070
  }
7355
7071
  },
7356
7072
  {
7357
- "name": "form",
7073
+ "kind": "field",
7074
+ "name": "weekdayFormat",
7358
7075
  "type": {
7359
- "text": "string"
7076
+ "text": "WeekdayFormat"
7360
7077
  },
7361
- "description": "The id of a form to associate the element to.",
7362
- "fieldName": "formId",
7078
+ "privacy": "public",
7079
+ "default": "\"short\"",
7080
+ "description": "Format style for the week day labels",
7363
7081
  "inheritedFrom": {
7364
- "name": "Button",
7365
- "module": "src/button/button.ts"
7082
+ "name": "Calendar",
7083
+ "module": "src/calendar/calendar.ts"
7366
7084
  }
7367
7085
  },
7368
7086
  {
7369
- "name": "formaction",
7370
- "type": {
7371
- "text": "string"
7087
+ "kind": "method",
7088
+ "name": "weekdayFormatChanged",
7089
+ "privacy": "private",
7090
+ "return": {
7091
+ "type": {
7092
+ "text": "void"
7093
+ }
7372
7094
  },
7373
- "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
7374
- "fieldName": "formaction",
7375
7095
  "inheritedFrom": {
7376
- "name": "Button",
7377
- "module": "src/button/button.ts"
7096
+ "name": "Calendar",
7097
+ "module": "src/calendar/calendar.ts"
7378
7098
  }
7379
7099
  },
7380
7100
  {
7381
- "name": "formenctype",
7101
+ "kind": "field",
7102
+ "name": "monthFormat",
7382
7103
  "type": {
7383
- "text": "string"
7104
+ "text": "MonthFormat"
7384
7105
  },
7385
- "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
7386
- "fieldName": "formenctype",
7106
+ "privacy": "public",
7107
+ "default": "\"long\"",
7108
+ "description": "Format style for the month label",
7387
7109
  "inheritedFrom": {
7388
- "name": "Button",
7389
- "module": "src/button/button.ts"
7110
+ "name": "Calendar",
7111
+ "module": "src/calendar/calendar.ts"
7390
7112
  }
7391
7113
  },
7392
7114
  {
7393
- "name": "formmethod",
7394
- "type": {
7395
- "text": "string"
7115
+ "kind": "method",
7116
+ "name": "monthFormatChanged",
7117
+ "privacy": "private",
7118
+ "return": {
7119
+ "type": {
7120
+ "text": "void"
7121
+ }
7396
7122
  },
7397
- "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
7398
- "fieldName": "formmethod",
7399
7123
  "inheritedFrom": {
7400
- "name": "Button",
7401
- "module": "src/button/button.ts"
7124
+ "name": "Calendar",
7125
+ "module": "src/calendar/calendar.ts"
7402
7126
  }
7403
7127
  },
7404
7128
  {
7405
- "name": "formtarget",
7129
+ "kind": "field",
7130
+ "name": "yearFormat",
7406
7131
  "type": {
7407
- "text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
7132
+ "text": "YearFormat"
7408
7133
  },
7409
- "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element for more details.",
7410
- "fieldName": "formtarget",
7134
+ "privacy": "public",
7135
+ "default": "\"numeric\"",
7136
+ "description": "Format style for the year used in the title",
7411
7137
  "inheritedFrom": {
7412
- "name": "Button",
7413
- "module": "src/button/button.ts"
7138
+ "name": "Calendar",
7139
+ "module": "src/calendar/calendar.ts"
7414
7140
  }
7415
7141
  },
7416
7142
  {
7417
- "name": "type",
7143
+ "kind": "method",
7144
+ "name": "yearFormatChanged",
7145
+ "privacy": "private",
7146
+ "return": {
7147
+ "type": {
7148
+ "text": "void"
7149
+ }
7150
+ },
7151
+ "inheritedFrom": {
7152
+ "name": "Calendar",
7153
+ "module": "src/calendar/calendar.ts"
7154
+ }
7155
+ },
7156
+ {
7157
+ "kind": "field",
7158
+ "name": "minWeeks",
7418
7159
  "type": {
7419
- "text": "\"submit\" | \"reset\" | \"button\""
7160
+ "text": "number"
7420
7161
  },
7421
- "description": "The button type.",
7422
- "fieldName": "type",
7162
+ "privacy": "public",
7163
+ "default": "0",
7164
+ "description": "Minimum number of weeks to show for the month\nThis can be used to normalize the calendar view\n when changing or across multiple calendars",
7423
7165
  "inheritedFrom": {
7424
- "name": "Button",
7425
- "module": "src/button/button.ts"
7166
+ "name": "Calendar",
7167
+ "module": "src/calendar/calendar.ts"
7426
7168
  }
7427
- }
7428
- ],
7429
- "members": [
7169
+ },
7430
7170
  {
7431
7171
  "kind": "field",
7432
- "name": "autofocus",
7172
+ "name": "disabledDates",
7433
7173
  "type": {
7434
- "text": "boolean"
7174
+ "text": "string"
7435
7175
  },
7436
7176
  "privacy": "public",
7437
- "description": "Determines if the element should receive document focus on page load.",
7177
+ "default": "\"\"",
7178
+ "description": "A list of dates that should be shown as disabled",
7438
7179
  "inheritedFrom": {
7439
- "name": "Button",
7440
- "module": "src/button/button.ts"
7180
+ "name": "Calendar",
7181
+ "module": "src/calendar/calendar.ts"
7441
7182
  }
7442
7183
  },
7443
7184
  {
7444
7185
  "kind": "field",
7445
- "name": "formId",
7186
+ "name": "selectedDates",
7446
7187
  "type": {
7447
7188
  "text": "string"
7448
7189
  },
7449
7190
  "privacy": "public",
7450
- "description": "The id of a form to associate the element to.",
7191
+ "default": "\"\"",
7192
+ "description": "A list of dates that should be shown as highlighted",
7193
+ "inheritedFrom": {
7194
+ "name": "Calendar",
7195
+ "module": "src/calendar/calendar.ts"
7196
+ }
7197
+ },
7198
+ {
7199
+ "kind": "method",
7200
+ "name": "getMonthInfo",
7201
+ "privacy": "public",
7202
+ "return": {
7203
+ "type": {
7204
+ "text": ""
7205
+ }
7206
+ },
7207
+ "parameters": [
7208
+ {
7209
+ "name": "month",
7210
+ "default": "this.month",
7211
+ "type": {
7212
+ "text": "number"
7213
+ },
7214
+ "description": "month of the calendar"
7215
+ },
7216
+ {
7217
+ "name": "year",
7218
+ "default": "this.year",
7219
+ "type": {
7220
+ "text": "number"
7221
+ },
7222
+ "description": "year of the calendar"
7223
+ }
7224
+ ],
7225
+ "description": "Gets data needed to render about a calendar month as well as the previous and next months",
7226
+ "inheritedFrom": {
7227
+ "name": "Calendar",
7228
+ "module": "src/calendar/calendar.ts"
7229
+ }
7230
+ },
7231
+ {
7232
+ "kind": "method",
7233
+ "name": "getDays",
7234
+ "privacy": "public",
7235
+ "return": {
7236
+ "type": {
7237
+ "text": ""
7238
+ }
7239
+ },
7240
+ "parameters": [
7241
+ {
7242
+ "name": "info",
7243
+ "default": "this.getMonthInfo()",
7244
+ "type": {
7245
+ "text": "CalendarInfo"
7246
+ },
7247
+ "description": "an object containing the information needed to render a calendar month"
7248
+ },
7249
+ {
7250
+ "name": "minWeeks",
7251
+ "default": "this.minWeeks",
7252
+ "type": {
7253
+ "text": "number"
7254
+ },
7255
+ "description": "minimum number of weeks to show"
7256
+ }
7257
+ ],
7258
+ "description": "A list of calendar days",
7451
7259
  "inheritedFrom": {
7452
- "name": "Button",
7453
- "module": "src/button/button.ts"
7260
+ "name": "Calendar",
7261
+ "module": "src/calendar/calendar.ts"
7454
7262
  }
7455
7263
  },
7456
7264
  {
7457
- "kind": "field",
7458
- "name": "formaction",
7459
- "type": {
7460
- "text": "string"
7461
- },
7265
+ "kind": "method",
7266
+ "name": "dateInString",
7462
7267
  "privacy": "public",
7463
- "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
7268
+ "return": {
7269
+ "type": {
7270
+ "text": ""
7271
+ }
7272
+ },
7273
+ "parameters": [
7274
+ {
7275
+ "name": "date",
7276
+ "type": {
7277
+ "text": "Date | string"
7278
+ },
7279
+ "description": "A date objec that includes the day, month and year"
7280
+ },
7281
+ {
7282
+ "name": "datesString",
7283
+ "type": {
7284
+ "text": "string"
7285
+ },
7286
+ "description": "a comma separated list of dates"
7287
+ }
7288
+ ],
7289
+ "description": "A helper function that checks if a date exists in a list of dates",
7464
7290
  "inheritedFrom": {
7465
- "name": "Button",
7466
- "module": "src/button/button.ts"
7291
+ "name": "Calendar",
7292
+ "module": "src/calendar/calendar.ts"
7467
7293
  }
7468
7294
  },
7469
7295
  {
7470
7296
  "kind": "method",
7471
- "name": "formactionChanged",
7472
- "privacy": "private",
7297
+ "name": "getDayClassNames",
7298
+ "privacy": "public",
7473
7299
  "return": {
7474
7300
  "type": {
7475
- "text": "void"
7301
+ "text": ""
7476
7302
  }
7477
7303
  },
7304
+ "parameters": [
7305
+ {
7306
+ "name": "date",
7307
+ "type": {
7308
+ "text": "CalendarDateInfo"
7309
+ },
7310
+ "description": "date of the calendar cell"
7311
+ },
7312
+ {
7313
+ "name": "todayString",
7314
+ "optional": true,
7315
+ "type": {
7316
+ "text": "string"
7317
+ }
7318
+ }
7319
+ ],
7320
+ "description": "Creates a class string for the day container",
7478
7321
  "inheritedFrom": {
7479
- "name": "Button",
7480
- "module": "src/button/button.ts"
7322
+ "name": "Calendar",
7323
+ "module": "src/calendar/calendar.ts"
7481
7324
  }
7482
7325
  },
7483
7326
  {
7484
- "kind": "field",
7485
- "name": "formenctype",
7486
- "type": {
7487
- "text": "string"
7488
- },
7327
+ "kind": "method",
7328
+ "name": "getWeekdayText",
7489
7329
  "privacy": "public",
7490
- "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
7330
+ "return": {
7331
+ "type": {
7332
+ "text": ""
7333
+ }
7334
+ },
7335
+ "description": "Returns a list of weekday labels",
7491
7336
  "inheritedFrom": {
7492
- "name": "Button",
7493
- "module": "src/button/button.ts"
7337
+ "name": "Calendar",
7338
+ "module": "src/calendar/calendar.ts"
7494
7339
  }
7495
7340
  },
7496
7341
  {
7497
7342
  "kind": "method",
7498
- "name": "formenctypeChanged",
7499
- "privacy": "private",
7343
+ "name": "handleDateSelect",
7344
+ "privacy": "public",
7500
7345
  "return": {
7501
7346
  "type": {
7502
7347
  "text": "void"
7503
7348
  }
7504
7349
  },
7350
+ "parameters": [
7351
+ {
7352
+ "name": "event",
7353
+ "type": {
7354
+ "text": "Event"
7355
+ }
7356
+ },
7357
+ {
7358
+ "name": "day",
7359
+ "type": {
7360
+ "text": "CalendarDateInfo"
7361
+ }
7362
+ },
7363
+ {
7364
+ "description": "Date cell",
7365
+ "name": "date"
7366
+ }
7367
+ ],
7368
+ "description": "Emits the \"date-select\" event with the day, month and year.",
7505
7369
  "inheritedFrom": {
7506
- "name": "Button",
7507
- "module": "src/button/button.ts"
7508
- }
7509
- },
7510
- {
7511
- "kind": "field",
7512
- "name": "formmethod",
7513
- "type": {
7514
- "text": "string"
7515
- },
7516
- "privacy": "public",
7517
- "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
7518
- "inheritedFrom": {
7519
- "name": "Button",
7520
- "module": "src/button/button.ts"
7370
+ "name": "Calendar",
7371
+ "module": "src/calendar/calendar.ts"
7521
7372
  }
7522
7373
  },
7523
7374
  {
7524
7375
  "kind": "method",
7525
- "name": "formmethodChanged",
7526
- "privacy": "private",
7376
+ "name": "handleKeydown",
7377
+ "privacy": "public",
7527
7378
  "return": {
7528
7379
  "type": {
7529
- "text": "void"
7380
+ "text": "boolean"
7530
7381
  }
7531
7382
  },
7383
+ "parameters": [
7384
+ {
7385
+ "name": "event",
7386
+ "type": {
7387
+ "text": "KeyboardEvent"
7388
+ },
7389
+ "description": "Keyboard event"
7390
+ },
7391
+ {
7392
+ "name": "date",
7393
+ "type": {
7394
+ "text": "CalendarDateInfo"
7395
+ },
7396
+ "description": "Date of the cell selected"
7397
+ }
7398
+ ],
7399
+ "description": "Handles keyboard events on a cell",
7532
7400
  "inheritedFrom": {
7533
- "name": "Button",
7534
- "module": "src/button/button.ts"
7401
+ "name": "Calendar",
7402
+ "module": "src/calendar/calendar.ts"
7535
7403
  }
7536
7404
  },
7537
7405
  {
7538
7406
  "kind": "field",
7539
- "name": "formnovalidate",
7407
+ "name": "_presentation",
7540
7408
  "type": {
7541
- "text": "boolean"
7409
+ "text": "ComponentPresentation | null | undefined"
7542
7410
  },
7543
- "privacy": "public",
7544
- "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
7411
+ "privacy": "private",
7412
+ "default": "void 0",
7545
7413
  "inheritedFrom": {
7546
- "name": "Button",
7547
- "module": "src/button/button.ts"
7414
+ "name": "FoundationElement",
7415
+ "module": "src/foundation-element/foundation-element.ts"
7548
7416
  }
7549
7417
  },
7550
7418
  {
7551
- "kind": "method",
7552
- "name": "formnovalidateChanged",
7553
- "privacy": "private",
7554
- "return": {
7555
- "type": {
7556
- "text": "void"
7557
- }
7419
+ "kind": "field",
7420
+ "name": "$presentation",
7421
+ "type": {
7422
+ "text": "ComponentPresentation | null"
7558
7423
  },
7424
+ "privacy": "public",
7425
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
7559
7426
  "inheritedFrom": {
7560
- "name": "Button",
7561
- "module": "src/button/button.ts"
7427
+ "name": "FoundationElement",
7428
+ "module": "src/foundation-element/foundation-element.ts"
7562
7429
  }
7563
7430
  },
7564
7431
  {
7565
7432
  "kind": "field",
7566
- "name": "formtarget",
7433
+ "name": "template",
7567
7434
  "type": {
7568
- "text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
7435
+ "text": "ElementViewTemplate | void | null"
7569
7436
  },
7570
7437
  "privacy": "public",
7571
- "description": "See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element} for more details.",
7438
+ "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.",
7572
7439
  "inheritedFrom": {
7573
- "name": "Button",
7574
- "module": "src/button/button.ts"
7440
+ "name": "FoundationElement",
7441
+ "module": "src/foundation-element/foundation-element.ts"
7575
7442
  }
7576
7443
  },
7577
7444
  {
7578
7445
  "kind": "method",
7579
- "name": "formtargetChanged",
7580
- "privacy": "private",
7446
+ "name": "templateChanged",
7447
+ "privacy": "protected",
7581
7448
  "return": {
7582
7449
  "type": {
7583
7450
  "text": "void"
7584
7451
  }
7585
7452
  },
7586
7453
  "inheritedFrom": {
7587
- "name": "Button",
7588
- "module": "src/button/button.ts"
7454
+ "name": "FoundationElement",
7455
+ "module": "src/foundation-element/foundation-element.ts"
7589
7456
  }
7590
7457
  },
7591
7458
  {
7592
7459
  "kind": "field",
7593
- "name": "type",
7460
+ "name": "styles",
7594
7461
  "type": {
7595
- "text": "\"submit\" | \"reset\" | \"button\""
7462
+ "text": "ElementStyles | void | null"
7596
7463
  },
7597
7464
  "privacy": "public",
7598
- "description": "The button type.",
7465
+ "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.",
7599
7466
  "inheritedFrom": {
7600
- "name": "Button",
7601
- "module": "src/button/button.ts"
7467
+ "name": "FoundationElement",
7468
+ "module": "src/foundation-element/foundation-element.ts"
7602
7469
  }
7603
7470
  },
7604
7471
  {
7605
7472
  "kind": "method",
7606
- "name": "typeChanged",
7607
- "privacy": "private",
7473
+ "name": "stylesChanged",
7474
+ "privacy": "protected",
7608
7475
  "return": {
7609
7476
  "type": {
7610
7477
  "text": "void"
7611
7478
  }
7612
7479
  },
7613
- "parameters": [
7614
- {
7615
- "name": "previous",
7616
- "type": {
7617
- "text": "\"submit\" | \"reset\" | \"button\" | void"
7618
- }
7619
- },
7620
- {
7621
- "name": "next",
7622
- "type": {
7623
- "text": "\"submit\" | \"reset\" | \"button\""
7624
- }
7625
- }
7626
- ],
7627
- "inheritedFrom": {
7628
- "name": "Button",
7629
- "module": "src/button/button.ts"
7630
- }
7631
- },
7632
- {
7633
- "kind": "field",
7634
- "name": "defaultSlottedContent",
7635
- "type": {
7636
- "text": "HTMLElement[]"
7637
- },
7638
- "privacy": "public",
7639
- "description": "\nDefault slotted content",
7640
7480
  "inheritedFrom": {
7641
- "name": "Button",
7642
- "module": "src/button/button.ts"
7481
+ "name": "FoundationElement",
7482
+ "module": "src/foundation-element/foundation-element.ts"
7643
7483
  }
7644
7484
  },
7645
7485
  {
7646
7486
  "kind": "method",
7647
- "name": "validate",
7487
+ "name": "compose",
7648
7488
  "privacy": "public",
7489
+ "static": true,
7649
7490
  "return": {
7650
7491
  "type": {
7651
- "text": "void"
7492
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
7493
+ }
7494
+ },
7495
+ "parameters": [
7496
+ {
7497
+ "name": "this",
7498
+ "type": {
7499
+ "text": "K"
7500
+ }
7501
+ },
7502
+ {
7503
+ "name": "elementDefinition",
7504
+ "type": {
7505
+ "text": "T"
7506
+ },
7507
+ "description": "The definition of the element to create the registry\nfunction for."
7652
7508
  }
7653
- },
7654
- "description": "{@inheritDoc (FormAssociated:interface).validate}",
7509
+ ],
7510
+ "description": "Defines an element registry function with a set of element definition defaults.",
7655
7511
  "inheritedFrom": {
7656
- "name": "Button",
7657
- "module": "src/button/button.ts"
7512
+ "name": "FoundationElement",
7513
+ "module": "src/foundation-element/foundation-element.ts"
7658
7514
  }
7659
- },
7515
+ }
7516
+ ],
7517
+ "events": [
7660
7518
  {
7661
- "kind": "field",
7662
- "name": "handleSubmission",
7663
- "privacy": "private",
7664
- "description": "Submits the parent form",
7519
+ "description": "Fires a custom 'dateselected' event when Enter is invoked via keyboard on a date",
7520
+ "name": "dateselected",
7665
7521
  "inheritedFrom": {
7666
- "name": "Button",
7667
- "module": "src/button/button.ts"
7522
+ "name": "Calendar",
7523
+ "module": "src/calendar/calendar.ts"
7668
7524
  }
7669
- },
7525
+ }
7526
+ ]
7527
+ },
7528
+ {
7529
+ "kind": "variable",
7530
+ "name": "foundationCalendarShadowOptions",
7531
+ "type": {
7532
+ "text": "ShadowRootInit"
7533
+ },
7534
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
7535
+ },
7536
+ {
7537
+ "kind": "variable",
7538
+ "name": "defaultCalendarConfig",
7539
+ "type": {
7540
+ "text": "object"
7541
+ },
7542
+ "default": "{}"
7543
+ },
7544
+ {
7545
+ "kind": "variable",
7546
+ "name": "foundationCalendar",
7547
+ "description": "The Foundation Calendar",
7548
+ "privacy": "public"
7549
+ }
7550
+ ],
7551
+ "exports": [
7552
+ {
7553
+ "kind": "js",
7554
+ "name": "Calendar",
7555
+ "declaration": {
7556
+ "name": "Calendar",
7557
+ "module": "src/calendar/calendar.ts"
7558
+ }
7559
+ },
7560
+ {
7561
+ "kind": "js",
7562
+ "name": "foundationCalendarShadowOptions",
7563
+ "declaration": {
7564
+ "name": "foundationCalendarShadowOptions",
7565
+ "module": "src/calendar/calendar.ts"
7566
+ }
7567
+ },
7568
+ {
7569
+ "kind": "js",
7570
+ "name": "defaultCalendarConfig",
7571
+ "declaration": {
7572
+ "name": "defaultCalendarConfig",
7573
+ "module": "src/calendar/calendar.ts"
7574
+ }
7575
+ },
7576
+ {
7577
+ "kind": "js",
7578
+ "name": "foundationCalendar",
7579
+ "declaration": {
7580
+ "name": "foundationCalendar",
7581
+ "module": "src/calendar/calendar.ts"
7582
+ }
7583
+ }
7584
+ ]
7585
+ },
7586
+ {
7587
+ "kind": "javascript-module",
7588
+ "path": "src/calendar/index.ts",
7589
+ "declarations": [],
7590
+ "exports": [
7591
+ {
7592
+ "kind": "js",
7593
+ "name": "*",
7594
+ "declaration": {
7595
+ "name": "*",
7596
+ "package": "./calendar"
7597
+ }
7598
+ },
7599
+ {
7600
+ "kind": "js",
7601
+ "name": "*",
7602
+ "declaration": {
7603
+ "name": "*",
7604
+ "package": "./calendar.template"
7605
+ }
7606
+ },
7607
+ {
7608
+ "kind": "js",
7609
+ "name": "*",
7610
+ "declaration": {
7611
+ "name": "*",
7612
+ "package": "./calendar.styles"
7613
+ }
7614
+ }
7615
+ ]
7616
+ },
7617
+ {
7618
+ "kind": "javascript-module",
7619
+ "path": "src/card/card.styles.ts",
7620
+ "declarations": [
7621
+ {
7622
+ "kind": "function",
7623
+ "name": "foundationCardStyles",
7624
+ "return": {
7625
+ "type": {
7626
+ "text": "ElementStyles"
7627
+ }
7628
+ },
7629
+ "parameters": [
7670
7630
  {
7671
- "kind": "field",
7672
- "name": "handleFormReset",
7673
- "privacy": "private",
7674
- "description": "Resets the parent form",
7675
- "inheritedFrom": {
7676
- "name": "Button",
7677
- "module": "src/button/button.ts"
7631
+ "name": "context",
7632
+ "type": {
7633
+ "text": "ElementDefinitionContext"
7678
7634
  }
7679
7635
  },
7680
7636
  {
7681
- "kind": "field",
7682
- "name": "control",
7637
+ "name": "definition",
7683
7638
  "type": {
7684
- "text": "HTMLButtonElement"
7685
- },
7686
- "privacy": "public",
7687
- "inheritedFrom": {
7688
- "name": "Button",
7689
- "module": "src/button/button.ts"
7639
+ "text": "FoundationElementDefinition"
7690
7640
  }
7691
- },
7641
+ }
7642
+ ]
7643
+ }
7644
+ ],
7645
+ "exports": [
7646
+ {
7647
+ "kind": "js",
7648
+ "name": "foundationCardStyles",
7649
+ "declaration": {
7650
+ "name": "foundationCardStyles",
7651
+ "module": "src/card/card.styles.ts"
7652
+ }
7653
+ }
7654
+ ]
7655
+ },
7656
+ {
7657
+ "kind": "javascript-module",
7658
+ "path": "src/card/card.template.ts",
7659
+ "declarations": [
7660
+ {
7661
+ "kind": "function",
7662
+ "name": "foundationCardTemplate",
7663
+ "return": {
7664
+ "type": {
7665
+ "text": "ViewTemplate<Card>"
7666
+ }
7667
+ },
7668
+ "parameters": [
7692
7669
  {
7693
- "kind": "field",
7694
- "name": "handleUnsupportedDelegatesFocus",
7695
- "privacy": "private",
7696
- "description": "Overrides the focus call for where delegatesFocus is unsupported.\nThis check works for Chrome, Edge Chromium, FireFox, and Safari\nRelevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858",
7697
- "inheritedFrom": {
7698
- "name": "Button",
7699
- "module": "src/button/button.ts"
7670
+ "name": "context",
7671
+ "type": {
7672
+ "text": "ElementDefinitionContext"
7700
7673
  }
7701
7674
  },
7702
7675
  {
7703
- "kind": "field",
7704
- "name": "proxy",
7705
- "inheritedFrom": {
7706
- "name": "Button",
7707
- "module": "src/button/button.ts"
7676
+ "name": "definition",
7677
+ "type": {
7678
+ "text": "FoundationElementDefinition"
7708
7679
  }
7709
- },
7680
+ }
7681
+ ]
7682
+ }
7683
+ ],
7684
+ "exports": [
7685
+ {
7686
+ "kind": "js",
7687
+ "name": "foundationCardTemplate",
7688
+ "declaration": {
7689
+ "name": "foundationCardTemplate",
7690
+ "module": "src/card/card.template.ts"
7691
+ }
7692
+ }
7693
+ ]
7694
+ },
7695
+ {
7696
+ "kind": "javascript-module",
7697
+ "path": "src/card/card.ts",
7698
+ "declarations": [
7699
+ {
7700
+ "kind": "class",
7701
+ "description": "",
7702
+ "name": "Card",
7703
+ "superclass": {
7704
+ "name": "FASTCard",
7705
+ "package": "@microsoft/fast-components"
7706
+ },
7707
+ "tagName": "%%prefix%%-card",
7708
+ "customElement": true,
7709
+ "members": [
7710
7710
  {
7711
7711
  "kind": "field",
7712
7712
  "name": "_presentation",
@@ -7716,8 +7716,8 @@
7716
7716
  "privacy": "private",
7717
7717
  "default": "void 0",
7718
7718
  "inheritedFrom": {
7719
- "name": "Button",
7720
- "module": "src/button/button.ts"
7719
+ "name": "FoundationElement",
7720
+ "module": "src/foundation-element/foundation-element.ts"
7721
7721
  }
7722
7722
  },
7723
7723
  {
@@ -7729,8 +7729,8 @@
7729
7729
  "privacy": "public",
7730
7730
  "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
7731
7731
  "inheritedFrom": {
7732
- "name": "Button",
7733
- "module": "src/button/button.ts"
7732
+ "name": "FoundationElement",
7733
+ "module": "src/foundation-element/foundation-element.ts"
7734
7734
  }
7735
7735
  },
7736
7736
  {
@@ -7742,8 +7742,8 @@
7742
7742
  "privacy": "public",
7743
7743
  "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.",
7744
7744
  "inheritedFrom": {
7745
- "name": "Button",
7746
- "module": "src/button/button.ts"
7745
+ "name": "FoundationElement",
7746
+ "module": "src/foundation-element/foundation-element.ts"
7747
7747
  }
7748
7748
  },
7749
7749
  {
@@ -7756,8 +7756,8 @@
7756
7756
  }
7757
7757
  },
7758
7758
  "inheritedFrom": {
7759
- "name": "Button",
7760
- "module": "src/button/button.ts"
7759
+ "name": "FoundationElement",
7760
+ "module": "src/foundation-element/foundation-element.ts"
7761
7761
  }
7762
7762
  },
7763
7763
  {
@@ -7769,8 +7769,8 @@
7769
7769
  "privacy": "public",
7770
7770
  "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.",
7771
7771
  "inheritedFrom": {
7772
- "name": "Button",
7773
- "module": "src/button/button.ts"
7772
+ "name": "FoundationElement",
7773
+ "module": "src/foundation-element/foundation-element.ts"
7774
7774
  }
7775
7775
  },
7776
7776
  {
@@ -7783,8 +7783,8 @@
7783
7783
  }
7784
7784
  },
7785
7785
  "inheritedFrom": {
7786
- "name": "Button",
7787
- "module": "src/button/button.ts"
7786
+ "name": "FoundationElement",
7787
+ "module": "src/foundation-element/foundation-element.ts"
7788
7788
  }
7789
7789
  },
7790
7790
  {
@@ -7814,23 +7814,23 @@
7814
7814
  ],
7815
7815
  "description": "Defines an element registry function with a set of element definition defaults.",
7816
7816
  "inheritedFrom": {
7817
- "name": "Button",
7818
- "module": "src/button/button.ts"
7817
+ "name": "FoundationElement",
7818
+ "module": "src/foundation-element/foundation-element.ts"
7819
7819
  }
7820
7820
  }
7821
7821
  ]
7822
7822
  },
7823
7823
  {
7824
7824
  "kind": "variable",
7825
- "name": "foundationButtonShadowOptions",
7825
+ "name": "foundationCardShadowOptions",
7826
7826
  "type": {
7827
7827
  "text": "ShadowRootInit"
7828
7828
  },
7829
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
7829
+ "default": "undefined"
7830
7830
  },
7831
7831
  {
7832
7832
  "kind": "variable",
7833
- "name": "defaultButtonConfig",
7833
+ "name": "defaultCardConfig",
7834
7834
  "type": {
7835
7835
  "text": "object"
7836
7836
  },
@@ -7838,49 +7838,49 @@
7838
7838
  },
7839
7839
  {
7840
7840
  "kind": "variable",
7841
- "name": "foundationButton",
7842
- "description": "The Foundation Button",
7841
+ "name": "foundationCard",
7842
+ "description": "The Foundation Card",
7843
7843
  "privacy": "public"
7844
7844
  }
7845
7845
  ],
7846
7846
  "exports": [
7847
7847
  {
7848
7848
  "kind": "js",
7849
- "name": "Button",
7849
+ "name": "Card",
7850
7850
  "declaration": {
7851
- "name": "Button",
7852
- "module": "src/button/button.ts"
7851
+ "name": "Card",
7852
+ "module": "src/card/card.ts"
7853
7853
  }
7854
7854
  },
7855
7855
  {
7856
7856
  "kind": "js",
7857
- "name": "foundationButtonShadowOptions",
7857
+ "name": "foundationCardShadowOptions",
7858
7858
  "declaration": {
7859
- "name": "foundationButtonShadowOptions",
7860
- "module": "src/button/button.ts"
7859
+ "name": "foundationCardShadowOptions",
7860
+ "module": "src/card/card.ts"
7861
7861
  }
7862
7862
  },
7863
7863
  {
7864
7864
  "kind": "js",
7865
- "name": "defaultButtonConfig",
7865
+ "name": "defaultCardConfig",
7866
7866
  "declaration": {
7867
- "name": "defaultButtonConfig",
7868
- "module": "src/button/button.ts"
7867
+ "name": "defaultCardConfig",
7868
+ "module": "src/card/card.ts"
7869
7869
  }
7870
7870
  },
7871
7871
  {
7872
7872
  "kind": "js",
7873
- "name": "foundationButton",
7873
+ "name": "foundationCard",
7874
7874
  "declaration": {
7875
- "name": "foundationButton",
7876
- "module": "src/button/button.ts"
7875
+ "name": "foundationCard",
7876
+ "module": "src/card/card.ts"
7877
7877
  }
7878
7878
  }
7879
7879
  ]
7880
7880
  },
7881
7881
  {
7882
7882
  "kind": "javascript-module",
7883
- "path": "src/button/index.ts",
7883
+ "path": "src/card/index.ts",
7884
7884
  "declarations": [],
7885
7885
  "exports": [
7886
7886
  {
@@ -7888,7 +7888,7 @@
7888
7888
  "name": "*",
7889
7889
  "declaration": {
7890
7890
  "name": "*",
7891
- "package": "./button.template"
7891
+ "package": "./card.template"
7892
7892
  }
7893
7893
  },
7894
7894
  {
@@ -7896,7 +7896,7 @@
7896
7896
  "name": "*",
7897
7897
  "declaration": {
7898
7898
  "name": "*",
7899
- "package": "./button.styles"
7899
+ "package": "./card.styles"
7900
7900
  }
7901
7901
  },
7902
7902
  {
@@ -7904,7 +7904,7 @@
7904
7904
  "name": "*",
7905
7905
  "declaration": {
7906
7906
  "name": "*",
7907
- "package": "./button"
7907
+ "package": "./card"
7908
7908
  }
7909
7909
  }
7910
7910
  ]
@@ -9870,465 +9870,560 @@
9870
9870
  },
9871
9871
  {
9872
9872
  "kind": "javascript-module",
9873
- "path": "src/data-grid-datasource/data-grid-datasource.ts",
9873
+ "path": "src/data-grid-cell/data-grid-cell.styles.ts",
9874
9874
  "declarations": [
9875
9875
  {
9876
- "kind": "class",
9877
- "description": "",
9878
- "name": "DataGridDatasource",
9879
- "members": [
9880
- {
9881
- "kind": "field",
9882
- "name": "dataGrid",
9883
- "type": {
9884
- "text": "DataGrid"
9885
- },
9886
- "privacy": "private"
9887
- },
9876
+ "kind": "function",
9877
+ "name": "foundationDataGridCellStyles",
9878
+ "return": {
9879
+ "type": {
9880
+ "text": "ElementStyles"
9881
+ }
9882
+ },
9883
+ "parameters": [
9888
9884
  {
9889
- "kind": "field",
9890
- "name": "isSnapshot",
9885
+ "name": "context",
9891
9886
  "type": {
9892
- "text": "boolean"
9893
- },
9894
- "default": "true",
9895
- "privacy": "public",
9896
- "inheritedFrom": {
9897
- "name": "<local>_BaseDatasource",
9898
- "module": "src/utils/base-datasource.ts"
9899
- }
9900
- },
9901
- {
9902
- "kind": "method",
9903
- "name": "getColumnDefs",
9904
- "privacy": "private",
9905
- "parameters": [
9906
- {
9907
- "name": "fieldsMetadata",
9908
- "type": {
9909
- "text": "FieldMetadata[]"
9910
- }
9911
- }
9912
- ]
9913
- },
9914
- {
9915
- "kind": "method",
9916
- "name": "clearData",
9917
- "return": {
9918
- "type": {
9919
- "text": "void"
9920
- }
9921
- },
9922
- "inheritedFrom": {
9923
- "name": "<local>_BaseDatasource",
9924
- "module": "src/utils/base-datasource.ts"
9925
- }
9926
- },
9927
- {
9928
- "kind": "method",
9929
- "name": "syncComponentData",
9930
- "return": {
9931
- "type": {
9932
- "text": "void"
9933
- }
9934
- },
9935
- "parameters": [
9936
- {
9937
- "name": "snapshotData",
9938
- "optional": true,
9939
- "type": {
9940
- "text": "any[]"
9941
- }
9942
- }
9943
- ],
9944
- "inheritedFrom": {
9945
- "name": "<local>_BaseDatasource",
9946
- "module": "src/utils/base-datasource.ts"
9947
- }
9948
- },
9949
- {
9950
- "kind": "method",
9951
- "name": "handleStreamInserts",
9952
- "return": {
9953
- "type": {
9954
- "text": "void"
9955
- }
9956
- },
9957
- "parameters": [
9958
- {
9959
- "name": "insertedRows",
9960
- "type": {
9961
- "text": "any[]"
9962
- }
9963
- }
9964
- ],
9965
- "inheritedFrom": {
9966
- "name": "<local>_BaseDatasource",
9967
- "module": "src/utils/base-datasource.ts"
9968
- }
9969
- },
9970
- {
9971
- "kind": "method",
9972
- "name": "handleStreamDeletes",
9973
- "return": {
9974
- "type": {
9975
- "text": "void"
9976
- }
9977
- },
9978
- "parameters": [
9979
- {
9980
- "name": "deletedRows",
9981
- "type": {
9982
- "text": "any[]"
9983
- }
9984
- }
9985
- ],
9986
- "inheritedFrom": {
9987
- "name": "<local>_BaseDatasource",
9988
- "module": "src/utils/base-datasource.ts"
9989
- }
9990
- },
9991
- {
9992
- "kind": "method",
9993
- "name": "handleStreamUpdates",
9994
- "return": {
9995
- "type": {
9996
- "text": "void"
9997
- }
9998
- },
9999
- "parameters": [
10000
- {
10001
- "name": "updatedRows",
10002
- "type": {
10003
- "text": "any[]"
10004
- }
10005
- }
10006
- ],
10007
- "inheritedFrom": {
10008
- "name": "<local>_BaseDatasource",
10009
- "module": "src/utils/base-datasource.ts"
9887
+ "text": "ElementDefinitionContext"
10010
9888
  }
10011
9889
  },
10012
9890
  {
10013
- "kind": "field",
10014
- "name": "connect",
9891
+ "name": "defintion",
10015
9892
  "type": {
10016
- "text": "Connect"
10017
- },
10018
- "inheritedFrom": {
10019
- "name": "<local>_BaseDatasource",
10020
- "module": "src/utils/base-datasource.ts"
9893
+ "text": "FoundationElementDefinition"
10021
9894
  }
10022
- },
9895
+ }
9896
+ ]
9897
+ }
9898
+ ],
9899
+ "exports": [
9900
+ {
9901
+ "kind": "js",
9902
+ "name": "foundationDataGridCellStyles",
9903
+ "declaration": {
9904
+ "name": "foundationDataGridCellStyles",
9905
+ "module": "src/data-grid-cell/data-grid-cell.styles.ts"
9906
+ }
9907
+ }
9908
+ ]
9909
+ },
9910
+ {
9911
+ "kind": "javascript-module",
9912
+ "path": "src/data-grid-cell/data-grid.cell.ts",
9913
+ "declarations": [
9914
+ {
9915
+ "kind": "class",
9916
+ "description": "",
9917
+ "name": "DataGridCell",
9918
+ "superclass": {
9919
+ "name": "FASTDataGridCell",
9920
+ "package": "@microsoft/fast-components"
9921
+ },
9922
+ "tagName": "%%prefix%%-data-grid-cell",
9923
+ "customElement": true,
9924
+ "attributes": [
10023
9925
  {
10024
- "kind": "field",
10025
- "name": "datasource",
9926
+ "name": "cell-type",
10026
9927
  "type": {
10027
- "text": "Datasource"
9928
+ "text": "DataGridCellTypes"
10028
9929
  },
9930
+ "description": "The type of cell",
9931
+ "fieldName": "cellType",
10029
9932
  "inheritedFrom": {
10030
- "name": "<local>_BaseDatasource",
10031
- "module": "src/utils/base-datasource.ts"
9933
+ "name": "DataGridCell",
9934
+ "module": "src/data-grid/data-grid-cell.ts"
10032
9935
  }
10033
9936
  },
10034
9937
  {
10035
- "kind": "field",
10036
- "name": "withGridInit",
9938
+ "name": "grid-column",
10037
9939
  "type": {
10038
- "text": "boolean"
9940
+ "text": "string"
10039
9941
  },
10040
- "default": "true",
9942
+ "description": "The column index of the cell.\nThis will be applied to the css grid-column-index value\napplied to the cell",
9943
+ "fieldName": "gridColumn",
10041
9944
  "inheritedFrom": {
10042
- "name": "<local>_BaseDatasource",
10043
- "module": "src/utils/base-datasource.ts"
9945
+ "name": "DataGridCell",
9946
+ "module": "src/data-grid/data-grid-cell.ts"
10044
9947
  }
10045
- },
9948
+ }
9949
+ ],
9950
+ "members": [
10046
9951
  {
10047
9952
  "kind": "field",
10048
- "name": "criteria",
9953
+ "name": "cellType",
10049
9954
  "type": {
10050
- "text": "string"
9955
+ "text": "DataGridCellTypes"
10051
9956
  },
9957
+ "privacy": "public",
9958
+ "description": "The type of cell",
10052
9959
  "inheritedFrom": {
10053
- "name": "<local>_BaseDatasource",
10054
- "module": "src/utils/base-datasource.ts"
9960
+ "name": "DataGridCell",
9961
+ "module": "src/data-grid/data-grid-cell.ts"
10055
9962
  }
10056
9963
  },
10057
9964
  {
10058
9965
  "kind": "method",
10059
- "name": "criteriaChanged",
10060
- "parameters": [
10061
- {
10062
- "name": "oldCriteria",
10063
- "type": {
10064
- "text": "string"
10065
- }
10066
- },
10067
- {
10068
- "name": "newCriteria",
10069
- "type": {
10070
- "text": "string"
10071
- }
9966
+ "name": "cellTypeChanged",
9967
+ "privacy": "private",
9968
+ "return": {
9969
+ "type": {
9970
+ "text": "void"
10072
9971
  }
10073
- ],
9972
+ },
10074
9973
  "inheritedFrom": {
10075
- "name": "<local>_BaseDatasource",
10076
- "module": "src/utils/base-datasource.ts"
9974
+ "name": "DataGridCell",
9975
+ "module": "src/data-grid/data-grid-cell.ts"
10077
9976
  }
10078
9977
  },
10079
9978
  {
10080
9979
  "kind": "field",
10081
- "name": "data",
9980
+ "name": "gridColumn",
10082
9981
  "type": {
10083
- "text": "any[]"
9982
+ "text": "string"
10084
9983
  },
9984
+ "privacy": "public",
9985
+ "description": "The column index of the cell.\nThis will be applied to the css grid-column-index value\napplied to the cell",
10085
9986
  "inheritedFrom": {
10086
- "name": "<local>_BaseDatasource",
10087
- "module": "src/utils/base-datasource.ts"
9987
+ "name": "DataGridCell",
9988
+ "module": "src/data-grid/data-grid-cell.ts"
10088
9989
  }
10089
9990
  },
10090
9991
  {
10091
- "kind": "field",
10092
- "name": "fields",
10093
- "type": {
10094
- "text": "string"
9992
+ "kind": "method",
9993
+ "name": "gridColumnChanged",
9994
+ "privacy": "private",
9995
+ "return": {
9996
+ "type": {
9997
+ "text": "void"
9998
+ }
10095
9999
  },
10096
10000
  "inheritedFrom": {
10097
- "name": "<local>_BaseDatasource",
10098
- "module": "src/utils/base-datasource.ts"
10001
+ "name": "DataGridCell",
10002
+ "module": "src/data-grid/data-grid-cell.ts"
10099
10003
  }
10100
10004
  },
10101
10005
  {
10102
10006
  "kind": "field",
10103
- "name": "maxRows",
10007
+ "name": "rowData",
10104
10008
  "type": {
10105
- "text": "number"
10009
+ "text": "object | null"
10106
10010
  },
10011
+ "privacy": "public",
10012
+ "default": "null",
10013
+ "description": "The base data for the parent row",
10107
10014
  "inheritedFrom": {
10108
- "name": "<local>_BaseDatasource",
10109
- "module": "src/utils/base-datasource.ts"
10015
+ "name": "DataGridCell",
10016
+ "module": "src/data-grid/data-grid-cell.ts"
10110
10017
  }
10111
10018
  },
10112
10019
  {
10113
10020
  "kind": "field",
10114
- "name": "maxView",
10021
+ "name": "columnDefinition",
10115
10022
  "type": {
10116
- "text": "number"
10023
+ "text": "ColumnDefinition | null"
10117
10024
  },
10025
+ "privacy": "public",
10026
+ "default": "null",
10027
+ "description": "The base data for the column",
10118
10028
  "inheritedFrom": {
10119
- "name": "<local>_BaseDatasource",
10120
- "module": "src/utils/base-datasource.ts"
10029
+ "name": "DataGridCell",
10030
+ "module": "src/data-grid/data-grid-cell.ts"
10121
10031
  }
10122
10032
  },
10123
10033
  {
10124
- "kind": "field",
10125
- "name": "orderBy",
10126
- "type": {
10127
- "text": "string"
10034
+ "kind": "method",
10035
+ "name": "columnDefinitionChanged",
10036
+ "privacy": "private",
10037
+ "return": {
10038
+ "type": {
10039
+ "text": "void"
10040
+ }
10128
10041
  },
10042
+ "parameters": [
10043
+ {
10044
+ "name": "oldValue",
10045
+ "type": {
10046
+ "text": "ColumnDefinition | null"
10047
+ }
10048
+ },
10049
+ {
10050
+ "name": "newValue",
10051
+ "type": {
10052
+ "text": "ColumnDefinition | null"
10053
+ }
10054
+ }
10055
+ ],
10129
10056
  "inheritedFrom": {
10130
- "name": "<local>_BaseDatasource",
10131
- "module": "src/utils/base-datasource.ts"
10057
+ "name": "DataGridCell",
10058
+ "module": "src/data-grid/data-grid-cell.ts"
10132
10059
  }
10133
10060
  },
10134
10061
  {
10135
10062
  "kind": "field",
10136
- "name": "request",
10063
+ "name": "isActiveCell",
10137
10064
  "type": {
10138
- "text": "any"
10065
+ "text": "boolean"
10139
10066
  },
10067
+ "privacy": "private",
10068
+ "default": "false",
10140
10069
  "inheritedFrom": {
10141
- "name": "<local>_BaseDatasource",
10142
- "module": "src/utils/base-datasource.ts"
10070
+ "name": "DataGridCell",
10071
+ "module": "src/data-grid/data-grid-cell.ts"
10143
10072
  }
10144
10073
  },
10145
10074
  {
10146
10075
  "kind": "field",
10147
- "name": "resourceName",
10076
+ "name": "customCellView",
10148
10077
  "type": {
10149
- "text": "string"
10078
+ "text": "HTMLView | null"
10150
10079
  },
10080
+ "privacy": "private",
10081
+ "default": "null",
10151
10082
  "inheritedFrom": {
10152
- "name": "<local>_BaseDatasource",
10153
- "module": "src/utils/base-datasource.ts"
10083
+ "name": "DataGridCell",
10084
+ "module": "src/data-grid/data-grid-cell.ts"
10154
10085
  }
10155
10086
  },
10156
10087
  {
10157
- "kind": "field",
10158
- "name": "reverse",
10159
- "type": {
10160
- "text": "boolean"
10088
+ "kind": "method",
10089
+ "name": "handleFocusin",
10090
+ "privacy": "public",
10091
+ "return": {
10092
+ "type": {
10093
+ "text": "void"
10094
+ }
10161
10095
  },
10162
- "default": "false",
10096
+ "parameters": [
10097
+ {
10098
+ "name": "e",
10099
+ "type": {
10100
+ "text": "FocusEvent"
10101
+ }
10102
+ }
10103
+ ],
10163
10104
  "inheritedFrom": {
10164
- "name": "<local>_BaseDatasource",
10165
- "module": "src/utils/base-datasource.ts"
10105
+ "name": "DataGridCell",
10106
+ "module": "src/data-grid/data-grid-cell.ts"
10166
10107
  }
10167
10108
  },
10168
10109
  {
10169
- "kind": "field",
10170
- "name": "rowId",
10171
- "type": {
10172
- "text": "string"
10110
+ "kind": "method",
10111
+ "name": "handleFocusout",
10112
+ "privacy": "public",
10113
+ "return": {
10114
+ "type": {
10115
+ "text": "void"
10116
+ }
10173
10117
  },
10174
- "default": "'ROW_REF'",
10118
+ "parameters": [
10119
+ {
10120
+ "name": "e",
10121
+ "type": {
10122
+ "text": "FocusEvent"
10123
+ }
10124
+ }
10125
+ ],
10175
10126
  "inheritedFrom": {
10176
- "name": "<local>_BaseDatasource",
10177
- "module": "src/utils/base-datasource.ts"
10127
+ "name": "DataGridCell",
10128
+ "module": "src/data-grid/data-grid-cell.ts"
10178
10129
  }
10179
10130
  },
10180
10131
  {
10181
- "kind": "field",
10182
- "name": "withTimestampFormatting",
10183
- "type": {
10184
- "text": "boolean"
10185
- },
10186
- "default": "true",
10187
- "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
10132
+ "kind": "method",
10133
+ "name": "handleKeydown",
10188
10134
  "privacy": "public",
10135
+ "return": {
10136
+ "type": {
10137
+ "text": "void"
10138
+ }
10139
+ },
10140
+ "parameters": [
10141
+ {
10142
+ "name": "e",
10143
+ "type": {
10144
+ "text": "KeyboardEvent"
10145
+ }
10146
+ }
10147
+ ],
10189
10148
  "inheritedFrom": {
10190
- "name": "<local>_BaseDatasource",
10191
- "module": "src/utils/base-datasource.ts"
10149
+ "name": "DataGridCell",
10150
+ "module": "src/data-grid/data-grid-cell.ts"
10192
10151
  }
10193
10152
  },
10194
10153
  {
10195
- "kind": "field",
10196
- "name": "datasourceConfig",
10154
+ "kind": "method",
10155
+ "name": "updateCellView",
10156
+ "privacy": "private",
10157
+ "return": {
10158
+ "type": {
10159
+ "text": "void"
10160
+ }
10161
+ },
10197
10162
  "inheritedFrom": {
10198
- "name": "<local>_BaseDatasource",
10199
- "module": "src/utils/base-datasource.ts"
10163
+ "name": "DataGridCell",
10164
+ "module": "src/data-grid/data-grid-cell.ts"
10200
10165
  }
10201
10166
  },
10202
10167
  {
10203
- "kind": "field",
10204
- "name": "requiresFullDataRefresh",
10205
- "type": {
10206
- "text": "boolean"
10168
+ "kind": "method",
10169
+ "name": "disconnectCellView",
10170
+ "privacy": "private",
10171
+ "return": {
10172
+ "type": {
10173
+ "text": "void"
10174
+ }
10207
10175
  },
10208
- "privacy": "public",
10209
- "default": "true",
10210
10176
  "inheritedFrom": {
10211
- "name": "<local>_BaseDatasource",
10212
- "module": "src/utils/base-datasource.ts"
10177
+ "name": "DataGridCell",
10178
+ "module": "src/data-grid/data-grid-cell.ts"
10213
10179
  }
10214
10180
  },
10215
10181
  {
10216
10182
  "kind": "field",
10217
- "name": "dataSub",
10218
- "type": {
10219
- "text": "Subscription"
10220
- },
10221
- "privacy": "public",
10183
+ "name": "updateCellStyle",
10184
+ "privacy": "private",
10222
10185
  "inheritedFrom": {
10223
- "name": "<local>_BaseDatasource",
10224
- "module": "src/utils/base-datasource.ts"
10186
+ "name": "DataGridCell",
10187
+ "module": "src/data-grid/data-grid-cell.ts"
10225
10188
  }
10226
10189
  },
10227
10190
  {
10228
10191
  "kind": "field",
10229
- "name": "sourceRef",
10192
+ "name": "_presentation",
10230
10193
  "type": {
10231
- "text": "string"
10194
+ "text": "ComponentPresentation | null | undefined"
10232
10195
  },
10233
10196
  "privacy": "private",
10197
+ "default": "void 0",
10234
10198
  "inheritedFrom": {
10235
- "name": "<local>_BaseDatasource",
10236
- "module": "src/utils/base-datasource.ts"
10199
+ "name": "FoundationElement",
10200
+ "module": "src/foundation-element/foundation-element.ts"
10237
10201
  }
10238
10202
  },
10239
10203
  {
10240
10204
  "kind": "field",
10241
- "name": "rowsSyncedWithStream",
10205
+ "name": "$presentation",
10242
10206
  "type": {
10243
- "text": "Map<string, any>"
10207
+ "text": "ComponentPresentation | null"
10244
10208
  },
10245
10209
  "privacy": "public",
10246
- "default": "new Map()",
10210
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
10247
10211
  "inheritedFrom": {
10248
- "name": "<local>_BaseDatasource",
10249
- "module": "src/utils/base-datasource.ts"
10212
+ "name": "FoundationElement",
10213
+ "module": "src/foundation-element/foundation-element.ts"
10250
10214
  }
10251
10215
  },
10252
10216
  {
10253
10217
  "kind": "field",
10254
- "name": "dataSubWasLoggedOff",
10218
+ "name": "template",
10255
10219
  "type": {
10256
- "text": "boolean"
10220
+ "text": "ElementViewTemplate | void | null"
10257
10221
  },
10258
10222
  "privacy": "public",
10259
- "default": "false",
10223
+ "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.",
10260
10224
  "inheritedFrom": {
10261
- "name": "<local>_BaseDatasource",
10262
- "module": "src/utils/base-datasource.ts"
10225
+ "name": "FoundationElement",
10226
+ "module": "src/foundation-element/foundation-element.ts"
10263
10227
  }
10264
10228
  },
10265
10229
  {
10266
- "kind": "field",
10267
- "name": "criteriaFromFilters",
10268
- "type": {
10269
- "text": "Map<string, string>"
10230
+ "kind": "method",
10231
+ "name": "templateChanged",
10232
+ "privacy": "protected",
10233
+ "return": {
10234
+ "type": {
10235
+ "text": "void"
10236
+ }
10270
10237
  },
10271
- "privacy": "private",
10272
- "default": "new Map()",
10273
10238
  "inheritedFrom": {
10274
- "name": "<local>_BaseDatasource",
10275
- "module": "src/utils/base-datasource.ts"
10239
+ "name": "FoundationElement",
10240
+ "module": "src/foundation-element/foundation-element.ts"
10276
10241
  }
10277
10242
  },
10278
10243
  {
10279
10244
  "kind": "field",
10280
- "name": "update",
10245
+ "name": "styles",
10281
10246
  "type": {
10282
- "text": "BehaviorSubject<Map<string, string>>"
10247
+ "text": "ElementStyles | void | null"
10283
10248
  },
10284
10249
  "privacy": "public",
10285
- "default": "new BehaviorSubject(new Map())",
10250
+ "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.",
10286
10251
  "inheritedFrom": {
10287
- "name": "<local>_BaseDatasource",
10288
- "module": "src/utils/base-datasource.ts"
10252
+ "name": "FoundationElement",
10253
+ "module": "src/foundation-element/foundation-element.ts"
10289
10254
  }
10290
10255
  },
10291
10256
  {
10292
10257
  "kind": "method",
10293
- "name": "reset",
10258
+ "name": "stylesChanged",
10259
+ "privacy": "protected",
10260
+ "return": {
10261
+ "type": {
10262
+ "text": "void"
10263
+ }
10264
+ },
10294
10265
  "inheritedFrom": {
10295
- "name": "<local>_BaseDatasource",
10296
- "module": "src/utils/base-datasource.ts"
10266
+ "name": "FoundationElement",
10267
+ "module": "src/foundation-element/foundation-element.ts"
10297
10268
  }
10298
10269
  },
10299
10270
  {
10300
10271
  "kind": "method",
10301
- "name": "fetchGenesisData",
10272
+ "name": "compose",
10302
10273
  "privacy": "public",
10274
+ "static": true,
10275
+ "return": {
10276
+ "type": {
10277
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
10278
+ }
10279
+ },
10303
10280
  "parameters": [
10304
10281
  {
10305
- "name": "withFullInit",
10306
- "default": "true"
10282
+ "name": "this",
10283
+ "type": {
10284
+ "text": "K"
10285
+ }
10286
+ },
10287
+ {
10288
+ "name": "elementDefinition",
10289
+ "type": {
10290
+ "text": "T"
10291
+ },
10292
+ "description": "The definition of the element to create the registry\nfunction for."
10307
10293
  }
10308
10294
  ],
10295
+ "description": "Defines an element registry function with a set of element definition defaults.",
10309
10296
  "inheritedFrom": {
10310
- "name": "<local>_BaseDatasource",
10311
- "module": "src/utils/base-datasource.ts"
10297
+ "name": "FoundationElement",
10298
+ "module": "src/foundation-element/foundation-element.ts"
10312
10299
  }
10313
- },
10300
+ }
10301
+ ],
10302
+ "events": [
10314
10303
  {
10315
- "kind": "method",
10316
- "name": "initDatasource",
10317
- "privacy": "public",
10304
+ "description": "Fires a custom 'cell-focused' event when focus is on the cell or its contents",
10305
+ "name": "cell-focused",
10318
10306
  "inheritedFrom": {
10319
- "name": "<local>_BaseDatasource",
10320
- "module": "src/utils/base-datasource.ts"
10307
+ "name": "DataGridCell",
10308
+ "module": "src/data-grid/data-grid-cell.ts"
10321
10309
  }
10310
+ }
10311
+ ]
10312
+ },
10313
+ {
10314
+ "kind": "variable",
10315
+ "name": "foundationDataGridCellShadowOptions",
10316
+ "type": {
10317
+ "text": "ShadowRootInit"
10318
+ },
10319
+ "default": "undefined"
10320
+ },
10321
+ {
10322
+ "kind": "variable",
10323
+ "name": "defaultDataGridCellConfig",
10324
+ "type": {
10325
+ "text": "object"
10326
+ },
10327
+ "default": "{}"
10328
+ },
10329
+ {
10330
+ "kind": "variable",
10331
+ "name": "foundationDataGridCell",
10332
+ "description": "The Foundation Data Grid Cell Element.",
10333
+ "privacy": "public"
10334
+ }
10335
+ ],
10336
+ "exports": [
10337
+ {
10338
+ "kind": "js",
10339
+ "name": "foundationDataGridCellTemplate",
10340
+ "declaration": {
10341
+ "name": "dataGridCellTemplate",
10342
+ "package": "@microsoft/fast-foundation"
10343
+ }
10344
+ },
10345
+ {
10346
+ "kind": "js",
10347
+ "name": "DataGridCell",
10348
+ "declaration": {
10349
+ "name": "DataGridCell",
10350
+ "module": "src/data-grid-cell/data-grid.cell.ts"
10351
+ }
10352
+ },
10353
+ {
10354
+ "kind": "js",
10355
+ "name": "foundationDataGridCellShadowOptions",
10356
+ "declaration": {
10357
+ "name": "foundationDataGridCellShadowOptions",
10358
+ "module": "src/data-grid-cell/data-grid.cell.ts"
10359
+ }
10360
+ },
10361
+ {
10362
+ "kind": "js",
10363
+ "name": "defaultDataGridCellConfig",
10364
+ "declaration": {
10365
+ "name": "defaultDataGridCellConfig",
10366
+ "module": "src/data-grid-cell/data-grid.cell.ts"
10367
+ }
10368
+ },
10369
+ {
10370
+ "kind": "js",
10371
+ "name": "foundationDataGridCell",
10372
+ "declaration": {
10373
+ "name": "foundationDataGridCell",
10374
+ "module": "src/data-grid-cell/data-grid.cell.ts"
10375
+ }
10376
+ }
10377
+ ]
10378
+ },
10379
+ {
10380
+ "kind": "javascript-module",
10381
+ "path": "src/data-grid-cell/index.ts",
10382
+ "declarations": [],
10383
+ "exports": [
10384
+ {
10385
+ "kind": "js",
10386
+ "name": "*",
10387
+ "declaration": {
10388
+ "name": "*",
10389
+ "package": "./data-grid.cell"
10390
+ }
10391
+ },
10392
+ {
10393
+ "kind": "js",
10394
+ "name": "*",
10395
+ "declaration": {
10396
+ "name": "*",
10397
+ "package": "./data-grid-cell.styles"
10398
+ }
10399
+ }
10400
+ ]
10401
+ },
10402
+ {
10403
+ "kind": "javascript-module",
10404
+ "path": "src/data-grid-datasource/data-grid-datasource.ts",
10405
+ "declarations": [
10406
+ {
10407
+ "kind": "class",
10408
+ "description": "",
10409
+ "name": "DataGridDatasource",
10410
+ "members": [
10411
+ {
10412
+ "kind": "field",
10413
+ "name": "dataGrid",
10414
+ "type": {
10415
+ "text": "DataGrid"
10416
+ },
10417
+ "privacy": "private"
10322
10418
  },
10323
10419
  {
10324
- "kind": "method",
10325
- "name": "datasourceOptions",
10326
- "privacy": "private",
10327
- "return": {
10328
- "type": {
10329
- "text": "DatasourceOptions"
10330
- }
10420
+ "kind": "field",
10421
+ "name": "isSnapshot",
10422
+ "type": {
10423
+ "text": "boolean"
10331
10424
  },
10425
+ "default": "true",
10426
+ "privacy": "public",
10332
10427
  "inheritedFrom": {
10333
10428
  "name": "<local>_BaseDatasource",
10334
10429
  "module": "src/utils/base-datasource.ts"
@@ -10336,33 +10431,25 @@
10336
10431
  },
10337
10432
  {
10338
10433
  "kind": "method",
10339
- "name": "handleStreamUpdate",
10434
+ "name": "getColumnDefs",
10340
10435
  "privacy": "private",
10341
10436
  "parameters": [
10342
10437
  {
10343
- "name": "result",
10438
+ "name": "fieldsMetadata",
10344
10439
  "type": {
10345
- "text": "FilteredDataServerResult | RequestServerResult"
10440
+ "text": "FieldMetadata[]"
10346
10441
  }
10347
10442
  }
10348
- ],
10349
- "inheritedFrom": {
10350
- "name": "<local>_BaseDatasource",
10351
- "module": "src/utils/base-datasource.ts"
10352
- }
10443
+ ]
10353
10444
  },
10354
10445
  {
10355
10446
  "kind": "method",
10356
- "name": "applyRequestServerData",
10357
- "privacy": "public",
10358
- "parameters": [
10359
- {
10360
- "name": "requestServerResult",
10361
- "type": {
10362
- "text": "RequestServerResult"
10363
- }
10447
+ "name": "clearData",
10448
+ "return": {
10449
+ "type": {
10450
+ "text": "void"
10364
10451
  }
10365
- ],
10452
+ },
10366
10453
  "inheritedFrom": {
10367
10454
  "name": "<local>_BaseDatasource",
10368
10455
  "module": "src/utils/base-datasource.ts"
@@ -10370,13 +10457,18 @@
10370
10457
  },
10371
10458
  {
10372
10459
  "kind": "method",
10373
- "name": "applyDataserverData",
10374
- "privacy": "public",
10460
+ "name": "syncComponentData",
10461
+ "return": {
10462
+ "type": {
10463
+ "text": "void"
10464
+ }
10465
+ },
10375
10466
  "parameters": [
10376
10467
  {
10377
- "name": "dataServerResult",
10468
+ "name": "snapshotData",
10469
+ "optional": true,
10378
10470
  "type": {
10379
- "text": "FilteredDataServerResult"
10471
+ "text": "any[]"
10380
10472
  }
10381
10473
  }
10382
10474
  ],
@@ -10387,13 +10479,20 @@
10387
10479
  },
10388
10480
  {
10389
10481
  "kind": "method",
10390
- "name": "buildCriteria",
10391
- "privacy": "private",
10482
+ "name": "handleStreamInserts",
10392
10483
  "return": {
10393
10484
  "type": {
10394
- "text": "string"
10485
+ "text": "void"
10395
10486
  }
10396
10487
  },
10488
+ "parameters": [
10489
+ {
10490
+ "name": "insertedRows",
10491
+ "type": {
10492
+ "text": "any[]"
10493
+ }
10494
+ }
10495
+ ],
10397
10496
  "inheritedFrom": {
10398
10497
  "name": "<local>_BaseDatasource",
10399
10498
  "module": "src/utils/base-datasource.ts"
@@ -10401,19 +10500,17 @@
10401
10500
  },
10402
10501
  {
10403
10502
  "kind": "method",
10404
- "name": "setFilter",
10405
- "privacy": "public",
10503
+ "name": "handleStreamDeletes",
10504
+ "return": {
10505
+ "type": {
10506
+ "text": "void"
10507
+ }
10508
+ },
10406
10509
  "parameters": [
10407
10510
  {
10408
- "name": "fieldName",
10409
- "type": {
10410
- "text": "string"
10411
- }
10412
- },
10413
- {
10414
- "name": "newFilter",
10511
+ "name": "deletedRows",
10415
10512
  "type": {
10416
- "text": "string"
10513
+ "text": "any[]"
10417
10514
  }
10418
10515
  }
10419
10516
  ],
@@ -10424,13 +10521,17 @@
10424
10521
  },
10425
10522
  {
10426
10523
  "kind": "method",
10427
- "name": "removeFilter",
10428
- "privacy": "public",
10524
+ "name": "handleStreamUpdates",
10525
+ "return": {
10526
+ "type": {
10527
+ "text": "void"
10528
+ }
10529
+ },
10429
10530
  "parameters": [
10430
10531
  {
10431
- "name": "fieldName",
10532
+ "name": "updatedRows",
10432
10533
  "type": {
10433
- "text": "string"
10534
+ "text": "any[]"
10434
10535
  }
10435
10536
  }
10436
10537
  ],
@@ -10441,577 +10542,432 @@
10441
10542
  },
10442
10543
  {
10443
10544
  "kind": "field",
10444
- "name": "_presentation",
10545
+ "name": "connect",
10445
10546
  "type": {
10446
- "text": "ComponentPresentation | null | undefined"
10547
+ "text": "Connect"
10447
10548
  },
10448
- "privacy": "private",
10449
- "default": "void 0",
10450
10549
  "inheritedFrom": {
10451
- "name": "FoundationElement",
10452
- "module": "src/foundation-element/foundation-element.ts"
10550
+ "name": "<local>_BaseDatasource",
10551
+ "module": "src/utils/base-datasource.ts"
10453
10552
  }
10454
10553
  },
10455
10554
  {
10456
10555
  "kind": "field",
10457
- "name": "$presentation",
10556
+ "name": "datasource",
10458
10557
  "type": {
10459
- "text": "ComponentPresentation | null"
10558
+ "text": "Datasource"
10460
10559
  },
10461
- "privacy": "public",
10462
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
10463
10560
  "inheritedFrom": {
10464
- "name": "FoundationElement",
10465
- "module": "src/foundation-element/foundation-element.ts"
10561
+ "name": "<local>_BaseDatasource",
10562
+ "module": "src/utils/base-datasource.ts"
10466
10563
  }
10467
10564
  },
10468
10565
  {
10469
10566
  "kind": "field",
10470
- "name": "template",
10567
+ "name": "withGridInit",
10471
10568
  "type": {
10472
- "text": "ElementViewTemplate | void | null"
10473
- },
10474
- "privacy": "public",
10475
- "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.",
10476
- "inheritedFrom": {
10477
- "name": "FoundationElement",
10478
- "module": "src/foundation-element/foundation-element.ts"
10479
- }
10480
- },
10481
- {
10482
- "kind": "method",
10483
- "name": "templateChanged",
10484
- "privacy": "protected",
10485
- "return": {
10486
- "type": {
10487
- "text": "void"
10488
- }
10569
+ "text": "boolean"
10489
10570
  },
10571
+ "default": "true",
10490
10572
  "inheritedFrom": {
10491
- "name": "FoundationElement",
10492
- "module": "src/foundation-element/foundation-element.ts"
10573
+ "name": "<local>_BaseDatasource",
10574
+ "module": "src/utils/base-datasource.ts"
10493
10575
  }
10494
10576
  },
10495
10577
  {
10496
10578
  "kind": "field",
10497
- "name": "styles",
10579
+ "name": "criteria",
10498
10580
  "type": {
10499
- "text": "ElementStyles | void | null"
10500
- },
10501
- "privacy": "public",
10502
- "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.",
10503
- "inheritedFrom": {
10504
- "name": "FoundationElement",
10505
- "module": "src/foundation-element/foundation-element.ts"
10506
- }
10507
- },
10508
- {
10509
- "kind": "method",
10510
- "name": "stylesChanged",
10511
- "privacy": "protected",
10512
- "return": {
10513
- "type": {
10514
- "text": "void"
10515
- }
10581
+ "text": "string"
10516
10582
  },
10517
10583
  "inheritedFrom": {
10518
- "name": "FoundationElement",
10519
- "module": "src/foundation-element/foundation-element.ts"
10584
+ "name": "<local>_BaseDatasource",
10585
+ "module": "src/utils/base-datasource.ts"
10520
10586
  }
10521
10587
  },
10522
10588
  {
10523
10589
  "kind": "method",
10524
- "name": "compose",
10525
- "privacy": "public",
10526
- "static": true,
10527
- "return": {
10528
- "type": {
10529
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
10530
- }
10531
- },
10590
+ "name": "criteriaChanged",
10532
10591
  "parameters": [
10533
10592
  {
10534
- "name": "this",
10593
+ "name": "oldCriteria",
10535
10594
  "type": {
10536
- "text": "K"
10595
+ "text": "string"
10537
10596
  }
10538
10597
  },
10539
10598
  {
10540
- "name": "elementDefinition",
10599
+ "name": "newCriteria",
10541
10600
  "type": {
10542
- "text": "T"
10543
- },
10544
- "description": "The definition of the element to create the registry\nfunction for."
10601
+ "text": "string"
10602
+ }
10545
10603
  }
10546
10604
  ],
10547
- "description": "Defines an element registry function with a set of element definition defaults.",
10548
- "inheritedFrom": {
10549
- "name": "FoundationElement",
10550
- "module": "src/foundation-element/foundation-element.ts"
10551
- }
10552
- }
10553
- ],
10554
- "superclass": {
10555
- "name": "BaseDatasource",
10556
- "module": "/src/utils"
10557
- },
10558
- "attributes": [
10559
- {
10560
- "type": {
10561
- "text": "boolean"
10562
- },
10563
- "default": "true",
10564
- "fieldName": "withGridInit",
10565
10605
  "inheritedFrom": {
10566
10606
  "name": "<local>_BaseDatasource",
10567
10607
  "module": "src/utils/base-datasource.ts"
10568
10608
  }
10569
10609
  },
10570
10610
  {
10571
- "name": "criteria",
10611
+ "kind": "field",
10612
+ "name": "data",
10572
10613
  "type": {
10573
- "text": "string"
10614
+ "text": "any[]"
10574
10615
  },
10575
- "fieldName": "criteria",
10576
10616
  "inheritedFrom": {
10577
10617
  "name": "<local>_BaseDatasource",
10578
10618
  "module": "src/utils/base-datasource.ts"
10579
10619
  }
10580
10620
  },
10581
10621
  {
10622
+ "kind": "field",
10582
10623
  "name": "fields",
10583
10624
  "type": {
10584
10625
  "text": "string"
10585
10626
  },
10586
- "fieldName": "fields",
10587
10627
  "inheritedFrom": {
10588
10628
  "name": "<local>_BaseDatasource",
10589
10629
  "module": "src/utils/base-datasource.ts"
10590
10630
  }
10591
10631
  },
10592
10632
  {
10633
+ "kind": "field",
10593
10634
  "name": "maxRows",
10594
10635
  "type": {
10595
10636
  "text": "number"
10596
10637
  },
10597
- "fieldName": "maxRows",
10598
10638
  "inheritedFrom": {
10599
10639
  "name": "<local>_BaseDatasource",
10600
10640
  "module": "src/utils/base-datasource.ts"
10601
10641
  }
10602
10642
  },
10603
10643
  {
10644
+ "kind": "field",
10604
10645
  "name": "maxView",
10605
10646
  "type": {
10606
10647
  "text": "number"
10607
10648
  },
10608
- "fieldName": "maxView",
10609
10649
  "inheritedFrom": {
10610
10650
  "name": "<local>_BaseDatasource",
10611
10651
  "module": "src/utils/base-datasource.ts"
10612
10652
  }
10613
10653
  },
10614
10654
  {
10655
+ "kind": "field",
10615
10656
  "name": "orderBy",
10616
10657
  "type": {
10617
10658
  "text": "string"
10618
10659
  },
10619
- "fieldName": "orderBy",
10620
- "inheritedFrom": {
10621
- "name": "<local>_BaseDatasource",
10622
- "module": "src/utils/base-datasource.ts"
10623
- }
10624
- },
10625
- {
10626
- "name": "resourceName",
10627
- "type": {
10628
- "text": "string"
10629
- },
10630
- "fieldName": "resourceName",
10631
- "inheritedFrom": {
10632
- "name": "<local>_BaseDatasource",
10633
- "module": "src/utils/base-datasource.ts"
10634
- }
10635
- },
10636
- {
10637
- "name": "rowId",
10638
- "type": {
10639
- "text": "string"
10640
- },
10641
- "default": "'ROW_REF'",
10642
- "fieldName": "rowId",
10643
10660
  "inheritedFrom": {
10644
10661
  "name": "<local>_BaseDatasource",
10645
10662
  "module": "src/utils/base-datasource.ts"
10646
10663
  }
10647
10664
  },
10648
10665
  {
10649
- "name": "with-timestamp-formatting",
10666
+ "kind": "field",
10667
+ "name": "request",
10650
10668
  "type": {
10651
- "text": "boolean"
10669
+ "text": "any"
10652
10670
  },
10653
- "default": "true",
10654
- "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
10655
- "fieldName": "withTimestampFormatting",
10656
- "inheritedFrom": {
10657
- "name": "<local>_BaseDatasource",
10658
- "module": "src/utils/base-datasource.ts"
10659
- }
10660
- }
10661
- ]
10662
- }
10663
- ],
10664
- "exports": [
10665
- {
10666
- "kind": "js",
10667
- "name": "DataGridDatasource",
10668
- "declaration": {
10669
- "name": "DataGridDatasource",
10670
- "module": "src/data-grid-datasource/data-grid-datasource.ts"
10671
- }
10672
- },
10673
- {
10674
- "kind": "custom-element-definition",
10675
- "name": "data-grid-datasource",
10676
- "declaration": {
10677
- "name": "DataGridDatasource",
10678
- "module": "src/data-grid-datasource/data-grid-datasource.ts"
10679
- }
10680
- }
10681
- ]
10682
- },
10683
- {
10684
- "kind": "javascript-module",
10685
- "path": "src/data-grid-datasource/index.ts",
10686
- "declarations": [],
10687
- "exports": [
10688
- {
10689
- "kind": "js",
10690
- "name": "*",
10691
- "declaration": {
10692
- "name": "*",
10693
- "package": "./data-grid-datasource"
10694
- }
10695
- }
10696
- ]
10697
- },
10698
- {
10699
- "kind": "javascript-module",
10700
- "path": "src/data-grid-cell/data-grid-cell.styles.ts",
10701
- "declarations": [
10702
- {
10703
- "kind": "function",
10704
- "name": "foundationDataGridCellStyles",
10705
- "return": {
10706
- "type": {
10707
- "text": "ElementStyles"
10708
- }
10709
- },
10710
- "parameters": [
10711
- {
10712
- "name": "context",
10713
- "type": {
10714
- "text": "ElementDefinitionContext"
10671
+ "inheritedFrom": {
10672
+ "name": "<local>_BaseDatasource",
10673
+ "module": "src/utils/base-datasource.ts"
10715
10674
  }
10716
10675
  },
10717
10676
  {
10718
- "name": "defintion",
10677
+ "kind": "field",
10678
+ "name": "resourceName",
10719
10679
  "type": {
10720
- "text": "FoundationElementDefinition"
10680
+ "text": "string"
10681
+ },
10682
+ "inheritedFrom": {
10683
+ "name": "<local>_BaseDatasource",
10684
+ "module": "src/utils/base-datasource.ts"
10721
10685
  }
10722
- }
10723
- ]
10724
- }
10725
- ],
10726
- "exports": [
10727
- {
10728
- "kind": "js",
10729
- "name": "foundationDataGridCellStyles",
10730
- "declaration": {
10731
- "name": "foundationDataGridCellStyles",
10732
- "module": "src/data-grid-cell/data-grid-cell.styles.ts"
10733
- }
10734
- }
10735
- ]
10736
- },
10737
- {
10738
- "kind": "javascript-module",
10739
- "path": "src/data-grid-cell/data-grid.cell.ts",
10740
- "declarations": [
10741
- {
10742
- "kind": "class",
10743
- "description": "",
10744
- "name": "DataGridCell",
10745
- "superclass": {
10746
- "name": "FASTDataGridCell",
10747
- "package": "@microsoft/fast-components"
10748
- },
10749
- "tagName": "%%prefix%%-data-grid-cell",
10750
- "customElement": true,
10751
- "attributes": [
10686
+ },
10752
10687
  {
10753
- "name": "cell-type",
10688
+ "kind": "field",
10689
+ "name": "reverse",
10754
10690
  "type": {
10755
- "text": "DataGridCellTypes"
10691
+ "text": "boolean"
10756
10692
  },
10757
- "description": "The type of cell",
10758
- "fieldName": "cellType",
10693
+ "default": "false",
10759
10694
  "inheritedFrom": {
10760
- "name": "DataGridCell",
10761
- "module": "src/data-grid/data-grid-cell.ts"
10695
+ "name": "<local>_BaseDatasource",
10696
+ "module": "src/utils/base-datasource.ts"
10762
10697
  }
10763
10698
  },
10764
10699
  {
10765
- "name": "grid-column",
10700
+ "kind": "field",
10701
+ "name": "rowId",
10766
10702
  "type": {
10767
10703
  "text": "string"
10768
10704
  },
10769
- "description": "The column index of the cell.\nThis will be applied to the css grid-column-index value\napplied to the cell",
10770
- "fieldName": "gridColumn",
10705
+ "default": "'ROW_REF'",
10771
10706
  "inheritedFrom": {
10772
- "name": "DataGridCell",
10773
- "module": "src/data-grid/data-grid-cell.ts"
10707
+ "name": "<local>_BaseDatasource",
10708
+ "module": "src/utils/base-datasource.ts"
10774
10709
  }
10775
- }
10776
- ],
10777
- "members": [
10710
+ },
10778
10711
  {
10779
10712
  "kind": "field",
10780
- "name": "cellType",
10713
+ "name": "withTimestampFormatting",
10781
10714
  "type": {
10782
- "text": "DataGridCellTypes"
10715
+ "text": "boolean"
10783
10716
  },
10717
+ "default": "true",
10718
+ "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
10784
10719
  "privacy": "public",
10785
- "description": "The type of cell",
10786
10720
  "inheritedFrom": {
10787
- "name": "DataGridCell",
10788
- "module": "src/data-grid/data-grid-cell.ts"
10721
+ "name": "<local>_BaseDatasource",
10722
+ "module": "src/utils/base-datasource.ts"
10789
10723
  }
10790
10724
  },
10791
10725
  {
10792
- "kind": "method",
10793
- "name": "cellTypeChanged",
10794
- "privacy": "private",
10795
- "return": {
10796
- "type": {
10797
- "text": "void"
10798
- }
10799
- },
10726
+ "kind": "field",
10727
+ "name": "datasourceConfig",
10800
10728
  "inheritedFrom": {
10801
- "name": "DataGridCell",
10802
- "module": "src/data-grid/data-grid-cell.ts"
10729
+ "name": "<local>_BaseDatasource",
10730
+ "module": "src/utils/base-datasource.ts"
10803
10731
  }
10804
10732
  },
10805
10733
  {
10806
10734
  "kind": "field",
10807
- "name": "gridColumn",
10735
+ "name": "requiresFullDataRefresh",
10808
10736
  "type": {
10809
- "text": "string"
10737
+ "text": "boolean"
10810
10738
  },
10811
10739
  "privacy": "public",
10812
- "description": "The column index of the cell.\nThis will be applied to the css grid-column-index value\napplied to the cell",
10740
+ "default": "true",
10813
10741
  "inheritedFrom": {
10814
- "name": "DataGridCell",
10815
- "module": "src/data-grid/data-grid-cell.ts"
10742
+ "name": "<local>_BaseDatasource",
10743
+ "module": "src/utils/base-datasource.ts"
10816
10744
  }
10817
10745
  },
10818
10746
  {
10819
- "kind": "method",
10820
- "name": "gridColumnChanged",
10821
- "privacy": "private",
10822
- "return": {
10823
- "type": {
10824
- "text": "void"
10825
- }
10747
+ "kind": "field",
10748
+ "name": "dataSub",
10749
+ "type": {
10750
+ "text": "Subscription"
10826
10751
  },
10752
+ "privacy": "public",
10827
10753
  "inheritedFrom": {
10828
- "name": "DataGridCell",
10829
- "module": "src/data-grid/data-grid-cell.ts"
10754
+ "name": "<local>_BaseDatasource",
10755
+ "module": "src/utils/base-datasource.ts"
10830
10756
  }
10831
10757
  },
10832
10758
  {
10833
10759
  "kind": "field",
10834
- "name": "rowData",
10760
+ "name": "sourceRef",
10835
10761
  "type": {
10836
- "text": "object | null"
10762
+ "text": "string"
10837
10763
  },
10838
- "privacy": "public",
10839
- "default": "null",
10840
- "description": "The base data for the parent row",
10764
+ "privacy": "private",
10841
10765
  "inheritedFrom": {
10842
- "name": "DataGridCell",
10843
- "module": "src/data-grid/data-grid-cell.ts"
10766
+ "name": "<local>_BaseDatasource",
10767
+ "module": "src/utils/base-datasource.ts"
10844
10768
  }
10845
10769
  },
10846
10770
  {
10847
10771
  "kind": "field",
10848
- "name": "columnDefinition",
10772
+ "name": "rowsSyncedWithStream",
10849
10773
  "type": {
10850
- "text": "ColumnDefinition | null"
10774
+ "text": "Map<string, any>"
10851
10775
  },
10852
10776
  "privacy": "public",
10853
- "default": "null",
10854
- "description": "The base data for the column",
10777
+ "default": "new Map()",
10855
10778
  "inheritedFrom": {
10856
- "name": "DataGridCell",
10857
- "module": "src/data-grid/data-grid-cell.ts"
10779
+ "name": "<local>_BaseDatasource",
10780
+ "module": "src/utils/base-datasource.ts"
10858
10781
  }
10859
10782
  },
10860
10783
  {
10861
- "kind": "method",
10862
- "name": "columnDefinitionChanged",
10863
- "privacy": "private",
10864
- "return": {
10865
- "type": {
10866
- "text": "void"
10867
- }
10784
+ "kind": "field",
10785
+ "name": "dataSubWasLoggedOff",
10786
+ "type": {
10787
+ "text": "boolean"
10868
10788
  },
10869
- "parameters": [
10870
- {
10871
- "name": "oldValue",
10872
- "type": {
10873
- "text": "ColumnDefinition | null"
10874
- }
10875
- },
10876
- {
10877
- "name": "newValue",
10878
- "type": {
10879
- "text": "ColumnDefinition | null"
10880
- }
10881
- }
10882
- ],
10789
+ "privacy": "public",
10790
+ "default": "false",
10883
10791
  "inheritedFrom": {
10884
- "name": "DataGridCell",
10885
- "module": "src/data-grid/data-grid-cell.ts"
10792
+ "name": "<local>_BaseDatasource",
10793
+ "module": "src/utils/base-datasource.ts"
10886
10794
  }
10887
10795
  },
10888
10796
  {
10889
10797
  "kind": "field",
10890
- "name": "isActiveCell",
10798
+ "name": "criteriaFromFilters",
10891
10799
  "type": {
10892
- "text": "boolean"
10800
+ "text": "Map<string, string>"
10893
10801
  },
10894
10802
  "privacy": "private",
10895
- "default": "false",
10803
+ "default": "new Map()",
10896
10804
  "inheritedFrom": {
10897
- "name": "DataGridCell",
10898
- "module": "src/data-grid/data-grid-cell.ts"
10805
+ "name": "<local>_BaseDatasource",
10806
+ "module": "src/utils/base-datasource.ts"
10899
10807
  }
10900
10808
  },
10901
10809
  {
10902
10810
  "kind": "field",
10903
- "name": "customCellView",
10811
+ "name": "update",
10904
10812
  "type": {
10905
- "text": "HTMLView | null"
10813
+ "text": "BehaviorSubject<Map<string, string>>"
10906
10814
  },
10907
- "privacy": "private",
10908
- "default": "null",
10815
+ "privacy": "public",
10816
+ "default": "new BehaviorSubject(new Map())",
10909
10817
  "inheritedFrom": {
10910
- "name": "DataGridCell",
10911
- "module": "src/data-grid/data-grid-cell.ts"
10818
+ "name": "<local>_BaseDatasource",
10819
+ "module": "src/utils/base-datasource.ts"
10912
10820
  }
10913
10821
  },
10914
10822
  {
10915
10823
  "kind": "method",
10916
- "name": "handleFocusin",
10824
+ "name": "reset",
10825
+ "inheritedFrom": {
10826
+ "name": "<local>_BaseDatasource",
10827
+ "module": "src/utils/base-datasource.ts"
10828
+ }
10829
+ },
10830
+ {
10831
+ "kind": "method",
10832
+ "name": "fetchGenesisData",
10833
+ "privacy": "public",
10834
+ "parameters": [
10835
+ {
10836
+ "name": "withFullInit",
10837
+ "default": "true"
10838
+ }
10839
+ ],
10840
+ "inheritedFrom": {
10841
+ "name": "<local>_BaseDatasource",
10842
+ "module": "src/utils/base-datasource.ts"
10843
+ }
10844
+ },
10845
+ {
10846
+ "kind": "method",
10847
+ "name": "initDatasource",
10917
10848
  "privacy": "public",
10849
+ "inheritedFrom": {
10850
+ "name": "<local>_BaseDatasource",
10851
+ "module": "src/utils/base-datasource.ts"
10852
+ }
10853
+ },
10854
+ {
10855
+ "kind": "method",
10856
+ "name": "datasourceOptions",
10857
+ "privacy": "private",
10918
10858
  "return": {
10919
10859
  "type": {
10920
- "text": "void"
10860
+ "text": "DatasourceOptions"
10921
10861
  }
10922
10862
  },
10863
+ "inheritedFrom": {
10864
+ "name": "<local>_BaseDatasource",
10865
+ "module": "src/utils/base-datasource.ts"
10866
+ }
10867
+ },
10868
+ {
10869
+ "kind": "method",
10870
+ "name": "handleStreamUpdate",
10871
+ "privacy": "private",
10923
10872
  "parameters": [
10924
10873
  {
10925
- "name": "e",
10874
+ "name": "result",
10926
10875
  "type": {
10927
- "text": "FocusEvent"
10876
+ "text": "FilteredDataServerResult | RequestServerResult"
10928
10877
  }
10929
10878
  }
10930
10879
  ],
10931
10880
  "inheritedFrom": {
10932
- "name": "DataGridCell",
10933
- "module": "src/data-grid/data-grid-cell.ts"
10881
+ "name": "<local>_BaseDatasource",
10882
+ "module": "src/utils/base-datasource.ts"
10934
10883
  }
10935
10884
  },
10936
10885
  {
10937
10886
  "kind": "method",
10938
- "name": "handleFocusout",
10939
- "privacy": "public",
10940
- "return": {
10941
- "type": {
10942
- "text": "void"
10943
- }
10944
- },
10887
+ "name": "applyRequestServerData",
10888
+ "privacy": "public",
10945
10889
  "parameters": [
10946
10890
  {
10947
- "name": "e",
10891
+ "name": "requestServerResult",
10948
10892
  "type": {
10949
- "text": "FocusEvent"
10893
+ "text": "RequestServerResult"
10950
10894
  }
10951
10895
  }
10952
10896
  ],
10953
10897
  "inheritedFrom": {
10954
- "name": "DataGridCell",
10955
- "module": "src/data-grid/data-grid-cell.ts"
10898
+ "name": "<local>_BaseDatasource",
10899
+ "module": "src/utils/base-datasource.ts"
10956
10900
  }
10957
10901
  },
10958
10902
  {
10959
10903
  "kind": "method",
10960
- "name": "handleKeydown",
10904
+ "name": "applyDataserverData",
10961
10905
  "privacy": "public",
10962
- "return": {
10963
- "type": {
10964
- "text": "void"
10965
- }
10966
- },
10967
10906
  "parameters": [
10968
10907
  {
10969
- "name": "e",
10908
+ "name": "dataServerResult",
10970
10909
  "type": {
10971
- "text": "KeyboardEvent"
10910
+ "text": "FilteredDataServerResult"
10972
10911
  }
10973
10912
  }
10974
10913
  ],
10975
10914
  "inheritedFrom": {
10976
- "name": "DataGridCell",
10977
- "module": "src/data-grid/data-grid-cell.ts"
10915
+ "name": "<local>_BaseDatasource",
10916
+ "module": "src/utils/base-datasource.ts"
10978
10917
  }
10979
10918
  },
10980
10919
  {
10981
10920
  "kind": "method",
10982
- "name": "updateCellView",
10921
+ "name": "buildCriteria",
10983
10922
  "privacy": "private",
10984
10923
  "return": {
10985
10924
  "type": {
10986
- "text": "void"
10925
+ "text": "string"
10987
10926
  }
10988
10927
  },
10989
10928
  "inheritedFrom": {
10990
- "name": "DataGridCell",
10991
- "module": "src/data-grid/data-grid-cell.ts"
10929
+ "name": "<local>_BaseDatasource",
10930
+ "module": "src/utils/base-datasource.ts"
10992
10931
  }
10993
10932
  },
10994
10933
  {
10995
10934
  "kind": "method",
10996
- "name": "disconnectCellView",
10997
- "privacy": "private",
10998
- "return": {
10999
- "type": {
11000
- "text": "void"
10935
+ "name": "setFilter",
10936
+ "privacy": "public",
10937
+ "parameters": [
10938
+ {
10939
+ "name": "fieldName",
10940
+ "type": {
10941
+ "text": "string"
10942
+ }
10943
+ },
10944
+ {
10945
+ "name": "newFilter",
10946
+ "type": {
10947
+ "text": "string"
10948
+ }
11001
10949
  }
11002
- },
10950
+ ],
11003
10951
  "inheritedFrom": {
11004
- "name": "DataGridCell",
11005
- "module": "src/data-grid/data-grid-cell.ts"
10952
+ "name": "<local>_BaseDatasource",
10953
+ "module": "src/utils/base-datasource.ts"
11006
10954
  }
11007
10955
  },
11008
10956
  {
11009
- "kind": "field",
11010
- "name": "updateCellStyle",
11011
- "privacy": "private",
10957
+ "kind": "method",
10958
+ "name": "removeFilter",
10959
+ "privacy": "public",
10960
+ "parameters": [
10961
+ {
10962
+ "name": "fieldName",
10963
+ "type": {
10964
+ "text": "string"
10965
+ }
10966
+ }
10967
+ ],
11012
10968
  "inheritedFrom": {
11013
- "name": "DataGridCell",
11014
- "module": "src/data-grid/data-grid-cell.ts"
10969
+ "name": "<local>_BaseDatasource",
10970
+ "module": "src/utils/base-datasource.ts"
11015
10971
  }
11016
10972
  },
11017
10973
  {
@@ -11126,86 +11082,138 @@
11126
11082
  }
11127
11083
  }
11128
11084
  ],
11129
- "events": [
11085
+ "superclass": {
11086
+ "name": "BaseDatasource",
11087
+ "module": "/src/utils"
11088
+ },
11089
+ "attributes": [
11130
11090
  {
11131
- "description": "Fires a custom 'cell-focused' event when focus is on the cell or its contents",
11132
- "name": "cell-focused",
11091
+ "type": {
11092
+ "text": "boolean"
11093
+ },
11094
+ "default": "true",
11095
+ "fieldName": "withGridInit",
11133
11096
  "inheritedFrom": {
11134
- "name": "DataGridCell",
11135
- "module": "src/data-grid/data-grid-cell.ts"
11097
+ "name": "<local>_BaseDatasource",
11098
+ "module": "src/utils/base-datasource.ts"
11099
+ }
11100
+ },
11101
+ {
11102
+ "name": "criteria",
11103
+ "type": {
11104
+ "text": "string"
11105
+ },
11106
+ "fieldName": "criteria",
11107
+ "inheritedFrom": {
11108
+ "name": "<local>_BaseDatasource",
11109
+ "module": "src/utils/base-datasource.ts"
11110
+ }
11111
+ },
11112
+ {
11113
+ "name": "fields",
11114
+ "type": {
11115
+ "text": "string"
11116
+ },
11117
+ "fieldName": "fields",
11118
+ "inheritedFrom": {
11119
+ "name": "<local>_BaseDatasource",
11120
+ "module": "src/utils/base-datasource.ts"
11121
+ }
11122
+ },
11123
+ {
11124
+ "name": "maxRows",
11125
+ "type": {
11126
+ "text": "number"
11127
+ },
11128
+ "fieldName": "maxRows",
11129
+ "inheritedFrom": {
11130
+ "name": "<local>_BaseDatasource",
11131
+ "module": "src/utils/base-datasource.ts"
11132
+ }
11133
+ },
11134
+ {
11135
+ "name": "maxView",
11136
+ "type": {
11137
+ "text": "number"
11138
+ },
11139
+ "fieldName": "maxView",
11140
+ "inheritedFrom": {
11141
+ "name": "<local>_BaseDatasource",
11142
+ "module": "src/utils/base-datasource.ts"
11143
+ }
11144
+ },
11145
+ {
11146
+ "name": "orderBy",
11147
+ "type": {
11148
+ "text": "string"
11149
+ },
11150
+ "fieldName": "orderBy",
11151
+ "inheritedFrom": {
11152
+ "name": "<local>_BaseDatasource",
11153
+ "module": "src/utils/base-datasource.ts"
11154
+ }
11155
+ },
11156
+ {
11157
+ "name": "resourceName",
11158
+ "type": {
11159
+ "text": "string"
11160
+ },
11161
+ "fieldName": "resourceName",
11162
+ "inheritedFrom": {
11163
+ "name": "<local>_BaseDatasource",
11164
+ "module": "src/utils/base-datasource.ts"
11165
+ }
11166
+ },
11167
+ {
11168
+ "name": "rowId",
11169
+ "type": {
11170
+ "text": "string"
11171
+ },
11172
+ "default": "'ROW_REF'",
11173
+ "fieldName": "rowId",
11174
+ "inheritedFrom": {
11175
+ "name": "<local>_BaseDatasource",
11176
+ "module": "src/utils/base-datasource.ts"
11177
+ }
11178
+ },
11179
+ {
11180
+ "name": "with-timestamp-formatting",
11181
+ "type": {
11182
+ "text": "boolean"
11183
+ },
11184
+ "default": "true",
11185
+ "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
11186
+ "fieldName": "withTimestampFormatting",
11187
+ "inheritedFrom": {
11188
+ "name": "<local>_BaseDatasource",
11189
+ "module": "src/utils/base-datasource.ts"
11136
11190
  }
11137
11191
  }
11138
11192
  ]
11139
- },
11140
- {
11141
- "kind": "variable",
11142
- "name": "foundationDataGridCellShadowOptions",
11143
- "type": {
11144
- "text": "ShadowRootInit"
11145
- },
11146
- "default": "undefined"
11147
- },
11148
- {
11149
- "kind": "variable",
11150
- "name": "defaultDataGridCellConfig",
11151
- "type": {
11152
- "text": "object"
11153
- },
11154
- "default": "{}"
11155
- },
11156
- {
11157
- "kind": "variable",
11158
- "name": "foundationDataGridCell",
11159
- "description": "The Foundation Data Grid Cell Element.",
11160
- "privacy": "public"
11161
11193
  }
11162
11194
  ],
11163
11195
  "exports": [
11164
11196
  {
11165
11197
  "kind": "js",
11166
- "name": "foundationDataGridCellTemplate",
11167
- "declaration": {
11168
- "name": "dataGridCellTemplate",
11169
- "package": "@microsoft/fast-foundation"
11170
- }
11171
- },
11172
- {
11173
- "kind": "js",
11174
- "name": "DataGridCell",
11175
- "declaration": {
11176
- "name": "DataGridCell",
11177
- "module": "src/data-grid-cell/data-grid.cell.ts"
11178
- }
11179
- },
11180
- {
11181
- "kind": "js",
11182
- "name": "foundationDataGridCellShadowOptions",
11183
- "declaration": {
11184
- "name": "foundationDataGridCellShadowOptions",
11185
- "module": "src/data-grid-cell/data-grid.cell.ts"
11186
- }
11187
- },
11188
- {
11189
- "kind": "js",
11190
- "name": "defaultDataGridCellConfig",
11198
+ "name": "DataGridDatasource",
11191
11199
  "declaration": {
11192
- "name": "defaultDataGridCellConfig",
11193
- "module": "src/data-grid-cell/data-grid.cell.ts"
11200
+ "name": "DataGridDatasource",
11201
+ "module": "src/data-grid-datasource/data-grid-datasource.ts"
11194
11202
  }
11195
11203
  },
11196
11204
  {
11197
- "kind": "js",
11198
- "name": "foundationDataGridCell",
11205
+ "kind": "custom-element-definition",
11206
+ "name": "data-grid-datasource",
11199
11207
  "declaration": {
11200
- "name": "foundationDataGridCell",
11201
- "module": "src/data-grid-cell/data-grid.cell.ts"
11208
+ "name": "DataGridDatasource",
11209
+ "module": "src/data-grid-datasource/data-grid-datasource.ts"
11202
11210
  }
11203
11211
  }
11204
11212
  ]
11205
11213
  },
11206
11214
  {
11207
11215
  "kind": "javascript-module",
11208
- "path": "src/data-grid-cell/index.ts",
11216
+ "path": "src/data-grid-datasource/index.ts",
11209
11217
  "declarations": [],
11210
11218
  "exports": [
11211
11219
  {
@@ -11213,15 +11221,7 @@
11213
11221
  "name": "*",
11214
11222
  "declaration": {
11215
11223
  "name": "*",
11216
- "package": "./data-grid.cell"
11217
- }
11218
- },
11219
- {
11220
- "kind": "js",
11221
- "name": "*",
11222
- "declaration": {
11223
- "name": "*",
11224
- "package": "./data-grid-cell.styles"
11224
+ "package": "./data-grid-datasource"
11225
11225
  }
11226
11226
  }
11227
11227
  ]