@genesislcap/foundation-ui 14.268.2 → 14.268.3
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.
- package/dist/custom-elements.json +195 -182
- package/dist/dts/file-upload/file-upload.d.ts +2 -1
- package/dist/dts/file-upload/file-upload.d.ts.map +1 -1
- package/dist/dts/file-upload/file-upload.utils.d.ts +2 -1
- package/dist/dts/file-upload/file-upload.utils.d.ts.map +1 -1
- package/dist/esm/file-upload/file-upload.js +5 -2
- package/dist/esm/file-upload/file-upload.utils.js +4 -6
- package/package.json +18 -18
|
@@ -1305,188 +1305,6 @@
|
|
|
1305
1305
|
}
|
|
1306
1306
|
]
|
|
1307
1307
|
},
|
|
1308
|
-
{
|
|
1309
|
-
"kind": "javascript-module",
|
|
1310
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
1311
|
-
"declarations": [
|
|
1312
|
-
{
|
|
1313
|
-
"kind": "function",
|
|
1314
|
-
"name": "foundationAccordionStyles",
|
|
1315
|
-
"return": {
|
|
1316
|
-
"type": {
|
|
1317
|
-
"text": "ElementStyles"
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
"parameters": [
|
|
1321
|
-
{
|
|
1322
|
-
"name": "context",
|
|
1323
|
-
"type": {
|
|
1324
|
-
"text": "ElementDefinitionContext"
|
|
1325
|
-
}
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
"name": "definition",
|
|
1329
|
-
"type": {
|
|
1330
|
-
"text": "FoundationElementDefinition"
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
]
|
|
1334
|
-
}
|
|
1335
|
-
],
|
|
1336
|
-
"exports": [
|
|
1337
|
-
{
|
|
1338
|
-
"kind": "js",
|
|
1339
|
-
"name": "foundationAccordionStyles",
|
|
1340
|
-
"declaration": {
|
|
1341
|
-
"name": "foundationAccordionStyles",
|
|
1342
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
]
|
|
1346
|
-
},
|
|
1347
|
-
{
|
|
1348
|
-
"kind": "javascript-module",
|
|
1349
|
-
"path": "src/accordion/accordion.template.ts",
|
|
1350
|
-
"declarations": [
|
|
1351
|
-
{
|
|
1352
|
-
"kind": "function",
|
|
1353
|
-
"name": "foundationAccordionTemplate",
|
|
1354
|
-
"return": {
|
|
1355
|
-
"type": {
|
|
1356
|
-
"text": "ViewTemplate<Accordion>"
|
|
1357
|
-
}
|
|
1358
|
-
},
|
|
1359
|
-
"parameters": [
|
|
1360
|
-
{
|
|
1361
|
-
"name": "context",
|
|
1362
|
-
"type": {
|
|
1363
|
-
"text": "ElementDefinitionContext"
|
|
1364
|
-
}
|
|
1365
|
-
},
|
|
1366
|
-
{
|
|
1367
|
-
"name": "definition",
|
|
1368
|
-
"type": {
|
|
1369
|
-
"text": "FoundationElementDefinition"
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
]
|
|
1373
|
-
}
|
|
1374
|
-
],
|
|
1375
|
-
"exports": [
|
|
1376
|
-
{
|
|
1377
|
-
"kind": "js",
|
|
1378
|
-
"name": "foundationAccordionTemplate",
|
|
1379
|
-
"declaration": {
|
|
1380
|
-
"name": "foundationAccordionTemplate",
|
|
1381
|
-
"module": "src/accordion/accordion.template.ts"
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
]
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
"kind": "javascript-module",
|
|
1388
|
-
"path": "src/accordion/accordion.ts",
|
|
1389
|
-
"declarations": [
|
|
1390
|
-
{
|
|
1391
|
-
"kind": "class",
|
|
1392
|
-
"description": "",
|
|
1393
|
-
"name": "Accordion",
|
|
1394
|
-
"superclass": {
|
|
1395
|
-
"name": "FASTAccordion",
|
|
1396
|
-
"package": "@microsoft/fast-foundation"
|
|
1397
|
-
},
|
|
1398
|
-
"tagName": "%%prefix%%-accordion",
|
|
1399
|
-
"customElement": true
|
|
1400
|
-
},
|
|
1401
|
-
{
|
|
1402
|
-
"kind": "variable",
|
|
1403
|
-
"name": "foundationAccordionShadowOptions",
|
|
1404
|
-
"type": {
|
|
1405
|
-
"text": "ShadowRootInit"
|
|
1406
|
-
},
|
|
1407
|
-
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
1408
|
-
},
|
|
1409
|
-
{
|
|
1410
|
-
"kind": "variable",
|
|
1411
|
-
"name": "defaultAccordionConfig",
|
|
1412
|
-
"type": {
|
|
1413
|
-
"text": "object"
|
|
1414
|
-
},
|
|
1415
|
-
"default": "{}"
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
"kind": "variable",
|
|
1419
|
-
"name": "foundationAccordion",
|
|
1420
|
-
"description": "The Foundation Accordion",
|
|
1421
|
-
"privacy": "public"
|
|
1422
|
-
}
|
|
1423
|
-
],
|
|
1424
|
-
"exports": [
|
|
1425
|
-
{
|
|
1426
|
-
"kind": "js",
|
|
1427
|
-
"name": "Accordion",
|
|
1428
|
-
"declaration": {
|
|
1429
|
-
"name": "Accordion",
|
|
1430
|
-
"module": "src/accordion/accordion.ts"
|
|
1431
|
-
}
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
"kind": "js",
|
|
1435
|
-
"name": "foundationAccordionShadowOptions",
|
|
1436
|
-
"declaration": {
|
|
1437
|
-
"name": "foundationAccordionShadowOptions",
|
|
1438
|
-
"module": "src/accordion/accordion.ts"
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
{
|
|
1442
|
-
"kind": "js",
|
|
1443
|
-
"name": "defaultAccordionConfig",
|
|
1444
|
-
"declaration": {
|
|
1445
|
-
"name": "defaultAccordionConfig",
|
|
1446
|
-
"module": "src/accordion/accordion.ts"
|
|
1447
|
-
}
|
|
1448
|
-
},
|
|
1449
|
-
{
|
|
1450
|
-
"kind": "js",
|
|
1451
|
-
"name": "foundationAccordion",
|
|
1452
|
-
"declaration": {
|
|
1453
|
-
"name": "foundationAccordion",
|
|
1454
|
-
"module": "src/accordion/accordion.ts"
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
]
|
|
1458
|
-
},
|
|
1459
|
-
{
|
|
1460
|
-
"kind": "javascript-module",
|
|
1461
|
-
"path": "src/accordion/index.ts",
|
|
1462
|
-
"declarations": [],
|
|
1463
|
-
"exports": [
|
|
1464
|
-
{
|
|
1465
|
-
"kind": "js",
|
|
1466
|
-
"name": "*",
|
|
1467
|
-
"declaration": {
|
|
1468
|
-
"name": "*",
|
|
1469
|
-
"package": "./accordion.template"
|
|
1470
|
-
}
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
"kind": "js",
|
|
1474
|
-
"name": "*",
|
|
1475
|
-
"declaration": {
|
|
1476
|
-
"name": "*",
|
|
1477
|
-
"package": "./accordion.styles"
|
|
1478
|
-
}
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
"kind": "js",
|
|
1482
|
-
"name": "*",
|
|
1483
|
-
"declaration": {
|
|
1484
|
-
"name": "*",
|
|
1485
|
-
"package": "./accordion"
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
]
|
|
1489
|
-
},
|
|
1490
1308
|
{
|
|
1491
1309
|
"kind": "javascript-module",
|
|
1492
1310
|
"path": "src/actions-menu/actions-menu.styles.ts",
|
|
@@ -2046,6 +1864,188 @@
|
|
|
2046
1864
|
}
|
|
2047
1865
|
]
|
|
2048
1866
|
},
|
|
1867
|
+
{
|
|
1868
|
+
"kind": "javascript-module",
|
|
1869
|
+
"path": "src/accordion/accordion.styles.ts",
|
|
1870
|
+
"declarations": [
|
|
1871
|
+
{
|
|
1872
|
+
"kind": "function",
|
|
1873
|
+
"name": "foundationAccordionStyles",
|
|
1874
|
+
"return": {
|
|
1875
|
+
"type": {
|
|
1876
|
+
"text": "ElementStyles"
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
"parameters": [
|
|
1880
|
+
{
|
|
1881
|
+
"name": "context",
|
|
1882
|
+
"type": {
|
|
1883
|
+
"text": "ElementDefinitionContext"
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"name": "definition",
|
|
1888
|
+
"type": {
|
|
1889
|
+
"text": "FoundationElementDefinition"
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
]
|
|
1893
|
+
}
|
|
1894
|
+
],
|
|
1895
|
+
"exports": [
|
|
1896
|
+
{
|
|
1897
|
+
"kind": "js",
|
|
1898
|
+
"name": "foundationAccordionStyles",
|
|
1899
|
+
"declaration": {
|
|
1900
|
+
"name": "foundationAccordionStyles",
|
|
1901
|
+
"module": "src/accordion/accordion.styles.ts"
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
]
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"kind": "javascript-module",
|
|
1908
|
+
"path": "src/accordion/accordion.template.ts",
|
|
1909
|
+
"declarations": [
|
|
1910
|
+
{
|
|
1911
|
+
"kind": "function",
|
|
1912
|
+
"name": "foundationAccordionTemplate",
|
|
1913
|
+
"return": {
|
|
1914
|
+
"type": {
|
|
1915
|
+
"text": "ViewTemplate<Accordion>"
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
"parameters": [
|
|
1919
|
+
{
|
|
1920
|
+
"name": "context",
|
|
1921
|
+
"type": {
|
|
1922
|
+
"text": "ElementDefinitionContext"
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"name": "definition",
|
|
1927
|
+
"type": {
|
|
1928
|
+
"text": "FoundationElementDefinition"
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
]
|
|
1932
|
+
}
|
|
1933
|
+
],
|
|
1934
|
+
"exports": [
|
|
1935
|
+
{
|
|
1936
|
+
"kind": "js",
|
|
1937
|
+
"name": "foundationAccordionTemplate",
|
|
1938
|
+
"declaration": {
|
|
1939
|
+
"name": "foundationAccordionTemplate",
|
|
1940
|
+
"module": "src/accordion/accordion.template.ts"
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
]
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"kind": "javascript-module",
|
|
1947
|
+
"path": "src/accordion/accordion.ts",
|
|
1948
|
+
"declarations": [
|
|
1949
|
+
{
|
|
1950
|
+
"kind": "class",
|
|
1951
|
+
"description": "",
|
|
1952
|
+
"name": "Accordion",
|
|
1953
|
+
"superclass": {
|
|
1954
|
+
"name": "FASTAccordion",
|
|
1955
|
+
"package": "@microsoft/fast-foundation"
|
|
1956
|
+
},
|
|
1957
|
+
"tagName": "%%prefix%%-accordion",
|
|
1958
|
+
"customElement": true
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"kind": "variable",
|
|
1962
|
+
"name": "foundationAccordionShadowOptions",
|
|
1963
|
+
"type": {
|
|
1964
|
+
"text": "ShadowRootInit"
|
|
1965
|
+
},
|
|
1966
|
+
"default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
"kind": "variable",
|
|
1970
|
+
"name": "defaultAccordionConfig",
|
|
1971
|
+
"type": {
|
|
1972
|
+
"text": "object"
|
|
1973
|
+
},
|
|
1974
|
+
"default": "{}"
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"kind": "variable",
|
|
1978
|
+
"name": "foundationAccordion",
|
|
1979
|
+
"description": "The Foundation Accordion",
|
|
1980
|
+
"privacy": "public"
|
|
1981
|
+
}
|
|
1982
|
+
],
|
|
1983
|
+
"exports": [
|
|
1984
|
+
{
|
|
1985
|
+
"kind": "js",
|
|
1986
|
+
"name": "Accordion",
|
|
1987
|
+
"declaration": {
|
|
1988
|
+
"name": "Accordion",
|
|
1989
|
+
"module": "src/accordion/accordion.ts"
|
|
1990
|
+
}
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"kind": "js",
|
|
1994
|
+
"name": "foundationAccordionShadowOptions",
|
|
1995
|
+
"declaration": {
|
|
1996
|
+
"name": "foundationAccordionShadowOptions",
|
|
1997
|
+
"module": "src/accordion/accordion.ts"
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"kind": "js",
|
|
2002
|
+
"name": "defaultAccordionConfig",
|
|
2003
|
+
"declaration": {
|
|
2004
|
+
"name": "defaultAccordionConfig",
|
|
2005
|
+
"module": "src/accordion/accordion.ts"
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
"kind": "js",
|
|
2010
|
+
"name": "foundationAccordion",
|
|
2011
|
+
"declaration": {
|
|
2012
|
+
"name": "foundationAccordion",
|
|
2013
|
+
"module": "src/accordion/accordion.ts"
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
]
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
"kind": "javascript-module",
|
|
2020
|
+
"path": "src/accordion/index.ts",
|
|
2021
|
+
"declarations": [],
|
|
2022
|
+
"exports": [
|
|
2023
|
+
{
|
|
2024
|
+
"kind": "js",
|
|
2025
|
+
"name": "*",
|
|
2026
|
+
"declaration": {
|
|
2027
|
+
"name": "*",
|
|
2028
|
+
"package": "./accordion.template"
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
"kind": "js",
|
|
2033
|
+
"name": "*",
|
|
2034
|
+
"declaration": {
|
|
2035
|
+
"name": "*",
|
|
2036
|
+
"package": "./accordion.styles"
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"kind": "js",
|
|
2041
|
+
"name": "*",
|
|
2042
|
+
"declaration": {
|
|
2043
|
+
"name": "*",
|
|
2044
|
+
"package": "./accordion"
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
]
|
|
2048
|
+
},
|
|
2049
2049
|
{
|
|
2050
2050
|
"kind": "javascript-module",
|
|
2051
2051
|
"path": "src/anchor/anchor.styles.ts",
|
|
@@ -18017,6 +18017,13 @@
|
|
|
18017
18017
|
"text": "Connect"
|
|
18018
18018
|
}
|
|
18019
18019
|
},
|
|
18020
|
+
{
|
|
18021
|
+
"kind": "field",
|
|
18022
|
+
"name": "http",
|
|
18023
|
+
"type": {
|
|
18024
|
+
"text": "Http"
|
|
18025
|
+
}
|
|
18026
|
+
},
|
|
18020
18027
|
{
|
|
18021
18028
|
"kind": "field",
|
|
18022
18029
|
"name": "session",
|
|
@@ -18511,6 +18518,12 @@
|
|
|
18511
18518
|
"type": {
|
|
18512
18519
|
"text": "string"
|
|
18513
18520
|
}
|
|
18521
|
+
},
|
|
18522
|
+
{
|
|
18523
|
+
"name": "http",
|
|
18524
|
+
"type": {
|
|
18525
|
+
"text": "Http"
|
|
18526
|
+
}
|
|
18514
18527
|
}
|
|
18515
18528
|
]
|
|
18516
18529
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Session, Connect } from '@genesislcap/foundation-comms';
|
|
1
|
+
import { Session, Connect, Http } from '@genesislcap/foundation-comms';
|
|
2
2
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
3
3
|
import { ColumnDefinition, DataGridCell, FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
/**
|
|
@@ -10,6 +10,7 @@ export declare class FileUpload extends FoundationElement {
|
|
|
10
10
|
private selectedFiles;
|
|
11
11
|
gridCriteria: string;
|
|
12
12
|
connect: Connect;
|
|
13
|
+
http: Http;
|
|
13
14
|
session: Session;
|
|
14
15
|
label: string;
|
|
15
16
|
accept: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/file-upload/file-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,OAAO,EAAW,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../../src/file-upload/file-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,OAAO,EAAW,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGxF,OAAO,EAAgC,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AA4B/F;;GAEG;AACH,qBAAa,UAAW,SAAQ,iBAAiB;IACxC,SAAS,EAAG,gBAAgB,CAAC;IACpC,OAAO,CAAC,eAAe,CAAM;IAC7B,OAAO,CAAC,aAAa,CAAS;IAClB,YAAY,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACR,OAAO,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,SAAM;IAClB,aAAa;IAiBiC,kBAAkB,SAAmB;IAC9B,yBAAyB,SACrD;IACiB,eAAe,SAAmC;IACzD,SAAS,EAAE,MAAM,CAAC;IACrD,gBAAgB;IAGkB,QAAQ,EAAE,MAAM,CAAC;IACnD,eAAe;IAGoB,SAAS,EAAE,MAAM,CAAC;IACjB,UAAU,SAAM;IACxC,QAAQ,SAAM;IACd,iBAAiB,QAAM;IACvB,0BAA0B,EAAE,gBAAgB,EAAE,CAAM;IACzD,iBAAiB,EAAE,QAAQ,CAAC;IAEtB,iBAAiB;IAK9B,SAAS;IAWT,OAAO,CAAC,wBAAwB;IA8B1B,UAAU;IAiBV,aAAa;IAuBZ,iBAAiB;;;;;IAoBjB,eAAe,CAAC,MAAM,KAAA;;;;;;IAYtB,WAAW;IAKX,aAAa,CAAC,CAAC,KAAA;IAKf,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE;IAmBvB,gBAAgB;IAsBtB,kBAAkB,CAAC,OAAO,EAAE,GAAG;IAQ/B,cAAc;CAItB;AAGD,eAAO,MAAM,iCAAiC,EAAE,cAA0B,CAAC;AAE3E,eAAO,MAAM,uBAAuB,IAAK,CAAC;AAE1C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;qBAM/B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Http } from '@genesislcap/foundation-comms';
|
|
1
2
|
export declare const createFormData: (files: Array<File>) => FormData;
|
|
2
|
-
export declare const uploadFiles: (url: string, formData: FormData, authToken: string) => Promise<any>;
|
|
3
|
+
export declare const uploadFiles: (url: string, formData: FormData, authToken: string, http: Http) => Promise<any>;
|
|
3
4
|
export declare const downloadFile: (url: string, filename: string, authToken: string, method?: string, showNotifications?: boolean, body?: any) => void;
|
|
4
5
|
//# sourceMappingURL=file-upload.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-upload.utils.d.ts","sourceRoot":"","sources":["../../../src/file-upload/file-upload.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-upload.utils.d.ts","sourceRoot":"","sources":["../../../src/file-upload/file-upload.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAIrD,eAAO,MAAM,cAAc,UAAW,MAAM,IAAI,CAAC,aAMhD,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,MAAM,YAAY,QAAQ,aAAa,MAAM,QAAQ,IAAI,iBAOzF,CAAC;AAEF,eAAO,MAAM,YAAY,QAClB,MAAM,YACD,MAAM,aACL,MAAM,WACT,MAAM,sBACM,OAAO,SACpB,GAAG,SAuDX,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { logger, Session, Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { logger, Session, Connect, Http } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { CriteriaBuilder, ExpressionBuilder } from '@genesislcap/foundation-criteria';
|
|
4
4
|
import { formatDateTimeTimestamp } from '@genesislcap/foundation-utils';
|
|
5
5
|
import { attr, html, when, observable } from '@microsoft/fast-element';
|
|
@@ -214,7 +214,7 @@ export class FileUpload extends FoundationElement {
|
|
|
214
214
|
try {
|
|
215
215
|
const formData = createFormData(this.selectedFiles);
|
|
216
216
|
formData.append(this.uploadKey, this.entityId);
|
|
217
|
-
const data = yield uploadFiles(this.uploadEventName, formData, this.session.getItem('authToken', 'session'));
|
|
217
|
+
const data = yield uploadFiles(this.uploadEventName, formData, this.session.getItem('authToken', 'session'), this.http);
|
|
218
218
|
if (data.ERROR) {
|
|
219
219
|
logger.error(data.ERROR);
|
|
220
220
|
this.$emit('errorOut', data.ERROR);
|
|
@@ -242,6 +242,9 @@ __decorate([
|
|
|
242
242
|
__decorate([
|
|
243
243
|
Connect
|
|
244
244
|
], FileUpload.prototype, "connect", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
Http
|
|
247
|
+
], FileUpload.prototype, "http", void 0);
|
|
245
248
|
__decorate([
|
|
246
249
|
Session
|
|
247
250
|
], FileUpload.prototype, "session", void 0);
|
|
@@ -8,16 +8,13 @@ export const createFormData = (files) => {
|
|
|
8
8
|
});
|
|
9
9
|
return formData;
|
|
10
10
|
};
|
|
11
|
-
export const uploadFiles = (url, formData, authToken) => {
|
|
11
|
+
export const uploadFiles = (url, formData, authToken, http) => {
|
|
12
12
|
const headers = new Headers();
|
|
13
13
|
headers.append('SESSION_AUTH_TOKEN', authToken);
|
|
14
|
-
return
|
|
15
|
-
method: 'POST',
|
|
14
|
+
return http.post(url, {
|
|
16
15
|
body: formData,
|
|
17
16
|
headers,
|
|
18
|
-
})
|
|
19
|
-
return data;
|
|
20
|
-
}));
|
|
17
|
+
});
|
|
21
18
|
};
|
|
22
19
|
export const downloadFile = (url, filename, authToken, method = 'GET', showNotifications, body) => {
|
|
23
20
|
const headers = new Headers();
|
|
@@ -26,6 +23,7 @@ export const downloadFile = (url, filename, authToken, method = 'GET', showNotif
|
|
|
26
23
|
method,
|
|
27
24
|
body,
|
|
28
25
|
headers,
|
|
26
|
+
credentials: 'include',
|
|
29
27
|
})
|
|
30
28
|
.then((res) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
29
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.268.
|
|
4
|
+
"version": "14.268.3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@genesislcap/foundation-testing": "14.268.
|
|
87
|
-
"@genesislcap/genx": "14.268.
|
|
88
|
-
"@genesislcap/rollup-builder": "14.268.
|
|
89
|
-
"@genesislcap/ts-builder": "14.268.
|
|
90
|
-
"@genesislcap/uvu-playwright-builder": "14.268.
|
|
91
|
-
"@genesislcap/vite-builder": "14.268.
|
|
92
|
-
"@genesislcap/webpack-builder": "14.268.
|
|
86
|
+
"@genesislcap/foundation-testing": "14.268.3",
|
|
87
|
+
"@genesislcap/genx": "14.268.3",
|
|
88
|
+
"@genesislcap/rollup-builder": "14.268.3",
|
|
89
|
+
"@genesislcap/ts-builder": "14.268.3",
|
|
90
|
+
"@genesislcap/uvu-playwright-builder": "14.268.3",
|
|
91
|
+
"@genesislcap/vite-builder": "14.268.3",
|
|
92
|
+
"@genesislcap/webpack-builder": "14.268.3",
|
|
93
93
|
"copyfiles": "^2.4.1",
|
|
94
94
|
"rimraf": "^5.0.0",
|
|
95
95
|
"rxjs": "^7.5.4"
|
|
@@ -100,15 +100,15 @@
|
|
|
100
100
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
101
101
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
102
102
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
|
|
103
|
-
"@genesislcap/expression-builder": "14.268.
|
|
104
|
-
"@genesislcap/foundation-comms": "14.268.
|
|
105
|
-
"@genesislcap/foundation-criteria": "14.268.
|
|
106
|
-
"@genesislcap/foundation-errors": "14.268.
|
|
107
|
-
"@genesislcap/foundation-events": "14.268.
|
|
108
|
-
"@genesislcap/foundation-logger": "14.268.
|
|
109
|
-
"@genesislcap/foundation-notifications": "14.268.
|
|
110
|
-
"@genesislcap/foundation-user": "14.268.
|
|
111
|
-
"@genesislcap/foundation-utils": "14.268.
|
|
103
|
+
"@genesislcap/expression-builder": "14.268.3",
|
|
104
|
+
"@genesislcap/foundation-comms": "14.268.3",
|
|
105
|
+
"@genesislcap/foundation-criteria": "14.268.3",
|
|
106
|
+
"@genesislcap/foundation-errors": "14.268.3",
|
|
107
|
+
"@genesislcap/foundation-events": "14.268.3",
|
|
108
|
+
"@genesislcap/foundation-logger": "14.268.3",
|
|
109
|
+
"@genesislcap/foundation-notifications": "14.268.3",
|
|
110
|
+
"@genesislcap/foundation-user": "14.268.3",
|
|
111
|
+
"@genesislcap/foundation-utils": "14.268.3",
|
|
112
112
|
"@microsoft/fast-colors": "5.3.1",
|
|
113
113
|
"@microsoft/fast-components": "2.30.6",
|
|
114
114
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"access": "public"
|
|
131
131
|
},
|
|
132
132
|
"customElements": "dist/custom-elements.json",
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "5adc8596d5fe7a96f5c3efe289a40d188f432b0e"
|
|
134
134
|
}
|