@fixefy/fixefy-ui-components 0.3.108 → 0.3.110
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/FxAsyncDropdown/FxAsyncDropdown.js +3 -3
- package/dist/FxDatesProgress/styles/progress.styles.js +1 -1
- package/dist/FxUserImage/FxUserImage.js +2 -2
- package/dist/fixefy-ui-components/src/FxActionsTray/FxActionsTray.js +111 -0
- package/dist/fixefy-ui-components/src/FxActionsTray/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxActionsTray/styles/actionsTray.style.js +114 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/FxAggregations.js +41 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/helpers/structureReader.js +80 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxAggregationsBar/operations/query.js +73 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/FxAsyncDropdown.js +500 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/CheckboxIcon.js +44 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChipOption.js +35 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/ChosenIcon.js +45 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/DeleteButton.js +37 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/LogoOption.js +101 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/TextOption.js +74 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/components/index.js +36 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/helpers/helpers.js +233 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/styles/dropdown.styles.js +211 -0
- package/dist/fixefy-ui-components/src/FxAsyncDropdown/types.js +4 -0
- package/dist/fixefy-ui-components/src/FxAvatar/FxAvatar.js +145 -0
- package/dist/fixefy-ui-components/src/FxAvatar/helpers/stringToColor.js +23 -0
- package/dist/fixefy-ui-components/src/FxAvatar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxAvatar/styles/avatar.styles.js +233 -0
- package/dist/fixefy-ui-components/src/FxButton/FxButton.js +106 -0
- package/dist/fixefy-ui-components/src/FxButton/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxButton/styles/button.styles.js +28 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/FxButtonModalWithComponent.js +118 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithComponent/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/FxButtonModalWithMenu.js +126 -0
- package/dist/fixefy-ui-components/src/FxButtonModalWithMenu/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxChip/FxChip.js +75 -0
- package/dist/fixefy-ui-components/src/FxChip/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxChip/styles/chip.styles.js +147 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/FxDatesProgress.js +126 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxDatesProgress/styles/progress.styles.js +24 -0
- package/dist/fixefy-ui-components/src/FxGeneralModal/FxGeneralModal.js +107 -0
- package/dist/fixefy-ui-components/src/FxGeneralModal/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxGridEmptyState/FxGridEmptyState.js +86 -0
- package/dist/fixefy-ui-components/src/FxGridEmptyState/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxGridError/FxGridError.js +91 -0
- package/dist/fixefy-ui-components/src/FxGridError/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxIcon/FxIcon.js +118 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/dynamic_icon.js +20 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/index.js +20 -0
- package/dist/fixefy-ui-components/src/FxIcon/content/lazy_icon.js +87 -0
- package/dist/fixefy-ui-components/src/FxIcon/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/FxMenuItemWithIcon.js +84 -0
- package/dist/fixefy-ui-components/src/FxMenuItemWithIcon/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxModal/FxModal.js +171 -0
- package/dist/fixefy-ui-components/src/FxModal/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxModal/styles/modal.style.js +66 -0
- package/dist/fixefy-ui-components/src/FxNotes/FxNotes.js +216 -0
- package/dist/fixefy-ui-components/src/FxNotes/helpers/stringToColor.js +26 -0
- package/dist/fixefy-ui-components/src/FxNotes/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxNotes/operations/queries.js +35 -0
- package/dist/fixefy-ui-components/src/FxNotes/styles/notes.styles.js +168 -0
- package/dist/fixefy-ui-components/src/FxNumberField/FxNumberField.js +108 -0
- package/dist/fixefy-ui-components/src/FxNumberField/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxNumberField/styles/number_field.styles.js +99 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/FxObjStaticDropdown.js +548 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/index.js +25 -0
- package/dist/fixefy-ui-components/src/FxObjStaticDropdown/styles/dropdown.styles.js +211 -0
- package/dist/fixefy-ui-components/src/FxPopper/Popper.js +139 -0
- package/dist/fixefy-ui-components/src/FxPopper/PopperWithOutside.js +116 -0
- package/dist/fixefy-ui-components/src/FxPopper/content/PopperHeader.js +36 -0
- package/dist/fixefy-ui-components/src/FxPopper/content/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxPopper/index.js +24 -0
- package/dist/fixefy-ui-components/src/FxPopper/styles/popper.styles.js +138 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/FxProgressCircle.js +65 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/ProgressCounter.js +168 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxProgressCounter/styles/progress_counter.styles.js +66 -0
- package/dist/fixefy-ui-components/src/FxScore/FxScore.js +215 -0
- package/dist/fixefy-ui-components/src/FxScore/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxScore/styles/score.styles.js +102 -0
- package/dist/fixefy-ui-components/src/FxShowMore/FxShowMore.js +80 -0
- package/dist/fixefy-ui-components/src/FxShowMore/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxShowMore/styles/show_more.styles.js +143 -0
- package/dist/fixefy-ui-components/src/FxSlider/FxSlider.js +49 -0
- package/dist/fixefy-ui-components/src/FxSlider/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/FxStatisticsBar.js +198 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxStatisticsBar/styles/statistics.styles.js +103 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/FxStatusBar.js +149 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/helpers/constants.js +22 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxStatusBar/styles/statusBar.styles.js +138 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/FxStrStaticDropdown.js +382 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/helpers/helpers.js +22 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxStrStaticDropdown/styles/dropdown.styles.js +190 -0
- package/dist/fixefy-ui-components/src/FxStyledButton/FxStyledButton.js +57 -0
- package/dist/fixefy-ui-components/src/FxStyledButton/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxStyledComponents/index.js +319 -0
- package/dist/fixefy-ui-components/src/FxSwitch/FxSwitch.js +106 -0
- package/dist/fixefy-ui-components/src/FxSwitch/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxSwitch/styles/switch.styles.js +42 -0
- package/dist/fixefy-ui-components/src/FxTabs/FxTabs.js +79 -0
- package/dist/fixefy-ui-components/src/FxTabs/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxTag/FxTag.js +50 -0
- package/dist/fixefy-ui-components/src/FxTag/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxTag/styles/tag.styles.js +106 -0
- package/dist/fixefy-ui-components/src/FxTextField/FxTextField.js +211 -0
- package/dist/fixefy-ui-components/src/FxTextField/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxTodo/FxTodo.js +95 -0
- package/dist/fixefy-ui-components/src/FxTodo/index.js +22 -0
- package/dist/fixefy-ui-components/src/FxTodo/styles/todo.styles.js +183 -0
- package/dist/fixefy-ui-components/src/FxToggleButtons/FxToggleButtons.js +69 -0
- package/dist/fixefy-ui-components/src/FxToggleButtons/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxUserImage/FxUserImage.js +236 -0
- package/dist/fixefy-ui-components/src/FxUserImage/index.js +11 -0
- package/dist/fixefy-ui-components/src/FxWizard/FxWizard.js +50 -0
- package/dist/fixefy-ui-components/src/FxWizard/index.js +19 -0
- package/dist/fixefy-ui-components/src/FxWizard/steps launcher/StepsLauncher.js +52 -0
- package/dist/fixefy-ui-components/src/FxWizard/steps launcher/index.js +18 -0
- package/dist/fixefy-ui-components/src/index.js +277 -0
- package/package.json +4 -5
|
@@ -0,0 +1,211 @@
|
|
|
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
|
+
InputWrapper: function() {
|
|
13
|
+
return InputWrapper;
|
|
14
|
+
},
|
|
15
|
+
Loading: function() {
|
|
16
|
+
return Loading;
|
|
17
|
+
},
|
|
18
|
+
Root: function() {
|
|
19
|
+
return Root;
|
|
20
|
+
},
|
|
21
|
+
StyledListBox: function() {
|
|
22
|
+
return StyledListBox;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const _styles = require("@mui/material/styles");
|
|
26
|
+
function _define_property(obj, key, value) {
|
|
27
|
+
if (key in obj) {
|
|
28
|
+
Object.defineProperty(obj, key, {
|
|
29
|
+
value: value,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
obj[key] = value;
|
|
36
|
+
}
|
|
37
|
+
return obj;
|
|
38
|
+
}
|
|
39
|
+
function _object_spread(target) {
|
|
40
|
+
for(var i = 1; i < arguments.length; i++){
|
|
41
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
42
|
+
var ownKeys = Object.keys(source);
|
|
43
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
44
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
ownKeys.forEach(function(key) {
|
|
49
|
+
_define_property(target, key, source[key]);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
}
|
|
54
|
+
function ownKeys(object, enumerableOnly) {
|
|
55
|
+
var keys = Object.keys(object);
|
|
56
|
+
if (Object.getOwnPropertySymbols) {
|
|
57
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
58
|
+
if (enumerableOnly) {
|
|
59
|
+
symbols = symbols.filter(function(sym) {
|
|
60
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
keys.push.apply(keys, symbols);
|
|
64
|
+
}
|
|
65
|
+
return keys;
|
|
66
|
+
}
|
|
67
|
+
function _object_spread_props(target, source) {
|
|
68
|
+
source = source != null ? source : {};
|
|
69
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
70
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
71
|
+
} else {
|
|
72
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
73
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return target;
|
|
77
|
+
}
|
|
78
|
+
const Root = (0, _styles.styled)('div')(({ props })=>{
|
|
79
|
+
return _object_spread_props(_object_spread({
|
|
80
|
+
color: 'rgba(0,0,0,.85)',
|
|
81
|
+
fontSize: 14,
|
|
82
|
+
background: '#FFFFFF',
|
|
83
|
+
padding: '0 16px',
|
|
84
|
+
position: 'relative',
|
|
85
|
+
' & .MuiBox-root': {
|
|
86
|
+
['& > div']: {
|
|
87
|
+
padding: 0
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
minWidth: 270
|
|
91
|
+
}, props), {
|
|
92
|
+
width: 'min-content'
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
const Loading = (0, _styles.styled)('div')(()=>({
|
|
96
|
+
width: 30,
|
|
97
|
+
height: 30,
|
|
98
|
+
display: 'flex',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
['& span']: {
|
|
102
|
+
width: '20px !important',
|
|
103
|
+
height: '20px !important'
|
|
104
|
+
}
|
|
105
|
+
}));
|
|
106
|
+
const InputWrapper = (0, _styles.styled)('div')(({ theme, hasValue, disabled })=>{
|
|
107
|
+
const disabledBorder = `1px solid ${theme.palette.greyscale[200]}`;
|
|
108
|
+
const activeBorder = `1px solid ${theme.palette.primary[500]}`;
|
|
109
|
+
return {
|
|
110
|
+
backgroundColor: theme.palette.common.white,
|
|
111
|
+
borderRadius: 4,
|
|
112
|
+
padding: 1,
|
|
113
|
+
display: 'flex',
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
flexWrap: 'wrap',
|
|
116
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
117
|
+
width: '100%',
|
|
118
|
+
border: 'none !important',
|
|
119
|
+
outline: 'none !important',
|
|
120
|
+
['&:hover']: {
|
|
121
|
+
border: disabled ? disabledBorder : activeBorder,
|
|
122
|
+
borderRadius: 4
|
|
123
|
+
},
|
|
124
|
+
['&:focus']: {
|
|
125
|
+
border: disabled ? disabledBorder : activeBorder,
|
|
126
|
+
borderRadius: 4
|
|
127
|
+
},
|
|
128
|
+
['& > svg']: {
|
|
129
|
+
color: disabled ? theme.palette.greyscale[300] : theme.palette.primary['500'],
|
|
130
|
+
marginRight: 8
|
|
131
|
+
},
|
|
132
|
+
['& input']: _object_spread_props(_object_spread({
|
|
133
|
+
border: 'none',
|
|
134
|
+
outline: 'none',
|
|
135
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
136
|
+
backgroundColor: theme.palette.common.white,
|
|
137
|
+
color: theme.palette.typography.title,
|
|
138
|
+
height: 36,
|
|
139
|
+
boxSizing: 'border-box',
|
|
140
|
+
width: 0,
|
|
141
|
+
minWidth: 30,
|
|
142
|
+
flexGrow: 1,
|
|
143
|
+
margin: 0
|
|
144
|
+
}, theme.typography.body1), {
|
|
145
|
+
lineHeight: '20px',
|
|
146
|
+
['& ::placeholder']: {
|
|
147
|
+
color: hasValue ? theme.palette.typography.title : theme.palette.greyscale[400]
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>{
|
|
153
|
+
return {
|
|
154
|
+
margin: 0,
|
|
155
|
+
padding: '8px 0px',
|
|
156
|
+
listStyle: 'none',
|
|
157
|
+
backgroundColor: theme.palette.common.white,
|
|
158
|
+
overflow: 'auto',
|
|
159
|
+
zIndex: 1,
|
|
160
|
+
textOverflow: 'ellipsis',
|
|
161
|
+
whiteSpace: 'nowrap',
|
|
162
|
+
overflowX: 'hidden',
|
|
163
|
+
minWidth: 270,
|
|
164
|
+
'&::-webkit-scrollbar': {
|
|
165
|
+
width: '8px',
|
|
166
|
+
backgroundColor: 'transparent'
|
|
167
|
+
},
|
|
168
|
+
'&::-webkit-scrollbar-thumb': {
|
|
169
|
+
backgroundColor: '#8B9092',
|
|
170
|
+
borderRadius: '8px'
|
|
171
|
+
},
|
|
172
|
+
// To support Firefox
|
|
173
|
+
scrollbarWidth: 'thin',
|
|
174
|
+
scrollbarColor: '#8B9092 transparent',
|
|
175
|
+
maxHeight: '300px',
|
|
176
|
+
overflowY: 'auto',
|
|
177
|
+
['& div']: {
|
|
178
|
+
textOverflow: 'ellipsis',
|
|
179
|
+
whiteSpace: 'nowrap',
|
|
180
|
+
overflow: 'hidden',
|
|
181
|
+
margin: 'auto 0'
|
|
182
|
+
},
|
|
183
|
+
['& li']: {
|
|
184
|
+
display: 'flex',
|
|
185
|
+
alignItems: 'center',
|
|
186
|
+
justifyContent: 'flex-start',
|
|
187
|
+
height: 40,
|
|
188
|
+
cursor: 'pointer',
|
|
189
|
+
textOverflow: 'ellipsis',
|
|
190
|
+
whiteSpace: 'nowrap',
|
|
191
|
+
overflow: 'hidden',
|
|
192
|
+
width: '100%',
|
|
193
|
+
minWidth: 270,
|
|
194
|
+
marginBottom: 2
|
|
195
|
+
},
|
|
196
|
+
['& li:hover']: {
|
|
197
|
+
backgroundColor: '#F6F9FA'
|
|
198
|
+
},
|
|
199
|
+
['& li[aria-selected=\'true\']']: {
|
|
200
|
+
fontWeight: 900,
|
|
201
|
+
backgroundColor: '#F6F9FA'
|
|
202
|
+
},
|
|
203
|
+
['& li[data-focus=\'true\']']: {
|
|
204
|
+
backgroundColor: '#F6F9FA',
|
|
205
|
+
cursor: 'pointer',
|
|
206
|
+
['& svg ']: {
|
|
207
|
+
color: 'currentColor'
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
});
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
FxPopper: function() {
|
|
13
|
+
return FxPopper;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return _default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
21
|
+
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
22
|
+
const _Popper = /*#__PURE__*/ _interop_require_default(require("@mui/material/Popper"));
|
|
23
|
+
function _interop_require_default(obj) {
|
|
24
|
+
return obj && obj.__esModule ? obj : {
|
|
25
|
+
default: obj
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
29
|
+
if (typeof WeakMap !== "function") return null;
|
|
30
|
+
var cacheBabelInterop = new WeakMap();
|
|
31
|
+
var cacheNodeInterop = new WeakMap();
|
|
32
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
+
})(nodeInterop);
|
|
35
|
+
}
|
|
36
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
37
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
+
return obj;
|
|
39
|
+
}
|
|
40
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
41
|
+
return {
|
|
42
|
+
default: obj
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
46
|
+
if (cache && cache.has(obj)) {
|
|
47
|
+
return cache.get(obj);
|
|
48
|
+
}
|
|
49
|
+
var newObj = {
|
|
50
|
+
__proto__: null
|
|
51
|
+
};
|
|
52
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
53
|
+
for(var key in obj){
|
|
54
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
55
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
56
|
+
if (desc && (desc.get || desc.set)) {
|
|
57
|
+
Object.defineProperty(newObj, key, desc);
|
|
58
|
+
} else {
|
|
59
|
+
newObj[key] = obj[key];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
newObj.default = obj;
|
|
64
|
+
if (cache) {
|
|
65
|
+
cache.set(obj, newObj);
|
|
66
|
+
}
|
|
67
|
+
return newObj;
|
|
68
|
+
}
|
|
69
|
+
const useStyles = (0, _fixefyuiutils.makeStyles)()((theme)=>({
|
|
70
|
+
popper: {
|
|
71
|
+
left: '10px !important',
|
|
72
|
+
zIndex: 4,
|
|
73
|
+
width: '300px',
|
|
74
|
+
maxHeight: '500px'
|
|
75
|
+
},
|
|
76
|
+
popperArrow: {
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
fontSize: 7,
|
|
79
|
+
width: '1em',
|
|
80
|
+
height: '3em',
|
|
81
|
+
left: 0,
|
|
82
|
+
marginLeft: '-0.9em',
|
|
83
|
+
'&::before': {
|
|
84
|
+
content: '""',
|
|
85
|
+
margin: 'auto',
|
|
86
|
+
display: 'block',
|
|
87
|
+
width: 0,
|
|
88
|
+
height: 0,
|
|
89
|
+
borderStyle: 'solid',
|
|
90
|
+
borderWidth: '1em 1em 1em 0',
|
|
91
|
+
borderColor: `transparent ${theme.palette.greyscale.light} transparent transparent`,
|
|
92
|
+
filter: 'drop-shadow(-1px 0px 1px rgba(0,0,0,.3))'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}));
|
|
96
|
+
const FxPopper = ({ anchorEl, children, placement, open, arrow = true, preventOverflow = 'scrollParent' })=>{
|
|
97
|
+
const { classes } = useStyles();
|
|
98
|
+
const [arrowRef, setArrowRef] = (0, _react.useState)(null);
|
|
99
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Popper.default, {
|
|
100
|
+
open: open,
|
|
101
|
+
anchorEl: anchorEl,
|
|
102
|
+
placement: placement,
|
|
103
|
+
disablePortal: false,
|
|
104
|
+
className: classes.popper,
|
|
105
|
+
modifiers: [
|
|
106
|
+
{
|
|
107
|
+
name: 'flip',
|
|
108
|
+
enabled: true,
|
|
109
|
+
options: {
|
|
110
|
+
fallbackPlacements: [
|
|
111
|
+
'middle'
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'arrow',
|
|
117
|
+
enabled: true,
|
|
118
|
+
options: {
|
|
119
|
+
element: arrowRef
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'preventOverflow',
|
|
124
|
+
enabled: preventOverflow !== 'disabled',
|
|
125
|
+
options: {
|
|
126
|
+
boundary: preventOverflow === 'disabled' ? 'scrollParent' : preventOverflow
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
children: [
|
|
131
|
+
arrow ? /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
132
|
+
className: classes.popperArrow,
|
|
133
|
+
ref: setArrowRef
|
|
134
|
+
}) : null,
|
|
135
|
+
children
|
|
136
|
+
]
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const _default = _Popper.default;
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
PopperWithOutside: function() {
|
|
13
|
+
return PopperWithOutside;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return _default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
21
|
+
const _popperstyles = require("./styles/popper.styles");
|
|
22
|
+
const _Fade = /*#__PURE__*/ _interop_require_default(require("@mui/material/Fade"));
|
|
23
|
+
const _ClickAwayListener = /*#__PURE__*/ _interop_require_default(require("@mui/material/ClickAwayListener"));
|
|
24
|
+
const _clsx = /*#__PURE__*/ _interop_require_default(require("clsx"));
|
|
25
|
+
function _define_property(obj, key, value) {
|
|
26
|
+
if (key in obj) {
|
|
27
|
+
Object.defineProperty(obj, key, {
|
|
28
|
+
value: value,
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
obj[key] = value;
|
|
35
|
+
}
|
|
36
|
+
return obj;
|
|
37
|
+
}
|
|
38
|
+
function _interop_require_default(obj) {
|
|
39
|
+
return obj && obj.__esModule ? obj : {
|
|
40
|
+
default: obj
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function _object_spread(target) {
|
|
44
|
+
for(var i = 1; i < arguments.length; i++){
|
|
45
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
46
|
+
var ownKeys = Object.keys(source);
|
|
47
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
48
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
ownKeys.forEach(function(key) {
|
|
53
|
+
_define_property(target, key, source[key]);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return target;
|
|
57
|
+
}
|
|
58
|
+
function ownKeys(object, enumerableOnly) {
|
|
59
|
+
var keys = Object.keys(object);
|
|
60
|
+
if (Object.getOwnPropertySymbols) {
|
|
61
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
62
|
+
if (enumerableOnly) {
|
|
63
|
+
symbols = symbols.filter(function(sym) {
|
|
64
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
keys.push.apply(keys, symbols);
|
|
68
|
+
}
|
|
69
|
+
return keys;
|
|
70
|
+
}
|
|
71
|
+
function _object_spread_props(target, source) {
|
|
72
|
+
source = source != null ? source : {};
|
|
73
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
74
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
75
|
+
} else {
|
|
76
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
77
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return target;
|
|
81
|
+
}
|
|
82
|
+
const PopperWithOutside = ({ open, anchorEl, placement, children, onClickAway, modifiers = [], className, disablePortal, setArrowRef, arrowColor, arrow = true })=>{
|
|
83
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_popperstyles.PopperStyled, {
|
|
84
|
+
style: {
|
|
85
|
+
zIndex: 1300
|
|
86
|
+
},
|
|
87
|
+
open: open,
|
|
88
|
+
anchorEl: anchorEl,
|
|
89
|
+
placement: placement,
|
|
90
|
+
disablePortal: disablePortal,
|
|
91
|
+
className: (0, _clsx.default)([
|
|
92
|
+
className
|
|
93
|
+
]),
|
|
94
|
+
transition: true,
|
|
95
|
+
modifiers: modifiers,
|
|
96
|
+
arrowColor: arrowColor,
|
|
97
|
+
children: ({ TransitionProps })=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_ClickAwayListener.default, {
|
|
98
|
+
onClickAway: onClickAway,
|
|
99
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
100
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Fade.default, _object_spread_props(_object_spread({}, TransitionProps), {
|
|
101
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
102
|
+
children: [
|
|
103
|
+
arrow ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_popperstyles.PopperArrow, {
|
|
104
|
+
"data-popper-arrow": true,
|
|
105
|
+
className: "popper-arrow",
|
|
106
|
+
ref: setArrowRef
|
|
107
|
+
}) : null,
|
|
108
|
+
children
|
|
109
|
+
]
|
|
110
|
+
})
|
|
111
|
+
}))
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const _default = PopperWithOutside;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "PopperHeader", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return PopperHeader;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
const _styles = require("@mui/material/styles");
|
|
14
|
+
function _interop_require_default(obj) {
|
|
15
|
+
return obj && obj.__esModule ? obj : {
|
|
16
|
+
default: obj
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const PopperHeaderStyled = (0, _styles.styled)('div')(({ theme })=>({
|
|
20
|
+
height: '50px',
|
|
21
|
+
background: '#568793',
|
|
22
|
+
color: theme.palette.common.white,
|
|
23
|
+
padding: '0 17px',
|
|
24
|
+
display: 'grid',
|
|
25
|
+
gridAutoFlow: 'column',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'space-between'
|
|
28
|
+
}));
|
|
29
|
+
const PopperHeader = ({ children, icon })=>{
|
|
30
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(PopperHeaderStyled, {
|
|
31
|
+
children: [
|
|
32
|
+
children,
|
|
33
|
+
icon && icon
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "PopperHeader", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _PopperHeader.PopperHeader;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _PopperHeader = require("./PopperHeader");
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
Arrow: function() {
|
|
13
|
+
return _popperstyles.Arrow;
|
|
14
|
+
},
|
|
15
|
+
PopperHeader: function() {
|
|
16
|
+
return _content.PopperHeader;
|
|
17
|
+
},
|
|
18
|
+
PopperWithOutside: function() {
|
|
19
|
+
return _PopperWithOutside.PopperWithOutside;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _popperstyles = require("./styles/popper.styles");
|
|
23
|
+
const _content = require("./content");
|
|
24
|
+
const _PopperWithOutside = require("./PopperWithOutside");
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
Arrow: function() {
|
|
13
|
+
return Arrow;
|
|
14
|
+
},
|
|
15
|
+
PopperArrow: function() {
|
|
16
|
+
return PopperArrow;
|
|
17
|
+
},
|
|
18
|
+
PopperStyled: function() {
|
|
19
|
+
return PopperStyled;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _Popper = /*#__PURE__*/ _interop_require_default(require("@mui/material/Popper"));
|
|
23
|
+
const _styles = require("@mui/material/styles");
|
|
24
|
+
function _interop_require_default(obj) {
|
|
25
|
+
return obj && obj.__esModule ? obj : {
|
|
26
|
+
default: obj
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const PopperArrow = (0, _styles.styled)('div')(({ theme })=>({
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
fontSize: 7,
|
|
32
|
+
width: '0.5em',
|
|
33
|
+
height: '3em',
|
|
34
|
+
left: 0,
|
|
35
|
+
marginLeft: '-4px',
|
|
36
|
+
top: '78px',
|
|
37
|
+
'&::before': {
|
|
38
|
+
content: '""',
|
|
39
|
+
margin: 'auto',
|
|
40
|
+
display: 'block',
|
|
41
|
+
width: 0,
|
|
42
|
+
height: 0,
|
|
43
|
+
borderStyle: 'solid',
|
|
44
|
+
borderWidth: '8px 6px 8px 2px',
|
|
45
|
+
//@ts-expect-error 700 is OK
|
|
46
|
+
borderColor: `transparent ${theme.palette.primary[700]} transparent transparent`,
|
|
47
|
+
filter: 'drop-shadow(0px 0px 10px rgba(86, 135, 147, 0.2))'
|
|
48
|
+
}
|
|
49
|
+
}));
|
|
50
|
+
const PopperStyled = (0, _styles.styled)(_Popper.default, {
|
|
51
|
+
shouldForwardProp: (prop)=>prop !== 'arrow'
|
|
52
|
+
})(({ theme, arrow, arrowColor = theme.palette.primary[700] })=>({
|
|
53
|
+
// maxHeight: '500px',
|
|
54
|
+
zIndex: 1,
|
|
55
|
+
'& > div': {
|
|
56
|
+
position: 'relative'
|
|
57
|
+
},
|
|
58
|
+
'&[data-popper-placement*="bottom"]': {
|
|
59
|
+
'& > div': {
|
|
60
|
+
marginTop: arrow ? 2 : 0
|
|
61
|
+
},
|
|
62
|
+
'& .popper-arrow': {
|
|
63
|
+
top: 0,
|
|
64
|
+
left: 0,
|
|
65
|
+
marginTop: '-1em',
|
|
66
|
+
width: '3em',
|
|
67
|
+
height: '1em',
|
|
68
|
+
'&::before': {
|
|
69
|
+
borderWidth: '0 1em 1em 1em',
|
|
70
|
+
borderColor: `transparent transparent ${arrowColor} transparent`,
|
|
71
|
+
filter: 'drop-shadow(-1.1px 0px 1px rgba(0,0,0,.2))'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
'&[data-popper-placement*="top"]': {
|
|
76
|
+
'& > div': {
|
|
77
|
+
marginBottom: arrow ? 2 : 0
|
|
78
|
+
},
|
|
79
|
+
'& .popper-arrow': {
|
|
80
|
+
bottom: 0,
|
|
81
|
+
left: 0,
|
|
82
|
+
marginBottom: '-1em',
|
|
83
|
+
width: '3em',
|
|
84
|
+
height: '1em',
|
|
85
|
+
'&::before': {
|
|
86
|
+
borderWidth: '1em 1em 0 1em',
|
|
87
|
+
borderColor: `${arrowColor} transparent transparent transparent`,
|
|
88
|
+
filter: 'drop-shadow(-1.1px 0px 1px rgba(0,0,0,.2))'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
'&[data-popper-placement*="right"]': {
|
|
93
|
+
'& > div': {
|
|
94
|
+
marginLeft: arrow ? 2 : 0
|
|
95
|
+
},
|
|
96
|
+
'& .popper-arrow': {
|
|
97
|
+
left: 0,
|
|
98
|
+
marginLeft: '-1em',
|
|
99
|
+
height: '3em',
|
|
100
|
+
width: '1em',
|
|
101
|
+
'&::before': {
|
|
102
|
+
borderWidth: '1em 1em 1em 0',
|
|
103
|
+
borderColor: `transparent ${arrowColor} transparent transparent`,
|
|
104
|
+
filter: 'drop-shadow(-1.1px 0px 1px rgba(0,0,0,.2))'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
'&[data-popper-placement*="left"]': {
|
|
109
|
+
'& > div': {
|
|
110
|
+
marginRight: arrow ? 2 : 0
|
|
111
|
+
},
|
|
112
|
+
'& .popper-arrow': {
|
|
113
|
+
right: 0,
|
|
114
|
+
marginRight: '-1em',
|
|
115
|
+
height: '3em',
|
|
116
|
+
width: '1em',
|
|
117
|
+
'&::before': {
|
|
118
|
+
borderWidth: '1em 0 1em 1em',
|
|
119
|
+
borderColor: `transparent transparent transparent ${arrowColor}`,
|
|
120
|
+
filter: 'drop-shadow(-1.1px 0px 1px rgba(0,0,0,.2))'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}));
|
|
125
|
+
const Arrow = (0, _styles.styled)('div')({
|
|
126
|
+
position: 'absolute',
|
|
127
|
+
fontSize: 7,
|
|
128
|
+
width: '3em',
|
|
129
|
+
height: '3em',
|
|
130
|
+
'&::before': {
|
|
131
|
+
content: '""',
|
|
132
|
+
margin: 'auto',
|
|
133
|
+
display: 'block',
|
|
134
|
+
width: 0,
|
|
135
|
+
height: 0,
|
|
136
|
+
borderStyle: 'solid'
|
|
137
|
+
}
|
|
138
|
+
});
|