namirasoft-account-react 1.4.428 → 1.4.430

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 (128) hide show
  1. package/.env.template +15 -15
  2. package/SKILLS.md +514 -514
  3. package/config-overrides.js +72 -72
  4. package/dist/App.d.ts +1 -1
  5. package/dist/UseParams.d.ts +1 -1
  6. package/dist/components/NSAAccessListDialog.d.ts +2 -2
  7. package/dist/components/NSAAccessListDialog.module.css +71 -71
  8. package/dist/components/NSAMasterMenu.d.ts +1 -1
  9. package/dist/components/NSAMasterMenu.module.css +248 -248
  10. package/dist/components/NSAMasterMenuItem.d.ts +1 -1
  11. package/dist/components/NSAMessageListDialog.d.ts +1 -1
  12. package/dist/components/NSAMessageListDialog.module.css +99 -99
  13. package/dist/components/NSAProductListDialog.d.ts +1 -1
  14. package/dist/components/NSAProductListDialog.module.css +44 -44
  15. package/dist/components/NSAReorderDialog.d.ts +1 -1
  16. package/dist/components/NSAReorderDialog.module.css +49 -49
  17. package/dist/components/NSASortDialog.d.ts +1 -1
  18. package/dist/components/NSAUserDialog.d.ts +1 -1
  19. package/dist/components/NSAUserDialog.module.css +67 -67
  20. package/dist/components/NSAWorkspaceListDialog.d.ts +1 -1
  21. package/dist/components/NSAWorkspaceListDialog.module.css +41 -41
  22. package/dist/components/NSBoxSecret.d.ts +1 -1
  23. package/dist/components/NSBoxSecret.module.css +23 -23
  24. package/dist/components/NSLabelSecret.d.ts +1 -1
  25. package/dist/components/quickfilter/NSAQuickFilterBar.d.ts +1 -1
  26. package/dist/components/quickfilter/NSAQuickFilterDialog.d.ts +1 -1
  27. package/dist/layouts/NSALayout.d.ts +1 -1
  28. package/dist/layouts/NSASectionEdit.d.ts +3 -1
  29. package/dist/layouts/NSASectionEdit.js +5 -3
  30. package/dist/layouts/NSASectionEdit.js.map +1 -1
  31. package/dist/layouts/NSASectionEditTabPage.d.ts +1 -1
  32. package/dist/layouts/NSASectionEditTabPage.module.css +4 -4
  33. package/dist/layouts/NSASectionList.d.ts +1 -1
  34. package/dist/layouts/NSASectionList.js +9 -6
  35. package/dist/layouts/NSASectionList.js.map +1 -1
  36. package/dist/layouts/NSASectionList.module.css +31 -31
  37. package/dist/layouts/NSASectionView.d.ts +1 -1
  38. package/dist/layouts/NSASectionViewTabMore.d.ts +1 -1
  39. package/dist/layouts/NSASectionViewTabPage.d.ts +1 -1
  40. package/dist/layouts/NSASectionViewTabPage.module.css +47 -47
  41. package/dist/pages/NSAConsentPage.module.css +26 -26
  42. package/dist/pages/NSAEmailVerificationPage.d.ts +1 -1
  43. package/dist/pages/NSAHomePage.d.ts +1 -1
  44. package/dist/pages/NSAHomePage.module.css +41 -41
  45. package/dist/pages/NSALoginPage.d.ts +1 -1
  46. package/dist/pages/NSALoginPage.module.css +26 -26
  47. package/dist/pages/NSAPhoneVerificationPage.d.ts +1 -1
  48. package/dist/pages/NSAVerificationPage.d.ts +1 -1
  49. package/dist/pages/NSAVerificationPage.module.css +31 -31
  50. package/package.json +94 -94
  51. package/public/index.html +21 -21
  52. package/src/App.css +31 -31
  53. package/src/App.tsx +19 -19
  54. package/src/CTFRow.ts +7 -7
  55. package/src/IEntityInfo.ts +33 -33
  56. package/src/NSACacheService.ts +120 -120
  57. package/src/NSAFilterOperators.ts +92 -92
  58. package/src/NSARouterMaker.tsx +139 -139
  59. package/src/NSARouterMakerConfig.ts +15 -15
  60. package/src/NSARouterMakerProps.ts +22 -22
  61. package/src/Router.tsx +45 -45
  62. package/src/UseParams.tsx +18 -18
  63. package/src/components/NSAAccessListDialog.module.css +71 -71
  64. package/src/components/NSAAccessListDialog.tsx +178 -178
  65. package/src/components/NSAMasterMenu.module.css +248 -248
  66. package/src/components/NSAMasterMenu.tsx +169 -169
  67. package/src/components/NSAMasterMenuItem.tsx +250 -250
  68. package/src/components/NSAMessageListDialog.module.css +99 -99
  69. package/src/components/NSAMessageListDialog.tsx +141 -141
  70. package/src/components/NSAProductListDialog.module.css +44 -44
  71. package/src/components/NSAProductListDialog.tsx +88 -88
  72. package/src/components/NSAReorderDialog.module.css +49 -49
  73. package/src/components/NSAReorderDialog.tsx +149 -149
  74. package/src/components/NSASortDialog.tsx +117 -117
  75. package/src/components/NSATable.tsx +489 -489
  76. package/src/components/NSAUserDialog.module.css +67 -67
  77. package/src/components/NSAUserDialog.tsx +122 -122
  78. package/src/components/NSAWorkspaceListDialog.module.css +41 -41
  79. package/src/components/NSAWorkspaceListDialog.tsx +147 -147
  80. package/src/components/NSBoxSecret.module.css +23 -23
  81. package/src/components/NSBoxSecret.tsx +258 -258
  82. package/src/components/NSLabelSecret.tsx +37 -37
  83. package/src/components/quickfilter/NSAFilterBoxBase.tsx +55 -55
  84. package/src/components/quickfilter/NSAFilterBoxBoolean.tsx +54 -54
  85. package/src/components/quickfilter/NSAFilterBoxDate.tsx +104 -104
  86. package/src/components/quickfilter/NSAFilterBoxDateTime.tsx +105 -105
  87. package/src/components/quickfilter/NSAFilterBoxEnum.module.css +44 -44
  88. package/src/components/quickfilter/NSAFilterBoxEnum.tsx +79 -79
  89. package/src/components/quickfilter/NSAFilterBoxNumber.tsx +136 -136
  90. package/src/components/quickfilter/NSAFilterBoxString.tsx +81 -81
  91. package/src/components/quickfilter/NSAFilterBoxTime.tsx +101 -101
  92. package/src/components/quickfilter/NSAQuickFilterBar.module.css +19 -19
  93. package/src/components/quickfilter/NSAQuickFilterBar.tsx +114 -114
  94. package/src/components/quickfilter/NSAQuickFilterDialog.module.css +74 -74
  95. package/src/components/quickfilter/NSAQuickFilterDialog.tsx +260 -260
  96. package/src/css.d.ts +13 -13
  97. package/src/formatters/SecretFormatter.tsx +24 -24
  98. package/src/index.tsx +24 -24
  99. package/src/layouts/Actions.ts +145 -145
  100. package/src/layouts/CFTUtil.ts +18 -18
  101. package/src/layouts/NSALayout.tsx +841 -841
  102. package/src/layouts/NSASectionEdit.tsx +260 -250
  103. package/src/layouts/NSASectionEditTabPage.module.css +4 -4
  104. package/src/layouts/NSASectionEditTabPage.tsx +250 -250
  105. package/src/layouts/NSASectionList.module.css +31 -31
  106. package/src/layouts/NSASectionList.tsx +149 -147
  107. package/src/layouts/NSASectionView.tsx +100 -100
  108. package/src/layouts/NSASectionViewTabMore.tsx +77 -77
  109. package/src/layouts/NSASectionViewTabPage.module.css +47 -47
  110. package/src/layouts/NSASectionViewTabPage.tsx +419 -419
  111. package/src/main.ts +46 -46
  112. package/src/pages/NSAConsentPage.module.css +26 -26
  113. package/src/pages/NSAConsentPage.tsx +120 -120
  114. package/src/pages/NSAEmailVerificationPage.tsx +30 -30
  115. package/src/pages/NSAHomePage.module.css +41 -41
  116. package/src/pages/NSAHomePage.tsx +102 -102
  117. package/src/pages/NSALoginPage.module.css +26 -26
  118. package/src/pages/NSALoginPage.tsx +87 -87
  119. package/src/pages/NSAPhoneVerificationPage.tsx +94 -94
  120. package/src/pages/NSAVerificationPage.module.css +31 -31
  121. package/src/pages/NSAVerificationPage.tsx +186 -186
  122. package/src/pages/PaymentRequired.tsx +74 -74
  123. package/tsconfig.json +43 -43
  124. package/dist/App.css +0 -32
  125. package/dist/components/quickfilter/NSAFilterBoxEnum.module.css +0 -45
  126. package/dist/components/quickfilter/NSAQuickFilterBar.module.css +0 -20
  127. package/dist/components/quickfilter/NSAQuickFilterDialog.module.css +0 -75
  128. package/dist/index.css +0 -0
@@ -21,5 +21,5 @@ export declare class NSAVerificationPage extends React.Component<NSAVerification
21
21
  private onRequest;
22
22
  private onVerify;
23
23
  componentDidMount(): void;
24
- render(): import("react/jsx-runtime").JSX.Element;
24
+ render(): React.JSX.Element;
25
25
  }
@@ -1,32 +1,32 @@
1
- .nsa_verification_container {
2
- background-color: #FFF;
3
- border: 1px solid #A1A4B0;
4
- backdrop-filter: blur(5px);
5
- border-radius: 8px;
6
- width: 100%;
7
- max-width: 594px;
8
- padding: 16px;
9
- color: #141B5C !important;
10
- display: flex;
11
- flex-direction: column;
12
- gap: 16px;
13
- align-items: center;
14
- }
15
-
16
- .nsa_verification_container p {
17
- text-align: center;
18
- }
19
-
20
- .nsa_verification_vector {
21
- width: 224px;
22
- height: 224px;
23
- }
24
-
25
- .nsa_resend_button {
26
- border: 0;
27
- outline: 0;
28
- background: none;
29
- color: #141B5C;
30
- font-size: 16px;
31
- font-weight: 500;
1
+ .nsa_verification_container {
2
+ background-color: #FFF;
3
+ border: 1px solid #A1A4B0;
4
+ backdrop-filter: blur(5px);
5
+ border-radius: 8px;
6
+ width: 100%;
7
+ max-width: 594px;
8
+ padding: 16px;
9
+ color: #141B5C !important;
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: 16px;
13
+ align-items: center;
14
+ }
15
+
16
+ .nsa_verification_container p {
17
+ text-align: center;
18
+ }
19
+
20
+ .nsa_verification_vector {
21
+ width: 224px;
22
+ height: 224px;
23
+ }
24
+
25
+ .nsa_resend_button {
26
+ border: 0;
27
+ outline: 0;
28
+ background: none;
29
+ color: #141B5C;
30
+ font-size: 16px;
31
+ font-weight: 500;
32
32
  }
package/package.json CHANGED
@@ -1,95 +1,95 @@
1
- {
2
- "name": "namirasoft-account-react",
3
- "title": "Namirasoft Account React NPM Package",
4
- "description": "Namira Software Corporation Account React NPM Package",
5
- "icon": "logo.png",
6
- "logo": "https://static.namirasoft.com/image/namirasoft/account/logo/base.png",
7
- "language": "ts",
8
- "framework": "npm",
9
- "application": "package",
10
- "private": false,
11
- "version": "1.4.428",
12
- "author": "Amir Abolhasani",
13
- "license": "MIT",
14
- "main": "./dist/main.js",
15
- "types": "./dist/main.d.ts",
16
- "scripts": {
17
- "start": "react-app-rewired start",
18
- "build": "npm run copy",
19
- "test": "react-app-rewired test",
20
- "eject": "react-app-rewired eject",
21
- "copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
22
- },
23
- "dependencies": {
24
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
25
- "@babel/plugin-transform-private-property-in-object": "^7.29.7",
26
- "@types/react": "^18.3.13",
27
- "@types/react-helmet": "^6.1.11",
28
- "bootstrap": "^5.3.8",
29
- "namirasoft-access": "^1.4.75",
30
- "namirasoft-account": "^1.4.108",
31
- "namirasoft-account-client": "^1.4.9",
32
- "namirasoft-api-link": "^1.4.22",
33
- "namirasoft-api-product": "^1.4.54",
34
- "namirasoft-core": "^1.4.117",
35
- "namirasoft-field": "^1.4.29",
36
- "namirasoft-history": "^1.4.18",
37
- "namirasoft-message": "^1.4.25",
38
- "namirasoft-payment": "^1.4.137",
39
- "namirasoft-schema": "^1.4.29",
40
- "namirasoft-secret": "^1.4.46",
41
- "namirasoft-site-map": "^1.4.49",
42
- "namirasoft-site-react": "^1.4.560",
43
- "namirasoft-workspace": "^1.4.28",
44
- "os-browserify": "^0.3.0",
45
- "path-browserify": "^1.0.1",
46
- "query-string": "^9.4.0",
47
- "react": "^18.3.1",
48
- "react-app-rewired": "^2.2.1",
49
- "react-dev-utils": "^12.0.1",
50
- "react-dom": "^18.3.1",
51
- "react-helmet": "^6.1.0",
52
- "react-router-dom": "7.9.1",
53
- "react-scripts": "5.0.1",
54
- "webpack": "^5.107.2"
55
- },
56
- "eslintConfig": {
57
- "extends": [
58
- "react-app",
59
- "react-app/jest"
60
- ]
61
- },
62
- "browserslist": {
63
- "production": [
64
- ">0.2%",
65
- "not dead",
66
- "not op_mini all"
67
- ],
68
- "development": [
69
- "last 1 chrome version",
70
- "last 1 firefox version",
71
- "last 1 safari version"
72
- ]
73
- },
74
- "ns-psc": {
75
- "skip": {
76
- "files": [
77
- "/tsconfig.json"
78
- ],
79
- "content": {
80
- "dependencies": {
81
- "unused": {
82
- "list": [
83
- "@babel/plugin-proposal-private-property-in-object",
84
- "@babel/plugin-transform-private-property-in-object",
85
- "os-browserify",
86
- "path-browserify",
87
- "react-app-rewired",
88
- "react-scripts"
89
- ]
90
- }
91
- }
92
- }
93
- }
94
- }
1
+ {
2
+ "name": "namirasoft-account-react",
3
+ "title": "Namirasoft Account React NPM Package",
4
+ "description": "Namira Software Corporation Account React NPM Package",
5
+ "icon": "logo.png",
6
+ "logo": "https://static.namirasoft.com/image/namirasoft/account/logo/base.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.4.430",
12
+ "author": "Amir Abolhasani",
13
+ "license": "MIT",
14
+ "main": "./dist/main.js",
15
+ "types": "./dist/main.d.ts",
16
+ "scripts": {
17
+ "start": "react-app-rewired start",
18
+ "build": "npm run copy",
19
+ "test": "react-app-rewired test",
20
+ "eject": "react-app-rewired eject",
21
+ "copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
22
+ },
23
+ "dependencies": {
24
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
25
+ "@babel/plugin-transform-private-property-in-object": "^7.29.7",
26
+ "@types/react": "^18.3.13",
27
+ "@types/react-helmet": "^6.1.11",
28
+ "bootstrap": "^5.3.8",
29
+ "namirasoft-access": "^1.4.75",
30
+ "namirasoft-account": "^1.4.108",
31
+ "namirasoft-account-client": "^1.4.9",
32
+ "namirasoft-api-link": "^1.4.22",
33
+ "namirasoft-api-product": "^1.4.54",
34
+ "namirasoft-core": "^1.4.117",
35
+ "namirasoft-field": "^1.4.29",
36
+ "namirasoft-history": "^1.4.18",
37
+ "namirasoft-message": "^1.4.25",
38
+ "namirasoft-payment": "^1.4.137",
39
+ "namirasoft-schema": "^1.4.29",
40
+ "namirasoft-secret": "^1.4.46",
41
+ "namirasoft-site-map": "^1.4.49",
42
+ "namirasoft-site-react": "^1.4.562",
43
+ "namirasoft-workspace": "^1.4.28",
44
+ "os-browserify": "^0.3.0",
45
+ "path-browserify": "^1.0.1",
46
+ "query-string": "^9.4.0",
47
+ "react": "^18.3.1",
48
+ "react-app-rewired": "^2.2.1",
49
+ "react-dev-utils": "^12.0.1",
50
+ "react-dom": "^18.3.1",
51
+ "react-helmet": "^6.1.0",
52
+ "react-router-dom": "7.9.1",
53
+ "react-scripts": "5.0.1",
54
+ "webpack": "^5.107.2"
55
+ },
56
+ "eslintConfig": {
57
+ "extends": [
58
+ "react-app",
59
+ "react-app/jest"
60
+ ]
61
+ },
62
+ "browserslist": {
63
+ "production": [
64
+ ">0.2%",
65
+ "not dead",
66
+ "not op_mini all"
67
+ ],
68
+ "development": [
69
+ "last 1 chrome version",
70
+ "last 1 firefox version",
71
+ "last 1 safari version"
72
+ ]
73
+ },
74
+ "ns-psc": {
75
+ "skip": {
76
+ "files": [
77
+ "/tsconfig.json"
78
+ ],
79
+ "content": {
80
+ "dependencies": {
81
+ "unused": {
82
+ "list": [
83
+ "@babel/plugin-proposal-private-property-in-object",
84
+ "@babel/plugin-transform-private-property-in-object",
85
+ "os-browserify",
86
+ "path-browserify",
87
+ "react-app-rewired",
88
+ "react-scripts"
89
+ ]
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
95
  }
package/public/index.html CHANGED
@@ -1,22 +1,22 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8" />
6
- <!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <meta name="theme-color" content="#000000" />
9
- <meta name="description" content="Web site created using create-react-app" />
10
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
11
- integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
12
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
- <!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
14
- <title>React App</title>
15
- </head>
16
-
17
- <body>
18
- <noscript>You need to enable JavaScript to run this app.</noscript>
19
- <div id="root"></div>
20
- </body>
21
-
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <meta name="theme-color" content="#000000" />
9
+ <meta name="description" content="Web site created using create-react-app" />
10
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
11
+ integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
12
+ <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
+ <!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
14
+ <title>React App</title>
15
+ </head>
16
+
17
+ <body>
18
+ <noscript>You need to enable JavaScript to run this app.</noscript>
19
+ <div id="root"></div>
20
+ </body>
21
+
22
22
  </html>
package/src/App.css CHANGED
@@ -1,32 +1,32 @@
1
- @font-face {
2
- font-family: inter;
3
- src: url("../src/assets/fonts/Inter-Regular.ttf");
4
- }
5
-
6
- body {
7
- margin: 0;
8
- font-family: inter;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
-
13
-
14
- .btn-close {
15
- background: url(https://static.namirasoft.com/image/concept/close/blue.svg) center/1em auto no-repeat !important;
16
- opacity: 1 !important;
17
- }
18
-
19
- .nsa_font_16_bold {
20
- font-size: 16px;
21
- font-weight: 600;
22
- }
23
-
24
- .nsa_font_13_normal {
25
- font-size: 13px;
26
- font-weight: 300;
27
- }
28
-
29
- .nsa_font_12_normal {
30
- font-size: 12px;
31
- font-weight: 300;
1
+ @font-face {
2
+ font-family: inter;
3
+ src: url("../src/assets/fonts/Inter-Regular.ttf");
4
+ }
5
+
6
+ body {
7
+ margin: 0;
8
+ font-family: inter;
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+ }
12
+
13
+
14
+ .btn-close {
15
+ background: url(https://static.namirasoft.com/image/concept/close/blue.svg) center/1em auto no-repeat !important;
16
+ opacity: 1 !important;
17
+ }
18
+
19
+ .nsa_font_16_bold {
20
+ font-size: 16px;
21
+ font-weight: 600;
22
+ }
23
+
24
+ .nsa_font_13_normal {
25
+ font-size: 13px;
26
+ font-weight: 300;
27
+ }
28
+
29
+ .nsa_font_12_normal {
30
+ font-size: 12px;
31
+ font-weight: 300;
32
32
  }
package/src/App.tsx CHANGED
@@ -1,20 +1,20 @@
1
- import { NSALayout } from "./layouts/NSALayout";
2
- import { NSARouterMakerProps } from "./NSARouterMakerProps";
3
- import { NSALoginPage } from "./pages/NSALoginPage";
4
-
5
- export interface AppProps extends NSARouterMakerProps { }
6
-
7
- export function App(props: AppProps)
8
- {
9
- if (!props.account)
10
- return <NSALoginPage product_id={props.product_id} />
11
-
12
- return (
13
- <NSALayout
14
- {...props}
15
- header={{ mega_menu: true }}
16
- >
17
- <></>
18
- </NSALayout>
19
- );
1
+ import { NSALayout } from "./layouts/NSALayout";
2
+ import { NSARouterMakerProps } from "./NSARouterMakerProps";
3
+ import { NSALoginPage } from "./pages/NSALoginPage";
4
+
5
+ export interface AppProps extends NSARouterMakerProps { }
6
+
7
+ export function App(props: AppProps)
8
+ {
9
+ if (!props.account)
10
+ return <NSALoginPage product_id={props.product_id} />
11
+
12
+ return (
13
+ <NSALayout
14
+ {...props}
15
+ header={{ mega_menu: true }}
16
+ >
17
+ <></>
18
+ </NSALayout>
19
+ );
20
20
  };
package/src/CTFRow.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { EntityCategoryInputRow, EntityFieldInputRow, EntityTagInputRow } from "namirasoft-field";
2
-
3
- export interface CTFRow
4
- {
5
- categories: EntityCategoryInputRow[];
6
- fields: EntityFieldInputRow[];
7
- tags: EntityTagInputRow[];
1
+ import { EntityCategoryInputRow, EntityFieldInputRow, EntityTagInputRow } from "namirasoft-field";
2
+
3
+ export interface CTFRow
4
+ {
5
+ categories: EntityCategoryInputRow[];
6
+ fields: EntityFieldInputRow[];
7
+ tags: EntityTagInputRow[];
8
8
  }
@@ -1,34 +1,34 @@
1
- import { BaseMetaTable, FilterItem, SortItem } from "namirasoft-core";
2
- import { NSMenuActionProps, TableColumnInfo } from "namirasoft-site-react";
3
- import { QuickFilterDef } from "./NSAFilterOperators";
4
-
5
- export interface IEntityInfo<EntityType extends { id: string }, EntityTypeInput = EntityType>
6
- {
7
- product_id: string;
8
- name: string;
9
- tables: { table: BaseMetaTable, required: boolean }[];
10
- server: {
11
- value_list: (table: string, column: string, search: string | null, field_id: string | null, limit: number | null) => Promise<string[]>;
12
- get: null | ((id: string) => Promise<EntityType>);
13
- list: null | ((filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null)) => Promise<{
14
- rows: EntityType[];
15
- count: number;
16
- }>);
17
- create: null | ((entity: EntityTypeInput) => Promise<EntityType>);
18
- update: null | ((id: string, entity: EntityTypeInput) => Promise<EntityType>);
19
- delete: null | ((id: string) => Promise<void>);
20
- };
21
- client: {
22
- getListURL: null | (() => string);
23
- getNewURL: null | (() => string);
24
- getCopyURL: null | ((id: string) => string);
25
- getEditURL: null | ((id: string) => string);
26
- getViewURL: null | ((id: string) => string);
27
- getColumns: () => TableColumnInfo[];
28
- onCreate?: (entity: EntityTypeInput) => Promise<EntityType | null>;
29
- onUpdate?: (id: string, entity: EntityTypeInput) => Promise<EntityType | null>;
30
- onSuccess?: (entity: EntityType) => boolean;
31
- getMenus?: (getIDs: () => string[], getRows: (() => EntityType[])) => { [group: string]: NSMenuActionProps[]; }
32
- getQuickFilters?: () => QuickFilterDef<EntityType>[]
33
- }
1
+ import { BaseMetaTable, FilterItem, SortItem } from "namirasoft-core";
2
+ import { NSMenuActionProps, TableColumnInfo } from "namirasoft-site-react";
3
+ import { QuickFilterDef } from "./NSAFilterOperators";
4
+
5
+ export interface IEntityInfo<EntityType extends { id: string }, EntityTypeInput = EntityType>
6
+ {
7
+ product_id: string;
8
+ name: string;
9
+ tables: { table: BaseMetaTable, required: boolean }[];
10
+ server: {
11
+ value_list: (table: string, column: string, search: string | null, field_id: string | null, limit: number | null) => Promise<string[]>;
12
+ get: null | ((id: string) => Promise<EntityType>);
13
+ list: null | ((filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], all_workspaces: (boolean | null)) => Promise<{
14
+ rows: EntityType[];
15
+ count: number;
16
+ }>);
17
+ create: null | ((entity: EntityTypeInput) => Promise<EntityType>);
18
+ update: null | ((id: string, entity: EntityTypeInput) => Promise<EntityType>);
19
+ delete: null | ((id: string) => Promise<void>);
20
+ };
21
+ client: {
22
+ getListURL: null | (() => string);
23
+ getNewURL: null | (() => string);
24
+ getCopyURL: null | ((id: string) => string);
25
+ getEditURL: null | ((id: string) => string);
26
+ getViewURL: null | ((id: string) => string);
27
+ getColumns: () => TableColumnInfo[];
28
+ onCreate?: (entity: EntityTypeInput) => Promise<EntityType | null>;
29
+ onUpdate?: (id: string, entity: EntityTypeInput) => Promise<EntityType | null>;
30
+ onSuccess?: (entity: EntityType) => boolean;
31
+ getMenus?: (getIDs: () => string[], getRows: (() => EntityType[])) => { [group: string]: NSMenuActionProps[]; }
32
+ getQuickFilters?: () => QuickFilterDef<EntityType>[]
33
+ }
34
34
  }