@genesislcap/foundation-ui 14.138.1-beta.ce4b104.1 → 14.138.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14115,89 +14115,251 @@
14115
14115
  },
14116
14116
  {
14117
14117
  "kind": "javascript-module",
14118
- "path": "src/error-banner/error-banner.template.ts",
14118
+ "path": "src/dropdown-menu/dropdown-menu.styles.ts",
14119
14119
  "declarations": [
14120
14120
  {
14121
14121
  "kind": "function",
14122
- "name": "getPrefixedErrorBanner",
14122
+ "name": "dropdownMenuBaseStyles",
14123
+ "return": {
14124
+ "type": {
14125
+ "text": "ElementStyles"
14126
+ }
14127
+ },
14123
14128
  "parameters": [
14124
14129
  {
14125
14130
  "name": "prefix",
14126
14131
  "type": {
14127
14132
  "text": "string"
14128
14133
  }
14134
+ },
14135
+ {
14136
+ "name": "context",
14137
+ "type": {
14138
+ "text": "ElementDefinitionContext"
14139
+ }
14140
+ },
14141
+ {
14142
+ "name": "definition",
14143
+ "type": {
14144
+ "text": "FoundationElementDefinition"
14145
+ }
14129
14146
  }
14130
14147
  ]
14131
14148
  },
14132
14149
  {
14133
- "kind": "variable",
14134
- "name": "foundationErrorBannerTemplate",
14135
- "default": "html<ErrorBanner>`\n ${(x) => getPrefixedErrorBanner(getPrefix(x))}\n`"
14150
+ "kind": "function",
14151
+ "name": "foundationDropdownMenuStyles",
14152
+ "return": {
14153
+ "type": {
14154
+ "text": "ElementStyles"
14155
+ }
14156
+ },
14157
+ "parameters": [
14158
+ {
14159
+ "name": "context",
14160
+ "type": {
14161
+ "text": "ElementDefinitionContext"
14162
+ }
14163
+ },
14164
+ {
14165
+ "name": "definition",
14166
+ "type": {
14167
+ "text": "FoundationElementDefinition"
14168
+ }
14169
+ }
14170
+ ]
14136
14171
  }
14137
14172
  ],
14138
14173
  "exports": [
14139
14174
  {
14140
14175
  "kind": "js",
14141
- "name": "getPrefixedErrorBanner",
14176
+ "name": "dropdownMenuBaseStyles",
14142
14177
  "declaration": {
14143
- "name": "getPrefixedErrorBanner",
14144
- "module": "src/error-banner/error-banner.template.ts"
14178
+ "name": "dropdownMenuBaseStyles",
14179
+ "module": "src/dropdown-menu/dropdown-menu.styles.ts"
14145
14180
  }
14146
14181
  },
14147
14182
  {
14148
14183
  "kind": "js",
14149
- "name": "foundationErrorBannerTemplate",
14184
+ "name": "foundationDropdownMenuStyles",
14150
14185
  "declaration": {
14151
- "name": "foundationErrorBannerTemplate",
14152
- "module": "src/error-banner/error-banner.template.ts"
14186
+ "name": "foundationDropdownMenuStyles",
14187
+ "module": "src/dropdown-menu/dropdown-menu.styles.ts"
14153
14188
  }
14154
14189
  }
14155
14190
  ]
14156
14191
  },
14157
14192
  {
14158
14193
  "kind": "javascript-module",
14159
- "path": "src/error-banner/error-banner.ts",
14194
+ "path": "src/dropdown-menu/dropdown-menu.template.ts",
14160
14195
  "declarations": [
14196
+ {
14197
+ "kind": "function",
14198
+ "name": "extractMenuItems",
14199
+ "parameters": [
14200
+ {
14201
+ "name": "items",
14202
+ "type": {
14203
+ "text": "DropdownMenuItem[]"
14204
+ }
14205
+ },
14206
+ {
14207
+ "name": "prefix",
14208
+ "type": {
14209
+ "text": "string"
14210
+ }
14211
+ }
14212
+ ]
14213
+ },
14214
+ {
14215
+ "kind": "function",
14216
+ "name": "getDropdownMenuTemplate",
14217
+ "parameters": [
14218
+ {
14219
+ "name": "prefix"
14220
+ }
14221
+ ]
14222
+ },
14161
14223
  {
14162
14224
  "kind": "variable",
14163
- "name": "foundationErrorBannerShadowOptions",
14164
- "type": {
14165
- "text": "ShadowRootInit"
14166
- },
14167
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
14225
+ "name": "foundationDropdownMenuTemplate",
14226
+ "default": "html<DropdownMenu>`\n ${(x) => getDropdownMenuTemplate(getPrefix(x))}\n`"
14227
+ }
14228
+ ],
14229
+ "exports": [
14230
+ {
14231
+ "kind": "js",
14232
+ "name": "extractMenuItems",
14233
+ "declaration": {
14234
+ "name": "extractMenuItems",
14235
+ "module": "src/dropdown-menu/dropdown-menu.template.ts"
14236
+ }
14237
+ },
14238
+ {
14239
+ "kind": "js",
14240
+ "name": "getDropdownMenuTemplate",
14241
+ "declaration": {
14242
+ "name": "getDropdownMenuTemplate",
14243
+ "module": "src/dropdown-menu/dropdown-menu.template.ts"
14244
+ }
14168
14245
  },
14246
+ {
14247
+ "kind": "js",
14248
+ "name": "foundationDropdownMenuTemplate",
14249
+ "declaration": {
14250
+ "name": "foundationDropdownMenuTemplate",
14251
+ "module": "src/dropdown-menu/dropdown-menu.template.ts"
14252
+ }
14253
+ }
14254
+ ]
14255
+ },
14256
+ {
14257
+ "kind": "javascript-module",
14258
+ "path": "src/dropdown-menu/dropdown-menu.ts",
14259
+ "declarations": [
14169
14260
  {
14170
14261
  "kind": "class",
14171
14262
  "description": "",
14172
- "name": "ErrorBanner",
14263
+ "name": "DropdownMenu",
14173
14264
  "members": [
14174
14265
  {
14175
14266
  "kind": "field",
14176
- "name": "banner",
14267
+ "name": "items",
14177
14268
  "type": {
14178
- "text": "HTMLElement & { dismiss: () => Promise<void> }"
14269
+ "text": "DropdownMenuItem[]"
14270
+ }
14271
+ },
14272
+ {
14273
+ "kind": "field",
14274
+ "name": "autoClose",
14275
+ "type": {
14276
+ "text": "boolean"
14179
14277
  },
14180
- "privacy": "public"
14278
+ "default": "true"
14181
14279
  },
14182
14280
  {
14183
14281
  "kind": "field",
14184
- "name": "error",
14282
+ "name": "disabled",
14185
14283
  "type": {
14186
- "text": "ErrorStructure"
14284
+ "text": "boolean"
14285
+ },
14286
+ "default": "false"
14287
+ },
14288
+ {
14289
+ "kind": "field",
14290
+ "name": "classNames",
14291
+ "type": {
14292
+ "text": "string"
14187
14293
  }
14188
14294
  },
14189
14295
  {
14190
14296
  "kind": "field",
14191
- "name": "notification",
14297
+ "name": "name",
14192
14298
  "type": {
14193
- "text": "NotificationStructure"
14299
+ "text": "string"
14300
+ },
14301
+ "default": "'Dropdown Menu'"
14302
+ },
14303
+ {
14304
+ "kind": "field",
14305
+ "name": "open",
14306
+ "type": {
14307
+ "text": "boolean"
14308
+ },
14309
+ "default": "false"
14310
+ },
14311
+ {
14312
+ "kind": "field",
14313
+ "name": "buttonAppearance",
14314
+ "type": {
14315
+ "text": "string"
14316
+ }
14317
+ },
14318
+ {
14319
+ "kind": "field",
14320
+ "name": "dropdownMenu",
14321
+ "type": {
14322
+ "text": "HTMLElement"
14194
14323
  }
14195
14324
  },
14325
+ {
14326
+ "kind": "field",
14327
+ "name": "clickOutside",
14328
+ "privacy": "private"
14329
+ },
14196
14330
  {
14197
14331
  "kind": "method",
14198
- "name": "dismiss",
14199
- "privacy": "public",
14200
- "description": "Dismiss the Error Banner from display."
14332
+ "name": "handleClickOutside",
14333
+ "privacy": "private",
14334
+ "parameters": [
14335
+ {
14336
+ "name": "event",
14337
+ "type": {
14338
+ "text": "MouseEvent"
14339
+ }
14340
+ }
14341
+ ]
14342
+ },
14343
+ {
14344
+ "kind": "method",
14345
+ "name": "openChanged",
14346
+ "privacy": "protected"
14347
+ },
14348
+ {
14349
+ "kind": "method",
14350
+ "name": "toggleDropdownMenuVisibility"
14351
+ },
14352
+ {
14353
+ "kind": "method",
14354
+ "name": "onDropdownMenuItemClick"
14355
+ },
14356
+ {
14357
+ "kind": "field",
14358
+ "name": "allItems",
14359
+ "type": {
14360
+ "text": "DropdownMenuItem[]"
14361
+ },
14362
+ "readonly": true
14201
14363
  },
14202
14364
  {
14203
14365
  "kind": "field",
@@ -14311,161 +14473,119 @@
14311
14473
  }
14312
14474
  }
14313
14475
  ],
14314
- "superclass": {
14315
- "name": "FoundationElement",
14316
- "package": "@microsoft/fast-foundation"
14317
- },
14318
- "tagName": "%%prefix%%-error-banner",
14319
- "deprecated": "true",
14320
- "customElement": true
14321
- },
14322
- {
14323
- "kind": "variable",
14324
- "name": "foundationErrorBanner",
14325
- "description": "The Foundation Error Banner",
14326
- "privacy": "public"
14327
- }
14328
- ],
14329
- "exports": [
14330
- {
14331
- "kind": "js",
14332
- "name": "foundationErrorBannerShadowOptions",
14333
- "declaration": {
14334
- "name": "foundationErrorBannerShadowOptions",
14335
- "module": "src/error-banner/error-banner.ts"
14336
- }
14337
- },
14338
- {
14339
- "kind": "js",
14340
- "name": "ErrorBanner",
14341
- "declaration": {
14342
- "name": "ErrorBanner",
14343
- "module": "src/error-banner/error-banner.ts"
14344
- }
14345
- },
14346
- {
14347
- "kind": "js",
14348
- "name": "foundationErrorBanner",
14349
- "declaration": {
14350
- "name": "foundationErrorBanner",
14351
- "module": "src/error-banner/error-banner.ts"
14352
- }
14476
+ "attributes": [
14477
+ {
14478
+ "name": "auto-close",
14479
+ "type": {
14480
+ "text": "boolean"
14481
+ },
14482
+ "default": "true",
14483
+ "fieldName": "autoClose"
14484
+ },
14485
+ {
14486
+ "name": "disable-button",
14487
+ "type": {
14488
+ "text": "boolean"
14489
+ },
14490
+ "default": "false",
14491
+ "fieldName": "disabled"
14492
+ },
14493
+ {
14494
+ "name": "name",
14495
+ "type": {
14496
+ "text": "string"
14497
+ },
14498
+ "default": "'Dropdown Menu'",
14499
+ "fieldName": "name"
14500
+ },
14501
+ {
14502
+ "name": "open",
14503
+ "type": {
14504
+ "text": "boolean"
14505
+ },
14506
+ "default": "false",
14507
+ "fieldName": "open"
14508
+ },
14509
+ {
14510
+ "name": "buttonAppearance",
14511
+ "type": {
14512
+ "text": "string"
14513
+ },
14514
+ "fieldName": "buttonAppearance"
14515
+ }
14516
+ ],
14517
+ "superclass": {
14518
+ "name": "FoundationElement",
14519
+ "package": "@microsoft/fast-foundation"
14520
+ },
14521
+ "tagName": "%%prefix%%-dropdown-menu",
14522
+ "customElement": true
14523
+ },
14524
+ {
14525
+ "kind": "variable",
14526
+ "name": "foundationDropdownMenu",
14527
+ "description": "The Foundation Dropdown Menu",
14528
+ "privacy": "public"
14353
14529
  }
14354
- ]
14355
- },
14356
- {
14357
- "kind": "javascript-module",
14358
- "path": "src/error-banner/index.ts",
14359
- "declarations": [],
14530
+ ],
14360
14531
  "exports": [
14361
14532
  {
14362
14533
  "kind": "js",
14363
- "name": "*",
14534
+ "name": "DropdownMenu",
14364
14535
  "declaration": {
14365
- "name": "*",
14366
- "package": "./error-banner.template"
14536
+ "name": "DropdownMenu",
14537
+ "module": "src/dropdown-menu/dropdown-menu.ts"
14367
14538
  }
14368
14539
  },
14369
14540
  {
14370
14541
  "kind": "js",
14371
- "name": "*",
14542
+ "name": "foundationDropdownMenu",
14372
14543
  "declaration": {
14373
- "name": "*",
14374
- "package": "./error-banner"
14544
+ "name": "foundationDropdownMenu",
14545
+ "module": "src/dropdown-menu/dropdown-menu.ts"
14375
14546
  }
14376
14547
  }
14377
14548
  ]
14378
14549
  },
14379
14550
  {
14380
14551
  "kind": "javascript-module",
14381
- "path": "src/dropdown-menu/dropdown-menu.styles.ts",
14382
- "declarations": [
14552
+ "path": "src/dropdown-menu/index.ts",
14553
+ "declarations": [],
14554
+ "exports": [
14383
14555
  {
14384
- "kind": "function",
14385
- "name": "dropdownMenuBaseStyles",
14386
- "return": {
14387
- "type": {
14388
- "text": "ElementStyles"
14389
- }
14390
- },
14391
- "parameters": [
14392
- {
14393
- "name": "prefix",
14394
- "type": {
14395
- "text": "string"
14396
- }
14397
- },
14398
- {
14399
- "name": "context",
14400
- "type": {
14401
- "text": "ElementDefinitionContext"
14402
- }
14403
- },
14404
- {
14405
- "name": "definition",
14406
- "type": {
14407
- "text": "FoundationElementDefinition"
14408
- }
14409
- }
14410
- ]
14556
+ "kind": "js",
14557
+ "name": "*",
14558
+ "declaration": {
14559
+ "name": "*",
14560
+ "package": "./dropdown-menu.styles"
14561
+ }
14411
14562
  },
14412
- {
14413
- "kind": "function",
14414
- "name": "foundationDropdownMenuStyles",
14415
- "return": {
14416
- "type": {
14417
- "text": "ElementStyles"
14418
- }
14419
- },
14420
- "parameters": [
14421
- {
14422
- "name": "context",
14423
- "type": {
14424
- "text": "ElementDefinitionContext"
14425
- }
14426
- },
14427
- {
14428
- "name": "definition",
14429
- "type": {
14430
- "text": "FoundationElementDefinition"
14431
- }
14432
- }
14433
- ]
14434
- }
14435
- ],
14436
- "exports": [
14437
14563
  {
14438
14564
  "kind": "js",
14439
- "name": "dropdownMenuBaseStyles",
14565
+ "name": "*",
14440
14566
  "declaration": {
14441
- "name": "dropdownMenuBaseStyles",
14442
- "module": "src/dropdown-menu/dropdown-menu.styles.ts"
14567
+ "name": "*",
14568
+ "package": "./dropdown-menu.template"
14443
14569
  }
14444
14570
  },
14445
14571
  {
14446
14572
  "kind": "js",
14447
- "name": "foundationDropdownMenuStyles",
14573
+ "name": "*",
14448
14574
  "declaration": {
14449
- "name": "foundationDropdownMenuStyles",
14450
- "module": "src/dropdown-menu/dropdown-menu.styles.ts"
14575
+ "name": "*",
14576
+ "package": "./dropdown-menu"
14451
14577
  }
14452
14578
  }
14453
14579
  ]
14454
14580
  },
14455
14581
  {
14456
14582
  "kind": "javascript-module",
14457
- "path": "src/dropdown-menu/dropdown-menu.template.ts",
14583
+ "path": "src/error-banner/error-banner.template.ts",
14458
14584
  "declarations": [
14459
14585
  {
14460
14586
  "kind": "function",
14461
- "name": "extractMenuItems",
14587
+ "name": "getPrefixedErrorBanner",
14462
14588
  "parameters": [
14463
- {
14464
- "name": "items",
14465
- "type": {
14466
- "text": "DropdownMenuItem[]"
14467
- }
14468
- },
14469
14589
  {
14470
14590
  "name": "prefix",
14471
14591
  "type": {
@@ -14474,181 +14594,101 @@
14474
14594
  }
14475
14595
  ]
14476
14596
  },
14477
- {
14478
- "kind": "function",
14479
- "name": "getDropdownMenuTemplate",
14480
- "parameters": [
14481
- {
14482
- "name": "prefix"
14483
- }
14484
- ]
14485
- },
14486
14597
  {
14487
14598
  "kind": "variable",
14488
- "name": "foundationDropdownMenuTemplate",
14489
- "default": "html<DropdownMenu>`\n ${(x) => getDropdownMenuTemplate(getPrefix(x))}\n`"
14599
+ "name": "foundationErrorBannerTemplate",
14600
+ "default": "html<ErrorBanner>`\n ${(x) => getPrefixedErrorBanner(getPrefix(x))}\n`"
14490
14601
  }
14491
14602
  ],
14492
14603
  "exports": [
14493
14604
  {
14494
14605
  "kind": "js",
14495
- "name": "extractMenuItems",
14496
- "declaration": {
14497
- "name": "extractMenuItems",
14498
- "module": "src/dropdown-menu/dropdown-menu.template.ts"
14499
- }
14500
- },
14501
- {
14502
- "kind": "js",
14503
- "name": "getDropdownMenuTemplate",
14606
+ "name": "getPrefixedErrorBanner",
14504
14607
  "declaration": {
14505
- "name": "getDropdownMenuTemplate",
14506
- "module": "src/dropdown-menu/dropdown-menu.template.ts"
14608
+ "name": "getPrefixedErrorBanner",
14609
+ "module": "src/error-banner/error-banner.template.ts"
14507
14610
  }
14508
14611
  },
14509
14612
  {
14510
14613
  "kind": "js",
14511
- "name": "foundationDropdownMenuTemplate",
14614
+ "name": "foundationErrorBannerTemplate",
14512
14615
  "declaration": {
14513
- "name": "foundationDropdownMenuTemplate",
14514
- "module": "src/dropdown-menu/dropdown-menu.template.ts"
14616
+ "name": "foundationErrorBannerTemplate",
14617
+ "module": "src/error-banner/error-banner.template.ts"
14515
14618
  }
14516
14619
  }
14517
14620
  ]
14518
14621
  },
14519
14622
  {
14520
14623
  "kind": "javascript-module",
14521
- "path": "src/dropdown-menu/dropdown-menu.ts",
14624
+ "path": "src/error-banner/error-banner.ts",
14522
14625
  "declarations": [
14626
+ {
14627
+ "kind": "variable",
14628
+ "name": "foundationErrorBannerShadowOptions",
14629
+ "type": {
14630
+ "text": "ShadowRootInit"
14631
+ },
14632
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
14633
+ },
14523
14634
  {
14524
14635
  "kind": "class",
14525
14636
  "description": "",
14526
- "name": "DropdownMenu",
14637
+ "name": "ErrorBanner",
14527
14638
  "members": [
14528
14639
  {
14529
14640
  "kind": "field",
14530
- "name": "items",
14531
- "type": {
14532
- "text": "DropdownMenuItem[]"
14533
- }
14534
- },
14535
- {
14536
- "kind": "field",
14537
- "name": "autoClose",
14641
+ "name": "banner",
14538
14642
  "type": {
14539
- "text": "boolean"
14643
+ "text": "HTMLElement & { dismiss: () => Promise<void> }"
14540
14644
  },
14541
- "default": "true"
14645
+ "privacy": "public"
14542
14646
  },
14543
14647
  {
14544
14648
  "kind": "field",
14545
- "name": "disabled",
14649
+ "name": "error",
14546
14650
  "type": {
14547
- "text": "boolean"
14548
- },
14549
- "default": "false"
14651
+ "text": "ErrorStructure"
14652
+ }
14550
14653
  },
14551
14654
  {
14552
14655
  "kind": "field",
14553
- "name": "classNames",
14656
+ "name": "notification",
14554
14657
  "type": {
14555
- "text": "string"
14658
+ "text": "NotificationStructure"
14556
14659
  }
14557
14660
  },
14661
+ {
14662
+ "kind": "method",
14663
+ "name": "dismiss",
14664
+ "privacy": "public",
14665
+ "description": "Dismiss the Error Banner from display."
14666
+ },
14558
14667
  {
14559
14668
  "kind": "field",
14560
- "name": "name",
14669
+ "name": "_presentation",
14561
14670
  "type": {
14562
- "text": "string"
14671
+ "text": "ComponentPresentation | null | undefined"
14563
14672
  },
14564
- "default": "'Dropdown Menu'"
14673
+ "privacy": "private",
14674
+ "default": "void 0",
14675
+ "inheritedFrom": {
14676
+ "name": "FoundationElement",
14677
+ "module": "src/foundation-element/foundation-element.ts"
14678
+ }
14565
14679
  },
14566
14680
  {
14567
14681
  "kind": "field",
14568
- "name": "open",
14682
+ "name": "$presentation",
14569
14683
  "type": {
14570
- "text": "boolean"
14684
+ "text": "ComponentPresentation | null"
14571
14685
  },
14572
- "default": "false"
14573
- },
14574
- {
14575
- "kind": "field",
14576
- "name": "buttonAppearance",
14577
- "type": {
14578
- "text": "string"
14579
- }
14580
- },
14581
- {
14582
- "kind": "field",
14583
- "name": "dropdownMenu",
14584
- "type": {
14585
- "text": "HTMLElement"
14586
- }
14587
- },
14588
- {
14589
- "kind": "field",
14590
- "name": "clickOutside",
14591
- "privacy": "private"
14592
- },
14593
- {
14594
- "kind": "method",
14595
- "name": "handleClickOutside",
14596
- "privacy": "private",
14597
- "parameters": [
14598
- {
14599
- "name": "event",
14600
- "type": {
14601
- "text": "MouseEvent"
14602
- }
14603
- }
14604
- ]
14605
- },
14606
- {
14607
- "kind": "method",
14608
- "name": "openChanged",
14609
- "privacy": "protected"
14610
- },
14611
- {
14612
- "kind": "method",
14613
- "name": "toggleDropdownMenuVisibility"
14614
- },
14615
- {
14616
- "kind": "method",
14617
- "name": "onDropdownMenuItemClick"
14618
- },
14619
- {
14620
- "kind": "field",
14621
- "name": "allItems",
14622
- "type": {
14623
- "text": "DropdownMenuItem[]"
14624
- },
14625
- "readonly": true
14626
- },
14627
- {
14628
- "kind": "field",
14629
- "name": "_presentation",
14630
- "type": {
14631
- "text": "ComponentPresentation | null | undefined"
14632
- },
14633
- "privacy": "private",
14634
- "default": "void 0",
14635
- "inheritedFrom": {
14636
- "name": "FoundationElement",
14637
- "module": "src/foundation-element/foundation-element.ts"
14638
- }
14639
- },
14640
- {
14641
- "kind": "field",
14642
- "name": "$presentation",
14643
- "type": {
14644
- "text": "ComponentPresentation | null"
14645
- },
14646
- "privacy": "public",
14647
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
14648
- "inheritedFrom": {
14649
- "name": "FoundationElement",
14650
- "module": "src/foundation-element/foundation-element.ts"
14651
- }
14686
+ "privacy": "public",
14687
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
14688
+ "inheritedFrom": {
14689
+ "name": "FoundationElement",
14690
+ "module": "src/foundation-element/foundation-element.ts"
14691
+ }
14652
14692
  },
14653
14693
  {
14654
14694
  "kind": "field",
@@ -14736,83 +14776,51 @@
14736
14776
  }
14737
14777
  }
14738
14778
  ],
14739
- "attributes": [
14740
- {
14741
- "name": "auto-close",
14742
- "type": {
14743
- "text": "boolean"
14744
- },
14745
- "default": "true",
14746
- "fieldName": "autoClose"
14747
- },
14748
- {
14749
- "name": "disable-button",
14750
- "type": {
14751
- "text": "boolean"
14752
- },
14753
- "default": "false",
14754
- "fieldName": "disabled"
14755
- },
14756
- {
14757
- "name": "name",
14758
- "type": {
14759
- "text": "string"
14760
- },
14761
- "default": "'Dropdown Menu'",
14762
- "fieldName": "name"
14763
- },
14764
- {
14765
- "name": "open",
14766
- "type": {
14767
- "text": "boolean"
14768
- },
14769
- "default": "false",
14770
- "fieldName": "open"
14771
- },
14772
- {
14773
- "name": "buttonAppearance",
14774
- "type": {
14775
- "text": "string"
14776
- },
14777
- "fieldName": "buttonAppearance"
14778
- }
14779
- ],
14780
14779
  "superclass": {
14781
14780
  "name": "FoundationElement",
14782
14781
  "package": "@microsoft/fast-foundation"
14783
14782
  },
14784
- "tagName": "%%prefix%%-dropdown-menu",
14783
+ "tagName": "%%prefix%%-error-banner",
14784
+ "deprecated": "true",
14785
14785
  "customElement": true
14786
14786
  },
14787
14787
  {
14788
14788
  "kind": "variable",
14789
- "name": "foundationDropdownMenu",
14790
- "description": "The Foundation Dropdown Menu",
14789
+ "name": "foundationErrorBanner",
14790
+ "description": "The Foundation Error Banner",
14791
14791
  "privacy": "public"
14792
14792
  }
14793
14793
  ],
14794
14794
  "exports": [
14795
14795
  {
14796
14796
  "kind": "js",
14797
- "name": "DropdownMenu",
14797
+ "name": "foundationErrorBannerShadowOptions",
14798
14798
  "declaration": {
14799
- "name": "DropdownMenu",
14800
- "module": "src/dropdown-menu/dropdown-menu.ts"
14799
+ "name": "foundationErrorBannerShadowOptions",
14800
+ "module": "src/error-banner/error-banner.ts"
14801
14801
  }
14802
14802
  },
14803
14803
  {
14804
14804
  "kind": "js",
14805
- "name": "foundationDropdownMenu",
14805
+ "name": "ErrorBanner",
14806
14806
  "declaration": {
14807
- "name": "foundationDropdownMenu",
14808
- "module": "src/dropdown-menu/dropdown-menu.ts"
14807
+ "name": "ErrorBanner",
14808
+ "module": "src/error-banner/error-banner.ts"
14809
+ }
14810
+ },
14811
+ {
14812
+ "kind": "js",
14813
+ "name": "foundationErrorBanner",
14814
+ "declaration": {
14815
+ "name": "foundationErrorBanner",
14816
+ "module": "src/error-banner/error-banner.ts"
14809
14817
  }
14810
14818
  }
14811
14819
  ]
14812
14820
  },
14813
14821
  {
14814
14822
  "kind": "javascript-module",
14815
- "path": "src/dropdown-menu/index.ts",
14823
+ "path": "src/error-banner/index.ts",
14816
14824
  "declarations": [],
14817
14825
  "exports": [
14818
14826
  {
@@ -14820,15 +14828,7 @@
14820
14828
  "name": "*",
14821
14829
  "declaration": {
14822
14830
  "name": "*",
14823
- "package": "./dropdown-menu.styles"
14824
- }
14825
- },
14826
- {
14827
- "kind": "js",
14828
- "name": "*",
14829
- "declaration": {
14830
- "name": "*",
14831
- "package": "./dropdown-menu.template"
14831
+ "package": "./error-banner.template"
14832
14832
  }
14833
14833
  },
14834
14834
  {
@@ -14836,83 +14836,42 @@
14836
14836
  "name": "*",
14837
14837
  "declaration": {
14838
14838
  "name": "*",
14839
- "package": "./dropdown-menu"
14839
+ "package": "./error-banner"
14840
14840
  }
14841
14841
  }
14842
14842
  ]
14843
14843
  },
14844
14844
  {
14845
14845
  "kind": "javascript-module",
14846
- "path": "src/error-dialog/error-dialog.styles.ts",
14846
+ "path": "src/error-boundary/error-boundary.template.ts",
14847
14847
  "declarations": [
14848
14848
  {
14849
14849
  "kind": "variable",
14850
- "name": "foundationErrorDialogStyles",
14850
+ "name": "foundationErrorBoundaryTemplate",
14851
14851
  "type": {
14852
- "text": "ElementStyles"
14852
+ "text": "ViewTemplate<ErrorBoundary>"
14853
14853
  },
14854
- "default": "css`\n :host {\n --design-unit: 3;\n --dialog-max-width: 358px;\n --dialog-min-width: 358px;\n --dialog-max-height: 128px;\n --error-details-min-height: 40px;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--error-details-min-height);\n }\n`"
14855
- }
14856
- ],
14857
- "exports": [
14858
- {
14859
- "kind": "js",
14860
- "name": "foundationErrorDialogStyles",
14861
- "declaration": {
14862
- "name": "foundationErrorDialogStyles",
14863
- "module": "src/error-dialog/error-dialog.styles.ts"
14864
- }
14865
- }
14866
- ]
14867
- },
14868
- {
14869
- "kind": "javascript-module",
14870
- "path": "src/error-dialog/error-dialog.template.ts",
14871
- "declarations": [
14872
- {
14873
- "kind": "function",
14874
- "name": "getErrorDialogTemplate",
14875
- "parameters": [
14876
- {
14877
- "name": "prefix",
14878
- "type": {
14879
- "text": "string"
14880
- }
14881
- }
14882
- ]
14883
- },
14884
- {
14885
- "kind": "variable",
14886
- "name": "errorDialogTemplate",
14887
- "default": "html<ErrorDialog>`\n ${(x) => getErrorDialogTemplate(getPrefix(x))}\n`"
14854
+ "default": "html`\n <template ${ref('errorBoundary')}>\n <slot></slot>\n </template>\n`"
14888
14855
  }
14889
14856
  ],
14890
14857
  "exports": [
14891
14858
  {
14892
14859
  "kind": "js",
14893
- "name": "getErrorDialogTemplate",
14894
- "declaration": {
14895
- "name": "getErrorDialogTemplate",
14896
- "module": "src/error-dialog/error-dialog.template.ts"
14897
- }
14898
- },
14899
- {
14900
- "kind": "js",
14901
- "name": "errorDialogTemplate",
14860
+ "name": "foundationErrorBoundaryTemplate",
14902
14861
  "declaration": {
14903
- "name": "errorDialogTemplate",
14904
- "module": "src/error-dialog/error-dialog.template.ts"
14862
+ "name": "foundationErrorBoundaryTemplate",
14863
+ "module": "src/error-boundary/error-boundary.template.ts"
14905
14864
  }
14906
14865
  }
14907
14866
  ]
14908
14867
  },
14909
14868
  {
14910
14869
  "kind": "javascript-module",
14911
- "path": "src/error-dialog/error-dialog.ts",
14870
+ "path": "src/error-boundary/error-boundary.ts",
14912
14871
  "declarations": [
14913
14872
  {
14914
14873
  "kind": "variable",
14915
- "name": "foundationErrorDialogShadowOptions",
14874
+ "name": "foundationErrorBoundaryShadowOptions",
14916
14875
  "type": {
14917
14876
  "text": "ShadowRootInit"
14918
14877
  },
@@ -14921,57 +14880,43 @@
14921
14880
  {
14922
14881
  "kind": "class",
14923
14882
  "description": "",
14924
- "name": "ErrorDialog",
14883
+ "name": "ErrorBoundary",
14925
14884
  "members": [
14926
14885
  {
14927
14886
  "kind": "field",
14928
- "name": "dialog",
14929
- "type": {
14930
- "text": "HTMLElement & { close: () => void; show: () => void }"
14931
- },
14932
- "privacy": "public"
14887
+ "name": "logger",
14888
+ "privacy": "private"
14933
14889
  },
14934
14890
  {
14935
14891
  "kind": "field",
14936
- "name": "error",
14892
+ "name": "errorBoundary",
14937
14893
  "type": {
14938
- "text": "ErrorStructure"
14894
+ "text": "HTMLElement"
14939
14895
  }
14940
14896
  },
14941
14897
  {
14942
14898
  "kind": "field",
14943
- "name": "notification",
14944
- "type": {
14945
- "text": "NotificationStructure"
14946
- }
14899
+ "name": "resourceName",
14900
+ "description": "The resource name holding new and existing notifications",
14901
+ "privacy": "public"
14947
14902
  },
14948
14903
  {
14949
- "kind": "method",
14950
- "name": "show",
14951
- "privacy": "public",
14952
- "return": {
14953
- "type": {
14954
- "text": "void"
14955
- }
14904
+ "kind": "field",
14905
+ "name": "closeTimeout",
14906
+ "type": {
14907
+ "text": "number"
14956
14908
  },
14957
- "description": "Show the Error Dialog."
14909
+ "default": "0",
14910
+ "description": "Number of milliseconds before toast will disappear. Leave empty or set to 0 to keep toast open indefinitely",
14911
+ "privacy": "public"
14958
14912
  },
14959
14913
  {
14960
- "kind": "method",
14961
- "name": "dismiss",
14962
- "privacy": "public",
14963
- "description": "Dismiss the Error Dialog from display and calls the dismissing action."
14964
- },
14965
- {
14966
- "kind": "method",
14967
- "name": "closeDialog",
14968
- "privacy": "public",
14969
- "return": {
14970
- "type": {
14971
- "text": "void"
14972
- }
14914
+ "kind": "field",
14915
+ "name": "datasource",
14916
+ "type": {
14917
+ "text": "Datasource"
14973
14918
  },
14974
- "description": "Dismiss the Error Dialog from display."
14919
+ "privacy": "private"
14975
14920
  },
14976
14921
  {
14977
14922
  "kind": "field",
@@ -15085,51 +15030,67 @@
15085
15030
  }
15086
15031
  }
15087
15032
  ],
15033
+ "attributes": [
15034
+ {
15035
+ "name": "resource-name",
15036
+ "description": "The resource name holding new and existing notifications",
15037
+ "fieldName": "resourceName"
15038
+ },
15039
+ {
15040
+ "name": "close-timeout",
15041
+ "type": {
15042
+ "text": "number"
15043
+ },
15044
+ "default": "0",
15045
+ "description": "Number of milliseconds before toast will disappear. Leave empty or set to 0 to keep toast open indefinitely",
15046
+ "fieldName": "closeTimeout"
15047
+ }
15048
+ ],
15088
15049
  "superclass": {
15089
15050
  "name": "FoundationElement",
15090
15051
  "package": "@microsoft/fast-foundation"
15091
15052
  },
15092
- "tagName": "%%prefix%%-error-dialog",
15093
15053
  "deprecated": "true",
15054
+ "tagName": "%%prefix%%-error-boundary",
15094
15055
  "customElement": true
15095
15056
  },
15096
15057
  {
15097
15058
  "kind": "variable",
15098
- "name": "foundationErrorDialog",
15099
- "description": "The Foundation Error Dialog",
15059
+ "name": "foundationErrorBoundary",
15060
+ "description": "The Foundation Error Boundary",
15100
15061
  "privacy": "public"
15101
15062
  }
15102
15063
  ],
15103
15064
  "exports": [
15104
15065
  {
15105
15066
  "kind": "js",
15106
- "name": "foundationErrorDialogShadowOptions",
15067
+ "name": "foundationErrorBoundaryShadowOptions",
15107
15068
  "declaration": {
15108
- "name": "foundationErrorDialogShadowOptions",
15109
- "module": "src/error-dialog/error-dialog.ts"
15069
+ "name": "foundationErrorBoundaryShadowOptions",
15070
+ "module": "src/error-boundary/error-boundary.ts"
15110
15071
  }
15111
15072
  },
15112
15073
  {
15113
15074
  "kind": "js",
15114
- "name": "ErrorDialog",
15075
+ "name": "ErrorBoundary",
15115
15076
  "declaration": {
15116
- "name": "ErrorDialog",
15117
- "module": "src/error-dialog/error-dialog.ts"
15077
+ "name": "ErrorBoundary",
15078
+ "module": "src/error-boundary/error-boundary.ts"
15118
15079
  }
15119
15080
  },
15120
15081
  {
15121
15082
  "kind": "js",
15122
- "name": "foundationErrorDialog",
15083
+ "name": "foundationErrorBoundary",
15123
15084
  "declaration": {
15124
- "name": "foundationErrorDialog",
15125
- "module": "src/error-dialog/error-dialog.ts"
15085
+ "name": "foundationErrorBoundary",
15086
+ "module": "src/error-boundary/error-boundary.ts"
15126
15087
  }
15127
15088
  }
15128
15089
  ]
15129
15090
  },
15130
15091
  {
15131
15092
  "kind": "javascript-module",
15132
- "path": "src/error-dialog/index.ts",
15093
+ "path": "src/error-boundary/index.ts",
15133
15094
  "declarations": [],
15134
15095
  "exports": [
15135
15096
  {
@@ -15137,7 +15098,7 @@
15137
15098
  "name": "*",
15138
15099
  "declaration": {
15139
15100
  "name": "*",
15140
- "package": "./error-dialog.template"
15101
+ "package": "./error-boundary.template"
15141
15102
  }
15142
15103
  },
15143
15104
  {
@@ -15145,50 +15106,58 @@
15145
15106
  "name": "*",
15146
15107
  "declaration": {
15147
15108
  "name": "*",
15148
- "package": "./error-dialog"
15109
+ "package": "./error-boundary"
15149
15110
  }
15150
15111
  },
15151
15112
  {
15152
15113
  "kind": "js",
15153
- "name": "*",
15114
+ "name": "ErrorBoundaryEvent",
15154
15115
  "declaration": {
15155
- "name": "*",
15156
- "package": "./error-dialog.styles"
15116
+ "name": "ErrorBoundaryEvent",
15117
+ "package": "@genesislcap/foundation-errors"
15118
+ }
15119
+ },
15120
+ {
15121
+ "kind": "js",
15122
+ "name": "ErrorStructure",
15123
+ "declaration": {
15124
+ "name": "ErrorStructure",
15125
+ "package": "@genesislcap/foundation-errors"
15157
15126
  }
15158
15127
  }
15159
15128
  ]
15160
15129
  },
15161
15130
  {
15162
15131
  "kind": "javascript-module",
15163
- "path": "src/filter/filter.styles.ts",
15132
+ "path": "src/error-dialog/error-dialog.styles.ts",
15164
15133
  "declarations": [
15165
15134
  {
15166
15135
  "kind": "variable",
15167
- "name": "foundationFilterStyles",
15136
+ "name": "foundationErrorDialogStyles",
15168
15137
  "type": {
15169
15138
  "text": "ElementStyles"
15170
15139
  },
15171
- "default": "css`\n .filter-wrapper {\n border: 1px solid gray;\n border-radius: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 1px);\n }\n\n .close-icon {\n display: flex;\n place-content: center;\n align-items: center;\n flex-direction: column;\n align-content: center;\n justify-content: center;\n margin: calc(var(--design-unit) * 1px);\n padding: calc(var(--design-unit) * 1px);\n border: 1px solid transparent;\n border-radius: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon,\n .cloase-icon svg path {\n transition-property: all;\n transition-timing-function: linear;\n transition-duration: 300ms;\n }\n\n .close-icon:hover {\n border-color: red;\n background: rgb(255 0 0 / 25%);\n }\n\n .close-icon:hover svg path {\n fill: red;\n }\n\n .flex-row {\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: space-between;\n align-items: center;\n }\n\n .flex-row zero-text-field,\n .flex-row zero-select,\n .flex-row foundation-text-field,\n .flex-row foundation-select {\n flex: 1;\n }\n`"
15140
+ "default": "css`\n :host {\n --design-unit: 3;\n --dialog-max-width: 358px;\n --dialog-min-width: 358px;\n --dialog-max-height: 128px;\n --error-details-min-height: 40px;\n }\n\n .title {\n margin-top: calc(var(--design-unit) * 2px);\n font-size: 14px;\n }\n\n .details {\n font-size: 12px;\n overflow: hidden;\n min-height: var(--error-details-min-height);\n }\n`"
15172
15141
  }
15173
15142
  ],
15174
15143
  "exports": [
15175
15144
  {
15176
15145
  "kind": "js",
15177
- "name": "foundationFilterStyles",
15146
+ "name": "foundationErrorDialogStyles",
15178
15147
  "declaration": {
15179
- "name": "foundationFilterStyles",
15180
- "module": "src/filter/filter.styles.ts"
15148
+ "name": "foundationErrorDialogStyles",
15149
+ "module": "src/error-dialog/error-dialog.styles.ts"
15181
15150
  }
15182
15151
  }
15183
15152
  ]
15184
15153
  },
15185
15154
  {
15186
15155
  "kind": "javascript-module",
15187
- "path": "src/filter/filter.template.ts",
15156
+ "path": "src/error-dialog/error-dialog.template.ts",
15188
15157
  "declarations": [
15189
15158
  {
15190
15159
  "kind": "function",
15191
- "name": "getPrefixedFilterTemplate",
15160
+ "name": "getErrorDialogTemplate",
15192
15161
  "parameters": [
15193
15162
  {
15194
15163
  "name": "prefix",
@@ -15200,354 +15169,603 @@
15200
15169
  },
15201
15170
  {
15202
15171
  "kind": "variable",
15203
- "name": "foundationFilterTemplate",
15204
- "type": {
15205
- "text": "ViewTemplate<Filter>"
15206
- },
15207
- "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
15172
+ "name": "errorDialogTemplate",
15173
+ "default": "html<ErrorDialog>`\n ${(x) => getErrorDialogTemplate(getPrefix(x))}\n`"
15208
15174
  }
15209
15175
  ],
15210
15176
  "exports": [
15211
15177
  {
15212
15178
  "kind": "js",
15213
- "name": "getPrefixedFilterTemplate",
15179
+ "name": "getErrorDialogTemplate",
15214
15180
  "declaration": {
15215
- "name": "getPrefixedFilterTemplate",
15216
- "module": "src/filter/filter.template.ts"
15181
+ "name": "getErrorDialogTemplate",
15182
+ "module": "src/error-dialog/error-dialog.template.ts"
15217
15183
  }
15218
15184
  },
15219
15185
  {
15220
15186
  "kind": "js",
15221
- "name": "foundationFilterTemplate",
15187
+ "name": "errorDialogTemplate",
15222
15188
  "declaration": {
15223
- "name": "foundationFilterTemplate",
15224
- "module": "src/filter/filter.template.ts"
15189
+ "name": "errorDialogTemplate",
15190
+ "module": "src/error-dialog/error-dialog.template.ts"
15225
15191
  }
15226
15192
  }
15227
15193
  ]
15228
15194
  },
15229
15195
  {
15230
15196
  "kind": "javascript-module",
15231
- "path": "src/filter/filter.ts",
15197
+ "path": "src/error-dialog/error-dialog.ts",
15232
15198
  "declarations": [
15199
+ {
15200
+ "kind": "variable",
15201
+ "name": "foundationErrorDialogShadowOptions",
15202
+ "type": {
15203
+ "text": "ShadowRootInit"
15204
+ },
15205
+ "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
15206
+ },
15233
15207
  {
15234
15208
  "kind": "class",
15235
15209
  "description": "",
15236
- "name": "Filter",
15210
+ "name": "ErrorDialog",
15237
15211
  "members": [
15238
15212
  {
15239
15213
  "kind": "field",
15240
- "name": "textFilterField",
15214
+ "name": "dialog",
15241
15215
  "type": {
15242
- "text": "TextField"
15216
+ "text": "HTMLElement & { close: () => void; show: () => void }"
15243
15217
  },
15244
15218
  "privacy": "public"
15245
15219
  },
15246
15220
  {
15247
15221
  "kind": "field",
15248
- "name": "numFilterFieldMin",
15222
+ "name": "error",
15249
15223
  "type": {
15250
- "text": "TextField"
15251
- },
15252
- "privacy": "public"
15224
+ "text": "ErrorStructure"
15225
+ }
15253
15226
  },
15254
15227
  {
15255
15228
  "kind": "field",
15256
- "name": "numFilterFieldMax",
15229
+ "name": "notification",
15257
15230
  "type": {
15258
- "text": "TextField"
15259
- },
15260
- "privacy": "public"
15231
+ "text": "NotificationStructure"
15232
+ }
15261
15233
  },
15262
15234
  {
15263
- "kind": "field",
15264
- "name": "dateFilterFieldMin",
15265
- "type": {
15266
- "text": "TextField"
15235
+ "kind": "method",
15236
+ "name": "show",
15237
+ "privacy": "public",
15238
+ "return": {
15239
+ "type": {
15240
+ "text": "void"
15241
+ }
15267
15242
  },
15268
- "privacy": "public"
15243
+ "description": "Show the Error Dialog."
15269
15244
  },
15270
15245
  {
15271
- "kind": "field",
15272
- "name": "dateFilterFieldMax",
15273
- "type": {
15274
- "text": "TextField"
15275
- },
15276
- "privacy": "public"
15246
+ "kind": "method",
15247
+ "name": "dismiss",
15248
+ "privacy": "public",
15249
+ "description": "Dismiss the Error Dialog from display and calls the dismissing action."
15277
15250
  },
15278
15251
  {
15279
- "kind": "field",
15280
- "name": "fieldName",
15281
- "type": {
15282
- "text": "string"
15283
- }
15252
+ "kind": "method",
15253
+ "name": "closeDialog",
15254
+ "privacy": "public",
15255
+ "return": {
15256
+ "type": {
15257
+ "text": "void"
15258
+ }
15259
+ },
15260
+ "description": "Dismiss the Error Dialog from display."
15284
15261
  },
15285
15262
  {
15286
15263
  "kind": "field",
15287
- "name": "type",
15264
+ "name": "_presentation",
15288
15265
  "type": {
15289
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15266
+ "text": "ComponentPresentation | null | undefined"
15290
15267
  },
15291
- "default": "'text'"
15268
+ "privacy": "private",
15269
+ "default": "void 0",
15270
+ "inheritedFrom": {
15271
+ "name": "FoundationElement",
15272
+ "module": "src/foundation-element/foundation-element.ts"
15273
+ }
15292
15274
  },
15293
15275
  {
15294
15276
  "kind": "field",
15295
- "name": "label",
15277
+ "name": "$presentation",
15296
15278
  "type": {
15297
- "text": "string"
15279
+ "text": "ComponentPresentation | null"
15280
+ },
15281
+ "privacy": "public",
15282
+ "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
15283
+ "inheritedFrom": {
15284
+ "name": "FoundationElement",
15285
+ "module": "src/foundation-element/foundation-element.ts"
15298
15286
  }
15299
15287
  },
15300
15288
  {
15301
15289
  "kind": "field",
15302
- "name": "target",
15290
+ "name": "template",
15303
15291
  "type": {
15304
- "text": "string"
15292
+ "text": "ElementViewTemplate | void | null"
15305
15293
  },
15306
- "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page."
15294
+ "privacy": "public",
15295
+ "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.",
15296
+ "inheritedFrom": {
15297
+ "name": "FoundationElement",
15298
+ "module": "src/foundation-element/foundation-element.ts"
15299
+ }
15307
15300
  },
15308
15301
  {
15309
- "kind": "field",
15310
- "name": "textFilter",
15311
- "type": {
15312
- "text": "string"
15302
+ "kind": "method",
15303
+ "name": "templateChanged",
15304
+ "privacy": "protected",
15305
+ "return": {
15306
+ "type": {
15307
+ "text": "void"
15308
+ }
15313
15309
  },
15314
- "default": "''"
15310
+ "inheritedFrom": {
15311
+ "name": "FoundationElement",
15312
+ "module": "src/foundation-element/foundation-element.ts"
15313
+ }
15315
15314
  },
15316
15315
  {
15317
15316
  "kind": "field",
15318
- "name": "numFilterMin",
15317
+ "name": "styles",
15319
15318
  "type": {
15320
- "text": "number"
15319
+ "text": "ElementStyles | void | null"
15320
+ },
15321
+ "privacy": "public",
15322
+ "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.",
15323
+ "inheritedFrom": {
15324
+ "name": "FoundationElement",
15325
+ "module": "src/foundation-element/foundation-element.ts"
15321
15326
  }
15322
15327
  },
15323
15328
  {
15324
- "kind": "field",
15325
- "name": "numFilterMax",
15326
- "type": {
15327
- "text": "number"
15329
+ "kind": "method",
15330
+ "name": "stylesChanged",
15331
+ "privacy": "protected",
15332
+ "return": {
15333
+ "type": {
15334
+ "text": "void"
15335
+ }
15336
+ },
15337
+ "inheritedFrom": {
15338
+ "name": "FoundationElement",
15339
+ "module": "src/foundation-element/foundation-element.ts"
15328
15340
  }
15329
15341
  },
15330
15342
  {
15331
- "kind": "field",
15332
- "name": "dateFilterMin",
15333
- "type": {
15334
- "text": "string"
15343
+ "kind": "method",
15344
+ "name": "compose",
15345
+ "privacy": "public",
15346
+ "static": true,
15347
+ "return": {
15348
+ "type": {
15349
+ "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
15350
+ }
15351
+ },
15352
+ "parameters": [
15353
+ {
15354
+ "name": "this",
15355
+ "type": {
15356
+ "text": "K"
15357
+ }
15358
+ },
15359
+ {
15360
+ "name": "elementDefinition",
15361
+ "type": {
15362
+ "text": "T"
15363
+ },
15364
+ "description": "The definition of the element to create the registry\nfunction for."
15365
+ }
15366
+ ],
15367
+ "description": "Defines an element registry function with a set of element definition defaults.",
15368
+ "inheritedFrom": {
15369
+ "name": "FoundationElement",
15370
+ "module": "src/foundation-element/foundation-element.ts"
15371
+ }
15372
+ }
15373
+ ],
15374
+ "superclass": {
15375
+ "name": "FoundationElement",
15376
+ "package": "@microsoft/fast-foundation"
15377
+ },
15378
+ "tagName": "%%prefix%%-error-dialog",
15379
+ "deprecated": "true",
15380
+ "customElement": true
15381
+ },
15382
+ {
15383
+ "kind": "variable",
15384
+ "name": "foundationErrorDialog",
15385
+ "description": "The Foundation Error Dialog",
15386
+ "privacy": "public"
15387
+ }
15388
+ ],
15389
+ "exports": [
15390
+ {
15391
+ "kind": "js",
15392
+ "name": "foundationErrorDialogShadowOptions",
15393
+ "declaration": {
15394
+ "name": "foundationErrorDialogShadowOptions",
15395
+ "module": "src/error-dialog/error-dialog.ts"
15396
+ }
15397
+ },
15398
+ {
15399
+ "kind": "js",
15400
+ "name": "ErrorDialog",
15401
+ "declaration": {
15402
+ "name": "ErrorDialog",
15403
+ "module": "src/error-dialog/error-dialog.ts"
15404
+ }
15405
+ },
15406
+ {
15407
+ "kind": "js",
15408
+ "name": "foundationErrorDialog",
15409
+ "declaration": {
15410
+ "name": "foundationErrorDialog",
15411
+ "module": "src/error-dialog/error-dialog.ts"
15412
+ }
15413
+ }
15414
+ ]
15415
+ },
15416
+ {
15417
+ "kind": "javascript-module",
15418
+ "path": "src/error-dialog/index.ts",
15419
+ "declarations": [],
15420
+ "exports": [
15421
+ {
15422
+ "kind": "js",
15423
+ "name": "*",
15424
+ "declaration": {
15425
+ "name": "*",
15426
+ "package": "./error-dialog.template"
15427
+ }
15428
+ },
15429
+ {
15430
+ "kind": "js",
15431
+ "name": "*",
15432
+ "declaration": {
15433
+ "name": "*",
15434
+ "package": "./error-dialog"
15435
+ }
15436
+ },
15437
+ {
15438
+ "kind": "js",
15439
+ "name": "*",
15440
+ "declaration": {
15441
+ "name": "*",
15442
+ "package": "./error-dialog.styles"
15443
+ }
15444
+ }
15445
+ ]
15446
+ },
15447
+ {
15448
+ "kind": "javascript-module",
15449
+ "path": "src/file-upload/file-upload.styles.ts",
15450
+ "declarations": [
15451
+ {
15452
+ "kind": "variable",
15453
+ "name": "foundationFileUploadStyles",
15454
+ "type": {
15455
+ "text": "ElementStyles"
15456
+ },
15457
+ "default": "css`\n /* Host */\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .file-selection {\n display: flex;\n align-items: end;\n justify-content: start;\n padding-bottom: 10px;\n }\n\n .file-selection :nth-last-child(-n + 2) {\n margin: 0;\n margin-left: 10px;\n }\n\n input[type='file'] {\n display: none;\n }\n\n .clear-icon {\n cursor: pointer;\n }\n\n .uploader-grid {\n overflow-y: auto;\n }\n\n .file-name-input {\n flex: 1;\n }\n\n .download-button-container {\n display: flex;\n }\n\n .download-button {\n height: 22px;\n }\n\n fast-data-grid-row {\n align-items: center;\n }\n`"
15458
+ }
15459
+ ],
15460
+ "exports": [
15461
+ {
15462
+ "kind": "js",
15463
+ "name": "foundationFileUploadStyles",
15464
+ "declaration": {
15465
+ "name": "foundationFileUploadStyles",
15466
+ "module": "src/file-upload/file-upload.styles.ts"
15467
+ }
15468
+ }
15469
+ ]
15470
+ },
15471
+ {
15472
+ "kind": "javascript-module",
15473
+ "path": "src/file-upload/file-upload.template.ts",
15474
+ "declarations": [
15475
+ {
15476
+ "kind": "function",
15477
+ "name": "getPrefixedFileUpload",
15478
+ "parameters": [
15479
+ {
15480
+ "name": "prefix",
15481
+ "type": {
15482
+ "text": "string"
15335
15483
  }
15484
+ }
15485
+ ]
15486
+ },
15487
+ {
15488
+ "kind": "variable",
15489
+ "name": "foundationFileUploadTemplate",
15490
+ "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
15491
+ }
15492
+ ],
15493
+ "exports": [
15494
+ {
15495
+ "kind": "js",
15496
+ "name": "getPrefixedFileUpload",
15497
+ "declaration": {
15498
+ "name": "getPrefixedFileUpload",
15499
+ "module": "src/file-upload/file-upload.template.ts"
15500
+ }
15501
+ },
15502
+ {
15503
+ "kind": "js",
15504
+ "name": "foundationFileUploadTemplate",
15505
+ "declaration": {
15506
+ "name": "foundationFileUploadTemplate",
15507
+ "module": "src/file-upload/file-upload.template.ts"
15508
+ }
15509
+ }
15510
+ ]
15511
+ },
15512
+ {
15513
+ "kind": "javascript-module",
15514
+ "path": "src/file-upload/file-upload.ts",
15515
+ "declarations": [
15516
+ {
15517
+ "kind": "class",
15518
+ "description": "",
15519
+ "name": "FileUpload",
15520
+ "members": [
15521
+ {
15522
+ "kind": "field",
15523
+ "name": "fileInput",
15524
+ "type": {
15525
+ "text": "HTMLInputElement"
15526
+ },
15527
+ "privacy": "public"
15336
15528
  },
15337
15529
  {
15338
15530
  "kind": "field",
15339
- "name": "dateFilterMax",
15531
+ "name": "acceptedFormats",
15532
+ "type": {
15533
+ "text": "array"
15534
+ },
15535
+ "privacy": "private",
15536
+ "default": "[]"
15537
+ },
15538
+ {
15539
+ "kind": "field",
15540
+ "name": "selectedFiles",
15541
+ "type": {
15542
+ "text": "File[]"
15543
+ },
15544
+ "privacy": "private"
15545
+ },
15546
+ {
15547
+ "kind": "field",
15548
+ "name": "gridCriteria",
15340
15549
  "type": {
15341
15550
  "text": "string"
15342
15551
  }
15343
15552
  },
15344
15553
  {
15345
15554
  "kind": "field",
15346
- "name": "dateMinMS",
15555
+ "name": "connect",
15347
15556
  "type": {
15348
- "text": "number"
15557
+ "text": "Connect"
15349
15558
  }
15350
15559
  },
15351
15560
  {
15352
15561
  "kind": "field",
15353
- "name": "dateMaxMS",
15562
+ "name": "session",
15354
15563
  "type": {
15355
- "text": "number"
15564
+ "text": "Session"
15356
15565
  }
15357
15566
  },
15358
15567
  {
15359
15568
  "kind": "field",
15360
- "name": "enumOptions",
15569
+ "name": "label",
15361
15570
  "type": {
15362
15571
  "text": "string"
15363
15572
  }
15364
15573
  },
15365
15574
  {
15366
15575
  "kind": "field",
15367
- "name": "enumFilterOptions",
15576
+ "name": "accept",
15368
15577
  "type": {
15369
- "text": "any[]"
15578
+ "text": "string"
15370
15579
  },
15371
- "default": "[{ name: 'All', value: 'all', selected: true }]"
15372
- },
15373
- {
15374
- "kind": "method",
15375
- "name": "textFilterChanged",
15376
- "parameters": [
15377
- {
15378
- "name": "oldCriteria",
15379
- "type": {
15380
- "text": "string"
15381
- }
15382
- },
15383
- {
15384
- "name": "newCriteria",
15385
- "type": {
15386
- "text": "string"
15387
- }
15388
- }
15389
- ]
15580
+ "default": "''"
15390
15581
  },
15391
15582
  {
15392
15583
  "kind": "method",
15393
- "name": "numFilterMinChanged",
15394
- "parameters": [
15395
- {
15396
- "name": "oldMin",
15397
- "type": {
15398
- "text": "string"
15399
- }
15400
- },
15401
- {
15402
- "name": "newMin",
15403
- "type": {
15404
- "text": "string"
15405
- }
15406
- }
15407
- ]
15584
+ "name": "acceptChanged"
15408
15585
  },
15409
15586
  {
15410
- "kind": "method",
15411
- "name": "numFilterMaxChanged",
15412
- "parameters": [
15413
- {
15414
- "name": "oldMax",
15415
- "type": {
15416
- "text": "string"
15417
- }
15418
- },
15419
- {
15420
- "name": "newMax",
15421
- "type": {
15422
- "text": "string"
15423
- }
15424
- }
15425
- ]
15587
+ "kind": "field",
15588
+ "name": "fileSizeLimitBytes",
15589
+ "default": "104_857_600",
15590
+ "type": {
15591
+ "text": "number"
15592
+ }
15593
+ },
15594
+ {
15595
+ "kind": "field",
15596
+ "name": "uploadedFilesResourceName",
15597
+ "type": {
15598
+ "text": "string"
15599
+ },
15600
+ "default": "'ALL_FILE_ATTACHMENTS'"
15601
+ },
15602
+ {
15603
+ "kind": "field",
15604
+ "name": "uploadEventName",
15605
+ "type": {
15606
+ "text": "string"
15607
+ },
15608
+ "default": "'gwf/attachment-handler/upload'"
15609
+ },
15610
+ {
15611
+ "kind": "field",
15612
+ "name": "fieldName",
15613
+ "type": {
15614
+ "text": "string"
15615
+ }
15426
15616
  },
15427
15617
  {
15428
15618
  "kind": "method",
15429
- "name": "handleNumericFilter",
15619
+ "name": "fieldNameChanged"
15620
+ },
15621
+ {
15622
+ "kind": "field",
15623
+ "name": "entityId",
15624
+ "type": {
15625
+ "text": "string"
15626
+ }
15627
+ },
15628
+ {
15629
+ "kind": "method",
15630
+ "name": "entityIdChanged"
15631
+ },
15632
+ {
15633
+ "kind": "field",
15634
+ "name": "uploadKey",
15635
+ "type": {
15636
+ "text": "string"
15637
+ }
15638
+ },
15639
+ {
15640
+ "kind": "field",
15641
+ "name": "gridFields",
15642
+ "type": {
15643
+ "text": "string"
15644
+ },
15645
+ "default": "''"
15646
+ },
15647
+ {
15648
+ "kind": "field",
15649
+ "name": "fileName",
15650
+ "type": {
15651
+ "text": "string"
15652
+ },
15653
+ "default": "''"
15654
+ },
15655
+ {
15656
+ "kind": "field",
15657
+ "name": "uploadedFilesList",
15658
+ "type": {
15659
+ "text": "array"
15660
+ },
15661
+ "default": "[]"
15662
+ },
15663
+ {
15664
+ "kind": "field",
15665
+ "name": "filesGridColumnDefinitions",
15666
+ "type": {
15667
+ "text": "ColumnDefinition[]"
15668
+ },
15669
+ "default": "[]"
15670
+ },
15671
+ {
15672
+ "kind": "field",
15673
+ "name": "downloadEventName",
15674
+ "type": {
15675
+ "text": "Function"
15676
+ },
15677
+ "privacy": "public"
15678
+ },
15679
+ {
15680
+ "kind": "method",
15681
+ "name": "setupGrid"
15682
+ },
15683
+ {
15684
+ "kind": "method",
15685
+ "name": "handleStreamRowOperation",
15430
15686
  "privacy": "private",
15431
15687
  "parameters": [
15432
15688
  {
15433
- "name": "min",
15434
- "type": {
15435
- "text": "number"
15436
- }
15437
- },
15438
- {
15439
- "name": "max",
15689
+ "name": "data",
15440
15690
  "type": {
15441
- "text": "number"
15691
+ "text": "Message<any>"
15442
15692
  }
15443
15693
  }
15444
15694
  ]
15445
15695
  },
15446
15696
  {
15447
15697
  "kind": "method",
15448
- "name": "formatDate",
15449
- "privacy": "private",
15450
- "return": {
15451
- "type": {
15452
- "text": ""
15453
- }
15454
- },
15455
- "parameters": [
15456
- {
15457
- "name": "epoch",
15458
- "type": {
15459
- "text": "number"
15460
- },
15461
- "description": "ms since unix epoch"
15462
- }
15463
- ],
15464
- "description": "Example: 1634083200000 -> '20211013-00:00:00'"
15698
+ "name": "setRowData"
15465
15699
  },
15466
15700
  {
15467
15701
  "kind": "method",
15468
- "name": "dateFilterMinChanged",
15702
+ "name": "setColumnDefs"
15703
+ },
15704
+ {
15705
+ "kind": "method",
15706
+ "name": "getDownloadColumn",
15707
+ "privacy": "public"
15708
+ },
15709
+ {
15710
+ "kind": "method",
15711
+ "name": "getColumnObject",
15712
+ "privacy": "public",
15469
15713
  "parameters": [
15470
15714
  {
15471
- "name": "oldMin",
15472
- "type": {
15473
- "text": "string"
15474
- }
15475
- },
15476
- {
15477
- "name": "newMin",
15478
- "type": {
15479
- "text": "string"
15480
- }
15715
+ "name": "column"
15481
15716
  }
15482
15717
  ]
15483
15718
  },
15484
15719
  {
15485
15720
  "kind": "method",
15486
- "name": "dateFilterMaxChanged",
15721
+ "name": "handleClick",
15722
+ "privacy": "public"
15723
+ },
15724
+ {
15725
+ "kind": "method",
15726
+ "name": "onInputChange",
15727
+ "privacy": "public",
15487
15728
  "parameters": [
15488
15729
  {
15489
- "name": "oldMax",
15490
- "type": {
15491
- "text": "string"
15492
- }
15493
- },
15494
- {
15495
- "name": "newMax",
15496
- "type": {
15497
- "text": "string"
15498
- }
15730
+ "name": "e"
15499
15731
  }
15500
15732
  ]
15501
15733
  },
15502
15734
  {
15503
15735
  "kind": "method",
15504
- "name": "handleDateFilter",
15505
- "privacy": "private",
15736
+ "name": "onFilesSelected",
15737
+ "privacy": "public",
15506
15738
  "parameters": [
15507
15739
  {
15508
- "name": "min",
15509
- "type": {
15510
- "text": "number"
15511
- }
15512
- },
15513
- {
15514
- "name": "max",
15740
+ "name": "files",
15515
15741
  "type": {
15516
- "text": "number"
15742
+ "text": "File[]"
15517
15743
  }
15518
15744
  }
15519
15745
  ]
15520
15746
  },
15521
15747
  {
15522
15748
  "kind": "method",
15523
- "name": "clear",
15749
+ "name": "handleFileUpload",
15524
15750
  "privacy": "public"
15525
15751
  },
15526
15752
  {
15527
15753
  "kind": "method",
15528
- "name": "onBooleanFilterSelection",
15754
+ "name": "handleFileDownload",
15529
15755
  "privacy": "public",
15530
15756
  "parameters": [
15531
15757
  {
15532
- "name": "selection",
15758
+ "name": "rowData",
15533
15759
  "type": {
15534
- "text": "'all' | 'true' | 'false' | 'null'"
15760
+ "text": "any"
15535
15761
  }
15536
15762
  }
15537
15763
  ]
15538
15764
  },
15539
15765
  {
15540
15766
  "kind": "method",
15541
- "name": "onEnumFilterSelection",
15542
- "privacy": "public",
15543
- "parameters": [
15544
- {
15545
- "name": "selection",
15546
- "type": {
15547
- "text": "string"
15548
- }
15549
- }
15550
- ]
15767
+ "name": "clearSelection",
15768
+ "privacy": "public"
15551
15769
  },
15552
15770
  {
15553
15771
  "kind": "field",
@@ -15663,77 +15881,255 @@
15663
15881
  ],
15664
15882
  "attributes": [
15665
15883
  {
15666
- "name": "fieldName",
15884
+ "name": "label",
15667
15885
  "type": {
15668
15886
  "text": "string"
15669
15887
  },
15670
- "fieldName": "fieldName"
15888
+ "fieldName": "label"
15671
15889
  },
15672
15890
  {
15673
- "name": "type",
15891
+ "name": "accept",
15674
15892
  "type": {
15675
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15893
+ "text": "string"
15676
15894
  },
15677
- "default": "'text'",
15678
- "fieldName": "type"
15895
+ "default": "''",
15896
+ "fieldName": "accept"
15679
15897
  },
15680
15898
  {
15681
- "name": "label",
15899
+ "name": "file-size-limit-bytes",
15900
+ "default": "FILE_SIZE_LIMIT",
15901
+ "resolveInitializer": {
15902
+ "module": "src/file-upload/file-upload.ts"
15903
+ },
15904
+ "fieldName": "fileSizeLimitBytes"
15905
+ },
15906
+ {
15907
+ "name": "uploaded-files-resource-name",
15682
15908
  "type": {
15683
15909
  "text": "string"
15684
15910
  },
15685
- "fieldName": "label"
15911
+ "default": "'ALL_FILE_ATTACHMENTS'",
15912
+ "fieldName": "uploadedFilesResourceName"
15686
15913
  },
15687
15914
  {
15688
- "name": "target",
15915
+ "name": "upload-event-name",
15689
15916
  "type": {
15690
15917
  "text": "string"
15691
15918
  },
15692
- "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page.",
15693
- "fieldName": "target"
15919
+ "default": "'gwf/attachment-handler/upload'",
15920
+ "fieldName": "uploadEventName"
15694
15921
  },
15695
15922
  {
15696
- "name": "enumOptions",
15923
+ "name": "field-name",
15697
15924
  "type": {
15698
15925
  "text": "string"
15699
15926
  },
15700
- "fieldName": "enumOptions"
15701
- }
15702
- ],
15703
- "superclass": {
15704
- "name": "FoundationElement",
15705
- "package": "@microsoft/fast-foundation"
15706
- },
15707
- "tagName": "%%prefix%%-filter",
15708
- "customElement": true
15927
+ "fieldName": "fieldName"
15928
+ },
15929
+ {
15930
+ "name": "entity-id",
15931
+ "type": {
15932
+ "text": "string"
15933
+ },
15934
+ "fieldName": "entityId"
15935
+ },
15936
+ {
15937
+ "name": "upload-key",
15938
+ "type": {
15939
+ "text": "string"
15940
+ },
15941
+ "fieldName": "uploadKey"
15942
+ },
15943
+ {
15944
+ "name": "grid-fields",
15945
+ "type": {
15946
+ "text": "string"
15947
+ },
15948
+ "default": "''",
15949
+ "fieldName": "gridFields"
15950
+ }
15951
+ ],
15952
+ "superclass": {
15953
+ "name": "FoundationElement",
15954
+ "package": "@microsoft/fast-foundation"
15955
+ },
15956
+ "tagName": "%%prefix%%-file-upload",
15957
+ "customElement": true
15709
15958
  },
15710
15959
  {
15711
15960
  "kind": "variable",
15712
- "name": "foundationFilter"
15961
+ "name": "foundationFileUploadShadowOptions",
15962
+ "type": {
15963
+ "text": "ShadowRootInit"
15964
+ },
15965
+ "default": "undefined"
15966
+ },
15967
+ {
15968
+ "kind": "variable",
15969
+ "name": "defaultFileUploadConfig",
15970
+ "type": {
15971
+ "text": "object"
15972
+ },
15973
+ "default": "{}"
15974
+ },
15975
+ {
15976
+ "kind": "variable",
15977
+ "name": "foundationFileUpload",
15978
+ "description": "The Foundation File Upload",
15979
+ "privacy": "public"
15713
15980
  }
15714
15981
  ],
15715
15982
  "exports": [
15716
15983
  {
15717
15984
  "kind": "js",
15718
- "name": "Filter",
15985
+ "name": "FileUpload",
15719
15986
  "declaration": {
15720
- "name": "Filter",
15721
- "module": "src/filter/filter.ts"
15987
+ "name": "FileUpload",
15988
+ "module": "src/file-upload/file-upload.ts"
15722
15989
  }
15723
15990
  },
15724
15991
  {
15725
15992
  "kind": "js",
15726
- "name": "foundationFilter",
15993
+ "name": "foundationFileUploadShadowOptions",
15727
15994
  "declaration": {
15728
- "name": "foundationFilter",
15729
- "module": "src/filter/filter.ts"
15995
+ "name": "foundationFileUploadShadowOptions",
15996
+ "module": "src/file-upload/file-upload.ts"
15997
+ }
15998
+ },
15999
+ {
16000
+ "kind": "js",
16001
+ "name": "defaultFileUploadConfig",
16002
+ "declaration": {
16003
+ "name": "defaultFileUploadConfig",
16004
+ "module": "src/file-upload/file-upload.ts"
16005
+ }
16006
+ },
16007
+ {
16008
+ "kind": "js",
16009
+ "name": "foundationFileUpload",
16010
+ "declaration": {
16011
+ "name": "foundationFileUpload",
16012
+ "module": "src/file-upload/file-upload.ts"
15730
16013
  }
15731
16014
  }
15732
16015
  ]
15733
16016
  },
15734
16017
  {
15735
16018
  "kind": "javascript-module",
15736
- "path": "src/filter/index.ts",
16019
+ "path": "src/file-upload/file-upload.utils.ts",
16020
+ "declarations": [
16021
+ {
16022
+ "kind": "function",
16023
+ "name": "createFormData",
16024
+ "parameters": [
16025
+ {
16026
+ "name": "files",
16027
+ "type": {
16028
+ "text": "Array<File>"
16029
+ }
16030
+ }
16031
+ ]
16032
+ },
16033
+ {
16034
+ "kind": "function",
16035
+ "name": "uploadFiles",
16036
+ "parameters": [
16037
+ {
16038
+ "name": "url",
16039
+ "type": {
16040
+ "text": "string"
16041
+ }
16042
+ },
16043
+ {
16044
+ "name": "formData",
16045
+ "type": {
16046
+ "text": "FormData"
16047
+ }
16048
+ },
16049
+ {
16050
+ "name": "authToken",
16051
+ "type": {
16052
+ "text": "string"
16053
+ }
16054
+ }
16055
+ ]
16056
+ },
16057
+ {
16058
+ "kind": "function",
16059
+ "name": "downloadFile",
16060
+ "parameters": [
16061
+ {
16062
+ "name": "url",
16063
+ "type": {
16064
+ "text": "string"
16065
+ }
16066
+ },
16067
+ {
16068
+ "name": "filename",
16069
+ "type": {
16070
+ "text": "string"
16071
+ }
16072
+ },
16073
+ {
16074
+ "name": "authToken",
16075
+ "type": {
16076
+ "text": "string"
16077
+ }
16078
+ },
16079
+ {
16080
+ "name": "method",
16081
+ "default": "'GET'",
16082
+ "type": {
16083
+ "text": "string"
16084
+ }
16085
+ },
16086
+ {
16087
+ "name": "showNotifications",
16088
+ "optional": true,
16089
+ "type": {
16090
+ "text": "boolean"
16091
+ }
16092
+ },
16093
+ {
16094
+ "name": "body",
16095
+ "optional": true,
16096
+ "type": {
16097
+ "text": "any"
16098
+ }
16099
+ }
16100
+ ]
16101
+ }
16102
+ ],
16103
+ "exports": [
16104
+ {
16105
+ "kind": "js",
16106
+ "name": "createFormData",
16107
+ "declaration": {
16108
+ "name": "createFormData",
16109
+ "module": "src/file-upload/file-upload.utils.ts"
16110
+ }
16111
+ },
16112
+ {
16113
+ "kind": "js",
16114
+ "name": "uploadFiles",
16115
+ "declaration": {
16116
+ "name": "uploadFiles",
16117
+ "module": "src/file-upload/file-upload.utils.ts"
16118
+ }
16119
+ },
16120
+ {
16121
+ "kind": "js",
16122
+ "name": "downloadFile",
16123
+ "declaration": {
16124
+ "name": "downloadFile",
16125
+ "module": "src/file-upload/file-upload.utils.ts"
16126
+ }
16127
+ }
16128
+ ]
16129
+ },
16130
+ {
16131
+ "kind": "javascript-module",
16132
+ "path": "src/file-upload/index.ts",
15737
16133
  "declarations": [],
15738
16134
  "exports": [
15739
16135
  {
@@ -15741,7 +16137,7 @@
15741
16137
  "name": "*",
15742
16138
  "declaration": {
15743
16139
  "name": "*",
15744
- "package": "./filter.styles"
16140
+ "package": "./file-upload"
15745
16141
  }
15746
16142
  },
15747
16143
  {
@@ -15749,7 +16145,7 @@
15749
16145
  "name": "*",
15750
16146
  "declaration": {
15751
16147
  "name": "*",
15752
- "package": "./filter.template"
16148
+ "package": "./file-upload.template"
15753
16149
  }
15754
16150
  },
15755
16151
  {
@@ -15757,42 +16153,50 @@
15757
16153
  "name": "*",
15758
16154
  "declaration": {
15759
16155
  "name": "*",
15760
- "package": "./filter"
16156
+ "package": "./file-upload.styles"
16157
+ }
16158
+ },
16159
+ {
16160
+ "kind": "js",
16161
+ "name": "*",
16162
+ "declaration": {
16163
+ "name": "*",
16164
+ "package": "./file-upload.utils"
15761
16165
  }
15762
16166
  }
15763
16167
  ]
15764
16168
  },
15765
16169
  {
15766
16170
  "kind": "javascript-module",
15767
- "path": "src/file-upload/file-upload.styles.ts",
16171
+ "path": "src/filter/filter.styles.ts",
15768
16172
  "declarations": [
15769
16173
  {
15770
16174
  "kind": "variable",
15771
- "name": "foundationFileUploadStyles",
16175
+ "name": "foundationFilterStyles",
15772
16176
  "type": {
15773
16177
  "text": "ElementStyles"
15774
16178
  },
15775
- "default": "css`\n /* Host */\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .file-selection {\n display: flex;\n align-items: end;\n justify-content: start;\n padding-bottom: 10px;\n }\n\n .file-selection :nth-last-child(-n + 2) {\n margin: 0;\n margin-left: 10px;\n }\n\n input[type='file'] {\n display: none;\n }\n\n .clear-icon {\n cursor: pointer;\n }\n\n .uploader-grid {\n overflow-y: auto;\n }\n\n .file-name-input {\n flex: 1;\n }\n\n .download-button-container {\n display: flex;\n }\n\n .download-button {\n height: 22px;\n }\n\n fast-data-grid-row {\n align-items: center;\n }\n`"
16179
+ "default": "css`\n .filter-wrapper {\n border: 1px solid gray;\n border-radius: calc(var(--design-unit) * 2px);\n padding: calc(var(--design-unit) * 1px);\n }\n\n .close-icon {\n display: flex;\n place-content: center;\n align-items: center;\n flex-direction: column;\n align-content: center;\n justify-content: center;\n margin: calc(var(--design-unit) * 1px);\n padding: calc(var(--design-unit) * 1px);\n border: 1px solid transparent;\n border-radius: calc(var(--design-unit) * 2px);\n cursor: pointer;\n }\n\n .close-icon,\n .cloase-icon svg path {\n transition-property: all;\n transition-timing-function: linear;\n transition-duration: 300ms;\n }\n\n .close-icon:hover {\n border-color: red;\n background: rgb(255 0 0 / 25%);\n }\n\n .close-icon:hover svg path {\n fill: red;\n }\n\n .flex-row {\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: space-between;\n align-items: center;\n }\n\n .flex-row zero-text-field,\n .flex-row zero-select,\n .flex-row foundation-text-field,\n .flex-row foundation-select {\n flex: 1;\n }\n`"
15776
16180
  }
15777
16181
  ],
15778
16182
  "exports": [
15779
16183
  {
15780
16184
  "kind": "js",
15781
- "name": "foundationFileUploadStyles",
16185
+ "name": "foundationFilterStyles",
15782
16186
  "declaration": {
15783
- "name": "foundationFileUploadStyles",
15784
- "module": "src/file-upload/file-upload.styles.ts"
16187
+ "name": "foundationFilterStyles",
16188
+ "module": "src/filter/filter.styles.ts"
15785
16189
  }
15786
16190
  }
15787
16191
  ]
15788
16192
  },
15789
16193
  {
15790
16194
  "kind": "javascript-module",
15791
- "path": "src/file-upload/file-upload.template.ts",
16195
+ "path": "src/filter/filter.template.ts",
15792
16196
  "declarations": [
15793
16197
  {
15794
16198
  "kind": "function",
15795
- "name": "getPrefixedFileUpload",
16199
+ "name": "getPrefixedFilterTemplate",
15796
16200
  "parameters": [
15797
16201
  {
15798
16202
  "name": "prefix",
@@ -15804,762 +16208,354 @@
15804
16208
  },
15805
16209
  {
15806
16210
  "kind": "variable",
15807
- "name": "foundationFileUploadTemplate",
15808
- "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
16211
+ "name": "foundationFilterTemplate",
16212
+ "type": {
16213
+ "text": "ViewTemplate<Filter>"
16214
+ },
16215
+ "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
15809
16216
  }
15810
16217
  ],
15811
16218
  "exports": [
15812
16219
  {
15813
16220
  "kind": "js",
15814
- "name": "getPrefixedFileUpload",
16221
+ "name": "getPrefixedFilterTemplate",
15815
16222
  "declaration": {
15816
- "name": "getPrefixedFileUpload",
15817
- "module": "src/file-upload/file-upload.template.ts"
16223
+ "name": "getPrefixedFilterTemplate",
16224
+ "module": "src/filter/filter.template.ts"
15818
16225
  }
15819
16226
  },
15820
16227
  {
15821
16228
  "kind": "js",
15822
- "name": "foundationFileUploadTemplate",
16229
+ "name": "foundationFilterTemplate",
15823
16230
  "declaration": {
15824
- "name": "foundationFileUploadTemplate",
15825
- "module": "src/file-upload/file-upload.template.ts"
16231
+ "name": "foundationFilterTemplate",
16232
+ "module": "src/filter/filter.template.ts"
15826
16233
  }
15827
16234
  }
15828
16235
  ]
15829
16236
  },
15830
16237
  {
15831
16238
  "kind": "javascript-module",
15832
- "path": "src/file-upload/file-upload.ts",
16239
+ "path": "src/filter/filter.ts",
15833
16240
  "declarations": [
15834
16241
  {
15835
16242
  "kind": "class",
15836
16243
  "description": "",
15837
- "name": "FileUpload",
16244
+ "name": "Filter",
15838
16245
  "members": [
15839
16246
  {
15840
16247
  "kind": "field",
15841
- "name": "fileInput",
16248
+ "name": "textFilterField",
15842
16249
  "type": {
15843
- "text": "HTMLInputElement"
16250
+ "text": "TextField"
15844
16251
  },
15845
16252
  "privacy": "public"
15846
16253
  },
15847
16254
  {
15848
16255
  "kind": "field",
15849
- "name": "acceptedFormats",
16256
+ "name": "numFilterFieldMin",
15850
16257
  "type": {
15851
- "text": "array"
16258
+ "text": "TextField"
15852
16259
  },
15853
- "privacy": "private",
15854
- "default": "[]"
16260
+ "privacy": "public"
15855
16261
  },
15856
16262
  {
15857
16263
  "kind": "field",
15858
- "name": "selectedFiles",
16264
+ "name": "numFilterFieldMax",
15859
16265
  "type": {
15860
- "text": "File[]"
16266
+ "text": "TextField"
15861
16267
  },
15862
- "privacy": "private"
15863
- },
15864
- {
15865
- "kind": "field",
15866
- "name": "gridCriteria",
15867
- "type": {
15868
- "text": "string"
15869
- }
16268
+ "privacy": "public"
15870
16269
  },
15871
16270
  {
15872
16271
  "kind": "field",
15873
- "name": "connect",
16272
+ "name": "dateFilterFieldMin",
15874
16273
  "type": {
15875
- "text": "Connect"
15876
- }
16274
+ "text": "TextField"
16275
+ },
16276
+ "privacy": "public"
15877
16277
  },
15878
16278
  {
15879
16279
  "kind": "field",
15880
- "name": "session",
16280
+ "name": "dateFilterFieldMax",
15881
16281
  "type": {
15882
- "text": "Session"
15883
- }
16282
+ "text": "TextField"
16283
+ },
16284
+ "privacy": "public"
15884
16285
  },
15885
16286
  {
15886
16287
  "kind": "field",
15887
- "name": "label",
16288
+ "name": "fieldName",
15888
16289
  "type": {
15889
16290
  "text": "string"
15890
16291
  }
15891
16292
  },
15892
16293
  {
15893
16294
  "kind": "field",
15894
- "name": "accept",
16295
+ "name": "type",
15895
16296
  "type": {
15896
- "text": "string"
16297
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15897
16298
  },
15898
- "default": "''"
15899
- },
15900
- {
15901
- "kind": "method",
15902
- "name": "acceptChanged"
16299
+ "default": "'text'"
15903
16300
  },
15904
16301
  {
15905
16302
  "kind": "field",
15906
- "name": "fileSizeLimitBytes",
15907
- "default": "104_857_600",
16303
+ "name": "label",
15908
16304
  "type": {
15909
- "text": "number"
16305
+ "text": "string"
15910
16306
  }
15911
16307
  },
15912
16308
  {
15913
16309
  "kind": "field",
15914
- "name": "uploadedFilesResourceName",
16310
+ "name": "target",
15915
16311
  "type": {
15916
16312
  "text": "string"
15917
16313
  },
15918
- "default": "'ALL_FILE_ATTACHMENTS'"
16314
+ "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page."
15919
16315
  },
15920
16316
  {
15921
16317
  "kind": "field",
15922
- "name": "uploadEventName",
16318
+ "name": "textFilter",
15923
16319
  "type": {
15924
16320
  "text": "string"
15925
16321
  },
15926
- "default": "'gwf/attachment-handler/upload'"
16322
+ "default": "''"
15927
16323
  },
15928
16324
  {
15929
16325
  "kind": "field",
15930
- "name": "fieldName",
16326
+ "name": "numFilterMin",
15931
16327
  "type": {
15932
- "text": "string"
16328
+ "text": "number"
15933
16329
  }
15934
16330
  },
15935
- {
15936
- "kind": "method",
15937
- "name": "fieldNameChanged"
15938
- },
15939
16331
  {
15940
16332
  "kind": "field",
15941
- "name": "entityId",
16333
+ "name": "numFilterMax",
15942
16334
  "type": {
15943
- "text": "string"
16335
+ "text": "number"
15944
16336
  }
15945
16337
  },
15946
- {
15947
- "kind": "method",
15948
- "name": "entityIdChanged"
15949
- },
15950
16338
  {
15951
16339
  "kind": "field",
15952
- "name": "uploadKey",
16340
+ "name": "dateFilterMin",
15953
16341
  "type": {
15954
16342
  "text": "string"
15955
16343
  }
15956
16344
  },
15957
16345
  {
15958
16346
  "kind": "field",
15959
- "name": "gridFields",
16347
+ "name": "dateFilterMax",
15960
16348
  "type": {
15961
16349
  "text": "string"
15962
- },
15963
- "default": "''"
16350
+ }
15964
16351
  },
15965
16352
  {
15966
16353
  "kind": "field",
15967
- "name": "fileName",
16354
+ "name": "dateMinMS",
15968
16355
  "type": {
15969
- "text": "string"
15970
- },
15971
- "default": "''"
16356
+ "text": "number"
16357
+ }
15972
16358
  },
15973
16359
  {
15974
16360
  "kind": "field",
15975
- "name": "uploadedFilesList",
16361
+ "name": "dateMaxMS",
15976
16362
  "type": {
15977
- "text": "array"
15978
- },
15979
- "default": "[]"
16363
+ "text": "number"
16364
+ }
15980
16365
  },
15981
16366
  {
15982
16367
  "kind": "field",
15983
- "name": "filesGridColumnDefinitions",
16368
+ "name": "enumOptions",
15984
16369
  "type": {
15985
- "text": "ColumnDefinition[]"
15986
- },
15987
- "default": "[]"
16370
+ "text": "string"
16371
+ }
15988
16372
  },
15989
16373
  {
15990
16374
  "kind": "field",
15991
- "name": "downloadEventName",
16375
+ "name": "enumFilterOptions",
15992
16376
  "type": {
15993
- "text": "Function"
16377
+ "text": "any[]"
15994
16378
  },
15995
- "privacy": "public"
16379
+ "default": "[{ name: 'All', value: 'all', selected: true }]"
15996
16380
  },
15997
16381
  {
15998
16382
  "kind": "method",
15999
- "name": "setupGrid"
16383
+ "name": "textFilterChanged",
16384
+ "parameters": [
16385
+ {
16386
+ "name": "oldCriteria",
16387
+ "type": {
16388
+ "text": "string"
16389
+ }
16390
+ },
16391
+ {
16392
+ "name": "newCriteria",
16393
+ "type": {
16394
+ "text": "string"
16395
+ }
16396
+ }
16397
+ ]
16000
16398
  },
16001
16399
  {
16002
16400
  "kind": "method",
16003
- "name": "handleStreamRowOperation",
16004
- "privacy": "private",
16401
+ "name": "numFilterMinChanged",
16005
16402
  "parameters": [
16006
16403
  {
16007
- "name": "data",
16404
+ "name": "oldMin",
16008
16405
  "type": {
16009
- "text": "Message<any>"
16406
+ "text": "string"
16407
+ }
16408
+ },
16409
+ {
16410
+ "name": "newMin",
16411
+ "type": {
16412
+ "text": "string"
16010
16413
  }
16011
16414
  }
16012
16415
  ]
16013
16416
  },
16014
16417
  {
16015
16418
  "kind": "method",
16016
- "name": "setRowData"
16419
+ "name": "numFilterMaxChanged",
16420
+ "parameters": [
16421
+ {
16422
+ "name": "oldMax",
16423
+ "type": {
16424
+ "text": "string"
16425
+ }
16426
+ },
16427
+ {
16428
+ "name": "newMax",
16429
+ "type": {
16430
+ "text": "string"
16431
+ }
16432
+ }
16433
+ ]
16017
16434
  },
16018
16435
  {
16019
16436
  "kind": "method",
16020
- "name": "setColumnDefs"
16437
+ "name": "handleNumericFilter",
16438
+ "privacy": "private",
16439
+ "parameters": [
16440
+ {
16441
+ "name": "min",
16442
+ "type": {
16443
+ "text": "number"
16444
+ }
16445
+ },
16446
+ {
16447
+ "name": "max",
16448
+ "type": {
16449
+ "text": "number"
16450
+ }
16451
+ }
16452
+ ]
16021
16453
  },
16022
16454
  {
16023
16455
  "kind": "method",
16024
- "name": "getDownloadColumn",
16025
- "privacy": "public"
16456
+ "name": "formatDate",
16457
+ "privacy": "private",
16458
+ "return": {
16459
+ "type": {
16460
+ "text": ""
16461
+ }
16462
+ },
16463
+ "parameters": [
16464
+ {
16465
+ "name": "epoch",
16466
+ "type": {
16467
+ "text": "number"
16468
+ },
16469
+ "description": "ms since unix epoch"
16470
+ }
16471
+ ],
16472
+ "description": "Example: 1634083200000 -> '20211013-00:00:00'"
16026
16473
  },
16027
16474
  {
16028
16475
  "kind": "method",
16029
- "name": "getColumnObject",
16030
- "privacy": "public",
16476
+ "name": "dateFilterMinChanged",
16031
16477
  "parameters": [
16032
16478
  {
16033
- "name": "column"
16479
+ "name": "oldMin",
16480
+ "type": {
16481
+ "text": "string"
16482
+ }
16483
+ },
16484
+ {
16485
+ "name": "newMin",
16486
+ "type": {
16487
+ "text": "string"
16488
+ }
16034
16489
  }
16035
16490
  ]
16036
16491
  },
16037
16492
  {
16038
16493
  "kind": "method",
16039
- "name": "handleClick",
16040
- "privacy": "public"
16041
- },
16042
- {
16043
- "kind": "method",
16044
- "name": "onInputChange",
16045
- "privacy": "public",
16494
+ "name": "dateFilterMaxChanged",
16046
16495
  "parameters": [
16047
16496
  {
16048
- "name": "e"
16497
+ "name": "oldMax",
16498
+ "type": {
16499
+ "text": "string"
16500
+ }
16501
+ },
16502
+ {
16503
+ "name": "newMax",
16504
+ "type": {
16505
+ "text": "string"
16506
+ }
16049
16507
  }
16050
16508
  ]
16051
16509
  },
16052
16510
  {
16053
16511
  "kind": "method",
16054
- "name": "onFilesSelected",
16055
- "privacy": "public",
16512
+ "name": "handleDateFilter",
16513
+ "privacy": "private",
16056
16514
  "parameters": [
16057
16515
  {
16058
- "name": "files",
16516
+ "name": "min",
16059
16517
  "type": {
16060
- "text": "File[]"
16518
+ "text": "number"
16519
+ }
16520
+ },
16521
+ {
16522
+ "name": "max",
16523
+ "type": {
16524
+ "text": "number"
16061
16525
  }
16062
16526
  }
16063
16527
  ]
16064
16528
  },
16065
16529
  {
16066
16530
  "kind": "method",
16067
- "name": "handleFileUpload",
16531
+ "name": "clear",
16068
16532
  "privacy": "public"
16069
16533
  },
16070
16534
  {
16071
16535
  "kind": "method",
16072
- "name": "handleFileDownload",
16536
+ "name": "onBooleanFilterSelection",
16073
16537
  "privacy": "public",
16074
16538
  "parameters": [
16075
16539
  {
16076
- "name": "rowData",
16540
+ "name": "selection",
16077
16541
  "type": {
16078
- "text": "any"
16542
+ "text": "'all' | 'true' | 'false' | 'null'"
16079
16543
  }
16080
16544
  }
16081
16545
  ]
16082
16546
  },
16083
16547
  {
16084
16548
  "kind": "method",
16085
- "name": "clearSelection",
16086
- "privacy": "public"
16087
- },
16088
- {
16089
- "kind": "field",
16090
- "name": "_presentation",
16091
- "type": {
16092
- "text": "ComponentPresentation | null | undefined"
16093
- },
16094
- "privacy": "private",
16095
- "default": "void 0",
16096
- "inheritedFrom": {
16097
- "name": "FoundationElement",
16098
- "module": "src/foundation-element/foundation-element.ts"
16099
- }
16100
- },
16101
- {
16102
- "kind": "field",
16103
- "name": "$presentation",
16104
- "type": {
16105
- "text": "ComponentPresentation | null"
16106
- },
16107
- "privacy": "public",
16108
- "description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
16109
- "inheritedFrom": {
16110
- "name": "FoundationElement",
16111
- "module": "src/foundation-element/foundation-element.ts"
16112
- }
16113
- },
16114
- {
16115
- "kind": "field",
16116
- "name": "template",
16117
- "type": {
16118
- "text": "ElementViewTemplate | void | null"
16119
- },
16120
- "privacy": "public",
16121
- "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.",
16122
- "inheritedFrom": {
16123
- "name": "FoundationElement",
16124
- "module": "src/foundation-element/foundation-element.ts"
16125
- }
16126
- },
16127
- {
16128
- "kind": "method",
16129
- "name": "templateChanged",
16130
- "privacy": "protected",
16131
- "return": {
16132
- "type": {
16133
- "text": "void"
16134
- }
16135
- },
16136
- "inheritedFrom": {
16137
- "name": "FoundationElement",
16138
- "module": "src/foundation-element/foundation-element.ts"
16139
- }
16140
- },
16141
- {
16142
- "kind": "field",
16143
- "name": "styles",
16144
- "type": {
16145
- "text": "ElementStyles | void | null"
16146
- },
16147
- "privacy": "public",
16148
- "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.",
16149
- "inheritedFrom": {
16150
- "name": "FoundationElement",
16151
- "module": "src/foundation-element/foundation-element.ts"
16152
- }
16153
- },
16154
- {
16155
- "kind": "method",
16156
- "name": "stylesChanged",
16157
- "privacy": "protected",
16158
- "return": {
16159
- "type": {
16160
- "text": "void"
16161
- }
16162
- },
16163
- "inheritedFrom": {
16164
- "name": "FoundationElement",
16165
- "module": "src/foundation-element/foundation-element.ts"
16166
- }
16167
- },
16168
- {
16169
- "kind": "method",
16170
- "name": "compose",
16171
- "privacy": "public",
16172
- "static": true,
16173
- "return": {
16174
- "type": {
16175
- "text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
16176
- }
16177
- },
16178
- "parameters": [
16179
- {
16180
- "name": "this",
16181
- "type": {
16182
- "text": "K"
16183
- }
16184
- },
16185
- {
16186
- "name": "elementDefinition",
16187
- "type": {
16188
- "text": "T"
16189
- },
16190
- "description": "The definition of the element to create the registry\nfunction for."
16191
- }
16192
- ],
16193
- "description": "Defines an element registry function with a set of element definition defaults.",
16194
- "inheritedFrom": {
16195
- "name": "FoundationElement",
16196
- "module": "src/foundation-element/foundation-element.ts"
16197
- }
16198
- }
16199
- ],
16200
- "attributes": [
16201
- {
16202
- "name": "label",
16203
- "type": {
16204
- "text": "string"
16205
- },
16206
- "fieldName": "label"
16207
- },
16208
- {
16209
- "name": "accept",
16210
- "type": {
16211
- "text": "string"
16212
- },
16213
- "default": "''",
16214
- "fieldName": "accept"
16215
- },
16216
- {
16217
- "name": "file-size-limit-bytes",
16218
- "default": "FILE_SIZE_LIMIT",
16219
- "resolveInitializer": {
16220
- "module": "src/file-upload/file-upload.ts"
16221
- },
16222
- "fieldName": "fileSizeLimitBytes"
16223
- },
16224
- {
16225
- "name": "uploaded-files-resource-name",
16226
- "type": {
16227
- "text": "string"
16228
- },
16229
- "default": "'ALL_FILE_ATTACHMENTS'",
16230
- "fieldName": "uploadedFilesResourceName"
16231
- },
16232
- {
16233
- "name": "upload-event-name",
16234
- "type": {
16235
- "text": "string"
16236
- },
16237
- "default": "'gwf/attachment-handler/upload'",
16238
- "fieldName": "uploadEventName"
16239
- },
16240
- {
16241
- "name": "field-name",
16242
- "type": {
16243
- "text": "string"
16244
- },
16245
- "fieldName": "fieldName"
16246
- },
16247
- {
16248
- "name": "entity-id",
16249
- "type": {
16250
- "text": "string"
16251
- },
16252
- "fieldName": "entityId"
16253
- },
16254
- {
16255
- "name": "upload-key",
16256
- "type": {
16257
- "text": "string"
16258
- },
16259
- "fieldName": "uploadKey"
16260
- },
16261
- {
16262
- "name": "grid-fields",
16263
- "type": {
16264
- "text": "string"
16265
- },
16266
- "default": "''",
16267
- "fieldName": "gridFields"
16268
- }
16269
- ],
16270
- "superclass": {
16271
- "name": "FoundationElement",
16272
- "package": "@microsoft/fast-foundation"
16273
- },
16274
- "tagName": "%%prefix%%-file-upload",
16275
- "customElement": true
16276
- },
16277
- {
16278
- "kind": "variable",
16279
- "name": "foundationFileUploadShadowOptions",
16280
- "type": {
16281
- "text": "ShadowRootInit"
16282
- },
16283
- "default": "undefined"
16284
- },
16285
- {
16286
- "kind": "variable",
16287
- "name": "defaultFileUploadConfig",
16288
- "type": {
16289
- "text": "object"
16290
- },
16291
- "default": "{}"
16292
- },
16293
- {
16294
- "kind": "variable",
16295
- "name": "foundationFileUpload",
16296
- "description": "The Foundation File Upload",
16297
- "privacy": "public"
16298
- }
16299
- ],
16300
- "exports": [
16301
- {
16302
- "kind": "js",
16303
- "name": "FileUpload",
16304
- "declaration": {
16305
- "name": "FileUpload",
16306
- "module": "src/file-upload/file-upload.ts"
16307
- }
16308
- },
16309
- {
16310
- "kind": "js",
16311
- "name": "foundationFileUploadShadowOptions",
16312
- "declaration": {
16313
- "name": "foundationFileUploadShadowOptions",
16314
- "module": "src/file-upload/file-upload.ts"
16315
- }
16316
- },
16317
- {
16318
- "kind": "js",
16319
- "name": "defaultFileUploadConfig",
16320
- "declaration": {
16321
- "name": "defaultFileUploadConfig",
16322
- "module": "src/file-upload/file-upload.ts"
16323
- }
16324
- },
16325
- {
16326
- "kind": "js",
16327
- "name": "foundationFileUpload",
16328
- "declaration": {
16329
- "name": "foundationFileUpload",
16330
- "module": "src/file-upload/file-upload.ts"
16331
- }
16332
- }
16333
- ]
16334
- },
16335
- {
16336
- "kind": "javascript-module",
16337
- "path": "src/file-upload/file-upload.utils.ts",
16338
- "declarations": [
16339
- {
16340
- "kind": "function",
16341
- "name": "createFormData",
16342
- "parameters": [
16343
- {
16344
- "name": "files",
16345
- "type": {
16346
- "text": "Array<File>"
16347
- }
16348
- }
16349
- ]
16350
- },
16351
- {
16352
- "kind": "function",
16353
- "name": "uploadFiles",
16354
- "parameters": [
16355
- {
16356
- "name": "url",
16357
- "type": {
16358
- "text": "string"
16359
- }
16360
- },
16361
- {
16362
- "name": "formData",
16363
- "type": {
16364
- "text": "FormData"
16365
- }
16366
- },
16367
- {
16368
- "name": "authToken",
16369
- "type": {
16370
- "text": "string"
16371
- }
16372
- }
16373
- ]
16374
- },
16375
- {
16376
- "kind": "function",
16377
- "name": "downloadFile",
16378
- "parameters": [
16379
- {
16380
- "name": "url",
16381
- "type": {
16382
- "text": "string"
16383
- }
16384
- },
16385
- {
16386
- "name": "filename",
16387
- "type": {
16388
- "text": "string"
16389
- }
16390
- },
16391
- {
16392
- "name": "authToken",
16393
- "type": {
16394
- "text": "string"
16395
- }
16396
- },
16397
- {
16398
- "name": "method",
16399
- "default": "'GET'",
16400
- "type": {
16401
- "text": "string"
16402
- }
16403
- },
16404
- {
16405
- "name": "showNotifications",
16406
- "optional": true,
16407
- "type": {
16408
- "text": "boolean"
16409
- }
16410
- },
16411
- {
16412
- "name": "body",
16413
- "optional": true,
16414
- "type": {
16415
- "text": "any"
16416
- }
16417
- }
16418
- ]
16419
- }
16420
- ],
16421
- "exports": [
16422
- {
16423
- "kind": "js",
16424
- "name": "createFormData",
16425
- "declaration": {
16426
- "name": "createFormData",
16427
- "module": "src/file-upload/file-upload.utils.ts"
16428
- }
16429
- },
16430
- {
16431
- "kind": "js",
16432
- "name": "uploadFiles",
16433
- "declaration": {
16434
- "name": "uploadFiles",
16435
- "module": "src/file-upload/file-upload.utils.ts"
16436
- }
16437
- },
16438
- {
16439
- "kind": "js",
16440
- "name": "downloadFile",
16441
- "declaration": {
16442
- "name": "downloadFile",
16443
- "module": "src/file-upload/file-upload.utils.ts"
16444
- }
16445
- }
16446
- ]
16447
- },
16448
- {
16449
- "kind": "javascript-module",
16450
- "path": "src/file-upload/index.ts",
16451
- "declarations": [],
16452
- "exports": [
16453
- {
16454
- "kind": "js",
16455
- "name": "*",
16456
- "declaration": {
16457
- "name": "*",
16458
- "package": "./file-upload"
16459
- }
16460
- },
16461
- {
16462
- "kind": "js",
16463
- "name": "*",
16464
- "declaration": {
16465
- "name": "*",
16466
- "package": "./file-upload.template"
16467
- }
16468
- },
16469
- {
16470
- "kind": "js",
16471
- "name": "*",
16472
- "declaration": {
16473
- "name": "*",
16474
- "package": "./file-upload.styles"
16475
- }
16476
- },
16477
- {
16478
- "kind": "js",
16479
- "name": "*",
16480
- "declaration": {
16481
- "name": "*",
16482
- "package": "./file-upload.utils"
16483
- }
16484
- }
16485
- ]
16486
- },
16487
- {
16488
- "kind": "javascript-module",
16489
- "path": "src/error-boundary/error-boundary.template.ts",
16490
- "declarations": [
16491
- {
16492
- "kind": "variable",
16493
- "name": "foundationErrorBoundaryTemplate",
16494
- "type": {
16495
- "text": "ViewTemplate<ErrorBoundary>"
16496
- },
16497
- "default": "html`\n <template ${ref('errorBoundary')}>\n <slot></slot>\n </template>\n`"
16498
- }
16499
- ],
16500
- "exports": [
16501
- {
16502
- "kind": "js",
16503
- "name": "foundationErrorBoundaryTemplate",
16504
- "declaration": {
16505
- "name": "foundationErrorBoundaryTemplate",
16506
- "module": "src/error-boundary/error-boundary.template.ts"
16507
- }
16508
- }
16509
- ]
16510
- },
16511
- {
16512
- "kind": "javascript-module",
16513
- "path": "src/error-boundary/error-boundary.ts",
16514
- "declarations": [
16515
- {
16516
- "kind": "variable",
16517
- "name": "foundationErrorBoundaryShadowOptions",
16518
- "type": {
16519
- "text": "ShadowRootInit"
16520
- },
16521
- "default": "{\n mode: 'open',\n delegatesFocus: true,\n}"
16522
- },
16523
- {
16524
- "kind": "class",
16525
- "description": "",
16526
- "name": "ErrorBoundary",
16527
- "members": [
16528
- {
16529
- "kind": "field",
16530
- "name": "logger",
16531
- "privacy": "private"
16532
- },
16533
- {
16534
- "kind": "field",
16535
- "name": "errorBoundary",
16536
- "type": {
16537
- "text": "HTMLElement"
16538
- }
16539
- },
16540
- {
16541
- "kind": "field",
16542
- "name": "resourceName",
16543
- "description": "The resource name holding new and existing notifications",
16544
- "privacy": "public"
16545
- },
16546
- {
16547
- "kind": "field",
16548
- "name": "closeTimeout",
16549
- "type": {
16550
- "text": "number"
16551
- },
16552
- "default": "0",
16553
- "description": "Number of milliseconds before toast will disappear. Leave empty or set to 0 to keep toast open indefinitely",
16554
- "privacy": "public"
16555
- },
16556
- {
16557
- "kind": "field",
16558
- "name": "datasource",
16559
- "type": {
16560
- "text": "Datasource"
16561
- },
16562
- "privacy": "private"
16549
+ "name": "onEnumFilterSelection",
16550
+ "privacy": "public",
16551
+ "parameters": [
16552
+ {
16553
+ "name": "selection",
16554
+ "type": {
16555
+ "text": "string"
16556
+ }
16557
+ }
16558
+ ]
16563
16559
  },
16564
16560
  {
16565
16561
  "kind": "field",
@@ -16675,65 +16671,77 @@
16675
16671
  ],
16676
16672
  "attributes": [
16677
16673
  {
16678
- "name": "resource-name",
16679
- "description": "The resource name holding new and existing notifications",
16680
- "fieldName": "resourceName"
16674
+ "name": "fieldName",
16675
+ "type": {
16676
+ "text": "string"
16677
+ },
16678
+ "fieldName": "fieldName"
16681
16679
  },
16682
16680
  {
16683
- "name": "close-timeout",
16681
+ "name": "type",
16684
16682
  "type": {
16685
- "text": "number"
16683
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16686
16684
  },
16687
- "default": "0",
16688
- "description": "Number of milliseconds before toast will disappear. Leave empty or set to 0 to keep toast open indefinitely",
16689
- "fieldName": "closeTimeout"
16685
+ "default": "'text'",
16686
+ "fieldName": "type"
16687
+ },
16688
+ {
16689
+ "name": "label",
16690
+ "type": {
16691
+ "text": "string"
16692
+ },
16693
+ "fieldName": "label"
16694
+ },
16695
+ {
16696
+ "name": "target",
16697
+ "type": {
16698
+ "text": "string"
16699
+ },
16700
+ "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page.",
16701
+ "fieldName": "target"
16702
+ },
16703
+ {
16704
+ "name": "enumOptions",
16705
+ "type": {
16706
+ "text": "string"
16707
+ },
16708
+ "fieldName": "enumOptions"
16690
16709
  }
16691
16710
  ],
16692
16711
  "superclass": {
16693
16712
  "name": "FoundationElement",
16694
16713
  "package": "@microsoft/fast-foundation"
16695
16714
  },
16696
- "deprecated": "true",
16697
- "tagName": "%%prefix%%-error-boundary",
16715
+ "tagName": "%%prefix%%-filter",
16698
16716
  "customElement": true
16699
16717
  },
16700
16718
  {
16701
16719
  "kind": "variable",
16702
- "name": "foundationErrorBoundary",
16703
- "description": "The Foundation Error Boundary",
16704
- "privacy": "public"
16720
+ "name": "foundationFilter"
16705
16721
  }
16706
16722
  ],
16707
16723
  "exports": [
16708
16724
  {
16709
16725
  "kind": "js",
16710
- "name": "foundationErrorBoundaryShadowOptions",
16711
- "declaration": {
16712
- "name": "foundationErrorBoundaryShadowOptions",
16713
- "module": "src/error-boundary/error-boundary.ts"
16714
- }
16715
- },
16716
- {
16717
- "kind": "js",
16718
- "name": "ErrorBoundary",
16726
+ "name": "Filter",
16719
16727
  "declaration": {
16720
- "name": "ErrorBoundary",
16721
- "module": "src/error-boundary/error-boundary.ts"
16728
+ "name": "Filter",
16729
+ "module": "src/filter/filter.ts"
16722
16730
  }
16723
16731
  },
16724
16732
  {
16725
16733
  "kind": "js",
16726
- "name": "foundationErrorBoundary",
16734
+ "name": "foundationFilter",
16727
16735
  "declaration": {
16728
- "name": "foundationErrorBoundary",
16729
- "module": "src/error-boundary/error-boundary.ts"
16736
+ "name": "foundationFilter",
16737
+ "module": "src/filter/filter.ts"
16730
16738
  }
16731
16739
  }
16732
16740
  ]
16733
16741
  },
16734
16742
  {
16735
16743
  "kind": "javascript-module",
16736
- "path": "src/error-boundary/index.ts",
16744
+ "path": "src/filter/index.ts",
16737
16745
  "declarations": [],
16738
16746
  "exports": [
16739
16747
  {
@@ -16741,7 +16749,7 @@
16741
16749
  "name": "*",
16742
16750
  "declaration": {
16743
16751
  "name": "*",
16744
- "package": "./error-boundary.template"
16752
+ "package": "./filter.styles"
16745
16753
  }
16746
16754
  },
16747
16755
  {
@@ -16749,106 +16757,246 @@
16749
16757
  "name": "*",
16750
16758
  "declaration": {
16751
16759
  "name": "*",
16752
- "package": "./error-boundary"
16753
- }
16754
- },
16755
- {
16756
- "kind": "js",
16757
- "name": "ErrorBoundaryEvent",
16758
- "declaration": {
16759
- "name": "ErrorBoundaryEvent",
16760
- "package": "@genesislcap/foundation-errors"
16760
+ "package": "./filter.template"
16761
16761
  }
16762
16762
  },
16763
16763
  {
16764
16764
  "kind": "js",
16765
- "name": "ErrorStructure",
16765
+ "name": "*",
16766
16766
  "declaration": {
16767
- "name": "ErrorStructure",
16768
- "package": "@genesislcap/foundation-errors"
16767
+ "name": "*",
16768
+ "package": "./filter"
16769
16769
  }
16770
16770
  }
16771
16771
  ]
16772
16772
  },
16773
16773
  {
16774
16774
  "kind": "javascript-module",
16775
- "path": "src/flex-layout/flex-layout.styles.ts",
16775
+ "path": "src/filter-bar/filter-bar.styles.ts",
16776
16776
  "declarations": [
16777
16777
  {
16778
- "kind": "variable",
16779
- "name": "foundationFlexLayoutStyles",
16780
- "type": {
16781
- "text": "ElementStyles"
16778
+ "kind": "function",
16779
+ "name": "foundationFilterBarStyles",
16780
+ "return": {
16781
+ "type": {
16782
+ "text": "ElementStyles"
16783
+ }
16782
16784
  },
16783
- "default": "css`\n :host {\n width: 100%;\n height: 100%;\n }\n\n slot {\n width: 100%;\n height: 100%;\n display: flex;\n }\n\n ${flexLayoutRWDStyles()}\n ${flexLayoutRWDStyles('lg')}\n ${flexLayoutRWDStyles('md')}\n ${flexLayoutRWDStyles('sm')}\n`"
16785
+ "parameters": [
16786
+ {
16787
+ "name": "context",
16788
+ "type": {
16789
+ "text": "ElementDefinitionContext"
16790
+ }
16791
+ },
16792
+ {
16793
+ "name": "definition",
16794
+ "type": {
16795
+ "text": "FoundationElementDefinition"
16796
+ }
16797
+ }
16798
+ ]
16784
16799
  }
16785
16800
  ],
16786
16801
  "exports": [
16787
16802
  {
16788
16803
  "kind": "js",
16789
- "name": "foundationFlexLayoutStyles",
16804
+ "name": "foundationFilterBarStyles",
16790
16805
  "declaration": {
16791
- "name": "foundationFlexLayoutStyles",
16792
- "module": "src/flex-layout/flex-layout.styles.ts"
16806
+ "name": "foundationFilterBarStyles",
16807
+ "module": "src/filter-bar/filter-bar.styles.ts"
16793
16808
  }
16794
16809
  }
16795
16810
  ]
16796
16811
  },
16797
16812
  {
16798
16813
  "kind": "javascript-module",
16799
- "path": "src/flex-layout/flex-layout.template.ts",
16814
+ "path": "src/filter-bar/filter-bar.template.ts",
16800
16815
  "declarations": [
16816
+ {
16817
+ "kind": "function",
16818
+ "name": "filterBarTemplate",
16819
+ "parameters": [
16820
+ {
16821
+ "name": "prefix",
16822
+ "type": {
16823
+ "text": "string"
16824
+ }
16825
+ }
16826
+ ]
16827
+ },
16801
16828
  {
16802
16829
  "kind": "variable",
16803
- "name": "foundationFlexLayoutTemplate",
16830
+ "name": "foundationFilterBarTemplate",
16804
16831
  "type": {
16805
- "text": "ViewTemplate<FlexLayout>"
16832
+ "text": "ViewTemplate<FilterBar>"
16806
16833
  },
16807
- "default": "html`\n <template>\n <slot></slot>\n </template>\n`"
16834
+ "default": "html`\n ${(x) => (x.ready ? filterBarTemplate(getPrefix(x)) : loadingTemplate)}\n`"
16808
16835
  }
16809
16836
  ],
16810
16837
  "exports": [
16811
16838
  {
16812
16839
  "kind": "js",
16813
- "name": "foundationFlexLayoutTemplate",
16840
+ "name": "filterBarTemplate",
16814
16841
  "declaration": {
16815
- "name": "foundationFlexLayoutTemplate",
16816
- "module": "src/flex-layout/flex-layout.template.ts"
16842
+ "name": "filterBarTemplate",
16843
+ "module": "src/filter-bar/filter-bar.template.ts"
16844
+ }
16845
+ },
16846
+ {
16847
+ "kind": "js",
16848
+ "name": "foundationFilterBarTemplate",
16849
+ "declaration": {
16850
+ "name": "foundationFilterBarTemplate",
16851
+ "module": "src/filter-bar/filter-bar.template.ts"
16817
16852
  }
16818
16853
  }
16819
16854
  ]
16820
16855
  },
16821
16856
  {
16822
16857
  "kind": "javascript-module",
16823
- "path": "src/flex-layout/flex-layout.ts",
16858
+ "path": "src/filter-bar/filter-bar.ts",
16824
16859
  "declarations": [
16825
16860
  {
16826
16861
  "kind": "variable",
16827
- "name": "foundationFlexLayoutShadowOptions",
16828
- "type": {
16829
- "text": "ShadowRootInit"
16830
- },
16831
- "default": "undefined"
16832
- },
16833
- {
16834
- "kind": "variable",
16835
- "name": "defaultFlexLayoutConfig",
16862
+ "name": "DEFUALT_FILTER_BAR_COLUMNS",
16836
16863
  "type": {
16837
- "text": "object"
16864
+ "text": "number"
16838
16865
  },
16839
- "default": "{}"
16866
+ "default": "5"
16840
16867
  },
16841
16868
  {
16842
16869
  "kind": "class",
16843
16870
  "description": "",
16844
- "name": "FlexLayout",
16845
- "superclass": {
16846
- "name": "FoundationElement",
16847
- "package": "@microsoft/fast-foundation"
16848
- },
16849
- "tagName": "%%prefix%%-flex-layout",
16850
- "customElement": true,
16871
+ "name": "FilterBar",
16851
16872
  "members": [
16873
+ {
16874
+ "kind": "field",
16875
+ "name": "resource",
16876
+ "type": {
16877
+ "text": "string"
16878
+ }
16879
+ },
16880
+ {
16881
+ "kind": "field",
16882
+ "name": "only",
16883
+ "type": {
16884
+ "text": "string"
16885
+ },
16886
+ "description": "Only generate filters for the specified fields, provided as a comma separated list.\nDefault behavior (if \"only\" is not set) is to generate filters for all fields based on metadata."
16887
+ },
16888
+ {
16889
+ "kind": "field",
16890
+ "name": "labels",
16891
+ "type": {
16892
+ "text": "string"
16893
+ },
16894
+ "description": "Labels for the specified fields, to be used alongside \"only\" prop."
16895
+ },
16896
+ {
16897
+ "kind": "field",
16898
+ "name": "target",
16899
+ "type": {
16900
+ "text": "string"
16901
+ },
16902
+ "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page."
16903
+ },
16904
+ {
16905
+ "kind": "field",
16906
+ "name": "columns",
16907
+ "type": {
16908
+ "text": "number"
16909
+ },
16910
+ "default": "5"
16911
+ },
16912
+ {
16913
+ "kind": "field",
16914
+ "name": "ready",
16915
+ "type": {
16916
+ "text": "boolean"
16917
+ },
16918
+ "default": "false"
16919
+ },
16920
+ {
16921
+ "kind": "field",
16922
+ "name": "fields",
16923
+ "type": {
16924
+ "text": "MetadataDetail[]"
16925
+ }
16926
+ },
16927
+ {
16928
+ "kind": "field",
16929
+ "name": "connect",
16930
+ "type": {
16931
+ "text": "Connect"
16932
+ }
16933
+ },
16934
+ {
16935
+ "kind": "field",
16936
+ "name": "filterGrid",
16937
+ "type": {
16938
+ "text": "HTMLDivElement"
16939
+ },
16940
+ "privacy": "public"
16941
+ },
16942
+ {
16943
+ "kind": "field",
16944
+ "name": "collapsed",
16945
+ "type": {
16946
+ "text": "boolean"
16947
+ },
16948
+ "default": "true"
16949
+ },
16950
+ {
16951
+ "kind": "method",
16952
+ "name": "initLabels",
16953
+ "privacy": "private"
16954
+ },
16955
+ {
16956
+ "kind": "method",
16957
+ "name": "camelCasePreserveWhitespace",
16958
+ "privacy": "private",
16959
+ "parameters": [
16960
+ {
16961
+ "name": "input",
16962
+ "type": {
16963
+ "text": "string"
16964
+ }
16965
+ }
16966
+ ]
16967
+ },
16968
+ {
16969
+ "kind": "method",
16970
+ "name": "resourceChanged",
16971
+ "parameters": [
16972
+ {
16973
+ "name": "oldResource",
16974
+ "type": {
16975
+ "text": "string"
16976
+ }
16977
+ },
16978
+ {
16979
+ "name": "newResource",
16980
+ "type": {
16981
+ "text": "string"
16982
+ }
16983
+ }
16984
+ ]
16985
+ },
16986
+ {
16987
+ "kind": "method",
16988
+ "name": "init",
16989
+ "privacy": "private"
16990
+ },
16991
+ {
16992
+ "kind": "method",
16993
+ "name": "adjustColumnStyles",
16994
+ "privacy": "private"
16995
+ },
16996
+ {
16997
+ "kind": "method",
16998
+ "name": "toggle"
16999
+ },
16852
17000
  {
16853
17001
  "kind": "field",
16854
17002
  "name": "_presentation",
@@ -16960,59 +17108,123 @@
16960
17108
  "module": "src/foundation-element/foundation-element.ts"
16961
17109
  }
16962
17110
  }
16963
- ]
17111
+ ],
17112
+ "attributes": [
17113
+ {
17114
+ "name": "resource",
17115
+ "type": {
17116
+ "text": "string"
17117
+ },
17118
+ "fieldName": "resource"
17119
+ },
17120
+ {
17121
+ "name": "only",
17122
+ "type": {
17123
+ "text": "string"
17124
+ },
17125
+ "description": "Only generate filters for the specified fields, provided as a comma separated list.\nDefault behavior (if \"only\" is not set) is to generate filters for all fields based on metadata.",
17126
+ "fieldName": "only"
17127
+ },
17128
+ {
17129
+ "name": "labels",
17130
+ "type": {
17131
+ "text": "string"
17132
+ },
17133
+ "description": "Labels for the specified fields, to be used alongside \"only\" prop.",
17134
+ "fieldName": "labels"
17135
+ },
17136
+ {
17137
+ "name": "target",
17138
+ "type": {
17139
+ "text": "string"
17140
+ },
17141
+ "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page.",
17142
+ "fieldName": "target"
17143
+ },
17144
+ {
17145
+ "name": "columns",
17146
+ "type": {
17147
+ "text": "number"
17148
+ },
17149
+ "default": "DEFUALT_FILTER_BAR_COLUMNS",
17150
+ "resolveInitializer": {
17151
+ "module": "src/filter-bar/filter-bar.ts"
17152
+ },
17153
+ "fieldName": "columns"
17154
+ }
17155
+ ],
17156
+ "superclass": {
17157
+ "name": "FoundationElement",
17158
+ "package": "@microsoft/fast-foundation"
17159
+ },
17160
+ "tagName": "%%prefix%%-filter-bar",
17161
+ "customElement": true
16964
17162
  },
16965
17163
  {
16966
17164
  "kind": "variable",
16967
- "name": "foundationFlexLayout",
16968
- "description": "The Foundation Flex Layout",
17165
+ "name": "foundationFilterBar",
17166
+ "description": "The Foundation Filter",
16969
17167
  "privacy": "public"
16970
17168
  }
16971
17169
  ],
16972
17170
  "exports": [
16973
17171
  {
16974
17172
  "kind": "js",
16975
- "name": "foundationFlexLayoutShadowOptions",
17173
+ "name": "DEFUALT_FILTER_BAR_COLUMNS",
16976
17174
  "declaration": {
16977
- "name": "foundationFlexLayoutShadowOptions",
16978
- "module": "src/flex-layout/flex-layout.ts"
17175
+ "name": "DEFUALT_FILTER_BAR_COLUMNS",
17176
+ "module": "src/filter-bar/filter-bar.ts"
16979
17177
  }
16980
17178
  },
16981
17179
  {
16982
17180
  "kind": "js",
16983
- "name": "defaultFlexLayoutConfig",
17181
+ "name": "FilterBar",
16984
17182
  "declaration": {
16985
- "name": "defaultFlexLayoutConfig",
16986
- "module": "src/flex-layout/flex-layout.ts"
17183
+ "name": "FilterBar",
17184
+ "module": "src/filter-bar/filter-bar.ts"
16987
17185
  }
16988
17186
  },
16989
17187
  {
16990
17188
  "kind": "js",
16991
- "name": "FlexLayout",
17189
+ "name": "foundationFilterBar",
16992
17190
  "declaration": {
16993
- "name": "FlexLayout",
16994
- "module": "src/flex-layout/flex-layout.ts"
17191
+ "name": "foundationFilterBar",
17192
+ "module": "src/filter-bar/filter-bar.ts"
16995
17193
  }
16996
- },
17194
+ }
17195
+ ]
17196
+ },
17197
+ {
17198
+ "kind": "javascript-module",
17199
+ "path": "src/filter-bar/filter-bar.utils.ts",
17200
+ "declarations": [
17201
+ {
17202
+ "kind": "function",
17203
+ "name": "mapType",
17204
+ "parameters": [
17205
+ {
17206
+ "name": "TYPE",
17207
+ "type": {
17208
+ "text": "string"
17209
+ }
17210
+ }
17211
+ ]
17212
+ }
17213
+ ],
17214
+ "exports": [
16997
17215
  {
16998
17216
  "kind": "js",
16999
- "name": "foundationFlexLayout",
17217
+ "name": "mapType",
17000
17218
  "declaration": {
17001
- "name": "foundationFlexLayout",
17002
- "module": "src/flex-layout/flex-layout.ts"
17219
+ "name": "mapType",
17220
+ "module": "src/filter-bar/filter-bar.utils.ts"
17003
17221
  }
17004
17222
  }
17005
17223
  ]
17006
17224
  },
17007
17225
  {
17008
17226
  "kind": "javascript-module",
17009
- "path": "src/flex-layout/flex-layout.types.ts",
17010
- "declarations": [],
17011
- "exports": []
17012
- },
17013
- {
17014
- "kind": "javascript-module",
17015
- "path": "src/flex-layout/index.ts",
17227
+ "path": "src/filter-bar/index.ts",
17016
17228
  "declarations": [],
17017
17229
  "exports": [
17018
17230
  {
@@ -17020,7 +17232,7 @@
17020
17232
  "name": "*",
17021
17233
  "declaration": {
17022
17234
  "name": "*",
17023
- "package": "./flex-layout.template"
17235
+ "package": "./filter-bar.styles"
17024
17236
  }
17025
17237
  },
17026
17238
  {
@@ -17028,7 +17240,7 @@
17028
17240
  "name": "*",
17029
17241
  "declaration": {
17030
17242
  "name": "*",
17031
- "package": "./flex-layout.styles"
17243
+ "package": "./filter-bar.template"
17032
17244
  }
17033
17245
  },
17034
17246
  {
@@ -17036,7 +17248,7 @@
17036
17248
  "name": "*",
17037
17249
  "declaration": {
17038
17250
  "name": "*",
17039
- "package": "./flex-layout"
17251
+ "package": "./filter-bar.utils"
17040
17252
  }
17041
17253
  },
17042
17254
  {
@@ -17044,238 +17256,90 @@
17044
17256
  "name": "*",
17045
17257
  "declaration": {
17046
17258
  "name": "*",
17047
- "package": "./flex-layout.types"
17259
+ "package": "./filter-bar"
17048
17260
  }
17049
17261
  }
17050
17262
  ]
17051
17263
  },
17052
17264
  {
17053
17265
  "kind": "javascript-module",
17054
- "path": "src/filter-bar/filter-bar.styles.ts",
17266
+ "path": "src/flex-layout/flex-layout.styles.ts",
17055
17267
  "declarations": [
17056
17268
  {
17057
- "kind": "function",
17058
- "name": "foundationFilterBarStyles",
17059
- "return": {
17060
- "type": {
17061
- "text": "ElementStyles"
17062
- }
17269
+ "kind": "variable",
17270
+ "name": "foundationFlexLayoutStyles",
17271
+ "type": {
17272
+ "text": "ElementStyles"
17063
17273
  },
17064
- "parameters": [
17065
- {
17066
- "name": "context",
17067
- "type": {
17068
- "text": "ElementDefinitionContext"
17069
- }
17070
- },
17071
- {
17072
- "name": "definition",
17073
- "type": {
17074
- "text": "FoundationElementDefinition"
17075
- }
17076
- }
17077
- ]
17274
+ "default": "css`\n :host {\n width: 100%;\n height: 100%;\n }\n\n slot {\n width: 100%;\n height: 100%;\n display: flex;\n }\n\n ${flexLayoutRWDStyles()}\n ${flexLayoutRWDStyles('lg')}\n ${flexLayoutRWDStyles('md')}\n ${flexLayoutRWDStyles('sm')}\n`"
17078
17275
  }
17079
17276
  ],
17080
17277
  "exports": [
17081
17278
  {
17082
17279
  "kind": "js",
17083
- "name": "foundationFilterBarStyles",
17280
+ "name": "foundationFlexLayoutStyles",
17084
17281
  "declaration": {
17085
- "name": "foundationFilterBarStyles",
17086
- "module": "src/filter-bar/filter-bar.styles.ts"
17282
+ "name": "foundationFlexLayoutStyles",
17283
+ "module": "src/flex-layout/flex-layout.styles.ts"
17087
17284
  }
17088
17285
  }
17089
17286
  ]
17090
17287
  },
17091
17288
  {
17092
17289
  "kind": "javascript-module",
17093
- "path": "src/filter-bar/filter-bar.template.ts",
17290
+ "path": "src/flex-layout/flex-layout.template.ts",
17094
17291
  "declarations": [
17095
- {
17096
- "kind": "function",
17097
- "name": "filterBarTemplate",
17098
- "parameters": [
17099
- {
17100
- "name": "prefix",
17101
- "type": {
17102
- "text": "string"
17103
- }
17104
- }
17105
- ]
17106
- },
17107
17292
  {
17108
17293
  "kind": "variable",
17109
- "name": "foundationFilterBarTemplate",
17294
+ "name": "foundationFlexLayoutTemplate",
17110
17295
  "type": {
17111
- "text": "ViewTemplate<FilterBar>"
17296
+ "text": "ViewTemplate<FlexLayout>"
17112
17297
  },
17113
- "default": "html`\n ${(x) => (x.ready ? filterBarTemplate(getPrefix(x)) : loadingTemplate)}\n`"
17298
+ "default": "html`\n <template>\n <slot></slot>\n </template>\n`"
17114
17299
  }
17115
17300
  ],
17116
17301
  "exports": [
17117
17302
  {
17118
17303
  "kind": "js",
17119
- "name": "filterBarTemplate",
17120
- "declaration": {
17121
- "name": "filterBarTemplate",
17122
- "module": "src/filter-bar/filter-bar.template.ts"
17123
- }
17124
- },
17125
- {
17126
- "kind": "js",
17127
- "name": "foundationFilterBarTemplate",
17304
+ "name": "foundationFlexLayoutTemplate",
17128
17305
  "declaration": {
17129
- "name": "foundationFilterBarTemplate",
17130
- "module": "src/filter-bar/filter-bar.template.ts"
17306
+ "name": "foundationFlexLayoutTemplate",
17307
+ "module": "src/flex-layout/flex-layout.template.ts"
17131
17308
  }
17132
17309
  }
17133
17310
  ]
17134
17311
  },
17135
17312
  {
17136
17313
  "kind": "javascript-module",
17137
- "path": "src/filter-bar/filter-bar.ts",
17314
+ "path": "src/flex-layout/flex-layout.ts",
17138
17315
  "declarations": [
17139
17316
  {
17140
17317
  "kind": "variable",
17141
- "name": "DEFUALT_FILTER_BAR_COLUMNS",
17318
+ "name": "foundationFlexLayoutShadowOptions",
17142
17319
  "type": {
17143
- "text": "number"
17320
+ "text": "ShadowRootInit"
17321
+ },
17322
+ "default": "undefined"
17323
+ },
17324
+ {
17325
+ "kind": "variable",
17326
+ "name": "defaultFlexLayoutConfig",
17327
+ "type": {
17328
+ "text": "object"
17144
17329
  },
17145
- "default": "5"
17330
+ "default": "{}"
17146
17331
  },
17147
17332
  {
17148
17333
  "kind": "class",
17149
17334
  "description": "",
17150
- "name": "FilterBar",
17335
+ "name": "FlexLayout",
17336
+ "superclass": {
17337
+ "name": "FoundationElement",
17338
+ "package": "@microsoft/fast-foundation"
17339
+ },
17340
+ "tagName": "%%prefix%%-flex-layout",
17341
+ "customElement": true,
17151
17342
  "members": [
17152
- {
17153
- "kind": "field",
17154
- "name": "resource",
17155
- "type": {
17156
- "text": "string"
17157
- }
17158
- },
17159
- {
17160
- "kind": "field",
17161
- "name": "only",
17162
- "type": {
17163
- "text": "string"
17164
- },
17165
- "description": "Only generate filters for the specified fields, provided as a comma separated list.\nDefault behavior (if \"only\" is not set) is to generate filters for all fields based on metadata."
17166
- },
17167
- {
17168
- "kind": "field",
17169
- "name": "labels",
17170
- "type": {
17171
- "text": "string"
17172
- },
17173
- "description": "Labels for the specified fields, to be used alongside \"only\" prop."
17174
- },
17175
- {
17176
- "kind": "field",
17177
- "name": "target",
17178
- "type": {
17179
- "text": "string"
17180
- },
17181
- "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page."
17182
- },
17183
- {
17184
- "kind": "field",
17185
- "name": "columns",
17186
- "type": {
17187
- "text": "number"
17188
- },
17189
- "default": "5"
17190
- },
17191
- {
17192
- "kind": "field",
17193
- "name": "ready",
17194
- "type": {
17195
- "text": "boolean"
17196
- },
17197
- "default": "false"
17198
- },
17199
- {
17200
- "kind": "field",
17201
- "name": "fields",
17202
- "type": {
17203
- "text": "MetadataDetail[]"
17204
- }
17205
- },
17206
- {
17207
- "kind": "field",
17208
- "name": "connect",
17209
- "type": {
17210
- "text": "Connect"
17211
- }
17212
- },
17213
- {
17214
- "kind": "field",
17215
- "name": "filterGrid",
17216
- "type": {
17217
- "text": "HTMLDivElement"
17218
- },
17219
- "privacy": "public"
17220
- },
17221
- {
17222
- "kind": "field",
17223
- "name": "collapsed",
17224
- "type": {
17225
- "text": "boolean"
17226
- },
17227
- "default": "true"
17228
- },
17229
- {
17230
- "kind": "method",
17231
- "name": "initLabels",
17232
- "privacy": "private"
17233
- },
17234
- {
17235
- "kind": "method",
17236
- "name": "camelCasePreserveWhitespace",
17237
- "privacy": "private",
17238
- "parameters": [
17239
- {
17240
- "name": "input",
17241
- "type": {
17242
- "text": "string"
17243
- }
17244
- }
17245
- ]
17246
- },
17247
- {
17248
- "kind": "method",
17249
- "name": "resourceChanged",
17250
- "parameters": [
17251
- {
17252
- "name": "oldResource",
17253
- "type": {
17254
- "text": "string"
17255
- }
17256
- },
17257
- {
17258
- "name": "newResource",
17259
- "type": {
17260
- "text": "string"
17261
- }
17262
- }
17263
- ]
17264
- },
17265
- {
17266
- "kind": "method",
17267
- "name": "init",
17268
- "privacy": "private"
17269
- },
17270
- {
17271
- "kind": "method",
17272
- "name": "adjustColumnStyles",
17273
- "privacy": "private"
17274
- },
17275
- {
17276
- "kind": "method",
17277
- "name": "toggle"
17278
- },
17279
17343
  {
17280
17344
  "kind": "field",
17281
17345
  "name": "_presentation",
@@ -17387,123 +17451,59 @@
17387
17451
  "module": "src/foundation-element/foundation-element.ts"
17388
17452
  }
17389
17453
  }
17390
- ],
17391
- "attributes": [
17392
- {
17393
- "name": "resource",
17394
- "type": {
17395
- "text": "string"
17396
- },
17397
- "fieldName": "resource"
17398
- },
17399
- {
17400
- "name": "only",
17401
- "type": {
17402
- "text": "string"
17403
- },
17404
- "description": "Only generate filters for the specified fields, provided as a comma separated list.\nDefault behavior (if \"only\" is not set) is to generate filters for all fields based on metadata.",
17405
- "fieldName": "only"
17406
- },
17407
- {
17408
- "name": "labels",
17409
- "type": {
17410
- "text": "string"
17411
- },
17412
- "description": "Labels for the specified fields, to be used alongside \"only\" prop.",
17413
- "fieldName": "labels"
17414
- },
17415
- {
17416
- "name": "target",
17417
- "type": {
17418
- "text": "string"
17419
- },
17420
- "description": "Will be included in event emmissions.\nUsually set to the id of the target datasource.\nUsefull when we have multiple grids in the same page.",
17421
- "fieldName": "target"
17422
- },
17423
- {
17424
- "name": "columns",
17425
- "type": {
17426
- "text": "number"
17427
- },
17428
- "default": "DEFUALT_FILTER_BAR_COLUMNS",
17429
- "resolveInitializer": {
17430
- "module": "src/filter-bar/filter-bar.ts"
17431
- },
17432
- "fieldName": "columns"
17433
- }
17434
- ],
17435
- "superclass": {
17436
- "name": "FoundationElement",
17437
- "package": "@microsoft/fast-foundation"
17438
- },
17439
- "tagName": "%%prefix%%-filter-bar",
17440
- "customElement": true
17454
+ ]
17441
17455
  },
17442
17456
  {
17443
17457
  "kind": "variable",
17444
- "name": "foundationFilterBar",
17445
- "description": "The Foundation Filter",
17458
+ "name": "foundationFlexLayout",
17459
+ "description": "The Foundation Flex Layout",
17446
17460
  "privacy": "public"
17447
17461
  }
17448
17462
  ],
17449
17463
  "exports": [
17450
17464
  {
17451
17465
  "kind": "js",
17452
- "name": "DEFUALT_FILTER_BAR_COLUMNS",
17466
+ "name": "foundationFlexLayoutShadowOptions",
17453
17467
  "declaration": {
17454
- "name": "DEFUALT_FILTER_BAR_COLUMNS",
17455
- "module": "src/filter-bar/filter-bar.ts"
17468
+ "name": "foundationFlexLayoutShadowOptions",
17469
+ "module": "src/flex-layout/flex-layout.ts"
17456
17470
  }
17457
17471
  },
17458
17472
  {
17459
17473
  "kind": "js",
17460
- "name": "FilterBar",
17474
+ "name": "defaultFlexLayoutConfig",
17461
17475
  "declaration": {
17462
- "name": "FilterBar",
17463
- "module": "src/filter-bar/filter-bar.ts"
17476
+ "name": "defaultFlexLayoutConfig",
17477
+ "module": "src/flex-layout/flex-layout.ts"
17464
17478
  }
17465
17479
  },
17466
17480
  {
17467
17481
  "kind": "js",
17468
- "name": "foundationFilterBar",
17482
+ "name": "FlexLayout",
17469
17483
  "declaration": {
17470
- "name": "foundationFilterBar",
17471
- "module": "src/filter-bar/filter-bar.ts"
17484
+ "name": "FlexLayout",
17485
+ "module": "src/flex-layout/flex-layout.ts"
17472
17486
  }
17473
- }
17474
- ]
17475
- },
17476
- {
17477
- "kind": "javascript-module",
17478
- "path": "src/filter-bar/filter-bar.utils.ts",
17479
- "declarations": [
17480
- {
17481
- "kind": "function",
17482
- "name": "mapType",
17483
- "parameters": [
17484
- {
17485
- "name": "TYPE",
17486
- "type": {
17487
- "text": "string"
17488
- }
17489
- }
17490
- ]
17491
- }
17492
- ],
17493
- "exports": [
17487
+ },
17494
17488
  {
17495
17489
  "kind": "js",
17496
- "name": "mapType",
17490
+ "name": "foundationFlexLayout",
17497
17491
  "declaration": {
17498
- "name": "mapType",
17499
- "module": "src/filter-bar/filter-bar.utils.ts"
17492
+ "name": "foundationFlexLayout",
17493
+ "module": "src/flex-layout/flex-layout.ts"
17500
17494
  }
17501
17495
  }
17502
17496
  ]
17503
17497
  },
17504
17498
  {
17505
17499
  "kind": "javascript-module",
17506
- "path": "src/filter-bar/index.ts",
17500
+ "path": "src/flex-layout/flex-layout.types.ts",
17501
+ "declarations": [],
17502
+ "exports": []
17503
+ },
17504
+ {
17505
+ "kind": "javascript-module",
17506
+ "path": "src/flex-layout/index.ts",
17507
17507
  "declarations": [],
17508
17508
  "exports": [
17509
17509
  {
@@ -17511,7 +17511,7 @@
17511
17511
  "name": "*",
17512
17512
  "declaration": {
17513
17513
  "name": "*",
17514
- "package": "./filter-bar.styles"
17514
+ "package": "./flex-layout.template"
17515
17515
  }
17516
17516
  },
17517
17517
  {
@@ -17519,7 +17519,7 @@
17519
17519
  "name": "*",
17520
17520
  "declaration": {
17521
17521
  "name": "*",
17522
- "package": "./filter-bar.template"
17522
+ "package": "./flex-layout.styles"
17523
17523
  }
17524
17524
  },
17525
17525
  {
@@ -17527,7 +17527,7 @@
17527
17527
  "name": "*",
17528
17528
  "declaration": {
17529
17529
  "name": "*",
17530
- "package": "./filter-bar.utils"
17530
+ "package": "./flex-layout"
17531
17531
  }
17532
17532
  },
17533
17533
  {
@@ -17535,7 +17535,7 @@
17535
17535
  "name": "*",
17536
17536
  "declaration": {
17537
17537
  "name": "*",
17538
- "package": "./filter-bar"
17538
+ "package": "./flex-layout.types"
17539
17539
  }
17540
17540
  }
17541
17541
  ]