@michalrakus/x-react-web-lib 0.25.0 → 1.1.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 (67) hide show
  1. package/LICENSE.md +21 -0
  2. package/XEnvVars.d.ts +3 -0
  3. package/XEnvVars.js +5 -0
  4. package/XInputTextarea.d.ts +3 -0
  5. package/XInputTextarea.js +5 -0
  6. package/gulpfile.js +2 -0
  7. package/lib/administration/XBrowseMetaForm.js +1 -1
  8. package/lib/administration/XUserBrowse.js +5 -4
  9. package/lib/administration/XUserForm.js +40 -28
  10. package/lib/components/SourceCodeLinkEntity.js +1 -1
  11. package/lib/components/XAutoComplete.d.ts +3 -3
  12. package/lib/components/XAutoComplete.js +16 -37
  13. package/lib/components/XAutoCompleteBase.d.ts +1 -1
  14. package/lib/components/XAutoCompleteBase.js +23 -22
  15. package/lib/components/XBrowse.js +7 -3
  16. package/lib/components/XChangePasswordForm.js +9 -5
  17. package/lib/components/XCheckbox.d.ts +8 -9
  18. package/lib/components/XCheckbox.js +38 -30
  19. package/lib/components/XDataTable.js +11 -7
  20. package/lib/components/XDropdown.d.ts +4 -3
  21. package/lib/components/XDropdown.js +21 -44
  22. package/lib/components/XDropdownDT.js +7 -3
  23. package/lib/components/XDropdownDTFilter.js +9 -5
  24. package/lib/components/XDropdownFormDTFilter.js +9 -5
  25. package/lib/components/XEditColumnDialog.js +9 -5
  26. package/lib/components/XEnvVars.d.ts +12 -0
  27. package/lib/components/XEnvVars.js +20 -0
  28. package/lib/components/XErrors.d.ts +1 -0
  29. package/lib/components/XExportRowsDialog.js +12 -6
  30. package/lib/components/XFieldSelector.js +8 -4
  31. package/lib/components/XFormBase.d.ts +1 -0
  32. package/lib/components/XFormBase.js +47 -21
  33. package/lib/components/XFormComponent.d.ts +10 -6
  34. package/lib/components/XFormComponent.js +60 -48
  35. package/lib/components/XFormDataTable2.d.ts +8 -3
  36. package/lib/components/XFormDataTable2.js +106 -28
  37. package/lib/components/XFormNavigator3.js +14 -6
  38. package/lib/components/XInput.d.ts +13 -0
  39. package/lib/components/XInput.js +38 -0
  40. package/lib/components/XInputDate.js +1 -1
  41. package/lib/components/XInputDateDT.js +1 -1
  42. package/lib/components/XInputText.d.ts +6 -11
  43. package/lib/components/XInputText.js +14 -49
  44. package/lib/components/XInputTextDT.js +2 -3
  45. package/lib/components/XInputTextarea.d.ts +18 -0
  46. package/lib/components/XInputTextarea.js +85 -0
  47. package/lib/components/XLazyDataTable.d.ts +3 -0
  48. package/lib/components/XLazyDataTable.js +162 -77
  49. package/lib/components/XLoginForm.js +9 -5
  50. package/lib/components/XResponseError.js +1 -1
  51. package/lib/components/XSearchButton.d.ts +2 -3
  52. package/lib/components/XSearchButton.js +12 -35
  53. package/lib/components/XSearchButtonDT.js +10 -6
  54. package/lib/components/XSearchButtonOld.js +10 -6
  55. package/lib/components/XToken.d.ts +4 -3
  56. package/lib/components/XUtils.d.ts +13 -4
  57. package/lib/components/XUtils.js +90 -15
  58. package/lib/components/XUtilsConversions.js +10 -2
  59. package/lib/components/XUtilsMetadata.d.ts +1 -1
  60. package/lib/components/XUtilsMetadata.js +20 -11
  61. package/lib/components/useXToken.js +1 -1
  62. package/lib/serverApi/ExportImportParam.d.ts +3 -3
  63. package/lib/serverApi/FindParam.d.ts +3 -13
  64. package/lib/serverApi/FindParam.js +14 -0
  65. package/lib/serverApi/XUser.d.ts +1 -0
  66. package/lib/serverApi/XUtilsCommon.js +2 -2
  67. package/package.json +34 -32
package/package.json CHANGED
@@ -1,47 +1,49 @@
1
1
  {
2
2
  "name": "@michalrakus/x-react-web-lib",
3
- "version": "0.25.0",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rimraf lib",
7
7
  "compile": "tsc",
8
8
  "generateApi": "gulp generateApi",
9
- "build": "npm run clean && npm run compile && npm run generateApi",
10
- "linkDemo": "npm link && npm link ../DemoReactWebApp/node_modules/react",
11
- "linkDemoRouter": "npm link && npm link ../demo-router-web-app/node_modules/react",
12
- "linkKvm": "npm link && npm link ../kvm-web-app/node_modules/react",
13
- "linkKvmNext": "npm link && npm link ../kvm-next-web-app/node_modules/react",
9
+ "build": "pnpm run clean && pnpm run compile && pnpm run generateApi",
10
+ "linkDemo": "pnpm link && pnpm link ../DemoReactWebApp/node_modules/react",
11
+ "linkDemoRouter": "pnpm link && pnpm link ../demo-router-web-app/node_modules/react",
12
+ "linkKvm": "pnpm link && pnpm link ../kvm-web-app/node_modules/react",
13
+ "linkKvmNext": "pnpm link && pnpm link ../kvm-next-web-app/node_modules/react",
14
14
  "test": "echo \"Error: no test specified\" && exit 1",
15
- "prepublishOnly": "npm run build"
15
+ "prepublishOnly": "pnpm run build",
16
+ "buildAndPack": "pnpm run build && pnpm pack",
17
+ "bp": "pnpm run buildAndPack",
18
+ "preinstall": "npx only-allow pnpm"
16
19
  },
17
20
  "author": "Michal Rakus",
18
- "license": "ISC",
19
- "dependencies": {},
21
+ "license": "MIT",
22
+ "dependencies": {
23
+ "dateformat": "^4.6.3",
24
+ "lodash": "^4.17.21"
25
+ },
20
26
  "devDependencies": {
21
- "@testing-library/jest-dom": "^4.2.4",
22
- "@testing-library/react": "^9.5.0",
23
- "@testing-library/user-event": "^7.2.1",
24
- "@types/classnames": "^2.2.10",
25
- "@types/jest": "^24.9.1",
26
- "@types/lodash": "^4.14.168",
27
- "@types/node": "^12.12.67",
28
- "@types/react": "^17.0.5",
29
- "@types/react-dom": "^17.0.5",
30
- "@types/react-transition-group": "^4.2.4",
31
- "axios": "^0.19.0",
32
- "classnames": "^2.2.6",
33
- "primeflex": "3.0.1",
34
- "primeicons": "^4.1.0",
35
- "primereact": "latest",
36
- "lodash": "^4.17.21",
37
- "react": "^17.0.1",
38
- "react-dom": "^17.0.1",
39
- "react-scripts": "3.4.3",
40
- "react-transition-group": "^4.4.1",
27
+ "@testing-library/jest-dom": "^5.16.5",
28
+ "@testing-library/react": "^14.0.0",
29
+ "@testing-library/user-event": "^14.4.3",
30
+ "@types/jest": "^29.5.0",
31
+ "@types/lodash": "^4.14.191",
32
+ "@types/node": "^18.15.3",
33
+ "@types/react": "^18.0.28",
34
+ "@types/react-dom": "^18.0.11",
35
+ "@types/react-transition-group": "^4.4.5",
41
36
  "gulp": "^4.0.2",
42
- "rimraf": "^3.0.2",
43
- "typescript": "^4.2.4",
44
- "dateformat": "^4.4.1"
37
+ "rimraf": "^4.4.0",
38
+ "typescript": "^4.9.5"
39
+ },
40
+ "peerDependencies": {
41
+ "primeflex": "^3.3.0",
42
+ "primeicons": "^6.0.1",
43
+ "primereact": "~9.2.1",
44
+ "react": "^18.2.0",
45
+ "react-dom": "^18.2.0",
46
+ "react-transition-group": "^4.4.5"
45
47
  },
46
48
  "files": [
47
49
  "lib/**/*",