dynamic-mui 1.1.5 → 2.0.1
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/LICENSE +21 -0
- package/README.md +57 -22
- package/dist/components/DynamicComponent.d.ts +12 -0
- package/dist/components/FormGenerator.d.ts +37 -0
- package/dist/components/charts/Bar/bar.d.ts +2 -0
- package/dist/components/charts/Line/line.d.ts +2 -0
- package/dist/components/charts/Mixchart/mixChart.d.ts +2 -0
- package/dist/components/charts/Pie/pie.d.ts +2 -0
- package/dist/components/controls/Accordion/accordion.d.ts +2 -0
- package/dist/components/controls/Autocomplete/autocomplete.d.ts +2 -0
- package/dist/components/controls/CheckBox/checkbox.d.ts +3 -0
- package/dist/components/controls/Chip/chip.d.ts +2 -0
- package/dist/components/controls/DataTable/datatable.d.ts +2 -0
- package/dist/components/controls/DateTime/datetime.d.ts +2 -0
- package/dist/components/controls/DateTimePicker/datetimepicker.d.ts +2 -0
- package/dist/components/controls/Divider/divider.d.ts +2 -0
- package/dist/components/controls/Group/group.d.ts +2 -0
- package/dist/components/controls/Hyperlink/hyperlink.d.ts +2 -0
- package/dist/components/controls/ImageList/imagelist.d.ts +2 -0
- package/dist/components/controls/List/list.d.ts +2 -0
- package/dist/components/controls/MultiTextbox/multitextbox.d.ts +2 -0
- package/dist/components/controls/NumberField/numberfield.d.ts +2 -0
- package/dist/components/controls/Radio/radio.d.ts +3 -0
- package/dist/components/controls/Select/select.d.ts +2 -0
- package/dist/components/controls/Signature/signature.d.ts +2 -0
- package/dist/components/controls/Stepper/stepper.d.ts +8 -0
- package/dist/components/controls/Switch/switch.d.ts +3 -0
- package/dist/components/controls/Tabs/tabs.d.ts +2 -0
- package/dist/components/controls/TextField/textfield.d.ts +2 -0
- package/dist/components/controls/TimePicker/timepicker.d.ts +2 -0
- package/dist/components/controls/Typography/typography.d.ts +3 -0
- package/dist/components/controls/index.d.ts +57 -0
- package/dist/config/mui.d.ts +8 -0
- package/dist/dynamic-mui.cjs.js +1 -0
- package/dist/dynamic-mui.es.js +9 -0
- package/dist/index-BFycuK80.js +465 -0
- package/dist/index-CJMUh0I6.js +1 -0
- package/dist/index-DvtivzW0.mjs +101901 -0
- package/dist/index-ipsOTYQY.mjs +153 -0
- package/dist/index.d.ts +5 -0
- package/dist/loadCognitoIdentity-BwoR11En.js +1 -0
- package/dist/loadCognitoIdentity-Cqci1Eff.mjs +935 -0
- package/dist/main.d.ts +1 -0
- package/dist/playground/Builder.d.ts +1 -0
- package/dist/playground/Canvas.d.ts +9 -0
- package/dist/playground/PropertiesEditor.d.ts +10 -0
- package/dist/playground/Sidebar.d.ts +1 -0
- package/dist/playground/documentation.d.ts +6 -0
- package/dist/playground/templates.d.ts +7 -0
- package/dist/playground/testData.d.ts +2 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/theme/theme.d.ts +1 -0
- package/dist/types.d.ts +19 -0
- package/dist/util/helper.d.ts +64 -0
- package/dist/util/s3Upload.d.ts +13 -0
- package/dist/util/stepperComponents.d.ts +6 -0
- package/dist/util/useIsFirstRender.d.ts +1 -0
- package/dist/util/useUpdateEffect.d.ts +2 -0
- package/dist/util/validation.d.ts +6 -0
- package/package.json +65 -54
- package/build/asset-manifest.json +0 -10
- package/build/favicon.ico +0 -0
- package/build/index.html +0 -1
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/build/static/js/main.11a67c51.js +0 -3
- package/build/static/js/main.11a67c51.js.LICENSE.txt +0 -85
- package/build/static/js/main.11a67c51.js.map +0 -1
- package/craco.config.js +0 -34
- package/dist-modules/components/DynamicComponent.js +0 -22
- package/dist-modules/components/FormGenerator.js +0 -200
- package/dist-modules/components/charts/Bar/bar.js +0 -31
- package/dist-modules/components/charts/Line/line.js +0 -31
- package/dist-modules/components/charts/Mixchart/mixChart.js +0 -59
- package/dist-modules/components/charts/Pie/pie.js +0 -31
- package/dist-modules/components/controls/CheckBox/checkbox.js +0 -56
- package/dist-modules/components/controls/DataTable/datatable.js +0 -28
- package/dist-modules/components/controls/DateTime/datetime.js +0 -53
- package/dist-modules/components/controls/DateTimePicker/datetimepicker.js +0 -53
- package/dist-modules/components/controls/Radio/radio.js +0 -88
- package/dist-modules/components/controls/Select/select.js +0 -173
- package/dist-modules/components/controls/Stepper/stepper.js +0 -192
- package/dist-modules/components/controls/Switch/switch.js +0 -85
- package/dist-modules/components/controls/TextField/textfield.js +0 -148
- package/dist-modules/components/controls/TimePicker/timepicker.js +0 -53
- package/dist-modules/components/controls/Typography/typography.js +0 -43
- package/dist-modules/components/controls/index.js +0 -42
- package/dist-modules/config/mui.js +0 -73
- package/dist-modules/data/checkbox.js +0 -143
- package/dist-modules/data/dataTable.js +0 -90
- package/dist-modules/data/dateTime.js +0 -136
- package/dist-modules/data/radio.js +0 -36
- package/dist-modules/data/select.js +0 -126
- package/dist-modules/data/stepper.js +0 -237
- package/dist-modules/data/switch.js +0 -123
- package/dist-modules/data/textfield.js +0 -240
- package/dist-modules/index.js +0 -16
- package/dist-modules/util/helper.js +0 -226
- package/dist-modules/util/stepperComponents.js +0 -40
- package/dist-modules/util/useIsFirstRender.js +0 -15
- package/dist-modules/util/useUpdateEffect.js +0 -19
- package/dist-modules/util/validation.js +0 -102
- package/docs/asset-manifest.json +0 -9
- package/docs/build/bundle.1eab2706.js +0 -2
- package/docs/build/bundle.1eab2706.js.LICENSE.txt +0 -153
- package/docs/index.html +0 -16
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/styleguide.config.js +0 -108
- package/themes/default.js +0 -114
- package/themes/index.js +0 -29
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = TextField;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _numeral = _interopRequireDefault(require("numeral"));
|
|
10
|
-
var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
11
|
-
var _helper = require("../../../util/helper");
|
|
12
|
-
var _validation = _interopRequireDefault(require("../../../util/validation"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable react/jsx-no-duplicate-props */
|
|
20
|
-
function TextField(_ref) {
|
|
21
|
-
var _MuiAttributes$slotPr;
|
|
22
|
-
let {
|
|
23
|
-
attributes,
|
|
24
|
-
rules = {},
|
|
25
|
-
onChange
|
|
26
|
-
} = _ref;
|
|
27
|
-
const {
|
|
28
|
-
MuiAttributes = {},
|
|
29
|
-
InputProps = {},
|
|
30
|
-
format = '',
|
|
31
|
-
id = ''
|
|
32
|
-
} = attributes;
|
|
33
|
-
const [textData, setTextData] = _react.default.useState({
|
|
34
|
-
value: attributes.value !== undefined ? attributes.value : '',
|
|
35
|
-
helperText: MuiAttributes.helperText || '',
|
|
36
|
-
error: false
|
|
37
|
-
});
|
|
38
|
-
const getValue = v => format ? (0, _numeral.default)(v).format(format) : v;
|
|
39
|
-
const validate = value => {
|
|
40
|
-
let isValid = false;
|
|
41
|
-
const {
|
|
42
|
-
validation
|
|
43
|
-
} = rules;
|
|
44
|
-
if (validation) {
|
|
45
|
-
for (let i = 0; i < validation.length; i += 1) {
|
|
46
|
-
const data = validation[i];
|
|
47
|
-
isValid = _validation.default[data.rule](value, data.value);
|
|
48
|
-
if (!isValid) {
|
|
49
|
-
return {
|
|
50
|
-
isValid: false,
|
|
51
|
-
message: data.message
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
isValid: true,
|
|
58
|
-
message: ''
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
const handleOnChange = function () {
|
|
62
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
63
|
-
args[_key] = arguments[_key];
|
|
64
|
-
}
|
|
65
|
-
const {
|
|
66
|
-
value
|
|
67
|
-
} = args[0].target;
|
|
68
|
-
const validator = validate(value);
|
|
69
|
-
setTextData({
|
|
70
|
-
value,
|
|
71
|
-
helperText: validator.message,
|
|
72
|
-
error: !validator.isValid
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
const handleOnBlur = function () {
|
|
76
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
77
|
-
args[_key2] = arguments[_key2];
|
|
78
|
-
}
|
|
79
|
-
const {
|
|
80
|
-
value
|
|
81
|
-
} = args[0].target;
|
|
82
|
-
const formatValue = getValue(value);
|
|
83
|
-
const validator = validate(formatValue);
|
|
84
|
-
setTextData({
|
|
85
|
-
value: formatValue,
|
|
86
|
-
helperText: validator.message,
|
|
87
|
-
error: !validator.isValid
|
|
88
|
-
});
|
|
89
|
-
if (typeof onChange === 'function') onChange({
|
|
90
|
-
id,
|
|
91
|
-
value: formatValue
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const handleOnFocus = () => {};
|
|
95
|
-
|
|
96
|
-
// Wheel-block for numeric inputs
|
|
97
|
-
const isNumberType = (MuiAttributes === null || MuiAttributes === void 0 ? void 0 : MuiAttributes.type) === 'number' || (attributes === null || attributes === void 0 ? void 0 : attributes.type) === 'number' || (MuiAttributes === null || MuiAttributes === void 0 ? void 0 : MuiAttributes.inputMode) === 'numeric';
|
|
98
|
-
const onWheelBlock = e => {
|
|
99
|
-
const el = e.currentTarget;
|
|
100
|
-
el.blur();
|
|
101
|
-
setTimeout(() => el.focus(), 0);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// Build merged input props we want to ensure exist
|
|
105
|
-
const ourInputProps = _objectSpread(_objectSpread({}, isNumberType ? {
|
|
106
|
-
onWheel: onWheelBlock
|
|
107
|
-
} : {}), {}, {
|
|
108
|
-
inputMode: (MuiAttributes === null || MuiAttributes === void 0 ? void 0 : MuiAttributes.inputProps) && MuiAttributes.inputProps.inputMode || (MuiAttributes === null || MuiAttributes === void 0 || (_MuiAttributes$slotPr = MuiAttributes.slotProps) === null || _MuiAttributes$slotPr === void 0 ? void 0 : _MuiAttributes$slotPr.input) && MuiAttributes.slotProps.input.inputMode || 'numeric'
|
|
109
|
-
});
|
|
110
|
-
const isV6 = !!(MuiAttributes !== null && MuiAttributes !== void 0 && MuiAttributes.slotProps);
|
|
111
|
-
const baseAttrs = _objectSpread({}, MuiAttributes);
|
|
112
|
-
let finalInputProps;
|
|
113
|
-
let finalSlotProps;
|
|
114
|
-
if (isV6) {
|
|
115
|
-
const existingSlotInput = MuiAttributes.slotProps && MuiAttributes.slotProps.input || {};
|
|
116
|
-
finalSlotProps = _objectSpread(_objectSpread({}, MuiAttributes.slotProps || {}), {}, {
|
|
117
|
-
input: _objectSpread(_objectSpread({}, existingSlotInput), ourInputProps)
|
|
118
|
-
});
|
|
119
|
-
delete baseAttrs.slotProps;
|
|
120
|
-
} else {
|
|
121
|
-
const existingInputProps = MuiAttributes.inputProps || {};
|
|
122
|
-
finalInputProps = _objectSpread(_objectSpread({}, existingInputProps), ourInputProps);
|
|
123
|
-
delete baseAttrs.inputProps;
|
|
124
|
-
}
|
|
125
|
-
return /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
|
|
126
|
-
fullWidth: true
|
|
127
|
-
}, baseAttrs, {
|
|
128
|
-
inputProps: !isV6 ? finalInputProps : undefined,
|
|
129
|
-
slotProps: isV6 ? finalSlotProps : undefined,
|
|
130
|
-
InputProps: (0, _helper.getInputProps)(InputProps),
|
|
131
|
-
onChange: handleOnChange,
|
|
132
|
-
onBlur: handleOnBlur,
|
|
133
|
-
onFocus: handleOnFocus,
|
|
134
|
-
value: textData.value,
|
|
135
|
-
error: textData.error,
|
|
136
|
-
helperText: textData.helperText
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
TextField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
140
|
-
attributes: _propTypes.default.objectOf(_propTypes.default.object),
|
|
141
|
-
rules: _propTypes.default.objectOf(_propTypes.default.array),
|
|
142
|
-
onChange: _propTypes.default.func
|
|
143
|
-
} : {};
|
|
144
|
-
TextField.defaultProps = {
|
|
145
|
-
attributes: {},
|
|
146
|
-
rules: {},
|
|
147
|
-
onChange: null
|
|
148
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = TimePicker;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _AdapterDayjs = require("@mui/x-date-pickers/AdapterDayjs");
|
|
9
|
-
var _xDatePickers = require("@mui/x-date-pickers");
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
12
|
-
var _helper = require("../../../util/helper");
|
|
13
|
-
var _useUpdateEffect = _interopRequireDefault(require("../../../util/useUpdateEffect"));
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
-
function TimePicker(_ref) {
|
|
17
|
-
let {
|
|
18
|
-
attributes,
|
|
19
|
-
onChange
|
|
20
|
-
} = _ref;
|
|
21
|
-
const {
|
|
22
|
-
MuiAttributes = {},
|
|
23
|
-
name = 'TimePicker',
|
|
24
|
-
id = ''
|
|
25
|
-
} = attributes;
|
|
26
|
-
const [value, setValue] = _react.default.useState(attributes !== null && attributes !== void 0 && attributes.value ? (0, _dayjs.default)(attributes === null || attributes === void 0 ? void 0 : attributes.value) : null);
|
|
27
|
-
(0, _useUpdateEffect.default)(() => {
|
|
28
|
-
if (attributes !== null && attributes !== void 0 && attributes.value) setValue((0, _dayjs.default)(attributes === null || attributes === void 0 ? void 0 : attributes.value));
|
|
29
|
-
}, [attributes === null || attributes === void 0 ? void 0 : attributes.value]);
|
|
30
|
-
const MuiTimePicker = (0, _helper.DateComponent)(name);
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(_xDatePickers.LocalizationProvider, {
|
|
32
|
-
dateAdapter: _AdapterDayjs.AdapterDayjs
|
|
33
|
-
}, /*#__PURE__*/_react.default.createElement(MuiTimePicker, _extends({
|
|
34
|
-
value: value,
|
|
35
|
-
onChange: newValue => {
|
|
36
|
-
setValue(newValue);
|
|
37
|
-
onChange({
|
|
38
|
-
id,
|
|
39
|
-
value: newValue
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}, MuiAttributes)));
|
|
43
|
-
}
|
|
44
|
-
TimePicker.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
45
|
-
/** Attributes for TimePicker */
|
|
46
|
-
attributes: _propTypes.default.objectOf(_propTypes.default.object),
|
|
47
|
-
/** Function */
|
|
48
|
-
onChange: _propTypes.default.func
|
|
49
|
-
} : {};
|
|
50
|
-
TimePicker.defaultProps = {
|
|
51
|
-
attributes: {},
|
|
52
|
-
onChange: null
|
|
53
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = Typography;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
10
|
-
var _material = require("@mui/material");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
13
|
-
/** Typography Component */
|
|
14
|
-
function Typography(_ref) {
|
|
15
|
-
let {
|
|
16
|
-
attributes
|
|
17
|
-
} = _ref;
|
|
18
|
-
const {
|
|
19
|
-
MuiAttributes = {},
|
|
20
|
-
text = '',
|
|
21
|
-
MuiIcon = {},
|
|
22
|
-
value = '',
|
|
23
|
-
MuiBox = {}
|
|
24
|
-
} = attributes;
|
|
25
|
-
if (MuiIcon && MuiIcon.icon) {
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(_material.Box, _extends({
|
|
27
|
-
sx: {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
width: '100%'
|
|
30
|
-
}
|
|
31
|
-
}, MuiBox), /*#__PURE__*/_react.default.createElement(_material.Icon, _extends({
|
|
32
|
-
key: MuiIcon.icon
|
|
33
|
-
}, MuiIcon.MuiIconAttributes), MuiIcon.icon), /*#__PURE__*/_react.default.createElement(_Typography.default, MuiAttributes, text || value));
|
|
34
|
-
}
|
|
35
|
-
return /*#__PURE__*/_react.default.createElement(_Typography.default, MuiAttributes, text || value);
|
|
36
|
-
}
|
|
37
|
-
Typography.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
38
|
-
/** Attributes for Typography */
|
|
39
|
-
attributes: _propTypes.default.objectOf(_propTypes.default.object)
|
|
40
|
-
} : {};
|
|
41
|
-
Typography.defaultProps = {
|
|
42
|
-
attributes: {}
|
|
43
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _typography = _interopRequireDefault(require("./Typography/typography"));
|
|
8
|
-
var _textfield = _interopRequireDefault(require("./TextField/textfield"));
|
|
9
|
-
var _datatable = _interopRequireDefault(require("./DataTable/datatable"));
|
|
10
|
-
var _datetime = _interopRequireDefault(require("./DateTime/datetime"));
|
|
11
|
-
var _datetimepicker = _interopRequireDefault(require("./DateTimePicker/datetimepicker"));
|
|
12
|
-
var _timepicker = _interopRequireDefault(require("./TimePicker/timepicker"));
|
|
13
|
-
var _select = _interopRequireDefault(require("./Select/select"));
|
|
14
|
-
var _checkbox = _interopRequireDefault(require("./CheckBox/checkbox"));
|
|
15
|
-
var _switch = _interopRequireDefault(require("./Switch/switch"));
|
|
16
|
-
var _radio = _interopRequireDefault(require("./Radio/radio"));
|
|
17
|
-
var _stepper = _interopRequireDefault(require("./Stepper/stepper"));
|
|
18
|
-
var _bar = _interopRequireDefault(require("../charts/Bar/bar"));
|
|
19
|
-
var _line = _interopRequireDefault(require("../charts/Line/line"));
|
|
20
|
-
var _pie = _interopRequireDefault(require("../charts/Pie/pie"));
|
|
21
|
-
var _mixChart = _interopRequireDefault(require("../charts/Mixchart/mixChart"));
|
|
22
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
|
-
// eslint-disable-next-line import/no-cycle
|
|
24
|
-
|
|
25
|
-
const Controls = {
|
|
26
|
-
Typography: _typography.default,
|
|
27
|
-
TextField: _textfield.default,
|
|
28
|
-
Table: _datatable.default,
|
|
29
|
-
DateTime: _datetime.default,
|
|
30
|
-
DateTimePicker: _datetimepicker.default,
|
|
31
|
-
TimePicker: _timepicker.default,
|
|
32
|
-
Select: _select.default,
|
|
33
|
-
CheckBox: _checkbox.default,
|
|
34
|
-
Switch: _switch.default,
|
|
35
|
-
Radio: _radio.default,
|
|
36
|
-
Stepper: _stepper.default,
|
|
37
|
-
Bar: _bar.default,
|
|
38
|
-
Line: _line.default,
|
|
39
|
-
Pie: _pie.default,
|
|
40
|
-
MixChart: _mixChart.default
|
|
41
|
-
};
|
|
42
|
-
var _default = exports.default = Controls;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const mui = {
|
|
8
|
-
textfield: {
|
|
9
|
-
type: 'TextField',
|
|
10
|
-
map: 'TextField'
|
|
11
|
-
},
|
|
12
|
-
typography: {
|
|
13
|
-
type: 'Typography',
|
|
14
|
-
map: 'Typography'
|
|
15
|
-
},
|
|
16
|
-
datatable: {
|
|
17
|
-
type: 'Table',
|
|
18
|
-
map: 'Table'
|
|
19
|
-
},
|
|
20
|
-
datetime: {
|
|
21
|
-
type: 'DateTime',
|
|
22
|
-
map: 'DateTime'
|
|
23
|
-
},
|
|
24
|
-
daterangepicker: {
|
|
25
|
-
type: 'DateRangePicker',
|
|
26
|
-
map: 'DateRangePicker'
|
|
27
|
-
},
|
|
28
|
-
datetimepicker: {
|
|
29
|
-
type: 'DateTimePicker',
|
|
30
|
-
map: 'DateTimePicker'
|
|
31
|
-
},
|
|
32
|
-
timepicker: {
|
|
33
|
-
type: 'TimePicker',
|
|
34
|
-
map: 'TimePicker'
|
|
35
|
-
},
|
|
36
|
-
select: {
|
|
37
|
-
type: 'Select',
|
|
38
|
-
map: 'Select'
|
|
39
|
-
},
|
|
40
|
-
checkbox: {
|
|
41
|
-
type: 'CheckBox',
|
|
42
|
-
map: 'CheckBox'
|
|
43
|
-
},
|
|
44
|
-
switch: {
|
|
45
|
-
type: 'Switch',
|
|
46
|
-
map: 'Switch'
|
|
47
|
-
},
|
|
48
|
-
radio: {
|
|
49
|
-
type: 'Radio',
|
|
50
|
-
map: 'Radio'
|
|
51
|
-
},
|
|
52
|
-
stepper: {
|
|
53
|
-
type: 'Stepper',
|
|
54
|
-
map: 'Stepper'
|
|
55
|
-
},
|
|
56
|
-
bar: {
|
|
57
|
-
type: 'Bar',
|
|
58
|
-
map: 'Bar'
|
|
59
|
-
},
|
|
60
|
-
line: {
|
|
61
|
-
type: 'Line',
|
|
62
|
-
map: 'Line'
|
|
63
|
-
},
|
|
64
|
-
pie: {
|
|
65
|
-
type: 'Pie',
|
|
66
|
-
map: 'Pie'
|
|
67
|
-
},
|
|
68
|
-
mixchart: {
|
|
69
|
-
type: 'MixChart',
|
|
70
|
-
map: 'MixChart'
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var _default = exports.default = mui;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.checkBoxCustom = exports.checkBox = void 0;
|
|
7
|
-
const checkBox = exports.checkBox = [{
|
|
8
|
-
type: 'checkbox',
|
|
9
|
-
props: {
|
|
10
|
-
id: 'defaultChecked',
|
|
11
|
-
MuiAttributes: {
|
|
12
|
-
defaultChecked: true
|
|
13
|
-
},
|
|
14
|
-
MuiFCLAttributes: {
|
|
15
|
-
label: ''
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
layout: {
|
|
19
|
-
row: 1,
|
|
20
|
-
xs: 3,
|
|
21
|
-
sm: 3
|
|
22
|
-
}
|
|
23
|
-
}, {
|
|
24
|
-
type: 'checkbox',
|
|
25
|
-
props: {
|
|
26
|
-
id: 'simple',
|
|
27
|
-
MuiAttributes: {},
|
|
28
|
-
MuiFCLAttributes: {
|
|
29
|
-
label: ''
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
layout: {
|
|
33
|
-
row: 1,
|
|
34
|
-
xs: 3,
|
|
35
|
-
sm: 3
|
|
36
|
-
}
|
|
37
|
-
}, {
|
|
38
|
-
type: 'checkbox',
|
|
39
|
-
props: {
|
|
40
|
-
id: 'disabled',
|
|
41
|
-
MuiAttributes: {
|
|
42
|
-
disabled: true
|
|
43
|
-
},
|
|
44
|
-
MuiFCLAttributes: {
|
|
45
|
-
label: ''
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
layout: {
|
|
49
|
-
row: 1,
|
|
50
|
-
xs: 3,
|
|
51
|
-
sm: 3
|
|
52
|
-
}
|
|
53
|
-
}, {
|
|
54
|
-
type: 'checkbox',
|
|
55
|
-
props: {
|
|
56
|
-
id: 'disabledchecked',
|
|
57
|
-
MuiAttributes: {
|
|
58
|
-
disabled: true,
|
|
59
|
-
checked: true
|
|
60
|
-
},
|
|
61
|
-
MuiFCLAttributes: {
|
|
62
|
-
label: ''
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
layout: {
|
|
66
|
-
row: 1,
|
|
67
|
-
xs: 3,
|
|
68
|
-
sm: 3
|
|
69
|
-
}
|
|
70
|
-
}];
|
|
71
|
-
const checkBoxCustom = exports.checkBoxCustom = [{
|
|
72
|
-
type: 'checkbox',
|
|
73
|
-
props: {
|
|
74
|
-
id: 'testing',
|
|
75
|
-
value: true,
|
|
76
|
-
MuiAttributes: {},
|
|
77
|
-
MuiFCLAttributes: {
|
|
78
|
-
label: 'Label'
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
layout: {
|
|
82
|
-
row: 1,
|
|
83
|
-
xs: 3,
|
|
84
|
-
sm: 3
|
|
85
|
-
}
|
|
86
|
-
}, {
|
|
87
|
-
type: 'checkbox',
|
|
88
|
-
props: {
|
|
89
|
-
id: 'labelsmall',
|
|
90
|
-
MuiAttributes: {
|
|
91
|
-
size: 'small',
|
|
92
|
-
defaultChecked: true,
|
|
93
|
-
color: 'secondary'
|
|
94
|
-
},
|
|
95
|
-
MuiFCLAttributes: {
|
|
96
|
-
label: 'Label'
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
layout: {
|
|
100
|
-
row: 1,
|
|
101
|
-
xs: 3,
|
|
102
|
-
sm: 3
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
type: 'checkbox',
|
|
106
|
-
props: {
|
|
107
|
-
id: 'labelcolordefault',
|
|
108
|
-
MuiAttributes: {
|
|
109
|
-
defaultChecked: true,
|
|
110
|
-
color: 'default'
|
|
111
|
-
},
|
|
112
|
-
MuiFCLAttributes: {
|
|
113
|
-
label: 'Label'
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
layout: {
|
|
117
|
-
row: 1,
|
|
118
|
-
xs: 3,
|
|
119
|
-
sm: 3
|
|
120
|
-
}
|
|
121
|
-
}, {
|
|
122
|
-
type: 'checkbox',
|
|
123
|
-
props: {
|
|
124
|
-
id: 'labelcolorgreen',
|
|
125
|
-
MuiAttributes: {
|
|
126
|
-
defaultChecked: true,
|
|
127
|
-
sx: {
|
|
128
|
-
color: 'green',
|
|
129
|
-
'&.Mui-checked': {
|
|
130
|
-
color: 'green'
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
MuiFCLAttributes: {
|
|
135
|
-
label: 'Label'
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
layout: {
|
|
139
|
-
row: 1,
|
|
140
|
-
xs: 3,
|
|
141
|
-
sm: 3
|
|
142
|
-
}
|
|
143
|
-
}];
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.denseTable = exports.basicTable = void 0;
|
|
7
|
-
const basicTable = exports.basicTable = [{
|
|
8
|
-
type: 'datatable',
|
|
9
|
-
props: {
|
|
10
|
-
id: 'datatable',
|
|
11
|
-
container: {
|
|
12
|
-
style: {
|
|
13
|
-
height: 400,
|
|
14
|
-
width: '100%'
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
MuiAttributes: {
|
|
18
|
-
rows: [{
|
|
19
|
-
id: 1,
|
|
20
|
-
lastName: 'Snow',
|
|
21
|
-
firstName: 'Jon',
|
|
22
|
-
age: 35
|
|
23
|
-
}, {
|
|
24
|
-
id: 2,
|
|
25
|
-
lastName: 'Lannister',
|
|
26
|
-
firstName: 'Cersei',
|
|
27
|
-
age: 42
|
|
28
|
-
}, {
|
|
29
|
-
id: 3,
|
|
30
|
-
lastName: 'Lannister',
|
|
31
|
-
firstName: 'Jaime',
|
|
32
|
-
age: 45
|
|
33
|
-
}, {
|
|
34
|
-
id: 4,
|
|
35
|
-
lastName: 'Stark',
|
|
36
|
-
firstName: 'Arya',
|
|
37
|
-
age: 16
|
|
38
|
-
}, {
|
|
39
|
-
id: 5,
|
|
40
|
-
lastName: 'Targaryen',
|
|
41
|
-
firstName: 'Daenerys',
|
|
42
|
-
age: null
|
|
43
|
-
}, {
|
|
44
|
-
id: 6,
|
|
45
|
-
lastName: 'Melisandre',
|
|
46
|
-
firstName: '',
|
|
47
|
-
age: 150
|
|
48
|
-
}, {
|
|
49
|
-
id: 7,
|
|
50
|
-
lastName: 'Clifford',
|
|
51
|
-
firstName: 'Ferrara',
|
|
52
|
-
age: 44
|
|
53
|
-
}, {
|
|
54
|
-
id: 8,
|
|
55
|
-
lastName: 'Frances',
|
|
56
|
-
firstName: 'Rossini',
|
|
57
|
-
age: 36
|
|
58
|
-
}, {
|
|
59
|
-
id: 9,
|
|
60
|
-
lastName: 'Roxie',
|
|
61
|
-
firstName: 'Harvey',
|
|
62
|
-
age: 65
|
|
63
|
-
}],
|
|
64
|
-
columns: [{
|
|
65
|
-
field: 'id',
|
|
66
|
-
headerName: 'ID',
|
|
67
|
-
width: 70
|
|
68
|
-
}, {
|
|
69
|
-
field: 'firstName',
|
|
70
|
-
headerName: 'First name',
|
|
71
|
-
width: 130
|
|
72
|
-
}, {
|
|
73
|
-
field: 'lastName',
|
|
74
|
-
headerName: 'Last name',
|
|
75
|
-
width: 130
|
|
76
|
-
}, {
|
|
77
|
-
field: 'age',
|
|
78
|
-
headerName: 'Age',
|
|
79
|
-
type: 'number',
|
|
80
|
-
width: 90
|
|
81
|
-
}]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
layout: {
|
|
85
|
-
xs: 12,
|
|
86
|
-
sm: 12,
|
|
87
|
-
md: 12
|
|
88
|
-
}
|
|
89
|
-
}];
|
|
90
|
-
const denseTable = exports.denseTable = [];
|