@firedesktop/react-base 1.47.0 → 1.49.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.
- package/dist/utils/CurrencyUtiles.d.ts +1 -1
- package/dist/utils/CurrencyUtiles.js.map +1 -1
- package/dist/utils/labels/LanguageLoader.js +3 -12
- package/dist/utils/labels/LanguageLoader.js.map +1 -1
- package/package.json +14 -13
- package/.babelrc +0 -21
- package/.eslintcache +0 -1
- package/debug.log +0 -1
- package/src/App.test.tsx +0 -9
- package/src/App.tsx +0 -170
- package/src/TestLabelFunction.tsx +0 -17
- package/src/index.tsx +0 -27
- package/src/lib/components/AppIcon.tsx +0 -784
- package/src/lib/components/AppInput.tsx +0 -66
- package/src/lib/components/AppPagination.tsx +0 -124
- package/src/lib/components/Spin.tsx +0 -31
- package/src/lib/components/Toaster/Toaster.tsx +0 -50
- package/src/lib/components/Toaster/Types.ts +0 -11
- package/src/lib/components/index.ts +0 -8
- package/src/lib/index.ts +0 -15
- package/src/lib/styles/base.css +0 -392
- package/src/lib/styles/syncfusion_bootstrap4.css +0 -10
- package/src/lib/styles/toaster.css +0 -50
- package/src/lib/utils/CurrencyUtiles.ts +0 -28
- package/src/lib/utils/DateUtils.ts +0 -135
- package/src/lib/utils/FileUtil.ts +0 -27
- package/src/lib/utils/configuration/ConfigurationLoader.tsx +0 -43
- package/src/lib/utils/configuration/ConfigurationManager.ts +0 -29
- package/src/lib/utils/configuration/ConfigurationReturner.tsx +0 -39
- package/src/lib/utils/configuration/index.ts +0 -9
- package/src/lib/utils/fetch/Types.ts +0 -11
- package/src/lib/utils/fetch/fetchWrapper.ts +0 -144
- package/src/lib/utils/fetch/index.ts +0 -4
- package/src/lib/utils/index.ts +0 -8
- package/src/lib/utils/labels/LanguageLoader.tsx +0 -65
- package/src/lib/utils/labels/LanguageManager.ts +0 -53
- package/src/lib/utils/labels/LanguageReturner.tsx +0 -41
- package/src/lib/utils/labels/index.ts +0 -9
- package/src/react-app-env.d.ts +0 -1
- package/src/reportWebVitals.ts +0 -15
- package/src/setupTests.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyUtiles.js","sourceRoot":"","sources":["../../src/lib/utils/CurrencyUtiles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,cAAc;IAUlC,IAAM,sBAAsB,GAAG,UAAC,
|
|
1
|
+
{"version":3,"file":"CurrencyUtiles.js","sourceRoot":"","sources":["../../src/lib/utils/CurrencyUtiles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,cAAc;IAUlC,IAAM,sBAAsB,GAAG,UAAC,KAAkC,EAAE,MAAqB,EAAE,QAAgB;QAAvC,uBAAA,EAAA,aAAqB;QAAE,yBAAA,EAAA,gBAAgB;QACvG,IAAI;YACA,IAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAElC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,WAAW,CAAC;gBAC3D,OAAO,EAAE,CAAC;YAEd,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,UAAA,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;SAC7F;QAAC,OAAO,GAAG,EAAE,GAAG;QAEjB,OAAO,EAAE,CAAC;IACd,CAAC,CAAC;IAGF,OAAO;QACH,sBAAsB,wBAAA;KACzB,CAAC;AACN,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -46,6 +35,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
35
|
}
|
|
47
36
|
};
|
|
48
37
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
|
+
import _ from 'lodash';
|
|
49
39
|
import React, { useEffect } from 'react';
|
|
50
40
|
import { useDispatch, useSelector } from 'react-redux';
|
|
51
41
|
import LanguageManager from './LanguageManager';
|
|
@@ -86,7 +76,8 @@ function LanguageLoader(_a) {
|
|
|
86
76
|
loadLabels(fullPath).then(function (response) {
|
|
87
77
|
if (response) {
|
|
88
78
|
console.log("Loaded Custom Language Labels for this Site in this path: ".concat(fullPath), response);
|
|
89
|
-
|
|
79
|
+
var merged = _.merge(allLabels_1, response);
|
|
80
|
+
dispatch(updateAppState('labels', merged));
|
|
90
81
|
}
|
|
91
82
|
else {
|
|
92
83
|
console.warn("Custom Site Language Labels NOT FOUND in this path: ".concat(fullPath));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageLoader.js","sourceRoot":"","sources":["../../../src/lib/utils/labels/LanguageLoader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LanguageLoader.js","sourceRoot":"","sources":["../../../src/lib/utils/labels/LanguageLoader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAQhD,SAAS,cAAc,CAAC,EAA4D;QAA1D,cAAc,oBAAA,EAAE,QAAQ,cAAA,EAAE,IAAI,UAAA;IACpD,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IACvB,IAAA,MAAM,GAAU,WAAW,CAAC,UAAA,KAAK,IAAI,OAAA,KAAK,EAAL,CAAK,CAAC,OAArC,CAAsC;IAC5C,IAAA,UAAU,GAAK,eAAe,EAAE,WAAtB,CAAuB;IAEzC,IAAM,QAAQ,GAAG,UAAG,QAAQ,UAAO,CAAC;IAEpC,IAAM,oBAAoB,GAAG,mBAAY,QAAQ,CAAE,CAAC;IAEpD,IAAI,QAAQ,GAAG,mBAAY,QAAQ,CAAE,CAAC;IACtC,IAAI,IAAI;QACJ,QAAQ,GAAG,YAAK,IAAI,cAAI,QAAQ,CAAE,CAAC;IAGvC,SAAS,CAAC;QACN,SAAe,SAAS;;;;;;iCAChB,CAAA,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAA,EAA3D,cAA2D;4BAE3D,OAAO,CAAC,GAAG,CAAC,mEAA4D,oBAAoB,CAAE,CAAC,CAAC;4BAC5F,cAAiB,EAAE,CAAC;;;;4BAER,WAAM,UAAU,CAAC,oBAAoB,CAAC,EAAA;;4BAAlD,WAAS,GAAG,SAAsC,CAAC;4BACnD,OAAO,CAAC,GAAG,CAAC,kEAA2D,oBAAoB,CAAE,EAAE,WAAS,CAAC,CAAC;;;;4BAG1G,OAAO,CAAC,KAAK,CAAC,kEAA2D,oBAAoB,CAAE,CAAC,CAAC;;;4BAGrG,OAAO,CAAC,GAAG,CAAC,qEAA8D,QAAQ,CAAE,CAAC,CAAC;4BACtF,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAC,QAAa;gCACpC,IAAI,QAAQ,EAAE;oCACV,OAAO,CAAC,GAAG,CAAC,oEAA6D,QAAQ,CAAE,EAAE,QAAQ,CAAC,CAAC;oCAC/F,IAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,WAAS,EAAE,QAAQ,CAAC,CAAC;oCAC5C,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;iCAC9C;qCACI;oCACD,OAAO,CAAC,IAAI,CAAC,8DAAuD,QAAQ,CAAE,CAAC,CAAC;oCAChF,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,WAAS,CAAC,CAAC,CAAC;iCACjD;4BACL,CAAC,CAAC,CAAC,KAAK,CAAC,UAAC,GAAQ;gCACd,OAAO,CAAC,IAAI,CAAC,8DAAuD,QAAQ,CAAE,CAAC,CAAC;4BACpF,CAAC,CAAC,CAAC;;;;;;SAEV;QACD,SAAS,EAAE,CAAC;IAEhB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACH,KAAC,KAAK,CAAC,QAAQ,KACE,CACpB,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firedesktop/react-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"description": "This is the FireDesktop base package used to support every React Project in this Company.",
|
|
7
7
|
"author": "alessandro.gambaro",
|
|
8
8
|
"repository": "https://firedesktopDevOps@dev.azure.com/firedesktopDevOps/baseFEComponents/_git/baseFEComponents",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@syncfusion/ej2-popups": "20.1.
|
|
10
|
+
"@syncfusion/ej2-popups": "20.1.58",
|
|
11
11
|
"@syncfusion/ej2-react-notifications": "20.1.55"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@babel/cli": "7.17.10",
|
|
15
|
-
"@babel/core": "7.
|
|
16
|
-
"@babel/plugin-proposal-class-properties": "7.
|
|
17
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
18
|
-
"@babel/preset-typescript": "7.
|
|
15
|
+
"@babel/core": "7.18.2",
|
|
16
|
+
"@babel/plugin-proposal-class-properties": "7.17.12",
|
|
17
|
+
"@babel/plugin-transform-arrow-functions": "7.17.12",
|
|
18
|
+
"@babel/preset-typescript": "7.17.12",
|
|
19
19
|
"@testing-library/jest-dom": "5.16.4",
|
|
20
|
-
"@testing-library/react": "13.
|
|
20
|
+
"@testing-library/react": "13.3.0",
|
|
21
21
|
"@testing-library/user-event": "14.2.0",
|
|
22
|
-
"@types/jest": "
|
|
23
|
-
"@types/node": "17.0.
|
|
24
|
-
"@types/react": "18.0.
|
|
25
|
-
"@types/react-dom": "18.0.
|
|
22
|
+
"@types/jest": "28.1.1",
|
|
23
|
+
"@types/node": "17.0.41",
|
|
24
|
+
"@types/react": "18.0.12",
|
|
25
|
+
"@types/react-dom": "18.0.5",
|
|
26
26
|
"@types/react-redux": "7.1.24",
|
|
27
27
|
"babel-plugin-minify-builtins": "0.5.0",
|
|
28
28
|
"babel-preset-minify": "0.5.2",
|
|
29
29
|
"bootstrap": "4.6.0",
|
|
30
30
|
"copyfiles": "2.4.1",
|
|
31
|
+
"lodash": "4.17.21",
|
|
31
32
|
"react": "18.1.0",
|
|
32
33
|
"react-dom": "18.1.0",
|
|
33
|
-
"react-redux": "8.0.
|
|
34
|
+
"react-redux": "8.0.2",
|
|
34
35
|
"react-scripts": "5.0.1",
|
|
35
|
-
"typescript": "4.
|
|
36
|
+
"typescript": "4.7.3",
|
|
36
37
|
"web-vitals": "2.1.4"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
package/.babelrc
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"plugins": [
|
|
3
|
-
"@babel/plugin-transform-arrow-functions",
|
|
4
|
-
"@babel/proposal-object-rest-spread",
|
|
5
|
-
"@babel/plugin-proposal-class-properties"
|
|
6
|
-
],
|
|
7
|
-
"presets": [
|
|
8
|
-
[
|
|
9
|
-
"@babel/preset-env",
|
|
10
|
-
{
|
|
11
|
-
"targets": {
|
|
12
|
-
"browsers": [
|
|
13
|
-
"last 2 versions"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"@babel/preset-react",
|
|
19
|
-
"@babel/preset-typescript"
|
|
20
|
-
]
|
|
21
|
-
}
|
package/.eslintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\index.tsx":"1","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\reportWebVitals.ts":"2","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\App.tsx":"3","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\TestLabelFunction.tsx":"4","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\index.ts":"5","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationLoader.tsx":"6","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageLoader.tsx":"7","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\index.ts":"8","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\index.ts":"9","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationManager.ts":"10","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageManager.ts":"11","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Types.ts":"12","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Spin.tsx":"13","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppInput.tsx":"14","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppIcon.tsx":"15","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Toaster.tsx":"16","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\index.ts":"17","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\index.ts":"18","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\index.ts":"19","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\Types.ts":"20","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\fetchWrapper.ts":"21","C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppPagination.tsx":"22"},{"size":494,"mtime":1603824492688,"results":"23","hashOfConfig":"24"},{"size":442,"mtime":1605695276101,"results":"25","hashOfConfig":"24"},{"size":4966,"mtime":1610124289141,"results":"26","hashOfConfig":"24"},{"size":424,"mtime":1605695276095,"results":"27","hashOfConfig":"24"},{"size":291,"mtime":1605458851566,"results":"28","hashOfConfig":"24"},{"size":1534,"mtime":1605788323697,"results":"29","hashOfConfig":"24"},{"size":1650,"mtime":1605695276100,"results":"30","hashOfConfig":"24"},{"size":167,"mtime":1605458851574,"results":"31","hashOfConfig":"24"},{"size":315,"mtime":1607544774606,"results":"32","hashOfConfig":"24"},{"size":1221,"mtime":1605695276098,"results":"33","hashOfConfig":"24"},{"size":1852,"mtime":1606840214542,"results":"34","hashOfConfig":"24"},{"size":206,"mtime":1606840214535,"results":"35","hashOfConfig":"24"},{"size":848,"mtime":1605695276096,"results":"36","hashOfConfig":"24"},{"size":1387,"mtime":1610123730819,"results":"37","hashOfConfig":"24"},{"size":63332,"mtime":1610124087804,"results":"38","hashOfConfig":"24"},{"size":2228,"mtime":1606061544975,"results":"39","hashOfConfig":"24"},{"size":173,"mtime":1605458851570,"results":"40","hashOfConfig":"24"},{"size":143,"mtime":1605458851577,"results":"41","hashOfConfig":"24"},{"size":112,"mtime":1605695276099,"results":"42","hashOfConfig":"24"},{"size":248,"mtime":1606840214536,"results":"43","hashOfConfig":"24"},{"size":5806,"mtime":1606983244339,"results":"44","hashOfConfig":"24"},{"size":4769,"mtime":1608719725086,"results":"45","hashOfConfig":"24"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},"1g0oopp",{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"48"},"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\index.tsx",[],["91","92"],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\reportWebVitals.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\App.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\TestLabelFunction.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationLoader.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageLoader.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\ConfigurationManager.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\LanguageManager.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Types.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Spin.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppInput.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppIcon.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\Toaster\\Toaster.tsx",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\configuration\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\labels\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\index.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\Types.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\utils\\fetch\\fetchWrapper.ts",[],"C:\\Fd\\repo\\npm\\baseFEComponents\\@firedesktop\\react-base\\src\\lib\\components\\AppPagination.tsx",[],{"ruleId":"93","replacedBy":"94"},{"ruleId":"95","replacedBy":"96"},"no-native-reassign",["97"],"no-negated-in-lhs",["98"],"no-global-assign","no-unsafe-negation"]
|
package/debug.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[1122/163547.632:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
|
package/src/App.test.tsx
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
import App from './App';
|
|
4
|
-
|
|
5
|
-
test('renders learn react link', () => {
|
|
6
|
-
render(<App />);
|
|
7
|
-
const linkElement = screen.getByText(/learn react/i);
|
|
8
|
-
expect(linkElement).toBeInTheDocument();
|
|
9
|
-
});
|
package/src/App.tsx
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useState } from 'react';
|
|
2
|
-
import { Provider } from 'react-redux';
|
|
3
|
-
import { createStore } from 'redux';
|
|
4
|
-
|
|
5
|
-
import { Components, ConfigurationLoader, Utils, LanguageLoader, LanguageReturner } from './lib';
|
|
6
|
-
|
|
7
|
-
import DateUtils from './lib/utils/DateUtils';
|
|
8
|
-
|
|
9
|
-
import TestLabelFunction from './TestLabelFunction';
|
|
10
|
-
|
|
11
|
-
import 'bootstrap/dist/css/bootstrap.css';
|
|
12
|
-
import '@syncfusion/ej2-base/styles/bootstrap4.css';
|
|
13
|
-
import '@syncfusion/ej2-buttons/styles/bootstrap4.css';
|
|
14
|
-
import '@syncfusion/ej2-icons/styles/bootstrap4.css';
|
|
15
|
-
import '@syncfusion/ej2-popups/styles/bootstrap4.css';
|
|
16
|
-
|
|
17
|
-
import './lib/styles/base.css';
|
|
18
|
-
import './lib/styles/syncfusion_bootstrap4.css';
|
|
19
|
-
|
|
20
|
-
export const UPDATE_APP_STATE = 'UPDATE_APP_STATE';
|
|
21
|
-
const appReducer = (state = {}, action: any) => {
|
|
22
|
-
switch (action.type) {
|
|
23
|
-
case UPDATE_APP_STATE: {
|
|
24
|
-
const { name, value } = action.payload;
|
|
25
|
-
const newState = { ...state, [name]: value };
|
|
26
|
-
return newState;
|
|
27
|
-
}
|
|
28
|
-
default:
|
|
29
|
-
return state;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
function App() {
|
|
34
|
-
const [options, setOptions] = useState<{ value: string }[]>([]);
|
|
35
|
-
const [spinning, setSpinning] = useState(false);
|
|
36
|
-
const [activePage, setActivePage] = useState(1);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function onGenericServerError(status: number) {
|
|
40
|
-
alert(`Error, Status: ${status}`);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function status_401() {
|
|
44
|
-
alert('Log Out 401');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function status_403() {
|
|
48
|
-
alert('Log Out 403');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function iconClick(event: any) {
|
|
52
|
-
alert('Icon click');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const textFetch = () => {
|
|
56
|
-
if (_referenceRef.current) {
|
|
57
|
-
console.log('dddddddddddddddd');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const labels = { errorGeneric: 'Errore generiro', errorServerNotAvailable: 'No serviziooo', errorSessionExpired: 'Sessione scadurta' } as Utils.Fetch.Types.ILabels;
|
|
61
|
-
|
|
62
|
-
const runner = new Utils.Fetch.FetchWrapper(null, labels, status_401, status_403);
|
|
63
|
-
|
|
64
|
-
// var req = new XMLHttpRequest();
|
|
65
|
-
// req.open('POST', 'https://192.168.12.164:656/flowbot/Authentication/LoginWithForm', true);
|
|
66
|
-
// req.setRequestHeader('Content-Type', 'application/json');
|
|
67
|
-
// req.setRequestHeader('X-Token', '');
|
|
68
|
-
// req.addEventListener('readystatechange', function (ev: Event) {
|
|
69
|
-
// debugger;
|
|
70
|
-
// console.log(ev);
|
|
71
|
-
// // if (this.readyState === 4 && (this.status === 401 || this.status === 403)) {
|
|
72
|
-
// // window.location.href = '#/logoff';
|
|
73
|
-
// // }
|
|
74
|
-
// }, false);
|
|
75
|
-
// req.onreadystatechange = function () {
|
|
76
|
-
// if (req.readyState === 4) {
|
|
77
|
-
// if (req.status >= 200 && req.status < 400) {
|
|
78
|
-
// debugger;
|
|
79
|
-
// } else if (req.status === 400) {
|
|
80
|
-
// debugger;
|
|
81
|
-
// } else if (req.status === 401 || req.status === 403) {
|
|
82
|
-
// debugger;
|
|
83
|
-
// } else {
|
|
84
|
-
// debugger;
|
|
85
|
-
// }
|
|
86
|
-
// }
|
|
87
|
-
// };
|
|
88
|
-
// req.send();
|
|
89
|
-
|
|
90
|
-
setSpinning(true);
|
|
91
|
-
// runner.post('https://192.168.12.164:656/flowbot/Authentication/LoginWithForm', undefined, undefined, { username: 'admin', password: 'a' })
|
|
92
|
-
// .then((authentication: any) => {
|
|
93
|
-
// console.log(authentication);
|
|
94
|
-
// setSpinning(false);
|
|
95
|
-
|
|
96
|
-
// }).catch((errorMessage: any) => {
|
|
97
|
-
// console.log(errorMessage);
|
|
98
|
-
// setSpinning(false);
|
|
99
|
-
// });
|
|
100
|
-
runner.get('https://my-json-server.typicode.com/typicode/demo/posts', null, null, onGenericServerError, null, false, false).then(response => {
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
const values = response.map(x => {
|
|
103
|
-
return { value: x.id, label: x.title };
|
|
104
|
-
});
|
|
105
|
-
setOptions(values);
|
|
106
|
-
setSpinning(false);
|
|
107
|
-
}).catch(errorMessage => {
|
|
108
|
-
setSpinning(false);
|
|
109
|
-
if (errorMessage)
|
|
110
|
-
console.log(errorMessage);
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
const updateAppState = (name: string, value: object) => {
|
|
115
|
-
console.log(`updateState name: ${name}, configuration: ${value}`);
|
|
116
|
-
return {
|
|
117
|
-
type: UPDATE_APP_STATE,
|
|
118
|
-
payload: {
|
|
119
|
-
name,
|
|
120
|
-
value,
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
const language185Loaded = (language: object) => {
|
|
126
|
-
console.log('185: ->', language);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const onPageChange = (nextPage: number) => {
|
|
130
|
-
setActivePage(nextPage);
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
// @ts-ignore
|
|
134
|
-
const store = createStore(appReducer);
|
|
135
|
-
const _referenceRef = useRef<any>();
|
|
136
|
-
return (
|
|
137
|
-
|
|
138
|
-
<Provider store={store}>
|
|
139
|
-
<br />
|
|
140
|
-
<Components.AppPagination activePage={activePage} itemsPerPage={7} onPageChange={onPageChange} totalItems={17} maxSize={5} />
|
|
141
|
-
<Components.Spin spinning={spinning} />
|
|
142
|
-
<Components.AppIcon name={'Pin'} className='dark-pink-svg' onClick={iconClick} />
|
|
143
|
-
<TestLabelFunction />
|
|
144
|
-
<ConfigurationLoader updateAppState={updateAppState} path={null} />
|
|
145
|
-
<LanguageLoader updateAppState={updateAppState} language='it-IT' path={null} />
|
|
146
|
-
<LanguageReturner onLanguageLoad={language185Loaded} language='it-IT' path='./labels/185' />
|
|
147
|
-
|
|
148
|
-
<button onClick={textFetch}>Fetch Demo</button>
|
|
149
|
-
{options ? options.map((x: any) => {
|
|
150
|
-
return (<li key={x.value}>ID: {x.value} Post: {x.label}</li>);
|
|
151
|
-
}) : ''}
|
|
152
|
-
|
|
153
|
-
<br />
|
|
154
|
-
<br />
|
|
155
|
-
<br />
|
|
156
|
-
<br />
|
|
157
|
-
{DateUtils().dateToString_Italian(new Date(), '-', undefined)}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
<Components.AppInput appIcon={<Components.AppIcon name={'user'} className={'tertiary-svg'}
|
|
161
|
-
iconClassName='login_form_svg' />}
|
|
162
|
-
type='text'
|
|
163
|
-
ref={_referenceRef}
|
|
164
|
-
placeholder='username---'
|
|
165
|
-
name='username' />
|
|
166
|
-
</Provider >
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export default App;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
|
-
import { Utils} from './lib';
|
|
4
|
-
const { getLabel } = Utils.Labels.LanguageManager();
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function TestLabelFunction() {
|
|
8
|
-
const { labels }: any = useSelector(state => state);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<React.Fragment>
|
|
12
|
-
{getLabel(labels, 'demo.label_01', 'Ola')}
|
|
13
|
-
</React.Fragment>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default TestLabelFunction;
|
package/src/index.tsx
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { registerLicense } from '@syncfusion/ej2-base';
|
|
2
|
-
import { createRoot } from 'react-dom/client';
|
|
3
|
-
|
|
4
|
-
import App from './App';
|
|
5
|
-
import reportWebVitals from './reportWebVitals';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// ****************************************************************************************************
|
|
9
|
-
// Syncfusion Doc
|
|
10
|
-
// https://ej2.syncfusion.com/react/documentation/licensing/license-key-registration/#reactjs
|
|
11
|
-
//
|
|
12
|
-
// ReactJs
|
|
13
|
-
// https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html
|
|
14
|
-
//
|
|
15
|
-
// ****************************************************************************************************
|
|
16
|
-
registerLicense('ORg4AjUWIQA/Gnt2VVhhQlFaclhJXGFWfVJpTGpQdk5xdV9DaVZUTWY/P1ZhSXxRdkFjXX5fcXFVT2BeWUE=');
|
|
17
|
-
|
|
18
|
-
const container = document.getElementById('root');
|
|
19
|
-
if (container) {
|
|
20
|
-
const root = createRoot(container);
|
|
21
|
-
root.render(<App />);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// If you want to start measuring performance in your app, pass a function
|
|
25
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
26
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
27
|
-
reportWebVitals();
|