@fixefy/fixefy-ui-components 0.0.9 → 0.0.10
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/package.json +71 -64
- package/dist-cjs/FxActionsTray/FxActionsTray.jsx +0 -146
- package/dist-cjs/FxActionsTray/index.js +0 -5
- package/dist-cjs/FxActionsTray/styles/actions_tray.styles.jsx +0 -55
- package/dist-cjs/FxAggregationsBar/FxAggregations.jsx +0 -27
- package/dist-cjs/FxAggregationsBar/helpers/structureReader.jsx +0 -41
- package/dist-cjs/FxAggregationsBar/index.js +0 -5
- package/dist-cjs/FxAggregationsBar/operations/query.js +0 -66
- package/dist-cjs/FxAsyncDropdown/FxAsyncDropdown.jsx +0 -209
- package/dist-cjs/FxAsyncDropdown/helpers/helpers.js +0 -81
- package/dist-cjs/FxAsyncDropdown/index.js +0 -5
- package/dist-cjs/FxAsyncDropdown/styles/dropdown.styles.jsx +0 -130
- package/dist-cjs/FxAvatar/FxAvatar.jsx +0 -34
- package/dist-cjs/FxAvatar/helpers/stringToColor.js +0 -17
- package/dist-cjs/FxAvatar/index.js +0 -5
- package/dist-cjs/FxAvatar/styles/avatar.styles.jsx +0 -75
- package/dist-cjs/FxButton/FxButton.jsx +0 -11
- package/dist-cjs/FxButton/index.js +0 -5
- package/dist-cjs/FxButton/styles/button.styles.jsx +0 -16
- package/dist-cjs/FxChip/FxChip.jsx +0 -14
- package/dist-cjs/FxChip/index.js +0 -5
- package/dist-cjs/FxChip/styles/chip.styles.jsx +0 -48
- package/dist-cjs/FxIcon/FxIcon.jsx +0 -29
- package/dist-cjs/FxIcon/content/dynamic_icon.jsx +0 -7
- package/dist-cjs/FxIcon/content/index.js +0 -7
- package/dist-cjs/FxIcon/content/lazy_icon.jsx +0 -22
- package/dist-cjs/FxIcon/index.js +0 -5
- package/dist-cjs/FxModal/FxModal.jsx +0 -36
- package/dist-cjs/FxModal/index.js +0 -5
- package/dist-cjs/FxModal/styles/modal.style.jsx +0 -34
- package/dist-cjs/FxNotes/FxNotes.jsx +0 -101
- package/dist-cjs/FxNotes/helpers/stringToColor.js +0 -20
- package/dist-cjs/FxNotes/index.js +0 -5
- package/dist-cjs/FxNotes/operations/queries.js +0 -24
- package/dist-cjs/FxNotes/styles/notes.styles.jsx +0 -120
- package/dist-cjs/FxNumberField/FxNumberField.jsx +0 -30
- package/dist-cjs/FxNumberField/index.js +0 -5
- package/dist-cjs/FxNumberField/styles/number_field.styles.js +0 -87
- package/dist-cjs/FxProgressCircle/FxProgressCircle.jsx +0 -28
- package/dist-cjs/FxProgressCircle/index.js +0 -5
- package/dist-cjs/FxProgressCircle/styles/progress_circle.styles.jsx +0 -27
- package/dist-cjs/FxProgressCounter/ProgressCounter.jsx +0 -45
- package/dist-cjs/FxProgressCounter/index.js +0 -5
- package/dist-cjs/FxProgressCounter/styles/progress_counter.styles.js +0 -36
- package/dist-cjs/FxScore/FxScore.jsx +0 -57
- package/dist-cjs/FxScore/index.js +0 -5
- package/dist-cjs/FxScore/styles/score.styles.js +0 -33
- package/dist-cjs/FxShowMore/FxShowMore.jsx +0 -47
- package/dist-cjs/FxShowMore/index.js +0 -5
- package/dist-cjs/FxShowMore/styles/show_more.styles.js +0 -43
- package/dist-cjs/FxSlider/FxSlider.jsx +0 -10
- package/dist-cjs/FxSlider/index.js +0 -5
- package/dist-cjs/FxStatisticsBar/FxStatisticsBar.jsx +0 -95
- package/dist-cjs/FxStatisticsBar/index.js +0 -5
- package/dist-cjs/FxStatisticsBar/styles/statistics.styles.js +0 -33
- package/dist-cjs/FxStatusBar/FxStatusBar.jsx +0 -64
- package/dist-cjs/FxStatusBar/helpers/constants.js +0 -15
- package/dist-cjs/FxStatusBar/index.js +0 -5
- package/dist-cjs/FxStatusBar/styles/statusBar.styles.jsx +0 -39
- package/dist-cjs/FxStyledComponents/index.jsx +0 -102
- package/dist-cjs/FxTag/FxTag.jsx +0 -13
- package/dist-cjs/FxTag/index.js +0 -5
- package/dist-cjs/FxTag/styles/tag.styles.jsx +0 -16
- package/dist-cjs/FxTextField/FxTextField.jsx +0 -62
- package/dist-cjs/FxTextField/index.js +0 -5
- package/dist-cjs/FxTodo/FxTodo.jsx +0 -46
- package/dist-cjs/FxTodo/index.js +0 -5
- package/dist-cjs/FxTodo/styles/todo.styles.jsx +0 -75
- package/dist-cjs/FxWizard/FxWizard.jsx +0 -49
- package/dist-cjs/FxWizard/WizardContext.jsx +0 -86
- package/dist-cjs/FxWizard/index.js +0 -8
- package/dist-cjs/FxWizard/styles/wizard.styles.jsx +0 -17
- package/dist-cjs/index.js +0 -49
- package/dist-cjs/package.json +0 -3
- package/dist-es/FxActionsTray/FxActionsTray.jsx +0 -141
- package/dist-es/FxActionsTray/index.js +0 -1
- package/dist-es/FxActionsTray/styles/actions_tray.styles.jsx +0 -76
- package/dist-es/FxAggregationsBar/FxAggregations.jsx +0 -22
- package/dist-es/FxAggregationsBar/helpers/structureReader.jsx +0 -32
- package/dist-es/FxAggregationsBar/index.js +0 -1
- package/dist-es/FxAggregationsBar/operations/query.js +0 -63
- package/dist-es/FxAsyncDropdown/FxAsyncDropdown.jsx +0 -228
- package/dist-es/FxAsyncDropdown/helpers/helpers.js +0 -77
- package/dist-es/FxAsyncDropdown/index.js +0 -1
- package/dist-es/FxAsyncDropdown/styles/dropdown.styles.jsx +0 -143
- package/dist-es/FxAvatar/FxAvatar.jsx +0 -32
- package/dist-es/FxAvatar/helpers/stringToColor.js +0 -13
- package/dist-es/FxAvatar/index.js +0 -1
- package/dist-es/FxAvatar/styles/avatar.styles.jsx +0 -68
- package/dist-es/FxButton/FxButton.jsx +0 -5
- package/dist-es/FxButton/index.js +0 -1
- package/dist-es/FxButton/styles/button.styles.jsx +0 -13
- package/dist-es/FxChip/FxChip.jsx +0 -9
- package/dist-es/FxChip/index.js +0 -1
- package/dist-es/FxChip/styles/chip.styles.jsx +0 -45
- package/dist-es/FxIcon/FxIcon.jsx +0 -24
- package/dist-es/FxIcon/content/dynamic_icon.jsx +0 -2
- package/dist-es/FxIcon/content/index.js +0 -2
- package/dist-es/FxIcon/content/lazy_icon.jsx +0 -17
- package/dist-es/FxIcon/index.js +0 -1
- package/dist-es/FxModal/FxModal.jsx +0 -30
- package/dist-es/FxModal/index.js +0 -1
- package/dist-es/FxModal/styles/modal.style.jsx +0 -31
- package/dist-es/FxNotes/FxNotes.jsx +0 -102
- package/dist-es/FxNotes/helpers/stringToColor.js +0 -16
- package/dist-es/FxNotes/index.js +0 -1
- package/dist-es/FxNotes/operations/queries.js +0 -20
- package/dist-es/FxNotes/styles/notes.styles.jsx +0 -116
- package/dist-es/FxNumberField/FxNumberField.jsx +0 -25
- package/dist-es/FxNumberField/index.js +0 -1
- package/dist-es/FxNumberField/styles/number_field.styles.js +0 -84
- package/dist-es/FxProgressCircle/FxProgressCircle.jsx +0 -23
- package/dist-es/FxProgressCircle/index.js +0 -1
- package/dist-es/FxProgressCircle/styles/progress_circle.styles.jsx +0 -28
- package/dist-es/FxProgressCounter/ProgressCounter.jsx +0 -38
- package/dist-es/FxProgressCounter/index.js +0 -1
- package/dist-es/FxProgressCounter/styles/progress_counter.styles.js +0 -33
- package/dist-es/FxScore/FxScore.jsx +0 -57
- package/dist-es/FxScore/index.js +0 -1
- package/dist-es/FxScore/styles/score.styles.js +0 -35
- package/dist-es/FxShowMore/FxShowMore.jsx +0 -42
- package/dist-es/FxShowMore/index.js +0 -1
- package/dist-es/FxShowMore/styles/show_more.styles.js +0 -53
- package/dist-es/FxSlider/FxSlider.jsx +0 -5
- package/dist-es/FxSlider/index.js +0 -1
- package/dist-es/FxStatisticsBar/FxStatisticsBar.jsx +0 -91
- package/dist-es/FxStatisticsBar/index.js +0 -1
- package/dist-es/FxStatisticsBar/styles/statistics.styles.js +0 -38
- package/dist-es/FxStatusBar/FxStatusBar.jsx +0 -59
- package/dist-es/FxStatusBar/helpers/constants.js +0 -12
- package/dist-es/FxStatusBar/index.js +0 -1
- package/dist-es/FxStatusBar/styles/statusBar.styles.jsx +0 -39
- package/dist-es/FxStyledComponents/index.jsx +0 -133
- package/dist-es/FxTag/FxTag.jsx +0 -9
- package/dist-es/FxTag/index.js +0 -1
- package/dist-es/FxTag/styles/tag.styles.jsx +0 -23
- package/dist-es/FxTextField/FxTextField.jsx +0 -63
- package/dist-es/FxTextField/index.js +0 -1
- package/dist-es/FxTodo/FxTodo.jsx +0 -41
- package/dist-es/FxTodo/index.js +0 -1
- package/dist-es/FxTodo/styles/todo.styles.jsx +0 -97
- package/dist-es/FxWizard/FxWizard.jsx +0 -46
- package/dist-es/FxWizard/WizardContext.jsx +0 -84
- package/dist-es/FxWizard/index.js +0 -2
- package/dist-es/FxWizard/styles/wizard.styles.jsx +0 -18
- package/dist-es/index.js +0 -22
- package/dist-es/package.json +0 -3
- package/dist-types/FxActionsTray/FxActionsTray.d.ts +0 -3
- package/dist-types/FxActionsTray/index.d.ts +0 -2
- package/dist-types/FxActionsTray/styles/actions_tray.styles.d.ts +0 -8
- package/dist-types/FxAggregationsBar/FxAggregations.d.ts +0 -3
- package/dist-types/FxAggregationsBar/helpers/structureReader.d.ts +0 -1
- package/dist-types/FxAggregationsBar/index.d.ts +0 -2
- package/dist-types/FxAggregationsBar/operations/query.d.ts +0 -1
- package/dist-types/FxAsyncDropdown/FxAsyncDropdown.d.ts +0 -3
- package/dist-types/FxAsyncDropdown/helpers/helpers.d.ts +0 -4
- package/dist-types/FxAsyncDropdown/index.d.ts +0 -2
- package/dist-types/FxAsyncDropdown/styles/dropdown.styles.d.ts +0 -7
- package/dist-types/FxAvatar/FxAvatar.d.ts +0 -3
- package/dist-types/FxAvatar/helpers/stringToColor.d.ts +0 -1
- package/dist-types/FxAvatar/index.d.ts +0 -2
- package/dist-types/FxAvatar/styles/avatar.styles.d.ts +0 -7
- package/dist-types/FxButton/FxButton.d.ts +0 -6
- package/dist-types/FxButton/index.d.ts +0 -2
- package/dist-types/FxButton/styles/button.styles.d.ts +0 -1
- package/dist-types/FxChip/FxChip.d.ts +0 -3
- package/dist-types/FxChip/index.d.ts +0 -2
- package/dist-types/FxChip/styles/chip.styles.d.ts +0 -3
- package/dist-types/FxIcon/FxIcon.d.ts +0 -3
- package/dist-types/FxIcon/content/dynamic_icon.d.ts +0 -5
- package/dist-types/FxIcon/content/index.d.ts +0 -2
- package/dist-types/FxIcon/content/lazy_icon.d.ts +0 -9
- package/dist-types/FxIcon/index.d.ts +0 -2
- package/dist-types/FxModal/FxModal.d.ts +0 -3
- package/dist-types/FxModal/index.d.ts +0 -2
- package/dist-types/FxModal/styles/modal.style.d.ts +0 -4
- package/dist-types/FxNotes/FxNotes.d.ts +0 -3
- package/dist-types/FxNotes/helpers/stringToColor.d.ts +0 -1
- package/dist-types/FxNotes/index.d.ts +0 -2
- package/dist-types/FxNotes/operations/queries.d.ts +0 -1
- package/dist-types/FxNotes/styles/notes.styles.d.ts +0 -13
- package/dist-types/FxNumberField/FxNumberField.d.ts +0 -3
- package/dist-types/FxNumberField/index.d.ts +0 -2
- package/dist-types/FxNumberField/styles/number_field.styles.d.ts +0 -1
- package/dist-types/FxProgressCircle/FxProgressCircle.d.ts +0 -3
- package/dist-types/FxProgressCircle/index.d.ts +0 -2
- package/dist-types/FxProgressCircle/styles/progress_circle.styles.d.ts +0 -5
- package/dist-types/FxProgressCounter/ProgressCounter.d.ts +0 -3
- package/dist-types/FxProgressCounter/index.d.ts +0 -2
- package/dist-types/FxProgressCounter/styles/progress_counter.styles.d.ts +0 -5
- package/dist-types/FxScore/FxScore.d.ts +0 -3
- package/dist-types/FxScore/index.d.ts +0 -2
- package/dist-types/FxScore/styles/score.styles.d.ts +0 -7
- package/dist-types/FxShowMore/FxShowMore.d.ts +0 -3
- package/dist-types/FxShowMore/index.d.ts +0 -2
- package/dist-types/FxShowMore/styles/show_more.styles.d.ts +0 -6
- package/dist-types/FxSlider/FxSlider.d.ts +0 -3
- package/dist-types/FxSlider/index.d.ts +0 -2
- package/dist-types/FxStatisticsBar/FxStatisticsBar.d.ts +0 -3
- package/dist-types/FxStatisticsBar/index.d.ts +0 -2
- package/dist-types/FxStatisticsBar/styles/statistics.styles.d.ts +0 -2
- package/dist-types/FxStatusBar/FxStatusBar.d.ts +0 -3
- package/dist-types/FxStatusBar/helpers/constants.d.ts +0 -12
- package/dist-types/FxStatusBar/index.d.ts +0 -2
- package/dist-types/FxStatusBar/styles/statusBar.styles.d.ts +0 -3
- package/dist-types/FxStyledComponents/index.d.ts +0 -27
- package/dist-types/FxTag/FxTag.d.ts +0 -3
- package/dist-types/FxTag/index.d.ts +0 -2
- package/dist-types/FxTag/styles/tag.styles.d.ts +0 -3
- package/dist-types/FxTextField/FxTextField.d.ts +0 -4
- package/dist-types/FxTextField/index.d.ts +0 -2
- package/dist-types/FxTodo/FxTodo.d.ts +0 -3
- package/dist-types/FxTodo/index.d.ts +0 -2
- package/dist-types/FxTodo/styles/todo.styles.d.ts +0 -8
- package/dist-types/FxWizard/FxWizard.d.ts +0 -3
- package/dist-types/FxWizard/WizardContext.d.ts +0 -6
- package/dist-types/FxWizard/index.d.ts +0 -3
- package/dist-types/FxWizard/styles/wizard.styles.d.ts +0 -2
- package/dist-types/index.d.ts +0 -22
package/package.json
CHANGED
|
@@ -1,66 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
2
|
+
"author": "Fixefy Inc Team",
|
|
3
|
+
"browser": {
|
|
4
|
+
"fs": false
|
|
5
|
+
},
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@apollo/client": "^3.8.4",
|
|
8
|
+
"@fixefy/fixefy-ui-utils": "^0.0.10",
|
|
9
|
+
"@mui/icons-material": "^5.14.11",
|
|
10
|
+
"@mui/material": "^5.14.11",
|
|
11
|
+
"@mui/styled-engine": "^5.14.11",
|
|
12
|
+
"@mui/styles": "^5.14.11",
|
|
13
|
+
"@react-spring/web": "^9.7.3",
|
|
14
|
+
"graphql-tag": "^2.12.6",
|
|
15
|
+
"next": "^13.5.3",
|
|
16
|
+
"react": "^18.2.0",
|
|
17
|
+
"react-dom": "^18.2.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
21
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
22
|
+
"@rollup/plugin-typescript": "^11.1.4",
|
|
23
|
+
"@svgr/webpack": "^8.1.0",
|
|
24
|
+
"@types/node": "^20.7.1",
|
|
25
|
+
"@types/react": "^18.2.23",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
27
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
28
|
+
"eslint": "^8.50.0",
|
|
29
|
+
"rollup": "^3.29.4",
|
|
30
|
+
"rollup-plugin-dts": "^6.0.2",
|
|
31
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
32
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
33
|
+
},
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"name": "@fixefy/fixefy-ui-components",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/Fixefy/fixefy-ui-components.git"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
42
|
+
"pre_release": "yarn clean && yarn && yarn build",
|
|
43
|
+
"r": "yarn release",
|
|
44
|
+
"release": "yarn pre_release && npm pack && npm publish",
|
|
45
|
+
"release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
|
|
46
|
+
"clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
|
|
47
|
+
"clean:node": "rm -rf node_modules",
|
|
48
|
+
"release_patch": "yarn patch && yarn release",
|
|
49
|
+
"release_minor": "yarn minor && yarn release",
|
|
50
|
+
"release_major": "yarn major && yarn release",
|
|
51
|
+
"patch": "yarn version --patch && git push --follow-tags",
|
|
52
|
+
"minor": "yarn version --minor && git push --follow-tags",
|
|
53
|
+
"major": "yarn version --major && git push --follow-tags"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": "18.17.1"
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist-*/**/*"
|
|
60
|
+
],
|
|
61
|
+
"private": false,
|
|
62
|
+
"source": "src/index.ts",
|
|
63
|
+
"main": "./dist/cjs/index.js",
|
|
64
|
+
"module": "./dist/esm/index.js",
|
|
65
|
+
"types": "./dist/index.d.ts",
|
|
66
|
+
"exports": {
|
|
67
|
+
".": {
|
|
68
|
+
"import": "./dist-es/index.js",
|
|
69
|
+
"require": "./dist-cjs/index.js"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"version": "0.0.10"
|
|
66
73
|
}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FxActionsTray = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const image_1 = tslib_1.__importDefault(require("next/image"));
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const fixefy_ui_utils_1 = require("@fixefy/fixefy-ui-utils");
|
|
9
|
-
const actions_tray_styles_1 = require("./styles/actions_tray.styles");
|
|
10
|
-
function FxActionsTray({ type, onApprove, onChallenge, onClick, show, onClose, chargesCount, container, direction = 'up' }) {
|
|
11
|
-
const renderActions = () => {
|
|
12
|
-
switch (type) {
|
|
13
|
-
case 'approved':
|
|
14
|
-
return <ApprovedActions onChallenge={onChallenge}/>;
|
|
15
|
-
case 'challenge':
|
|
16
|
-
return <ChallengeActions onChallenge={onChallenge} onApprove={onApprove}/>;
|
|
17
|
-
case 'pending':
|
|
18
|
-
return <PendingActions onApprove={onApprove} onChallenge={onChallenge}/>;
|
|
19
|
-
case 'no_pricing':
|
|
20
|
-
return <NoPricingActions onApprove={onApprove} onChallenge={onChallenge}/>;
|
|
21
|
-
default:
|
|
22
|
-
return <ApprovedActions onChallenge={onChallenge}/>;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
return (<div>
|
|
26
|
-
<material_1.Slide direction={direction} in={show} mountOnEnter unmountOnExit timeout={400} container={container}>
|
|
27
|
-
<actions_tray_styles_1.Container>
|
|
28
|
-
<actions_tray_styles_1.TitleWrapper>
|
|
29
|
-
<actions_tray_styles_1.ChargesCount>{chargesCount}</actions_tray_styles_1.ChargesCount>
|
|
30
|
-
<actions_tray_styles_1.ChargesTitle>charges selected</actions_tray_styles_1.ChargesTitle>
|
|
31
|
-
</actions_tray_styles_1.TitleWrapper>
|
|
32
|
-
<actions_tray_styles_1.Divider />
|
|
33
|
-
<div>
|
|
34
|
-
{renderActions()}
|
|
35
|
-
|
|
36
|
-
</div>
|
|
37
|
-
<actions_tray_styles_1.Divider />
|
|
38
|
-
<div onClick={onClose}>
|
|
39
|
-
<actions_tray_styles_1.Close>close</actions_tray_styles_1.Close>
|
|
40
|
-
</div>
|
|
41
|
-
</actions_tray_styles_1.Container>
|
|
42
|
-
</material_1.Slide>
|
|
43
|
-
</div>);
|
|
44
|
-
}
|
|
45
|
-
exports.FxActionsTray = FxActionsTray;
|
|
46
|
-
const ChallengeActions = ({ onChallenge, onApprove }) => {
|
|
47
|
-
return (<>
|
|
48
|
-
<actions_tray_styles_1.ActionBtn onClick={onChallenge} type="low">
|
|
49
|
-
<image_1.default alt="challenge" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
50
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
51
|
-
src: 'actions/challenge.svg',
|
|
52
|
-
})} src={'actions/challenge.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
53
|
-
<actions_tray_styles_1.ActionTitle>challenge</actions_tray_styles_1.ActionTitle>
|
|
54
|
-
</actions_tray_styles_1.ActionBtn>
|
|
55
|
-
<actions_tray_styles_1.ActionBtn onClick={onApprove}>
|
|
56
|
-
<image_1.default alt="approve" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
57
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
58
|
-
src: 'actions/approve.svg',
|
|
59
|
-
})} src={'actions/approve.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
60
|
-
<actions_tray_styles_1.ActionTitle>approve</actions_tray_styles_1.ActionTitle>
|
|
61
|
-
</actions_tray_styles_1.ActionBtn>
|
|
62
|
-
<actions_tray_styles_1.ActionBtn onClick={onApprove}>
|
|
63
|
-
<image_1.default alt="ignore and approve" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
64
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
65
|
-
src: 'actions/ignore_and_approve.svg',
|
|
66
|
-
})} src={'actions/ignore_and_approve.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
67
|
-
<actions_tray_styles_1.ActionTitle>ignore & approve</actions_tray_styles_1.ActionTitle>
|
|
68
|
-
</actions_tray_styles_1.ActionBtn>
|
|
69
|
-
<actions_tray_styles_1.ActionBtn onClick={onApprove}>
|
|
70
|
-
<image_1.default alt="change exception" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
71
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
72
|
-
src: 'actions/change_exception.svg',
|
|
73
|
-
})} src={'actions/change_exception.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
74
|
-
<actions_tray_styles_1.ActionTitle>Change exeption</actions_tray_styles_1.ActionTitle>
|
|
75
|
-
</actions_tray_styles_1.ActionBtn>
|
|
76
|
-
</>);
|
|
77
|
-
};
|
|
78
|
-
const PendingActions = ({ onApprove, onChallenge }) => {
|
|
79
|
-
return (<>
|
|
80
|
-
<actions_tray_styles_1.ActionBtn onClick={onApprove} type="excellent">
|
|
81
|
-
<image_1.default alt="approve" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
82
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
83
|
-
src: 'actions/approve.svg',
|
|
84
|
-
})} src={'actions/approve.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
85
|
-
<actions_tray_styles_1.ActionTitle>approve</actions_tray_styles_1.ActionTitle>
|
|
86
|
-
</actions_tray_styles_1.ActionBtn>
|
|
87
|
-
<actions_tray_styles_1.ActionBtn onClick={onChallenge}>
|
|
88
|
-
<image_1.default alt="challenge" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
89
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
90
|
-
src: 'actions/challenge.svg',
|
|
91
|
-
})} src={'actions/challenge.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
92
|
-
<actions_tray_styles_1.ActionTitle>challenge</actions_tray_styles_1.ActionTitle>
|
|
93
|
-
</actions_tray_styles_1.ActionBtn>
|
|
94
|
-
|
|
95
|
-
<actions_tray_styles_1.ActionBtn onClick={onChallenge}>
|
|
96
|
-
<image_1.default alt="dive in" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
97
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
98
|
-
src: 'actions/dive_in.svg',
|
|
99
|
-
})} src={'actions/dive_in.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
100
|
-
<actions_tray_styles_1.ActionTitle>dive in</actions_tray_styles_1.ActionTitle>
|
|
101
|
-
</actions_tray_styles_1.ActionBtn>
|
|
102
|
-
</>);
|
|
103
|
-
};
|
|
104
|
-
const NoPricingActions = ({ onApprove, onChallenge }) => {
|
|
105
|
-
return (<>
|
|
106
|
-
<actions_tray_styles_1.ActionBtn onClick={onChallenge}>
|
|
107
|
-
<image_1.default alt="dive in" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
108
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
109
|
-
src: 'actions/dive_in.svg',
|
|
110
|
-
})} src={'actions/dive_in.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
111
|
-
<actions_tray_styles_1.ActionTitle>dive in</actions_tray_styles_1.ActionTitle>
|
|
112
|
-
</actions_tray_styles_1.ActionBtn>
|
|
113
|
-
<actions_tray_styles_1.ActionBtn onClick={onApprove}>
|
|
114
|
-
<image_1.default alt="solve" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
115
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
116
|
-
src: 'actions/solve.svg',
|
|
117
|
-
})} src={'actions/solve.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
118
|
-
<actions_tray_styles_1.ActionTitle>solve</actions_tray_styles_1.ActionTitle>
|
|
119
|
-
</actions_tray_styles_1.ActionBtn>
|
|
120
|
-
<actions_tray_styles_1.ActionBtn onClick={onApprove}>
|
|
121
|
-
<image_1.default alt="ignore and approve" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
122
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
123
|
-
src: 'actions/ignore_and_approve.svg',
|
|
124
|
-
})} src={'actions/ignore_and_approve.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
125
|
-
<actions_tray_styles_1.ActionTitle>ignore & approve</actions_tray_styles_1.ActionTitle>
|
|
126
|
-
</actions_tray_styles_1.ActionBtn>
|
|
127
|
-
</>);
|
|
128
|
-
};
|
|
129
|
-
const ApprovedActions = ({ onChallenge }) => {
|
|
130
|
-
return (<>
|
|
131
|
-
<actions_tray_styles_1.ActionBtn onClick={onChallenge}>
|
|
132
|
-
<image_1.default alt="dive in" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
133
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
134
|
-
src: 'actionsCards/check_exceptions.svg',
|
|
135
|
-
})} src={'actionsCards/check_exceptions.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
136
|
-
<actions_tray_styles_1.ActionTitle>dive in</actions_tray_styles_1.ActionTitle>
|
|
137
|
-
</actions_tray_styles_1.ActionBtn>
|
|
138
|
-
<actions_tray_styles_1.ActionBtn onClick={onChallenge}>
|
|
139
|
-
<image_1.default alt="challenge" loader={() => (0, fixefy_ui_utils_1.imageLoader)({
|
|
140
|
-
root: 'https://cdn-dev.fixefy.me/',
|
|
141
|
-
src: 'actions/undo.svg',
|
|
142
|
-
})} src={'actions/undo.svg'} width={20} height={20} onLoad={() => console.log('loaded')} onError={(e) => console.log('error:', e)}/>
|
|
143
|
-
<actions_tray_styles_1.ActionTitle>undo</actions_tray_styles_1.ActionTitle>
|
|
144
|
-
</actions_tray_styles_1.ActionBtn>
|
|
145
|
-
</>);
|
|
146
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FxActionsTray = void 0;
|
|
4
|
-
var FxActionsTray_1 = require("./FxActionsTray");
|
|
5
|
-
Object.defineProperty(exports, "FxActionsTray", { enumerable: true, get: function () { return FxActionsTray_1.FxActionsTray; } });
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionTitle = exports.ActionBtn = exports.Divider = exports.TitleWrapper = exports.Close = exports.ChargesTitle = exports.ChargesCount = exports.Container = void 0;
|
|
4
|
-
const FxButton_1 = require("../../FxButton");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const styles_1 = require("@mui/material/styles");
|
|
7
|
-
const filterWhite = 'invert(99%) sepia(74%) saturate(0%) hue-rotate(253deg) brightness(108%) contrast(100%)';
|
|
8
|
-
const filterPrimary = 'invert(46%) sepia(48%) saturate(297%) hue-rotate(145deg) brightness(97%) contrast(90%)';
|
|
9
|
-
exports.Container = (0, styles_1.styled)('div')(({ theme }) => ({
|
|
10
|
-
display: 'flex',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
justifyContent: 'space-between',
|
|
13
|
-
background: theme.palette.common.white,
|
|
14
|
-
border: '1px solid #C6DDE2',
|
|
15
|
-
boxShadow: '0px 0px 10px rgba(86, 135, 147, 0.2)',
|
|
16
|
-
borderRadius: 8,
|
|
17
|
-
padding: '16px 24px',
|
|
18
|
-
height: 38,
|
|
19
|
-
width: 'fit-content',
|
|
20
|
-
margin: 4,
|
|
21
|
-
}));
|
|
22
|
-
exports.ChargesCount = (0, styles_1.styled)(material_1.Typography)(({ theme }) => (Object.assign(Object.assign({}, theme.typography.table), { color: theme.palette.typography.title, fontWeight: 700, marginRight: 4 })));
|
|
23
|
-
exports.ChargesTitle = (0, styles_1.styled)(material_1.Typography)(({ theme }) => (Object.assign(Object.assign({}, theme.typography.table), { color: theme.palette.typography.title })));
|
|
24
|
-
exports.Close = (0, styles_1.styled)(material_1.Typography)(({ theme }) => (Object.assign(Object.assign({}, theme.typography.body1), { color: theme.palette.primary['500'], textTransform: 'uppercase', fontWeight: 600, letterSpacing: '0.5px', cursor: 'pointer' })));
|
|
25
|
-
exports.TitleWrapper = (0, styles_1.styled)('div')(({ theme }) => ({
|
|
26
|
-
display: 'flex',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
justifyContent: 'center',
|
|
29
|
-
}));
|
|
30
|
-
exports.Divider = (0, styles_1.styled)('div')(({ theme }) => ({
|
|
31
|
-
width: 1,
|
|
32
|
-
height: '100%',
|
|
33
|
-
background: theme.palette.greyscale.contrastText,
|
|
34
|
-
marginRight: 24,
|
|
35
|
-
marginLeft: 24,
|
|
36
|
-
}));
|
|
37
|
-
exports.ActionBtn = (0, styles_1.styled)(FxButton_1.FxButton)(({ theme, type }) => ({
|
|
38
|
-
height: 40,
|
|
39
|
-
maxHeight: 40,
|
|
40
|
-
borderRadius: 100,
|
|
41
|
-
padding: '8px 16px',
|
|
42
|
-
color: type ? theme.palette.common.white : theme.palette.primary['500'],
|
|
43
|
-
borderColor: type ? theme.palette.score[type] : theme.palette.primary['500'],
|
|
44
|
-
background: type ? theme.palette.score[type] : theme.palette.common.white,
|
|
45
|
-
marginRight: 8,
|
|
46
|
-
['& img']: {
|
|
47
|
-
filter: type ? 'none' : filterPrimary,
|
|
48
|
-
},
|
|
49
|
-
['&:hover']: {
|
|
50
|
-
background: type ? theme.palette.score[type] : theme.palette.common.white,
|
|
51
|
-
color: type ? theme.palette.common.white : theme.palette.primary['500'],
|
|
52
|
-
borderColor: type ? theme.palette.score[type] : theme.palette.primary['500'],
|
|
53
|
-
},
|
|
54
|
-
}));
|
|
55
|
-
exports.ActionTitle = (0, styles_1.styled)('span')(({ theme }) => (Object.assign(Object.assign({}, theme.typography.body1), { color: 'inherit', textTransform: 'uppercase', fontWeight: 600, letterSpacing: '0.5px', cursor: 'pointer', marginLeft: 4, marginTop: 2 })));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FxAggregationsBar = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const Stack_1 = tslib_1.__importDefault(require("@mui/material/Stack"));
|
|
7
|
-
const structureReader_1 = require("./helpers/structureReader");
|
|
8
|
-
const FxAggregationsBar = (props) => {
|
|
9
|
-
const { structure, minWidth, mb, filter, initialValues } = props;
|
|
10
|
-
const { children, extended } = structure;
|
|
11
|
-
const { variables } = extended;
|
|
12
|
-
const { collapsed } = variables;
|
|
13
|
-
return (<Stack_1.default direction="row" spacing={1.5} sx={{
|
|
14
|
-
mb: mb ? mb : 0,
|
|
15
|
-
['& div']: {
|
|
16
|
-
minWidth: minWidth,
|
|
17
|
-
},
|
|
18
|
-
['& > span']: {
|
|
19
|
-
minWidth: minWidth,
|
|
20
|
-
},
|
|
21
|
-
}}>
|
|
22
|
-
{children.map((child, index) => {
|
|
23
|
-
return (0, structureReader_1.structureReader)(child, filter, collapsed, initialValues);
|
|
24
|
-
})}
|
|
25
|
-
</Stack_1.default>);
|
|
26
|
-
};
|
|
27
|
-
exports.FxAggregationsBar = FxAggregationsBar;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.structureReader = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const FxScore_1 = require("../../FxScore");
|
|
8
|
-
const FxStatisticsBar_1 = require("../../FxStatisticsBar");
|
|
9
|
-
const FxProgressCounter_1 = require("../../FxProgressCounter");
|
|
10
|
-
const structureReader = (structure, filter, collapsed, initialValues) => {
|
|
11
|
-
var _a;
|
|
12
|
-
const { extended, type } = structure;
|
|
13
|
-
switch (type) {
|
|
14
|
-
case 'aggregations_primary_container':
|
|
15
|
-
return structure.children.map((child, index) => {
|
|
16
|
-
var _a, _b, _c;
|
|
17
|
-
return ((_a = child.input_type) === null || _a === void 0 ? void 0 : _a.value) === 'percentage' ? (<FxScore_1.FxScore structure={child} key={index} filter={filter} value={initialValues === null || initialValues === void 0 ? void 0 : initialValues.score}/>) : ((_b = child.input_type) === null || _b === void 0 ? void 0 : _b.value) === 'progress' ? (<FxProgressCounter_1.FxProgressCounter structure={child} filter={filter} key={index} values={initialValues}/>) : (<material_1.Box sx={{
|
|
18
|
-
display: 'flex',
|
|
19
|
-
justifyContent: 'center',
|
|
20
|
-
alignItems: 'center',
|
|
21
|
-
width: 'fit-content',
|
|
22
|
-
padding: 2,
|
|
23
|
-
borderRadius: 2,
|
|
24
|
-
backgroundColor: ((_c = extended === null || extended === void 0 ? void 0 : extended.variables) === null || _c === void 0 ? void 0 : _c.bg) || '#FFFFFF',
|
|
25
|
-
}}>
|
|
26
|
-
<FxStatisticsBar_1.FxStatisticsBar structure={child} key={index} filter={filter} collapsed={collapsed} value={initialValues ? initialValues[child.extended.object_path] : null}/>
|
|
27
|
-
</material_1.Box>);
|
|
28
|
-
});
|
|
29
|
-
case 'aggregations_secondary_container':
|
|
30
|
-
return (<material_1.Stack direction="row" divider={<material_1.Divider orientation="vertical" flexItem/>} spacing={2} sx={{
|
|
31
|
-
backgroundColor: ((_a = extended === null || extended === void 0 ? void 0 : extended.variables) === null || _a === void 0 ? void 0 : _a.bg) || '#FFFFFF',
|
|
32
|
-
borderRadius: '8px',
|
|
33
|
-
padding: '24px 16px',
|
|
34
|
-
}}>
|
|
35
|
-
{structure.children.map((child, index) => {
|
|
36
|
-
return <FxStatisticsBar_1.FxStatisticsBar structure={child} key={index} filter={filter} collapsed={collapsed} value={initialValues ? initialValues[child.extended.object_path] : null}/>;
|
|
37
|
-
})}
|
|
38
|
-
</material_1.Stack>);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.structureReader = structureReader;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FxAggregationsBar = void 0;
|
|
4
|
-
var FxAggregations_1 = require("./FxAggregations");
|
|
5
|
-
Object.defineProperty(exports, "FxAggregationsBar", { enumerable: true, get: function () { return FxAggregations_1.FxAggregationsBar; } });
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STRUCTURES = void 0;
|
|
4
|
-
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
-
exports.STRUCTURES = (0, graphql_tag_1.gql) `
|
|
6
|
-
query STRUCTURES {
|
|
7
|
-
structure(where: { name: "aggregations_invoice" }) {
|
|
8
|
-
_id
|
|
9
|
-
bundle_name
|
|
10
|
-
name
|
|
11
|
-
title
|
|
12
|
-
type
|
|
13
|
-
input_type {
|
|
14
|
-
name
|
|
15
|
-
value
|
|
16
|
-
}
|
|
17
|
-
readable_id
|
|
18
|
-
extended {
|
|
19
|
-
format
|
|
20
|
-
gql_operation
|
|
21
|
-
title_path
|
|
22
|
-
object_path
|
|
23
|
-
filter
|
|
24
|
-
variables
|
|
25
|
-
}
|
|
26
|
-
children(sort: { index: 1 }) {
|
|
27
|
-
_id
|
|
28
|
-
name
|
|
29
|
-
title
|
|
30
|
-
type
|
|
31
|
-
input_type {
|
|
32
|
-
name
|
|
33
|
-
value
|
|
34
|
-
}
|
|
35
|
-
readable_id
|
|
36
|
-
extended {
|
|
37
|
-
format
|
|
38
|
-
gql_operation
|
|
39
|
-
title_path
|
|
40
|
-
object_path
|
|
41
|
-
filter
|
|
42
|
-
variables
|
|
43
|
-
}
|
|
44
|
-
children(sort: { index: 1 }) {
|
|
45
|
-
_id
|
|
46
|
-
name
|
|
47
|
-
title
|
|
48
|
-
type
|
|
49
|
-
input_type {
|
|
50
|
-
name
|
|
51
|
-
value
|
|
52
|
-
}
|
|
53
|
-
readable_id
|
|
54
|
-
extended {
|
|
55
|
-
format
|
|
56
|
-
gql_operation
|
|
57
|
-
title_path
|
|
58
|
-
object_path
|
|
59
|
-
filter
|
|
60
|
-
variables
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`;
|