@fixefy/fixefy-ui-components 0.0.41 → 0.0.43
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/build/FxActionsTray/FxActionsTray.js +351 -0
- package/build/FxActionsTray/actions_tray_types.d.js +4 -0
- package/build/FxActionsTray/index.js +11 -0
- package/build/FxActionsTray/styles/actions_tray.styles.js +160 -0
- package/build/FxAggregationsBar/FxAggregations.js +41 -0
- package/build/FxAggregationsBar/aggregations_types.d.js +4 -0
- package/build/FxAggregationsBar/helpers/structureReader.js +78 -0
- package/build/FxAggregationsBar/index.js +11 -0
- package/{src/FxAggregationsBar/operations/query.ts → build/FxAggregationsBar/operations/query.js} +13 -4
- package/build/FxAsyncDropdown/FxAsyncDropdown.js +456 -0
- package/build/FxAsyncDropdown/async_dropdown_types.d.js +4 -0
- package/build/FxAsyncDropdown/helpers/helpers.js +151 -0
- package/build/FxAsyncDropdown/index.js +11 -0
- package/build/FxAsyncDropdown/styles/dropdown.styles.js +230 -0
- package/build/FxAvatar/FxAvatar.js +145 -0
- package/build/FxAvatar/avatar_types.d.js +4 -0
- package/build/FxAvatar/helpers/stringToColor.js +23 -0
- package/build/FxAvatar/index.js +11 -0
- package/build/FxAvatar/styles/avatar.styles.js +193 -0
- package/build/FxButton/FxButton.js +106 -0
- package/build/FxButton/index.js +11 -0
- package/{src/FxButton/styles/button.styles.jsx → build/FxButton/styles/button.styles.js} +5 -3
- package/build/FxChip/FxChip.js +37 -0
- package/build/FxChip/chip_types.d.js +4 -0
- package/build/FxChip/index.js +11 -0
- package/build/FxChip/styles/chip.styles.js +62 -0
- package/build/FxIcon/FxIcon.js +147 -0
- package/build/FxIcon/content/dynamic_icon.js +20 -0
- package/build/FxIcon/content/index.js +20 -0
- package/build/FxIcon/content/lazy_icon.js +137 -0
- package/build/FxIcon/icon_types.d.js +4 -0
- package/build/FxIcon/index.js +20 -0
- package/build/FxModal/FxModal.js +171 -0
- package/build/FxModal/index.js +11 -0
- package/build/FxModal/modal_types.d.js +4 -0
- package/build/FxModal/styles/modal.style.js +59 -0
- package/build/FxNotes/FxNotes.js +216 -0
- package/build/FxNotes/helpers/stringToColor.js +26 -0
- package/build/FxNotes/index.js +11 -0
- package/build/FxNotes/note_types.d.js +4 -0
- package/build/FxNotes/operations/queries.js +35 -0
- package/build/FxNotes/styles/notes.styles.js +169 -0
- package/build/FxNumberField/FxNumberField.js +109 -0
- package/build/FxNumberField/index.js +11 -0
- package/build/FxNumberField/number_field_types.d.js +4 -0
- package/build/FxNumberField/styles/number_field.styles.js +94 -0
- package/build/FxProgressCircle/FxProgressCircle.js +65 -0
- package/build/FxProgressCircle/index.js +11 -0
- package/build/FxProgressCircle/progress_circle_types.d.js +4 -0
- package/build/FxProgressCircle/styles/progress_circle.styles.js +106 -0
- package/build/FxProgressCounter/ProgressCounter.js +168 -0
- package/build/FxProgressCounter/index.js +11 -0
- package/build/FxProgressCounter/progress_counter_types.d.js +4 -0
- package/build/FxProgressCounter/styles/progress_counter.styles.js +61 -0
- package/build/FxScore/FxScore.js +207 -0
- package/build/FxScore/index.js +11 -0
- package/build/FxScore/score_types.d.js +4 -0
- package/build/FxScore/styles/score.styles.js +96 -0
- package/build/FxShowMore/FxShowMore.js +80 -0
- package/build/FxShowMore/index.js +11 -0
- package/build/FxShowMore/show_more_types.d.js +4 -0
- package/build/FxShowMore/styles/show_more.styles.js +134 -0
- package/build/FxSlider/FxSlider.js +49 -0
- package/build/FxSlider/index.js +11 -0
- package/build/FxSlider/slider_types.d.js +4 -0
- package/build/FxStatisticsBar/FxStatisticsBar.js +191 -0
- package/build/FxStatisticsBar/index.js +11 -0
- package/build/FxStatisticsBar/statistics_bar_types.d.js +4 -0
- package/build/FxStatisticsBar/styles/statistics.styles.js +98 -0
- package/build/FxStatusBar/FxStatusBar.js +143 -0
- package/build/FxStatusBar/helpers/constants.js +22 -0
- package/build/FxStatusBar/index.js +20 -0
- package/build/FxStatusBar/status_bar_types.d.js +4 -0
- package/build/FxStatusBar/styles/statusBar.styles.js +131 -0
- package/build/FxStyledComponents/index.js +311 -0
- package/build/FxTextField/FxTextField.js +208 -0
- package/build/FxTextField/index.js +11 -0
- package/build/FxTextField/text_field_types.d.js +4 -0
- package/build/FxTodo/FxTodo.js +95 -0
- package/build/FxTodo/index.js +23 -0
- package/build/FxTodo/styles/todo.styles.js +183 -0
- package/build/FxTodo/todo_types.d.js +4 -0
- package/build/FxWizard/FxWizard.js +179 -0
- package/build/FxWizard/WizardContext.js +207 -0
- package/build/FxWizard/index.js +23 -0
- package/build/FxWizard/styles/wizard.styles.js +89 -0
- package/build/FxWizard/wizard_types.d.js +4 -0
- package/build/index.js +182 -0
- package/package.json +8 -8
- package/.prettierrc.json +0 -10
- package/.swcrc +0 -20
- package/src/FxActionsTray/FxActionsTray.tsx +0 -293
- package/src/FxActionsTray/actions_tray_types.d.ts +0 -15
- package/src/FxActionsTray/index.ts +0 -3
- package/src/FxActionsTray/styles/actions_tray.styles.tsx +0 -90
- package/src/FxAggregationsBar/FxAggregations.tsx +0 -32
- package/src/FxAggregationsBar/aggregations_types.d.ts +0 -21
- package/src/FxAggregationsBar/helpers/structureReader.tsx +0 -66
- package/src/FxAggregationsBar/index.ts +0 -2
- package/src/FxAsyncDropdown/FxAsyncDropdown.tsx +0 -362
- package/src/FxAsyncDropdown/async_dropdown_types.d.ts +0 -40
- package/src/FxAsyncDropdown/helpers/helpers.ts +0 -105
- package/src/FxAsyncDropdown/index.ts +0 -2
- package/src/FxAsyncDropdown/styles/dropdown.styles.tsx +0 -162
- package/src/FxAvatar/FxAvatar.tsx +0 -50
- package/src/FxAvatar/avatar_types.d.ts +0 -11
- package/src/FxAvatar/helpers/stringToColor.ts +0 -16
- package/src/FxAvatar/index.ts +0 -2
- package/src/FxAvatar/styles/avatar.styles.tsx +0 -82
- package/src/FxButton/FxButton.tsx +0 -11
- package/src/FxButton/index.ts +0 -2
- package/src/FxButton/styles/button.styles.tsx +0 -14
- package/src/FxChip/FxChip.tsx +0 -14
- package/src/FxChip/chip_types.d.ts +0 -34
- package/src/FxChip/index.ts +0 -2
- package/src/FxChip/styles/chip.styles.tsx +0 -51
- package/src/FxIcon/FxIcon.tsx +0 -34
- package/src/FxIcon/content/dynamic_icon.tsx +0 -3
- package/src/FxIcon/content/index.ts +0 -2
- package/src/FxIcon/content/lazy_icon.tsx +0 -48
- package/src/FxIcon/icon_types.d.ts +0 -10
- package/src/FxIcon/index.ts +0 -2
- package/src/FxModal/FxModal.tsx +0 -44
- package/src/FxModal/index.ts +0 -2
- package/src/FxModal/modal_types.d.ts +0 -10
- package/src/FxModal/styles/modal.style.tsx +0 -40
- package/src/FxNotes/FxNotes.tsx +0 -165
- package/src/FxNotes/helpers/stringToColor.ts +0 -19
- package/src/FxNotes/index.ts +0 -2
- package/src/FxNotes/note_types.d.ts +0 -12
- package/src/FxNotes/operations/queries.ts +0 -21
- package/src/FxNotes/styles/notes.styles.tsx +0 -135
- package/src/FxNumberField/FxNumberField.tsx +0 -37
- package/src/FxNumberField/index.ts +0 -2
- package/src/FxNumberField/number_field_types.d.ts +0 -7
- package/src/FxNumberField/styles/number_field.styles.ts +0 -85
- package/src/FxProgressCircle/FxProgressCircle.tsx +0 -40
- package/src/FxProgressCircle/index.ts +0 -2
- package/src/FxProgressCircle/progress_circle_types.d.ts +0 -9
- package/src/FxProgressCircle/styles/progress_circle.styles.tsx +0 -33
- package/src/FxProgressCounter/ProgressCounter.tsx +0 -81
- package/src/FxProgressCounter/index.ts +0 -2
- package/src/FxProgressCounter/progress_counter_types.d.ts +0 -10
- package/src/FxProgressCounter/styles/progress_counter.styles.ts +0 -40
- package/src/FxScore/FxScore.tsx +0 -75
- package/src/FxScore/index.ts +0 -2
- package/src/FxScore/score_types.d.ts +0 -16
- package/src/FxScore/styles/score.styles.ts +0 -42
- package/src/FxShowMore/FxShowMore.tsx +0 -60
- package/src/FxShowMore/index.ts +0 -2
- package/src/FxShowMore/show_more_types.d.ts +0 -8
- package/src/FxShowMore/styles/show_more.styles.ts +0 -67
- package/src/FxSlider/FxSlider.tsx +0 -8
- package/src/FxSlider/index.ts +0 -2
- package/src/FxSlider/slider_types.d.ts +0 -3
- package/src/FxStatisticsBar/FxStatisticsBar.tsx +0 -112
- package/src/FxStatisticsBar/index.ts +0 -2
- package/src/FxStatisticsBar/statistics_bar_types.d.ts +0 -8
- package/src/FxStatisticsBar/styles/statistics.styles.ts +0 -41
- package/src/FxStatusBar/FxStatusBar.tsx +0 -66
- package/src/FxStatusBar/helpers/constants.ts +0 -12
- package/src/FxStatusBar/index.ts +0 -2
- package/src/FxStatusBar/status_bar_types.d.ts +0 -14
- package/src/FxStatusBar/styles/statusBar.styles.tsx +0 -67
- package/src/FxStyledComponents/index.tsx +0 -196
- package/src/FxTag/FxTag.tsx +0 -14
- package/src/FxTag/fxtag_types.d.ts +0 -4
- package/src/FxTag/index.ts +0 -2
- package/src/FxTag/styles/tag.styles.tsx +0 -24
- package/src/FxTextField/FxTextField.tsx +0 -117
- package/src/FxTextField/index.ts +0 -2
- package/src/FxTextField/text_field_types.d.ts +0 -20
- package/src/FxTodo/FxTodo.tsx +0 -58
- package/src/FxTodo/index.ts +0 -2
- package/src/FxTodo/styles/todo.styles.tsx +0 -113
- package/src/FxTodo/todo_types.d.ts +0 -19
- package/src/FxWizard/FxWizard.tsx +0 -56
- package/src/FxWizard/WizardContext.tsx +0 -108
- package/src/FxWizard/index.ts +0 -3
- package/src/FxWizard/styles/wizard.styles.tsx +0 -22
- package/src/FxWizard/wizard_types.d.ts +0 -37
- package/src/index.ts +0 -23
- package/tsconfig.json +0 -22
- package/webpack.config.js +0 -35
- package/yarn-error.log +0 -95
|
@@ -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 _material = require("@mui/material");
|
|
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
|
+
root: 'https://cdn-dev.fixefy.me/',
|
|
37
|
+
src: 'invoices/severity_low.svg'
|
|
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)(_material.Divider, {
|
|
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,23 @@
|
|
|
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
|
+
PriorityPropsType: function() {
|
|
16
|
+
return _todo_types.PriorityPropsType;
|
|
17
|
+
},
|
|
18
|
+
TodoPropsType: function() {
|
|
19
|
+
return _todo_types.TodoPropsType;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _FxTodo = require("./FxTodo");
|
|
23
|
+
const _todo_types = require("./todo_types");
|
|
@@ -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
|
+
}));
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxWizard", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxWizard;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
13
|
+
const _material = require("@mui/material");
|
|
14
|
+
const _web = require("@react-spring/web");
|
|
15
|
+
const _wizardstyles = require("./styles/wizard.styles");
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function _interop_require_default(obj) {
|
|
30
|
+
return obj && obj.__esModule ? obj : {
|
|
31
|
+
default: obj
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function _object_spread(target) {
|
|
35
|
+
for(var i = 1; i < arguments.length; i++){
|
|
36
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
37
|
+
var ownKeys = Object.keys(source);
|
|
38
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
39
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
40
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
ownKeys.forEach(function(key) {
|
|
44
|
+
_define_property(target, key, source[key]);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
}
|
|
49
|
+
function ownKeys(object, enumerableOnly) {
|
|
50
|
+
var keys = Object.keys(object);
|
|
51
|
+
if (Object.getOwnPropertySymbols) {
|
|
52
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
53
|
+
if (enumerableOnly) {
|
|
54
|
+
symbols = symbols.filter(function(sym) {
|
|
55
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
keys.push.apply(keys, symbols);
|
|
59
|
+
}
|
|
60
|
+
return keys;
|
|
61
|
+
}
|
|
62
|
+
function _object_spread_props(target, source) {
|
|
63
|
+
source = source != null ? source : {};
|
|
64
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
65
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
66
|
+
} else {
|
|
67
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
68
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return target;
|
|
72
|
+
}
|
|
73
|
+
function _object_without_properties(source, excluded) {
|
|
74
|
+
if (source == null) return {};
|
|
75
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
76
|
+
var key, i;
|
|
77
|
+
if (Object.getOwnPropertySymbols) {
|
|
78
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
79
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
80
|
+
key = sourceSymbolKeys[i];
|
|
81
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
82
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
83
|
+
target[key] = source[key];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return target;
|
|
87
|
+
}
|
|
88
|
+
function _object_without_properties_loose(source, excluded) {
|
|
89
|
+
if (source == null) return {};
|
|
90
|
+
var target = {};
|
|
91
|
+
var sourceKeys = Object.keys(source);
|
|
92
|
+
var key, i;
|
|
93
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
94
|
+
key = sourceKeys[i];
|
|
95
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
96
|
+
target[key] = source[key];
|
|
97
|
+
}
|
|
98
|
+
return target;
|
|
99
|
+
}
|
|
100
|
+
const Animations = {
|
|
101
|
+
rightToLeft: {
|
|
102
|
+
from: {
|
|
103
|
+
opacity: 0,
|
|
104
|
+
position: 'absolute',
|
|
105
|
+
transform: 'translate3d(20%,0,0)',
|
|
106
|
+
width: '100%'
|
|
107
|
+
},
|
|
108
|
+
enter: {
|
|
109
|
+
opacity: 1,
|
|
110
|
+
transform: 'translate3d(0%,0,0)'
|
|
111
|
+
},
|
|
112
|
+
leave: {
|
|
113
|
+
opacity: 0,
|
|
114
|
+
transform: 'translate3d(-10%,0,0)'
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
leftToRight: {
|
|
118
|
+
from: {
|
|
119
|
+
opacity: 0,
|
|
120
|
+
position: 'absolute',
|
|
121
|
+
width: '100%'
|
|
122
|
+
},
|
|
123
|
+
enter: {
|
|
124
|
+
opacity: 1,
|
|
125
|
+
transform: 'translate3d(0%,0,0)'
|
|
126
|
+
},
|
|
127
|
+
leave: {
|
|
128
|
+
opacity: 0,
|
|
129
|
+
transform: 'translate3d(20%,0,0)'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
function FxWizard(_param) {
|
|
134
|
+
var { open, content = [], currentPage = 0, reverse = false, onCancel, title, actions, icon, componentStyles, divider = true } = _param, rest = _object_without_properties(_param, [
|
|
135
|
+
"open",
|
|
136
|
+
"content",
|
|
137
|
+
"currentPage",
|
|
138
|
+
"reverse",
|
|
139
|
+
"onCancel",
|
|
140
|
+
"title",
|
|
141
|
+
"actions",
|
|
142
|
+
"icon",
|
|
143
|
+
"componentStyles",
|
|
144
|
+
"divider"
|
|
145
|
+
]);
|
|
146
|
+
const transitions = (0, _web.useTransition)(content[currentPage], _object_spread_props(_object_spread({}, Animations[reverse ? 'leftToRight' : 'rightToLeft']), {
|
|
147
|
+
keys: null
|
|
148
|
+
}));
|
|
149
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_wizardstyles.StyledModal, _object_spread_props(_object_spread({}, rest), {
|
|
150
|
+
title: title,
|
|
151
|
+
actions: actions,
|
|
152
|
+
icon: icon,
|
|
153
|
+
isOpen: Boolean(open),
|
|
154
|
+
isIconTitleInline: true,
|
|
155
|
+
onClose: (e)=>onCancel(e, ''),
|
|
156
|
+
children: [
|
|
157
|
+
divider && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Divider, {
|
|
158
|
+
sx: {
|
|
159
|
+
mb: '32px',
|
|
160
|
+
mt: '16px'
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_wizardstyles.StyledContent, {
|
|
164
|
+
style: _object_spread({}, componentStyles),
|
|
165
|
+
children: transitions((style, item)=>// @ts-ignore
|
|
166
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_web.animated.div, {
|
|
167
|
+
style: style,
|
|
168
|
+
children: item
|
|
169
|
+
}))
|
|
170
|
+
}),
|
|
171
|
+
divider && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Divider, {
|
|
172
|
+
sx: {
|
|
173
|
+
mb: '8px',
|
|
174
|
+
mt: '32px'
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
}));
|
|
179
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
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
|
+
WizardContext: function() {
|
|
13
|
+
return WizardContext;
|
|
14
|
+
},
|
|
15
|
+
WizardContextProvider: function() {
|
|
16
|
+
return WizardContextProvider;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _FxWizard = require("./FxWizard");
|
|
21
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
22
|
+
function _define_property(obj, key, value) {
|
|
23
|
+
if (key in obj) {
|
|
24
|
+
Object.defineProperty(obj, key, {
|
|
25
|
+
value: value,
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
obj[key] = value;
|
|
32
|
+
}
|
|
33
|
+
return obj;
|
|
34
|
+
}
|
|
35
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
36
|
+
if (typeof WeakMap !== "function") return null;
|
|
37
|
+
var cacheBabelInterop = new WeakMap();
|
|
38
|
+
var cacheNodeInterop = new WeakMap();
|
|
39
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
40
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
41
|
+
})(nodeInterop);
|
|
42
|
+
}
|
|
43
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
44
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
45
|
+
return obj;
|
|
46
|
+
}
|
|
47
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
48
|
+
return {
|
|
49
|
+
default: obj
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
53
|
+
if (cache && cache.has(obj)) {
|
|
54
|
+
return cache.get(obj);
|
|
55
|
+
}
|
|
56
|
+
var newObj = {
|
|
57
|
+
__proto__: null
|
|
58
|
+
};
|
|
59
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
60
|
+
for(var key in obj){
|
|
61
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
62
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
63
|
+
if (desc && (desc.get || desc.set)) {
|
|
64
|
+
Object.defineProperty(newObj, key, desc);
|
|
65
|
+
} else {
|
|
66
|
+
newObj[key] = obj[key];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
newObj.default = obj;
|
|
71
|
+
if (cache) {
|
|
72
|
+
cache.set(obj, newObj);
|
|
73
|
+
}
|
|
74
|
+
return newObj;
|
|
75
|
+
}
|
|
76
|
+
function _object_spread(target) {
|
|
77
|
+
for(var i = 1; i < arguments.length; i++){
|
|
78
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
79
|
+
var ownKeys = Object.keys(source);
|
|
80
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
81
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
82
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
ownKeys.forEach(function(key) {
|
|
86
|
+
_define_property(target, key, source[key]);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return target;
|
|
90
|
+
}
|
|
91
|
+
function ownKeys(object, enumerableOnly) {
|
|
92
|
+
var keys = Object.keys(object);
|
|
93
|
+
if (Object.getOwnPropertySymbols) {
|
|
94
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
95
|
+
if (enumerableOnly) {
|
|
96
|
+
symbols = symbols.filter(function(sym) {
|
|
97
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
keys.push.apply(keys, symbols);
|
|
101
|
+
}
|
|
102
|
+
return keys;
|
|
103
|
+
}
|
|
104
|
+
function _object_spread_props(target, source) {
|
|
105
|
+
source = source != null ? source : {};
|
|
106
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
107
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
108
|
+
} else {
|
|
109
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
110
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return target;
|
|
114
|
+
}
|
|
115
|
+
const WizardContext = /*#__PURE__*/ (0, _react.createContext)({});
|
|
116
|
+
const WizardContextProvider = ({ children })=>{
|
|
117
|
+
// const [pages, setPages] = useState<number>(1);
|
|
118
|
+
const [currentPage, setCurrentPage] = (0, _react.useState)(0);
|
|
119
|
+
const [open, setOpen] = (0, _react.useState)(false);
|
|
120
|
+
const [content, setContent] = (0, _react.useState)([]);
|
|
121
|
+
const [reverse, setReverse] = (0, _react.useState)(false);
|
|
122
|
+
const [options, setOptions] = (0, _react.useState)({});
|
|
123
|
+
const [modalProps, _setModalProps] = (0, _react.useState)({
|
|
124
|
+
shouldCloseOnBackdropClick: true,
|
|
125
|
+
shouldCloseOnEscapeKeyDown: true
|
|
126
|
+
});
|
|
127
|
+
const [componentStyles, setComponentStyles] = (0, _react.useState)({
|
|
128
|
+
width: '100%',
|
|
129
|
+
height: 500,
|
|
130
|
+
contain: 'content',
|
|
131
|
+
overflow: 'scroll'
|
|
132
|
+
});
|
|
133
|
+
const onCancel = (event, reason)=>{
|
|
134
|
+
console.log(event);
|
|
135
|
+
switch(reason){
|
|
136
|
+
case 'escapeKeyDown':
|
|
137
|
+
{
|
|
138
|
+
if (modalProps.shouldCloseOnEscapeKeyDown) {
|
|
139
|
+
return setOpen(false);
|
|
140
|
+
} else {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
case 'backdropClick':
|
|
145
|
+
{
|
|
146
|
+
if (modalProps.shouldCloseOnBackdropClick) {
|
|
147
|
+
return setOpen(false);
|
|
148
|
+
} else {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
default:
|
|
153
|
+
{}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
const onOpen = ()=>{
|
|
157
|
+
setOpen(true);
|
|
158
|
+
};
|
|
159
|
+
const nextPage = ()=>{
|
|
160
|
+
console.log('nextPage');
|
|
161
|
+
};
|
|
162
|
+
const prevPage = ()=>{
|
|
163
|
+
console.log('prevPage');
|
|
164
|
+
};
|
|
165
|
+
const setModalProps = (newState)=>{
|
|
166
|
+
_setModalProps((prevState)=>_object_spread({}, prevState, newState));
|
|
167
|
+
};
|
|
168
|
+
const setPage = (page, option)=>{
|
|
169
|
+
if (option) {
|
|
170
|
+
setOptions(_object_spread({}, options, option));
|
|
171
|
+
}
|
|
172
|
+
setCurrentPage((prevCurrentPage)=>{
|
|
173
|
+
setReverse(page < prevCurrentPage);
|
|
174
|
+
return page;
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
const _state = {
|
|
178
|
+
currentPage,
|
|
179
|
+
// pages,
|
|
180
|
+
// setPages,
|
|
181
|
+
nextPage,
|
|
182
|
+
prevPage,
|
|
183
|
+
onOpen,
|
|
184
|
+
open,
|
|
185
|
+
setOpen,
|
|
186
|
+
setContent,
|
|
187
|
+
setPage,
|
|
188
|
+
options,
|
|
189
|
+
setModalProps,
|
|
190
|
+
setComponentStyles,
|
|
191
|
+
setOptions
|
|
192
|
+
};
|
|
193
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(WizardContext.Provider, {
|
|
194
|
+
value: _state,
|
|
195
|
+
children: [
|
|
196
|
+
children,
|
|
197
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_FxWizard.FxWizard, _object_spread_props(_object_spread({}, modalProps), {
|
|
198
|
+
componentStyles: componentStyles,
|
|
199
|
+
currentPage: currentPage,
|
|
200
|
+
reverse: reverse,
|
|
201
|
+
open: open,
|
|
202
|
+
onCancel: onCancel,
|
|
203
|
+
content: content
|
|
204
|
+
}))
|
|
205
|
+
]
|
|
206
|
+
});
|
|
207
|
+
};
|