@fixefy/fixefy-ui-components 0.3.31 → 0.3.34
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/FxActionButton/FxActionButton.d.ts +7 -0
- package/dist/FxActionButton/FxActionButton.js +82 -0
- package/dist/FxActionButton/index.d.ts +1 -0
- package/dist/FxActionButton/index.js +11 -0
- package/dist/FxActionsTray/styles/actions_tray.styles.d.ts +8 -0
- package/dist/FxActionsTray/styles/actions_tray.styles.js +159 -0
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +3 -2
- package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +3 -2
- package/dist/FxFilterActionButton/FxFilterActionButton.d.ts +7 -0
- package/dist/FxFilterActionButton/FxFilterActionButton.js +82 -0
- package/dist/FxFilterActionButton/index.d.ts +1 -0
- package/dist/FxFilterActionButton/index.js +11 -0
- package/dist/FxFilterSortButton/FxFilterSortButton.d.ts +7 -0
- package/dist/FxFilterSortButton/FxFilterSortButton.js +82 -0
- package/dist/FxFilterSortButton/index.d.ts +1 -0
- package/dist/FxFilterSortButton/index.js +11 -0
- package/dist/FxModalWithButton/FxModalWithButton.d.ts +10 -0
- package/dist/FxModalWithButton/FxModalWithButton.js +131 -0
- package/dist/FxModalWithButton/index.d.ts +1 -0
- package/dist/FxModalWithButton/index.js +11 -0
- package/dist/FxModalWithComponent/FxModalWithComponent.d.ts +11 -0
- package/dist/FxModalWithComponent/FxModalWithComponent.js +102 -0
- package/dist/FxModalWithComponent/index.d.ts +1 -0
- package/dist/FxModalWithComponent/index.js +11 -0
- package/dist/FxModalWithMenu/FxModalWithMenu.d.ts +14 -0
- package/dist/FxModalWithMenu/FxModalWithMenu.js +114 -0
- package/dist/FxModalWithMenu/index.d.ts +1 -0
- package/dist/FxModalWithMenu/index.js +11 -0
- package/dist/FxPopper/styles/makeStyles.d.ts +16 -0
- package/dist/FxPopper/styles/makeStyles.js +23 -0
- package/dist/FxWizard/FxWizard/FxWizard.d.ts +6 -0
- package/dist/FxWizard/FxWizard/FxWizard.js +42 -0
- package/dist/FxWizard/FxWizard/index.d.ts +2 -0
- package/dist/FxWizard/FxWizard/index.js +19 -0
- package/dist/FxWizard/FxWizard/utils/envHelpers.d.ts +1 -0
- package/dist/FxWizard/FxWizard/utils/envHelpers.js +35 -0
- package/dist/FxWizard/FxWizard/utils/index.d.ts +1 -0
- package/dist/FxWizard/FxWizard/utils/index.js +18 -0
- package/dist/FxWizard/pages/wizard/[step].d.ts +9 -0
- package/dist/FxWizard/pages/wizard/[step].js +112 -0
- package/dist/FxWizard/pages/wizard/index.d.ts +1 -0
- package/dist/FxWizard/pages/wizard/index.js +18 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -4
- package/dist/src/FxActionsTray/FxActionsTray.js +351 -0
- package/dist/src/FxActionsTray/index.js +19 -0
- package/dist/src/FxActionsTray/styles/actions_tray.styles.js +159 -0
- package/dist/src/FxAggregationsBar/FxAggregations.js +41 -0
- package/dist/src/FxAggregationsBar/helpers/structureReader.js +78 -0
- package/dist/src/FxAggregationsBar/index.js +22 -0
- package/dist/src/FxAggregationsBar/operations/query.js +73 -0
- package/dist/src/FxAsyncDropdown/FxAsyncDropdown.js +628 -0
- package/dist/src/FxAsyncDropdown/helpers/helpers.js +161 -0
- package/dist/src/FxAsyncDropdown/index.js +25 -0
- package/dist/src/FxAsyncDropdown/styles/dropdown.styles.js +228 -0
- package/dist/src/FxAvatar/FxAvatar.js +145 -0
- package/dist/src/FxAvatar/helpers/stringToColor.js +23 -0
- package/dist/src/FxAvatar/index.js +22 -0
- package/dist/src/FxAvatar/styles/avatar.styles.js +192 -0
- package/dist/src/FxButton/FxButton.js +106 -0
- package/dist/src/FxButton/index.js +19 -0
- package/dist/src/FxButton/styles/button.styles.js +23 -0
- package/dist/src/FxChip/FxChip.js +45 -0
- package/dist/src/FxChip/index.js +19 -0
- package/dist/src/FxChip/styles/chip.styles.js +61 -0
- package/dist/src/FxFilterSortButton/FxFilterSortButton.js +82 -0
- package/dist/src/FxFilterSortButton/index.js +11 -0
- package/dist/src/FxIcon/FxIcon.js +107 -0
- package/dist/src/FxIcon/content/dynamic_icon.js +20 -0
- package/dist/src/FxIcon/content/index.js +20 -0
- package/dist/src/FxIcon/content/lazy_icon.js +137 -0
- package/dist/{FxCheckbox → src/FxIcon}/index.js +3 -3
- package/dist/src/FxModal/FxModal.js +170 -0
- package/dist/src/FxModal/index.js +19 -0
- package/dist/src/FxModal/styles/modal.style.js +59 -0
- package/dist/src/FxModalWithButton/FxModalWithButton.js +94 -0
- package/dist/src/FxModalWithButton/index.js +11 -0
- package/dist/src/FxNotes/FxNotes.js +216 -0
- package/dist/src/FxNotes/helpers/stringToColor.js +26 -0
- package/dist/src/FxNotes/index.js +22 -0
- package/dist/src/FxNotes/operations/queries.js +35 -0
- package/dist/src/FxNotes/styles/notes.styles.js +168 -0
- package/dist/src/FxNumberField/FxNumberField.js +109 -0
- package/dist/src/FxNumberField/index.js +19 -0
- package/dist/src/FxNumberField/styles/number_field.styles.js +94 -0
- package/dist/src/FxProgressCircle/FxProgressCircle.js +65 -0
- package/dist/src/FxProgressCircle/index.js +19 -0
- package/dist/src/FxProgressCircle/styles/progress_circle.styles.js +106 -0
- package/dist/src/FxProgressCounter/ProgressCounter.js +168 -0
- package/dist/src/FxProgressCounter/index.js +19 -0
- package/dist/src/FxProgressCounter/styles/progress_counter.styles.js +61 -0
- package/dist/src/FxScore/FxScore.js +207 -0
- package/dist/src/FxScore/index.js +19 -0
- package/dist/src/FxScore/styles/score.styles.js +97 -0
- package/dist/src/FxShowMore/FxShowMore.js +80 -0
- package/dist/src/FxShowMore/index.js +19 -0
- package/dist/src/FxShowMore/styles/show_more.styles.js +134 -0
- package/dist/src/FxSlider/FxSlider.js +49 -0
- package/dist/src/FxSlider/index.js +19 -0
- package/dist/src/FxStatisticsBar/FxStatisticsBar.js +191 -0
- package/dist/src/FxStatisticsBar/index.js +19 -0
- package/dist/src/FxStatisticsBar/styles/statistics.styles.js +98 -0
- package/dist/src/FxStatusBar/FxStatusBar.js +143 -0
- package/dist/src/FxStatusBar/helpers/constants.js +22 -0
- package/dist/src/FxStatusBar/index.js +22 -0
- package/dist/src/FxStatusBar/styles/statusBar.styles.js +131 -0
- package/dist/src/FxStyledComponents/index.js +310 -0
- package/dist/src/FxTag/FxTag.js +41 -0
- package/dist/src/FxTag/index.js +19 -0
- package/dist/src/FxTag/styles/tag.styles.js +100 -0
- package/dist/src/FxTextField/FxTextField.js +208 -0
- package/dist/src/FxTextField/index.js +19 -0
- package/dist/src/FxTodo/FxTodo.js +95 -0
- package/dist/src/FxTodo/index.js +22 -0
- package/dist/src/FxTodo/styles/todo.styles.js +183 -0
- package/dist/src/index.js +215 -0
- package/package.json +1 -1
- package/dist/FxCheckbox/FxCheckbox.d.ts +0 -9
- package/dist/FxCheckbox/FxCheckbox.js +0 -76
- package/dist/FxCheckbox/index.d.ts +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxNotes", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxNotes;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _notesstyles = require("./styles/notes.styles");
|
|
14
|
+
const _queries = require("./operations/queries");
|
|
15
|
+
const _client = require("@apollo/client");
|
|
16
|
+
const _stringToColor = require("./helpers/stringToColor");
|
|
17
|
+
const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
|
|
18
|
+
function _define_property(obj, key, value) {
|
|
19
|
+
if (key in obj) {
|
|
20
|
+
Object.defineProperty(obj, key, {
|
|
21
|
+
value: value,
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true
|
|
25
|
+
});
|
|
26
|
+
} else {
|
|
27
|
+
obj[key] = value;
|
|
28
|
+
}
|
|
29
|
+
return obj;
|
|
30
|
+
}
|
|
31
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
32
|
+
if (typeof WeakMap !== "function") return null;
|
|
33
|
+
var cacheBabelInterop = new WeakMap();
|
|
34
|
+
var cacheNodeInterop = new WeakMap();
|
|
35
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
36
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
37
|
+
})(nodeInterop);
|
|
38
|
+
}
|
|
39
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
40
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
44
|
+
return {
|
|
45
|
+
default: obj
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
49
|
+
if (cache && cache.has(obj)) {
|
|
50
|
+
return cache.get(obj);
|
|
51
|
+
}
|
|
52
|
+
var newObj = {
|
|
53
|
+
__proto__: null
|
|
54
|
+
};
|
|
55
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
56
|
+
for(var key in obj){
|
|
57
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
58
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
59
|
+
if (desc && (desc.get || desc.set)) {
|
|
60
|
+
Object.defineProperty(newObj, key, desc);
|
|
61
|
+
} else {
|
|
62
|
+
newObj[key] = obj[key];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
newObj.default = obj;
|
|
67
|
+
if (cache) {
|
|
68
|
+
cache.set(obj, newObj);
|
|
69
|
+
}
|
|
70
|
+
return newObj;
|
|
71
|
+
}
|
|
72
|
+
function _object_spread(target) {
|
|
73
|
+
for(var i = 1; i < arguments.length; i++){
|
|
74
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
75
|
+
var ownKeys = Object.keys(source);
|
|
76
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
77
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
78
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
ownKeys.forEach(function(key) {
|
|
82
|
+
_define_property(target, key, source[key]);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
return target;
|
|
86
|
+
}
|
|
87
|
+
function ownKeys(object, enumerableOnly) {
|
|
88
|
+
var keys = Object.keys(object);
|
|
89
|
+
if (Object.getOwnPropertySymbols) {
|
|
90
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
91
|
+
if (enumerableOnly) {
|
|
92
|
+
symbols = symbols.filter(function(sym) {
|
|
93
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
keys.push.apply(keys, symbols);
|
|
97
|
+
}
|
|
98
|
+
return keys;
|
|
99
|
+
}
|
|
100
|
+
function _object_spread_props(target, source) {
|
|
101
|
+
source = source != null ? source : {};
|
|
102
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
103
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
104
|
+
} else {
|
|
105
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
106
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return target;
|
|
110
|
+
}
|
|
111
|
+
const FxNotes = ({ notes, onChange, onSend })=>{
|
|
112
|
+
const [comment, setComment] = (0, _react.useState)('');
|
|
113
|
+
const [backgroundcolors, setBackgroundColors] = (0, _react.useState)({});
|
|
114
|
+
// const [anchorEl] = React.useState<HTMLButtonElement | null>(null)
|
|
115
|
+
const inputRef = (0, _react.useRef)();
|
|
116
|
+
const { data } = (0, _client.useQuery)(_queries.ME);
|
|
117
|
+
const { me } = data;
|
|
118
|
+
// const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {
|
|
119
|
+
// setAnchorEl(event.currentTarget)
|
|
120
|
+
// }
|
|
121
|
+
// const handleClose = () => {
|
|
122
|
+
// setAnchorEl(null)
|
|
123
|
+
// }
|
|
124
|
+
const handleEnterKeyPressed = ()=>{
|
|
125
|
+
setComment((prevState)=>{
|
|
126
|
+
if (prevState) {
|
|
127
|
+
onSend && onSend({
|
|
128
|
+
created_at: new Date().getTime(),
|
|
129
|
+
created_by: me.username,
|
|
130
|
+
text: prevState
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return '';
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
(0, _react.useEffect)(()=>{
|
|
137
|
+
onChange && onChange(comment);
|
|
138
|
+
}, [
|
|
139
|
+
comment
|
|
140
|
+
]);
|
|
141
|
+
(0, _react.useEffect)(()=>{
|
|
142
|
+
if (inputRef.current) {
|
|
143
|
+
inputRef.current.addEventListener('keyup', (event)=>{
|
|
144
|
+
if (event.keyCode === 13) {
|
|
145
|
+
event.preventDefault();
|
|
146
|
+
handleEnterKeyPressed();
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return inputRef && inputRef.current && inputRef.current.removeEventListener('keyup', handleEnterKeyPressed);
|
|
151
|
+
}, []);
|
|
152
|
+
// const open = Boolean(anchorEl)
|
|
153
|
+
// const id = open ? 'simple-popover' : undefined
|
|
154
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.CommentsContainer, {
|
|
155
|
+
children: [
|
|
156
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.CommentWrapper, {
|
|
157
|
+
children: [
|
|
158
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.StyledAvatar, {
|
|
159
|
+
sx: {
|
|
160
|
+
backgroundColor: backgroundcolors[me.username] ? backgroundcolors[me.username] : (0, _stringToColor.stringToColor)(me.username, (color)=>{
|
|
161
|
+
setBackgroundColors(_object_spread_props(_object_spread({}, backgroundcolors), {
|
|
162
|
+
[me.username]: color
|
|
163
|
+
}));
|
|
164
|
+
})
|
|
165
|
+
},
|
|
166
|
+
src: me && me.image_url,
|
|
167
|
+
children: me && (0, _fixefyuiutils.titleCase)(me.username.slice(0, 1))
|
|
168
|
+
}),
|
|
169
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentInput, {
|
|
170
|
+
type: "text",
|
|
171
|
+
value: comment,
|
|
172
|
+
ref: inputRef,
|
|
173
|
+
onChange: (e)=>{
|
|
174
|
+
setComment(e.currentTarget.value);
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
}),
|
|
179
|
+
notes && notes.length ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentsWrapper, {
|
|
180
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentsScrollWrapper, {
|
|
181
|
+
children: notes.slice().reverse().map((comment, index)=>{
|
|
182
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.UserCommentWrapper, {
|
|
183
|
+
children: [
|
|
184
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.StyledAvatar, {
|
|
185
|
+
sx: {
|
|
186
|
+
backgroundColor: backgroundcolors[comment.created_by] ? backgroundcolors[comment.created_by] : (0, _stringToColor.stringToColor)(comment.created_by, (color)=>{
|
|
187
|
+
setBackgroundColors(_object_spread_props(_object_spread({}, backgroundcolors), {
|
|
188
|
+
[comment.created_by]: color
|
|
189
|
+
}));
|
|
190
|
+
})
|
|
191
|
+
},
|
|
192
|
+
children: (0, _fixefyuiutils.titleCase)(comment.created_by.slice(0, 1))
|
|
193
|
+
}),
|
|
194
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_notesstyles.UserComment, {
|
|
195
|
+
children: [
|
|
196
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentUserTitle, {
|
|
197
|
+
children: comment.created_by
|
|
198
|
+
}),
|
|
199
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentDate, {
|
|
200
|
+
children: (0, _fixefyuiutils.normalizeTimestamp)(comment.created_at, {
|
|
201
|
+
dateOnly: true
|
|
202
|
+
})
|
|
203
|
+
}),
|
|
204
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_notesstyles.CommentDesc, {
|
|
205
|
+
children: comment.text
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
}, index);
|
|
211
|
+
})
|
|
212
|
+
})
|
|
213
|
+
}) : null
|
|
214
|
+
]
|
|
215
|
+
});
|
|
216
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "stringToColor", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return stringToColor;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const stringToColor = (string, callBack)=>{
|
|
12
|
+
let hash = 0;
|
|
13
|
+
let color = '#';
|
|
14
|
+
if (!string) {
|
|
15
|
+
return '#000';
|
|
16
|
+
}
|
|
17
|
+
/* eslint-disable no-bitwise */ for(let i = 0; i < string.length; i += 1){
|
|
18
|
+
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
|
19
|
+
}
|
|
20
|
+
for(let i = 0; i < 3; i += 1){
|
|
21
|
+
const value = hash >> i * 8 & 0xff;
|
|
22
|
+
color += `00${value.toString(16)}`.substr(-2);
|
|
23
|
+
}
|
|
24
|
+
/* eslint-enable no-bitwise */ callBack && callBack(color);
|
|
25
|
+
return color;
|
|
26
|
+
};
|
|
@@ -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
|
+
FxNotes: function() {
|
|
13
|
+
return _FxNotes.FxNotes;
|
|
14
|
+
},
|
|
15
|
+
NoteCreateInput: function() {
|
|
16
|
+
return _FxNotes.NoteCreateInput;
|
|
17
|
+
},
|
|
18
|
+
NotesPropsType: function() {
|
|
19
|
+
return _FxNotes.NotesPropsType;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _FxNotes = require("./FxNotes");
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "ME", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ME;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _graphqltag = /*#__PURE__*/ _interop_require_default(require("graphql-tag"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const ME = (0, _graphqltag.default)`
|
|
18
|
+
query ME {
|
|
19
|
+
me {
|
|
20
|
+
_id
|
|
21
|
+
username
|
|
22
|
+
first_name
|
|
23
|
+
last_name
|
|
24
|
+
email
|
|
25
|
+
workspaces {
|
|
26
|
+
...InsideWorkspace
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
fragment InsideWorkspace on Workspace {
|
|
32
|
+
_id
|
|
33
|
+
title
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
CommentDate: function() {
|
|
13
|
+
return CommentDate;
|
|
14
|
+
},
|
|
15
|
+
CommentDesc: function() {
|
|
16
|
+
return CommentDesc;
|
|
17
|
+
},
|
|
18
|
+
CommentInput: function() {
|
|
19
|
+
return CommentInput;
|
|
20
|
+
},
|
|
21
|
+
CommentUserTitle: function() {
|
|
22
|
+
return CommentUserTitle;
|
|
23
|
+
},
|
|
24
|
+
CommentWrapper: function() {
|
|
25
|
+
return CommentWrapper;
|
|
26
|
+
},
|
|
27
|
+
CommentsContainer: function() {
|
|
28
|
+
return CommentsContainer;
|
|
29
|
+
},
|
|
30
|
+
CommentsScrollWrapper: function() {
|
|
31
|
+
return CommentsScrollWrapper;
|
|
32
|
+
},
|
|
33
|
+
CommentsWrapper: function() {
|
|
34
|
+
return CommentsWrapper;
|
|
35
|
+
},
|
|
36
|
+
StyledAvatar: function() {
|
|
37
|
+
return StyledAvatar;
|
|
38
|
+
},
|
|
39
|
+
StyledPopover: function() {
|
|
40
|
+
return StyledPopover;
|
|
41
|
+
},
|
|
42
|
+
UserComment: function() {
|
|
43
|
+
return UserComment;
|
|
44
|
+
},
|
|
45
|
+
UserCommentWrapper: function() {
|
|
46
|
+
return UserCommentWrapper;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const _Popover = /*#__PURE__*/ _interop_require_default(require("@mui/material/Popover"));
|
|
50
|
+
const _styles = require("@mui/material/styles");
|
|
51
|
+
const _material = require("@mui/material");
|
|
52
|
+
function _interop_require_default(obj) {
|
|
53
|
+
return obj && obj.__esModule ? obj : {
|
|
54
|
+
default: obj
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
const CommentsContainer = (0, _styles.styled)('div')(()=>({
|
|
58
|
+
display: 'flex',
|
|
59
|
+
flexDirection: 'column',
|
|
60
|
+
marginTop: 16,
|
|
61
|
+
justifyContent: 'space-between',
|
|
62
|
+
alignItems: 'flex-start'
|
|
63
|
+
}));
|
|
64
|
+
const CommentsWrapper = (0, _styles.styled)('div')(({})=>({
|
|
65
|
+
display: 'flex',
|
|
66
|
+
alignItems: 'flex-start',
|
|
67
|
+
flexDirection: 'column',
|
|
68
|
+
justifyContent: 'center',
|
|
69
|
+
width: '100%'
|
|
70
|
+
}));
|
|
71
|
+
const CommentsScrollWrapper = (0, _styles.styled)('div')(({})=>({
|
|
72
|
+
maxHeight: 170,
|
|
73
|
+
overflow: 'auto',
|
|
74
|
+
width: '100%'
|
|
75
|
+
}));
|
|
76
|
+
const UserCommentWrapper = (0, _styles.styled)('div')(({})=>({
|
|
77
|
+
display: 'flex',
|
|
78
|
+
alignItems: 'flex-start',
|
|
79
|
+
marginTop: 16,
|
|
80
|
+
'&:first-of-type': {
|
|
81
|
+
marginTop: 0
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
const CommentWrapper = (0, _styles.styled)('div')(({})=>({
|
|
85
|
+
display: 'flex',
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
width: '100%',
|
|
88
|
+
marginBottom: 16
|
|
89
|
+
}));
|
|
90
|
+
const CommentInput = (0, _styles.styled)('input')(({ theme })=>({
|
|
91
|
+
background: theme.palette.common.white,
|
|
92
|
+
border: '1px solid #F0F0F0',
|
|
93
|
+
borderRadius: '4px',
|
|
94
|
+
height: 36,
|
|
95
|
+
padding: '0 16px',
|
|
96
|
+
fontStyle: 'normal',
|
|
97
|
+
fontWeight: 'normal',
|
|
98
|
+
fontSize: 14,
|
|
99
|
+
lineHeight: '20px',
|
|
100
|
+
letterSpacing: '0.15px',
|
|
101
|
+
color: '#172326',
|
|
102
|
+
width: '100%',
|
|
103
|
+
'&::focus-visible': {
|
|
104
|
+
outline: 'unset'
|
|
105
|
+
}
|
|
106
|
+
}));
|
|
107
|
+
const StyledAvatar = (0, _styles.styled)(_material.Avatar)(({ theme })=>({
|
|
108
|
+
width: 32,
|
|
109
|
+
height: 32,
|
|
110
|
+
border: `2px solid ${theme.palette.common.white}`,
|
|
111
|
+
marginRight: '8px',
|
|
112
|
+
fontFamily: 'Open Sans',
|
|
113
|
+
fontStyle: 'normal',
|
|
114
|
+
fontWeight: 'normal',
|
|
115
|
+
fontSize: 14,
|
|
116
|
+
lineHeight: '20px',
|
|
117
|
+
letterSpacing: '0.15px'
|
|
118
|
+
}));
|
|
119
|
+
const UserComment = (0, _styles.styled)('div')(({ theme })=>({
|
|
120
|
+
background: theme.palette.greyscale.contrastText,
|
|
121
|
+
border: '1px solid #F0F0F0',
|
|
122
|
+
borderRadius: '4px',
|
|
123
|
+
padding: '8px 16px',
|
|
124
|
+
minWidth: 300,
|
|
125
|
+
display: 'flex',
|
|
126
|
+
alignItems: 'flex-start',
|
|
127
|
+
flexDirection: 'column',
|
|
128
|
+
justifyContent: 'center'
|
|
129
|
+
}));
|
|
130
|
+
const CommentUserTitle = (0, _styles.styled)('div')(({})=>({
|
|
131
|
+
fontStyle: 'normal',
|
|
132
|
+
fontWeight: 'normal',
|
|
133
|
+
fontSize: 11,
|
|
134
|
+
lineHeight: '16px',
|
|
135
|
+
letterSpacing: '0.15px',
|
|
136
|
+
color: '#172326'
|
|
137
|
+
}));
|
|
138
|
+
const CommentDate = (0, _styles.styled)('div')(({})=>({
|
|
139
|
+
fontStyle: 'normal',
|
|
140
|
+
fontWeight: 'normal',
|
|
141
|
+
fontSize: 11,
|
|
142
|
+
lineHeight: '16px',
|
|
143
|
+
letterSpacing: '0.15px',
|
|
144
|
+
color: '#898989'
|
|
145
|
+
}));
|
|
146
|
+
const CommentDesc = (0, _styles.styled)('div')(({})=>({
|
|
147
|
+
fontStyle: 'normal',
|
|
148
|
+
fontWeight: 'normal',
|
|
149
|
+
fontSize: 14,
|
|
150
|
+
lineHeight: '20px',
|
|
151
|
+
letterSpacing: '0.15px',
|
|
152
|
+
color: '#172326'
|
|
153
|
+
}));
|
|
154
|
+
const StyledPopover = (0, _styles.styled)(_Popover.default)(({ theme })=>({
|
|
155
|
+
position: 'absolute',
|
|
156
|
+
right: 12,
|
|
157
|
+
width: 80,
|
|
158
|
+
height: 16,
|
|
159
|
+
background: '#F7F7F7',
|
|
160
|
+
borderRadius: 4,
|
|
161
|
+
fontFamily: 'Open Sans',
|
|
162
|
+
fontStyle: 'normal',
|
|
163
|
+
fontWeight: 'normal',
|
|
164
|
+
fontSize: 11,
|
|
165
|
+
lineHeight: '16px',
|
|
166
|
+
letterSpacing: '0.1px',
|
|
167
|
+
color: theme.palette.primary.light
|
|
168
|
+
}));
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "FxNumberField", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FxNumberField;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _number_fieldstyles = require("./styles/number_field.styles");
|
|
14
|
+
const _KeyboardArrowRight = /*#__PURE__*/ _interop_require_default(require("@mui/icons-material/KeyboardArrowRight"));
|
|
15
|
+
function _interop_require_default(obj) {
|
|
16
|
+
return obj && obj.__esModule ? obj : {
|
|
17
|
+
default: obj
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
21
|
+
if (typeof WeakMap !== "function") return null;
|
|
22
|
+
var cacheBabelInterop = new WeakMap();
|
|
23
|
+
var cacheNodeInterop = new WeakMap();
|
|
24
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
25
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
26
|
+
})(nodeInterop);
|
|
27
|
+
}
|
|
28
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
29
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
30
|
+
return obj;
|
|
31
|
+
}
|
|
32
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
33
|
+
return {
|
|
34
|
+
default: obj
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
38
|
+
if (cache && cache.has(obj)) {
|
|
39
|
+
return cache.get(obj);
|
|
40
|
+
}
|
|
41
|
+
var newObj = {
|
|
42
|
+
__proto__: null
|
|
43
|
+
};
|
|
44
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
45
|
+
for(var key in obj){
|
|
46
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
47
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
48
|
+
if (desc && (desc.get || desc.set)) {
|
|
49
|
+
Object.defineProperty(newObj, key, desc);
|
|
50
|
+
} else {
|
|
51
|
+
newObj[key] = obj[key];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
newObj.default = obj;
|
|
56
|
+
if (cache) {
|
|
57
|
+
cache.set(obj, newObj);
|
|
58
|
+
}
|
|
59
|
+
return newObj;
|
|
60
|
+
}
|
|
61
|
+
function FxNumberField({ placeholder, defaultValue, label, hint, onChange }) {
|
|
62
|
+
const _classes = (0, _number_fieldstyles.useStyles)();
|
|
63
|
+
const [value, setValue] = (0, _react.useState)(defaultValue || 0);
|
|
64
|
+
(0, _react.useEffect)(()=>{
|
|
65
|
+
onChange && onChange(value);
|
|
66
|
+
}, [
|
|
67
|
+
value
|
|
68
|
+
]);
|
|
69
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
70
|
+
className: _classes.container,
|
|
71
|
+
children: [
|
|
72
|
+
label && /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
73
|
+
className: _classes.label,
|
|
74
|
+
children: label
|
|
75
|
+
}),
|
|
76
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
77
|
+
className: _classes.inputWrapper,
|
|
78
|
+
children: [
|
|
79
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("input", {
|
|
80
|
+
type: "number",
|
|
81
|
+
placeholder: placeholder,
|
|
82
|
+
value: value,
|
|
83
|
+
//@ts-ignore
|
|
84
|
+
onChange: (e)=>setValue(e.target.value)
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
87
|
+
className: _classes.inputActions,
|
|
88
|
+
children: [
|
|
89
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
90
|
+
className: _classes.inputActionsPlus,
|
|
91
|
+
onClick: ()=>setValue(value + 1),
|
|
92
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_KeyboardArrowRight.default, {})
|
|
93
|
+
}),
|
|
94
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
95
|
+
className: _classes.inputActionsMinus,
|
|
96
|
+
onClick: ()=>setValue(value - 1),
|
|
97
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_KeyboardArrowRight.default, {})
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
}),
|
|
103
|
+
hint && /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
104
|
+
className: _classes.hint,
|
|
105
|
+
children: hint
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
});
|
|
109
|
+
}
|
|
@@ -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
|
+
FxNumberField: function() {
|
|
13
|
+
return _FxNumberField.FxNumberField;
|
|
14
|
+
},
|
|
15
|
+
NumberfieldPropsType: function() {
|
|
16
|
+
return _FxNumberField.NumberfieldPropsType;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _FxNumberField = require("./FxNumberField");
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
const useStyles = (0, _styles.makeStyles)(()=>({
|
|
13
|
+
container: {},
|
|
14
|
+
label: {
|
|
15
|
+
fontFamily: 'Open Sans',
|
|
16
|
+
fontStyle: 'normal',
|
|
17
|
+
fontWeight: 'normal',
|
|
18
|
+
fontSize: 11,
|
|
19
|
+
lineHeight: '16px',
|
|
20
|
+
letterSpacing: 0.1,
|
|
21
|
+
color: '#505050'
|
|
22
|
+
},
|
|
23
|
+
hint: {
|
|
24
|
+
fontStyle: 'normal',
|
|
25
|
+
fontWeight: 'normal',
|
|
26
|
+
fontSize: 11,
|
|
27
|
+
lineHeight: '16px',
|
|
28
|
+
display: 'flex',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
letterSpacing: 0.1,
|
|
31
|
+
color: '#8A8A8A'
|
|
32
|
+
},
|
|
33
|
+
inputWrapper: {
|
|
34
|
+
background: '#FFFFFF',
|
|
35
|
+
border: '1px solid #EEEEEE',
|
|
36
|
+
borderRadius: 5,
|
|
37
|
+
height: 40,
|
|
38
|
+
display: 'flex',
|
|
39
|
+
width: 'fit-content',
|
|
40
|
+
['& input']: {
|
|
41
|
+
border: 'none',
|
|
42
|
+
paddingLeft: 10,
|
|
43
|
+
borderRadius: 5,
|
|
44
|
+
['&:focus-visible']: {
|
|
45
|
+
outline: 'none'
|
|
46
|
+
},
|
|
47
|
+
['&::-webkit-inner-spin-button']: {
|
|
48
|
+
'-webkit-appearance': 'none'
|
|
49
|
+
},
|
|
50
|
+
['&::-webkit-outer-spin-button']: {
|
|
51
|
+
'-webkit-appearance': 'none'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
inputActions: {
|
|
56
|
+
display: 'flex',
|
|
57
|
+
flexDirection: 'column',
|
|
58
|
+
alignItems: 'center',
|
|
59
|
+
justifyContent: 'center'
|
|
60
|
+
},
|
|
61
|
+
inputActionsPlus: {
|
|
62
|
+
cursor: 'pointer',
|
|
63
|
+
background: '#FFFFFF',
|
|
64
|
+
height: '50%',
|
|
65
|
+
padding: 0,
|
|
66
|
+
width: 36,
|
|
67
|
+
border: 'none',
|
|
68
|
+
borderLeft: '1px solid #EEEEEE',
|
|
69
|
+
borderBottom: '1px solid #EEEEEE',
|
|
70
|
+
borderRadius: '0 5px 0 0',
|
|
71
|
+
color: '#568793',
|
|
72
|
+
['& svg']: {
|
|
73
|
+
transform: 'rotate(270deg)',
|
|
74
|
+
width: 20,
|
|
75
|
+
height: 20
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
inputActionsMinus: {
|
|
79
|
+
cursor: 'pointer',
|
|
80
|
+
background: '#FFFFFF',
|
|
81
|
+
height: '50%',
|
|
82
|
+
padding: 0,
|
|
83
|
+
width: 36,
|
|
84
|
+
border: 'none',
|
|
85
|
+
borderLeft: '1px solid #EEEEEE',
|
|
86
|
+
borderRadius: '0 0 5px 0',
|
|
87
|
+
color: '#568793',
|
|
88
|
+
['& svg']: {
|
|
89
|
+
transform: 'rotate(90deg)',
|
|
90
|
+
width: 20,
|
|
91
|
+
height: 20
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}));
|