bam32bittheme
Advanced tools
Comparing version
@@ -52,3 +52,3 @@ "use strict"; | ||
} | ||
}, props), menuList === null || menuList === void 0 ? void 0 : menuList.map(option => /*#__PURE__*/_react.default.createElement(_material.MenuItem, _extends({ | ||
}, props), menuList.map(option => /*#__PURE__*/_react.default.createElement(_material.MenuItem, _extends({ | ||
key: option.value, | ||
@@ -55,0 +55,0 @@ value: option.value |
@@ -27,3 +27,3 @@ "use strict"; | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } | ||
const PREFIX = 'TabBar'; | ||
const PREFIX = "TabBar"; | ||
const TabBar = _ref => { | ||
@@ -39,3 +39,3 @@ let { | ||
if (TabProps.length === 0) { | ||
console.error(PREFIX, 'Please provide Tab props in TabProps'); | ||
console.error(PREFIX, "Please provide Tab props in TabProps"); | ||
} | ||
@@ -57,3 +57,3 @@ if (TabProps.length !== children.length) { | ||
onChange: (e, i) => _onChange(i) | ||
}, props), TabProps === null || TabProps === void 0 ? void 0 : TabProps.map((_ref2, index) => { | ||
}, props), TabProps.map((_ref2, index) => { | ||
let { | ||
@@ -67,3 +67,3 @@ PanelProps | ||
}, tabProps)); | ||
}))), children === null || children === void 0 ? void 0 : children.map((e, i) => /*#__PURE__*/_react.default.createElement(_TabPanel.default, { | ||
}))), children.map((e, i) => /*#__PURE__*/_react.default.createElement(_TabPanel.default, { | ||
key: i, | ||
@@ -70,0 +70,0 @@ value: i.toString() |
@@ -204,3 +204,3 @@ "use strict"; | ||
'.MuiPopover-root:not(#root .MuiPopover-root) .MuiPaper-root': { | ||
width: '450px !important' | ||
width: "450px !important" | ||
}, | ||
@@ -306,3 +306,3 @@ '.notistack-MuiContent': { | ||
} | ||
}, JSON.parse('{' + (colorList === null || colorList === void 0 ? void 0 : colorList.map(e => '"& .Mui-focused.MuiInputBase-color' + e + ':not(.Mui-error) fieldset": {"borderColor":"' + themeColors[e.toLowerCase()].main + '" , "boxShadow": "0 0 10px ' + themeColors[e.toLowerCase()].main + '1a"}').join(',')) + '}')), {}, { | ||
}, JSON.parse('{' + colorList.map(e => '"& .Mui-focused.MuiInputBase-color' + e + ':not(.Mui-error) fieldset": {"borderColor":"' + themeColors[e.toLowerCase()].main + '" , "boxShadow": "0 0 10px ' + themeColors[e.toLowerCase()].main + '1a"}').join(',') + '}')), {}, { | ||
'& .Mui-error.MuiInputBase-formControl fieldset': { | ||
@@ -309,0 +309,0 @@ borderColor: themeColors.error.main, |
@@ -151,3 +151,3 @@ "use strict"; | ||
renderTags: (tagValue, getTagProps) => { | ||
return tagValue === null || tagValue === void 0 ? void 0 : tagValue.map((option, index) => { | ||
return tagValue.map((option, index) => { | ||
const { | ||
@@ -154,0 +154,0 @@ children, |
@@ -183,3 +183,3 @@ "use strict"; | ||
serviceHandler: _services.getRegisteredCommunities, | ||
handleFilter: data => data === null || data === void 0 ? void 0 : data.filter(x => x.id != _constants.NOTICE_ID) | ||
handleFilter: data => data.filter(x => x.id != _constants.NOTICE_ID) | ||
})), /*#__PURE__*/_react.default.createElement(_material.Stack, { | ||
@@ -239,3 +239,3 @@ gap: 1.25 | ||
serviceHandler: _services.getPersonalsDataService, | ||
handleFilter: options => options === null || options === void 0 ? void 0 : options.filter(x => x.durum !== 'PASIF' && !values.managers.some(manager => manager.id === x.id) && x.id !== (user === null || user === void 0 ? void 0 : user.id)), | ||
handleFilter: options => options.filter(x => x.durum !== 'PASIF' && !values.managers.some(manager => manager.id === x.id) && x.id !== (user === null || user === void 0 ? void 0 : user.id)), | ||
showLabel: option => "".concat(option.ad, " ").concat(option.soyad) | ||
@@ -260,3 +260,3 @@ })), /*#__PURE__*/_react.default.createElement(_material.Stack, { | ||
serviceHandler: _services.getPersonalsDataService, | ||
handleFilter: options => options === null || options === void 0 ? void 0 : options.filter(x => x.durum !== 'PASIF' && !values.members.some(member => member.id === x.id) && x.id !== (user === null || user === void 0 ? void 0 : user.id)) | ||
handleFilter: options => options.filter(x => x.durum !== 'PASIF' && !values.members.some(member => member.id === x.id) && x.id !== (user === null || user === void 0 ? void 0 : user.id)) | ||
}))), /*#__PURE__*/_react.default.createElement(_material.RadioGroup, { | ||
@@ -263,0 +263,0 @@ value: values.isPrivate |
@@ -101,3 +101,3 @@ "use strict"; | ||
height: 20 | ||
}))), !loading && !error && (currencies === null || currencies === void 0 ? void 0 : currencies.map((currency, index) => { | ||
}))), !loading && !error && currencies.map((currency, index) => { | ||
var _rates$currency$code; | ||
@@ -138,3 +138,3 @@ return /*#__PURE__*/_react.default.createElement(_material.Stack, { | ||
}, "\u20BA"))); | ||
}))); | ||
})); | ||
}; | ||
@@ -141,0 +141,0 @@ function calculateTopPosition(iconIndex, currentIndex, totalIcons) { |
@@ -53,3 +53,3 @@ "use strict"; | ||
} | ||
}, "Favori Topluluklar\u0131n\u0131z"), /*#__PURE__*/_react.default.createElement(_material.Stack, null, items === null || items === void 0 ? void 0 : items.map((x, index) => { | ||
}, "Favori Topluluklar\u0131n\u0131z"), /*#__PURE__*/_react.default.createElement(_material.Stack, null, items.map((x, index) => { | ||
var _x$profilResmi; | ||
@@ -56,0 +56,0 @@ const avatar = (0, _AvatarColor.stringAvatar)(x.toplulukAdi); |
@@ -113,3 +113,2 @@ "use strict"; | ||
const Header = _ref => { | ||
var _notifications$filter; | ||
let { | ||
@@ -345,3 +344,3 @@ clearUser | ||
}, /*#__PURE__*/_react.default.createElement(_material.Badge, { | ||
badgeContent: Array.isArray(notifications) ? (notifications === null || notifications === void 0 || (_notifications$filter = notifications.filter(x => !x.isRead)) === null || _notifications$filter === void 0 ? void 0 : _notifications$filter.length) + (newTasks === null || newTasks === void 0 ? void 0 : newTasks.length) : null, | ||
badgeContent: notifications.filter(x => !x.isRead).length + newTasks.length, | ||
color: 'primary' | ||
@@ -348,0 +347,0 @@ }, /*#__PURE__*/_react.default.createElement(_SymbolIcon.default, { |
@@ -100,3 +100,3 @@ "use strict"; | ||
height: '100%' | ||
}, (newTasks === null || newTasks === void 0 ? void 0 : newTasks.length) > 0 ? newTasks === null || newTasks === void 0 ? void 0 : newTasks.map(task => /*#__PURE__*/_react.default.createElement(_react.Fragment, { | ||
}, newTasks.length > 0 ? newTasks.map(task => /*#__PURE__*/_react.default.createElement(_react.Fragment, { | ||
key: task.taskId | ||
@@ -106,3 +106,3 @@ }, /*#__PURE__*/_react.default.createElement(_NotificationTaskItem.default, { | ||
item: task | ||
}), /*#__PURE__*/_react.default.createElement(_material.Divider, null))) : null, (notifications === null || notifications === void 0 ? void 0 : notifications.length) > 0 ? notifications === null || notifications === void 0 ? void 0 : notifications.map(notification => /*#__PURE__*/_react.default.createElement(_react.Fragment, { | ||
}), /*#__PURE__*/_react.default.createElement(_material.Divider, null))) : null, notifications.length > 0 ? notifications.map(notification => /*#__PURE__*/_react.default.createElement(_react.Fragment, { | ||
key: notification.createdAt | ||
@@ -109,0 +109,0 @@ }, /*#__PURE__*/_react.default.createElement(_NotificationItem.default, { |
@@ -126,3 +126,2 @@ "use strict"; | ||
const Sidebar = _ref => { | ||
var _favoriteCommunities$, _favoriteCommunities$2; | ||
let { | ||
@@ -196,3 +195,3 @@ handleCloseDrawer, | ||
fontWeight: 500 | ||
}, "Favoriler"), favoriteCommunities === null || favoriteCommunities === void 0 || (_favoriteCommunities$ = favoriteCommunities.slice(0, 2)) === null || _favoriteCommunities$ === void 0 ? void 0 : _favoriteCommunities$.map(x => /*#__PURE__*/_react.default.createElement(SidebarLink, { | ||
}, "Favoriler"), favoriteCommunities.slice(0, 2).map(x => /*#__PURE__*/_react.default.createElement(SidebarLink, { | ||
img: x.profilResmi, | ||
@@ -265,3 +264,3 @@ handleCloseDrawer: handleCloseDrawer, | ||
collapsedClick: handleShowFavorites | ||
}, favoriteCommunities === null || favoriteCommunities === void 0 || (_favoriteCommunities$2 = favoriteCommunities.slice(0, 5)) === null || _favoriteCommunities$2 === void 0 ? void 0 : _favoriteCommunities$2.map(x => /*#__PURE__*/_react.default.createElement(SidebarLink, { | ||
}, favoriteCommunities.slice(0, 5).map(x => /*#__PURE__*/_react.default.createElement(SidebarLink, { | ||
key: x.id, | ||
@@ -283,3 +282,3 @@ url: "".concat(_constants.routes.communities, "/").concat(x.toplulukId), | ||
sx: sx.body2 | ||
}, "Operasyonlar"), sidebarMenuItems === null || sidebarMenuItems === void 0 ? void 0 : sidebarMenuItems.map((x, index) => /*#__PURE__*/_react.default.createElement(SidebarLink, { | ||
}, "Operasyonlar"), sidebarMenuItems.map((x, index) => /*#__PURE__*/_react.default.createElement(SidebarLink, { | ||
key: index, | ||
@@ -286,0 +285,0 @@ sub: true, |
@@ -111,3 +111,3 @@ "use strict"; | ||
const data = res.data; | ||
const newData = await Promise.all(data === null || data === void 0 ? void 0 : data.map(async item => { | ||
const newData = await Promise.all(data.map(async item => { | ||
var _item$profilResmi; | ||
@@ -175,4 +175,4 @@ const img = await getDysImg({ | ||
const createComunityService = async (values, resetForm, handleCloseAndNavigate) => { | ||
var _values$members, _values$managers, _values$communities$, _values$communities$2; | ||
const members = (_values$members = values.members) === null || _values$members === void 0 ? void 0 : _values$members.map(user => { | ||
var _values$communities$, _values$communities$2; | ||
const members = values.members.map(user => { | ||
return { | ||
@@ -185,3 +185,3 @@ statu: 'uye', | ||
}); | ||
const managers = (_values$managers = values.managers) === null || _values$managers === void 0 ? void 0 : _values$managers.map(user => { | ||
const managers = values.managers.map(user => { | ||
return { | ||
@@ -188,0 +188,0 @@ statu: 'yonetici', |
@@ -29,4 +29,3 @@ "use strict"; | ||
const stringAvatar = name => { | ||
var _name$split; | ||
const words = (_name$split = name.split(/[\s,-]+/gim)) === null || _name$split === void 0 ? void 0 : _name$split.filter(Boolean); | ||
const words = name.split(/[\s,-]+/gim).filter(Boolean); | ||
return { | ||
@@ -33,0 +32,0 @@ sx: { |
@@ -95,11 +95,11 @@ "use strict"; | ||
const removeFromFavorites = favoriteId => { | ||
setFavoriteCommunities(prev => prev === null || prev === void 0 ? void 0 : prev.filter(x => x.id !== favoriteId)); | ||
setFavoriteCommunities(prev => prev.filter(x => x.id !== favoriteId)); | ||
}; | ||
const updateNoticeList = data => { | ||
if (user) { | ||
const parsedDataArray = data === null || data === void 0 ? void 0 : data.map(item => _objectSpread(_objectSpread({}, item), {}, { | ||
const parsedDataArray = data.map(item => _objectSpread(_objectSpread({}, item), {}, { | ||
message: JSON.parse(item.message) | ||
})); | ||
const newArray = parsedDataArray === null || parsedDataArray === void 0 ? void 0 : parsedDataArray.filter(x => x.message.gonderenKullaniciAdi !== user.sub); | ||
const sortedDataArray = newArray === null || newArray === void 0 ? void 0 : newArray.sort((a, b) => { | ||
const newArray = parsedDataArray.filter(x => x.message.gonderenKullaniciAdi !== user.sub); | ||
const sortedDataArray = newArray.sort((a, b) => { | ||
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime(); | ||
@@ -111,3 +111,3 @@ }); | ||
const readAllNoticeList = () => { | ||
const newList = notifications === null || notifications === void 0 ? void 0 : notifications.map(x => _objectSpread(_objectSpread({}, x), {}, { | ||
const newList = notifications.map(x => _objectSpread(_objectSpread({}, x), {}, { | ||
isRead: true | ||
@@ -118,3 +118,3 @@ })); | ||
const updateNoticeById = noticeId => { | ||
const newList = notifications === null || notifications === void 0 ? void 0 : notifications.map(x => x.id === noticeId ? _objectSpread(_objectSpread({}, x), {}, { | ||
const newList = notifications.map(x => x.id === noticeId ? _objectSpread(_objectSpread({}, x), {}, { | ||
isRead: true | ||
@@ -121,0 +121,0 @@ }) : _objectSpread({}, x)); |
{ | ||
"name": "bam32bittheme", | ||
"version": "2.1.129-beta.49", | ||
"version": "2.1.129-beta.50", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x", |
1917919
-0.11%10177
-0.06%