namirasoft-account-react 1.3.51 → 1.3.53
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/config-overrides.js +72 -72
- package/dist/IEntityInfo.d.ts +1 -0
- package/dist/Info.d.ts +1 -1
- package/dist/Info.js +1 -1
- package/dist/Info.js.map +1 -1
- package/dist/components/NSAMessageDialog.module.css +62 -62
- package/dist/layouts/NSALayout.d.ts +1 -1
- package/dist/layouts/NSALayout.js +26 -19
- package/dist/layouts/NSALayout.js.map +1 -1
- package/dist/layouts/NSASectionEdit.d.ts +12 -2
- package/dist/layouts/NSASectionEdit.js +9 -5
- package/dist/layouts/NSASectionEdit.js.map +1 -1
- package/dist/main.d.ts +8 -6
- package/dist/main.js +8 -6
- package/dist/main.js.map +1 -1
- package/dist/pages/NSALoginPage.module.css +19 -19
- package/package.json +64 -64
- package/public/index.html +21 -21
- package/src/App.css +42 -42
- package/src/App.tsx +26 -26
- package/src/IEntityInfo.ts +16 -15
- package/src/INSARouterMaker.ts +8 -8
- package/src/INSARouterProps.ts +17 -17
- package/src/INSARouterState.ts +5 -5
- package/src/Info.ts +20 -20
- package/src/NSARouterMaker.tsx +138 -138
- package/src/components/NSADeleteModal.tsx +24 -24
- package/src/components/NSAMessageDialog.module.css +62 -62
- package/src/components/NSAMessageDialog.tsx +59 -59
- package/src/index.tsx +7 -7
- package/src/layouts/Actions.ts +83 -83
- package/src/layouts/NSALayout.tsx +134 -127
- package/src/layouts/NSASectionEdit.tsx +116 -102
- package/src/layouts/NSASectionList.tsx +17 -17
- package/src/layouts/NSASectionView.tsx +16 -16
- package/src/main.ts +17 -12
- package/src/pages/NSALoginPage.module.css +19 -19
- package/src/pages/NSALoginPage.tsx +37 -37
- package/tsconfig.json +43 -43
- package/dist/App.css +0 -43
- package/dist/IAccountProps.d.ts +0 -22
- package/dist/IAccountProps.js +0 -3
- package/dist/IAccountProps.js.map +0 -10
- package/dist/IRouterMaker.d.ts +0 -8
- package/dist/IRouterMaker.js +0 -3
- package/dist/IRouterMaker.js.map +0 -1
- package/dist/IRouterState.d.ts +0 -5
- package/dist/IRouterState.js +0 -3
- package/dist/IRouterState.js.map +0 -1
- package/dist/IStorageCookie.d.ts +0 -10
- package/dist/IStorageCookie.js +0 -27
- package/dist/IStorageCookie.js.map +0 -1
- package/dist/Messenger.d.ts +0 -16
- package/dist/Messenger.js +0 -78
- package/dist/Messenger.js.map +0 -1
- package/dist/Notification.d.ts +0 -6
- package/dist/Notification.js +0 -3
- package/dist/Notification.js.map +0 -1
- package/dist/NotificationType.d.ts +0 -6
- package/dist/NotificationType.js +0 -11
- package/dist/NotificationType.js.map +0 -1
- package/dist/RouterMaker.d.ts +0 -25
- package/dist/RouterMaker.js +0 -125
- package/dist/RouterMaker.js.map +0 -1
- package/dist/RouterMaker.jsx +0 -118
- package/dist/RouterMaker.jsx.map +0 -1
- package/dist/components/NSALayoutAction.d.ts +0 -17
- package/dist/components/NSALayoutAction.js +0 -6
- package/dist/components/NSALayoutAction.js.map +0 -1
- package/dist/components/NSALayoutAction.module.css +0 -0
- package/dist/index.css +0 -0
- package/dist/layouts/NSALayoutList.d.ts +0 -17
- package/dist/layouts/NSALayoutList.js +0 -19
- package/dist/layouts/NSALayoutList.js.map +0 -1
- package/dist/layouts/NSASectionNew.d.ts +0 -9
- package/dist/layouts/NSASectionNew.js +0 -5
- package/dist/layouts/NSASectionNew.js.map +0 -1
- package/src/components/NSALayoutAction.module.css +0 -0
package/config-overrides.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
|
|
4
|
-
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
|
5
|
-
|
|
6
|
-
module.exports = function config_overrides(config, webpackEnv)
|
|
7
|
-
{
|
|
8
|
-
console.log('overriding webpack config...');
|
|
9
|
-
const isEnvDevelopment = webpackEnv === 'development';
|
|
10
|
-
const isEnvProduction = webpackEnv === 'production';
|
|
11
|
-
const loaders = config.module.rules[1].oneOf;
|
|
12
|
-
|
|
13
|
-
loaders.splice(loaders.length - 1, 0, {
|
|
14
|
-
test: /\.(js|mjs|cjs)$/,
|
|
15
|
-
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
16
|
-
loader: require.resolve('babel-loader'),
|
|
17
|
-
options: {
|
|
18
|
-
babelrc: false,
|
|
19
|
-
configFile: false,
|
|
20
|
-
compact: false,
|
|
21
|
-
presets: [
|
|
22
|
-
[
|
|
23
|
-
require.resolve('babel-preset-react-app/dependencies'),
|
|
24
|
-
{ helpers: true },
|
|
25
|
-
],
|
|
26
|
-
],
|
|
27
|
-
cacheDirectory: true,
|
|
28
|
-
// See #6846 for context on why cacheCompression is disabled
|
|
29
|
-
cacheCompression: false,
|
|
30
|
-
// @remove-on-eject-begin
|
|
31
|
-
cacheIdentifier: getCacheIdentifier(
|
|
32
|
-
isEnvProduction
|
|
33
|
-
? 'production'
|
|
34
|
-
: isEnvDevelopment && 'development',
|
|
35
|
-
[
|
|
36
|
-
'babel-plugin-named-asset-import',
|
|
37
|
-
'babel-preset-react-app',
|
|
38
|
-
'react-dev-utils',
|
|
39
|
-
'react-scripts',
|
|
40
|
-
]
|
|
41
|
-
),
|
|
42
|
-
// @remove-on-eject-end
|
|
43
|
-
// Babel sourcemaps are needed for debugging into node_modules
|
|
44
|
-
// code. Without the options below, debuggers like VSCode
|
|
45
|
-
// show incorrect code and set breakpoints on the wrong lines.
|
|
46
|
-
sourceMaps: shouldUseSourceMap,
|
|
47
|
-
inputSourceMap: shouldUseSourceMap,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
config.resolve.fallback = {
|
|
52
|
-
"fs": false,
|
|
53
|
-
"tls": false,
|
|
54
|
-
"net": false,
|
|
55
|
-
"https": false,
|
|
56
|
-
// "http": require.resolve("stream-http"),
|
|
57
|
-
// "zlib": require.resolve("browserify-zlib"),
|
|
58
|
-
"path": require.resolve("path-browserify"),
|
|
59
|
-
// "stream": require.resolve("stream-browserify"),
|
|
60
|
-
// "util": require.resolve("util/"),
|
|
61
|
-
// "crypto": require.resolve("crypto-browserify")
|
|
62
|
-
"child_process": false,
|
|
63
|
-
"os": false,
|
|
64
|
-
"crypto": false
|
|
65
|
-
}
|
|
66
|
-
config.plugins = (config.plugins || []).concat([
|
|
67
|
-
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
|
|
68
|
-
{
|
|
69
|
-
resource.request = resource.request.replace(/^node:/, "");
|
|
70
|
-
})
|
|
71
|
-
]);
|
|
72
|
-
return config;
|
|
1
|
+
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
|
|
2
|
+
const webpack = require('webpack');
|
|
3
|
+
|
|
4
|
+
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
|
|
5
|
+
|
|
6
|
+
module.exports = function config_overrides(config, webpackEnv)
|
|
7
|
+
{
|
|
8
|
+
console.log('overriding webpack config...');
|
|
9
|
+
const isEnvDevelopment = webpackEnv === 'development';
|
|
10
|
+
const isEnvProduction = webpackEnv === 'production';
|
|
11
|
+
const loaders = config.module.rules[1].oneOf;
|
|
12
|
+
|
|
13
|
+
loaders.splice(loaders.length - 1, 0, {
|
|
14
|
+
test: /\.(js|mjs|cjs)$/,
|
|
15
|
+
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
16
|
+
loader: require.resolve('babel-loader'),
|
|
17
|
+
options: {
|
|
18
|
+
babelrc: false,
|
|
19
|
+
configFile: false,
|
|
20
|
+
compact: false,
|
|
21
|
+
presets: [
|
|
22
|
+
[
|
|
23
|
+
require.resolve('babel-preset-react-app/dependencies'),
|
|
24
|
+
{ helpers: true },
|
|
25
|
+
],
|
|
26
|
+
],
|
|
27
|
+
cacheDirectory: true,
|
|
28
|
+
// See #6846 for context on why cacheCompression is disabled
|
|
29
|
+
cacheCompression: false,
|
|
30
|
+
// @remove-on-eject-begin
|
|
31
|
+
cacheIdentifier: getCacheIdentifier(
|
|
32
|
+
isEnvProduction
|
|
33
|
+
? 'production'
|
|
34
|
+
: isEnvDevelopment && 'development',
|
|
35
|
+
[
|
|
36
|
+
'babel-plugin-named-asset-import',
|
|
37
|
+
'babel-preset-react-app',
|
|
38
|
+
'react-dev-utils',
|
|
39
|
+
'react-scripts',
|
|
40
|
+
]
|
|
41
|
+
),
|
|
42
|
+
// @remove-on-eject-end
|
|
43
|
+
// Babel sourcemaps are needed for debugging into node_modules
|
|
44
|
+
// code. Without the options below, debuggers like VSCode
|
|
45
|
+
// show incorrect code and set breakpoints on the wrong lines.
|
|
46
|
+
sourceMaps: shouldUseSourceMap,
|
|
47
|
+
inputSourceMap: shouldUseSourceMap,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
config.resolve.fallback = {
|
|
52
|
+
"fs": false,
|
|
53
|
+
"tls": false,
|
|
54
|
+
"net": false,
|
|
55
|
+
"https": false,
|
|
56
|
+
// "http": require.resolve("stream-http"),
|
|
57
|
+
// "zlib": require.resolve("browserify-zlib"),
|
|
58
|
+
"path": require.resolve("path-browserify"),
|
|
59
|
+
// "stream": require.resolve("stream-browserify"),
|
|
60
|
+
// "util": require.resolve("util/"),
|
|
61
|
+
// "crypto": require.resolve("crypto-browserify")
|
|
62
|
+
"child_process": false,
|
|
63
|
+
"os": false,
|
|
64
|
+
"crypto": false
|
|
65
|
+
}
|
|
66
|
+
config.plugins = (config.plugins || []).concat([
|
|
67
|
+
new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
|
|
68
|
+
{
|
|
69
|
+
resource.request = resource.request.replace(/^node:/, "");
|
|
70
|
+
})
|
|
71
|
+
]);
|
|
72
|
+
return config;
|
|
73
73
|
};
|
package/dist/IEntityInfo.d.ts
CHANGED
package/dist/Info.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParsedQuery } from 'query-string';
|
|
2
|
-
export
|
|
2
|
+
export declare class Info {
|
|
3
3
|
static getDeviceName(query: ParsedQuery): string | (string | null)[];
|
|
4
4
|
static getVersion(): string;
|
|
5
5
|
static getOS(query: ParsedQuery): string | (string | null)[];
|
package/dist/Info.js
CHANGED
package/dist/Info.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../src/Info.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,MAAM,
|
|
1
|
+
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../src/Info.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,MAAM,OAAO,IAAI;IAEb,MAAM,CAAC,aAAa,CAAC,KAAkB;;QAEnC,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,MAAA,KAAK,CAAC,MAAM,mCAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,UAAU;QAEb,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,EAAE,CAAC,OAAO,CAAC;IACtB,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,KAAkB;;QAE3B,IAAI,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;QAC7C,OAAO,MAAA,KAAK,CAAC,EAAE,mCAAI,EAAE,CAAC,EAAE,CAAC;IAC7B,CAAC;CACJ;AAAA,CAAC"}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
.nsa_message_icon {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.nsa_message_title {
|
|
6
|
-
color: hsla(212, 100%, 51%, 1)
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.nsa_message_item_title {
|
|
10
|
-
color: hsla(234, 64%, 22%, 1);
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 8px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.nsa_message_item_content {
|
|
17
|
-
color: hsla(234, 64%, 22%, 1);
|
|
18
|
-
margin: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.nsa_message_item_dot_green {
|
|
22
|
-
width: 8px;
|
|
23
|
-
height: 8px;
|
|
24
|
-
background: hsla(157, 94%, 42%, 1);
|
|
25
|
-
border-radius: 50%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.nsa_message_item_dot_gray {
|
|
29
|
-
width: 8px;
|
|
30
|
-
height: 8px;
|
|
31
|
-
background: hsla(228, 9%, 66%, 1);
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.nsa_body_green {
|
|
36
|
-
background-color: hsla(157, 94%, 42%, 0.1);
|
|
37
|
-
padding: 16px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.nsa_body_gray {
|
|
41
|
-
background-color: #fff;
|
|
42
|
-
padding: 16px;
|
|
43
|
-
box-shadow: 0px 2px 5px #e6e6e6;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.nsa_count {
|
|
47
|
-
position: absolute;
|
|
48
|
-
background: #fff;
|
|
49
|
-
right: -7px;
|
|
50
|
-
top: -7px;
|
|
51
|
-
color: hsla(234, 64%, 22%, 1);
|
|
52
|
-
width: 18px;
|
|
53
|
-
height: 18px;
|
|
54
|
-
border-radius: 50%;
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
align-items: center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.nsa_parent_count {
|
|
61
|
-
position: relative;
|
|
62
|
-
width: max-content;
|
|
1
|
+
.nsa_message_icon {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.nsa_message_title {
|
|
6
|
+
color: hsla(212, 100%, 51%, 1)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.nsa_message_item_title {
|
|
10
|
+
color: hsla(234, 64%, 22%, 1);
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.nsa_message_item_content {
|
|
17
|
+
color: hsla(234, 64%, 22%, 1);
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.nsa_message_item_dot_green {
|
|
22
|
+
width: 8px;
|
|
23
|
+
height: 8px;
|
|
24
|
+
background: hsla(157, 94%, 42%, 1);
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nsa_message_item_dot_gray {
|
|
29
|
+
width: 8px;
|
|
30
|
+
height: 8px;
|
|
31
|
+
background: hsla(228, 9%, 66%, 1);
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nsa_body_green {
|
|
36
|
+
background-color: hsla(157, 94%, 42%, 0.1);
|
|
37
|
+
padding: 16px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nsa_body_gray {
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
padding: 16px;
|
|
43
|
+
box-shadow: 0px 2px 5px #e6e6e6;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nsa_count {
|
|
47
|
+
position: absolute;
|
|
48
|
+
background: #fff;
|
|
49
|
+
right: -7px;
|
|
50
|
+
top: -7px;
|
|
51
|
+
color: hsla(234, 64%, 22%, 1);
|
|
52
|
+
width: 18px;
|
|
53
|
+
height: 18px;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nsa_parent_count {
|
|
61
|
+
position: relative;
|
|
62
|
+
width: max-content;
|
|
63
63
|
}
|
|
@@ -2,7 +2,7 @@ import { IBaseComponentProps, INSBarActionProps, INSBarHeroBannerProps, INSBarNo
|
|
|
2
2
|
import { NSASectionListProps } from './NSASectionList';
|
|
3
3
|
import { NSASectionEditProps } from './NSASectionEdit';
|
|
4
4
|
import { NSASectionViewProps } from './NSASectionView';
|
|
5
|
-
import { IHeaderProps } from 'namirasoft-site-react
|
|
5
|
+
import { IHeaderProps } from 'namirasoft-site-react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
import { INSARouterProps } from '../INSARouterProps';
|
|
8
8
|
export interface NSALayoutProps<EntityType extends {
|
|
@@ -15,7 +15,7 @@ import { NSASectionView } from './NSASectionView';
|
|
|
15
15
|
import { Actions } from './Actions';
|
|
16
16
|
import { useParams } from 'react-router-dom';
|
|
17
17
|
export function NSALayout(props) {
|
|
18
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
19
19
|
const onLogout = () => __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
props.account.server.session.Logout().then(() => {
|
|
21
21
|
props.notifier.onSuccess("You have successfully logged out");
|
|
@@ -28,6 +28,7 @@ export function NSALayout(props) {
|
|
|
28
28
|
let icons = [
|
|
29
29
|
{ src: "https://static.namirasoft.com/image/concept/logout/white.svg", alt: "Logout", onClicked: onLogout, },
|
|
30
30
|
{ src: "https://static.namirasoft.com/image/concept/message/white.svg", alt: "Message", onClicked: onNotiffication, count: 1 },
|
|
31
|
+
{ src: "https://static.namirasoft.com/image/concept/message/white.svg", alt: "Access", onClicked: onNotiffication },
|
|
31
32
|
];
|
|
32
33
|
let user_name = props.account.token_manager.getUserData(user => [user.first_name, user.last_name].filter(n => n).join(" "), "");
|
|
33
34
|
let action = props.action;
|
|
@@ -49,36 +50,42 @@ export function NSALayout(props) {
|
|
|
49
50
|
action.menus[name_apply] = [];
|
|
50
51
|
let { id } = useParams();
|
|
51
52
|
let getIDs = () => [id].filter(id => id);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
action.menus
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
if ((_f = (_e = props.pages.edit.ui.action) === null || _e === void 0 ? void 0 : _e.menus.view) !== null && _f !== void 0 ? _f : true)
|
|
54
|
+
action.menus[name_actions].push(Actions.view(props, props.pages.edit.entity, getIDs));
|
|
55
|
+
if ((_h = (_g = props.pages.edit.ui.action) === null || _g === void 0 ? void 0 : _g.menus.viewHistory) !== null && _h !== void 0 ? _h : true)
|
|
56
|
+
action.menus[name_actions].push(Actions.viewHistory(getIDs));
|
|
57
|
+
if ((_k = (_j = props.pages.edit.ui.action) === null || _j === void 0 ? void 0 : _j.menus.copy) !== null && _k !== void 0 ? _k : true)
|
|
58
|
+
action.menus[name_actions].push(Actions.copy(props, props.pages.edit.entity, getIDs));
|
|
59
|
+
if ((_m = (_l = props.pages.edit.ui.action) === null || _l === void 0 ? void 0 : _l.menus.edit) !== null && _m !== void 0 ? _m : true)
|
|
60
|
+
action.menus[name_actions].push(Actions.edit(props, props.pages.edit.entity, getIDs));
|
|
61
|
+
if ((_p = (_o = props.pages.edit.ui.action) === null || _o === void 0 ? void 0 : _o.menus.delete) !== null && _p !== void 0 ? _p : true)
|
|
62
|
+
action.menus[name_actions].push(Actions.delete(getIDs));
|
|
63
|
+
if ((_r = (_q = props.pages.edit.ui.action) === null || _q === void 0 ? void 0 : _q.menus.apply) !== null && _r !== void 0 ? _r : true)
|
|
64
|
+
action.menus[name_apply].push(Actions.apply(() => {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
if ((_a = props.pages) === null || _a === void 0 ? void 0 : _a.edit)
|
|
67
|
+
NSASectionEdit_onApply((_b = props.pages) === null || _b === void 0 ? void 0 : _b.edit, id);
|
|
68
|
+
}));
|
|
62
69
|
}
|
|
63
|
-
if ((
|
|
70
|
+
if ((_s = props.pages) === null || _s === void 0 ? void 0 : _s.view) {
|
|
64
71
|
action.menus[name_actions].push(Actions.viewHistory(() => []));
|
|
65
72
|
action.menus[name_actions].push(Actions.delete(() => []));
|
|
66
73
|
}
|
|
67
74
|
let content;
|
|
68
|
-
if ((
|
|
75
|
+
if ((_t = props.pages) === null || _t === void 0 ? void 0 : _t.list)
|
|
69
76
|
content = _jsx(NSASectionList, Object.assign({}, props.pages.list, { children: props.children }));
|
|
70
|
-
else if ((
|
|
77
|
+
else if ((_u = props.pages) === null || _u === void 0 ? void 0 : _u.edit)
|
|
71
78
|
content = _jsx(NSASectionEdit, Object.assign({}, props.pages.edit, { children: props.children }));
|
|
72
|
-
else if ((
|
|
79
|
+
else if ((_v = props.pages) === null || _v === void 0 ? void 0 : _v.view)
|
|
73
80
|
content = _jsx(NSASectionView, Object.assign({}, props.pages.view, { children: props.children }));
|
|
74
81
|
else
|
|
75
82
|
content = props.children;
|
|
76
83
|
return (_jsx(NSLayout, Object.assign({}, props, { header: {
|
|
77
|
-
title: (user_name + " " + ((
|
|
78
|
-
icons: [...icons, ...((
|
|
84
|
+
title: (user_name + " " + ((_x = (_w = props.header) === null || _w === void 0 ? void 0 : _w.title) !== null && _x !== void 0 ? _x : "")).trim(),
|
|
85
|
+
icons: [...icons, ...((_z = (_y = props.header) === null || _y === void 0 ? void 0 : _y.icons) !== null && _z !== void 0 ? _z : [])]
|
|
79
86
|
}, action: {
|
|
80
|
-
title: (
|
|
81
|
-
description: (
|
|
87
|
+
title: (_1 = (_0 = props.action) === null || _0 === void 0 ? void 0 : _0.title) !== null && _1 !== void 0 ? _1 : "",
|
|
88
|
+
description: (_2 = props.action) === null || _2 === void 0 ? void 0 : _2.description,
|
|
82
89
|
menus: action.menus
|
|
83
90
|
}, children: _jsx("div", { className: "container-fluid", children: content }) })));
|
|
84
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSALayout.js","sourceRoot":"","sources":["../../src/layouts/NSALayout.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAuB,OAAO,IAAI,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AAGvE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAoB7C,MAAM,UAAU,SAAS,CAAkE,KAAkD;;IAE5I,MAAM,QAAQ,GAAG,GAAS,EAAE;QAE3B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YAE/C,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;YAC7D,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,sCAAsC,EAAE,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACrB,CAAC,CAAA,CAAA;IAED,MAAM,eAAe,GAAG,GAAG,EAAE;QAE5B,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,IAAI,KAAK,GAAG;QACX,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,GAAG;QAC5G,EAAE,GAAG,EAAE,+DAA+D,EAAE,GAAG,EAAE,SAAS,EAAE,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8
|
entity: IEntityInfo<EntityType, EntityTypeInput>;
|
|
9
9
|
isEdit: boolean;
|
|
10
10
|
ui: {
|
|
11
|
-
getEntity(entity: EntityType | null)
|
|
12
|
-
setEntity(entity: EntityType)
|
|
11
|
+
getEntity: (entity: EntityType | null) => EntityTypeInput;
|
|
12
|
+
setEntity: (entity: EntityType) => void;
|
|
13
|
+
action?: {
|
|
14
|
+
menus: {
|
|
15
|
+
view?: boolean;
|
|
16
|
+
viewHistory?: boolean;
|
|
17
|
+
copy?: boolean;
|
|
18
|
+
edit?: boolean;
|
|
19
|
+
delete?: boolean;
|
|
20
|
+
apply?: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
13
23
|
};
|
|
14
24
|
}
|
|
15
25
|
export declare function onApply<EntityType extends {
|
|
@@ -6,10 +6,14 @@ export function onApply(props, id) {
|
|
|
6
6
|
try {
|
|
7
7
|
let onSuccess = (new_entity, message) => {
|
|
8
8
|
props.notifier.onSuccess(message);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
if (props.entity.client.onSuccess)
|
|
10
|
+
props.entity.client.onSuccess(new_entity);
|
|
11
|
+
else {
|
|
12
|
+
let url = props.entity.client.getViewURL(new_entity.id);
|
|
13
|
+
if (!url)
|
|
14
|
+
url = props.entity.client.getListURL();
|
|
15
|
+
props.url.redirect(url, {});
|
|
16
|
+
}
|
|
13
17
|
};
|
|
14
18
|
let old_entity = null;
|
|
15
19
|
let cur_entity = props.ui.getEntity(old_entity);
|
|
@@ -39,7 +43,7 @@ export function NSASectionEdit(props) {
|
|
|
39
43
|
props.entity.server.get(id).then((entity) => {
|
|
40
44
|
props.ui.setEntity(entity);
|
|
41
45
|
}).catch();
|
|
42
|
-
}, []);
|
|
46
|
+
}, [id]);
|
|
43
47
|
let content1 = () => _jsx("p", { children: "Content for Tab" });
|
|
44
48
|
const tabs = [
|
|
45
49
|
{ title: 'Information', getContent: content1 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSASectionEdit.js","sourceRoot":"","sources":["../../src/layouts/NSASectionEdit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEtH,OAAO,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSASectionEdit.js","sourceRoot":"","sources":["../../src/layouts/NSASectionEdit.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEtH,OAAO,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAsB7C,MAAM,UAAU,OAAO,CAAkE,KAAuD,EAAE,EAAsB;IAEvK,IACA;QACC,IAAI,SAAS,GAAG,CAAC,UAAsB,EAAE,OAAe,EAAE,EAAE;YAE3D,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAClC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS;gBAChC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;iBAE3C;gBACC,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;gBACxD,IAAI,CAAC,GAAG;oBACP,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;gBACxC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;aAC5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AC,MAAM,GAAY,EACjD,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAI,EACtE,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,MAAM,GAAY,EACjD,KAAC,MAAM,KAAG,EACV,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,MAAM,GAAY,EACjD,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,IACd,CACZ,CAAC;AACH,CAAC"}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
export * from "./components/NSADeleteModal";
|
|
2
|
+
export * from "./components/NSAMessageDialog";
|
|
3
|
+
export * from "./layouts/Actions";
|
|
4
|
+
export * from "./layouts/NSALayout";
|
|
5
|
+
export * from "./layouts/NSASectionEdit";
|
|
6
|
+
export * from "./layouts/NSASectionList";
|
|
7
|
+
export * from "./layouts/NSASectionView";
|
|
8
|
+
export * from "./pages/NSALoginPage";
|
|
1
9
|
export * from "./IEntityInfo";
|
|
2
10
|
export * from "./Info";
|
|
3
11
|
export * from "./INSARouterMaker";
|
|
4
12
|
export * from "./INSARouterProps";
|
|
5
13
|
export * from "./INSARouterState";
|
|
6
14
|
export * from "./NSARouterMaker";
|
|
7
|
-
export * from "./pages/NSALoginPage";
|
|
8
|
-
export * from "./components/NSADeleteModal";
|
|
9
|
-
export * from "./components/NSAMessageDialog";
|
|
10
|
-
export * from "./layouts/NSALayout";
|
|
11
|
-
export * from "./layouts/NSASectionList";
|
|
12
|
-
export * from "./layouts/NSASectionEdit";
|
package/dist/main.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
export * from "./components/NSADeleteModal";
|
|
2
|
+
export * from "./components/NSAMessageDialog";
|
|
3
|
+
export * from "./layouts/Actions";
|
|
4
|
+
export * from "./layouts/NSALayout";
|
|
5
|
+
export * from "./layouts/NSASectionEdit";
|
|
6
|
+
export * from "./layouts/NSASectionList";
|
|
7
|
+
export * from "./layouts/NSASectionView";
|
|
8
|
+
export * from "./pages/NSALoginPage";
|
|
1
9
|
export * from "./IEntityInfo";
|
|
2
10
|
export * from "./Info";
|
|
3
11
|
export * from "./INSARouterMaker";
|
|
4
12
|
export * from "./INSARouterProps";
|
|
5
13
|
export * from "./INSARouterState";
|
|
6
14
|
export * from "./NSARouterMaker";
|
|
7
|
-
export * from "./pages/NSALoginPage";
|
|
8
|
-
export * from "./components/NSADeleteModal";
|
|
9
|
-
export * from "./components/NSAMessageDialog";
|
|
10
|
-
export * from "./layouts/NSALayout";
|
|
11
|
-
export * from "./layouts/NSASectionList";
|
|
12
|
-
export * from "./layouts/NSASectionEdit";
|
|
13
15
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AAErC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.ns_login_container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ns_logo {
|
|
9
|
-
text-align: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.ns_title {
|
|
13
|
-
font-size: 32px;
|
|
14
|
-
font-weight: 700;
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ns_button {
|
|
19
|
-
text-align: center;
|
|
1
|
+
.ns_login_container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ns_logo {
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ns_title {
|
|
13
|
+
font-size: 32px;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ns_button {
|
|
19
|
+
text-align: center;
|
|
20
20
|
}
|