@fixefy/fixefy-ui-components 0.3.73 → 0.3.75
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/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 +18 -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.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.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.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/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 -30
- 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/FxButton.js +0 -106
- 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/index.js +0 -19
- 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,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "useStyles", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return useStyles;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _styles = require("@mui/styles");
|
|
12
|
-
require("@fixefy/fixefy-ui-utils");
|
|
13
|
-
function _define_property(obj, key, value) {
|
|
14
|
-
if (key in obj) {
|
|
15
|
-
Object.defineProperty(obj, key, {
|
|
16
|
-
value: value,
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true
|
|
20
|
-
});
|
|
21
|
-
} else {
|
|
22
|
-
obj[key] = value;
|
|
23
|
-
}
|
|
24
|
-
return obj;
|
|
25
|
-
}
|
|
26
|
-
function _object_spread(target) {
|
|
27
|
-
for(var i = 1; i < arguments.length; i++){
|
|
28
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
29
|
-
var ownKeys = Object.keys(source);
|
|
30
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
31
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
32
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
ownKeys.forEach(function(key) {
|
|
36
|
-
_define_property(target, key, source[key]);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return target;
|
|
40
|
-
}
|
|
41
|
-
function ownKeys(object, enumerableOnly) {
|
|
42
|
-
var keys = Object.keys(object);
|
|
43
|
-
if (Object.getOwnPropertySymbols) {
|
|
44
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
45
|
-
if (enumerableOnly) {
|
|
46
|
-
symbols = symbols.filter(function(sym) {
|
|
47
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
keys.push.apply(keys, symbols);
|
|
51
|
-
}
|
|
52
|
-
return keys;
|
|
53
|
-
}
|
|
54
|
-
function _object_spread_props(target, source) {
|
|
55
|
-
source = source != null ? source : {};
|
|
56
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
57
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
58
|
-
} else {
|
|
59
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
60
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
return target;
|
|
64
|
-
}
|
|
65
|
-
const useStyles = (0, _styles.makeStyles)((theme)=>({
|
|
66
|
-
container: {
|
|
67
|
-
display: 'flex',
|
|
68
|
-
alignItems: 'center',
|
|
69
|
-
justifyContent: 'center',
|
|
70
|
-
flexDirection: 'column',
|
|
71
|
-
minHeight: 56
|
|
72
|
-
},
|
|
73
|
-
contrastLabel: {
|
|
74
|
-
fontWeight: 'normal',
|
|
75
|
-
fontSize: 11,
|
|
76
|
-
lineHeight: '16px',
|
|
77
|
-
letterSpacing: '0.1px',
|
|
78
|
-
opacity: 0.7,
|
|
79
|
-
color: theme.palette.common.white,
|
|
80
|
-
textOverflow: 'ellipsis',
|
|
81
|
-
whiteSpace: 'nowrap'
|
|
82
|
-
},
|
|
83
|
-
contrastValue: {
|
|
84
|
-
fontWeight: 600,
|
|
85
|
-
fontSize: 19,
|
|
86
|
-
lineHeight: '28px',
|
|
87
|
-
letterSpacing: '0.15px',
|
|
88
|
-
color: theme.palette.common.white
|
|
89
|
-
},
|
|
90
|
-
label: _object_spread_props(_object_spread({}, theme.typography.table), {
|
|
91
|
-
color: theme.palette.statistics.label,
|
|
92
|
-
textOverflow: 'ellipsis',
|
|
93
|
-
whiteSpace: 'nowrap'
|
|
94
|
-
}),
|
|
95
|
-
value: _object_spread_props(_object_spread({}, theme.typography.h5), {
|
|
96
|
-
color: theme.palette.statistics.value
|
|
97
|
-
})
|
|
98
|
-
}));
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "FxStatusBar", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return FxStatusBar;
|
|
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 _FxChip = require("../FxChip");
|
|
15
|
-
const _constants = require("./helpers/constants");
|
|
16
|
-
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
17
|
-
const _statusBarstyles = require("./styles/statusBar.styles");
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
19
|
-
if (typeof WeakMap !== "function") return null;
|
|
20
|
-
var cacheBabelInterop = new WeakMap();
|
|
21
|
-
var cacheNodeInterop = new WeakMap();
|
|
22
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
23
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
24
|
-
})(nodeInterop);
|
|
25
|
-
}
|
|
26
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
27
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
28
|
-
return obj;
|
|
29
|
-
}
|
|
30
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
31
|
-
return {
|
|
32
|
-
default: obj
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
36
|
-
if (cache && cache.has(obj)) {
|
|
37
|
-
return cache.get(obj);
|
|
38
|
-
}
|
|
39
|
-
var newObj = {
|
|
40
|
-
__proto__: null
|
|
41
|
-
};
|
|
42
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
43
|
-
for(var key in obj){
|
|
44
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
45
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
46
|
-
if (desc && (desc.get || desc.set)) {
|
|
47
|
-
Object.defineProperty(newObj, key, desc);
|
|
48
|
-
} else {
|
|
49
|
-
newObj[key] = obj[key];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
newObj.default = obj;
|
|
54
|
-
if (cache) {
|
|
55
|
-
cache.set(obj, newObj);
|
|
56
|
-
}
|
|
57
|
-
return newObj;
|
|
58
|
-
}
|
|
59
|
-
const FxStatusBar = ({ onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant = 'filled' })=>{
|
|
60
|
-
const [selectedStatus, setSelectedStatus] = (0, _react.useState)([]);
|
|
61
|
-
const [searchValue] = (0, _react.useState)('');
|
|
62
|
-
(0, _react.useEffect)(()=>{
|
|
63
|
-
if (defaultStatus) {
|
|
64
|
-
typeof defaultStatus === 'string' ? setSelectedStatus([
|
|
65
|
-
defaultStatus
|
|
66
|
-
]) : setSelectedStatus(defaultStatus);
|
|
67
|
-
} else {
|
|
68
|
-
setSelectedStatus([
|
|
69
|
-
'all'
|
|
70
|
-
]);
|
|
71
|
-
}
|
|
72
|
-
}, [
|
|
73
|
-
defaultStatus
|
|
74
|
-
]);
|
|
75
|
-
const onStatusClick = (status)=>{
|
|
76
|
-
if (status === 'all') {
|
|
77
|
-
setSelectedStatus(()=>{
|
|
78
|
-
if (selectedStatus.includes(status)) {
|
|
79
|
-
return [];
|
|
80
|
-
} else {
|
|
81
|
-
return [
|
|
82
|
-
'all'
|
|
83
|
-
];
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
} else {
|
|
87
|
-
setSelectedStatus((prevState)=>{
|
|
88
|
-
if (selectedStatus.includes(status)) {
|
|
89
|
-
const rv = prevState.filter((_status)=>_status !== status && _status !== 'all');
|
|
90
|
-
return rv.length == 0 ? [
|
|
91
|
-
'all'
|
|
92
|
-
] : rv;
|
|
93
|
-
} else {
|
|
94
|
-
const rv = prevState.filter((_status)=>_status !== status && _status !== 'all');
|
|
95
|
-
return [
|
|
96
|
-
...rv,
|
|
97
|
-
status
|
|
98
|
-
];
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
(0, _react.useEffect)(()=>{
|
|
104
|
-
onChangeStatus(selectedStatus);
|
|
105
|
-
}, [
|
|
106
|
-
selectedStatus
|
|
107
|
-
]);
|
|
108
|
-
(0, _react.useEffect)(()=>{
|
|
109
|
-
onSearch && onSearch(searchValue);
|
|
110
|
-
}, [
|
|
111
|
-
searchValue
|
|
112
|
-
]);
|
|
113
|
-
const __options = options !== null && options !== void 0 ? options : _constants.statuses;
|
|
114
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_statusBarstyles.StatusBarCard, {
|
|
115
|
-
children: [
|
|
116
|
-
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(_statusBarstyles.StatusBarTitle, {
|
|
117
|
-
style: {
|
|
118
|
-
marginRight: '8px'
|
|
119
|
-
},
|
|
120
|
-
children: (0, _fixefyuiutils.titleCase)(title)
|
|
121
|
-
}),
|
|
122
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
123
|
-
direction: "row",
|
|
124
|
-
spacing: 1,
|
|
125
|
-
children: [
|
|
126
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_statusBarstyles.StatusChipStyled, {
|
|
127
|
-
onClick: ()=>onStatusClick('all'),
|
|
128
|
-
label: "All",
|
|
129
|
-
variant: selectedStatus.includes('all') ? 'filled' : 'outlined'
|
|
130
|
-
}),
|
|
131
|
-
Object.keys(__options).map((key, index)=>{
|
|
132
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
|
|
133
|
-
onClick: ()=>onStatusClick(__options[key]),
|
|
134
|
-
label: (0, _fixefyuiutils.titleCase)(key),
|
|
135
|
-
variant: chipsVariant,
|
|
136
|
-
status: selectedStatus.includes(__options[key]) ? __options[key] : ''
|
|
137
|
-
}, index);
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
})
|
|
141
|
-
]
|
|
142
|
-
});
|
|
143
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "statuses", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return statuses;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const statuses = {
|
|
12
|
-
Declined: 'declined',
|
|
13
|
-
Pending: 'pending',
|
|
14
|
-
Approved: 'approved',
|
|
15
|
-
Active: 'active',
|
|
16
|
-
Challenge: 'challenged',
|
|
17
|
-
in_review: 'in_review',
|
|
18
|
-
Discrepancy: 'discrepancy',
|
|
19
|
-
no_pricing: 'no_pricing',
|
|
20
|
-
in_progress: 'in_progress',
|
|
21
|
-
Duplicated: 'duplicated'
|
|
22
|
-
};
|
|
@@ -1,22 +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
|
-
FxStatusBar: function() {
|
|
13
|
-
return _FxStatusBar.FxStatusBar;
|
|
14
|
-
},
|
|
15
|
-
Options: function() {
|
|
16
|
-
return _FxStatusBar.Options;
|
|
17
|
-
},
|
|
18
|
-
StatusBarPropsType: function() {
|
|
19
|
-
return _FxStatusBar.StatusBarPropsType;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _FxStatusBar = require("./FxStatusBar");
|
|
@@ -1,131 +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
|
-
StatusBarCard: function() {
|
|
13
|
-
return StatusBarCard;
|
|
14
|
-
},
|
|
15
|
-
StatusBarTitle: function() {
|
|
16
|
-
return StatusBarTitle;
|
|
17
|
-
},
|
|
18
|
-
StatusChipStyled: function() {
|
|
19
|
-
return StatusChipStyled;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _styles = require("@mui/material/styles");
|
|
23
|
-
const _material = require("@mui/material");
|
|
24
|
-
function _define_property(obj, key, value) {
|
|
25
|
-
if (key in obj) {
|
|
26
|
-
Object.defineProperty(obj, key, {
|
|
27
|
-
value: value,
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true
|
|
31
|
-
});
|
|
32
|
-
} else {
|
|
33
|
-
obj[key] = value;
|
|
34
|
-
}
|
|
35
|
-
return obj;
|
|
36
|
-
}
|
|
37
|
-
function _object_spread(target) {
|
|
38
|
-
for(var i = 1; i < arguments.length; i++){
|
|
39
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
40
|
-
var ownKeys = Object.keys(source);
|
|
41
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
42
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
43
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
ownKeys.forEach(function(key) {
|
|
47
|
-
_define_property(target, key, source[key]);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return target;
|
|
51
|
-
}
|
|
52
|
-
function ownKeys(object, enumerableOnly) {
|
|
53
|
-
var keys = Object.keys(object);
|
|
54
|
-
if (Object.getOwnPropertySymbols) {
|
|
55
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
56
|
-
if (enumerableOnly) {
|
|
57
|
-
symbols = symbols.filter(function(sym) {
|
|
58
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
keys.push.apply(keys, symbols);
|
|
62
|
-
}
|
|
63
|
-
return keys;
|
|
64
|
-
}
|
|
65
|
-
function _object_spread_props(target, source) {
|
|
66
|
-
source = source != null ? source : {};
|
|
67
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
68
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
69
|
-
} else {
|
|
70
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
71
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return target;
|
|
75
|
-
}
|
|
76
|
-
const StatusBarCard = (0, _styles.styled)(_material.Box)(({ theme })=>({
|
|
77
|
-
background: theme.palette.common.white,
|
|
78
|
-
borderRadius: 4,
|
|
79
|
-
padding: 16,
|
|
80
|
-
boxShadow: "0px 0px 10px rgba(86, 135, 147, 0.3)",
|
|
81
|
-
display: "flex",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
width: "fit-content"
|
|
84
|
-
}));
|
|
85
|
-
const StatusBarTitle = (0, _styles.styled)("span")(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
86
|
-
color: theme.palette.common.black
|
|
87
|
-
}));
|
|
88
|
-
const StatusChipStyled = (0, _styles.styled)(_material.Chip)(({ theme, variant })=>{
|
|
89
|
-
let backgroundColor, border, labelColor;
|
|
90
|
-
if (variant === "filled") {
|
|
91
|
-
backgroundColor = theme.palette.primary.light;
|
|
92
|
-
labelColor = theme.palette.common.white;
|
|
93
|
-
} else {
|
|
94
|
-
backgroundColor = theme.palette.common.white;
|
|
95
|
-
}
|
|
96
|
-
border = "#F0F0F0";
|
|
97
|
-
return {
|
|
98
|
-
height: 20,
|
|
99
|
-
minWidth: 34,
|
|
100
|
-
maxWidth: 120,
|
|
101
|
-
["& .MuiChip-label"]: {
|
|
102
|
-
fontSize: 9,
|
|
103
|
-
fontWeight: 600,
|
|
104
|
-
lineHeight: "12px",
|
|
105
|
-
color: labelColor ? labelColor : theme.palette["statistics"].label
|
|
106
|
-
},
|
|
107
|
-
backgroundColor,
|
|
108
|
-
border: `1px solid ${border}`
|
|
109
|
-
};
|
|
110
|
-
}); // export const StatusBarSearchWrapper = styled("div")(({ theme }) => ({
|
|
111
|
-
// position: "relative",
|
|
112
|
-
// display: "flex",
|
|
113
|
-
// alignItems: "center",
|
|
114
|
-
// ["& input"]: {
|
|
115
|
-
// ...theme.typography.body1,
|
|
116
|
-
// color: theme.palette.statistics.label,
|
|
117
|
-
// paddingLeft: 40,
|
|
118
|
-
// width: "100%",
|
|
119
|
-
// },
|
|
120
|
-
// ["& svg"]: {å
|
|
121
|
-
// position: "absolute",
|
|
122
|
-
// left: 16,
|
|
123
|
-
// color: theme.palette.primary.light,
|
|
124
|
-
// },
|
|
125
|
-
// }));
|
|
126
|
-
// export const StatusBarSearchBar = styled("input")(({ theme }) => ({
|
|
127
|
-
// background: theme.palette.common.white,
|
|
128
|
-
// border: "1px solid #C6DDE2",
|
|
129
|
-
// borderRadius: 4,
|
|
130
|
-
// height: 36,
|
|
131
|
-
// }));
|