@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,106 @@
|
|
|
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
|
+
StyledCount: function() {
|
|
13
|
+
return StyledCount;
|
|
14
|
+
},
|
|
15
|
+
StyledLabel: function() {
|
|
16
|
+
return StyledLabel;
|
|
17
|
+
},
|
|
18
|
+
StyledTag: function() {
|
|
19
|
+
return StyledTag;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _styles = require("@mui/material/styles");
|
|
23
|
+
const _Box = /*#__PURE__*/ _interop_require_default(require("@mui/material/Box"));
|
|
24
|
+
const _Typography = /*#__PURE__*/ _interop_require_default(require("@mui/material/Typography"));
|
|
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 StyledTag = (0, _styles.styled)(_Box.default)(({ theme, name, type })=>{
|
|
83
|
+
var _theme_palette_type_name, _theme_palette_type, _theme_palette_tag_name, _theme_palette_type_name1, _theme_palette_type1, _theme_palette_tag_name1;
|
|
84
|
+
return {
|
|
85
|
+
background: type ? (_theme_palette_type = theme.palette[type]) === null || _theme_palette_type === void 0 ? void 0 : (_theme_palette_type_name = _theme_palette_type[name]) === null || _theme_palette_type_name === void 0 ? void 0 : _theme_palette_type_name.background : (_theme_palette_tag_name = theme.palette.tag[name]) === null || _theme_palette_tag_name === void 0 ? void 0 : _theme_palette_tag_name.background,
|
|
86
|
+
borderRadius: 8,
|
|
87
|
+
padding: '2px 8px',
|
|
88
|
+
border: `1px solid ${type ? (_theme_palette_type1 = theme.palette[type]) === null || _theme_palette_type1 === void 0 ? void 0 : (_theme_palette_type_name1 = _theme_palette_type1[name]) === null || _theme_palette_type_name1 === void 0 ? void 0 : _theme_palette_type_name1.border : (_theme_palette_tag_name1 = theme.palette.tag[name]) === null || _theme_palette_tag_name1 === void 0 ? void 0 : _theme_palette_tag_name1.border}`,
|
|
89
|
+
display: 'flex',
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
width: 'fit-content'
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
const StyledLabel = (0, _styles.styled)(_Typography.default)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.body1), {
|
|
95
|
+
lineHeight: '20px',
|
|
96
|
+
color: theme.palette.common.white
|
|
97
|
+
}));
|
|
98
|
+
const StyledCount = (0, _styles.styled)(_Typography.default)(({ theme, name, type })=>{
|
|
99
|
+
var _theme_palette_type_name, _theme_palette_type, _theme_palette_tag_name;
|
|
100
|
+
return _object_spread_props(_object_spread({}, theme.typography.subtitle2), {
|
|
101
|
+
lineHeight: '16px',
|
|
102
|
+
fontWeight: 700,
|
|
103
|
+
color: type ? (_theme_palette_type = theme.palette[type]) === null || _theme_palette_type === void 0 ? void 0 : (_theme_palette_type_name = _theme_palette_type[name]) === null || _theme_palette_type_name === void 0 ? void 0 : _theme_palette_type_name.background : (_theme_palette_tag_name = theme.palette.tag[name]) === null || _theme_palette_tag_name === void 0 ? void 0 : _theme_palette_tag_name.background,
|
|
104
|
+
marginLeft: 8
|
|
105
|
+
});
|
|
106
|
+
});
|
|
@@ -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
|
+
FxTextField: function() {
|
|
13
|
+
return FxTextField;
|
|
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 _FormControl = /*#__PURE__*/ _interop_require_default(require("@mui/material/FormControl"));
|
|
23
|
+
const _FormHelperText = /*#__PURE__*/ _interop_require_default(require("@mui/material/FormHelperText"));
|
|
24
|
+
const _InputBase = /*#__PURE__*/ _interop_require_default(require("@mui/material/InputBase"));
|
|
25
|
+
const _InputLabel = /*#__PURE__*/ _interop_require_default(require("@mui/material/InputLabel"));
|
|
26
|
+
const _ErrorRounded = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/ErrorRounded"));
|
|
27
|
+
function _define_property(obj, key, value) {
|
|
28
|
+
if (key in obj) {
|
|
29
|
+
Object.defineProperty(obj, key, {
|
|
30
|
+
value: value,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true,
|
|
33
|
+
writable: true
|
|
34
|
+
});
|
|
35
|
+
} else {
|
|
36
|
+
obj[key] = value;
|
|
37
|
+
}
|
|
38
|
+
return obj;
|
|
39
|
+
}
|
|
40
|
+
function _interop_require_default(obj) {
|
|
41
|
+
return obj && obj.__esModule ? obj : {
|
|
42
|
+
default: obj
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
46
|
+
if (typeof WeakMap !== "function") return null;
|
|
47
|
+
var cacheBabelInterop = new WeakMap();
|
|
48
|
+
var cacheNodeInterop = new WeakMap();
|
|
49
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
50
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
51
|
+
})(nodeInterop);
|
|
52
|
+
}
|
|
53
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
54
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
55
|
+
return obj;
|
|
56
|
+
}
|
|
57
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
58
|
+
return {
|
|
59
|
+
default: obj
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
63
|
+
if (cache && cache.has(obj)) {
|
|
64
|
+
return cache.get(obj);
|
|
65
|
+
}
|
|
66
|
+
var newObj = {
|
|
67
|
+
__proto__: null
|
|
68
|
+
};
|
|
69
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
70
|
+
for(var key in obj){
|
|
71
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
72
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
73
|
+
if (desc && (desc.get || desc.set)) {
|
|
74
|
+
Object.defineProperty(newObj, key, desc);
|
|
75
|
+
} else {
|
|
76
|
+
newObj[key] = obj[key];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
newObj.default = obj;
|
|
81
|
+
if (cache) {
|
|
82
|
+
cache.set(obj, newObj);
|
|
83
|
+
}
|
|
84
|
+
return newObj;
|
|
85
|
+
}
|
|
86
|
+
function _object_spread(target) {
|
|
87
|
+
for(var i = 1; i < arguments.length; i++){
|
|
88
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
89
|
+
var ownKeys = Object.keys(source);
|
|
90
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
91
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
92
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
ownKeys.forEach(function(key) {
|
|
96
|
+
_define_property(target, key, source[key]);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return target;
|
|
100
|
+
}
|
|
101
|
+
function ownKeys(object, enumerableOnly) {
|
|
102
|
+
var keys = Object.keys(object);
|
|
103
|
+
if (Object.getOwnPropertySymbols) {
|
|
104
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
105
|
+
if (enumerableOnly) {
|
|
106
|
+
symbols = symbols.filter(function(sym) {
|
|
107
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
keys.push.apply(keys, symbols);
|
|
111
|
+
}
|
|
112
|
+
return keys;
|
|
113
|
+
}
|
|
114
|
+
function _object_spread_props(target, source) {
|
|
115
|
+
source = source != null ? source : {};
|
|
116
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
117
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
118
|
+
} else {
|
|
119
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
120
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return target;
|
|
124
|
+
}
|
|
125
|
+
const FxTextField = ({ autoFocus, droppedItem, defaultValue = '', onChange, structure, endAdornment, startAdornment, required, helperText, error = false, errorText, disabled })=>{
|
|
126
|
+
const [value, setValue] = (0, _react.useState)(defaultValue);
|
|
127
|
+
const { input_type, extended: { placeholder, title_path }, title } = structure;
|
|
128
|
+
(0, _react.useEffect)(()=>{
|
|
129
|
+
if (droppedItem) {
|
|
130
|
+
const { item } = droppedItem;
|
|
131
|
+
setValue(item[title_path]);
|
|
132
|
+
}
|
|
133
|
+
}, [
|
|
134
|
+
droppedItem
|
|
135
|
+
]);
|
|
136
|
+
const _onChange = (e)=>{
|
|
137
|
+
onChange && onChange(e);
|
|
138
|
+
setValue(e.target.value);
|
|
139
|
+
};
|
|
140
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_FormControl.default, {
|
|
141
|
+
variant: "standard",
|
|
142
|
+
error: error,
|
|
143
|
+
children: [
|
|
144
|
+
title && /*#__PURE__*/ (0, _jsxruntime.jsx)(_InputLabel.default, {
|
|
145
|
+
shrink: true,
|
|
146
|
+
htmlFor: title,
|
|
147
|
+
sx: (theme)=>_object_spread(_object_spread_props(_object_spread({
|
|
148
|
+
color: theme.palette.greyscale.light,
|
|
149
|
+
'&.Mui-focused': {
|
|
150
|
+
color: theme.palette.greyscale.light
|
|
151
|
+
}
|
|
152
|
+
}, disabled && {
|
|
153
|
+
opacity: '0.3'
|
|
154
|
+
}), {
|
|
155
|
+
'&.Mui-error': {
|
|
156
|
+
color: theme.palette.greyscale.light
|
|
157
|
+
}
|
|
158
|
+
}), required && {
|
|
159
|
+
'&:before': {
|
|
160
|
+
content: '\'*\'',
|
|
161
|
+
color: theme.palette.redscale.main,
|
|
162
|
+
display: 'inline-block',
|
|
163
|
+
marginRight: '5px'
|
|
164
|
+
}
|
|
165
|
+
}),
|
|
166
|
+
children: (0, _fixefyuiutils.titleCase)(title)
|
|
167
|
+
}),
|
|
168
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_InputBase.default, {
|
|
169
|
+
endAdornment: endAdornment,
|
|
170
|
+
startAdornment: startAdornment,
|
|
171
|
+
id: title,
|
|
172
|
+
autoFocus: autoFocus ? autoFocus : false,
|
|
173
|
+
placeholder: (0, _fixefyuiutils.titleCase)(placeholder),
|
|
174
|
+
onChange: _onChange,
|
|
175
|
+
type: input_type && input_type.value,
|
|
176
|
+
value: value,
|
|
177
|
+
error: error
|
|
178
|
+
}),
|
|
179
|
+
error && errorText ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_FormHelperText.default, {
|
|
180
|
+
sx: (theme)=>({
|
|
181
|
+
'&.Mui-error': {
|
|
182
|
+
color: theme.palette.redscale.main
|
|
183
|
+
},
|
|
184
|
+
display: 'grid',
|
|
185
|
+
gridAutoFlow: 'column',
|
|
186
|
+
alignItems: 'center',
|
|
187
|
+
justifyContent: 'left',
|
|
188
|
+
columnGap: theme.spacing(0.6),
|
|
189
|
+
fontSize: '11px'
|
|
190
|
+
}),
|
|
191
|
+
children: [
|
|
192
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_ErrorRounded.default, {
|
|
193
|
+
sx: (theme)=>({
|
|
194
|
+
color: theme.palette.redscale.main,
|
|
195
|
+
width: 10,
|
|
196
|
+
height: 10
|
|
197
|
+
})
|
|
198
|
+
}),
|
|
199
|
+
(0, _fixefyuiutils.titleCase)(errorText)
|
|
200
|
+
]
|
|
201
|
+
}) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FormHelperText.default, {
|
|
202
|
+
sx: (theme)=>({
|
|
203
|
+
color: theme.palette.greyscale.light,
|
|
204
|
+
fontSize: '11px'
|
|
205
|
+
}),
|
|
206
|
+
children: helperText
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
const _default = FxTextField;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
FxTextField: function() {
|
|
13
|
+
return _FxTextField.FxTextField;
|
|
14
|
+
},
|
|
15
|
+
TextFieldPropsType: function() {
|
|
16
|
+
return _FxTextField.TextFieldPropsType;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _FxTextField = require("./FxTextField");
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxTodo", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxTodo;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
const _image = /*#__PURE__*/ _interop_require_default(require("next/image"));
|
|
14
|
+
const _FxAvatar = require("../FxAvatar");
|
|
15
|
+
const _Divider = /*#__PURE__*/ _interop_require_default(require("@mui/material/Divider"));
|
|
16
|
+
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
17
|
+
const _todostyles = require("./styles/todo.styles");
|
|
18
|
+
function _interop_require_default(obj) {
|
|
19
|
+
return obj && obj.__esModule ? obj : {
|
|
20
|
+
default: obj
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function FxTodo({ todo }) {
|
|
24
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_todostyles.TodoCard, {
|
|
25
|
+
children: [
|
|
26
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_todostyles.TodoCardHeader, {
|
|
27
|
+
children: [
|
|
28
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_todostyles.TodoCardPriority, {
|
|
29
|
+
priority: todo.priority,
|
|
30
|
+
children: [
|
|
31
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_image.default, {
|
|
32
|
+
alt: todo.title,
|
|
33
|
+
width: 16,
|
|
34
|
+
height: 16,
|
|
35
|
+
loader: ()=>(0, _fixefyuiutils.imageLoader)({
|
|
36
|
+
src: 'invoices/severity_low.svg',
|
|
37
|
+
width: 16
|
|
38
|
+
}),
|
|
39
|
+
src: `invoices/severity_${todo.priority}.svg`,
|
|
40
|
+
onLoad: ()=>console.log('loaded'),
|
|
41
|
+
onError: (e)=>console.log('error:', e)
|
|
42
|
+
}),
|
|
43
|
+
(0, _fixefyuiutils.titleCase)(todo.priority)
|
|
44
|
+
]
|
|
45
|
+
}),
|
|
46
|
+
todo.isNew && /*#__PURE__*/ (0, _jsxruntime.jsx)(_todostyles.TodoCardTag, {
|
|
47
|
+
children: "New"
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}),
|
|
51
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_todostyles.TodoCardContent, {
|
|
52
|
+
children: [
|
|
53
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
|
|
54
|
+
children: (0, _fixefyuiutils.titleCase)(todo.title)
|
|
55
|
+
}),
|
|
56
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
57
|
+
children: (0, _fixefyuiutils.titleCase)(todo.description)
|
|
58
|
+
}),
|
|
59
|
+
todo.actionTitle && /*#__PURE__*/ (0, _jsxruntime.jsx)(_todostyles.TodoCardContentButton, {
|
|
60
|
+
size: "small",
|
|
61
|
+
onClick: todo.action ? todo.action : ()=>{},
|
|
62
|
+
children: todo.actionTitle
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_Divider.default, {
|
|
67
|
+
sx: {
|
|
68
|
+
mb: '16px'
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_todostyles.TodoCardFooter, {
|
|
72
|
+
children: [
|
|
73
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_todostyles.TodoCardFooterDueDate, {
|
|
74
|
+
children: [
|
|
75
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
76
|
+
children: "Due Date"
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("p", {
|
|
79
|
+
children: (0, _fixefyuiutils.normalizeTimestamp)(todo.created_date, {
|
|
80
|
+
dateOnly: true,
|
|
81
|
+
format: 'dd.mm.yyyy'
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxAvatar.FxAvatar, {
|
|
87
|
+
max: 4,
|
|
88
|
+
isEditable: todo.isUserEditable,
|
|
89
|
+
users: todo.users
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
FxTodo: function() {
|
|
13
|
+
return _FxTodo.FxTodo;
|
|
14
|
+
},
|
|
15
|
+
TodoItemType: function() {
|
|
16
|
+
return _FxTodo.TodoItemType;
|
|
17
|
+
},
|
|
18
|
+
TodoPropsType: function() {
|
|
19
|
+
return _FxTodo.TodoPropsType;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _FxTodo = require("./FxTodo");
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
TodoCard: function() {
|
|
13
|
+
return TodoCard;
|
|
14
|
+
},
|
|
15
|
+
TodoCardContent: function() {
|
|
16
|
+
return TodoCardContent;
|
|
17
|
+
},
|
|
18
|
+
TodoCardContentButton: function() {
|
|
19
|
+
return TodoCardContentButton;
|
|
20
|
+
},
|
|
21
|
+
TodoCardFooter: function() {
|
|
22
|
+
return TodoCardFooter;
|
|
23
|
+
},
|
|
24
|
+
TodoCardFooterDueDate: function() {
|
|
25
|
+
return TodoCardFooterDueDate;
|
|
26
|
+
},
|
|
27
|
+
TodoCardHeader: function() {
|
|
28
|
+
return TodoCardHeader;
|
|
29
|
+
},
|
|
30
|
+
TodoCardPriority: function() {
|
|
31
|
+
return TodoCardPriority;
|
|
32
|
+
},
|
|
33
|
+
TodoCardTag: function() {
|
|
34
|
+
return TodoCardTag;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const _styles = require("@mui/material/styles");
|
|
38
|
+
const _FxButton = require("../../FxButton");
|
|
39
|
+
function _define_property(obj, key, value) {
|
|
40
|
+
if (key in obj) {
|
|
41
|
+
Object.defineProperty(obj, key, {
|
|
42
|
+
value: value,
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
obj[key] = value;
|
|
49
|
+
}
|
|
50
|
+
return obj;
|
|
51
|
+
}
|
|
52
|
+
function _object_spread(target) {
|
|
53
|
+
for(var i = 1; i < arguments.length; i++){
|
|
54
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
55
|
+
var ownKeys = Object.keys(source);
|
|
56
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
57
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
58
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
ownKeys.forEach(function(key) {
|
|
62
|
+
_define_property(target, key, source[key]);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return target;
|
|
66
|
+
}
|
|
67
|
+
function ownKeys(object, enumerableOnly) {
|
|
68
|
+
var keys = Object.keys(object);
|
|
69
|
+
if (Object.getOwnPropertySymbols) {
|
|
70
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
71
|
+
if (enumerableOnly) {
|
|
72
|
+
symbols = symbols.filter(function(sym) {
|
|
73
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
keys.push.apply(keys, symbols);
|
|
77
|
+
}
|
|
78
|
+
return keys;
|
|
79
|
+
}
|
|
80
|
+
function _object_spread_props(target, source) {
|
|
81
|
+
source = source != null ? source : {};
|
|
82
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
83
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
84
|
+
} else {
|
|
85
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
86
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return target;
|
|
90
|
+
}
|
|
91
|
+
const TodoCard = (0, _styles.styled)('div')(({ theme })=>({
|
|
92
|
+
background: theme.palette.common.white,
|
|
93
|
+
borderRadius: 8,
|
|
94
|
+
padding: 16,
|
|
95
|
+
marginBottom: 4
|
|
96
|
+
}));
|
|
97
|
+
const TodoCardHeader = (0, _styles.styled)('div')(({})=>({
|
|
98
|
+
display: 'flex',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
justifyContent: 'space-between',
|
|
101
|
+
marginBottom: 16
|
|
102
|
+
}));
|
|
103
|
+
const TodoCardPriority = (0, _styles.styled)('div')(({ theme, priority })=>_object_spread_props(_object_spread({
|
|
104
|
+
display: 'flex',
|
|
105
|
+
alignItems: 'center',
|
|
106
|
+
justifyContent: 'center'
|
|
107
|
+
}, theme.typography.table), {
|
|
108
|
+
color: theme.palette.priority[priority],
|
|
109
|
+
['& img']: {
|
|
110
|
+
marginRight: 4
|
|
111
|
+
}
|
|
112
|
+
}));
|
|
113
|
+
const TodoCardTag = (0, _styles.styled)('div')(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.table), {
|
|
114
|
+
color: theme.palette.common.white,
|
|
115
|
+
width: 42,
|
|
116
|
+
height: 18,
|
|
117
|
+
background: '#6FCF97',
|
|
118
|
+
borderRadius: 50,
|
|
119
|
+
display: 'flex',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
justifyContent: 'center'
|
|
122
|
+
}));
|
|
123
|
+
const TodoCardContent = (0, _styles.styled)('div')(({ theme })=>({
|
|
124
|
+
display: 'flex',
|
|
125
|
+
alignItems: 'flex-start',
|
|
126
|
+
justifyContent: 'space-between',
|
|
127
|
+
flexDirection: 'column',
|
|
128
|
+
marginBottom: 16,
|
|
129
|
+
['& p']: {
|
|
130
|
+
fontStyle: 'normal',
|
|
131
|
+
fontSize: 14,
|
|
132
|
+
letterSpacing: '0.15px',
|
|
133
|
+
color: theme.palette.typography.title,
|
|
134
|
+
fontWeight: 700,
|
|
135
|
+
lineHeight: '16px',
|
|
136
|
+
margin: 0
|
|
137
|
+
},
|
|
138
|
+
['& span']: {
|
|
139
|
+
fontStyle: 'normal',
|
|
140
|
+
fontSize: 14,
|
|
141
|
+
letterSpacing: '0.15px',
|
|
142
|
+
color: theme.palette.typography.title,
|
|
143
|
+
fontWeight: 400,
|
|
144
|
+
lineHeight: '20px',
|
|
145
|
+
marginBottom: 16
|
|
146
|
+
}
|
|
147
|
+
}));
|
|
148
|
+
const TodoCardContentButton = (0, _styles.styled)(_FxButton.FxButton)(({ theme })=>_object_spread_props(_object_spread({}, theme.typography.button), {
|
|
149
|
+
color: '#568793',
|
|
150
|
+
fontSize: 12,
|
|
151
|
+
maxHeight: 32,
|
|
152
|
+
minHeight: 32,
|
|
153
|
+
paddingLeft: 12,
|
|
154
|
+
paddingRight: 12
|
|
155
|
+
}));
|
|
156
|
+
const TodoCardFooter = (0, _styles.styled)('div')(({})=>({
|
|
157
|
+
display: 'flex',
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
justifyContent: 'space-between',
|
|
160
|
+
flexDirection: 'row'
|
|
161
|
+
}));
|
|
162
|
+
const TodoCardFooterDueDate = (0, _styles.styled)('div')(({ theme })=>({
|
|
163
|
+
display: 'flex',
|
|
164
|
+
alignItems: 'flex-start',
|
|
165
|
+
flexDirection: 'column',
|
|
166
|
+
['& p']: {
|
|
167
|
+
fontWeight: 'normal',
|
|
168
|
+
fontStyle: 'normal',
|
|
169
|
+
fontSize: 11,
|
|
170
|
+
lineHeight: '16px',
|
|
171
|
+
letterSpacing: '0.1px',
|
|
172
|
+
color: theme.palette.typography.title,
|
|
173
|
+
margin: 0
|
|
174
|
+
},
|
|
175
|
+
['& span']: {
|
|
176
|
+
fontWeight: 'normal',
|
|
177
|
+
fontStyle: 'normal',
|
|
178
|
+
fontSize: 14,
|
|
179
|
+
lineHeight: '24px',
|
|
180
|
+
letterSpacing: '0.15px',
|
|
181
|
+
color: theme.palette.statistics.label
|
|
182
|
+
}
|
|
183
|
+
}));
|