@antscorp/antsomi-ui 1.9.5 → 1.9.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2
2
|
// Libraries
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
import { Flex } from '@antscorp/antsomi-ui/es/components';
|
|
@@ -54,7 +54,7 @@ export const ImageSliderStyled = styled(Flex) `
|
|
|
54
54
|
.image-resize-wrapper,
|
|
55
55
|
.image-upload-zone {
|
|
56
56
|
border: 1px solid ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.blue1_1};
|
|
57
|
-
border-radius:
|
|
57
|
+
border-radius: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.borderRadius}px;
|
|
58
58
|
margin-top: 0;
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
}
|
|
@@ -73,14 +73,14 @@ export const ImageSliderStyled = styled(Flex) `
|
|
|
73
73
|
left: 0;
|
|
74
74
|
width: ${props => `${props.$imageWidth}px`};
|
|
75
75
|
height: ${props => `${props.$imageHeight}px`};
|
|
76
|
-
background: ${(
|
|
76
|
+
background: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.colorBgSkeleton};
|
|
77
77
|
|
|
78
78
|
& > i {
|
|
79
|
-
color: ${(
|
|
79
|
+
color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.bw8};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
& > div > span:last-child {
|
|
83
|
-
color: ${(
|
|
83
|
+
color: ${(_e = THEME.token) === null || _e === void 0 ? void 0 : _e.bw7};
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&:not(.hide-skeleton) {
|
|
@@ -166,7 +166,7 @@ export const ImageSliderStyled = styled(Flex) `
|
|
|
166
166
|
scrollbar-width: none;
|
|
167
167
|
|
|
168
168
|
/* NOTE: set border-radius for parent of thumbnail list make better UI when scroll horizontal */
|
|
169
|
-
border-radius:
|
|
169
|
+
border-radius: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.borderRadius}px;
|
|
170
170
|
|
|
171
171
|
& > div {
|
|
172
172
|
overflow: hidden;
|
|
@@ -211,9 +211,10 @@ export const ImageSliderStyled = styled(Flex) `
|
|
|
211
211
|
&--small {
|
|
212
212
|
position: relative;
|
|
213
213
|
box-sizing: border-box;
|
|
214
|
-
background: ${(
|
|
215
|
-
border: 1px solid ${(
|
|
216
|
-
border-radius:
|
|
214
|
+
background: ${(_g = THEME.token) === null || _g === void 0 ? void 0 : _g.colorBgSkeleton};
|
|
215
|
+
border: 1px solid ${(_h = THEME.token) === null || _h === void 0 ? void 0 : _h.blue1_1};
|
|
216
|
+
border-radius: ${(_j = THEME.token) === null || _j === void 0 ? void 0 : _j.borderRadius}px;
|
|
217
|
+
overflow: hidden;
|
|
217
218
|
|
|
218
219
|
${centerBlock}
|
|
219
220
|
&:not(.hide-skeleton) {
|
|
@@ -250,7 +251,7 @@ export const ImageSliderStyled = styled(Flex) `
|
|
|
250
251
|
|
|
251
252
|
/* border: 2px solid #e5e5e5; */
|
|
252
253
|
border-width: 2px;
|
|
253
|
-
border-radius:
|
|
254
|
+
border-radius: ${(_k = THEME.token) === null || _k === void 0 ? void 0 : _k.borderRadius}px;
|
|
254
255
|
user-select: none;
|
|
255
256
|
cursor: pointer;
|
|
256
257
|
}
|
|
@@ -276,6 +277,10 @@ export const ImageSliderStyled = styled(Flex) `
|
|
|
276
277
|
z-index: 2;
|
|
277
278
|
opacity: 0;
|
|
278
279
|
transition: opacity 150ms ease-in-out;
|
|
280
|
+
|
|
281
|
+
button:not(.antsomi-btn-icon-only) {
|
|
282
|
+
height: unset !important;
|
|
283
|
+
}
|
|
279
284
|
}
|
|
280
285
|
|
|
281
286
|
.image-container--big:hover {
|
|
@@ -39,7 +39,7 @@ import { HeaderV2, AccessDenied } from '../../molecules';
|
|
|
39
39
|
// Contexts
|
|
40
40
|
import { AppConfigContext } from '../../..';
|
|
41
41
|
// Constants
|
|
42
|
-
import { APP_CODES, APP_IAM_DOMAIN, APP_PERMISSION_DOMAIN, CDP_ROUTE, IAM_API, PERMISSION_API, PORTALS_IDS, SOCKET_API, UOGS_PREFIX, } from '../../../constants';
|
|
42
|
+
import { APP_CACHE_PARAMS, APP_CODES, APP_IAM_DOMAIN, APP_PERMISSION_DOMAIN, CDP_ROUTE, IAM_API, PERMISSION_API, PORTALS_IDS, SOCKET_API, UOGS_PREFIX, } from '../../../constants';
|
|
43
43
|
import { ENV } from '@antscorp/antsomi-ui/es/config';
|
|
44
44
|
// Css
|
|
45
45
|
import '@antscorp/processing-notification/dist/index.css';
|
|
@@ -150,6 +150,16 @@ export const Layout = memo(props => {
|
|
|
150
150
|
const antsProcessingNotificationConfig = useMemo(() => (Object.assign({ permissionDomain, socketDomain: SOCKET_API, token, accountId: userId, userId, lang: languageCode, networkId: portalId }, processingNotificationProps)), [permissionDomain, token, userId, languageCode, portalId, processingNotificationProps]);
|
|
151
151
|
const onActiveMenuCodeChange = useCallback((activeItemPath, flattenPermissionList, menuListPermission) => {
|
|
152
152
|
var _a;
|
|
153
|
+
// Set menuActiveArr for CDP app to tracking
|
|
154
|
+
if (window && window[APP_CACHE_PARAMS] && (activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath.length)) {
|
|
155
|
+
const menuActiveArr = activeItemPath.map((item, index) => ({
|
|
156
|
+
code: item.menu_item,
|
|
157
|
+
label: item.menu_item_name,
|
|
158
|
+
/** In case index equal 0 (App level 1) then not set permission code */
|
|
159
|
+
permission_code: index !== 0 ? item.permission_code : null,
|
|
160
|
+
}));
|
|
161
|
+
window[APP_CACHE_PARAMS].menuActiveArr = menuActiveArr;
|
|
162
|
+
}
|
|
153
163
|
const activeMenuItem = activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath[(activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath.length) - 1];
|
|
154
164
|
const { menu_item_code, page_title, menu_item_name, permission_code } = activeMenuItem || {};
|
|
155
165
|
setActivePageTitle(page_title
|