@genesislcap/foundation-ui 14.145.3 → 14.145.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +847 -847
  2. package/package.json +10 -10
@@ -785,260 +785,6 @@
785
785
  }
786
786
  ]
787
787
  },
788
- {
789
- "kind": "javascript-module",
790
- "path": "src/_common/icons.ts",
791
- "declarations": [
792
- {
793
- "kind": "function",
794
- "name": "closeIcon",
795
- "parameters": [
796
- {
797
- "name": "slot",
798
- "default": "'start'"
799
- }
800
- ]
801
- }
802
- ],
803
- "exports": [
804
- {
805
- "kind": "js",
806
- "name": "closeIcon",
807
- "declaration": {
808
- "name": "closeIcon",
809
- "module": "src/_common/icons.ts"
810
- }
811
- }
812
- ]
813
- },
814
- {
815
- "kind": "javascript-module",
816
- "path": "src/_common/index.ts",
817
- "declarations": [],
818
- "exports": [
819
- {
820
- "kind": "js",
821
- "name": "*",
822
- "declaration": {
823
- "name": "*",
824
- "package": "./icons"
825
- }
826
- }
827
- ]
828
- },
829
- {
830
- "kind": "javascript-module",
831
- "path": "src/_config/index.ts",
832
- "declarations": [],
833
- "exports": [
834
- {
835
- "kind": "js",
836
- "name": "*",
837
- "declaration": {
838
- "name": "*",
839
- "package": "./styles"
840
- }
841
- },
842
- {
843
- "kind": "js",
844
- "name": "*",
845
- "declaration": {
846
- "name": "*",
847
- "package": "./tokens"
848
- }
849
- },
850
- {
851
- "kind": "js",
852
- "name": "*",
853
- "declaration": {
854
- "name": "*",
855
- "package": "./values"
856
- }
857
- }
858
- ]
859
- },
860
- {
861
- "kind": "javascript-module",
862
- "path": "src/accordion/accordion.styles.ts",
863
- "declarations": [
864
- {
865
- "kind": "function",
866
- "name": "foundationAccordionStyles",
867
- "return": {
868
- "type": {
869
- "text": "ElementStyles"
870
- }
871
- },
872
- "parameters": [
873
- {
874
- "name": "context",
875
- "type": {
876
- "text": "ElementDefinitionContext"
877
- }
878
- },
879
- {
880
- "name": "definition",
881
- "type": {
882
- "text": "FoundationElementDefinition"
883
- }
884
- }
885
- ]
886
- }
887
- ],
888
- "exports": [
889
- {
890
- "kind": "js",
891
- "name": "foundationAccordionStyles",
892
- "declaration": {
893
- "name": "foundationAccordionStyles",
894
- "module": "src/accordion/accordion.styles.ts"
895
- }
896
- }
897
- ]
898
- },
899
- {
900
- "kind": "javascript-module",
901
- "path": "src/accordion/accordion.template.ts",
902
- "declarations": [
903
- {
904
- "kind": "function",
905
- "name": "foundationAccordionTemplate",
906
- "return": {
907
- "type": {
908
- "text": "ViewTemplate<Accordion>"
909
- }
910
- },
911
- "parameters": [
912
- {
913
- "name": "context",
914
- "type": {
915
- "text": "ElementDefinitionContext"
916
- }
917
- },
918
- {
919
- "name": "definition",
920
- "type": {
921
- "text": "FoundationElementDefinition"
922
- }
923
- }
924
- ]
925
- }
926
- ],
927
- "exports": [
928
- {
929
- "kind": "js",
930
- "name": "foundationAccordionTemplate",
931
- "declaration": {
932
- "name": "foundationAccordionTemplate",
933
- "module": "src/accordion/accordion.template.ts"
934
- }
935
- }
936
- ]
937
- },
938
- {
939
- "kind": "javascript-module",
940
- "path": "src/accordion/accordion.ts",
941
- "declarations": [
942
- {
943
- "kind": "class",
944
- "description": "",
945
- "name": "Accordion",
946
- "superclass": {
947
- "name": "FASTAccordion",
948
- "package": "@microsoft/fast-foundation"
949
- },
950
- "tagName": "%%prefix%%-accordion",
951
- "customElement": true
952
- },
953
- {
954
- "kind": "variable",
955
- "name": "foundationAccordionShadowOptions",
956
- "type": {
957
- "text": "ShadowRootInit"
958
- },
959
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
960
- },
961
- {
962
- "kind": "variable",
963
- "name": "defaultAccordionConfig",
964
- "type": {
965
- "text": "object"
966
- },
967
- "default": "{}"
968
- },
969
- {
970
- "kind": "variable",
971
- "name": "foundationAccordion",
972
- "description": "The Foundation Accordion",
973
- "privacy": "public"
974
- }
975
- ],
976
- "exports": [
977
- {
978
- "kind": "js",
979
- "name": "Accordion",
980
- "declaration": {
981
- "name": "Accordion",
982
- "module": "src/accordion/accordion.ts"
983
- }
984
- },
985
- {
986
- "kind": "js",
987
- "name": "foundationAccordionShadowOptions",
988
- "declaration": {
989
- "name": "foundationAccordionShadowOptions",
990
- "module": "src/accordion/accordion.ts"
991
- }
992
- },
993
- {
994
- "kind": "js",
995
- "name": "defaultAccordionConfig",
996
- "declaration": {
997
- "name": "defaultAccordionConfig",
998
- "module": "src/accordion/accordion.ts"
999
- }
1000
- },
1001
- {
1002
- "kind": "js",
1003
- "name": "foundationAccordion",
1004
- "declaration": {
1005
- "name": "foundationAccordion",
1006
- "module": "src/accordion/accordion.ts"
1007
- }
1008
- }
1009
- ]
1010
- },
1011
- {
1012
- "kind": "javascript-module",
1013
- "path": "src/accordion/index.ts",
1014
- "declarations": [],
1015
- "exports": [
1016
- {
1017
- "kind": "js",
1018
- "name": "*",
1019
- "declaration": {
1020
- "name": "*",
1021
- "package": "./accordion.template"
1022
- }
1023
- },
1024
- {
1025
- "kind": "js",
1026
- "name": "*",
1027
- "declaration": {
1028
- "name": "*",
1029
- "package": "./accordion.styles"
1030
- }
1031
- },
1032
- {
1033
- "kind": "js",
1034
- "name": "*",
1035
- "declaration": {
1036
- "name": "*",
1037
- "package": "./accordion"
1038
- }
1039
- }
1040
- ]
1041
- },
1042
788
  {
1043
789
  "kind": "javascript-module",
1044
790
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1435,8 +1181,262 @@
1435
1181
  },
1436
1182
  {
1437
1183
  "kind": "javascript-module",
1438
- "path": "src/actions-menu/actions-menu.styles.ts",
1439
- "declarations": [
1184
+ "path": "src/_config/index.ts",
1185
+ "declarations": [],
1186
+ "exports": [
1187
+ {
1188
+ "kind": "js",
1189
+ "name": "*",
1190
+ "declaration": {
1191
+ "name": "*",
1192
+ "package": "./styles"
1193
+ }
1194
+ },
1195
+ {
1196
+ "kind": "js",
1197
+ "name": "*",
1198
+ "declaration": {
1199
+ "name": "*",
1200
+ "package": "./tokens"
1201
+ }
1202
+ },
1203
+ {
1204
+ "kind": "js",
1205
+ "name": "*",
1206
+ "declaration": {
1207
+ "name": "*",
1208
+ "package": "./values"
1209
+ }
1210
+ }
1211
+ ]
1212
+ },
1213
+ {
1214
+ "kind": "javascript-module",
1215
+ "path": "src/accordion/accordion.styles.ts",
1216
+ "declarations": [
1217
+ {
1218
+ "kind": "function",
1219
+ "name": "foundationAccordionStyles",
1220
+ "return": {
1221
+ "type": {
1222
+ "text": "ElementStyles"
1223
+ }
1224
+ },
1225
+ "parameters": [
1226
+ {
1227
+ "name": "context",
1228
+ "type": {
1229
+ "text": "ElementDefinitionContext"
1230
+ }
1231
+ },
1232
+ {
1233
+ "name": "definition",
1234
+ "type": {
1235
+ "text": "FoundationElementDefinition"
1236
+ }
1237
+ }
1238
+ ]
1239
+ }
1240
+ ],
1241
+ "exports": [
1242
+ {
1243
+ "kind": "js",
1244
+ "name": "foundationAccordionStyles",
1245
+ "declaration": {
1246
+ "name": "foundationAccordionStyles",
1247
+ "module": "src/accordion/accordion.styles.ts"
1248
+ }
1249
+ }
1250
+ ]
1251
+ },
1252
+ {
1253
+ "kind": "javascript-module",
1254
+ "path": "src/accordion/accordion.template.ts",
1255
+ "declarations": [
1256
+ {
1257
+ "kind": "function",
1258
+ "name": "foundationAccordionTemplate",
1259
+ "return": {
1260
+ "type": {
1261
+ "text": "ViewTemplate<Accordion>"
1262
+ }
1263
+ },
1264
+ "parameters": [
1265
+ {
1266
+ "name": "context",
1267
+ "type": {
1268
+ "text": "ElementDefinitionContext"
1269
+ }
1270
+ },
1271
+ {
1272
+ "name": "definition",
1273
+ "type": {
1274
+ "text": "FoundationElementDefinition"
1275
+ }
1276
+ }
1277
+ ]
1278
+ }
1279
+ ],
1280
+ "exports": [
1281
+ {
1282
+ "kind": "js",
1283
+ "name": "foundationAccordionTemplate",
1284
+ "declaration": {
1285
+ "name": "foundationAccordionTemplate",
1286
+ "module": "src/accordion/accordion.template.ts"
1287
+ }
1288
+ }
1289
+ ]
1290
+ },
1291
+ {
1292
+ "kind": "javascript-module",
1293
+ "path": "src/accordion/accordion.ts",
1294
+ "declarations": [
1295
+ {
1296
+ "kind": "class",
1297
+ "description": "",
1298
+ "name": "Accordion",
1299
+ "superclass": {
1300
+ "name": "FASTAccordion",
1301
+ "package": "@microsoft/fast-foundation"
1302
+ },
1303
+ "tagName": "%%prefix%%-accordion",
1304
+ "customElement": true
1305
+ },
1306
+ {
1307
+ "kind": "variable",
1308
+ "name": "foundationAccordionShadowOptions",
1309
+ "type": {
1310
+ "text": "ShadowRootInit"
1311
+ },
1312
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1313
+ },
1314
+ {
1315
+ "kind": "variable",
1316
+ "name": "defaultAccordionConfig",
1317
+ "type": {
1318
+ "text": "object"
1319
+ },
1320
+ "default": "{}"
1321
+ },
1322
+ {
1323
+ "kind": "variable",
1324
+ "name": "foundationAccordion",
1325
+ "description": "The Foundation Accordion",
1326
+ "privacy": "public"
1327
+ }
1328
+ ],
1329
+ "exports": [
1330
+ {
1331
+ "kind": "js",
1332
+ "name": "Accordion",
1333
+ "declaration": {
1334
+ "name": "Accordion",
1335
+ "module": "src/accordion/accordion.ts"
1336
+ }
1337
+ },
1338
+ {
1339
+ "kind": "js",
1340
+ "name": "foundationAccordionShadowOptions",
1341
+ "declaration": {
1342
+ "name": "foundationAccordionShadowOptions",
1343
+ "module": "src/accordion/accordion.ts"
1344
+ }
1345
+ },
1346
+ {
1347
+ "kind": "js",
1348
+ "name": "defaultAccordionConfig",
1349
+ "declaration": {
1350
+ "name": "defaultAccordionConfig",
1351
+ "module": "src/accordion/accordion.ts"
1352
+ }
1353
+ },
1354
+ {
1355
+ "kind": "js",
1356
+ "name": "foundationAccordion",
1357
+ "declaration": {
1358
+ "name": "foundationAccordion",
1359
+ "module": "src/accordion/accordion.ts"
1360
+ }
1361
+ }
1362
+ ]
1363
+ },
1364
+ {
1365
+ "kind": "javascript-module",
1366
+ "path": "src/accordion/index.ts",
1367
+ "declarations": [],
1368
+ "exports": [
1369
+ {
1370
+ "kind": "js",
1371
+ "name": "*",
1372
+ "declaration": {
1373
+ "name": "*",
1374
+ "package": "./accordion.template"
1375
+ }
1376
+ },
1377
+ {
1378
+ "kind": "js",
1379
+ "name": "*",
1380
+ "declaration": {
1381
+ "name": "*",
1382
+ "package": "./accordion.styles"
1383
+ }
1384
+ },
1385
+ {
1386
+ "kind": "js",
1387
+ "name": "*",
1388
+ "declaration": {
1389
+ "name": "*",
1390
+ "package": "./accordion"
1391
+ }
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ "kind": "javascript-module",
1397
+ "path": "src/_common/icons.ts",
1398
+ "declarations": [
1399
+ {
1400
+ "kind": "function",
1401
+ "name": "closeIcon",
1402
+ "parameters": [
1403
+ {
1404
+ "name": "slot",
1405
+ "default": "'start'"
1406
+ }
1407
+ ]
1408
+ }
1409
+ ],
1410
+ "exports": [
1411
+ {
1412
+ "kind": "js",
1413
+ "name": "closeIcon",
1414
+ "declaration": {
1415
+ "name": "closeIcon",
1416
+ "module": "src/_common/icons.ts"
1417
+ }
1418
+ }
1419
+ ]
1420
+ },
1421
+ {
1422
+ "kind": "javascript-module",
1423
+ "path": "src/_common/index.ts",
1424
+ "declarations": [],
1425
+ "exports": [
1426
+ {
1427
+ "kind": "js",
1428
+ "name": "*",
1429
+ "declaration": {
1430
+ "name": "*",
1431
+ "package": "./icons"
1432
+ }
1433
+ }
1434
+ ]
1435
+ },
1436
+ {
1437
+ "kind": "javascript-module",
1438
+ "path": "src/actions-menu/actions-menu.styles.ts",
1439
+ "declarations": [
1440
1440
  {
1441
1441
  "kind": "function",
1442
1442
  "name": "actionsMenuBaseStyles",
@@ -15478,35 +15478,35 @@
15478
15478
  },
15479
15479
  {
15480
15480
  "kind": "javascript-module",
15481
- "path": "src/file-upload/file-upload.styles.ts",
15481
+ "path": "src/filter/filter.styles.ts",
15482
15482
  "declarations": [
15483
15483
  {
15484
15484
  "kind": "variable",
15485
- "name": "foundationFileUploadStyles",
15485
+ "name": "foundationFilterStyles",
15486
15486
  "type": {
15487
15487
  "text": "ElementStyles"
15488
15488
  },
15489
- "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`"
15489
+ "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`"
15490
15490
  }
15491
15491
  ],
15492
15492
  "exports": [
15493
15493
  {
15494
15494
  "kind": "js",
15495
- "name": "foundationFileUploadStyles",
15495
+ "name": "foundationFilterStyles",
15496
15496
  "declaration": {
15497
- "name": "foundationFileUploadStyles",
15498
- "module": "src/file-upload/file-upload.styles.ts"
15497
+ "name": "foundationFilterStyles",
15498
+ "module": "src/filter/filter.styles.ts"
15499
15499
  }
15500
15500
  }
15501
15501
  ]
15502
15502
  },
15503
15503
  {
15504
15504
  "kind": "javascript-module",
15505
- "path": "src/file-upload/file-upload.template.ts",
15505
+ "path": "src/filter/filter.template.ts",
15506
15506
  "declarations": [
15507
15507
  {
15508
15508
  "kind": "function",
15509
- "name": "getPrefixedFileUpload",
15509
+ "name": "getPrefixedFilterTemplate",
15510
15510
  "parameters": [
15511
15511
  {
15512
15512
  "name": "prefix",
@@ -15518,287 +15518,355 @@
15518
15518
  },
15519
15519
  {
15520
15520
  "kind": "variable",
15521
- "name": "foundationFileUploadTemplate",
15522
- "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
15521
+ "name": "foundationFilterTemplate",
15522
+ "type": {
15523
+ "text": "ViewTemplate<Filter>"
15524
+ },
15525
+ "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
15523
15526
  }
15524
15527
  ],
15525
15528
  "exports": [
15526
15529
  {
15527
15530
  "kind": "js",
15528
- "name": "getPrefixedFileUpload",
15531
+ "name": "getPrefixedFilterTemplate",
15529
15532
  "declaration": {
15530
- "name": "getPrefixedFileUpload",
15531
- "module": "src/file-upload/file-upload.template.ts"
15533
+ "name": "getPrefixedFilterTemplate",
15534
+ "module": "src/filter/filter.template.ts"
15532
15535
  }
15533
15536
  },
15534
15537
  {
15535
15538
  "kind": "js",
15536
- "name": "foundationFileUploadTemplate",
15539
+ "name": "foundationFilterTemplate",
15537
15540
  "declaration": {
15538
- "name": "foundationFileUploadTemplate",
15539
- "module": "src/file-upload/file-upload.template.ts"
15541
+ "name": "foundationFilterTemplate",
15542
+ "module": "src/filter/filter.template.ts"
15540
15543
  }
15541
15544
  }
15542
15545
  ]
15543
15546
  },
15544
15547
  {
15545
15548
  "kind": "javascript-module",
15546
- "path": "src/file-upload/file-upload.ts",
15549
+ "path": "src/filter/filter.ts",
15547
15550
  "declarations": [
15548
15551
  {
15549
15552
  "kind": "class",
15550
15553
  "description": "",
15551
- "name": "FileUpload",
15554
+ "name": "Filter",
15552
15555
  "members": [
15553
15556
  {
15554
15557
  "kind": "field",
15555
- "name": "fileInput",
15558
+ "name": "textFilterField",
15556
15559
  "type": {
15557
- "text": "HTMLInputElement"
15560
+ "text": "TextField"
15558
15561
  },
15559
15562
  "privacy": "public"
15560
15563
  },
15561
15564
  {
15562
15565
  "kind": "field",
15563
- "name": "acceptedFormats",
15566
+ "name": "numFilterFieldMin",
15564
15567
  "type": {
15565
- "text": "array"
15568
+ "text": "TextField"
15566
15569
  },
15567
- "privacy": "private",
15568
- "default": "[]"
15570
+ "privacy": "public"
15569
15571
  },
15570
15572
  {
15571
15573
  "kind": "field",
15572
- "name": "selectedFiles",
15574
+ "name": "numFilterFieldMax",
15573
15575
  "type": {
15574
- "text": "File[]"
15576
+ "text": "TextField"
15575
15577
  },
15576
- "privacy": "private"
15577
- },
15578
- {
15579
- "kind": "field",
15580
- "name": "gridCriteria",
15581
- "type": {
15582
- "text": "string"
15583
- }
15578
+ "privacy": "public"
15584
15579
  },
15585
15580
  {
15586
15581
  "kind": "field",
15587
- "name": "connect",
15582
+ "name": "dateFilterFieldMin",
15588
15583
  "type": {
15589
- "text": "Connect"
15590
- }
15584
+ "text": "TextField"
15585
+ },
15586
+ "privacy": "public"
15591
15587
  },
15592
15588
  {
15593
15589
  "kind": "field",
15594
- "name": "session",
15590
+ "name": "dateFilterFieldMax",
15595
15591
  "type": {
15596
- "text": "Session"
15597
- }
15592
+ "text": "TextField"
15593
+ },
15594
+ "privacy": "public"
15598
15595
  },
15599
15596
  {
15600
15597
  "kind": "field",
15601
- "name": "label",
15598
+ "name": "fieldName",
15602
15599
  "type": {
15603
15600
  "text": "string"
15604
15601
  }
15605
15602
  },
15606
15603
  {
15607
15604
  "kind": "field",
15608
- "name": "accept",
15605
+ "name": "type",
15609
15606
  "type": {
15610
- "text": "string"
15607
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15611
15608
  },
15612
- "default": "''"
15613
- },
15614
- {
15615
- "kind": "method",
15616
- "name": "acceptChanged"
15609
+ "default": "'text'"
15617
15610
  },
15618
15611
  {
15619
15612
  "kind": "field",
15620
- "name": "fileSizeLimitBytes",
15621
- "default": "104_857_600",
15613
+ "name": "label",
15622
15614
  "type": {
15623
- "text": "number"
15615
+ "text": "string"
15624
15616
  }
15625
15617
  },
15626
15618
  {
15627
15619
  "kind": "field",
15628
- "name": "uploadedFilesResourceName",
15620
+ "name": "target",
15629
15621
  "type": {
15630
15622
  "text": "string"
15631
15623
  },
15632
- "default": "'ALL_FILE_ATTACHMENTS'"
15624
+ "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."
15633
15625
  },
15634
15626
  {
15635
15627
  "kind": "field",
15636
- "name": "uploadEventName",
15628
+ "name": "textFilter",
15637
15629
  "type": {
15638
15630
  "text": "string"
15639
15631
  },
15640
- "default": "'gwf/attachment-handler/upload'"
15632
+ "default": "''"
15641
15633
  },
15642
15634
  {
15643
15635
  "kind": "field",
15644
- "name": "fieldName",
15636
+ "name": "numFilterMin",
15645
15637
  "type": {
15646
- "text": "string"
15638
+ "text": "number"
15647
15639
  }
15648
15640
  },
15649
- {
15650
- "kind": "method",
15651
- "name": "fieldNameChanged"
15652
- },
15653
15641
  {
15654
15642
  "kind": "field",
15655
- "name": "entityId",
15643
+ "name": "numFilterMax",
15656
15644
  "type": {
15657
- "text": "string"
15645
+ "text": "number"
15658
15646
  }
15659
15647
  },
15660
- {
15661
- "kind": "method",
15662
- "name": "entityIdChanged"
15663
- },
15664
15648
  {
15665
15649
  "kind": "field",
15666
- "name": "uploadKey",
15650
+ "name": "dateFilterMin",
15667
15651
  "type": {
15668
15652
  "text": "string"
15669
15653
  }
15670
15654
  },
15671
15655
  {
15672
15656
  "kind": "field",
15673
- "name": "gridFields",
15657
+ "name": "dateFilterMax",
15674
15658
  "type": {
15675
15659
  "text": "string"
15676
- },
15677
- "default": "''"
15660
+ }
15678
15661
  },
15679
15662
  {
15680
15663
  "kind": "field",
15681
- "name": "fileName",
15664
+ "name": "dateMinMS",
15682
15665
  "type": {
15683
- "text": "string"
15684
- },
15685
- "default": "''"
15666
+ "text": "number"
15667
+ }
15686
15668
  },
15687
15669
  {
15688
15670
  "kind": "field",
15689
- "name": "uploadedFilesList",
15671
+ "name": "dateMaxMS",
15690
15672
  "type": {
15691
- "text": "array"
15692
- },
15693
- "default": "[]"
15673
+ "text": "number"
15674
+ }
15694
15675
  },
15695
15676
  {
15696
15677
  "kind": "field",
15697
- "name": "filesGridColumnDefinitions",
15678
+ "name": "enumOptions",
15698
15679
  "type": {
15699
- "text": "ColumnDefinition[]"
15700
- },
15701
- "default": "[]"
15680
+ "text": "string"
15681
+ }
15702
15682
  },
15703
15683
  {
15704
15684
  "kind": "field",
15705
- "name": "downloadEventName",
15685
+ "name": "enumFilterOptions",
15706
15686
  "type": {
15707
- "text": "Function"
15687
+ "text": "any[]"
15708
15688
  },
15709
- "privacy": "public"
15710
- },
15711
- {
15712
- "kind": "method",
15713
- "name": "setupGrid"
15689
+ "default": "[{ name: 'All', value: 'all', selected: true }]"
15714
15690
  },
15715
15691
  {
15716
15692
  "kind": "method",
15717
- "name": "handleStreamRowOperation",
15718
- "privacy": "private",
15693
+ "name": "textFilterChanged",
15719
15694
  "parameters": [
15720
15695
  {
15721
- "name": "data",
15696
+ "name": "oldCriteria",
15722
15697
  "type": {
15723
- "text": "Message<any>"
15698
+ "text": "string"
15699
+ }
15700
+ },
15701
+ {
15702
+ "name": "newCriteria",
15703
+ "type": {
15704
+ "text": "string"
15724
15705
  }
15725
15706
  }
15726
15707
  ]
15727
15708
  },
15728
15709
  {
15729
15710
  "kind": "method",
15730
- "name": "setRowData"
15731
- },
15732
- {
15733
- "kind": "method",
15734
- "name": "setColumnDefs"
15735
- },
15736
- {
15737
- "kind": "method",
15738
- "name": "getDownloadColumn",
15739
- "privacy": "public"
15740
- },
15741
- {
15742
- "kind": "method",
15743
- "name": "getColumnObject",
15744
- "privacy": "public",
15711
+ "name": "numFilterMinChanged",
15745
15712
  "parameters": [
15746
15713
  {
15747
- "name": "column"
15714
+ "name": "oldMin",
15715
+ "type": {
15716
+ "text": "string"
15717
+ }
15718
+ },
15719
+ {
15720
+ "name": "newMin",
15721
+ "type": {
15722
+ "text": "string"
15723
+ }
15748
15724
  }
15749
15725
  ]
15750
15726
  },
15751
15727
  {
15752
15728
  "kind": "method",
15753
- "name": "handleClick",
15754
- "privacy": "public"
15755
- },
15756
- {
15757
- "kind": "method",
15758
- "name": "onInputChange",
15759
- "privacy": "public",
15729
+ "name": "numFilterMaxChanged",
15760
15730
  "parameters": [
15761
15731
  {
15762
- "name": "e"
15732
+ "name": "oldMax",
15733
+ "type": {
15734
+ "text": "string"
15735
+ }
15736
+ },
15737
+ {
15738
+ "name": "newMax",
15739
+ "type": {
15740
+ "text": "string"
15741
+ }
15763
15742
  }
15764
15743
  ]
15765
15744
  },
15766
15745
  {
15767
15746
  "kind": "method",
15768
- "name": "onFilesSelected",
15769
- "privacy": "public",
15747
+ "name": "handleNumericFilter",
15748
+ "privacy": "private",
15770
15749
  "parameters": [
15771
15750
  {
15772
- "name": "files",
15751
+ "name": "min",
15773
15752
  "type": {
15774
- "text": "File[]"
15753
+ "text": "number"
15754
+ }
15755
+ },
15756
+ {
15757
+ "name": "max",
15758
+ "type": {
15759
+ "text": "number"
15775
15760
  }
15776
15761
  }
15777
15762
  ]
15778
15763
  },
15779
15764
  {
15780
15765
  "kind": "method",
15781
- "name": "handleFileUpload",
15782
- "privacy": "public"
15783
- },
15784
- {
15785
- "kind": "method",
15786
- "name": "handleFileDownload",
15787
- "privacy": "public",
15766
+ "name": "formatDate",
15767
+ "privacy": "private",
15768
+ "return": {
15769
+ "type": {
15770
+ "text": ""
15771
+ }
15772
+ },
15788
15773
  "parameters": [
15789
15774
  {
15790
- "name": "rowData",
15775
+ "name": "epoch",
15791
15776
  "type": {
15792
- "text": "any"
15793
- }
15777
+ "text": "number"
15778
+ },
15779
+ "description": "ms since unix epoch"
15794
15780
  }
15795
- ]
15781
+ ],
15782
+ "description": "Example: 1634083200000 -> '20211013-00:00:00'"
15796
15783
  },
15797
15784
  {
15798
15785
  "kind": "method",
15799
- "name": "clearSelection",
15800
- "privacy": "public"
15801
- },
15786
+ "name": "dateFilterMinChanged",
15787
+ "parameters": [
15788
+ {
15789
+ "name": "oldMin",
15790
+ "type": {
15791
+ "text": "string"
15792
+ }
15793
+ },
15794
+ {
15795
+ "name": "newMin",
15796
+ "type": {
15797
+ "text": "string"
15798
+ }
15799
+ }
15800
+ ]
15801
+ },
15802
+ {
15803
+ "kind": "method",
15804
+ "name": "dateFilterMaxChanged",
15805
+ "parameters": [
15806
+ {
15807
+ "name": "oldMax",
15808
+ "type": {
15809
+ "text": "string"
15810
+ }
15811
+ },
15812
+ {
15813
+ "name": "newMax",
15814
+ "type": {
15815
+ "text": "string"
15816
+ }
15817
+ }
15818
+ ]
15819
+ },
15820
+ {
15821
+ "kind": "method",
15822
+ "name": "handleDateFilter",
15823
+ "privacy": "private",
15824
+ "parameters": [
15825
+ {
15826
+ "name": "min",
15827
+ "type": {
15828
+ "text": "number"
15829
+ }
15830
+ },
15831
+ {
15832
+ "name": "max",
15833
+ "type": {
15834
+ "text": "number"
15835
+ }
15836
+ }
15837
+ ]
15838
+ },
15839
+ {
15840
+ "kind": "method",
15841
+ "name": "clear",
15842
+ "privacy": "public"
15843
+ },
15844
+ {
15845
+ "kind": "method",
15846
+ "name": "onBooleanFilterSelection",
15847
+ "privacy": "public",
15848
+ "parameters": [
15849
+ {
15850
+ "name": "selection",
15851
+ "type": {
15852
+ "text": "'all' | 'true' | 'false' | 'null'"
15853
+ }
15854
+ }
15855
+ ]
15856
+ },
15857
+ {
15858
+ "kind": "method",
15859
+ "name": "onEnumFilterSelection",
15860
+ "privacy": "public",
15861
+ "parameters": [
15862
+ {
15863
+ "name": "selection",
15864
+ "type": {
15865
+ "text": "string"
15866
+ }
15867
+ }
15868
+ ]
15869
+ },
15802
15870
  {
15803
15871
  "kind": "field",
15804
15872
  "name": "_presentation",
@@ -15913,325 +15981,139 @@
15913
15981
  ],
15914
15982
  "attributes": [
15915
15983
  {
15916
- "name": "label",
15917
- "type": {
15918
- "text": "string"
15919
- },
15920
- "fieldName": "label"
15921
- },
15922
- {
15923
- "name": "accept",
15924
- "type": {
15925
- "text": "string"
15926
- },
15927
- "default": "''",
15928
- "fieldName": "accept"
15929
- },
15930
- {
15931
- "name": "file-size-limit-bytes",
15932
- "default": "FILE_SIZE_LIMIT",
15933
- "resolveInitializer": {
15934
- "module": "src/file-upload/file-upload.ts"
15935
- },
15936
- "fieldName": "fileSizeLimitBytes"
15937
- },
15938
- {
15939
- "name": "uploaded-files-resource-name",
15940
- "type": {
15941
- "text": "string"
15942
- },
15943
- "default": "'ALL_FILE_ATTACHMENTS'",
15944
- "fieldName": "uploadedFilesResourceName"
15945
- },
15946
- {
15947
- "name": "upload-event-name",
15984
+ "name": "fieldName",
15948
15985
  "type": {
15949
15986
  "text": "string"
15950
15987
  },
15951
- "default": "'gwf/attachment-handler/upload'",
15952
- "fieldName": "uploadEventName"
15988
+ "fieldName": "fieldName"
15953
15989
  },
15954
15990
  {
15955
- "name": "field-name",
15991
+ "name": "type",
15956
15992
  "type": {
15957
- "text": "string"
15993
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15958
15994
  },
15959
- "fieldName": "fieldName"
15995
+ "default": "'text'",
15996
+ "fieldName": "type"
15960
15997
  },
15961
15998
  {
15962
- "name": "entity-id",
15999
+ "name": "label",
15963
16000
  "type": {
15964
16001
  "text": "string"
15965
16002
  },
15966
- "fieldName": "entityId"
16003
+ "fieldName": "label"
15967
16004
  },
15968
16005
  {
15969
- "name": "upload-key",
16006
+ "name": "target",
15970
16007
  "type": {
15971
16008
  "text": "string"
15972
16009
  },
15973
- "fieldName": "uploadKey"
16010
+ "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.",
16011
+ "fieldName": "target"
15974
16012
  },
15975
16013
  {
15976
- "name": "grid-fields",
16014
+ "name": "enumOptions",
15977
16015
  "type": {
15978
16016
  "text": "string"
15979
16017
  },
15980
- "default": "''",
15981
- "fieldName": "gridFields"
16018
+ "fieldName": "enumOptions"
15982
16019
  }
15983
16020
  ],
15984
16021
  "superclass": {
15985
16022
  "name": "FoundationElement",
15986
16023
  "package": "@microsoft/fast-foundation"
15987
16024
  },
15988
- "tagName": "%%prefix%%-file-upload",
16025
+ "tagName": "%%prefix%%-filter",
15989
16026
  "customElement": true
15990
16027
  },
15991
16028
  {
15992
16029
  "kind": "variable",
15993
- "name": "foundationFileUploadShadowOptions",
15994
- "type": {
15995
- "text": "ShadowRootInit"
15996
- },
15997
- "default": "undefined"
15998
- },
15999
- {
16000
- "kind": "variable",
16001
- "name": "defaultFileUploadConfig",
16002
- "type": {
16003
- "text": "object"
16004
- },
16005
- "default": "{}"
16006
- },
16007
- {
16008
- "kind": "variable",
16009
- "name": "foundationFileUpload",
16010
- "description": "The Foundation File Upload",
16011
- "privacy": "public"
16030
+ "name": "foundationFilter"
16012
16031
  }
16013
16032
  ],
16014
16033
  "exports": [
16015
16034
  {
16016
16035
  "kind": "js",
16017
- "name": "FileUpload",
16036
+ "name": "Filter",
16018
16037
  "declaration": {
16019
- "name": "FileUpload",
16020
- "module": "src/file-upload/file-upload.ts"
16038
+ "name": "Filter",
16039
+ "module": "src/filter/filter.ts"
16021
16040
  }
16022
16041
  },
16023
16042
  {
16024
16043
  "kind": "js",
16025
- "name": "foundationFileUploadShadowOptions",
16044
+ "name": "foundationFilter",
16026
16045
  "declaration": {
16027
- "name": "foundationFileUploadShadowOptions",
16028
- "module": "src/file-upload/file-upload.ts"
16046
+ "name": "foundationFilter",
16047
+ "module": "src/filter/filter.ts"
16048
+ }
16049
+ }
16050
+ ]
16051
+ },
16052
+ {
16053
+ "kind": "javascript-module",
16054
+ "path": "src/filter/index.ts",
16055
+ "declarations": [],
16056
+ "exports": [
16057
+ {
16058
+ "kind": "js",
16059
+ "name": "*",
16060
+ "declaration": {
16061
+ "name": "*",
16062
+ "package": "./filter.styles"
16029
16063
  }
16030
16064
  },
16031
16065
  {
16032
16066
  "kind": "js",
16033
- "name": "defaultFileUploadConfig",
16067
+ "name": "*",
16034
16068
  "declaration": {
16035
- "name": "defaultFileUploadConfig",
16036
- "module": "src/file-upload/file-upload.ts"
16069
+ "name": "*",
16070
+ "package": "./filter.template"
16037
16071
  }
16038
16072
  },
16039
16073
  {
16040
16074
  "kind": "js",
16041
- "name": "foundationFileUpload",
16075
+ "name": "*",
16042
16076
  "declaration": {
16043
- "name": "foundationFileUpload",
16044
- "module": "src/file-upload/file-upload.ts"
16077
+ "name": "*",
16078
+ "package": "./filter"
16045
16079
  }
16046
16080
  }
16047
16081
  ]
16048
16082
  },
16049
16083
  {
16050
16084
  "kind": "javascript-module",
16051
- "path": "src/file-upload/file-upload.utils.ts",
16085
+ "path": "src/file-upload/file-upload.styles.ts",
16052
16086
  "declarations": [
16053
16087
  {
16054
- "kind": "function",
16055
- "name": "createFormData",
16056
- "parameters": [
16057
- {
16058
- "name": "files",
16059
- "type": {
16060
- "text": "Array<File>"
16061
- }
16062
- }
16063
- ]
16064
- },
16088
+ "kind": "variable",
16089
+ "name": "foundationFileUploadStyles",
16090
+ "type": {
16091
+ "text": "ElementStyles"
16092
+ },
16093
+ "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`"
16094
+ }
16095
+ ],
16096
+ "exports": [
16097
+ {
16098
+ "kind": "js",
16099
+ "name": "foundationFileUploadStyles",
16100
+ "declaration": {
16101
+ "name": "foundationFileUploadStyles",
16102
+ "module": "src/file-upload/file-upload.styles.ts"
16103
+ }
16104
+ }
16105
+ ]
16106
+ },
16107
+ {
16108
+ "kind": "javascript-module",
16109
+ "path": "src/file-upload/file-upload.template.ts",
16110
+ "declarations": [
16065
16111
  {
16066
16112
  "kind": "function",
16067
- "name": "uploadFiles",
16113
+ "name": "getPrefixedFileUpload",
16068
16114
  "parameters": [
16069
16115
  {
16070
- "name": "url",
16071
- "type": {
16072
- "text": "string"
16073
- }
16074
- },
16075
- {
16076
- "name": "formData",
16077
- "type": {
16078
- "text": "FormData"
16079
- }
16080
- },
16081
- {
16082
- "name": "authToken",
16083
- "type": {
16084
- "text": "string"
16085
- }
16086
- }
16087
- ]
16088
- },
16089
- {
16090
- "kind": "function",
16091
- "name": "downloadFile",
16092
- "parameters": [
16093
- {
16094
- "name": "url",
16095
- "type": {
16096
- "text": "string"
16097
- }
16098
- },
16099
- {
16100
- "name": "filename",
16101
- "type": {
16102
- "text": "string"
16103
- }
16104
- },
16105
- {
16106
- "name": "authToken",
16107
- "type": {
16108
- "text": "string"
16109
- }
16110
- },
16111
- {
16112
- "name": "method",
16113
- "default": "'GET'",
16114
- "type": {
16115
- "text": "string"
16116
- }
16117
- },
16118
- {
16119
- "name": "showNotifications",
16120
- "optional": true,
16121
- "type": {
16122
- "text": "boolean"
16123
- }
16124
- },
16125
- {
16126
- "name": "body",
16127
- "optional": true,
16128
- "type": {
16129
- "text": "any"
16130
- }
16131
- }
16132
- ]
16133
- }
16134
- ],
16135
- "exports": [
16136
- {
16137
- "kind": "js",
16138
- "name": "createFormData",
16139
- "declaration": {
16140
- "name": "createFormData",
16141
- "module": "src/file-upload/file-upload.utils.ts"
16142
- }
16143
- },
16144
- {
16145
- "kind": "js",
16146
- "name": "uploadFiles",
16147
- "declaration": {
16148
- "name": "uploadFiles",
16149
- "module": "src/file-upload/file-upload.utils.ts"
16150
- }
16151
- },
16152
- {
16153
- "kind": "js",
16154
- "name": "downloadFile",
16155
- "declaration": {
16156
- "name": "downloadFile",
16157
- "module": "src/file-upload/file-upload.utils.ts"
16158
- }
16159
- }
16160
- ]
16161
- },
16162
- {
16163
- "kind": "javascript-module",
16164
- "path": "src/file-upload/index.ts",
16165
- "declarations": [],
16166
- "exports": [
16167
- {
16168
- "kind": "js",
16169
- "name": "*",
16170
- "declaration": {
16171
- "name": "*",
16172
- "package": "./file-upload"
16173
- }
16174
- },
16175
- {
16176
- "kind": "js",
16177
- "name": "*",
16178
- "declaration": {
16179
- "name": "*",
16180
- "package": "./file-upload.template"
16181
- }
16182
- },
16183
- {
16184
- "kind": "js",
16185
- "name": "*",
16186
- "declaration": {
16187
- "name": "*",
16188
- "package": "./file-upload.styles"
16189
- }
16190
- },
16191
- {
16192
- "kind": "js",
16193
- "name": "*",
16194
- "declaration": {
16195
- "name": "*",
16196
- "package": "./file-upload.utils"
16197
- }
16198
- }
16199
- ]
16200
- },
16201
- {
16202
- "kind": "javascript-module",
16203
- "path": "src/filter/filter.styles.ts",
16204
- "declarations": [
16205
- {
16206
- "kind": "variable",
16207
- "name": "foundationFilterStyles",
16208
- "type": {
16209
- "text": "ElementStyles"
16210
- },
16211
- "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`"
16212
- }
16213
- ],
16214
- "exports": [
16215
- {
16216
- "kind": "js",
16217
- "name": "foundationFilterStyles",
16218
- "declaration": {
16219
- "name": "foundationFilterStyles",
16220
- "module": "src/filter/filter.styles.ts"
16221
- }
16222
- }
16223
- ]
16224
- },
16225
- {
16226
- "kind": "javascript-module",
16227
- "path": "src/filter/filter.template.ts",
16228
- "declarations": [
16229
- {
16230
- "kind": "function",
16231
- "name": "getPrefixedFilterTemplate",
16232
- "parameters": [
16233
- {
16234
- "name": "prefix",
16116
+ "name": "prefix",
16235
16117
  "type": {
16236
16118
  "text": "string"
16237
16119
  }
@@ -16240,354 +16122,286 @@
16240
16122
  },
16241
16123
  {
16242
16124
  "kind": "variable",
16243
- "name": "foundationFilterTemplate",
16244
- "type": {
16245
- "text": "ViewTemplate<Filter>"
16246
- },
16247
- "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
16125
+ "name": "foundationFileUploadTemplate",
16126
+ "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
16248
16127
  }
16249
16128
  ],
16250
16129
  "exports": [
16251
16130
  {
16252
16131
  "kind": "js",
16253
- "name": "getPrefixedFilterTemplate",
16132
+ "name": "getPrefixedFileUpload",
16254
16133
  "declaration": {
16255
- "name": "getPrefixedFilterTemplate",
16256
- "module": "src/filter/filter.template.ts"
16134
+ "name": "getPrefixedFileUpload",
16135
+ "module": "src/file-upload/file-upload.template.ts"
16257
16136
  }
16258
16137
  },
16259
16138
  {
16260
16139
  "kind": "js",
16261
- "name": "foundationFilterTemplate",
16140
+ "name": "foundationFileUploadTemplate",
16262
16141
  "declaration": {
16263
- "name": "foundationFilterTemplate",
16264
- "module": "src/filter/filter.template.ts"
16142
+ "name": "foundationFileUploadTemplate",
16143
+ "module": "src/file-upload/file-upload.template.ts"
16265
16144
  }
16266
16145
  }
16267
16146
  ]
16268
16147
  },
16269
16148
  {
16270
16149
  "kind": "javascript-module",
16271
- "path": "src/filter/filter.ts",
16150
+ "path": "src/file-upload/file-upload.ts",
16272
16151
  "declarations": [
16273
16152
  {
16274
16153
  "kind": "class",
16275
16154
  "description": "",
16276
- "name": "Filter",
16155
+ "name": "FileUpload",
16277
16156
  "members": [
16278
16157
  {
16279
16158
  "kind": "field",
16280
- "name": "textFilterField",
16159
+ "name": "fileInput",
16281
16160
  "type": {
16282
- "text": "TextField"
16161
+ "text": "HTMLInputElement"
16283
16162
  },
16284
16163
  "privacy": "public"
16285
16164
  },
16286
16165
  {
16287
16166
  "kind": "field",
16288
- "name": "numFilterFieldMin",
16167
+ "name": "acceptedFormats",
16289
16168
  "type": {
16290
- "text": "TextField"
16169
+ "text": "array"
16291
16170
  },
16292
- "privacy": "public"
16171
+ "privacy": "private",
16172
+ "default": "[]"
16293
16173
  },
16294
16174
  {
16295
16175
  "kind": "field",
16296
- "name": "numFilterFieldMax",
16176
+ "name": "selectedFiles",
16297
16177
  "type": {
16298
- "text": "TextField"
16178
+ "text": "File[]"
16299
16179
  },
16300
- "privacy": "public"
16180
+ "privacy": "private"
16301
16181
  },
16302
16182
  {
16303
16183
  "kind": "field",
16304
- "name": "dateFilterFieldMin",
16184
+ "name": "gridCriteria",
16305
16185
  "type": {
16306
- "text": "TextField"
16307
- },
16308
- "privacy": "public"
16186
+ "text": "string"
16187
+ }
16309
16188
  },
16310
16189
  {
16311
16190
  "kind": "field",
16312
- "name": "dateFilterFieldMax",
16191
+ "name": "connect",
16313
16192
  "type": {
16314
- "text": "TextField"
16315
- },
16316
- "privacy": "public"
16193
+ "text": "Connect"
16194
+ }
16317
16195
  },
16318
16196
  {
16319
16197
  "kind": "field",
16320
- "name": "fieldName",
16198
+ "name": "session",
16199
+ "type": {
16200
+ "text": "Session"
16201
+ }
16202
+ },
16203
+ {
16204
+ "kind": "field",
16205
+ "name": "label",
16321
16206
  "type": {
16322
16207
  "text": "string"
16323
16208
  }
16324
16209
  },
16325
16210
  {
16326
16211
  "kind": "field",
16327
- "name": "type",
16212
+ "name": "accept",
16328
16213
  "type": {
16329
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16214
+ "text": "string"
16330
16215
  },
16331
- "default": "'text'"
16216
+ "default": "''"
16217
+ },
16218
+ {
16219
+ "kind": "method",
16220
+ "name": "acceptChanged"
16332
16221
  },
16333
16222
  {
16334
16223
  "kind": "field",
16335
- "name": "label",
16224
+ "name": "fileSizeLimitBytes",
16225
+ "default": "104_857_600",
16336
16226
  "type": {
16337
- "text": "string"
16227
+ "text": "number"
16338
16228
  }
16339
16229
  },
16340
16230
  {
16341
16231
  "kind": "field",
16342
- "name": "target",
16232
+ "name": "uploadedFilesResourceName",
16343
16233
  "type": {
16344
16234
  "text": "string"
16345
16235
  },
16346
- "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."
16236
+ "default": "'ALL_FILE_ATTACHMENTS'"
16347
16237
  },
16348
16238
  {
16349
16239
  "kind": "field",
16350
- "name": "textFilter",
16240
+ "name": "uploadEventName",
16351
16241
  "type": {
16352
16242
  "text": "string"
16353
16243
  },
16354
- "default": "''"
16244
+ "default": "'gwf/attachment-handler/upload'"
16355
16245
  },
16356
16246
  {
16357
16247
  "kind": "field",
16358
- "name": "numFilterMin",
16248
+ "name": "fieldName",
16359
16249
  "type": {
16360
- "text": "number"
16250
+ "text": "string"
16361
16251
  }
16362
16252
  },
16253
+ {
16254
+ "kind": "method",
16255
+ "name": "fieldNameChanged"
16256
+ },
16363
16257
  {
16364
16258
  "kind": "field",
16365
- "name": "numFilterMax",
16259
+ "name": "entityId",
16366
16260
  "type": {
16367
- "text": "number"
16261
+ "text": "string"
16368
16262
  }
16369
16263
  },
16264
+ {
16265
+ "kind": "method",
16266
+ "name": "entityIdChanged"
16267
+ },
16370
16268
  {
16371
16269
  "kind": "field",
16372
- "name": "dateFilterMin",
16270
+ "name": "uploadKey",
16373
16271
  "type": {
16374
16272
  "text": "string"
16375
16273
  }
16376
16274
  },
16377
16275
  {
16378
16276
  "kind": "field",
16379
- "name": "dateFilterMax",
16277
+ "name": "gridFields",
16380
16278
  "type": {
16381
16279
  "text": "string"
16382
- }
16280
+ },
16281
+ "default": "''"
16383
16282
  },
16384
16283
  {
16385
16284
  "kind": "field",
16386
- "name": "dateMinMS",
16285
+ "name": "fileName",
16387
16286
  "type": {
16388
- "text": "number"
16389
- }
16287
+ "text": "string"
16288
+ },
16289
+ "default": "''"
16390
16290
  },
16391
16291
  {
16392
16292
  "kind": "field",
16393
- "name": "dateMaxMS",
16293
+ "name": "uploadedFilesList",
16394
16294
  "type": {
16395
- "text": "number"
16396
- }
16295
+ "text": "array"
16296
+ },
16297
+ "default": "[]"
16397
16298
  },
16398
16299
  {
16399
16300
  "kind": "field",
16400
- "name": "enumOptions",
16301
+ "name": "filesGridColumnDefinitions",
16401
16302
  "type": {
16402
- "text": "string"
16403
- }
16303
+ "text": "ColumnDefinition[]"
16304
+ },
16305
+ "default": "[]"
16404
16306
  },
16405
16307
  {
16406
16308
  "kind": "field",
16407
- "name": "enumFilterOptions",
16309
+ "name": "downloadEventName",
16408
16310
  "type": {
16409
- "text": "any[]"
16311
+ "text": "Function"
16410
16312
  },
16411
- "default": "[{ name: 'All', value: 'all', selected: true }]"
16313
+ "privacy": "public"
16412
16314
  },
16413
16315
  {
16414
16316
  "kind": "method",
16415
- "name": "textFilterChanged",
16416
- "parameters": [
16417
- {
16418
- "name": "oldCriteria",
16419
- "type": {
16420
- "text": "string"
16421
- }
16422
- },
16423
- {
16424
- "name": "newCriteria",
16425
- "type": {
16426
- "text": "string"
16427
- }
16428
- }
16429
- ]
16317
+ "name": "setupGrid"
16430
16318
  },
16431
16319
  {
16432
16320
  "kind": "method",
16433
- "name": "numFilterMinChanged",
16321
+ "name": "handleStreamRowOperation",
16322
+ "privacy": "private",
16434
16323
  "parameters": [
16435
16324
  {
16436
- "name": "oldMin",
16437
- "type": {
16438
- "text": "string"
16439
- }
16440
- },
16441
- {
16442
- "name": "newMin",
16325
+ "name": "data",
16443
16326
  "type": {
16444
- "text": "string"
16327
+ "text": "Message<any>"
16445
16328
  }
16446
16329
  }
16447
16330
  ]
16448
16331
  },
16449
16332
  {
16450
16333
  "kind": "method",
16451
- "name": "numFilterMaxChanged",
16452
- "parameters": [
16453
- {
16454
- "name": "oldMax",
16455
- "type": {
16456
- "text": "string"
16457
- }
16458
- },
16459
- {
16460
- "name": "newMax",
16461
- "type": {
16462
- "text": "string"
16463
- }
16464
- }
16465
- ]
16334
+ "name": "setRowData"
16466
16335
  },
16467
16336
  {
16468
16337
  "kind": "method",
16469
- "name": "handleNumericFilter",
16470
- "privacy": "private",
16471
- "parameters": [
16472
- {
16473
- "name": "min",
16474
- "type": {
16475
- "text": "number"
16476
- }
16477
- },
16478
- {
16479
- "name": "max",
16480
- "type": {
16481
- "text": "number"
16482
- }
16483
- }
16484
- ]
16338
+ "name": "setColumnDefs"
16485
16339
  },
16486
16340
  {
16487
16341
  "kind": "method",
16488
- "name": "formatDate",
16489
- "privacy": "private",
16490
- "return": {
16491
- "type": {
16492
- "text": ""
16493
- }
16494
- },
16495
- "parameters": [
16496
- {
16497
- "name": "epoch",
16498
- "type": {
16499
- "text": "number"
16500
- },
16501
- "description": "ms since unix epoch"
16502
- }
16503
- ],
16504
- "description": "Example: 1634083200000 -> '20211013-00:00:00'"
16342
+ "name": "getDownloadColumn",
16343
+ "privacy": "public"
16505
16344
  },
16506
16345
  {
16507
16346
  "kind": "method",
16508
- "name": "dateFilterMinChanged",
16347
+ "name": "getColumnObject",
16348
+ "privacy": "public",
16509
16349
  "parameters": [
16510
16350
  {
16511
- "name": "oldMin",
16512
- "type": {
16513
- "text": "string"
16514
- }
16515
- },
16516
- {
16517
- "name": "newMin",
16518
- "type": {
16519
- "text": "string"
16520
- }
16351
+ "name": "column"
16521
16352
  }
16522
16353
  ]
16523
16354
  },
16524
16355
  {
16525
16356
  "kind": "method",
16526
- "name": "dateFilterMaxChanged",
16357
+ "name": "handleClick",
16358
+ "privacy": "public"
16359
+ },
16360
+ {
16361
+ "kind": "method",
16362
+ "name": "onInputChange",
16363
+ "privacy": "public",
16527
16364
  "parameters": [
16528
16365
  {
16529
- "name": "oldMax",
16530
- "type": {
16531
- "text": "string"
16532
- }
16533
- },
16534
- {
16535
- "name": "newMax",
16536
- "type": {
16537
- "text": "string"
16538
- }
16366
+ "name": "e"
16539
16367
  }
16540
16368
  ]
16541
16369
  },
16542
16370
  {
16543
16371
  "kind": "method",
16544
- "name": "handleDateFilter",
16545
- "privacy": "private",
16372
+ "name": "onFilesSelected",
16373
+ "privacy": "public",
16546
16374
  "parameters": [
16547
16375
  {
16548
- "name": "min",
16549
- "type": {
16550
- "text": "number"
16551
- }
16552
- },
16553
- {
16554
- "name": "max",
16376
+ "name": "files",
16555
16377
  "type": {
16556
- "text": "number"
16378
+ "text": "File[]"
16557
16379
  }
16558
16380
  }
16559
16381
  ]
16560
16382
  },
16561
16383
  {
16562
16384
  "kind": "method",
16563
- "name": "clear",
16385
+ "name": "handleFileUpload",
16564
16386
  "privacy": "public"
16565
16387
  },
16566
16388
  {
16567
16389
  "kind": "method",
16568
- "name": "onBooleanFilterSelection",
16390
+ "name": "handleFileDownload",
16569
16391
  "privacy": "public",
16570
16392
  "parameters": [
16571
16393
  {
16572
- "name": "selection",
16394
+ "name": "rowData",
16573
16395
  "type": {
16574
- "text": "'all' | 'true' | 'false' | 'null'"
16396
+ "text": "any"
16575
16397
  }
16576
16398
  }
16577
16399
  ]
16578
16400
  },
16579
16401
  {
16580
16402
  "kind": "method",
16581
- "name": "onEnumFilterSelection",
16582
- "privacy": "public",
16583
- "parameters": [
16584
- {
16585
- "name": "selection",
16586
- "type": {
16587
- "text": "string"
16588
- }
16589
- }
16590
- ]
16403
+ "name": "clearSelection",
16404
+ "privacy": "public"
16591
16405
  },
16592
16406
  {
16593
16407
  "kind": "field",
@@ -16703,77 +16517,255 @@
16703
16517
  ],
16704
16518
  "attributes": [
16705
16519
  {
16706
- "name": "fieldName",
16520
+ "name": "label",
16707
16521
  "type": {
16708
16522
  "text": "string"
16709
16523
  },
16710
- "fieldName": "fieldName"
16524
+ "fieldName": "label"
16711
16525
  },
16712
16526
  {
16713
- "name": "type",
16527
+ "name": "accept",
16714
16528
  "type": {
16715
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16529
+ "text": "string"
16716
16530
  },
16717
- "default": "'text'",
16718
- "fieldName": "type"
16531
+ "default": "''",
16532
+ "fieldName": "accept"
16719
16533
  },
16720
16534
  {
16721
- "name": "label",
16535
+ "name": "file-size-limit-bytes",
16536
+ "default": "FILE_SIZE_LIMIT",
16537
+ "resolveInitializer": {
16538
+ "module": "src/file-upload/file-upload.ts"
16539
+ },
16540
+ "fieldName": "fileSizeLimitBytes"
16541
+ },
16542
+ {
16543
+ "name": "uploaded-files-resource-name",
16722
16544
  "type": {
16723
16545
  "text": "string"
16724
16546
  },
16725
- "fieldName": "label"
16547
+ "default": "'ALL_FILE_ATTACHMENTS'",
16548
+ "fieldName": "uploadedFilesResourceName"
16726
16549
  },
16727
16550
  {
16728
- "name": "target",
16551
+ "name": "upload-event-name",
16729
16552
  "type": {
16730
16553
  "text": "string"
16731
16554
  },
16732
- "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.",
16733
- "fieldName": "target"
16555
+ "default": "'gwf/attachment-handler/upload'",
16556
+ "fieldName": "uploadEventName"
16734
16557
  },
16735
16558
  {
16736
- "name": "enumOptions",
16559
+ "name": "field-name",
16737
16560
  "type": {
16738
16561
  "text": "string"
16739
16562
  },
16740
- "fieldName": "enumOptions"
16563
+ "fieldName": "fieldName"
16564
+ },
16565
+ {
16566
+ "name": "entity-id",
16567
+ "type": {
16568
+ "text": "string"
16569
+ },
16570
+ "fieldName": "entityId"
16571
+ },
16572
+ {
16573
+ "name": "upload-key",
16574
+ "type": {
16575
+ "text": "string"
16576
+ },
16577
+ "fieldName": "uploadKey"
16578
+ },
16579
+ {
16580
+ "name": "grid-fields",
16581
+ "type": {
16582
+ "text": "string"
16583
+ },
16584
+ "default": "''",
16585
+ "fieldName": "gridFields"
16741
16586
  }
16742
16587
  ],
16743
16588
  "superclass": {
16744
16589
  "name": "FoundationElement",
16745
16590
  "package": "@microsoft/fast-foundation"
16746
16591
  },
16747
- "tagName": "%%prefix%%-filter",
16592
+ "tagName": "%%prefix%%-file-upload",
16748
16593
  "customElement": true
16749
16594
  },
16750
16595
  {
16751
16596
  "kind": "variable",
16752
- "name": "foundationFilter"
16597
+ "name": "foundationFileUploadShadowOptions",
16598
+ "type": {
16599
+ "text": "ShadowRootInit"
16600
+ },
16601
+ "default": "undefined"
16602
+ },
16603
+ {
16604
+ "kind": "variable",
16605
+ "name": "defaultFileUploadConfig",
16606
+ "type": {
16607
+ "text": "object"
16608
+ },
16609
+ "default": "{}"
16610
+ },
16611
+ {
16612
+ "kind": "variable",
16613
+ "name": "foundationFileUpload",
16614
+ "description": "The Foundation File Upload",
16615
+ "privacy": "public"
16753
16616
  }
16754
16617
  ],
16755
16618
  "exports": [
16756
16619
  {
16757
16620
  "kind": "js",
16758
- "name": "Filter",
16621
+ "name": "FileUpload",
16759
16622
  "declaration": {
16760
- "name": "Filter",
16761
- "module": "src/filter/filter.ts"
16623
+ "name": "FileUpload",
16624
+ "module": "src/file-upload/file-upload.ts"
16762
16625
  }
16763
16626
  },
16764
16627
  {
16765
16628
  "kind": "js",
16766
- "name": "foundationFilter",
16629
+ "name": "foundationFileUploadShadowOptions",
16767
16630
  "declaration": {
16768
- "name": "foundationFilter",
16769
- "module": "src/filter/filter.ts"
16631
+ "name": "foundationFileUploadShadowOptions",
16632
+ "module": "src/file-upload/file-upload.ts"
16633
+ }
16634
+ },
16635
+ {
16636
+ "kind": "js",
16637
+ "name": "defaultFileUploadConfig",
16638
+ "declaration": {
16639
+ "name": "defaultFileUploadConfig",
16640
+ "module": "src/file-upload/file-upload.ts"
16641
+ }
16642
+ },
16643
+ {
16644
+ "kind": "js",
16645
+ "name": "foundationFileUpload",
16646
+ "declaration": {
16647
+ "name": "foundationFileUpload",
16648
+ "module": "src/file-upload/file-upload.ts"
16770
16649
  }
16771
16650
  }
16772
16651
  ]
16773
16652
  },
16774
16653
  {
16775
16654
  "kind": "javascript-module",
16776
- "path": "src/filter/index.ts",
16655
+ "path": "src/file-upload/file-upload.utils.ts",
16656
+ "declarations": [
16657
+ {
16658
+ "kind": "function",
16659
+ "name": "createFormData",
16660
+ "parameters": [
16661
+ {
16662
+ "name": "files",
16663
+ "type": {
16664
+ "text": "Array<File>"
16665
+ }
16666
+ }
16667
+ ]
16668
+ },
16669
+ {
16670
+ "kind": "function",
16671
+ "name": "uploadFiles",
16672
+ "parameters": [
16673
+ {
16674
+ "name": "url",
16675
+ "type": {
16676
+ "text": "string"
16677
+ }
16678
+ },
16679
+ {
16680
+ "name": "formData",
16681
+ "type": {
16682
+ "text": "FormData"
16683
+ }
16684
+ },
16685
+ {
16686
+ "name": "authToken",
16687
+ "type": {
16688
+ "text": "string"
16689
+ }
16690
+ }
16691
+ ]
16692
+ },
16693
+ {
16694
+ "kind": "function",
16695
+ "name": "downloadFile",
16696
+ "parameters": [
16697
+ {
16698
+ "name": "url",
16699
+ "type": {
16700
+ "text": "string"
16701
+ }
16702
+ },
16703
+ {
16704
+ "name": "filename",
16705
+ "type": {
16706
+ "text": "string"
16707
+ }
16708
+ },
16709
+ {
16710
+ "name": "authToken",
16711
+ "type": {
16712
+ "text": "string"
16713
+ }
16714
+ },
16715
+ {
16716
+ "name": "method",
16717
+ "default": "'GET'",
16718
+ "type": {
16719
+ "text": "string"
16720
+ }
16721
+ },
16722
+ {
16723
+ "name": "showNotifications",
16724
+ "optional": true,
16725
+ "type": {
16726
+ "text": "boolean"
16727
+ }
16728
+ },
16729
+ {
16730
+ "name": "body",
16731
+ "optional": true,
16732
+ "type": {
16733
+ "text": "any"
16734
+ }
16735
+ }
16736
+ ]
16737
+ }
16738
+ ],
16739
+ "exports": [
16740
+ {
16741
+ "kind": "js",
16742
+ "name": "createFormData",
16743
+ "declaration": {
16744
+ "name": "createFormData",
16745
+ "module": "src/file-upload/file-upload.utils.ts"
16746
+ }
16747
+ },
16748
+ {
16749
+ "kind": "js",
16750
+ "name": "uploadFiles",
16751
+ "declaration": {
16752
+ "name": "uploadFiles",
16753
+ "module": "src/file-upload/file-upload.utils.ts"
16754
+ }
16755
+ },
16756
+ {
16757
+ "kind": "js",
16758
+ "name": "downloadFile",
16759
+ "declaration": {
16760
+ "name": "downloadFile",
16761
+ "module": "src/file-upload/file-upload.utils.ts"
16762
+ }
16763
+ }
16764
+ ]
16765
+ },
16766
+ {
16767
+ "kind": "javascript-module",
16768
+ "path": "src/file-upload/index.ts",
16777
16769
  "declarations": [],
16778
16770
  "exports": [
16779
16771
  {
@@ -16781,7 +16773,7 @@
16781
16773
  "name": "*",
16782
16774
  "declaration": {
16783
16775
  "name": "*",
16784
- "package": "./filter.styles"
16776
+ "package": "./file-upload"
16785
16777
  }
16786
16778
  },
16787
16779
  {
@@ -16789,7 +16781,7 @@
16789
16781
  "name": "*",
16790
16782
  "declaration": {
16791
16783
  "name": "*",
16792
- "package": "./filter.template"
16784
+ "package": "./file-upload.template"
16793
16785
  }
16794
16786
  },
16795
16787
  {
@@ -16797,7 +16789,15 @@
16797
16789
  "name": "*",
16798
16790
  "declaration": {
16799
16791
  "name": "*",
16800
- "package": "./filter"
16792
+ "package": "./file-upload.styles"
16793
+ }
16794
+ },
16795
+ {
16796
+ "kind": "js",
16797
+ "name": "*",
16798
+ "declaration": {
16799
+ "name": "*",
16800
+ "package": "./file-upload.utils"
16801
16801
  }
16802
16802
  }
16803
16803
  ]