sevago-sso-fe 1.0.50 → 1.0.52
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/README.md +191 -256
- package/dist/common/constant/apps.data.d.ts +19 -19
- package/dist/common/utils/other/app.utils.d.ts +1 -1
- package/dist/components/elements/icon/index.d.ts +0 -1
- package/dist/components/elements/index.d.ts +0 -1
- package/dist/index.cjs.js +24 -53
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +25 -54
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/elements/icon/icon-button.element.d.ts +0 -10
- package/dist/components/elements/icon/icon-content.element.d.ts +0 -15
- package/dist/components/elements/radio/radio-group.element.d.ts +0 -16
- package/dist/components/elements/tooltip/index.d.ts +0 -1
- package/dist/components/elements/tooltip/tooltip-on-click.element.d.ts +0 -7
- package/dist/components/elements/tooltip/tooltip-on-hover.element.d.ts +0 -9
|
@@ -9,7 +9,7 @@ export declare enum AppGroup {
|
|
|
9
9
|
}
|
|
10
10
|
export interface AppInfo {
|
|
11
11
|
path: {
|
|
12
|
-
|
|
12
|
+
develop: string;
|
|
13
13
|
staging: string;
|
|
14
14
|
production: string;
|
|
15
15
|
};
|
|
@@ -27,14 +27,14 @@ export declare const APP_GROUP_COLOR: {
|
|
|
27
27
|
Khác: string;
|
|
28
28
|
};
|
|
29
29
|
export declare const SSO: {
|
|
30
|
-
|
|
30
|
+
develop: string;
|
|
31
31
|
staging: string;
|
|
32
32
|
production: string;
|
|
33
33
|
};
|
|
34
34
|
export declare const APP_OBJ: {
|
|
35
35
|
E_HIRING: {
|
|
36
36
|
path: {
|
|
37
|
-
|
|
37
|
+
develop: string;
|
|
38
38
|
staging: string;
|
|
39
39
|
production: string;
|
|
40
40
|
};
|
|
@@ -45,7 +45,7 @@ export declare const APP_OBJ: {
|
|
|
45
45
|
};
|
|
46
46
|
HR: {
|
|
47
47
|
path: {
|
|
48
|
-
|
|
48
|
+
develop: string;
|
|
49
49
|
staging: string;
|
|
50
50
|
production: string;
|
|
51
51
|
};
|
|
@@ -56,7 +56,7 @@ export declare const APP_OBJ: {
|
|
|
56
56
|
};
|
|
57
57
|
PAYROLL: {
|
|
58
58
|
path: {
|
|
59
|
-
|
|
59
|
+
develop: string;
|
|
60
60
|
staging: string;
|
|
61
61
|
production: string;
|
|
62
62
|
};
|
|
@@ -67,7 +67,7 @@ export declare const APP_OBJ: {
|
|
|
67
67
|
};
|
|
68
68
|
ORG: {
|
|
69
69
|
path: {
|
|
70
|
-
|
|
70
|
+
develop: string;
|
|
71
71
|
staging: string;
|
|
72
72
|
production: string;
|
|
73
73
|
};
|
|
@@ -78,7 +78,7 @@ export declare const APP_OBJ: {
|
|
|
78
78
|
};
|
|
79
79
|
CHECKIN: {
|
|
80
80
|
path: {
|
|
81
|
-
|
|
81
|
+
develop: string;
|
|
82
82
|
staging: string;
|
|
83
83
|
production: string;
|
|
84
84
|
};
|
|
@@ -89,7 +89,7 @@ export declare const APP_OBJ: {
|
|
|
89
89
|
};
|
|
90
90
|
CHAT: {
|
|
91
91
|
path: {
|
|
92
|
-
|
|
92
|
+
develop: string;
|
|
93
93
|
staging: string;
|
|
94
94
|
production: string;
|
|
95
95
|
};
|
|
@@ -100,7 +100,7 @@ export declare const APP_OBJ: {
|
|
|
100
100
|
};
|
|
101
101
|
TRAINING: {
|
|
102
102
|
path: {
|
|
103
|
-
|
|
103
|
+
develop: string;
|
|
104
104
|
staging: string;
|
|
105
105
|
production: string;
|
|
106
106
|
};
|
|
@@ -111,7 +111,7 @@ export declare const APP_OBJ: {
|
|
|
111
111
|
};
|
|
112
112
|
FORM: {
|
|
113
113
|
path: {
|
|
114
|
-
|
|
114
|
+
develop: string;
|
|
115
115
|
staging: string;
|
|
116
116
|
production: string;
|
|
117
117
|
};
|
|
@@ -122,7 +122,7 @@ export declare const APP_OBJ: {
|
|
|
122
122
|
};
|
|
123
123
|
INSIDE: {
|
|
124
124
|
path: {
|
|
125
|
-
|
|
125
|
+
develop: string;
|
|
126
126
|
staging: string;
|
|
127
127
|
production: string;
|
|
128
128
|
};
|
|
@@ -133,7 +133,7 @@ export declare const APP_OBJ: {
|
|
|
133
133
|
};
|
|
134
134
|
BOOKING: {
|
|
135
135
|
path: {
|
|
136
|
-
|
|
136
|
+
develop: string;
|
|
137
137
|
staging: string;
|
|
138
138
|
production: string;
|
|
139
139
|
};
|
|
@@ -144,7 +144,7 @@ export declare const APP_OBJ: {
|
|
|
144
144
|
};
|
|
145
145
|
PROJECT: {
|
|
146
146
|
path: {
|
|
147
|
-
|
|
147
|
+
develop: string;
|
|
148
148
|
staging: string;
|
|
149
149
|
production: string;
|
|
150
150
|
};
|
|
@@ -155,7 +155,7 @@ export declare const APP_OBJ: {
|
|
|
155
155
|
};
|
|
156
156
|
REQUEST: {
|
|
157
157
|
path: {
|
|
158
|
-
|
|
158
|
+
develop: string;
|
|
159
159
|
staging: string;
|
|
160
160
|
production: string;
|
|
161
161
|
};
|
|
@@ -166,7 +166,7 @@ export declare const APP_OBJ: {
|
|
|
166
166
|
};
|
|
167
167
|
TRACKING: {
|
|
168
168
|
path: {
|
|
169
|
-
|
|
169
|
+
develop: string;
|
|
170
170
|
staging: string;
|
|
171
171
|
production: string;
|
|
172
172
|
};
|
|
@@ -177,7 +177,7 @@ export declare const APP_OBJ: {
|
|
|
177
177
|
};
|
|
178
178
|
PROCESS: {
|
|
179
179
|
path: {
|
|
180
|
-
|
|
180
|
+
develop: string;
|
|
181
181
|
staging: string;
|
|
182
182
|
production: string;
|
|
183
183
|
};
|
|
@@ -188,7 +188,7 @@ export declare const APP_OBJ: {
|
|
|
188
188
|
};
|
|
189
189
|
FORMULA_PRICE: {
|
|
190
190
|
path: {
|
|
191
|
-
|
|
191
|
+
develop: string;
|
|
192
192
|
staging: string;
|
|
193
193
|
production: string;
|
|
194
194
|
};
|
|
@@ -199,7 +199,7 @@ export declare const APP_OBJ: {
|
|
|
199
199
|
};
|
|
200
200
|
E_CATALOGUE: {
|
|
201
201
|
path: {
|
|
202
|
-
|
|
202
|
+
develop: string;
|
|
203
203
|
staging: string;
|
|
204
204
|
production: string;
|
|
205
205
|
};
|
|
@@ -210,7 +210,7 @@ export declare const APP_OBJ: {
|
|
|
210
210
|
};
|
|
211
211
|
LANDING_PAGE: {
|
|
212
212
|
path: {
|
|
213
|
-
|
|
213
|
+
develop: string;
|
|
214
214
|
staging: string;
|
|
215
215
|
production: string;
|
|
216
216
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1046,14 +1046,14 @@ const truncateText = (text, maxLength = 27) => {
|
|
|
1046
1046
|
return `${text.substring(0, maxLength)}...`;
|
|
1047
1047
|
};
|
|
1048
1048
|
var Environment = /* @__PURE__ */ ((Environment2) => {
|
|
1049
|
-
Environment2["
|
|
1049
|
+
Environment2["DEVELOP"] = "develop";
|
|
1050
1050
|
Environment2["STAGING"] = "staging";
|
|
1051
1051
|
Environment2["PRODUCTION"] = "production";
|
|
1052
1052
|
return Environment2;
|
|
1053
1053
|
})(Environment || {});
|
|
1054
1054
|
const getCurrentEnvironment = () => {
|
|
1055
1055
|
const { hostname } = window.location;
|
|
1056
|
-
if (hostname.includes("dev.")) return "
|
|
1056
|
+
if (hostname.includes("dev.")) return "develop";
|
|
1057
1057
|
if (hostname.includes("sta.")) return "staging";
|
|
1058
1058
|
return "production";
|
|
1059
1059
|
};
|
|
@@ -6122,7 +6122,7 @@ const APP_GROUP_COLOR = {
|
|
|
6122
6122
|
]: "#EB6262"
|
|
6123
6123
|
};
|
|
6124
6124
|
const SSO = {
|
|
6125
|
-
|
|
6125
|
+
develop: "https://dev.account.sevago.local",
|
|
6126
6126
|
staging: "https://sta.account.sevago.local",
|
|
6127
6127
|
production: "https://account.sevago.com.vn"
|
|
6128
6128
|
};
|
|
@@ -6130,7 +6130,7 @@ const APP_OBJ = {
|
|
|
6130
6130
|
// GREEN
|
|
6131
6131
|
E_HIRING: {
|
|
6132
6132
|
path: {
|
|
6133
|
-
|
|
6133
|
+
develop: "https://dev.admin.office.sevago.local/e-hiring",
|
|
6134
6134
|
staging: "https://sta.admin.office.sevago.local/e-hiring",
|
|
6135
6135
|
production: "https://admin.office.sevago.local/e-hiring"
|
|
6136
6136
|
},
|
|
@@ -6144,7 +6144,7 @@ const APP_OBJ = {
|
|
|
6144
6144
|
},
|
|
6145
6145
|
HR: {
|
|
6146
6146
|
path: {
|
|
6147
|
-
|
|
6147
|
+
develop: "https://dev.admin.office.sevago.local/hr",
|
|
6148
6148
|
staging: "https://sta.admin.office.sevago.local/hr",
|
|
6149
6149
|
production: "https://admin.office.sevago.local/hr"
|
|
6150
6150
|
},
|
|
@@ -6158,7 +6158,7 @@ const APP_OBJ = {
|
|
|
6158
6158
|
},
|
|
6159
6159
|
PAYROLL: {
|
|
6160
6160
|
path: {
|
|
6161
|
-
|
|
6161
|
+
develop: "https://dev.admin.office.sevago.local/payroll",
|
|
6162
6162
|
staging: "https://sta.admin.office.sevago.local/payroll",
|
|
6163
6163
|
production: "https://admin.office.sevago.local/payroll"
|
|
6164
6164
|
},
|
|
@@ -6172,7 +6172,7 @@ const APP_OBJ = {
|
|
|
6172
6172
|
},
|
|
6173
6173
|
ORG: {
|
|
6174
6174
|
path: {
|
|
6175
|
-
|
|
6175
|
+
develop: "https://dev.admin.office.sevago.local/org",
|
|
6176
6176
|
staging: "https://sta.admin.office.sevago.local/org",
|
|
6177
6177
|
production: "https://admin.office.sevago.local/org"
|
|
6178
6178
|
},
|
|
@@ -6186,7 +6186,7 @@ const APP_OBJ = {
|
|
|
6186
6186
|
},
|
|
6187
6187
|
CHECKIN: {
|
|
6188
6188
|
path: {
|
|
6189
|
-
|
|
6189
|
+
develop: "https://dev.admin.office.sevago.local/checkin",
|
|
6190
6190
|
staging: "https://sta.admin.office.sevago.local/checkin",
|
|
6191
6191
|
production: "https://admin.office.sevago.local/checkin"
|
|
6192
6192
|
},
|
|
@@ -6201,7 +6201,7 @@ const APP_OBJ = {
|
|
|
6201
6201
|
// YELLOW
|
|
6202
6202
|
CHAT: {
|
|
6203
6203
|
path: {
|
|
6204
|
-
|
|
6204
|
+
develop: "https://dev.admin.office.sevago.local/chat",
|
|
6205
6205
|
staging: "https://sta.admin.office.sevago.local/chat",
|
|
6206
6206
|
production: "https://admin.office.sevago.local/chat"
|
|
6207
6207
|
},
|
|
@@ -6216,7 +6216,7 @@ const APP_OBJ = {
|
|
|
6216
6216
|
},
|
|
6217
6217
|
TRAINING: {
|
|
6218
6218
|
path: {
|
|
6219
|
-
|
|
6219
|
+
develop: "https://dev.admin.office.sevago.local/training",
|
|
6220
6220
|
staging: "https://sta.admin.office.sevago.local/training",
|
|
6221
6221
|
production: "https://admin.office.sevago.local/training"
|
|
6222
6222
|
},
|
|
@@ -6231,7 +6231,7 @@ const APP_OBJ = {
|
|
|
6231
6231
|
},
|
|
6232
6232
|
FORM: {
|
|
6233
6233
|
path: {
|
|
6234
|
-
|
|
6234
|
+
develop: "https://dev.admin.office.sevago.local/form",
|
|
6235
6235
|
staging: "https://sta.admin.office.sevago.local/form",
|
|
6236
6236
|
production: "https://admin.office.sevago.local/form"
|
|
6237
6237
|
},
|
|
@@ -6246,7 +6246,7 @@ const APP_OBJ = {
|
|
|
6246
6246
|
},
|
|
6247
6247
|
INSIDE: {
|
|
6248
6248
|
path: {
|
|
6249
|
-
|
|
6249
|
+
develop: "https://dev.admin.office.sevago.local/inside",
|
|
6250
6250
|
staging: "https://sta.admin.office.sevago.local/inside",
|
|
6251
6251
|
production: "https://admin.office.sevago.local/inside"
|
|
6252
6252
|
},
|
|
@@ -6261,7 +6261,7 @@ const APP_OBJ = {
|
|
|
6261
6261
|
},
|
|
6262
6262
|
BOOKING: {
|
|
6263
6263
|
path: {
|
|
6264
|
-
|
|
6264
|
+
develop: "https://dev.admin.office.sevago.local/booking",
|
|
6265
6265
|
staging: "https://sta.admin.office.sevago.local/booking",
|
|
6266
6266
|
production: "https://admin.office.sevago.local/booking"
|
|
6267
6267
|
},
|
|
@@ -6276,7 +6276,7 @@ const APP_OBJ = {
|
|
|
6276
6276
|
// BLUE
|
|
6277
6277
|
PROJECT: {
|
|
6278
6278
|
path: {
|
|
6279
|
-
|
|
6279
|
+
develop: "https://dev.admin.office.sevago.local/project",
|
|
6280
6280
|
staging: "https://sta.admin.office.sevago.local/project",
|
|
6281
6281
|
production: "https://admin.office.sevago.local/project"
|
|
6282
6282
|
},
|
|
@@ -6290,7 +6290,7 @@ const APP_OBJ = {
|
|
|
6290
6290
|
},
|
|
6291
6291
|
REQUEST: {
|
|
6292
6292
|
path: {
|
|
6293
|
-
|
|
6293
|
+
develop: "https://dev.admin.office.sevago.local/request",
|
|
6294
6294
|
staging: "https://sta.admin.office.sevago.local/request",
|
|
6295
6295
|
production: "https://admin.office.sevago.local/request"
|
|
6296
6296
|
},
|
|
@@ -6304,7 +6304,7 @@ const APP_OBJ = {
|
|
|
6304
6304
|
},
|
|
6305
6305
|
TRACKING: {
|
|
6306
6306
|
path: {
|
|
6307
|
-
|
|
6307
|
+
develop: "https://dev.admin.office.sevago.local/process",
|
|
6308
6308
|
staging: "https://sta.admin.office.sevago.local/process",
|
|
6309
6309
|
production: "https://admin.office.sevago.local/process"
|
|
6310
6310
|
},
|
|
@@ -6322,7 +6322,7 @@ const APP_OBJ = {
|
|
|
6322
6322
|
},
|
|
6323
6323
|
PROCESS: {
|
|
6324
6324
|
path: {
|
|
6325
|
-
|
|
6325
|
+
develop: "https://dev.admin.office.sevago.local/workflow",
|
|
6326
6326
|
staging: "https://sta.admin.office.sevago.local/workflow",
|
|
6327
6327
|
production: "https://admin.office.sevago.local/workflow"
|
|
6328
6328
|
},
|
|
@@ -6338,7 +6338,7 @@ const APP_OBJ = {
|
|
|
6338
6338
|
// RED
|
|
6339
6339
|
FORMULA_PRICE: {
|
|
6340
6340
|
path: {
|
|
6341
|
-
|
|
6341
|
+
develop: "https://dev.formula-price.sevago.local",
|
|
6342
6342
|
staging: "https://sta.formula-price.sevago.local",
|
|
6343
6343
|
production: "https://formula-price.sevago.local"
|
|
6344
6344
|
},
|
|
@@ -6352,7 +6352,7 @@ const APP_OBJ = {
|
|
|
6352
6352
|
},
|
|
6353
6353
|
E_CATALOGUE: {
|
|
6354
6354
|
path: {
|
|
6355
|
-
|
|
6355
|
+
develop: "https://dev.admin.e-catalogue.sevago.local",
|
|
6356
6356
|
staging: "https://sta.admin.e-catalogue.sevago.local",
|
|
6357
6357
|
production: "https://admin.e-catalogue.sevago.local"
|
|
6358
6358
|
},
|
|
@@ -6368,7 +6368,7 @@ const APP_OBJ = {
|
|
|
6368
6368
|
// PINK
|
|
6369
6369
|
LANDING_PAGE: {
|
|
6370
6370
|
path: {
|
|
6371
|
-
|
|
6371
|
+
develop: "https://dev.admin.landing-page.sevago.local",
|
|
6372
6372
|
staging: "https://sta.admin.landing-page.sevago.local",
|
|
6373
6373
|
production: "https://admin.landing-page.sevago.com.vn"
|
|
6374
6374
|
},
|
|
@@ -13768,10 +13768,12 @@ const AppGrid = ({
|
|
|
13768
13768
|
gap: gap2
|
|
13769
13769
|
},
|
|
13770
13770
|
children: visibleApps.map((app, index) => {
|
|
13771
|
+
const appUrl = app.path[env];
|
|
13772
|
+
const absoluteUrl = appUrl.startsWith("https://") ? appUrl : `${window.location.origin}${appUrl.startsWith("/") ? appUrl : `/${appUrl}`}`;
|
|
13771
13773
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13772
13774
|
"a",
|
|
13773
13775
|
{
|
|
13774
|
-
href:
|
|
13776
|
+
href: absoluteUrl,
|
|
13775
13777
|
target: "_blank",
|
|
13776
13778
|
rel: "noopener noreferrer",
|
|
13777
13779
|
style: {
|
|
@@ -14059,7 +14061,7 @@ const AppsSidebar = ({
|
|
|
14059
14061
|
captionVariant: "caption",
|
|
14060
14062
|
titleColor: theme.palette.grey[800],
|
|
14061
14063
|
captionColor: theme.palette.grey[600],
|
|
14062
|
-
env: Environment.
|
|
14064
|
+
env: Environment.DEVELOP
|
|
14063
14065
|
}
|
|
14064
14066
|
)
|
|
14065
14067
|
]
|
|
@@ -14095,36 +14097,6 @@ const RadioElement = ({ name, label, ...rest }) => {
|
|
|
14095
14097
|
}
|
|
14096
14098
|
);
|
|
14097
14099
|
};
|
|
14098
|
-
const TooltipOnClickElement = ({
|
|
14099
|
-
open,
|
|
14100
|
-
placement = "top",
|
|
14101
|
-
content,
|
|
14102
|
-
children,
|
|
14103
|
-
onOpen,
|
|
14104
|
-
onClose,
|
|
14105
|
-
onClickAway,
|
|
14106
|
-
...rest
|
|
14107
|
-
}) => {
|
|
14108
|
-
return (
|
|
14109
|
-
// Chỗ này có thể là bug, onClickAway apply ngay cả khi component chưa được render
|
|
14110
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14111
|
-
material.Tooltip,
|
|
14112
|
-
{
|
|
14113
|
-
PopperProps: { disablePortal: true },
|
|
14114
|
-
open,
|
|
14115
|
-
onOpen,
|
|
14116
|
-
onClose,
|
|
14117
|
-
disableFocusListener: true,
|
|
14118
|
-
disableHoverListener: true,
|
|
14119
|
-
disableTouchListener: true,
|
|
14120
|
-
placement,
|
|
14121
|
-
title: content,
|
|
14122
|
-
...rest,
|
|
14123
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children })
|
|
14124
|
-
}
|
|
14125
|
-
) })
|
|
14126
|
-
);
|
|
14127
|
-
};
|
|
14128
14100
|
const TypographyContentCaption = ({ content, caption, sx = {}, sxContent, sxCaption }) => {
|
|
14129
14101
|
return /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { gap: 0, sx: { ...sx }, children: [
|
|
14130
14102
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14297,7 +14269,6 @@ exports.StyledTableCell = StyledTableCell;
|
|
|
14297
14269
|
exports.SystemMonitorScreen = SystemMonitorScreen;
|
|
14298
14270
|
exports.SystemMonitorSidebarPart = SystemMonitorSidebarPart;
|
|
14299
14271
|
exports.TYPOGRAPHY_STYLES = TYPOGRAPHY_STYLES;
|
|
14300
|
-
exports.TooltipOnClickElement = TooltipOnClickElement;
|
|
14301
14272
|
exports.TypographyContentCaption = TypographyContentCaption;
|
|
14302
14273
|
exports.TypographyFilter = TypographyFilter;
|
|
14303
14274
|
exports.checkNowYear = checkNowYear;
|