@fixefy/fixefy-ui-components 0.3.74 → 0.3.78
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/dist/FxActionsTray/FxActionsTray.js +17 -12
- package/dist/FxActionsTray/styles/actionsTray.style.d.ts +3 -5
- package/dist/FxAggregationsBar/helpers/structureReader.js +6 -4
- package/dist/FxAsyncDropdown/FxAsyncDropdown.js +18 -10
- package/dist/FxAsyncDropdown/components/CheckboxIcon.js +8 -6
- package/dist/FxAsyncDropdown/components/ChipOption.d.ts +1 -1
- package/dist/FxAsyncDropdown/components/DeleteButton.js +2 -2
- package/dist/FxAsyncDropdown/components/LogoOption.d.ts +1 -1
- package/dist/FxAsyncDropdown/components/LogoOption.js +7 -6
- package/dist/FxAsyncDropdown/components/TextOption.d.ts +1 -1
- package/dist/FxAsyncDropdown/components/TextOption.js +7 -6
- package/dist/FxAsyncDropdown/styles/dropdown.styles.js +2 -2
- package/dist/FxAvatar/helpers/stringToColor.js +2 -2
- package/dist/FxAvatar/styles/avatar.styles.js +77 -36
- package/dist/FxButton/styles/button.styles.js +8 -3
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +1 -1
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +11 -4
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.d.ts +1 -1
- package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +11 -4
- package/dist/FxChip/FxChip.js +2 -2
- package/dist/FxChip/styles/chip.styles.js +11 -6
- package/dist/FxDatesProgress/FxDatesProgress.js +8 -7
- package/dist/FxDatesProgress/styles/progress.styles.js +8 -2
- package/dist/FxGeneralModal/FxGeneralModal.js +12 -5
- package/dist/FxGridEmptyState/FxGridEmptyState.js +7 -6
- package/dist/FxGridError/FxGridError.js +8 -7
- package/dist/FxIcon/FxIcon.d.ts +1 -1
- package/dist/FxIcon/FxIcon.js +5 -4
- package/dist/FxIcon/content/index.d.ts +2 -2
- package/dist/FxIcon/content/lazy_icon.d.ts +1 -1
- package/dist/FxIcon/content/lazy_icon.js +4 -3
- package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.js +6 -4
- package/dist/FxModal/FxModal.js +4 -3
- package/dist/FxModal/styles/modal.style.js +12 -5
- package/dist/FxNotes/FxNotes.js +2 -2
- package/dist/FxNotes/helpers/stringToColor.js +2 -2
- package/dist/FxNotes/styles/notes.styles.js +2 -2
- package/dist/FxNumberField/FxNumberField.js +1 -2
- package/dist/FxNumberField/styles/number_field.styles.d.ts +1 -1
- package/dist/FxNumberField/styles/number_field.styles.js +7 -2
- package/dist/FxObjStaticDropdown/FxObjStaticDropdown.js +27 -16
- package/dist/FxObjStaticDropdown/styles/dropdown.styles.js +2 -2
- package/dist/FxPopper/Popper.d.ts +2 -1
- package/dist/FxPopper/Popper.js +11 -6
- package/dist/FxPopper/PopperWithOutside.d.ts +1 -1
- package/dist/FxPopper/PopperWithOutside.js +4 -3
- package/dist/FxPopper/styles/popper.styles.js +1 -1
- package/dist/FxProgressCircle/styles/progress_circle.styles.js +12 -12
- package/dist/FxProgressCounter/ProgressCounter.js +10 -9
- package/dist/FxProgressCounter/styles/progress_counter.styles.js +12 -7
- package/dist/FxScore/FxScore.js +19 -11
- package/dist/FxScore/styles/score.styles.d.ts +1 -1
- package/dist/FxScore/styles/score.styles.js +7 -2
- package/dist/FxShowMore/FxShowMore.js +2 -2
- package/dist/FxShowMore/styles/show_more.styles.js +16 -7
- package/dist/FxSlider/FxSlider.js +2 -2
- package/dist/FxStatisticsBar/FxStatisticsBar.js +12 -6
- package/dist/FxStatisticsBar/styles/statistics.styles.d.ts +1 -1
- package/dist/FxStatisticsBar/styles/statistics.styles.js +7 -2
- package/dist/FxStatusBar/FxStatusBar.js +7 -2
- package/dist/FxStatusBar/styles/statusBar.styles.js +22 -15
- package/dist/FxStrStaticDropdown/FxStrStaticDropdown.js +26 -16
- package/dist/FxStrStaticDropdown/styles/dropdown.styles.js +2 -2
- package/dist/FxStyledButton/FxStyledButton.d.ts +2 -2
- package/dist/FxStyledButton/FxStyledButton.js +4 -3
- package/dist/FxStyledComponents/index.d.ts +1 -1
- package/dist/FxStyledComponents/index.js +32 -23
- package/dist/FxSwitch/FxSwitch.d.ts +6 -0
- package/dist/{src/FxButton/FxButton.js → FxSwitch/FxSwitch.js} +5 -5
- package/dist/FxSwitch/index.d.ts +1 -0
- package/dist/{src/FxChip → FxSwitch}/index.js +5 -5
- package/dist/FxSwitch/styles/switch.styles.d.ts +1 -0
- package/dist/FxSwitch/styles/switch.styles.js +42 -0
- package/dist/FxTabs/FxTabs.js +13 -9
- package/dist/FxTag/FxTag.js +2 -2
- package/dist/FxTag/index.d.ts +1 -1
- package/dist/FxTag/styles/tag.styles.js +10 -4
- package/dist/FxTextField/FxTextField.d.ts +1 -1
- package/dist/FxTextField/FxTextField.js +10 -7
- package/dist/FxTodo/FxTodo.js +5 -5
- package/dist/FxToggleButtons/FxToggleButtons.js +6 -5
- package/dist/FxUserImage/FxUserImage.js +7 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +31 -29
- package/dist/FxActionButton/FxActionButton.d.ts +0 -7
- package/dist/FxActionButton/FxActionButton.js +0 -82
- package/dist/FxActionButton/index.d.ts +0 -1
- package/dist/FxActionButton/index.js +0 -11
- package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
- package/dist/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/FxAsyncDropdown/useDropdownStore.d.ts +0 -2
- package/dist/FxAsyncDropdown/useDropdownStore.js +0 -57
- package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +0 -7
- package/dist/FxFilterActionButton/FxFilterActionButton.js +0 -82
- package/dist/FxFilterActionButton/index.d.ts +0 -1
- package/dist/FxFilterActionButton/index.js +0 -11
- package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +0 -7
- package/dist/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/FxFilterSortButton/index.d.ts +0 -1
- package/dist/FxFilterSortButton/index.js +0 -11
- package/dist/FxModalWithButton/FxModalWithButton.d.ts +0 -10
- package/dist/FxModalWithButton/FxModalWithButton.js +0 -131
- package/dist/FxModalWithButton/index.d.ts +0 -1
- package/dist/FxModalWithButton/index.js +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +0 -11
- package/dist/FxModalWithComponent/FxModalWithComponent.js +0 -102
- package/dist/FxModalWithComponent/index.d.ts +0 -1
- package/dist/FxModalWithComponent/index.js +0 -11
- package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +0 -14
- package/dist/FxModalWithMenu/FxModalWithMenu.js +0 -114
- package/dist/FxModalWithMenu/index.d.ts +0 -1
- package/dist/FxModalWithMenu/index.js +0 -11
- package/dist/FxPopper/styles/makeStyles.d.ts +0 -16
- package/dist/FxPopper/styles/makeStyles.js +0 -23
- package/dist/FxStaticDropdown/FxStaticDropdown.d.ts +0 -24
- package/dist/FxStaticDropdown/FxStaticDropdown.js +0 -368
- package/dist/FxStaticDropdown/helpers/helpers.d.ts +0 -2
- package/dist/FxStaticDropdown/helpers/helpers.js +0 -22
- package/dist/FxStaticDropdown/index.d.ts +0 -1
- package/dist/FxStaticDropdown/index.js +0 -11
- package/dist/FxStaticDropdown/styles/dropdown.styles.d.ts +0 -3
- package/dist/FxStaticDropdown/styles/dropdown.styles.js +0 -190
- package/dist/FxWizard/FxWizard/FxWizard.d.ts +0 -6
- package/dist/FxWizard/FxWizard/FxWizard.js +0 -42
- package/dist/FxWizard/FxWizard/index.d.ts +0 -2
- package/dist/FxWizard/FxWizard/index.js +0 -19
- package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/envHelpers.js +0 -35
- package/dist/FxWizard/FxWizard/utils/index.d.ts +0 -1
- package/dist/FxWizard/FxWizard/utils/index.js +0 -18
- package/dist/FxWizard/pages/wizard/[step].d.ts +0 -9
- package/dist/FxWizard/pages/wizard/[step].js +0 -112
- package/dist/FxWizard/pages/wizard/index.d.ts +0 -1
- package/dist/FxWizard/pages/wizard/index.js +0 -18
- package/dist/src/FxActionsTray/FxActionsTray.js +0 -351
- package/dist/src/FxActionsTray/index.js +0 -19
- package/dist/src/FxActionsTray/styles/actions_tray.styles.js +0 -159
- package/dist/src/FxAggregationsBar/FxAggregations.js +0 -41
- package/dist/src/FxAggregationsBar/helpers/structureReader.js +0 -78
- package/dist/src/FxAggregationsBar/index.js +0 -22
- package/dist/src/FxAggregationsBar/operations/query.js +0 -73
- package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +0 -628
- package/dist/src/FxAsyncDropdown/helpers/helpers.js +0 -161
- package/dist/src/FxAsyncDropdown/index.js +0 -25
- package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +0 -228
- package/dist/src/FxAvatar/FxAvatar.js +0 -145
- package/dist/src/FxAvatar/helpers/stringToColor.js +0 -23
- package/dist/src/FxAvatar/index.js +0 -22
- package/dist/src/FxAvatar/styles/avatar.styles.js +0 -192
- package/dist/src/FxButton/index.js +0 -19
- package/dist/src/FxButton/styles/button.styles.js +0 -23
- package/dist/src/FxChip/FxChip.js +0 -45
- package/dist/src/FxChip/styles/chip.styles.js +0 -61
- package/dist/src/FxFilterSortButton/FxFilterSortButton.js +0 -82
- package/dist/src/FxFilterSortButton/index.js +0 -11
- package/dist/src/FxIcon/FxIcon.js +0 -107
- package/dist/src/FxIcon/content/dynamic_icon.js +0 -20
- package/dist/src/FxIcon/content/index.js +0 -20
- package/dist/src/FxIcon/content/lazy_icon.js +0 -137
- package/dist/src/FxIcon/index.js +0 -11
- package/dist/src/FxModal/FxModal.js +0 -170
- package/dist/src/FxModal/index.js +0 -19
- package/dist/src/FxModal/styles/modal.style.js +0 -59
- package/dist/src/FxModalWithButton/FxModalWithButton.js +0 -94
- package/dist/src/FxModalWithButton/index.js +0 -11
- package/dist/src/FxNotes/FxNotes.js +0 -216
- package/dist/src/FxNotes/helpers/stringToColor.js +0 -26
- package/dist/src/FxNotes/index.js +0 -22
- package/dist/src/FxNotes/operations/queries.js +0 -35
- package/dist/src/FxNotes/styles/notes.styles.js +0 -168
- package/dist/src/FxNumberField/FxNumberField.js +0 -109
- package/dist/src/FxNumberField/index.js +0 -19
- package/dist/src/FxNumberField/styles/number_field.styles.js +0 -94
- package/dist/src/FxProgressCircle/FxProgressCircle.js +0 -65
- package/dist/src/FxProgressCircle/index.js +0 -19
- package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +0 -106
- package/dist/src/FxProgressCounter/ProgressCounter.js +0 -168
- package/dist/src/FxProgressCounter/index.js +0 -19
- package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +0 -61
- package/dist/src/FxScore/FxScore.js +0 -207
- package/dist/src/FxScore/index.js +0 -19
- package/dist/src/FxScore/styles/score.styles.js +0 -97
- package/dist/src/FxShowMore/FxShowMore.js +0 -80
- package/dist/src/FxShowMore/index.js +0 -19
- package/dist/src/FxShowMore/styles/show_more.styles.js +0 -134
- package/dist/src/FxSlider/FxSlider.js +0 -49
- package/dist/src/FxSlider/index.js +0 -19
- package/dist/src/FxStatisticsBar/FxStatisticsBar.js +0 -191
- package/dist/src/FxStatisticsBar/index.js +0 -19
- package/dist/src/FxStatisticsBar/styles/statistics.styles.js +0 -98
- package/dist/src/FxStatusBar/FxStatusBar.js +0 -143
- package/dist/src/FxStatusBar/helpers/constants.js +0 -22
- package/dist/src/FxStatusBar/index.js +0 -22
- package/dist/src/FxStatusBar/styles/statusBar.styles.js +0 -131
- package/dist/src/FxStyledComponents/index.js +0 -310
- package/dist/src/FxTag/FxTag.js +0 -41
- package/dist/src/FxTag/index.js +0 -19
- package/dist/src/FxTag/styles/tag.styles.js +0 -100
- package/dist/src/FxTextField/FxTextField.js +0 -208
- package/dist/src/FxTextField/index.js +0 -19
- package/dist/src/FxTodo/FxTodo.js +0 -95
- package/dist/src/FxTodo/index.js +0 -22
- package/dist/src/FxTodo/styles/todo.styles.js +0 -183
- package/dist/src/index.js +0 -215
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxModalWithButton;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const _material = require("@mui/material");
|
|
14
|
-
const _FxIcon = require("../FxIcon");
|
|
15
|
-
const _FxMenuItemWithIcon = require("../FxMenuItemWithIcon");
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
17
|
-
if (typeof WeakMap !== "function") return null;
|
|
18
|
-
var cacheBabelInterop = new WeakMap();
|
|
19
|
-
var cacheNodeInterop = new WeakMap();
|
|
20
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
21
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
22
|
-
})(nodeInterop);
|
|
23
|
-
}
|
|
24
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
25
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
29
|
-
return {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34
|
-
if (cache && cache.has(obj)) {
|
|
35
|
-
return cache.get(obj);
|
|
36
|
-
}
|
|
37
|
-
var newObj = {
|
|
38
|
-
__proto__: null
|
|
39
|
-
};
|
|
40
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
41
|
-
for(var key in obj){
|
|
42
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
43
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
44
|
-
if (desc && (desc.get || desc.set)) {
|
|
45
|
-
Object.defineProperty(newObj, key, desc);
|
|
46
|
-
} else {
|
|
47
|
-
newObj[key] = obj[key];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
newObj.default = obj;
|
|
52
|
-
if (cache) {
|
|
53
|
-
cache.set(obj, newObj);
|
|
54
|
-
}
|
|
55
|
-
return newObj;
|
|
56
|
-
}
|
|
57
|
-
const FxModalWithButton = ({ btnType = 'text', color, btnValue, modalData, onClick, disabled, icon })=>{
|
|
58
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
59
|
-
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
60
|
-
const handleClick = (e)=>{
|
|
61
|
-
if (onClick) {
|
|
62
|
-
onClick();
|
|
63
|
-
setIsOpen((prev)=>!prev);
|
|
64
|
-
setAnchorEl(e.currentTarget);
|
|
65
|
-
} else {
|
|
66
|
-
setIsOpen((prev)=>!prev);
|
|
67
|
-
setAnchorEl(e.currentTarget);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const handleClose = ()=>{
|
|
71
|
-
setIsOpen(false);
|
|
72
|
-
setAnchorEl(null);
|
|
73
|
-
};
|
|
74
|
-
(0, _react.useEffect)(()=>{
|
|
75
|
-
setIsOpen(false);
|
|
76
|
-
}, [
|
|
77
|
-
btnValue
|
|
78
|
-
]);
|
|
79
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
80
|
-
children: [
|
|
81
|
-
btnType == 'text' && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Button, {
|
|
82
|
-
disabled: disabled,
|
|
83
|
-
color: color || 'primary',
|
|
84
|
-
id: "fade-button",
|
|
85
|
-
"aria-haspopup": "true",
|
|
86
|
-
onClick: handleClick,
|
|
87
|
-
sx: {
|
|
88
|
-
fontWeight: 'normal',
|
|
89
|
-
width: '100%',
|
|
90
|
-
justifyContent: 'flex-start',
|
|
91
|
-
'&:disabled': {
|
|
92
|
-
color: '#BDBDBD',
|
|
93
|
-
backgroundColor: '#F0F0F0'
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
children: btnValue
|
|
97
|
-
}),
|
|
98
|
-
btnType == 'icon' && icon && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.IconButton, {
|
|
99
|
-
onClick: handleClick,
|
|
100
|
-
children: [
|
|
101
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
|
|
102
|
-
icon: icon,
|
|
103
|
-
width: 20,
|
|
104
|
-
height: 20
|
|
105
|
-
}),
|
|
106
|
-
' '
|
|
107
|
-
]
|
|
108
|
-
}),
|
|
109
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
|
|
110
|
-
id: "fade-menu",
|
|
111
|
-
MenuListProps: {
|
|
112
|
-
'aria-labelledby': 'fade-button'
|
|
113
|
-
},
|
|
114
|
-
anchorEl: AnchorEl,
|
|
115
|
-
open: isOpen,
|
|
116
|
-
onClose: handleClose,
|
|
117
|
-
TransitionComponent: _material.Fade,
|
|
118
|
-
children: isOpen && (modalData === null || modalData === void 0 ? void 0 : modalData.map((item, i)=>{
|
|
119
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxMenuItemWithIcon.FxMenuItemWithIcon, {
|
|
120
|
-
icon: item.icon,
|
|
121
|
-
title: item.title,
|
|
122
|
-
onClick: ()=>{
|
|
123
|
-
handleClose();
|
|
124
|
-
item.onClick();
|
|
125
|
-
}
|
|
126
|
-
}, i);
|
|
127
|
-
}))
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
});
|
|
131
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FxModalWithButton } from './FxModalWithButton';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithButton", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _FxModalWithButton.FxModalWithButton;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _FxModalWithButton = require("./FxModalWithButton");
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const FxModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, icon, sx, iconSize, }: {
|
|
3
|
-
btnType?: 'text' | 'icon';
|
|
4
|
-
btnValue?: string;
|
|
5
|
-
modalData: any;
|
|
6
|
-
onClick?: any;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
icon?: string;
|
|
9
|
-
sx?: any;
|
|
10
|
-
iconSize?: number;
|
|
11
|
-
}) => React.JSX.Element;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithComponent", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxModalWithComponent;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const _material = require("@mui/material");
|
|
14
|
-
const _FxStyledButton = require("../FxStyledButton");
|
|
15
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
16
|
-
if (typeof WeakMap !== "function") return null;
|
|
17
|
-
var cacheBabelInterop = new WeakMap();
|
|
18
|
-
var cacheNodeInterop = new WeakMap();
|
|
19
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
20
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
21
|
-
})(nodeInterop);
|
|
22
|
-
}
|
|
23
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
24
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
25
|
-
return obj;
|
|
26
|
-
}
|
|
27
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
28
|
-
return {
|
|
29
|
-
default: obj
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
33
|
-
if (cache && cache.has(obj)) {
|
|
34
|
-
return cache.get(obj);
|
|
35
|
-
}
|
|
36
|
-
var newObj = {
|
|
37
|
-
__proto__: null
|
|
38
|
-
};
|
|
39
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
40
|
-
for(var key in obj){
|
|
41
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
42
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
43
|
-
if (desc && (desc.get || desc.set)) {
|
|
44
|
-
Object.defineProperty(newObj, key, desc);
|
|
45
|
-
} else {
|
|
46
|
-
newObj[key] = obj[key];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
newObj.default = obj;
|
|
51
|
-
if (cache) {
|
|
52
|
-
cache.set(obj, newObj);
|
|
53
|
-
}
|
|
54
|
-
return newObj;
|
|
55
|
-
}
|
|
56
|
-
const FxModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, icon, sx, iconSize })=>{
|
|
57
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
58
|
-
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
59
|
-
const handleClick = (e)=>{
|
|
60
|
-
if (onClick) {
|
|
61
|
-
onClick();
|
|
62
|
-
setIsOpen((prev)=>!prev);
|
|
63
|
-
setAnchorEl(e.currentTarget);
|
|
64
|
-
} else {
|
|
65
|
-
setIsOpen((prev)=>!prev);
|
|
66
|
-
setAnchorEl(e.currentTarget);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const handleClose = ()=>{
|
|
70
|
-
setIsOpen(false);
|
|
71
|
-
setAnchorEl(null);
|
|
72
|
-
};
|
|
73
|
-
(0, _react.useEffect)(()=>{
|
|
74
|
-
setIsOpen(false);
|
|
75
|
-
}, [
|
|
76
|
-
btnValue
|
|
77
|
-
]);
|
|
78
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
79
|
-
children: [
|
|
80
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
81
|
-
sx: sx,
|
|
82
|
-
btnType: btnType,
|
|
83
|
-
btnValue: btnValue,
|
|
84
|
-
onClick: handleClick,
|
|
85
|
-
startIcon: icon,
|
|
86
|
-
disabled: disabled,
|
|
87
|
-
iconSize: iconSize || 20
|
|
88
|
-
}),
|
|
89
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
|
|
90
|
-
id: "fade-menu",
|
|
91
|
-
MenuListProps: {
|
|
92
|
-
'aria-labelledby': 'fade-button'
|
|
93
|
-
},
|
|
94
|
-
anchorEl: AnchorEl,
|
|
95
|
-
open: isOpen,
|
|
96
|
-
onClose: handleClose,
|
|
97
|
-
TransitionComponent: _material.Fade,
|
|
98
|
-
children: isOpen && modalData
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
});
|
|
102
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FxModalWithComponent } from './FxModalWithComponent';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithComponent", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _FxModalWithComponent.FxModalWithComponent;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _FxModalWithComponent = require("./FxModalWithComponent");
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const FxModalWithMenu: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal, buttonSx, menuItemSx, iconSize, }: {
|
|
3
|
-
btnType?: 'text' | 'icon';
|
|
4
|
-
btnValue?: string;
|
|
5
|
-
modalData: any;
|
|
6
|
-
onClick?: any;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
startIcon?: string;
|
|
9
|
-
endIcon?: string;
|
|
10
|
-
shouldShowModal?: boolean;
|
|
11
|
-
buttonSx?: any;
|
|
12
|
-
menuItemSx?: any;
|
|
13
|
-
iconSize?: number;
|
|
14
|
-
}) => React.JSX.Element;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithMenu", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxModalWithMenu;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
-
const _material = require("@mui/material");
|
|
14
|
-
const _FxMenuItemWithIcon = require("../FxMenuItemWithIcon");
|
|
15
|
-
const _FxStyledButton = require("../FxStyledButton");
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
17
|
-
if (typeof WeakMap !== "function") return null;
|
|
18
|
-
var cacheBabelInterop = new WeakMap();
|
|
19
|
-
var cacheNodeInterop = new WeakMap();
|
|
20
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
21
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
22
|
-
})(nodeInterop);
|
|
23
|
-
}
|
|
24
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
25
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
29
|
-
return {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
34
|
-
if (cache && cache.has(obj)) {
|
|
35
|
-
return cache.get(obj);
|
|
36
|
-
}
|
|
37
|
-
var newObj = {
|
|
38
|
-
__proto__: null
|
|
39
|
-
};
|
|
40
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
41
|
-
for(var key in obj){
|
|
42
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
43
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
44
|
-
if (desc && (desc.get || desc.set)) {
|
|
45
|
-
Object.defineProperty(newObj, key, desc);
|
|
46
|
-
} else {
|
|
47
|
-
newObj[key] = obj[key];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
newObj.default = obj;
|
|
52
|
-
if (cache) {
|
|
53
|
-
cache.set(obj, newObj);
|
|
54
|
-
}
|
|
55
|
-
return newObj;
|
|
56
|
-
}
|
|
57
|
-
const FxModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal = true, buttonSx, menuItemSx, iconSize })=>{
|
|
58
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
59
|
-
const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
|
|
60
|
-
const handleClick = (e)=>{
|
|
61
|
-
if (onClick) {
|
|
62
|
-
onClick();
|
|
63
|
-
setIsOpen((prev)=>!prev);
|
|
64
|
-
setAnchorEl(e.currentTarget);
|
|
65
|
-
} else {
|
|
66
|
-
setIsOpen((prev)=>!prev);
|
|
67
|
-
setAnchorEl(e.currentTarget);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
const handleClose = ()=>{
|
|
71
|
-
setIsOpen(false);
|
|
72
|
-
setAnchorEl(null);
|
|
73
|
-
};
|
|
74
|
-
(0, _react.useEffect)(()=>{
|
|
75
|
-
setIsOpen(false);
|
|
76
|
-
}, [
|
|
77
|
-
btnValue
|
|
78
|
-
]);
|
|
79
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
80
|
-
children: [
|
|
81
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
|
|
82
|
-
sx: buttonSx,
|
|
83
|
-
btnType: btnType,
|
|
84
|
-
btnValue: btnValue,
|
|
85
|
-
onClick: handleClick,
|
|
86
|
-
startIcon: startIcon,
|
|
87
|
-
endIcon: endIcon,
|
|
88
|
-
iconSize: iconSize || 20,
|
|
89
|
-
disabled: disabled
|
|
90
|
-
}),
|
|
91
|
-
shouldShowModal && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Menu, {
|
|
92
|
-
id: "fade-menu",
|
|
93
|
-
MenuListProps: {
|
|
94
|
-
'aria-labelledby': 'fade-button'
|
|
95
|
-
},
|
|
96
|
-
anchorEl: AnchorEl,
|
|
97
|
-
open: isOpen,
|
|
98
|
-
onClose: handleClose,
|
|
99
|
-
TransitionComponent: _material.Fade,
|
|
100
|
-
children: isOpen && (modalData === null || modalData === void 0 ? void 0 : modalData.map((item, i)=>{
|
|
101
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxMenuItemWithIcon.FxMenuItemWithIcon, {
|
|
102
|
-
icon: item.icon,
|
|
103
|
-
title: item.title,
|
|
104
|
-
onClick: ()=>{
|
|
105
|
-
handleClose();
|
|
106
|
-
item.onClick();
|
|
107
|
-
},
|
|
108
|
-
sx: menuItemSx
|
|
109
|
-
}, i);
|
|
110
|
-
}))
|
|
111
|
-
})
|
|
112
|
-
]
|
|
113
|
-
});
|
|
114
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FxModalWithMenu } from './FxModalWithMenu';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxModalWithMenu", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _FxModalWithMenu.FxModalWithMenu;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _FxModalWithMenu = require("./FxModalWithMenu");
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const makeStyles: <Params = void, RuleNameSubsetReferencableInNestedSelectors extends string = never>(params?: {
|
|
2
|
-
name?: string | Record<string, unknown> | undefined;
|
|
3
|
-
uniqId?: string | undefined;
|
|
4
|
-
} | undefined) => <RuleName extends string>(cssObjectByRuleNameOrGetCssObjectByRuleName: Record<RuleName, import("tss-react").CSSObject> | ((theme: import("@mui/styles").DefaultTheme, params: Params, classes: Record<RuleNameSubsetReferencableInNestedSelectors, string>) => Record<RuleNameSubsetReferencableInNestedSelectors | RuleName, import("tss-react").CSSObject>)) => (params: Params, muiStyleOverridesParams?: {
|
|
5
|
-
props: Record<string, unknown>;
|
|
6
|
-
ownerState?: Record<string, unknown> | undefined;
|
|
7
|
-
} | undefined) => {
|
|
8
|
-
classes: Record<RuleName, string>;
|
|
9
|
-
theme: import("@mui/styles").DefaultTheme;
|
|
10
|
-
css: import("tss-react").Css;
|
|
11
|
-
cx: import("tss-react").Cx;
|
|
12
|
-
}, useStyles: () => {
|
|
13
|
-
theme: import("@mui/styles").DefaultTheme;
|
|
14
|
-
css: import("tss-react").Css;
|
|
15
|
-
cx: import("tss-react").Cx;
|
|
16
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
makeStyles: function() {
|
|
13
|
-
return makeStyles;
|
|
14
|
-
},
|
|
15
|
-
useStyles: function() {
|
|
16
|
-
return useStyles;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _tssreact = require("tss-react");
|
|
20
|
-
const _styles = require("@mui/styles");
|
|
21
|
-
const { makeStyles, useStyles } = (0, _tssreact.createMakeStyles)({
|
|
22
|
-
useTheme: _styles.useTheme
|
|
23
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface StaticDropdownStylesOptions {
|
|
3
|
-
width?: string | number;
|
|
4
|
-
maxWidth?: string | number;
|
|
5
|
-
inputSx?: object;
|
|
6
|
-
menuSx?: object;
|
|
7
|
-
}
|
|
8
|
-
export type StaticDropdownPropsType = {
|
|
9
|
-
initialValue?: string | any;
|
|
10
|
-
styles?: StaticDropdownStylesOptions;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
onAdd?: (value: any) => void;
|
|
13
|
-
onRemoveOne?: (value: any) => void;
|
|
14
|
-
onRemoveAll?: () => void;
|
|
15
|
-
type?: 'checkbox' | 'text';
|
|
16
|
-
modal_type?: string;
|
|
17
|
-
name: string;
|
|
18
|
-
query: string;
|
|
19
|
-
isInitialOpen?: boolean;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
data: string[];
|
|
22
|
-
rootStylesOverride?: any;
|
|
23
|
-
};
|
|
24
|
-
export declare const FxStaticDropdown: React.ForwardRefExoticComponent<StaticDropdownPropsType & React.RefAttributes<unknown>>;
|