namirasoft-account-react 1.5.26 → 1.5.28

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 (149) hide show
  1. package/.env.template +15 -15
  2. package/SKILL.md +514 -514
  3. package/config-overrides.js +72 -72
  4. package/dist/App.d.ts +1 -1
  5. package/dist/NSACacheService.d.ts +1 -1
  6. package/dist/NSACacheService.js +5 -2
  7. package/dist/NSACacheService.js.map +1 -1
  8. package/dist/NSAFilterOperators.d.ts +6 -4
  9. package/dist/NSAFilterOperators.js +4 -4
  10. package/dist/NSAFilterOperators.js.map +1 -1
  11. package/dist/Router.d.ts +1 -1
  12. package/dist/UseParams.d.ts +1 -1
  13. package/dist/components/NSAAccessListDialog.d.ts +2 -2
  14. package/dist/components/NSAAccessListDialog.module.css +71 -71
  15. package/dist/components/NSABoxSecret.d.ts +1 -1
  16. package/dist/components/NSABoxSecret.module.css +23 -23
  17. package/dist/components/NSAMasterMenu.d.ts +1 -1
  18. package/dist/components/NSAMasterMenu.module.css +250 -250
  19. package/dist/components/NSAMasterMenuItem.d.ts +1 -1
  20. package/dist/components/NSAMessageListDialog.d.ts +1 -1
  21. package/dist/components/NSAMessageListDialog.module.css +99 -99
  22. package/dist/components/NSANavigationGuard.d.ts +1 -1
  23. package/dist/components/NSAProductListDialog.d.ts +1 -1
  24. package/dist/components/NSAProductListDialog.module.css +44 -44
  25. package/dist/components/NSATable.js +4 -4
  26. package/dist/components/NSATable.js.map +1 -1
  27. package/dist/components/NSATaskBar.d.ts +1 -1
  28. package/dist/components/NSATaskBar.module.css +57 -57
  29. package/dist/components/NSAUserDialog.d.ts +1 -1
  30. package/dist/components/NSAUserDialog.module.css +67 -67
  31. package/dist/components/NSAWorkspaceListDialog.d.ts +1 -1
  32. package/dist/components/NSAWorkspaceListDialog.module.css +41 -41
  33. package/dist/components/NSFBoxCategoryScope.d.ts +1 -1
  34. package/dist/components/NSFBoxField.d.ts +1 -1
  35. package/dist/components/NSFBoxSlot.d.ts +1 -1
  36. package/dist/components/NSFBoxWrapper.d.ts +1 -1
  37. package/dist/components/NSLabelSecret.d.ts +1 -1
  38. package/dist/components/quickfilter/NSAFilterBoxBase.d.ts +2 -0
  39. package/dist/components/quickfilter/NSAFilterBoxBase.js +20 -2
  40. package/dist/components/quickfilter/NSAFilterBoxBase.js.map +1 -1
  41. package/dist/components/quickfilter/NSAFilterBoxBoolean.js +15 -9
  42. package/dist/components/quickfilter/NSAFilterBoxBoolean.js.map +1 -1
  43. package/dist/components/quickfilter/NSAFilterBoxEnum.d.ts +6 -1
  44. package/dist/components/quickfilter/NSAFilterBoxEnum.js +26 -9
  45. package/dist/components/quickfilter/NSAFilterBoxEnum.js.map +1 -1
  46. package/dist/components/quickfilter/NSAFilterBoxEnum.module.css +51 -44
  47. package/dist/components/quickfilter/NSAQuickFilterBar.d.ts +1 -1
  48. package/dist/components/quickfilter/NSAQuickFilterBar.module.css +20 -19
  49. package/dist/components/quickfilter/NSAQuickFilterDialog.d.ts +6 -1
  50. package/dist/components/quickfilter/NSAQuickFilterDialog.js +24 -6
  51. package/dist/components/quickfilter/NSAQuickFilterDialog.js.map +1 -1
  52. package/dist/components/quickfilter/NSAQuickFilterDialog.module.css +74 -74
  53. package/dist/layouts/NSALayout.d.ts +1 -1
  54. package/dist/layouts/NSASectionEdit.d.ts +1 -1
  55. package/dist/layouts/NSASectionEditTabPage.d.ts +1 -1
  56. package/dist/layouts/NSASectionEditTabPage.module.css +4 -4
  57. package/dist/layouts/NSASectionList.d.ts +1 -1
  58. package/dist/layouts/NSASectionList.module.css +31 -31
  59. package/dist/layouts/NSASectionView.d.ts +1 -1
  60. package/dist/layouts/NSASectionViewTabMore.d.ts +1 -1
  61. package/dist/layouts/NSASectionViewTabPage.d.ts +1 -1
  62. package/dist/layouts/NSASectionViewTabPage.module.css +47 -47
  63. package/dist/pages/NSAConsentPage.module.css +26 -26
  64. package/dist/pages/NSAEmailVerificationPage.d.ts +1 -1
  65. package/dist/pages/NSAHomePage.d.ts +1 -1
  66. package/dist/pages/NSAHomePage.module.css +41 -41
  67. package/dist/pages/NSALoginPage.d.ts +1 -1
  68. package/dist/pages/NSALoginPage.module.css +26 -26
  69. package/dist/pages/NSAPhoneVerificationPage.d.ts +1 -1
  70. package/dist/pages/NSAVerificationPage.d.ts +1 -1
  71. package/dist/pages/NSAVerificationPage.module.css +31 -31
  72. package/package.json +95 -95
  73. package/public/index.html +21 -21
  74. package/src/App.tsx +19 -19
  75. package/src/CTFRow.ts +7 -7
  76. package/src/IEntityInfo.ts +33 -33
  77. package/src/NSACacheService.ts +123 -120
  78. package/src/NSAFilterOperators.ts +94 -92
  79. package/src/NSARouterMaker.tsx +140 -140
  80. package/src/NSARouterMakerProps.ts +23 -23
  81. package/src/NSARouterMakerResult.ts +24 -24
  82. package/src/NSFRouterMaker.tsx +35 -35
  83. package/src/Router.tsx +48 -48
  84. package/src/UseParams.tsx +17 -17
  85. package/src/components/NSAAccessListDialog.module.css +71 -71
  86. package/src/components/NSAAccessListDialog.tsx +178 -178
  87. package/src/components/NSABoxSecret.module.css +23 -23
  88. package/src/components/NSABoxSecret.tsx +264 -264
  89. package/src/components/NSAMasterMenu.module.css +250 -250
  90. package/src/components/NSAMasterMenu.tsx +169 -169
  91. package/src/components/NSAMasterMenuItem.tsx +250 -250
  92. package/src/components/NSAMessageListDialog.module.css +99 -99
  93. package/src/components/NSAMessageListDialog.tsx +144 -144
  94. package/src/components/NSANavigationGuard.tsx +79 -79
  95. package/src/components/NSAProductListDialog.module.css +44 -44
  96. package/src/components/NSAProductListDialog.tsx +88 -88
  97. package/src/components/NSATable.tsx +494 -494
  98. package/src/components/NSATaskBar.module.css +57 -57
  99. package/src/components/NSATaskBar.tsx +193 -193
  100. package/src/components/NSAUserDialog.module.css +67 -67
  101. package/src/components/NSAUserDialog.tsx +122 -122
  102. package/src/components/NSAWorkspaceListDialog.module.css +41 -41
  103. package/src/components/NSAWorkspaceListDialog.tsx +147 -147
  104. package/src/components/NSFBoxCategoryScope.tsx +52 -52
  105. package/src/components/NSFBoxField.tsx +37 -37
  106. package/src/components/NSFBoxSlot.tsx +71 -71
  107. package/src/components/NSFBoxWrapper.tsx +69 -69
  108. package/src/components/NSLabelSecret.tsx +37 -37
  109. package/src/components/quickfilter/NSAFilterBoxBase.tsx +110 -89
  110. package/src/components/quickfilter/NSAFilterBoxBoolean.tsx +72 -66
  111. package/src/components/quickfilter/NSAFilterBoxDate.tsx +110 -110
  112. package/src/components/quickfilter/NSAFilterBoxDateTime.tsx +110 -110
  113. package/src/components/quickfilter/NSAFilterBoxEnum.module.css +51 -44
  114. package/src/components/quickfilter/NSAFilterBoxEnum.tsx +103 -79
  115. package/src/components/quickfilter/NSAFilterBoxNumber.tsx +145 -145
  116. package/src/components/quickfilter/NSAFilterBoxString.tsx +83 -83
  117. package/src/components/quickfilter/NSAFilterBoxTime.tsx +106 -106
  118. package/src/components/quickfilter/NSAQuickFilterBar.module.css +20 -19
  119. package/src/components/quickfilter/NSAQuickFilterBar.tsx +142 -142
  120. package/src/components/quickfilter/NSAQuickFilterDialog.module.css +74 -74
  121. package/src/components/quickfilter/NSAQuickFilterDialog.tsx +297 -260
  122. package/src/css.d.ts +13 -13
  123. package/src/formatters/SecretFormatter.tsx +24 -24
  124. package/src/index.tsx +26 -26
  125. package/src/layouts/Actions.ts +146 -146
  126. package/src/layouts/CFTUtil.ts +18 -18
  127. package/src/layouts/NSALayout.tsx +744 -744
  128. package/src/layouts/NSASectionEdit.tsx +281 -281
  129. package/src/layouts/NSASectionEditTabPage.module.css +4 -4
  130. package/src/layouts/NSASectionEditTabPage.tsx +256 -256
  131. package/src/layouts/NSASectionList.module.css +31 -31
  132. package/src/layouts/NSASectionList.tsx +165 -165
  133. package/src/layouts/NSASectionView.tsx +98 -98
  134. package/src/layouts/NSASectionViewTabMore.tsx +78 -78
  135. package/src/layouts/NSASectionViewTabPage.module.css +47 -47
  136. package/src/layouts/NSASectionViewTabPage.tsx +400 -400
  137. package/src/main.ts +52 -52
  138. package/src/pages/NSAConsentPage.module.css +26 -26
  139. package/src/pages/NSAConsentPage.tsx +120 -120
  140. package/src/pages/NSAEmailVerificationPage.tsx +30 -30
  141. package/src/pages/NSAHomePage.module.css +41 -41
  142. package/src/pages/NSAHomePage.tsx +113 -113
  143. package/src/pages/NSALoginPage.module.css +26 -26
  144. package/src/pages/NSALoginPage.tsx +87 -87
  145. package/src/pages/NSAPhoneVerificationPage.tsx +94 -94
  146. package/src/pages/NSAVerificationPage.module.css +31 -31
  147. package/src/pages/NSAVerificationPage.tsx +185 -185
  148. package/src/pages/PaymentRequired.tsx +80 -80
  149. package/tsconfig.json +43 -43
@@ -1,42 +1,42 @@
1
- .nsa_home_container {
2
- display: flex;
3
- flex-direction: column;
4
- width: 100%;
5
- justify-content: center;
6
- align-items: center;
7
- text-align: center;
8
- color: #141B5C;
9
- }
10
-
11
- .nsa_home_container h2 {
12
- color: #141B5C;
13
- font-size: 48px;
14
- font-weight: 600;
15
- text-align: center;
16
- }
17
-
18
- .nsa_home_container p {
19
- color: #141B5C;
20
- font-size: 16px;
21
- max-width: 960px;
22
- text-align: center;
23
- margin-bottom: 0;
24
- }
25
-
26
- .nsa_home_search_wrapper {
27
- height: 3.5rem;
28
- }
29
-
30
- .nsa_home_search_box {
31
- min-height: 100%;
32
- border: none !important;
33
- border-radius: 2rem;
34
- padding: 0.5rem 1rem 0.5rem 3rem;
35
- background: url("https://static.namirasoft.com/image/concept/search/blue.svg") left 16px center / 24px no-repeat scroll white !important;
36
- box-shadow: 0 0 0 4px rgba(64, 150, 255, 0.08);
37
- }
38
-
39
- .nsa_home_search_box:focus-visible {
40
- outline: none !important;
41
- box-shadow: 0 0 0 4px rgb(64, 150, 255, 0.24);
1
+ .nsa_home_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ justify-content: center;
6
+ align-items: center;
7
+ text-align: center;
8
+ color: #141B5C;
9
+ }
10
+
11
+ .nsa_home_container h2 {
12
+ color: #141B5C;
13
+ font-size: 48px;
14
+ font-weight: 600;
15
+ text-align: center;
16
+ }
17
+
18
+ .nsa_home_container p {
19
+ color: #141B5C;
20
+ font-size: 16px;
21
+ max-width: 960px;
22
+ text-align: center;
23
+ margin-bottom: 0;
24
+ }
25
+
26
+ .nsa_home_search_wrapper {
27
+ height: 3.5rem;
28
+ }
29
+
30
+ .nsa_home_search_box {
31
+ min-height: 100%;
32
+ border: none !important;
33
+ border-radius: 2rem;
34
+ padding: 0.5rem 1rem 0.5rem 3rem;
35
+ background: url("https://static.namirasoft.com/image/concept/search/blue.svg") left 16px center / 24px no-repeat scroll white !important;
36
+ box-shadow: 0 0 0 4px rgba(64, 150, 255, 0.08);
37
+ }
38
+
39
+ .nsa_home_search_box:focus-visible {
40
+ outline: none !important;
41
+ box-shadow: 0 0 0 4px rgb(64, 150, 255, 0.24);
42
42
  }
@@ -12,4 +12,4 @@ export interface NSALoginPageProps {
12
12
  export interface NSALoginPageState {
13
13
  product: ProductFullRow | null;
14
14
  }
15
- export declare function NSALoginPage(props: NSALoginPageProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function NSALoginPage(props: NSALoginPageProps): import("react").JSX.Element;
@@ -1,27 +1,27 @@
1
- .nsa_login_page_container {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- justify-content: center;
6
- min-height: 100vh;
7
- }
8
-
9
- .nsa_login_page_logo {
10
- text-align: center;
11
- }
12
-
13
- .nsa_login_page_title {
14
- font-size: 32px;
15
- font-weight: 700;
16
- text-align: center;
17
- }
18
-
19
- .nsa_login_page_button {
20
- text-align: center;
21
- }
22
-
23
- .nsa_login_page_version {
24
- position: fixed;
25
- left: 16px;
26
- bottom: 16px;
1
+ .nsa_login_page_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ min-height: 100vh;
7
+ }
8
+
9
+ .nsa_login_page_logo {
10
+ text-align: center;
11
+ }
12
+
13
+ .nsa_login_page_title {
14
+ font-size: 32px;
15
+ font-weight: 700;
16
+ text-align: center;
17
+ }
18
+
19
+ .nsa_login_page_button {
20
+ text-align: center;
21
+ }
22
+
23
+ .nsa_login_page_version {
24
+ position: fixed;
25
+ left: 16px;
26
+ bottom: 16px;
27
27
  }
@@ -2,5 +2,5 @@ import { NSARouterMakerResult } from "../NSARouterMakerResult";
2
2
  interface NSAPhoneVerificationPageProps extends NSARouterMakerResult {
3
3
  callback: string;
4
4
  }
5
- export declare function NSAPhoneVerificationPage(props: NSAPhoneVerificationPageProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function NSAPhoneVerificationPage(props: NSAPhoneVerificationPageProps): import("react").JSX.Element;
6
6
  export {};
@@ -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,96 +1,96 @@
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.5.26",
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
- "copyfiles": "^2.4.1",
30
- "namirasoft-access": "^1.5.1",
31
- "namirasoft-account": "^1.5.0",
32
- "namirasoft-account-client": "^1.5.0",
33
- "namirasoft-api-link": "^1.5.0",
34
- "namirasoft-api-product": "^1.5.0",
35
- "namirasoft-core": "^1.5.3",
36
- "namirasoft-field": "^1.5.8",
37
- "namirasoft-history": "^1.5.1",
38
- "namirasoft-message": "^1.5.1",
39
- "namirasoft-payment": "^1.5.0",
40
- "namirasoft-schema": "^1.5.0",
41
- "namirasoft-secret": "^1.5.1",
42
- "namirasoft-site-map": "^1.5.0",
43
- "namirasoft-site-react": "^1.5.15",
44
- "namirasoft-workspace": "^1.5.0",
45
- "os-browserify": "^0.3.0",
46
- "path-browserify": "^1.0.1",
47
- "query-string": "^9.4.1",
48
- "react": "^18.3.1",
49
- "react-app-rewired": "^2.2.1",
50
- "react-dev-utils": "^12.0.1",
51
- "react-dom": "^18.3.1",
52
- "react-helmet": "^6.1.0",
53
- "react-router-dom": "7.9.1",
54
- "react-scripts": "5.0.1",
55
- "webpack": "^5.108.4"
56
- },
57
- "eslintConfig": {
58
- "extends": [
59
- "react-app",
60
- "react-app/jest"
61
- ]
62
- },
63
- "browserslist": {
64
- "production": [
65
- ">0.2%",
66
- "not dead",
67
- "not op_mini all"
68
- ],
69
- "development": [
70
- "last 1 chrome version",
71
- "last 1 firefox version",
72
- "last 1 safari version"
73
- ]
74
- },
75
- "ns-psc": {
76
- "skip": {
77
- "files": [
78
- "/tsconfig.json"
79
- ],
80
- "content": {
81
- "dependencies": {
82
- "unused": {
83
- "list": [
84
- "@babel/plugin-proposal-private-property-in-object",
85
- "@babel/plugin-transform-private-property-in-object",
86
- "os-browserify",
87
- "path-browserify",
88
- "react-app-rewired",
89
- "react-scripts"
90
- ]
91
- }
92
- }
93
- }
94
- }
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.5.28",
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
+ "copyfiles": "^2.4.1",
30
+ "namirasoft-access": "^1.5.1",
31
+ "namirasoft-account": "^1.5.0",
32
+ "namirasoft-account-client": "^1.5.0",
33
+ "namirasoft-api-link": "^1.5.0",
34
+ "namirasoft-api-product": "^1.5.2",
35
+ "namirasoft-core": "^1.5.4",
36
+ "namirasoft-field": "^1.5.8",
37
+ "namirasoft-history": "^1.5.1",
38
+ "namirasoft-message": "^1.5.1",
39
+ "namirasoft-payment": "^1.5.0",
40
+ "namirasoft-schema": "^1.5.0",
41
+ "namirasoft-secret": "^1.5.1",
42
+ "namirasoft-site-map": "^1.5.1",
43
+ "namirasoft-site-react": "^1.5.21",
44
+ "namirasoft-workspace": "^1.5.0",
45
+ "os-browserify": "^0.3.0",
46
+ "path-browserify": "^1.0.1",
47
+ "query-string": "^9.4.1",
48
+ "react": "^18.3.1",
49
+ "react-app-rewired": "^2.2.1",
50
+ "react-dev-utils": "^12.0.1",
51
+ "react-dom": "^18.3.1",
52
+ "react-helmet": "^6.1.0",
53
+ "react-router-dom": "7.9.1",
54
+ "react-scripts": "5.0.1",
55
+ "webpack": "^5.108.4"
56
+ },
57
+ "eslintConfig": {
58
+ "extends": [
59
+ "react-app",
60
+ "react-app/jest"
61
+ ]
62
+ },
63
+ "browserslist": {
64
+ "production": [
65
+ ">0.2%",
66
+ "not dead",
67
+ "not op_mini all"
68
+ ],
69
+ "development": [
70
+ "last 1 chrome version",
71
+ "last 1 firefox version",
72
+ "last 1 safari version"
73
+ ]
74
+ },
75
+ "ns-psc": {
76
+ "skip": {
77
+ "files": [
78
+ "/tsconfig.json"
79
+ ],
80
+ "content": {
81
+ "dependencies": {
82
+ "unused": {
83
+ "list": [
84
+ "@babel/plugin-proposal-private-property-in-object",
85
+ "@babel/plugin-transform-private-property-in-object",
86
+ "os-browserify",
87
+ "path-browserify",
88
+ "react-app-rewired",
89
+ "react-scripts"
90
+ ]
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
96
  }
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.tsx CHANGED
@@ -1,20 +1,20 @@
1
- import { NSALayout } from "./layouts/NSALayout";
2
- import { NSARouterMakerResult } from "./NSARouterMakerResult";
3
- import { NSALoginPage } from "./pages/NSALoginPage";
4
-
5
- export interface AppProps extends NSARouterMakerResult { }
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 { NSARouterMakerResult } from "./NSARouterMakerResult";
3
+ import { NSALoginPage } from "./pages/NSALoginPage";
4
+
5
+ export interface AppProps extends NSARouterMakerResult { }
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
  }