@genesislcap/foundation-ui 14.145.4 → 14.146.1-alpha-662fbc3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/custom-elements.json +859 -859
  2. package/package.json +10 -10
@@ -785,6 +785,260 @@
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
+ },
788
1042
  {
789
1043
  "kind": "javascript-module",
790
1044
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1179,260 +1433,6 @@
1179
1433
  }
1180
1434
  ]
1181
1435
  },
1182
- {
1183
- "kind": "javascript-module",
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
1436
  {
1437
1437
  "kind": "javascript-module",
1438
1438
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -15478,35 +15478,35 @@
15478
15478
  },
15479
15479
  {
15480
15480
  "kind": "javascript-module",
15481
- "path": "src/filter/filter.styles.ts",
15481
+ "path": "src/file-upload/file-upload.styles.ts",
15482
15482
  "declarations": [
15483
15483
  {
15484
15484
  "kind": "variable",
15485
- "name": "foundationFilterStyles",
15485
+ "name": "foundationFileUploadStyles",
15486
15486
  "type": {
15487
15487
  "text": "ElementStyles"
15488
15488
  },
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`"
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`"
15490
15490
  }
15491
15491
  ],
15492
15492
  "exports": [
15493
15493
  {
15494
15494
  "kind": "js",
15495
- "name": "foundationFilterStyles",
15495
+ "name": "foundationFileUploadStyles",
15496
15496
  "declaration": {
15497
- "name": "foundationFilterStyles",
15498
- "module": "src/filter/filter.styles.ts"
15497
+ "name": "foundationFileUploadStyles",
15498
+ "module": "src/file-upload/file-upload.styles.ts"
15499
15499
  }
15500
15500
  }
15501
15501
  ]
15502
15502
  },
15503
15503
  {
15504
15504
  "kind": "javascript-module",
15505
- "path": "src/filter/filter.template.ts",
15505
+ "path": "src/file-upload/file-upload.template.ts",
15506
15506
  "declarations": [
15507
15507
  {
15508
15508
  "kind": "function",
15509
- "name": "getPrefixedFilterTemplate",
15509
+ "name": "getPrefixedFileUpload",
15510
15510
  "parameters": [
15511
15511
  {
15512
15512
  "name": "prefix",
@@ -15518,355 +15518,287 @@
15518
15518
  },
15519
15519
  {
15520
15520
  "kind": "variable",
15521
- "name": "foundationFilterTemplate",
15522
- "type": {
15523
- "text": "ViewTemplate<Filter>"
15524
- },
15525
- "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
15521
+ "name": "foundationFileUploadTemplate",
15522
+ "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
15526
15523
  }
15527
15524
  ],
15528
15525
  "exports": [
15529
15526
  {
15530
15527
  "kind": "js",
15531
- "name": "getPrefixedFilterTemplate",
15528
+ "name": "getPrefixedFileUpload",
15532
15529
  "declaration": {
15533
- "name": "getPrefixedFilterTemplate",
15534
- "module": "src/filter/filter.template.ts"
15530
+ "name": "getPrefixedFileUpload",
15531
+ "module": "src/file-upload/file-upload.template.ts"
15535
15532
  }
15536
15533
  },
15537
15534
  {
15538
15535
  "kind": "js",
15539
- "name": "foundationFilterTemplate",
15536
+ "name": "foundationFileUploadTemplate",
15540
15537
  "declaration": {
15541
- "name": "foundationFilterTemplate",
15542
- "module": "src/filter/filter.template.ts"
15538
+ "name": "foundationFileUploadTemplate",
15539
+ "module": "src/file-upload/file-upload.template.ts"
15543
15540
  }
15544
15541
  }
15545
15542
  ]
15546
15543
  },
15547
15544
  {
15548
15545
  "kind": "javascript-module",
15549
- "path": "src/filter/filter.ts",
15546
+ "path": "src/file-upload/file-upload.ts",
15550
15547
  "declarations": [
15551
15548
  {
15552
15549
  "kind": "class",
15553
15550
  "description": "",
15554
- "name": "Filter",
15551
+ "name": "FileUpload",
15555
15552
  "members": [
15556
15553
  {
15557
15554
  "kind": "field",
15558
- "name": "textFilterField",
15555
+ "name": "fileInput",
15559
15556
  "type": {
15560
- "text": "TextField"
15557
+ "text": "HTMLInputElement"
15561
15558
  },
15562
15559
  "privacy": "public"
15563
15560
  },
15564
15561
  {
15565
15562
  "kind": "field",
15566
- "name": "numFilterFieldMin",
15563
+ "name": "acceptedFormats",
15567
15564
  "type": {
15568
- "text": "TextField"
15565
+ "text": "array"
15569
15566
  },
15570
- "privacy": "public"
15567
+ "privacy": "private",
15568
+ "default": "[]"
15571
15569
  },
15572
15570
  {
15573
15571
  "kind": "field",
15574
- "name": "numFilterFieldMax",
15572
+ "name": "selectedFiles",
15575
15573
  "type": {
15576
- "text": "TextField"
15574
+ "text": "File[]"
15577
15575
  },
15578
- "privacy": "public"
15576
+ "privacy": "private"
15579
15577
  },
15580
15578
  {
15581
15579
  "kind": "field",
15582
- "name": "dateFilterFieldMin",
15580
+ "name": "gridCriteria",
15583
15581
  "type": {
15584
- "text": "TextField"
15585
- },
15586
- "privacy": "public"
15582
+ "text": "string"
15583
+ }
15587
15584
  },
15588
15585
  {
15589
15586
  "kind": "field",
15590
- "name": "dateFilterFieldMax",
15587
+ "name": "connect",
15591
15588
  "type": {
15592
- "text": "TextField"
15593
- },
15594
- "privacy": "public"
15589
+ "text": "Connect"
15590
+ }
15595
15591
  },
15596
15592
  {
15597
15593
  "kind": "field",
15598
- "name": "fieldName",
15594
+ "name": "session",
15595
+ "type": {
15596
+ "text": "Session"
15597
+ }
15598
+ },
15599
+ {
15600
+ "kind": "field",
15601
+ "name": "label",
15599
15602
  "type": {
15600
15603
  "text": "string"
15601
15604
  }
15602
15605
  },
15603
15606
  {
15604
15607
  "kind": "field",
15605
- "name": "type",
15608
+ "name": "accept",
15606
15609
  "type": {
15607
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15610
+ "text": "string"
15608
15611
  },
15609
- "default": "'text'"
15612
+ "default": "''"
15613
+ },
15614
+ {
15615
+ "kind": "method",
15616
+ "name": "acceptChanged"
15610
15617
  },
15611
15618
  {
15612
15619
  "kind": "field",
15613
- "name": "label",
15620
+ "name": "fileSizeLimitBytes",
15621
+ "default": "104_857_600",
15614
15622
  "type": {
15615
- "text": "string"
15623
+ "text": "number"
15616
15624
  }
15617
15625
  },
15618
15626
  {
15619
15627
  "kind": "field",
15620
- "name": "target",
15628
+ "name": "uploadedFilesResourceName",
15621
15629
  "type": {
15622
15630
  "text": "string"
15623
15631
  },
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."
15632
+ "default": "'ALL_FILE_ATTACHMENTS'"
15625
15633
  },
15626
15634
  {
15627
15635
  "kind": "field",
15628
- "name": "textFilter",
15636
+ "name": "uploadEventName",
15629
15637
  "type": {
15630
15638
  "text": "string"
15631
15639
  },
15632
- "default": "''"
15640
+ "default": "'gwf/attachment-handler/upload'"
15633
15641
  },
15634
15642
  {
15635
15643
  "kind": "field",
15636
- "name": "numFilterMin",
15644
+ "name": "fieldName",
15637
15645
  "type": {
15638
- "text": "number"
15646
+ "text": "string"
15639
15647
  }
15640
15648
  },
15649
+ {
15650
+ "kind": "method",
15651
+ "name": "fieldNameChanged"
15652
+ },
15641
15653
  {
15642
15654
  "kind": "field",
15643
- "name": "numFilterMax",
15655
+ "name": "entityId",
15644
15656
  "type": {
15645
- "text": "number"
15657
+ "text": "string"
15646
15658
  }
15647
15659
  },
15660
+ {
15661
+ "kind": "method",
15662
+ "name": "entityIdChanged"
15663
+ },
15648
15664
  {
15649
15665
  "kind": "field",
15650
- "name": "dateFilterMin",
15666
+ "name": "uploadKey",
15651
15667
  "type": {
15652
15668
  "text": "string"
15653
15669
  }
15654
15670
  },
15655
15671
  {
15656
15672
  "kind": "field",
15657
- "name": "dateFilterMax",
15673
+ "name": "gridFields",
15658
15674
  "type": {
15659
15675
  "text": "string"
15660
- }
15676
+ },
15677
+ "default": "''"
15661
15678
  },
15662
15679
  {
15663
15680
  "kind": "field",
15664
- "name": "dateMinMS",
15681
+ "name": "fileName",
15665
15682
  "type": {
15666
- "text": "number"
15667
- }
15683
+ "text": "string"
15684
+ },
15685
+ "default": "''"
15668
15686
  },
15669
15687
  {
15670
15688
  "kind": "field",
15671
- "name": "dateMaxMS",
15689
+ "name": "uploadedFilesList",
15672
15690
  "type": {
15673
- "text": "number"
15674
- }
15691
+ "text": "array"
15692
+ },
15693
+ "default": "[]"
15675
15694
  },
15676
15695
  {
15677
15696
  "kind": "field",
15678
- "name": "enumOptions",
15697
+ "name": "filesGridColumnDefinitions",
15679
15698
  "type": {
15680
- "text": "string"
15681
- }
15699
+ "text": "ColumnDefinition[]"
15700
+ },
15701
+ "default": "[]"
15682
15702
  },
15683
15703
  {
15684
15704
  "kind": "field",
15685
- "name": "enumFilterOptions",
15705
+ "name": "downloadEventName",
15686
15706
  "type": {
15687
- "text": "any[]"
15707
+ "text": "Function"
15688
15708
  },
15689
- "default": "[{ name: 'All', value: 'all', selected: true }]"
15709
+ "privacy": "public"
15690
15710
  },
15691
15711
  {
15692
15712
  "kind": "method",
15693
- "name": "textFilterChanged",
15713
+ "name": "setupGrid"
15714
+ },
15715
+ {
15716
+ "kind": "method",
15717
+ "name": "handleStreamRowOperation",
15718
+ "privacy": "private",
15694
15719
  "parameters": [
15695
15720
  {
15696
- "name": "oldCriteria",
15697
- "type": {
15698
- "text": "string"
15699
- }
15700
- },
15701
- {
15702
- "name": "newCriteria",
15721
+ "name": "data",
15703
15722
  "type": {
15704
- "text": "string"
15723
+ "text": "Message<any>"
15705
15724
  }
15706
15725
  }
15707
15726
  ]
15708
15727
  },
15709
15728
  {
15710
15729
  "kind": "method",
15711
- "name": "numFilterMinChanged",
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",
15712
15745
  "parameters": [
15713
15746
  {
15714
- "name": "oldMin",
15715
- "type": {
15716
- "text": "string"
15717
- }
15718
- },
15719
- {
15720
- "name": "newMin",
15721
- "type": {
15722
- "text": "string"
15723
- }
15747
+ "name": "column"
15724
15748
  }
15725
15749
  ]
15726
15750
  },
15727
15751
  {
15728
15752
  "kind": "method",
15729
- "name": "numFilterMaxChanged",
15753
+ "name": "handleClick",
15754
+ "privacy": "public"
15755
+ },
15756
+ {
15757
+ "kind": "method",
15758
+ "name": "onInputChange",
15759
+ "privacy": "public",
15730
15760
  "parameters": [
15731
15761
  {
15732
- "name": "oldMax",
15733
- "type": {
15734
- "text": "string"
15735
- }
15736
- },
15737
- {
15738
- "name": "newMax",
15739
- "type": {
15740
- "text": "string"
15741
- }
15762
+ "name": "e"
15742
15763
  }
15743
15764
  ]
15744
15765
  },
15745
15766
  {
15746
15767
  "kind": "method",
15747
- "name": "handleNumericFilter",
15748
- "privacy": "private",
15768
+ "name": "onFilesSelected",
15769
+ "privacy": "public",
15749
15770
  "parameters": [
15750
15771
  {
15751
- "name": "min",
15752
- "type": {
15753
- "text": "number"
15754
- }
15755
- },
15756
- {
15757
- "name": "max",
15772
+ "name": "files",
15758
15773
  "type": {
15759
- "text": "number"
15774
+ "text": "File[]"
15760
15775
  }
15761
15776
  }
15762
15777
  ]
15763
15778
  },
15764
15779
  {
15765
15780
  "kind": "method",
15766
- "name": "formatDate",
15767
- "privacy": "private",
15768
- "return": {
15769
- "type": {
15770
- "text": ""
15771
- }
15772
- },
15773
- "parameters": [
15774
- {
15775
- "name": "epoch",
15776
- "type": {
15777
- "text": "number"
15778
- },
15779
- "description": "ms since unix epoch"
15780
- }
15781
- ],
15782
- "description": "Example: 1634083200000 -> '20211013-00:00:00'"
15781
+ "name": "handleFileUpload",
15782
+ "privacy": "public"
15783
15783
  },
15784
15784
  {
15785
15785
  "kind": "method",
15786
- "name": "dateFilterMinChanged",
15786
+ "name": "handleFileDownload",
15787
+ "privacy": "public",
15787
15788
  "parameters": [
15788
15789
  {
15789
- "name": "oldMin",
15790
+ "name": "rowData",
15790
15791
  "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"
15792
+ "text": "any"
15835
15793
  }
15836
15794
  }
15837
15795
  ]
15838
15796
  },
15839
15797
  {
15840
15798
  "kind": "method",
15841
- "name": "clear",
15799
+ "name": "clearSelection",
15842
15800
  "privacy": "public"
15843
15801
  },
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
- },
15870
15802
  {
15871
15803
  "kind": "field",
15872
15804
  "name": "_presentation",
@@ -15981,267 +15913,407 @@
15981
15913
  ],
15982
15914
  "attributes": [
15983
15915
  {
15984
- "name": "fieldName",
15916
+ "name": "label",
15985
15917
  "type": {
15986
15918
  "text": "string"
15987
15919
  },
15988
- "fieldName": "fieldName"
15920
+ "fieldName": "label"
15989
15921
  },
15990
15922
  {
15991
- "name": "type",
15923
+ "name": "accept",
15992
15924
  "type": {
15993
- "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
15925
+ "text": "string"
15994
15926
  },
15995
- "default": "'text'",
15996
- "fieldName": "type"
15927
+ "default": "''",
15928
+ "fieldName": "accept"
15997
15929
  },
15998
15930
  {
15999
- "name": "label",
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",
16000
15940
  "type": {
16001
15941
  "text": "string"
16002
15942
  },
16003
- "fieldName": "label"
15943
+ "default": "'ALL_FILE_ATTACHMENTS'",
15944
+ "fieldName": "uploadedFilesResourceName"
16004
15945
  },
16005
15946
  {
16006
- "name": "target",
15947
+ "name": "upload-event-name",
16007
15948
  "type": {
16008
15949
  "text": "string"
16009
15950
  },
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"
15951
+ "default": "'gwf/attachment-handler/upload'",
15952
+ "fieldName": "uploadEventName"
16012
15953
  },
16013
15954
  {
16014
- "name": "enumOptions",
15955
+ "name": "field-name",
16015
15956
  "type": {
16016
15957
  "text": "string"
16017
15958
  },
16018
- "fieldName": "enumOptions"
15959
+ "fieldName": "fieldName"
15960
+ },
15961
+ {
15962
+ "name": "entity-id",
15963
+ "type": {
15964
+ "text": "string"
15965
+ },
15966
+ "fieldName": "entityId"
15967
+ },
15968
+ {
15969
+ "name": "upload-key",
15970
+ "type": {
15971
+ "text": "string"
15972
+ },
15973
+ "fieldName": "uploadKey"
15974
+ },
15975
+ {
15976
+ "name": "grid-fields",
15977
+ "type": {
15978
+ "text": "string"
15979
+ },
15980
+ "default": "''",
15981
+ "fieldName": "gridFields"
16019
15982
  }
16020
15983
  ],
16021
15984
  "superclass": {
16022
15985
  "name": "FoundationElement",
16023
15986
  "package": "@microsoft/fast-foundation"
16024
15987
  },
16025
- "tagName": "%%prefix%%-filter",
15988
+ "tagName": "%%prefix%%-file-upload",
16026
15989
  "customElement": true
16027
15990
  },
16028
15991
  {
16029
15992
  "kind": "variable",
16030
- "name": "foundationFilter"
16031
- }
16032
- ],
16033
- "exports": [
15993
+ "name": "foundationFileUploadShadowOptions",
15994
+ "type": {
15995
+ "text": "ShadowRootInit"
15996
+ },
15997
+ "default": "undefined"
15998
+ },
16034
15999
  {
16035
- "kind": "js",
16036
- "name": "Filter",
16037
- "declaration": {
16038
- "name": "Filter",
16039
- "module": "src/filter/filter.ts"
16040
- }
16000
+ "kind": "variable",
16001
+ "name": "defaultFileUploadConfig",
16002
+ "type": {
16003
+ "text": "object"
16004
+ },
16005
+ "default": "{}"
16041
16006
  },
16042
16007
  {
16043
- "kind": "js",
16044
- "name": "foundationFilter",
16045
- "declaration": {
16046
- "name": "foundationFilter",
16047
- "module": "src/filter/filter.ts"
16048
- }
16008
+ "kind": "variable",
16009
+ "name": "foundationFileUpload",
16010
+ "description": "The Foundation File Upload",
16011
+ "privacy": "public"
16049
16012
  }
16050
- ]
16051
- },
16052
- {
16053
- "kind": "javascript-module",
16054
- "path": "src/filter/index.ts",
16055
- "declarations": [],
16013
+ ],
16056
16014
  "exports": [
16057
16015
  {
16058
16016
  "kind": "js",
16059
- "name": "*",
16017
+ "name": "FileUpload",
16060
16018
  "declaration": {
16061
- "name": "*",
16062
- "package": "./filter.styles"
16019
+ "name": "FileUpload",
16020
+ "module": "src/file-upload/file-upload.ts"
16063
16021
  }
16064
16022
  },
16065
16023
  {
16066
16024
  "kind": "js",
16067
- "name": "*",
16025
+ "name": "foundationFileUploadShadowOptions",
16068
16026
  "declaration": {
16069
- "name": "*",
16070
- "package": "./filter.template"
16027
+ "name": "foundationFileUploadShadowOptions",
16028
+ "module": "src/file-upload/file-upload.ts"
16071
16029
  }
16072
16030
  },
16073
16031
  {
16074
16032
  "kind": "js",
16075
- "name": "*",
16033
+ "name": "defaultFileUploadConfig",
16076
16034
  "declaration": {
16077
- "name": "*",
16078
- "package": "./filter"
16035
+ "name": "defaultFileUploadConfig",
16036
+ "module": "src/file-upload/file-upload.ts"
16079
16037
  }
16080
- }
16081
- ]
16082
- },
16083
- {
16084
- "kind": "javascript-module",
16085
- "path": "src/file-upload/file-upload.styles.ts",
16086
- "declarations": [
16087
- {
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": [
16038
+ },
16097
16039
  {
16098
16040
  "kind": "js",
16099
- "name": "foundationFileUploadStyles",
16041
+ "name": "foundationFileUpload",
16100
16042
  "declaration": {
16101
- "name": "foundationFileUploadStyles",
16102
- "module": "src/file-upload/file-upload.styles.ts"
16043
+ "name": "foundationFileUpload",
16044
+ "module": "src/file-upload/file-upload.ts"
16103
16045
  }
16104
16046
  }
16105
16047
  ]
16106
16048
  },
16107
16049
  {
16108
16050
  "kind": "javascript-module",
16109
- "path": "src/file-upload/file-upload.template.ts",
16051
+ "path": "src/file-upload/file-upload.utils.ts",
16110
16052
  "declarations": [
16111
16053
  {
16112
16054
  "kind": "function",
16113
- "name": "getPrefixedFileUpload",
16055
+ "name": "createFormData",
16114
16056
  "parameters": [
16115
16057
  {
16116
- "name": "prefix",
16058
+ "name": "files",
16117
16059
  "type": {
16118
- "text": "string"
16060
+ "text": "Array<File>"
16119
16061
  }
16120
16062
  }
16121
16063
  ]
16122
16064
  },
16123
16065
  {
16124
- "kind": "variable",
16125
- "name": "foundationFileUploadTemplate",
16126
- "default": "html<FileUpload>`\n ${(x) => getPrefixedFileUpload(getPrefix(x))}\n`"
16127
- }
16128
- ],
16129
- "exports": [
16130
- {
16131
- "kind": "js",
16132
- "name": "getPrefixedFileUpload",
16133
- "declaration": {
16134
- "name": "getPrefixedFileUpload",
16135
- "module": "src/file-upload/file-upload.template.ts"
16136
- }
16137
- },
16138
- {
16139
- "kind": "js",
16140
- "name": "foundationFileUploadTemplate",
16141
- "declaration": {
16142
- "name": "foundationFileUploadTemplate",
16143
- "module": "src/file-upload/file-upload.template.ts"
16144
- }
16145
- }
16146
- ]
16147
- },
16148
- {
16149
- "kind": "javascript-module",
16150
- "path": "src/file-upload/file-upload.ts",
16151
- "declarations": [
16152
- {
16153
- "kind": "class",
16154
- "description": "",
16155
- "name": "FileUpload",
16156
- "members": [
16066
+ "kind": "function",
16067
+ "name": "uploadFiles",
16068
+ "parameters": [
16157
16069
  {
16158
- "kind": "field",
16159
- "name": "fileInput",
16070
+ "name": "url",
16160
16071
  "type": {
16161
- "text": "HTMLInputElement"
16162
- },
16163
- "privacy": "public"
16072
+ "text": "string"
16073
+ }
16164
16074
  },
16165
16075
  {
16166
- "kind": "field",
16167
- "name": "acceptedFormats",
16076
+ "name": "formData",
16168
16077
  "type": {
16169
- "text": "array"
16170
- },
16171
- "privacy": "private",
16172
- "default": "[]"
16078
+ "text": "FormData"
16079
+ }
16173
16080
  },
16174
16081
  {
16175
- "kind": "field",
16176
- "name": "selectedFiles",
16082
+ "name": "authToken",
16177
16083
  "type": {
16178
- "text": "File[]"
16179
- },
16180
- "privacy": "private"
16181
- },
16084
+ "text": "string"
16085
+ }
16086
+ }
16087
+ ]
16088
+ },
16089
+ {
16090
+ "kind": "function",
16091
+ "name": "downloadFile",
16092
+ "parameters": [
16182
16093
  {
16183
- "kind": "field",
16184
- "name": "gridCriteria",
16094
+ "name": "url",
16185
16095
  "type": {
16186
16096
  "text": "string"
16187
16097
  }
16188
16098
  },
16189
16099
  {
16190
- "kind": "field",
16191
- "name": "connect",
16100
+ "name": "filename",
16192
16101
  "type": {
16193
- "text": "Connect"
16102
+ "text": "string"
16194
16103
  }
16195
16104
  },
16196
16105
  {
16197
- "kind": "field",
16198
- "name": "session",
16106
+ "name": "authToken",
16199
16107
  "type": {
16200
- "text": "Session"
16108
+ "text": "string"
16201
16109
  }
16202
16110
  },
16203
16111
  {
16204
- "kind": "field",
16205
- "name": "label",
16112
+ "name": "method",
16113
+ "default": "'GET'",
16206
16114
  "type": {
16207
16115
  "text": "string"
16208
16116
  }
16209
16117
  },
16210
16118
  {
16211
- "kind": "field",
16212
- "name": "accept",
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",
16213
16235
  "type": {
16214
16236
  "text": "string"
16237
+ }
16238
+ }
16239
+ ]
16240
+ },
16241
+ {
16242
+ "kind": "variable",
16243
+ "name": "foundationFilterTemplate",
16244
+ "type": {
16245
+ "text": "ViewTemplate<Filter>"
16246
+ },
16247
+ "default": "html`\n ${(x) => getPrefixedFilterTemplate(getPrefix(x))}</div>\n`"
16248
+ }
16249
+ ],
16250
+ "exports": [
16251
+ {
16252
+ "kind": "js",
16253
+ "name": "getPrefixedFilterTemplate",
16254
+ "declaration": {
16255
+ "name": "getPrefixedFilterTemplate",
16256
+ "module": "src/filter/filter.template.ts"
16257
+ }
16258
+ },
16259
+ {
16260
+ "kind": "js",
16261
+ "name": "foundationFilterTemplate",
16262
+ "declaration": {
16263
+ "name": "foundationFilterTemplate",
16264
+ "module": "src/filter/filter.template.ts"
16265
+ }
16266
+ }
16267
+ ]
16268
+ },
16269
+ {
16270
+ "kind": "javascript-module",
16271
+ "path": "src/filter/filter.ts",
16272
+ "declarations": [
16273
+ {
16274
+ "kind": "class",
16275
+ "description": "",
16276
+ "name": "Filter",
16277
+ "members": [
16278
+ {
16279
+ "kind": "field",
16280
+ "name": "textFilterField",
16281
+ "type": {
16282
+ "text": "TextField"
16215
16283
  },
16216
- "default": "''"
16284
+ "privacy": "public"
16217
16285
  },
16218
16286
  {
16219
- "kind": "method",
16220
- "name": "acceptChanged"
16287
+ "kind": "field",
16288
+ "name": "numFilterFieldMin",
16289
+ "type": {
16290
+ "text": "TextField"
16291
+ },
16292
+ "privacy": "public"
16221
16293
  },
16222
16294
  {
16223
16295
  "kind": "field",
16224
- "name": "fileSizeLimitBytes",
16225
- "default": "104_857_600",
16296
+ "name": "numFilterFieldMax",
16226
16297
  "type": {
16227
- "text": "number"
16228
- }
16298
+ "text": "TextField"
16299
+ },
16300
+ "privacy": "public"
16229
16301
  },
16230
16302
  {
16231
16303
  "kind": "field",
16232
- "name": "uploadedFilesResourceName",
16304
+ "name": "dateFilterFieldMin",
16233
16305
  "type": {
16234
- "text": "string"
16306
+ "text": "TextField"
16235
16307
  },
16236
- "default": "'ALL_FILE_ATTACHMENTS'"
16308
+ "privacy": "public"
16237
16309
  },
16238
16310
  {
16239
16311
  "kind": "field",
16240
- "name": "uploadEventName",
16312
+ "name": "dateFilterFieldMax",
16241
16313
  "type": {
16242
- "text": "string"
16314
+ "text": "TextField"
16243
16315
  },
16244
- "default": "'gwf/attachment-handler/upload'"
16316
+ "privacy": "public"
16245
16317
  },
16246
16318
  {
16247
16319
  "kind": "field",
@@ -16251,157 +16323,271 @@
16251
16323
  }
16252
16324
  },
16253
16325
  {
16254
- "kind": "method",
16255
- "name": "fieldNameChanged"
16326
+ "kind": "field",
16327
+ "name": "type",
16328
+ "type": {
16329
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16330
+ },
16331
+ "default": "'text'"
16256
16332
  },
16257
16333
  {
16258
16334
  "kind": "field",
16259
- "name": "entityId",
16335
+ "name": "label",
16260
16336
  "type": {
16261
16337
  "text": "string"
16262
16338
  }
16263
16339
  },
16264
16340
  {
16265
- "kind": "method",
16266
- "name": "entityIdChanged"
16341
+ "kind": "field",
16342
+ "name": "target",
16343
+ "type": {
16344
+ "text": "string"
16345
+ },
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."
16267
16347
  },
16268
16348
  {
16269
16349
  "kind": "field",
16270
- "name": "uploadKey",
16350
+ "name": "textFilter",
16271
16351
  "type": {
16272
16352
  "text": "string"
16353
+ },
16354
+ "default": "''"
16355
+ },
16356
+ {
16357
+ "kind": "field",
16358
+ "name": "numFilterMin",
16359
+ "type": {
16360
+ "text": "number"
16273
16361
  }
16274
16362
  },
16275
16363
  {
16276
16364
  "kind": "field",
16277
- "name": "gridFields",
16365
+ "name": "numFilterMax",
16366
+ "type": {
16367
+ "text": "number"
16368
+ }
16369
+ },
16370
+ {
16371
+ "kind": "field",
16372
+ "name": "dateFilterMin",
16278
16373
  "type": {
16279
16374
  "text": "string"
16280
- },
16281
- "default": "''"
16375
+ }
16282
16376
  },
16283
16377
  {
16284
16378
  "kind": "field",
16285
- "name": "fileName",
16379
+ "name": "dateFilterMax",
16286
16380
  "type": {
16287
16381
  "text": "string"
16288
- },
16289
- "default": "''"
16382
+ }
16290
16383
  },
16291
16384
  {
16292
16385
  "kind": "field",
16293
- "name": "uploadedFilesList",
16386
+ "name": "dateMinMS",
16294
16387
  "type": {
16295
- "text": "array"
16296
- },
16297
- "default": "[]"
16388
+ "text": "number"
16389
+ }
16298
16390
  },
16299
16391
  {
16300
16392
  "kind": "field",
16301
- "name": "filesGridColumnDefinitions",
16393
+ "name": "dateMaxMS",
16302
16394
  "type": {
16303
- "text": "ColumnDefinition[]"
16304
- },
16305
- "default": "[]"
16395
+ "text": "number"
16396
+ }
16306
16397
  },
16307
16398
  {
16308
16399
  "kind": "field",
16309
- "name": "downloadEventName",
16400
+ "name": "enumOptions",
16310
16401
  "type": {
16311
- "text": "Function"
16312
- },
16313
- "privacy": "public"
16402
+ "text": "string"
16403
+ }
16314
16404
  },
16315
16405
  {
16316
- "kind": "method",
16317
- "name": "setupGrid"
16406
+ "kind": "field",
16407
+ "name": "enumFilterOptions",
16408
+ "type": {
16409
+ "text": "any[]"
16410
+ },
16411
+ "default": "[{ name: 'All', value: 'all', selected: true }]"
16318
16412
  },
16319
16413
  {
16320
16414
  "kind": "method",
16321
- "name": "handleStreamRowOperation",
16322
- "privacy": "private",
16415
+ "name": "textFilterChanged",
16323
16416
  "parameters": [
16324
16417
  {
16325
- "name": "data",
16418
+ "name": "oldCriteria",
16326
16419
  "type": {
16327
- "text": "Message<any>"
16420
+ "text": "string"
16421
+ }
16422
+ },
16423
+ {
16424
+ "name": "newCriteria",
16425
+ "type": {
16426
+ "text": "string"
16328
16427
  }
16329
16428
  }
16330
16429
  ]
16331
16430
  },
16332
16431
  {
16333
16432
  "kind": "method",
16334
- "name": "setRowData"
16433
+ "name": "numFilterMinChanged",
16434
+ "parameters": [
16435
+ {
16436
+ "name": "oldMin",
16437
+ "type": {
16438
+ "text": "string"
16439
+ }
16440
+ },
16441
+ {
16442
+ "name": "newMin",
16443
+ "type": {
16444
+ "text": "string"
16445
+ }
16446
+ }
16447
+ ]
16335
16448
  },
16336
16449
  {
16337
16450
  "kind": "method",
16338
- "name": "setColumnDefs"
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
+ ]
16339
16466
  },
16340
16467
  {
16341
16468
  "kind": "method",
16342
- "name": "getDownloadColumn",
16343
- "privacy": "public"
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
+ ]
16344
16485
  },
16345
16486
  {
16346
16487
  "kind": "method",
16347
- "name": "getColumnObject",
16348
- "privacy": "public",
16488
+ "name": "formatDate",
16489
+ "privacy": "private",
16490
+ "return": {
16491
+ "type": {
16492
+ "text": ""
16493
+ }
16494
+ },
16349
16495
  "parameters": [
16350
16496
  {
16351
- "name": "column"
16497
+ "name": "epoch",
16498
+ "type": {
16499
+ "text": "number"
16500
+ },
16501
+ "description": "ms since unix epoch"
16352
16502
  }
16353
- ]
16503
+ ],
16504
+ "description": "Example: 1634083200000 -> '20211013-00:00:00'"
16354
16505
  },
16355
16506
  {
16356
16507
  "kind": "method",
16357
- "name": "handleClick",
16358
- "privacy": "public"
16508
+ "name": "dateFilterMinChanged",
16509
+ "parameters": [
16510
+ {
16511
+ "name": "oldMin",
16512
+ "type": {
16513
+ "text": "string"
16514
+ }
16515
+ },
16516
+ {
16517
+ "name": "newMin",
16518
+ "type": {
16519
+ "text": "string"
16520
+ }
16521
+ }
16522
+ ]
16359
16523
  },
16360
16524
  {
16361
16525
  "kind": "method",
16362
- "name": "onInputChange",
16363
- "privacy": "public",
16526
+ "name": "dateFilterMaxChanged",
16364
16527
  "parameters": [
16365
16528
  {
16366
- "name": "e"
16529
+ "name": "oldMax",
16530
+ "type": {
16531
+ "text": "string"
16532
+ }
16533
+ },
16534
+ {
16535
+ "name": "newMax",
16536
+ "type": {
16537
+ "text": "string"
16538
+ }
16367
16539
  }
16368
16540
  ]
16369
16541
  },
16370
16542
  {
16371
16543
  "kind": "method",
16372
- "name": "onFilesSelected",
16373
- "privacy": "public",
16544
+ "name": "handleDateFilter",
16545
+ "privacy": "private",
16374
16546
  "parameters": [
16375
16547
  {
16376
- "name": "files",
16548
+ "name": "min",
16377
16549
  "type": {
16378
- "text": "File[]"
16550
+ "text": "number"
16551
+ }
16552
+ },
16553
+ {
16554
+ "name": "max",
16555
+ "type": {
16556
+ "text": "number"
16379
16557
  }
16380
16558
  }
16381
16559
  ]
16382
16560
  },
16383
16561
  {
16384
16562
  "kind": "method",
16385
- "name": "handleFileUpload",
16563
+ "name": "clear",
16386
16564
  "privacy": "public"
16387
16565
  },
16388
16566
  {
16389
16567
  "kind": "method",
16390
- "name": "handleFileDownload",
16568
+ "name": "onBooleanFilterSelection",
16391
16569
  "privacy": "public",
16392
16570
  "parameters": [
16393
16571
  {
16394
- "name": "rowData",
16572
+ "name": "selection",
16395
16573
  "type": {
16396
- "text": "any"
16574
+ "text": "'all' | 'true' | 'false' | 'null'"
16397
16575
  }
16398
16576
  }
16399
16577
  ]
16400
16578
  },
16401
16579
  {
16402
16580
  "kind": "method",
16403
- "name": "clearSelection",
16404
- "privacy": "public"
16581
+ "name": "onEnumFilterSelection",
16582
+ "privacy": "public",
16583
+ "parameters": [
16584
+ {
16585
+ "name": "selection",
16586
+ "type": {
16587
+ "text": "string"
16588
+ }
16589
+ }
16590
+ ]
16405
16591
  },
16406
16592
  {
16407
16593
  "kind": "field",
@@ -16517,255 +16703,77 @@
16517
16703
  ],
16518
16704
  "attributes": [
16519
16705
  {
16520
- "name": "label",
16521
- "type": {
16522
- "text": "string"
16523
- },
16524
- "fieldName": "label"
16525
- },
16526
- {
16527
- "name": "accept",
16528
- "type": {
16529
- "text": "string"
16530
- },
16531
- "default": "''",
16532
- "fieldName": "accept"
16533
- },
16534
- {
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",
16544
- "type": {
16545
- "text": "string"
16546
- },
16547
- "default": "'ALL_FILE_ATTACHMENTS'",
16548
- "fieldName": "uploadedFilesResourceName"
16549
- },
16550
- {
16551
- "name": "upload-event-name",
16706
+ "name": "fieldName",
16552
16707
  "type": {
16553
16708
  "text": "string"
16554
16709
  },
16555
- "default": "'gwf/attachment-handler/upload'",
16556
- "fieldName": "uploadEventName"
16710
+ "fieldName": "fieldName"
16557
16711
  },
16558
16712
  {
16559
- "name": "field-name",
16713
+ "name": "type",
16560
16714
  "type": {
16561
- "text": "string"
16715
+ "text": "'text' | 'number' | 'date' | 'boolean' | 'enum'"
16562
16716
  },
16563
- "fieldName": "fieldName"
16717
+ "default": "'text'",
16718
+ "fieldName": "type"
16564
16719
  },
16565
16720
  {
16566
- "name": "entity-id",
16721
+ "name": "label",
16567
16722
  "type": {
16568
16723
  "text": "string"
16569
16724
  },
16570
- "fieldName": "entityId"
16725
+ "fieldName": "label"
16571
16726
  },
16572
16727
  {
16573
- "name": "upload-key",
16728
+ "name": "target",
16574
16729
  "type": {
16575
16730
  "text": "string"
16576
16731
  },
16577
- "fieldName": "uploadKey"
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"
16578
16734
  },
16579
16735
  {
16580
- "name": "grid-fields",
16736
+ "name": "enumOptions",
16581
16737
  "type": {
16582
16738
  "text": "string"
16583
16739
  },
16584
- "default": "''",
16585
- "fieldName": "gridFields"
16740
+ "fieldName": "enumOptions"
16586
16741
  }
16587
16742
  ],
16588
16743
  "superclass": {
16589
16744
  "name": "FoundationElement",
16590
16745
  "package": "@microsoft/fast-foundation"
16591
16746
  },
16592
- "tagName": "%%prefix%%-file-upload",
16747
+ "tagName": "%%prefix%%-filter",
16593
16748
  "customElement": true
16594
16749
  },
16595
16750
  {
16596
16751
  "kind": "variable",
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"
16616
- }
16617
- ],
16618
- "exports": [
16619
- {
16620
- "kind": "js",
16621
- "name": "FileUpload",
16622
- "declaration": {
16623
- "name": "FileUpload",
16624
- "module": "src/file-upload/file-upload.ts"
16625
- }
16626
- },
16627
- {
16628
- "kind": "js",
16629
- "name": "foundationFileUploadShadowOptions",
16630
- "declaration": {
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"
16649
- }
16650
- }
16651
- ]
16652
- },
16653
- {
16654
- "kind": "javascript-module",
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
- ]
16752
+ "name": "foundationFilter"
16737
16753
  }
16738
16754
  ],
16739
16755
  "exports": [
16740
16756
  {
16741
16757
  "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",
16758
+ "name": "Filter",
16751
16759
  "declaration": {
16752
- "name": "uploadFiles",
16753
- "module": "src/file-upload/file-upload.utils.ts"
16760
+ "name": "Filter",
16761
+ "module": "src/filter/filter.ts"
16754
16762
  }
16755
16763
  },
16756
16764
  {
16757
16765
  "kind": "js",
16758
- "name": "downloadFile",
16766
+ "name": "foundationFilter",
16759
16767
  "declaration": {
16760
- "name": "downloadFile",
16761
- "module": "src/file-upload/file-upload.utils.ts"
16768
+ "name": "foundationFilter",
16769
+ "module": "src/filter/filter.ts"
16762
16770
  }
16763
16771
  }
16764
16772
  ]
16765
16773
  },
16766
16774
  {
16767
16775
  "kind": "javascript-module",
16768
- "path": "src/file-upload/index.ts",
16776
+ "path": "src/filter/index.ts",
16769
16777
  "declarations": [],
16770
16778
  "exports": [
16771
16779
  {
@@ -16773,15 +16781,7 @@
16773
16781
  "name": "*",
16774
16782
  "declaration": {
16775
16783
  "name": "*",
16776
- "package": "./file-upload"
16777
- }
16778
- },
16779
- {
16780
- "kind": "js",
16781
- "name": "*",
16782
- "declaration": {
16783
- "name": "*",
16784
- "package": "./file-upload.template"
16784
+ "package": "./filter.styles"
16785
16785
  }
16786
16786
  },
16787
16787
  {
@@ -16789,7 +16789,7 @@
16789
16789
  "name": "*",
16790
16790
  "declaration": {
16791
16791
  "name": "*",
16792
- "package": "./file-upload.styles"
16792
+ "package": "./filter.template"
16793
16793
  }
16794
16794
  },
16795
16795
  {
@@ -16797,7 +16797,7 @@
16797
16797
  "name": "*",
16798
16798
  "declaration": {
16799
16799
  "name": "*",
16800
- "package": "./file-upload.utils"
16800
+ "package": "./filter"
16801
16801
  }
16802
16802
  }
16803
16803
  ]